@directus/app 9.16.1 → 9.17.2

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 (391) hide show
  1. package/dist/assets/{@directus_extensions-sdk.a04f8e82.entry.js → @directus_extensions-sdk.3ef017de.entry.js} +1 -1
  2. package/dist/assets/{accounts.2e114db8.js → accounts.e4c64fb1.js} +1 -1
  3. package/dist/assets/{active-line.c78f18d1.js → active-line.135641ca.js} +1 -1
  4. package/dist/assets/activity-log.147dd93e.js +1 -0
  5. package/dist/assets/{activity.5589dea9.js → activity.dd401932.js} +4 -4
  6. package/dist/assets/{apl.3bd507ca.js → apl.9e95400b.js} +1 -1
  7. package/dist/assets/{architecture.d16e36b1.js → architecture.aaf5c296.js} +1 -1
  8. package/dist/assets/{asciiarmor.23cc7d28.js → asciiarmor.e53bc239.js} +1 -1
  9. package/dist/assets/{asn.1.914dce71.js → asn.1.8d915c0c.js} +1 -1
  10. package/dist/assets/{asterisk.960196ef.js → asterisk.fa6be1a0.js} +1 -1
  11. package/dist/assets/{authentication.ee6465fd.js → authentication.61c42dda.js} +7 -7
  12. package/dist/assets/{autorefresh.9c9423b3.js → autorefresh.da8f1d1d.js} +1 -1
  13. package/dist/assets/{aws.8fa603ce.js → aws.55405db9.js} +1 -1
  14. package/dist/assets/{backing-directus.450274bb.js → backing-directus.bd29d5e2.js} +1 -1
  15. package/dist/assets/bg-BG.e76ce10c.js +1 -0
  16. package/dist/assets/{brainfuck.652d067a.js → brainfuck.af5df7f4.js} +1 -1
  17. package/dist/assets/{cli.495194f0.js → cli.b2fbc62f.js} +4 -4
  18. package/dist/assets/{cli.f4f23732.js → cli.ca0055cb.js} +2 -2
  19. package/dist/assets/{clike.d1e347d7.js → clike.ee280809.js} +1 -1
  20. package/dist/assets/{clojure.0ed660e3.js → clojure.a146bf23.js} +1 -1
  21. package/dist/assets/{cloudron.aa3368a8.js → cloudron.8200e84b.js} +1 -1
  22. package/dist/assets/{cmake.795b52a3.js → cmake.6b59d5a5.js} +1 -1
  23. package/dist/assets/{cobol.dadc6a67.js → cobol.08192929.js} +1 -1
  24. package/dist/assets/{codebase-overview.cf29e0f6.js → codebase-overview.7f69e795.js} +1 -1
  25. package/dist/assets/{coffeescript.ebb229e0.js → coffeescript.9e2efa26.js} +1 -1
  26. package/dist/assets/{collections.7776a374.js → collections.18cc2518.js} +2 -2
  27. package/dist/assets/{collections.74218877.js → collections.2fa0dd8e.js} +2 -2
  28. package/dist/assets/{collections.9e3af468.js → collections.b7aafbfb.js} +6 -6
  29. package/dist/assets/{commonlisp.3ab42a16.js → commonlisp.78d28584.js} +1 -1
  30. package/dist/assets/{conditions.1d6c9ac3.js → conditions.281a6ed5.js} +1 -1
  31. package/dist/assets/{config-options.3845d956.js → config-options.d33aab72.js} +14 -14
  32. package/dist/assets/{content.84d14f92.js → content.f9b34bf7.js} +1 -1
  33. package/dist/assets/{creating-extensions.50afb69b.js → creating-extensions.4533b8ed.js} +1 -1
  34. package/dist/assets/{crystal.efbb1bd7.js → crystal.eb2634a7.js} +1 -1
  35. package/dist/assets/cs-CZ.2c006c7b.js +1 -0
  36. package/dist/assets/{css.6fb39c02.js → css.a2d713ed.js} +1 -1
  37. package/dist/assets/{cypher.62403d7d.js → cypher.c949e68a.js} +1 -1
  38. package/dist/assets/{d.3e09de4f.js → d.2a37c670.js} +1 -1
  39. package/dist/assets/da-DK.f9d9d6ca.js +1 -0
  40. package/dist/assets/{dart.41841dee.js → dart.c6dbedeb.js} +1 -1
  41. package/dist/assets/{data-model.ef4eedaf.js → data-model.dbce1366.js} +7 -7
  42. package/dist/assets/de-DE.729a1127.js +1 -0
  43. package/dist/assets/{diff.545183ee.js → diff.8be02862.js} +1 -1
  44. package/dist/assets/{digitalocean-app-platform.5dd9a78b.js → digitalocean-app-platform.b046ae55.js} +2 -2
  45. package/dist/assets/{display-templates.6412d9bf.js → display-templates.91e34e9f.js} +1 -1
  46. package/dist/assets/display.494b7d1f.js +1 -0
  47. package/dist/assets/{displays.c3b9934b.js → displays.54ddeb10.js} +3 -3
  48. package/dist/assets/{django.17509d05.js → django.ee5dacbf.js} +1 -1
  49. package/dist/assets/{docker.2130afa6.js → docker.36215dae.js} +2 -2
  50. package/dist/assets/{dockerfile.8e4c8627.js → dockerfile.2cbe1412.js} +1 -1
  51. package/dist/assets/{documentation.e232fdb2.js → documentation.cb5bf843.js} +1 -1
  52. package/dist/assets/{dtd.c5634f07.js → dtd.613366e7.js} +1 -1
  53. package/dist/assets/{dylan.ed64e93d.js → dylan.213591bc.js} +1 -1
  54. package/dist/assets/{ebnf.f0a160c2.js → ebnf.f10d9554.js} +1 -1
  55. package/dist/assets/{ecl.f410edf0.js → ecl.ea8251b5.js} +1 -1
  56. package/dist/assets/{eiffel.fc6fa090.js → eiffel.994a28c8.js} +1 -1
  57. package/dist/assets/{elm.d1f7e66b.js → elm.62eeed51.js} +1 -1
  58. package/dist/assets/{email-templates.0aa59541.js → email-templates.b0b82036.js} +1 -1
  59. package/dist/assets/{endpoints.b664ef10.js → endpoints.1ba44e66.js} +1 -1
  60. package/dist/assets/{erlang.f5c5e431.js → erlang.3768ffe4.js} +1 -1
  61. package/dist/assets/es-419.9ec18edd.js +1 -0
  62. package/dist/assets/es-CL.4c3eb1b0.js +1 -0
  63. package/dist/assets/es-ES.4a8f0217.js +1 -0
  64. package/dist/assets/es-MX.76f4e344.js +1 -0
  65. package/dist/assets/{extensions.e511fc6d.js → extensions.b4c93ce0.js} +2 -2
  66. package/dist/assets/{factor.fdee7d27.js → factor.25b7e5ca.js} +1 -1
  67. package/dist/assets/{faq.cc159e10.js → faq.4ca4b467.js} +1 -1
  68. package/dist/assets/{fcl.8ef841db.js → fcl.4e536c5f.js} +1 -1
  69. package/dist/assets/fi-FI.38180e94.js +1 -0
  70. package/dist/assets/{field-types.129a2c41.js → field-types.ed85836e.js} +1 -1
  71. package/dist/assets/{field.3061af3d.js → field.fb2213dd.js} +1 -1
  72. package/dist/assets/{fields.9e13d3e0.js → fields.057754cf.js} +5 -5
  73. package/dist/assets/{fields.1a3f05d2.js → fields.f3868bd3.js} +1 -1
  74. package/dist/assets/{file-library.531c267c.js → file-library.5d646392.js} +1 -1
  75. package/dist/assets/{files.af2c1a43.js → files.e0ad4209.js} +6 -6
  76. package/dist/assets/{filter-rules.454352d1.js → filter-rules.22fc9a6d.js} +1 -1
  77. package/dist/assets/{filters.57f37ec6.js → filters.5cf9b5c5.js} +1 -1
  78. package/dist/assets/flows.79e56304.js +17 -0
  79. package/dist/assets/{flows.4d2856ca.js → flows.eec58d0b.js} +5 -5
  80. package/dist/assets/{folders.10accc4b.js → folders.83d5bb9d.js} +1 -1
  81. package/dist/assets/{forth.2b2f71e9.js → forth.60806310.js} +1 -1
  82. package/dist/assets/{fortran.eeb26d81.js → fortran.59922aba.js} +1 -1
  83. package/dist/assets/fr-CA.e0e0ef26.js +1 -0
  84. package/dist/assets/fr-FR.f3315fda.js +1 -0
  85. package/dist/assets/{gas.12f084f2.js → gas.675738c7.js} +1 -1
  86. package/dist/assets/{gcp.c7937b1a.js → gcp.60b49ff2.js} +1 -1
  87. package/dist/assets/{gfm.3b66480c.js → gfm.2c1ac50e.js} +1 -1
  88. package/dist/assets/{gherkin.91e46d93.js → gherkin.774e36f6.js} +1 -1
  89. package/dist/assets/{github-ci.f7ee57b8.js → github-ci.b23bbe2d.js} +2 -2
  90. package/dist/assets/{glossary.80e53e05.js → glossary.238763c8.js} +1 -1
  91. package/dist/assets/{glossary.c84cb559.js → glossary.db37b807.js} +1 -1
  92. package/dist/assets/{go.b86f91ab.js → go.bff42e4e.js} +1 -1
  93. package/dist/assets/{groovy.cd378bb4.js → groovy.2178a0f1.js} +1 -1
  94. package/dist/assets/{haml.a6cabf01.js → haml.315dd2c0.js} +1 -1
  95. package/dist/assets/{handlebars.5c6be823.js → handlebars.986c86d4.js} +1 -1
  96. package/dist/assets/{haskell-literate.c38a1697.js → haskell-literate.770d661e.js} +1 -1
  97. package/dist/assets/{haskell.a43190de.js → haskell.46e5ce8f.js} +1 -1
  98. package/dist/assets/{haxe.67ea76a0.js → haxe.d48c4abd.js} +1 -1
  99. package/dist/assets/he-IL.767fa735.js +1 -0
  100. package/dist/assets/{hooks.d1b00fc1.js → hooks.7b1e235e.js} +4 -4
  101. package/dist/assets/{htmlembedded.d7fc4ddf.js → htmlembedded.f6dde48f.js} +1 -1
  102. package/dist/assets/{htmlmixed.42236134.js → htmlmixed.4a641ad9.js} +1 -1
  103. package/dist/assets/{http.8876645f.js → http.3015a70d.js} +1 -1
  104. package/dist/assets/id-ID.f65ae499.js +1 -0
  105. package/dist/assets/{idl.1e06cb13.js → idl.f2f96147.js} +1 -1
  106. package/dist/assets/{iis.2b991a80.js → iis.67a83939.js} +1 -1
  107. package/dist/assets/{import-export.74a08d53.js → import-export.92aee031.js} +1 -1
  108. package/dist/assets/{index.ab135b59.js → index.0645834a.js} +1 -1
  109. package/dist/assets/{index.791e9a3d.js → index.0b247af5.js} +3 -3
  110. package/dist/assets/{index.4894f51e.js → index.0d2e59f7.js} +1 -1
  111. package/dist/assets/{index.15e3c95b.js → index.0eaf700c.js} +1 -1
  112. package/dist/assets/{index.58ce5d3f.js → index.197b17c1.js} +1 -1
  113. package/dist/assets/{index.36361e5b.js → index.1a3f31c4.js} +1 -1
  114. package/dist/assets/{index.e24720c2.js → index.1bbfd138.js} +1 -1
  115. package/dist/assets/{index.aeca2d25.js → index.1cd3d5ba.js} +1 -1
  116. package/dist/assets/{index.094d7435.js → index.22f2ba3c.js} +1 -1
  117. package/dist/assets/{index.b3227ed5.js → index.26419dc6.js} +1 -1
  118. package/dist/assets/{index.c0a6d945.js → index.27f67d42.js} +1 -1
  119. package/dist/assets/{index.5e2156f1.js → index.28a0ece3.js} +1 -1
  120. package/dist/assets/{index.719a1bf6.css → index.29c0adc9.css} +1 -1
  121. package/dist/assets/{index.43fc16cf.js → index.2e9e634f.js} +1 -1
  122. package/dist/assets/{index.a157d24b.js → index.322dc6a4.js} +1 -1
  123. package/dist/assets/{index.970729f9.js → index.32e3af07.js} +1 -1
  124. package/dist/assets/{index.44dfee18.js → index.34878ac2.js} +1 -1
  125. package/dist/assets/{index.b91f7cb9.js → index.38794fb2.js} +1 -1
  126. package/dist/assets/{index.4f3e1405.js → index.3907fbe9.js} +1 -1
  127. package/dist/assets/{index.8e6a2df6.js → index.39c3868e.js} +1 -1
  128. package/dist/assets/index.3ad998ab.css +1 -0
  129. package/dist/assets/{index.6b8582b3.js → index.46908e35.js} +1 -1
  130. package/dist/assets/{index.5785bd5b.js → index.4a4f8949.js} +1 -1
  131. package/dist/assets/{index.8b727b3d.js → index.4a82f998.js} +1 -1
  132. package/dist/assets/{index.3dbbeee8.js → index.54ef22f3.js} +1 -1
  133. package/dist/assets/index.556512f9.js +1 -0
  134. package/dist/assets/{index.ee33b489.js → index.5713cf94.js} +1 -1
  135. package/dist/assets/{index.5efaa053.js → index.57954ae2.js} +1 -1
  136. package/dist/assets/{index.21e15966.js → index.594e4655.js} +1 -1
  137. package/dist/assets/{index.5bccbb70.js → index.5af46380.js} +1 -1
  138. package/dist/assets/{index.f45296e2.js → index.5b4bffdb.js} +1 -1
  139. package/dist/assets/{index.7fe2a6c1.js → index.5b507941.js} +1 -1
  140. package/dist/assets/{index.b990ffa7.js → index.6120d483.js} +1 -1
  141. package/dist/assets/{index.1c2bca61.js → index.620380a7.js} +1 -1
  142. package/dist/assets/{index.4caf473d.js → index.66b6c68b.js} +1 -1
  143. package/dist/assets/{index.286f3139.js → index.686784f1.js} +1 -1
  144. package/dist/assets/{index.b4512435.js → index.6c88db6e.js} +1 -1
  145. package/dist/assets/{index.238d8ccc.js → index.78f834f7.js} +1 -1
  146. package/dist/assets/{index.ac660d97.js → index.7ce1e572.js} +1 -1
  147. package/dist/assets/{index.34e50685.js → index.7dfe02f2.js} +1 -1
  148. package/dist/assets/{index.16102ca4.js → index.7e2708ed.js} +1 -1
  149. package/dist/assets/{index.ca46607e.js → index.7e4713d2.js} +1 -1
  150. package/dist/assets/{index.d9e06c0f.js → index.7eae9d5a.js} +1 -1
  151. package/dist/assets/{index.63beca13.js → index.81aae858.js} +1 -1
  152. package/dist/assets/{index.fee1fadb.js → index.83e516d5.js} +1 -1
  153. package/dist/assets/{index.2fa94ca6.js → index.84f0c372.js} +1 -1
  154. package/dist/assets/{index.8d64a2cc.js → index.86670575.js} +1 -1
  155. package/dist/assets/{index.ebc5fd3e.js → index.87b80a1b.js} +1 -1
  156. package/dist/assets/{index.d78b4dd1.js → index.92f081c8.js} +1 -1
  157. package/dist/assets/{index.86900d0e.js → index.9728d28b.js} +1 -1
  158. package/dist/assets/{index.ebace2a1.js → index.9ea39797.js} +1 -1
  159. package/dist/assets/{index.ce459a32.js → index.9f6f893d.js} +1 -1
  160. package/dist/assets/{index.38ca65a8.js → index.a07c2783.js} +1 -1
  161. package/dist/assets/{index.3a449212.js → index.a1938c4c.js} +1 -1
  162. package/dist/assets/{index.d3e27d97.js → index.a1e36825.js} +1 -1
  163. package/dist/assets/{index.fd19f059.js → index.a4be7bd2.js} +1 -1
  164. package/dist/assets/{index.048bfcd4.js → index.a4f50556.js} +1 -1
  165. package/dist/assets/{index.727f38c4.js → index.a84a7598.js} +1 -1
  166. package/dist/assets/{index.9a2ded43.js → index.a981939a.js} +1 -1
  167. package/dist/assets/{index.ffa2a1cd.js → index.ad382721.js} +1 -1
  168. package/dist/assets/{index.dd5b5aec.js → index.b07b6c71.js} +1 -1
  169. package/dist/assets/{index.766f9329.js → index.b440ccbe.js} +1 -1
  170. package/dist/assets/{index.8b83352c.js → index.b4f005cc.js} +1 -1
  171. package/dist/assets/{index.504c871e.js → index.b7016c72.js} +1 -1
  172. package/dist/assets/{index.dae019ea.js → index.b73fc9df.js} +1 -1
  173. package/dist/assets/{index.efb2f918.js → index.b7eac46d.js} +1 -1
  174. package/dist/assets/{index.65ef9955.js → index.b8bc9ce9.js} +1 -1
  175. package/dist/assets/{index.6be1ec19.js → index.ba4d69a6.js} +1 -1
  176. package/dist/assets/{index.7f1515ca.js → index.babc408d.js} +1 -1
  177. package/dist/assets/{index.a14f652a.js → index.bb9b3d77.js} +1 -1
  178. package/dist/assets/{index.6ac5a367.js → index.bcef0184.js} +1 -1
  179. package/dist/assets/{index.558dbe9d.js → index.bf489604.js} +1 -1
  180. package/dist/assets/{index.5552d1ba.entry.js → index.c02613ac.entry.js} +219 -219
  181. package/dist/assets/{index.73791b0b.js → index.c210d71e.js} +1 -1
  182. package/dist/assets/{index.6c3cfd9d.js → index.c378895c.js} +1 -1
  183. package/dist/assets/{index.8b6e1cf5.js → index.c7c5db2b.js} +1 -1
  184. package/dist/assets/{index.909efb92.js → index.d7318062.js} +1 -1
  185. package/dist/assets/{index.bb39eac1.js → index.db3bc6a7.js} +1 -1
  186. package/dist/assets/{index.87997092.js → index.e18ed1ac.js} +1 -1
  187. package/dist/assets/{index.b73eaa87.js → index.e22e6eb6.js} +1 -1
  188. package/dist/assets/{index.e7e3b4f1.js → index.e3c74acd.js} +1 -1
  189. package/dist/assets/{index.0152af18.js → index.e5ffe5fd.js} +1 -1
  190. package/dist/assets/{index.dccdb81c.js → index.ef505888.js} +1 -1
  191. package/dist/assets/{index.938b9c64.js → index.f32b69c8.js} +1 -1
  192. package/dist/assets/{index.22cbe4df.js → index.f7c78032.js} +1 -1
  193. package/dist/assets/{index.937b45e4.js → index.fd0568fe.js} +1 -1
  194. package/dist/assets/{input-rich-text-html.c3a5d829.js → input-rich-text-html.f0b71db8.js} +30 -30
  195. package/dist/assets/{insights.0f2b188e.js → insights.c3df1bb3.js} +2 -2
  196. package/dist/assets/{installation.131e828a.js → installation.4ab6ce97.js} +1 -1
  197. package/dist/assets/{interface.aa4f61a0.js → interface.1195a442.js} +1 -1
  198. package/dist/assets/{interfaces.fc4c7384.js → interfaces.0dddec2f.js} +1 -1
  199. package/dist/assets/{introduction.b1da78a4.js → introduction.201b3a46.js} +2 -2
  200. package/dist/assets/{introduction.0f06a30b.js → introduction.2a49238f.js} +1 -1
  201. package/dist/assets/{introduction.24acabd2.js → introduction.569a3b41.js} +4 -4
  202. package/dist/assets/{introduction.e8ce5583.js → introduction.daef5dfe.js} +1 -1
  203. package/dist/assets/it-IT.b5b391d8.js +1 -0
  204. package/dist/assets/{items.cc5ed80d.js → items.207153dc.js} +10 -10
  205. package/dist/assets/{items.b5bb1efd.js → items.cc802753.js} +1 -1
  206. package/dist/assets/{javascript-hint.6d6f81e5.js → javascript-hint.da53c929.js} +1 -1
  207. package/dist/assets/{javascript.b46feeed.js → javascript.e7187534.js} +1 -1
  208. package/dist/assets/{jinja2.b4f1b6ad.js → jinja2.b92b3bf4.js} +1 -1
  209. package/dist/assets/{jsx.211683b6.js → jsx.cd35bc1f.js} +1 -1
  210. package/dist/assets/{julia.baee0bfc.js → julia.f2e27ad8.js} +1 -1
  211. package/dist/assets/{layouts.1b59a4c4.js → layouts.39ffa712.js} +1 -1
  212. package/dist/assets/{layouts.2759613b.js → layouts.6d10b629.js} +3 -3
  213. package/dist/assets/{livescript.cce15eeb.js → livescript.f9157170.js} +1 -1
  214. package/dist/assets/{localization.854fe2a6.js → localization.6486db5d.js} +1 -1
  215. package/dist/assets/{lua.2285f263.js → lua.fd37e5a7.js} +1 -1
  216. package/dist/assets/{manual.e19c207e.js → manual.edc6cff6.js} +4 -4
  217. package/dist/assets/{mark-selection.4abbe02e.js → mark-selection.5ffc9e99.js} +1 -1
  218. package/dist/assets/{match-highlighter.28d31a20.js → match-highlighter.55770437.js} +1 -1
  219. package/dist/assets/{mathematica.326d84f6.js → mathematica.5933a7bf.js} +1 -1
  220. package/dist/assets/{mbox.0bf9befe.js → mbox.48b2cada.js} +1 -1
  221. package/dist/assets/{migrations.70984e94.js → migrations.ecdb3334.js} +1 -1
  222. package/dist/assets/{mirc.6eedfef8.js → mirc.577ffc8b.js} +1 -1
  223. package/dist/assets/{mllike.96a9792b.js → mllike.71874c4d.js} +1 -1
  224. package/dist/assets/{modelica.a729f46d.js → modelica.910d3adb.js} +1 -1
  225. package/dist/assets/{modules.368e658d.js → modules.0dab0325.js} +1 -1
  226. package/dist/assets/{mscgen.fcbf244c.js → mscgen.12b68d55.js} +1 -1
  227. package/dist/assets/{multiplex.e75d927b.js → multiplex.c53fe1f2.js} +1 -1
  228. package/dist/assets/{mumps.b063975e.js → mumps.0ffff562.js} +1 -1
  229. package/dist/assets/{nginx.486ac0b3.js → nginx.61bbdd3d.js} +1 -1
  230. package/dist/assets/no-NO.f3dbe81b.js +1 -0
  231. package/dist/assets/{notifications.71793dcb.js → notifications.5b10ad0b.js} +1 -1
  232. package/dist/assets/{nsis.1f1f7f19.js → nsis.91b5976a.js} +1 -1
  233. package/dist/assets/{ntriples.23df3a06.js → ntriples.4da65405.js} +1 -1
  234. package/dist/assets/{octave.a7c39dfd.js → octave.4caf8800.js} +1 -1
  235. package/dist/assets/{operations.3a53915d.js → operations.296e9710.js} +11 -11
  236. package/dist/assets/operations.30fc2625.js +1 -0
  237. package/dist/assets/{operations.687b2da1.js → operations.c5ee7367.js} +3 -3
  238. package/dist/assets/{overlay.25718331.js → overlay.6ab0a439.js} +1 -1
  239. package/dist/assets/{overview.2aef2737.js → overview.211898b7.js} +1 -1
  240. package/dist/assets/{overview.77c84906.js → overview.91ec2552.js} +1 -1
  241. package/dist/assets/{overview.42c9bc71.js → overview.eb55d14f.js} +1 -1
  242. package/dist/assets/{oz.50920854.js → oz.f353e7c0.js} +1 -1
  243. package/dist/assets/{panels.1c9e59a5.js → panels.9b48e2ab.js} +3 -3
  244. package/dist/assets/{pascal.254524bf.js → pascal.81884765.js} +1 -1
  245. package/dist/assets/{pegjs.109b328f.js → pegjs.9b05a647.js} +1 -1
  246. package/dist/assets/{perl.a6a13b0b.js → perl.1864a477.js} +1 -1
  247. package/dist/assets/{permissions.7c6e7d90.js → permissions.66ecdced.js} +7 -7
  248. package/dist/assets/{php.ffc2eaca.js → php.005144e0.js} +1 -1
  249. package/dist/assets/{pig.5098455f.js → pig.849ddb42.js} +1 -1
  250. package/dist/assets/{pinia.b8e2dbe3.entry.js → pinia.ee5b7a45.entry.js} +2 -2
  251. package/dist/assets/pl-PL.25397b47.js +1 -0
  252. package/dist/assets/{plesk.09c47961.js → plesk.0a2c4855.js} +5 -5
  253. package/dist/assets/{powershell.1a2fb8e0.js → powershell.bb5a2d18.js} +1 -1
  254. package/dist/assets/presets-bookmarks.0a83b030.js +1 -0
  255. package/dist/assets/{presets.a6220515.js → presets.198afe35.js} +6 -6
  256. package/dist/assets/project-settings.eebfbd8c.js +1 -0
  257. package/dist/assets/{projects.7b210ac2.js → projects.398642da.js} +1 -1
  258. package/dist/assets/{properties.f55a4bf0.js → properties.fdd23eab.js} +1 -1
  259. package/dist/assets/{protobuf.9cc87b15.js → protobuf.da0cb1b3.js} +1 -1
  260. package/dist/assets/pt-BR.664ac34b.js +1 -0
  261. package/dist/assets/{pug.09de4b33.js → pug.a693bc7a.js} +1 -1
  262. package/dist/assets/{puppet.7cd5c3df.js → puppet.da6ba66e.js} +1 -1
  263. package/dist/assets/{python.8647bbb6.js → python.03cf4e30.js} +1 -1
  264. package/dist/assets/{q.83eacee3.js → q.bb726ddc.js} +1 -1
  265. package/dist/assets/{query.b72e23c9.js → query.8ccae3a9.js} +1 -1
  266. package/dist/assets/{quickstart.1d485356.js → quickstart.a567dd49.js} +2 -2
  267. package/dist/assets/{quickstart.0e152d2a.js → quickstart.de9843d9.js} +1 -1
  268. package/dist/assets/{r.22d59660.js → r.d66588c8.js} +1 -1
  269. package/dist/assets/{readme.a5652282.js → readme.1996f39f.js} +1 -1
  270. package/dist/assets/{relations.804b318b.js → relations.ad6c2398.js} +4 -4
  271. package/dist/assets/{relationship.040a5095.js → relationship.32af0bee.js} +1 -1
  272. package/dist/assets/{relationships.ff02a9ff.js → relationships.1cd9b5d9.js} +8 -8
  273. package/dist/assets/{resources.efe9810e.js → resources.f947272a.js} +1 -1
  274. package/dist/assets/{revisions.121cb7de.js → revisions.c13b66e0.js} +3 -3
  275. package/dist/assets/{roles.680acff2.js → roles.e767878c.js} +11 -11
  276. package/dist/assets/{rpm.45123b1f.js → rpm.d7012013.js} +1 -1
  277. package/dist/assets/{rst.0d2ffa96.js → rst.56d68830.js} +1 -1
  278. package/dist/assets/ru-RU.71121ae2.js +1 -0
  279. package/dist/assets/{ruby.0befbc72.js → ruby.6db5c270.js} +1 -1
  280. package/dist/assets/{running-locally.4b4aa0d8.js → running-locally.6bdbd71e.js} +4 -4
  281. package/dist/assets/{runtime-core.esm-bundler.e3d5f5b7.js → runtime-core.esm-bundler.32cac88a.js} +1 -1
  282. package/dist/assets/{rust.0aadcb17.js → rust.8f526a93.js} +1 -1
  283. package/dist/assets/{sas.6509cc75.js → sas.05b84ccc.js} +1 -1
  284. package/dist/assets/{sass.3fef2c5c.js → sass.b3a2e00a.js} +1 -1
  285. package/dist/assets/{schema.5f5eb18e.js → schema.7eb35ba9.js} +1 -1
  286. package/dist/assets/{scheme.6583195f.js → scheme.f2ccc6ec.js} +1 -1
  287. package/dist/assets/{sdk.84d76266.js → sdk.d1cc970a.js} +9 -9
  288. package/dist/assets/{security.6a8942ba.js → security.0f4880b1.js} +1 -1
  289. package/dist/assets/{server.b24a421b.js → server.bcf6175e.js} +5 -5
  290. package/dist/assets/{settings.d91e399d.js → settings.25cab07d.js} +1 -1
  291. package/dist/assets/{settings.d3a9b46c.js → settings.f21d244b.js} +10 -10
  292. package/dist/assets/{shares.6bb87993.js → shares.cc7ce751.js} +1 -1
  293. package/dist/assets/{shell.c33a256a.js → shell.35fbb76b.js} +1 -1
  294. package/dist/assets/{show-hint.e10f26ff.js → show-hint.2f9efc42.js} +1 -1
  295. package/dist/assets/{sieve.adb9c5cd.js → sieve.b326a040.js} +1 -1
  296. package/dist/assets/{slim.34875ef9.js → slim.cdf5ce1a.js} +1 -1
  297. package/dist/assets/{smalltalk.ce10cb5f.js → smalltalk.28f25b00.js} +1 -1
  298. package/dist/assets/{smarty.42882935.js → smarty.3ffc5d45.js} +1 -1
  299. package/dist/assets/{solr.5286f18c.js → solr.bf049032.js} +1 -1
  300. package/dist/assets/{soy.4f95bef4.js → soy.97d895d7.js} +1 -1
  301. package/dist/assets/{sparql.771a3939.js → sparql.f7c11eb4.js} +1 -1
  302. package/dist/assets/{spreadsheet.84749884.js → spreadsheet.583570fc.js} +1 -1
  303. package/dist/assets/{sql.e6ae0ded.js → sql.581815c1.js} +1 -1
  304. package/dist/assets/{sso-examples.eb8e7423.js → sso-examples.0b7c81f4.js} +3 -3
  305. package/dist/assets/{sso.c929d07f.js → sso.49e87f3a.js} +2 -2
  306. package/dist/assets/{stex.248311c6.js → stex.6a9989ca.js} +1 -1
  307. package/dist/assets/{stylus.75da53bc.js → stylus.6b1b2f94.js} +1 -1
  308. package/dist/assets/{support.09b549ef.js → support.55199a3e.js} +1 -1
  309. package/dist/assets/{swift.9d07c193.js → swift.b1b97d51.js} +1 -1
  310. package/dist/assets/{tcl.7a1d8f5e.js → tcl.9e42954d.js} +1 -1
  311. package/dist/assets/{teams.ab67345b.js → teams.541d1f0c.js} +1 -1
  312. package/dist/assets/{textile.3f318174.js → textile.d8117534.js} +1 -1
  313. package/dist/assets/{themes.078e9124.js → themes.47d63f74.js} +2 -2
  314. package/dist/assets/{tiddlywiki.70063591.js → tiddlywiki.e9e030d1.js} +1 -1
  315. package/dist/assets/{tiki.be5148f3.js → tiki.627c91cc.js} +1 -1
  316. package/dist/assets/{toml.1c4a2454.js → toml.ada24f3a.js} +1 -1
  317. package/dist/assets/{tornado.2951da45.js → tornado.c72c7dd4.js} +1 -1
  318. package/dist/assets/tr-TR.f894f4bf.js +1 -0
  319. package/dist/assets/{translation-strings.2e3ee87a.js → translation-strings.6f6737a7.js} +1 -1
  320. package/dist/assets/{translations.36a34606.js → translations.4a2d59ad.js} +1 -1
  321. package/dist/assets/{translations.fb062afb.js → translations.7e97efc3.js} +1 -1
  322. package/dist/assets/triggers.6baf300f.js +1 -0
  323. package/dist/assets/{troff.87ee9d68.js → troff.11b7056e.js} +1 -1
  324. package/dist/assets/{ttcn-cfg.c84cc180.js → ttcn-cfg.afb1561e.js} +1 -1
  325. package/dist/assets/{ttcn.2e4df029.js → ttcn.78233af9.js} +1 -1
  326. package/dist/assets/{turtle.95894809.js → turtle.77f61426.js} +1 -1
  327. package/dist/assets/{twig.d66473bf.js → twig.84e27436.js} +1 -1
  328. package/dist/assets/{ubuntu.79ece84b.js → ubuntu.14eb3ea1.js} +2 -2
  329. package/dist/assets/{upgrades-migrations.ea8bea7b.js → upgrades-migrations.a9a9ca7c.js} +1 -1
  330. package/dist/assets/{use-sync.1dee2657.js → use-sync.3af8e920.js} +8 -8
  331. package/dist/assets/{user-directory.bac5f2ee.js → user-directory.59b8470a.js} +1 -1
  332. package/dist/assets/{users-roles-permissions.e36d0bc8.js → users-roles-permissions.ed9e814c.js} +1 -1
  333. package/dist/assets/{users.a9ad4dd9.js → users.de050e21.js} +1 -1
  334. package/dist/assets/{utilities.00432834.js → utilities.99f7a370.js} +1 -1
  335. package/dist/assets/{validation.2c0c5444.js → validation.10b8a2f3.js} +1 -1
  336. package/dist/assets/{vb.6fa3f35c.js → vb.11aab2ba.js} +1 -1
  337. package/dist/assets/{vbscript.9733613a.js → vbscript.11dc0996.js} +1 -1
  338. package/dist/assets/{velocity.01fb0be3.js → velocity.8f652837.js} +1 -1
  339. package/dist/assets/{verilog.424d22ca.js → verilog.9b0b4ff6.js} +1 -1
  340. package/dist/assets/{vhdl.f35cfe5f.js → vhdl.1eeb9dd1.js} +1 -1
  341. package/dist/assets/vi-VN.a2a22682.js +1 -0
  342. package/dist/assets/{vue-i18n.3cc3a25f.entry.js → vue-i18n.ab96dd58.entry.js} +1 -1
  343. package/dist/assets/{vue-router.1ad5ff1f.entry.js → vue-router.4ad81e1d.entry.js} +2 -2
  344. package/dist/assets/vue.1c9ff390.entry.js +1 -0
  345. package/dist/assets/{vue.00bb2733.js → vue.853d1839.js} +1 -1
  346. package/dist/assets/{vue.runtime.esm-bundler.ee2a778f.js → vue.runtime.esm-bundler.61bedc6f.js} +1 -1
  347. package/dist/assets/{wast.70fe5a84.js → wast.9145f947.js} +1 -1
  348. package/dist/assets/{webhooks.e7e122b7.js → webhooks.53b2215e.js} +1 -1
  349. package/dist/assets/{webhooks.f0dfc270.js → webhooks.a7e035b7.js} +1 -1
  350. package/dist/assets/{webidl.b85758c5.js → webidl.3cd27141.js} +1 -1
  351. package/dist/assets/{xquery.ac0d6186.js → xquery.0d6b6717.js} +1 -1
  352. package/dist/assets/{yacas.bbc1de95.js → yacas.5ee3e34b.js} +1 -1
  353. package/dist/assets/{yaml-frontmatter.bcf994b4.js → yaml-frontmatter.995d4736.js} +1 -1
  354. package/dist/assets/{yaml.aa565fd3.js → yaml.0426b27a.js} +1 -1
  355. package/dist/assets/{z80.6ef87436.js → z80.415e79a5.js} +1 -1
  356. package/dist/assets/zh-CN.96c0a25c.js +1 -0
  357. package/dist/assets/zh-TW.7333a9ec.js +1 -0
  358. package/dist/index.html +8 -8
  359. package/package.json +26 -5
  360. package/dist/assets/activity-log.86a173c5.js +0 -1
  361. package/dist/assets/bg-BG.6ccbe392.js +0 -1
  362. package/dist/assets/cs-CZ.3f25becd.js +0 -1
  363. package/dist/assets/da-DK.3460bab1.js +0 -1
  364. package/dist/assets/de-DE.980a9df8.js +0 -1
  365. package/dist/assets/display.c9e4c238.js +0 -1
  366. package/dist/assets/es-419.b77b2103.js +0 -1
  367. package/dist/assets/es-CL.e5af69da.js +0 -1
  368. package/dist/assets/es-ES.7fd65f45.js +0 -1
  369. package/dist/assets/es-MX.84fb11f1.js +0 -1
  370. package/dist/assets/fi-FI.f2ba369a.js +0 -1
  371. package/dist/assets/flows.c21cd837.js +0 -16
  372. package/dist/assets/fr-CA.bd73b96f.js +0 -1
  373. package/dist/assets/fr-FR.f86a9f41.js +0 -1
  374. package/dist/assets/he-IL.7b11dc5e.js +0 -1
  375. package/dist/assets/id-ID.46c8c32a.js +0 -1
  376. package/dist/assets/index.03840c13.css +0 -1
  377. package/dist/assets/index.cd90c757.js +0 -1
  378. package/dist/assets/it-IT.922112b6.js +0 -1
  379. package/dist/assets/no-NO.3bb25fb7.js +0 -1
  380. package/dist/assets/operations.845da620.js +0 -1
  381. package/dist/assets/pl-PL.dfc1a032.js +0 -1
  382. package/dist/assets/presets-bookmarks.3d6f189f.js +0 -1
  383. package/dist/assets/project-settings.5ba0a483.js +0 -1
  384. package/dist/assets/pt-BR.a8e95f48.js +0 -1
  385. package/dist/assets/ru-RU.9f19c25d.js +0 -1
  386. package/dist/assets/tr-TR.039a12a9.js +0 -1
  387. package/dist/assets/triggers.44226865.js +0 -1
  388. package/dist/assets/vi-VN.fff05bda.js +0 -1
  389. package/dist/assets/vue.f73b7cd5.entry.js +0 -1
  390. package/dist/assets/zh-CN.e03e0e56.js +0 -1
  391. package/dist/assets/zh-TW.453f1e60.js +0 -1
@@ -1,2 +1,2 @@
1
- import{a as i,o as d,b as r,w as o,g as t,e as s,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const u={class:"markdown-body"},h=t("blockquote",null,[t("p",null,"Collections are a set of items. This can be a 1-1 data table in SQL, a group of other collections, or a readonly view. They come with all the same power and functionality of data tables, despite the less technical name.")],-1),_=t("h2",{id:"overview",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#overview"},"#"),e(" Overview")],-1),p=t("video",{title:"Overview",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/data-model-20220805/collections-20220805A.mp4",type:"video/mp4"})],-1),f=e("Collections are data tables. Typically, you access items within a collection in the "),m=e("Content Module"),g=e("."),y=t("h2",{id:"system-collections",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#system-collections"},"#"),e(" System Collections")],-1),v=t("video",{title:"System Collections",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/system-collections-20220805A.mp4",type:"video/mp4"})],-1),w=t("p",null,"System collections store the data and configuration details required to power your project.",-1),b=t("p",null,[e("Since system collections store information that powers your Directus project. You cannot reconfigure system collections or any of their default fields, as any reconfigurations would break your project. However, you "),t("em",null,"can"),e(" create and configure new fields on a system collection. This lets you safely customize your data model as desired.")],-1),S=t("p",null,"System collections are not displayed in the Content Module. The following table will go over the logic and functionality each system collection is responsible for, as well as where to find relevant App and API documentation.",-1),C=t("thead",null,[t("tr",null,[t("th",null,"System Collection"),t("th",null,"Purpose"),t("th",null,"APP"),t("th",null,"API")])],-1),T=t("td",null,"Activity",-1),k=t("td",null,"Tracks and stores all events within Directus, giving full accountability over everything.",-1),A=e("Activity Log"),D=e("Activity"),F=t("td",null,"Collections",-1),I=t("td",null,"Stores data table & configuration details each and every Collection.",-1),x=e("Collections"),N=e("Collections"),P=t("td",null,"Dashboards",-1),M=t("td",null,"Stores dashboard configuration details and all relationally linked panels.",-1),O=e("Insights"),R=t("td",null,[t("strong",null,"N/A")],-1),j=t("td",null,"Fields",-1),B=t("td",null,"Stores configuration details for each field.",-1),L=e("Fields"),U=e("Fields"),H=t("td",null,"Files",-1),V=t("td",null,"This stores file location from asset storage as well as any data associated with that file.",-1),E=e("File Library"),q=e("Files"),W=t("td",null,"Flows",-1),K=t("td",null,"Stores basic logic required for Flows, which enable event-triggered task automation.",-1),Q=e("Flows"),Y=e("Flows"),G=t("td",null,"Folders",-1),z=t("td",null,"Stores information required for Folders, which provide virtual file asset management.",-1),J=e("Folders"),X=e("Folders"),Z=t("tr",null,[t("td",null,"Migrations"),t("td",null,"Used by our install/upgrade process to track when migration scripts for a specific release have been run."),t("td",null,"It has no relevant app functionality."),t("td",null,[t("strong",null,"N/A")])],-1),$=t("td",null,"Notifications",-1),tt=t("td",null,"Stores details about in-app notifications.",-1),et=e("Module Bar"),ot=e(" and "),lt=e("Sidebar"),st=e("Notifications"),nt=t("td",null,"Operations",-1),it=t("td",null,[e("Stores information required for Operations, which are a part of "),t("a",{href:"#flows"},"Flows"),e(".")],-1),at=e("Operations"),ct=e("Operations"),dt=t("td",null,"Panels",-1),rt=t("td",null,[e("This stores information about individual analytics panels, which are displayed on "),t("a",{href:"#dashboards"},"Dashboards"),e(".")],-1),ut=e("Insights"),ht=t("td",null,[t("strong",null,"N/A")],-1),_t=t("td",null,"Permissions",-1),pt=t("td",null,"This stores the access permissions configured for roles.",-1),ft=e("Users, Roles & Permissions"),mt=e("Permissions"),gt=t("td",null,"Presets",-1),yt=t("td",null,"This stores details for presets and bookmarks.",-1),vt=e("Presents & Bookmarks"),wt=e("Presets"),bt=t("td",null,"Relations",-1),St=t("td",null,"This stores information about relationships between collections.",-1),Ct=e("Relationships"),Tt=e("Relations"),kt=t("td",null,"Revisions",-1),At=t("td",null,"Revisions are changes/edits made to Items. Directus keeps track of edits made, so you\u2019re able to revert to a previous state at will.",-1),Dt=e("Revert an Item"),Ft=e("Revisions"),It=t("td",null,"Roles",-1),xt=t("td",null,"Stores information about each role created.",-1),Nt=e("Users, Roles, and Permissions"),Pt=e("Roles"),Mt=t("tr",null,[t("td",null,"Sessions"),t("td",null,"Stores information about each user session, for system purposes."),t("td",null,[t("strong",null,"N/A")]),t("td",null,[t("strong",null,"N/A")])],-1),Ot=t("td",null,"Settings",-1),Rt=t("td",null,[e("Stores all configurations made within "),t("strong",null,"Settings > Project Settings"),e(".")],-1),jt=e("Project Settings"),Bt=e("settings"),Lt=t("td",null,"Shares",-1),Ut=t("td",null,"Stores all information regarding data shares.",-1),Ht=e("Data Sharing"),Vt=t("td",null,null,-1),Et=t("td",null,"Users",-1),qt=t("td",null,"Stores information about each user within the platform.",-1),Wt=e("User Directory"),Kt=e("Users"),Qt=t("td",null,"Webhooks",-1),Yt=t("td",null,"Stores all information about configured webhooks.",-1),Gt=e("Webhooks"),zt=e("Webhooks"),Jt=t("h2",{id:"create-a-collection",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#create-a-collection"},"#"),e(" Create a Collection")],-1),Xt=t("video",{title:"Create a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:`https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/create-a-collection-20220805A.mp4
2
- `,type:"video/mp4"})],-1),Zt=t("p",null,"To create a collection, follow these steps.",-1),$t=t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(", click "),t("span",{mi:"",btn:""},"add"),e(" in the page header, and a drawer will open.")],-1),te=t("li",null,[e("Enter a unique "),t("strong",null,"Collection Name"),e(". This cannot be modified later, but can be translated."),t("br"),e(" This is used as the data table key, API collection key, and default collection name.")],-1),ee=e("Optional: Make any other configurations as desired. "),oe=t("li",null,[t("strong",null,"Singleton"),e(" \u2014 Toggles whether the collection is a "),t("a",{href:"#collection-setup"},"Singleton"),e(".")],-1),le=t("li",null,[t("strong",null,"Primary Key Field"),e(" \u2014 Sets the name of the primary key field, defaults to "),t("code",null,"id"),e(".")],-1),se=t("strong",null,"Type",-1),ne=e(" \u2014 Sets the "),ie=e("type of ID"),ae=e(" to use for this collection."),ce=t("li",null,[e("Click "),t("span",{mi:"",btn:""},"arrow_forward"),e(" to confirm.")],-1),de=t("li",null,[e("Enable and rename the other Optional System Fields as desired: "),t("ul",null,[t("li",null,[t("strong",null,"Status"),e(" \u2014 Stores item status.")]),t("li",null,[t("strong",null,"Sort"),e(" \u2014 Adds a field which enables drag-and-drop sorting of items.")]),t("li",null,[t("strong",null,"Created On"),e(" \u2014 Logs the date an item was created.")]),t("li",null,[t("strong",null,"Created By"),e(" \u2014 Logs the user that created this item.")]),t("li",null,[t("strong",null,"Updated On"),e(" \u2014 Logs the date an item was last updated.")]),t("li",null,[t("strong",null,"Updated By"),e(" \u2014 Stores the last user to edit the file.")])])],-1),re=t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm and create the collection.")],-1),ue=t("div",{class:"danger hint"},[t("div",{class:"hint-title"},"Immutable Keys"),t("p",null,[e("The collection name from step two cannot be modified after collection creation. However, you can override how it is displayed with "),t("a",{href:"#collection-setup"},"Collection Naming Translations"),e(".")])],-1),he=t("div",{class:"warning hint"},[t("div",{class:"hint-title"},"Composite Keys"),t("p",null,"Directus does not currently support composite keys. If your project uses composite keys, you will need to make an adjustment to the data model.")],-1),_e=t("div",{class:"warning hint"},[t("div",{class:"hint-title"},"SQL Views"),t("p",null,"Directus does not currently support creation of virtual tables via SQL Views.")],-1),pe=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Database Tables"),t("p",null,[e("Remember, a collection is simply a database table. Therefore, you can import or create a table directly in the database and it will automatically appear within your Directus project. The first time you manage that table, a "),t("code",null,"directus_collections"),e(" record will be created with default values.")])],-1),fe=t("h2",{id:"toggle-collection-visibility",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#toggle-collection-visibility"},"#"),e(" Toggle Collection Visibility")],-1),me=t("video",{title:"Hide a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/toggle-collection-visibility-20220805A.mp4",type:"video/mp4"})],-1),ge=t("p",null,"To toggle whether a collection is hidden by default in the Content Module, follow these steps.",-1),ye=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",icon:""},"more_vert"),e(" to open the collection\u2019s Context Menu.")]),t("li",null,[e("Select "),t("strong",null,"View Content"),e(" or "),t("strong",null,"Make Collection Hidden"),e(" to adjust visibility as desired.")])],-1),ve={class:"tip hint"},we=e("Assuming a user has "),be=e("access permissions"),Se=e(", hidden collections can still be viewed. They must right-click on the Navigation Bar and choose "),Ce=t("span",{mi:"",icon:""},"visibility",-1),Te=e(),ke=t("strong",null,"Show Hidden Collections",-1),Ae=e("."),De=t("h2",{id:"create-a-folder",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#create-a-folder"},"#"),e(" Create a Folder")],-1),Fe=t("video",{title:"Create a Folder",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/create-a-folder-20220805A.mp4",type:"video/mp4"})],-1),Ie=t("p",null,[e("Folders allow you to sub-nest and group how collections are displayed. This feature simply changes how the collections are displayed under "),t("strong",null,"Settings > Data Model"),e(" and in the Content Module. It has no impact on the data model. To create a folder, follow these steps.")],-1),xe=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",btn:"",muted:""},"create_new_folder"),e(" in the page header.")]),t("li",null,"Set a folder key, which will also be used as the folder\u2019s name."),t("li",null,"Optional: Set the folder icon, color, note and translations as desired."),t("li",null,[e("Click "),t("strong",null,"Save"),e(" to create your folder.")])],-1),Ne=t("h2",{id:"toggle-folder-display",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#toggle-folder-display"},"#"),e(" Toggle Folder Display")],-1),Pe=t("video",{title:"Toggle Folder Display",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/toggle-folder-display-20220805A.mp4",type:"video/mp4"})],-1),Me=t("p",null,"To toggle folder display, follow these steps.",-1),Oe=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",icon:""},"folder"),e(" on the desired collection to toggle the following displays: "),t("ul",null,[t("li",null,[t("strong",null,"Start Open")]),t("li",null,[t("strong",null,"Start Collapsed")]),t("li",null,[t("strong",null,"Always Open")])])])],-1),Re=t("h2",{id:"sort-and-nest-collections",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#sort-and-nest-collections"},"#"),e(" Sort and Nest Collections")],-1),je=t("video",{title:"Configure a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/sort-and-nest-collections.mp4",type:"video/mp4"})],-1),Be=t("p",null,[e("To sort and nest collections in "),t("strong",null,"Settings > Data Model"),e(" and "),t("strong",null,"Content Module"),e(", follow these steps.")],-1),Le=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click and drag "),t("span",{mi:"",icon:""},"drag_handle"),e(" to position collections as desired."),t("br"),e(" To nest a collection, drag below and to the right of an intended parent folder or collection.")])],-1),Ue=t("h2",{id:"configure-a-collection",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#configure-a-collection"},"#"),e(" Configure a Collection")],-1),He=t("video",{title:"Configure a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/configure-a-collection-20220805A.mp4",type:"video/mp4"})],-1),Ve=t("p",null,"To configure a collection, follow these steps.",-1),Ee=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(" and click the desired collection."),t("br"),e(" The collection\u2019s configuration page will open.")]),t("li",null,[e("Make configurations as desired. Configuration options are broken into six categories. "),t("ul",null,[t("li",null,[t("a",{href:"#fields-layout"},"Fields and Layout")]),t("li",null,[t("a",{href:"#collection-setup"},"Collection Setup")]),t("li",null,[t("a",{href:"#archive"},"Archive")]),t("li",null,[t("a",{href:"#sort-field"},"Sort")]),t("li",null,[t("a",{href:"#accountability"},"Accountability")]),t("li",null,[t("a",{href:"#duplication"},"Duplication")])])]),t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm.")])],-1),qe=t("h3",{id:"fields-%26-layout",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#fields-%26-layout"},"#"),e(" Fields & Layout")],-1),We=t("video",{title:"Fields and Layout",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/fields-and-layout-20220805A.mp4",type:"video/mp4"})],-1),Ke=e("This section allows you to create and configure fields, as well as configure how fields are displayed on the "),Qe=e("Item Details Page"),Ye=e(". To learn more, please see the documentation on "),Ge=e("fields"),ze=e("."),Je=t("h3",{id:"collection-setup",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#collection-setup"},"#"),e(" Collection Setup")],-1),Xe=t("video",{title:"Collection Setup",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/collection-setup-20220805A.mp4",type:"video/mp4"})],-1),Ze=t("p",null,"These controls allow you to modify how the collection is displayed within the Content Module.",-1),$e=t("li",null,[t("strong",null,"Collection Name"),e(" \u2014 Displays the collection\u2019s name, which cannot be modified. However, you can override the displayed name with Collection Naming Translations, shown lower on this list.")],-1),to=t("li",null,[t("strong",null,"Note"),e(" \u2014 Set a helpful note that explains the collection\u2019s purpose.")],-1),eo=t("li",null,[t("strong",null,"Icon"),e(" \u2014 Set an icon used throughout the app when referencing this collection.")],-1),oo=t("li",null,[t("strong",null,"Color"),e(" \u2014 Set a color for the icon, shown in the Navigation Bar and its page header.")],-1),lo=t("strong",null,"Display Template",-1),so=e(" \u2014 Create a "),no=e("Display Template"),io=e(" for the collection."),ao=t("li",null,[t("strong",null,"Hidden"),e(" \u2014 Toggle whether the collection should be globally hidden in the other app modules, even for admin users. You cannot hide collections for admins via permissions like other roles, so this comes in handy to tidy up the Content Module.")],-1),co=t("strong",null,"Singleton",-1),ro=e(" \u2014 Toggle to bypass the "),uo=e("Collection Page"),ho=e(" and take users to the "),_o=e("Item Details Page"),po=e("."),fo=t("strong",null,"Collection Naming Translations",-1),mo=e(" \u2014 Translate the collection name across multiple languages. When the default language is changed in "),go=e("Project Settings"),yo=e(" or "),vo=e("User Details Page"),wo=e(", the relevant translation, if any exists, will be used throughout the app."),bo={class:"tip hint"},So=t("div",{class:"hint-title"},"Collection Naming Translations",-1),Co=e("By default, Directus uses the "),To=e("Title Formatter"),ko=e(" to display collection keys as human readable names, but you can also use translations to explicitly rename more technical table keys."),Ao=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"What's a Singleton?"),t("p",null,[e("A collection that only contains one single item. For example, a website\u2019s "),t("strong",null,"About Us"),e(" page.")])],-1),Do=t("h3",{id:"archive",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#archive"},"#"),e(" Archive")],-1),Fo=t("video",{title:"Archive",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/archive-20220805A.mp4",type:"video/mp4"})],-1),Io=t("p",null,[e("Selects a field to handle archiving items. This provides a "),t("em",null,"soft-delete"),e(" functionality for items in a collection. Archived items will still exist in the collection and database, but are filtered within the Data Studio. To configure an archive field, set the following four input fields as desired.")],-1),xo=t("li",null,[t("strong",null,"Archive Field"),e(" \u2014 Selects the archive field from a dropdown menu.")],-1),No=t("strong",null,"Archive App Filter",-1),Po=e(" \u2014 Toggles whether app users can "),Mo=e("filter for archived items"),Oo=e("."),Ro=t("strong",null,"Archive Value",-1),jo=e(" \u2014 A value that is assigned to the field when an item is "),Bo=e("archived"),Lo=e("."),Uo=t("strong",null,"Unarchive Value",-1),Ho=e(" \u2014 A value that is assigned to the field when an item is "),Vo=e("unarchived"),Eo=e("."),qo=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Automatic Setup"),t("p",null,[e("When you "),t("a",{href:"#create-a-collection"},"create a collection"),e(", you have the option to create an optional Status Field. If you choose to include this field, the collection\u2019s archive settings will be automatically configured for you.")])],-1),Wo=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Archive Field Values"),t("p",null,"The archive fields can contain any number of additional values besides the archived and unarchived values defined above.")],-1),Ko=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Archived Item Management via API"),t("p",null,"Archived items are hidden in the app by default, but they are still returned normally via the API unless explicitly filtered out. This gives you the flexibility to manage archived items however you want when working with the API.")],-1),Qo=t("h3",{id:"sort-field",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#sort-field"},"#"),e(" Sort Field")],-1),Yo=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Batch Edit Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/manually-sort-items-20220415A.mp4",type:"video/mp4"})],-1),Go=e("The sort feature enables users to "),zo=e("manually sort Items"),Jo=e(" within the Data Studio. This is typically shown on the "),Xo=t("strong",null,"Content Module > Collection Page",-1),Zo=e(". It can also be used for sorting items within "),$o=e("Junction Collections"),tl=e(". A standard field, configured with an "),el=t("code",null,"INTEGER",-1),ol=e(" data type, is required. As shown in the video, fields which cannot serve as sort fields will be grayed out and unselectable in the Sort Field dropdown."),ll=t("p",null,[t("strong",null,"Sort Field"),e(" \u2014 Select a field to custom sort and order items. Click "),t("strong",null,"Deselect"),e(" to disable.")],-1),sl=t("p",null,"To configure a sort field, follow these steps.",-1),nl=e("Create a Field"),il=e(" with an "),al=t("code",null,"INTEGER",-1),cl=e(" data type."),dl=t("li",null,[e("Choose a field from the dropdown under "),t("strong",null,"Settings > Data Model > [Collection] > Sort"),e(".")],-1),rl=t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm.")],-1),ul=e("Once you sort field is configured, you may want to learn how to "),hl=e("manually sort Items"),_l=e("."),pl={class:"tip hint"},fl=t("div",{class:"hint-title"},"Automatic Setup",-1),ml=e("When you "),gl=e("create a Collection"),yl=e(", you have the option of creating a "),vl=t("strong",null,"Sort",-1),wl=e(" field. If you choose to include this field, the collection\u2019s sort settings will automatically be configured for you."),bl=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Interface Sorting"),t("p",null,[e("To configure manual sorting within a relational Interface (e.g., M2M, O2M, or M2A), configure as above, but also set the "),t("strong",null,"Sort Field"),e(" within the relationship section of the field\u2019s configuration drawer.")])],-1),Sl=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Configure to Hidden"),t("p",null,[e("You can also set this field to be "),t("strong",null,"Hidden"),e(" so it doesn\u2019t show up within the Item Details Page.")])],-1),Cl=t("h3",{id:"accountability",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#accountability"},"#"),e(" Accountability")],-1),Tl=t("video",{title:"Accountability",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/acountability-20220805A.mp4",type:"video/mp4"})],-1),kl=e("By default, your Directus Project tracks all "),Al=e("activity"),Dl=e(" and "),Fl=e("revisions"),Il=e(" for collections. However, you can override this and choose what data is tracked."),xl=t("ul",null,[t("li",null,[t("strong",null,"Activity & Revision Tracking"),e(" \u2014 The following options are supported: "),t("ul",null,[t("li",null,[t("strong",null,"Track Activity & Revisions")]),t("li",null,[t("strong",null,"Only Track Activity")]),t("li",null,[t("strong",null,"Do Not Track Anything")])])])],-1),Nl={class:"tip hint"},Pl=t("div",{class:"hint-title"},"Accountability vs. Telemetry",-1),Ml=e("Accountability is a log of "),Ol=t("em",null,"who does what",-1),Rl=e(" in your project. It is for your team\u2019s own use. This is different from "),jl=e("telemetry"),Bl=e(", which is configured under "),Ll=e("environment variables"),Ul=e("."),Hl=t("h3",{id:"duplication",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#duplication"},"#"),e(" Duplication")],-1),Vl=t("video",{title:"Duplication",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/duplicate-20220805A.mp4",type:"video/mp4"})],-1),El=t("p",null,[e("The "),t("strong",null,"Save as Copy"),e(" option on the Item Details Page offers a way to effectively duplicate the current item. Since there may be unique or relational data within the item, it\u2019s important to control exactly what will be copied. Duplication lets you configure which parent & relational field values will be copied when you use "),t("strong",null,"Save as Copy"),e(" on an item.")],-1),ql=t("ul",null,[t("li",null,[t("strong",null,"Item Duplication Fields"),e(" \u2014 Check the field(s) to copy values for when duplicating an item.")])],-1),Wl=t("h2",{id:"delete-a-collection",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#delete-a-collection"},"#"),e(" Delete a Collection")],-1),Kl=t("video",{title:"Delete a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/delete-a-collection-20220805A.mp4",type:"video/mp4"})],-1),Ql=t("p",null,"To delete a collection, follow these steps.",-1),Yl=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model > [Collection Name]"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",btn:"",dngr:""},"delete"),e(" in the page header.")]),t("li",null,[e("Confirm this decision by clicking "),t("strong",null,"Delete"),e(" in the dialog.")])],-1),Gl=t("div",{class:"danger hint"},[t("p",null,"This action is permanent and irreversible. Please proceed with caution.")],-1),$l="Collections",ts=!1,es={name:"collections",setup(zl,{expose:a}){const n={title:"Collections",modularExtension:!1};return a({frontmatter:n}),(Jl,Xl)=>{const l=i("router-link"),c=i("docs-wrapper");return d(),r(c,{frontmatter:n},{default:o(()=>[t("div",u,[h,_,p,t("p",null,[f,s(l,{to:"/docs/app/content"},{default:o(()=>[m]),_:1}),g]),y,v,w,b,S,t("table",null,[C,t("tbody",null,[t("tr",null,[T,k,t("td",null,[s(l,{to:"/docs/configuration/activity-log"},{default:o(()=>[A]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/activity"},{default:o(()=>[D]),_:1})])]),t("tr",null,[F,I,t("td",null,[s(l,{to:"/docs/configuration/data-model/collections"},{default:o(()=>[x]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/collections"},{default:o(()=>[N]),_:1})])]),t("tr",null,[P,M,t("td",null,[s(l,{to:"/docs/app/insights"},{default:o(()=>[O]),_:1})]),R]),t("tr",null,[j,B,t("td",null,[s(l,{to:"/docs/configuration/data-model/fields/"},{default:o(()=>[L]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/fields"},{default:o(()=>[U]),_:1})])]),t("tr",null,[H,V,t("td",null,[s(l,{to:"/docs/app/file-library"},{default:o(()=>[E]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/files"},{default:o(()=>[q]),_:1})])]),t("tr",null,[W,K,t("td",null,[s(l,{to:"/docs/configuration/flows"},{default:o(()=>[Q]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/flows"},{default:o(()=>[Y]),_:1})])]),t("tr",null,[G,z,t("td",null,[s(l,{to:"/docs/app/file-library#folders"},{default:o(()=>[J]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/folders"},{default:o(()=>[X]),_:1})])]),Z,t("tr",null,[$,tt,t("td",null,[s(l,{to:"/docs/app/overview#_1-module-bar"},{default:o(()=>[et]),_:1}),ot,s(l,{to:"/docs/app/overview#_4-sidebar"},{default:o(()=>[lt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/notifications"},{default:o(()=>[st]),_:1})])]),t("tr",null,[nt,it,t("td",null,[s(l,{to:"/docs/configuration/flows"},{default:o(()=>[at]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/operations.md"},{default:o(()=>[ct]),_:1})])]),t("tr",null,[dt,rt,t("td",null,[s(l,{to:"/docs/app/insights"},{default:o(()=>[ut]),_:1})]),ht]),t("tr",null,[_t,pt,t("td",null,[s(l,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[ft]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/permissions"},{default:o(()=>[mt]),_:1})])]),t("tr",null,[gt,yt,t("td",null,[s(l,{to:"/docs/configuration/presets-bookmarks"},{default:o(()=>[vt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/presets"},{default:o(()=>[wt]),_:1})])]),t("tr",null,[bt,St,t("td",null,[s(l,{to:"/docs/configuration/data-model/relationships"},{default:o(()=>[Ct]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/relations"},{default:o(()=>[Tt]),_:1})])]),t("tr",null,[kt,At,t("td",null,[s(l,{to:"/docs/app/content/items#revert-an-item"},{default:o(()=>[Dt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/revisions"},{default:o(()=>[Ft]),_:1})])]),t("tr",null,[It,xt,t("td",null,[s(l,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[Nt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/roles"},{default:o(()=>[Pt]),_:1})])]),Mt,t("tr",null,[Ot,Rt,t("td",null,[s(l,{to:"/docs/configuration/project-settings"},{default:o(()=>[jt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/settings"},{default:o(()=>[Bt]),_:1})])]),t("tr",null,[Lt,Ut,t("td",null,[s(l,{to:"/docs/app/content/shares"},{default:o(()=>[Ht]),_:1})]),Vt]),t("tr",null,[Et,qt,t("td",null,[s(l,{to:"/docs/app/user-directory"},{default:o(()=>[Wt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/relations"},{default:o(()=>[Kt]),_:1})])]),t("tr",null,[Qt,Yt,t("td",null,[s(l,{to:"/docs/configuration/webhooks"},{default:o(()=>[Gt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/relations"},{default:o(()=>[zt]),_:1})])])])]),Jt,Xt,Zt,t("ol",null,[$t,te,t("li",null,[ee,t("ul",null,[oe,le,t("li",null,[se,ne,s(l,{to:"/docs/configuration/data-model/fields/#keys-and-ids"},{default:o(()=>[ie]),_:1}),ae])])]),ce,de,re]),ue,he,_e,pe,fe,me,ge,ye,t("div",ve,[t("p",null,[we,s(l,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[be]),_:1}),Se,Ce,Te,ke,Ae])]),De,Fe,Ie,xe,Ne,Pe,Me,Oe,Re,je,Be,Le,Ue,He,Ve,Ee,qe,We,t("p",null,[Ke,s(l,{to:"/docs/app/content/items"},{default:o(()=>[Qe]),_:1}),Ye,s(l,{to:"/docs/configuration/data-model/fields/"},{default:o(()=>[Ge]),_:1}),ze]),Je,Xe,Ze,t("ul",null,[$e,to,eo,oo,t("li",null,[lo,so,s(l,{to:"/docs/app/display-templates"},{default:o(()=>[no]),_:1}),io]),ao,t("li",null,[co,ro,s(l,{to:"/docs/app/content/collections"},{default:o(()=>[uo]),_:1}),ho,s(l,{to:"/docs/app/content/items"},{default:o(()=>[_o]),_:1}),po]),t("li",null,[fo,mo,s(l,{to:"/docs/configuration/project-settings#general"},{default:o(()=>[go]),_:1}),yo,s(l,{to:"/docs/app/user-directory#user-details-page"},{default:o(()=>[vo]),_:1}),wo])]),t("div",bo,[So,t("p",null,[Co,s(l,{to:"/docs/getting-started/glossary#title-formatter"},{default:o(()=>[To]),_:1}),ko])]),Ao,Do,Fo,Io,t("ul",null,[xo,t("li",null,[No,Po,s(l,{to:"/docs/app/content/collections#view-archived-items"},{default:o(()=>[Mo]),_:1}),Oo]),t("li",null,[Ro,jo,s(l,{to:"/docs/app/content/items#archive-an-item"},{default:o(()=>[Bo]),_:1}),Lo]),t("li",null,[Uo,Ho,s(l,{to:"/docs/app/content/items#archive-an-item"},{default:o(()=>[Vo]),_:1}),Eo])]),qo,Wo,Ko,Qo,Yo,t("p",null,[Go,s(l,{to:"/docs/app/content/collections#manually-sort-items"},{default:o(()=>[zo]),_:1}),Jo,Xo,Zo,s(l,{to:"/docs/getting-started/glossary#junction-collections"},{default:o(()=>[$o]),_:1}),tl,el,ol]),ll,sl,t("ol",null,[t("li",null,[s(l,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:o(()=>[nl]),_:1}),il,al,cl]),dl,rl]),t("p",null,[ul,s(l,{to:"/docs/app/content/collections#manually-sort-items"},{default:o(()=>[hl]),_:1}),_l]),t("div",pl,[fl,t("p",null,[ml,s(l,{to:"/docs/configuration/data-model/collections#create-a-collection"},{default:o(()=>[gl]),_:1}),yl,vl,wl])]),bl,Sl,Cl,Tl,t("p",null,[kl,s(l,{to:"/docs/reference/system/activity"},{default:o(()=>[Al]),_:1}),Dl,s(l,{to:"/docs/reference/system/revisions"},{default:o(()=>[Fl]),_:1}),Il]),xl,t("div",Nl,[Pl,t("p",null,[Ml,Ol,Rl,s(l,{to:"/docs/self-hosted/config-options#telemetry"},{default:o(()=>[jl]),_:1}),Bl,s(l,{to:"/docs/self-hosted/config-options#telemetry"},{default:o(()=>[Ll]),_:1}),Ul])]),Hl,Vl,El,ql,Wl,Kl,Ql,Yl,Gl])]),_:1})}}};export{es as default,ts as modularExtension,$l as title};
1
+ import{a as i,o as d,b as r,w as o,l as t,e as s,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const u={class:"markdown-body"},h=t("blockquote",null,[t("p",null,"Collections are a set of items. This can be a 1-1 data table in SQL, a group of other collections, or a readonly view. They come with all the same power and functionality of data tables, despite the less technical name.")],-1),_=t("h2",{id:"overview",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#overview"},"#"),e(" Overview")],-1),p=t("video",{title:"Overview",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/data-model-20220805/collections-20220805A.mp4",type:"video/mp4"})],-1),f=e("Collections are data tables. Typically, you access items within a collection in the "),m=e("Content Module"),g=e("."),y=t("h2",{id:"system-collections",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#system-collections"},"#"),e(" System Collections")],-1),v=t("video",{title:"System Collections",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/system-collections-20220805A.mp4",type:"video/mp4"})],-1),w=t("p",null,"System collections store the data and configuration details required to power your project.",-1),b=t("p",null,[e("Since system collections store information that powers your Directus project. You cannot reconfigure system collections or any of their default fields, as any reconfigurations would break your project. However, you "),t("em",null,"can"),e(" create and configure new fields on a system collection. This lets you safely customize your data model as desired.")],-1),S=t("p",null,"System collections are not displayed in the Content Module. The following table will go over the logic and functionality each system collection is responsible for, as well as where to find relevant App and API documentation.",-1),C=t("thead",null,[t("tr",null,[t("th",null,"System Collection"),t("th",null,"Purpose"),t("th",null,"APP"),t("th",null,"API")])],-1),T=t("td",null,"Activity",-1),k=t("td",null,"Tracks and stores all events within Directus, giving full accountability over everything.",-1),A=e("Activity Log"),D=e("Activity"),F=t("td",null,"Collections",-1),I=t("td",null,"Stores data table & configuration details each and every Collection.",-1),x=e("Collections"),N=e("Collections"),P=t("td",null,"Dashboards",-1),M=t("td",null,"Stores dashboard configuration details and all relationally linked panels.",-1),O=e("Insights"),R=t("td",null,[t("strong",null,"N/A")],-1),j=t("td",null,"Fields",-1),B=t("td",null,"Stores configuration details for each field.",-1),L=e("Fields"),U=e("Fields"),E=t("td",null,"Files",-1),H=t("td",null,"This stores file location from asset storage as well as any data associated with that file.",-1),V=e("File Library"),q=e("Files"),W=t("td",null,"Flows",-1),K=t("td",null,"Stores basic logic required for Flows, which enable event-triggered task automation.",-1),Q=e("Flows"),Y=e("Flows"),G=t("td",null,"Folders",-1),z=t("td",null,"Stores information required for Folders, which provide virtual file asset management.",-1),J=e("Folders"),X=e("Folders"),Z=t("tr",null,[t("td",null,"Migrations"),t("td",null,"Used by our install/upgrade process to track when migration scripts for a specific release have been run."),t("td",null,"It has no relevant app functionality."),t("td",null,[t("strong",null,"N/A")])],-1),$=t("td",null,"Notifications",-1),tt=t("td",null,"Stores details about in-app notifications.",-1),et=e("Module Bar"),ot=e(" and "),lt=e("Sidebar"),st=e("Notifications"),nt=t("td",null,"Operations",-1),it=t("td",null,[e("Stores information required for Operations, which are a part of "),t("a",{href:"#flows"},"Flows"),e(".")],-1),at=e("Operations"),ct=e("Operations"),dt=t("td",null,"Panels",-1),rt=t("td",null,[e("This stores information about individual analytics panels, which are displayed on "),t("a",{href:"#dashboards"},"Dashboards"),e(".")],-1),ut=e("Insights"),ht=t("td",null,[t("strong",null,"N/A")],-1),_t=t("td",null,"Permissions",-1),pt=t("td",null,"This stores the access permissions configured for roles.",-1),ft=e("Users, Roles & Permissions"),mt=e("Permissions"),gt=t("td",null,"Presets",-1),yt=t("td",null,"This stores details for presets and bookmarks.",-1),vt=e("Presents & Bookmarks"),wt=e("Presets"),bt=t("td",null,"Relations",-1),St=t("td",null,"This stores information about relationships between collections.",-1),Ct=e("Relationships"),Tt=e("Relations"),kt=t("td",null,"Revisions",-1),At=t("td",null,"Revisions are changes/edits made to Items. Directus keeps track of edits made, so you\u2019re able to revert to a previous state at will.",-1),Dt=e("Revert an Item"),Ft=e("Revisions"),It=t("td",null,"Roles",-1),xt=t("td",null,"Stores information about each role created.",-1),Nt=e("Users, Roles, and Permissions"),Pt=e("Roles"),Mt=t("tr",null,[t("td",null,"Sessions"),t("td",null,"Stores information about each user session, for system purposes."),t("td",null,[t("strong",null,"N/A")]),t("td",null,[t("strong",null,"N/A")])],-1),Ot=t("td",null,"Settings",-1),Rt=t("td",null,[e("Stores all configurations made within "),t("strong",null,"Settings > Project Settings"),e(".")],-1),jt=e("Project Settings"),Bt=e("settings"),Lt=t("td",null,"Shares",-1),Ut=t("td",null,"Stores all information regarding data shares.",-1),Et=e("Data Sharing"),Ht=t("td",null,null,-1),Vt=t("td",null,"Users",-1),qt=t("td",null,"Stores information about each user within the platform.",-1),Wt=e("User Directory"),Kt=e("Users"),Qt=t("td",null,"Webhooks",-1),Yt=t("td",null,"Stores all information about configured webhooks.",-1),Gt=e("Webhooks"),zt=e("Webhooks"),Jt=t("h2",{id:"create-a-collection",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#create-a-collection"},"#"),e(" Create a Collection")],-1),Xt=t("video",{title:"Create a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:`https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/create-a-collection-20220805A.mp4
2
+ `,type:"video/mp4"})],-1),Zt=t("p",null,"To create a collection, follow these steps.",-1),$t=t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(", click "),t("span",{mi:"",btn:""},"add"),e(" in the page header, and a drawer will open.")],-1),te=t("li",null,[e("Enter a unique "),t("strong",null,"Collection Name"),e(". This cannot be modified later, but can be translated."),t("br"),e(" This is used as the data table key, API collection key, and default collection name.")],-1),ee=e("Optional: Make any other configurations as desired. "),oe=t("li",null,[t("strong",null,"Singleton"),e(" \u2014 Toggles whether the collection is a "),t("a",{href:"#collection-setup"},"Singleton"),e(".")],-1),le=t("li",null,[t("strong",null,"Primary Key Field"),e(" \u2014 Sets the name of the primary key field, defaults to "),t("code",null,"id"),e(".")],-1),se=t("strong",null,"Type",-1),ne=e(" \u2014 Sets the "),ie=e("type of ID"),ae=e(" to use for this collection."),ce=t("li",null,[e("Click "),t("span",{mi:"",btn:""},"arrow_forward"),e(" to confirm.")],-1),de=t("li",null,[e("Enable and rename the other Optional System Fields as desired: "),t("ul",null,[t("li",null,[t("strong",null,"Status"),e(" \u2014 Stores item status.")]),t("li",null,[t("strong",null,"Sort"),e(" \u2014 Adds a field which enables drag-and-drop sorting of items.")]),t("li",null,[t("strong",null,"Created On"),e(" \u2014 Logs the date an item was created.")]),t("li",null,[t("strong",null,"Created By"),e(" \u2014 Logs the user that created this item.")]),t("li",null,[t("strong",null,"Updated On"),e(" \u2014 Logs the date an item was last updated.")]),t("li",null,[t("strong",null,"Updated By"),e(" \u2014 Stores the last user to edit the file.")])])],-1),re=t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm and create the collection.")],-1),ue=t("div",{class:"danger hint"},[t("div",{class:"hint-title"},"Immutable Keys"),t("p",null,[e("The collection name from step two cannot be modified after collection creation. However, you can override how it is displayed with "),t("a",{href:"#collection-setup"},"Collection Naming Translations"),e(".")])],-1),he=t("div",{class:"warning hint"},[t("div",{class:"hint-title"},"Composite Keys"),t("p",null,"Directus does not currently support composite keys. If your project uses composite keys, you will need to make an adjustment to the data model.")],-1),_e=t("div",{class:"warning hint"},[t("div",{class:"hint-title"},"SQL Views"),t("p",null,"Directus does not currently support creation of virtual tables via SQL Views.")],-1),pe=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Database Tables"),t("p",null,[e("Remember, a collection is simply a database table. Therefore, you can import or create a table directly in the database and it will automatically appear within your Directus project. The first time you manage that table, a "),t("code",null,"directus_collections"),e(" record will be created with default values.")])],-1),fe=t("h2",{id:"toggle-collection-visibility",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#toggle-collection-visibility"},"#"),e(" Toggle Collection Visibility")],-1),me=t("video",{title:"Hide a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/toggle-collection-visibility-20220805A.mp4",type:"video/mp4"})],-1),ge=t("p",null,"To toggle whether a collection is hidden by default in the Content Module, follow these steps.",-1),ye=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",icon:""},"more_vert"),e(" to open the collection\u2019s Context Menu.")]),t("li",null,[e("Select "),t("strong",null,"View Content"),e(" or "),t("strong",null,"Make Collection Hidden"),e(" to adjust visibility as desired.")])],-1),ve={class:"tip hint"},we=e("Assuming a user has "),be=e("access permissions"),Se=e(", hidden collections can still be viewed. They must right-click on the Navigation Bar and choose "),Ce=t("span",{mi:"",icon:""},"visibility",-1),Te=e(),ke=t("strong",null,"Show Hidden Collections",-1),Ae=e("."),De=t("h2",{id:"create-a-folder",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#create-a-folder"},"#"),e(" Create a Folder")],-1),Fe=t("video",{title:"Create a Folder",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/create-a-folder-20220805A.mp4",type:"video/mp4"})],-1),Ie=t("p",null,[e("Folders allow you to sub-nest and group how collections are displayed. This feature simply changes how the collections are displayed under "),t("strong",null,"Settings > Data Model"),e(" and in the Content Module. It has no impact on the data model. To create a folder, follow these steps.")],-1),xe=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",btn:"",muted:""},"create_new_folder"),e(" in the page header.")]),t("li",null,"Set a folder key, which will also be used as the folder\u2019s name."),t("li",null,"Optional: Set the folder icon, color, note and translations as desired."),t("li",null,[e("Click "),t("strong",null,"Save"),e(" to create your folder.")])],-1),Ne=t("h2",{id:"toggle-folder-display",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#toggle-folder-display"},"#"),e(" Toggle Folder Display")],-1),Pe=t("video",{title:"Toggle Folder Display",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/toggle-folder-display-20220805A.mp4",type:"video/mp4"})],-1),Me=t("p",null,"To toggle folder display, follow these steps.",-1),Oe=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",icon:""},"folder"),e(" on the desired collection to toggle the following displays: "),t("ul",null,[t("li",null,[t("strong",null,"Start Open")]),t("li",null,[t("strong",null,"Start Collapsed")]),t("li",null,[t("strong",null,"Always Open")])])])],-1),Re=t("h2",{id:"sort-and-nest-collections",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#sort-and-nest-collections"},"#"),e(" Sort and Nest Collections")],-1),je=t("video",{title:"Configure a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/sort-and-nest-collections.mp4",type:"video/mp4"})],-1),Be=t("p",null,[e("To sort and nest collections in "),t("strong",null,"Settings > Data Model"),e(" and "),t("strong",null,"Content Module"),e(", follow these steps.")],-1),Le=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(".")]),t("li",null,[e("Click and drag "),t("span",{mi:"",icon:""},"drag_handle"),e(" to position collections as desired."),t("br"),e(" To nest a collection, drag below and to the right of an intended parent folder or collection.")])],-1),Ue=t("h2",{id:"configure-a-collection",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#configure-a-collection"},"#"),e(" Configure a Collection")],-1),Ee=t("video",{title:"Configure a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/configure-a-collection-20220805A.mp4",type:"video/mp4"})],-1),He=t("p",null,"To configure a collection, follow these steps.",-1),Ve=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model"),e(" and click the desired collection."),t("br"),e(" The collection\u2019s configuration page will open.")]),t("li",null,[e("Make configurations as desired. Configuration options are broken into six categories. "),t("ul",null,[t("li",null,[t("a",{href:"#fields-layout"},"Fields and Layout")]),t("li",null,[t("a",{href:"#collection-setup"},"Collection Setup")]),t("li",null,[t("a",{href:"#archive"},"Archive")]),t("li",null,[t("a",{href:"#sort-field"},"Sort")]),t("li",null,[t("a",{href:"#accountability"},"Accountability")]),t("li",null,[t("a",{href:"#duplication"},"Duplication")])])]),t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm.")])],-1),qe=t("h3",{id:"fields-%26-layout",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#fields-%26-layout"},"#"),e(" Fields & Layout")],-1),We=t("video",{title:"Fields and Layout",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/fields-and-layout-20220805A.mp4",type:"video/mp4"})],-1),Ke=e("This section allows you to create and configure fields, as well as configure how fields are displayed on the "),Qe=e("Item Details Page"),Ye=e(". To learn more, please see the documentation on "),Ge=e("fields"),ze=e("."),Je=t("h3",{id:"collection-setup",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#collection-setup"},"#"),e(" Collection Setup")],-1),Xe=t("video",{title:"Collection Setup",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/collection-setup-20220805A.mp4",type:"video/mp4"})],-1),Ze=t("p",null,"These controls allow you to modify how the collection is displayed within the Content Module.",-1),$e=t("li",null,[t("strong",null,"Collection Name"),e(" \u2014 Displays the collection\u2019s name, which cannot be modified. However, you can override the displayed name with Collection Naming Translations, shown lower on this list.")],-1),to=t("li",null,[t("strong",null,"Note"),e(" \u2014 Set a helpful note that explains the collection\u2019s purpose.")],-1),eo=t("li",null,[t("strong",null,"Icon"),e(" \u2014 Set an icon used throughout the app when referencing this collection.")],-1),oo=t("li",null,[t("strong",null,"Color"),e(" \u2014 Set a color for the icon, shown in the Navigation Bar and its page header.")],-1),lo=t("strong",null,"Display Template",-1),so=e(" \u2014 Create a "),no=e("Display Template"),io=e(" for the collection."),ao=t("li",null,[t("strong",null,"Hidden"),e(" \u2014 Toggle whether the collection should be globally hidden in the other app modules, even for admin users. You cannot hide collections for admins via permissions like other roles, so this comes in handy to tidy up the Content Module.")],-1),co=t("strong",null,"Singleton",-1),ro=e(" \u2014 Toggle to bypass the "),uo=e("Collection Page"),ho=e(" and take users to the "),_o=e("Item Details Page"),po=e("."),fo=t("strong",null,"Collection Naming Translations",-1),mo=e(" \u2014 Translate the collection name across multiple languages. When the default language is changed in "),go=e("Project Settings"),yo=e(" or "),vo=e("User Details Page"),wo=e(", the relevant translation, if any exists, will be used throughout the app."),bo={class:"tip hint"},So=t("div",{class:"hint-title"},"Collection Naming Translations",-1),Co=e("By default, Directus uses the "),To=e("Title Formatter"),ko=e(" to display collection keys as human readable names, but you can also use translations to explicitly rename more technical table keys."),Ao=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"What's a Singleton?"),t("p",null,[e("A collection that only contains one single item. For example, a website\u2019s "),t("strong",null,"About Us"),e(" page.")])],-1),Do=t("h3",{id:"archive",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#archive"},"#"),e(" Archive")],-1),Fo=t("video",{title:"Archive",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/archive-20220805A.mp4",type:"video/mp4"})],-1),Io=t("p",null,[e("Selects a field to handle archiving items. This provides a "),t("em",null,"soft-delete"),e(" functionality for items in a collection. Archived items will still exist in the collection and database, but are filtered within the Data Studio. To configure an archive field, set the following four input fields as desired.")],-1),xo=t("li",null,[t("strong",null,"Archive Field"),e(" \u2014 Selects the archive field from a dropdown menu.")],-1),No=t("strong",null,"Archive App Filter",-1),Po=e(" \u2014 Toggles whether app users can "),Mo=e("filter for archived items"),Oo=e("."),Ro=t("strong",null,"Archive Value",-1),jo=e(" \u2014 A value that is assigned to the field when an item is "),Bo=e("archived"),Lo=e("."),Uo=t("strong",null,"Unarchive Value",-1),Eo=e(" \u2014 A value that is assigned to the field when an item is "),Ho=e("unarchived"),Vo=e("."),qo=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Automatic Setup"),t("p",null,[e("When you "),t("a",{href:"#create-a-collection"},"create a collection"),e(", you have the option to create an optional Status Field. If you choose to include this field, the collection\u2019s archive settings will be automatically configured for you.")])],-1),Wo=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Archive Field Values"),t("p",null,"The archive fields can contain any number of additional values besides the archived and unarchived values defined above.")],-1),Ko=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Archived Item Management via API"),t("p",null,"Archived items are hidden in the app by default, but they are still returned normally via the API unless explicitly filtered out. This gives you the flexibility to manage archived items however you want when working with the API.")],-1),Qo=t("h3",{id:"sort-field",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#sort-field"},"#"),e(" Sort Field")],-1),Yo=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Batch Edit Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/manually-sort-items-20220415A.mp4",type:"video/mp4"})],-1),Go=e("The sort feature enables users to "),zo=e("manually sort Items"),Jo=e(" within the Data Studio. This is typically shown on the "),Xo=t("strong",null,"Content Module > Collection Page",-1),Zo=e(". It can also be used for sorting items within "),$o=e("Junction Collections"),tl=e(". A standard field, configured with an "),el=t("code",null,"INTEGER",-1),ol=e(" data type, is required. As shown in the video, fields which cannot serve as sort fields will be grayed out and unselectable in the Sort Field dropdown."),ll=t("p",null,[t("strong",null,"Sort Field"),e(" \u2014 Select a field to custom sort and order items. Click "),t("strong",null,"Deselect"),e(" to disable.")],-1),sl=t("p",null,"To configure a sort field, follow these steps.",-1),nl=e("Create a Field"),il=e(" with an "),al=t("code",null,"INTEGER",-1),cl=e(" data type."),dl=t("li",null,[e("Choose a field from the dropdown under "),t("strong",null,"Settings > Data Model > [Collection] > Sort"),e(".")],-1),rl=t("li",null,[e("Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm.")],-1),ul=e("Once you sort field is configured, you may want to learn how to "),hl=e("manually sort Items"),_l=e("."),pl={class:"tip hint"},fl=t("div",{class:"hint-title"},"Automatic Setup",-1),ml=e("When you "),gl=e("create a Collection"),yl=e(", you have the option of creating a "),vl=t("strong",null,"Sort",-1),wl=e(" field. If you choose to include this field, the collection\u2019s sort settings will automatically be configured for you."),bl=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Interface Sorting"),t("p",null,[e("To configure manual sorting within a relational Interface (e.g., M2M, O2M, or M2A), configure as above, but also set the "),t("strong",null,"Sort Field"),e(" within the relationship section of the field\u2019s configuration drawer.")])],-1),Sl=t("div",{class:"tip hint"},[t("div",{class:"hint-title"},"Configure to Hidden"),t("p",null,[e("You can also set this field to be "),t("strong",null,"Hidden"),e(" so it doesn\u2019t show up within the Item Details Page.")])],-1),Cl=t("h3",{id:"accountability",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#accountability"},"#"),e(" Accountability")],-1),Tl=t("video",{title:"Accountability",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/acountability-20220805A.mp4",type:"video/mp4"})],-1),kl=e("By default, your Directus Project tracks all "),Al=e("activity"),Dl=e(" and "),Fl=e("revisions"),Il=e(" for collections. However, you can override this and choose what data is tracked."),xl=t("ul",null,[t("li",null,[t("strong",null,"Activity & Revision Tracking"),e(" \u2014 The following options are supported: "),t("ul",null,[t("li",null,[t("strong",null,"Track Activity & Revisions")]),t("li",null,[t("strong",null,"Only Track Activity")]),t("li",null,[t("strong",null,"Do Not Track Anything")])])])],-1),Nl={class:"tip hint"},Pl=t("div",{class:"hint-title"},"Accountability vs. Telemetry",-1),Ml=e("Accountability is a log of "),Ol=t("em",null,"who does what",-1),Rl=e(" in your project. It is for your team\u2019s own use. This is different from "),jl=e("telemetry"),Bl=e(", which is configured under "),Ll=e("environment variables"),Ul=e("."),El=t("h3",{id:"duplication",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#duplication"},"#"),e(" Duplication")],-1),Hl=t("video",{title:"Duplication",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/duplicate-20220805A.mp4",type:"video/mp4"})],-1),Vl=t("p",null,[e("The "),t("strong",null,"Save as Copy"),e(" option on the Item Details Page offers a way to effectively duplicate the current item. Since there may be unique or relational data within the item, it\u2019s important to control exactly what will be copied. Duplication lets you configure which parent & relational field values will be copied when you use "),t("strong",null,"Save as Copy"),e(" on an item.")],-1),ql=t("ul",null,[t("li",null,[t("strong",null,"Item Duplication Fields"),e(" \u2014 Check the field(s) to copy values for when duplicating an item.")])],-1),Wl=t("h2",{id:"delete-a-collection",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#delete-a-collection"},"#"),e(" Delete a Collection")],-1),Kl=t("video",{title:"Delete a Collection",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[t("source",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/collections/collections-20220805/delete-a-collection-20220805A.mp4",type:"video/mp4"})],-1),Ql=t("p",null,"To delete a collection, follow these steps.",-1),Yl=t("ol",null,[t("li",null,[e("Navigate to "),t("strong",null,"Settings > Data Model > [Collection Name]"),e(".")]),t("li",null,[e("Click "),t("span",{mi:"",btn:"",dngr:""},"delete"),e(" in the page header.")]),t("li",null,[e("Confirm this decision by clicking "),t("strong",null,"Delete"),e(" in the dialog.")])],-1),Gl=t("div",{class:"danger hint"},[t("p",null,"This action is permanent and irreversible. Please proceed with caution.")],-1),$l="Collections",ts=!1,es={name:"collections",setup(zl,{expose:a}){const n={title:"Collections",modularExtension:!1};return a({frontmatter:n}),(Jl,Xl)=>{const l=i("router-link"),c=i("docs-wrapper");return d(),r(c,{frontmatter:n},{default:o(()=>[t("div",u,[h,_,p,t("p",null,[f,s(l,{to:"/docs/app/content"},{default:o(()=>[m]),_:1}),g]),y,v,w,b,S,t("table",null,[C,t("tbody",null,[t("tr",null,[T,k,t("td",null,[s(l,{to:"/docs/configuration/activity-log"},{default:o(()=>[A]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/activity"},{default:o(()=>[D]),_:1})])]),t("tr",null,[F,I,t("td",null,[s(l,{to:"/docs/configuration/data-model/collections"},{default:o(()=>[x]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/collections"},{default:o(()=>[N]),_:1})])]),t("tr",null,[P,M,t("td",null,[s(l,{to:"/docs/app/insights"},{default:o(()=>[O]),_:1})]),R]),t("tr",null,[j,B,t("td",null,[s(l,{to:"/docs/configuration/data-model/fields/"},{default:o(()=>[L]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/fields"},{default:o(()=>[U]),_:1})])]),t("tr",null,[E,H,t("td",null,[s(l,{to:"/docs/app/file-library"},{default:o(()=>[V]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/files"},{default:o(()=>[q]),_:1})])]),t("tr",null,[W,K,t("td",null,[s(l,{to:"/docs/configuration/flows"},{default:o(()=>[Q]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/flows"},{default:o(()=>[Y]),_:1})])]),t("tr",null,[G,z,t("td",null,[s(l,{to:"/docs/app/file-library#folders"},{default:o(()=>[J]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/folders"},{default:o(()=>[X]),_:1})])]),Z,t("tr",null,[$,tt,t("td",null,[s(l,{to:"/docs/app/overview#_1-module-bar"},{default:o(()=>[et]),_:1}),ot,s(l,{to:"/docs/app/overview#_4-sidebar"},{default:o(()=>[lt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/notifications"},{default:o(()=>[st]),_:1})])]),t("tr",null,[nt,it,t("td",null,[s(l,{to:"/docs/configuration/flows"},{default:o(()=>[at]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/operations.md"},{default:o(()=>[ct]),_:1})])]),t("tr",null,[dt,rt,t("td",null,[s(l,{to:"/docs/app/insights"},{default:o(()=>[ut]),_:1})]),ht]),t("tr",null,[_t,pt,t("td",null,[s(l,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[ft]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/permissions"},{default:o(()=>[mt]),_:1})])]),t("tr",null,[gt,yt,t("td",null,[s(l,{to:"/docs/configuration/presets-bookmarks"},{default:o(()=>[vt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/presets"},{default:o(()=>[wt]),_:1})])]),t("tr",null,[bt,St,t("td",null,[s(l,{to:"/docs/configuration/data-model/relationships"},{default:o(()=>[Ct]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/relations"},{default:o(()=>[Tt]),_:1})])]),t("tr",null,[kt,At,t("td",null,[s(l,{to:"/docs/app/content/items#revert-an-item"},{default:o(()=>[Dt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/revisions"},{default:o(()=>[Ft]),_:1})])]),t("tr",null,[It,xt,t("td",null,[s(l,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[Nt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/roles"},{default:o(()=>[Pt]),_:1})])]),Mt,t("tr",null,[Ot,Rt,t("td",null,[s(l,{to:"/docs/configuration/project-settings"},{default:o(()=>[jt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/settings"},{default:o(()=>[Bt]),_:1})])]),t("tr",null,[Lt,Ut,t("td",null,[s(l,{to:"/docs/app/content/shares"},{default:o(()=>[Et]),_:1})]),Ht]),t("tr",null,[Vt,qt,t("td",null,[s(l,{to:"/docs/app/user-directory"},{default:o(()=>[Wt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/relations"},{default:o(()=>[Kt]),_:1})])]),t("tr",null,[Qt,Yt,t("td",null,[s(l,{to:"/docs/configuration/webhooks"},{default:o(()=>[Gt]),_:1})]),t("td",null,[s(l,{to:"/docs/reference/system/relations"},{default:o(()=>[zt]),_:1})])])])]),Jt,Xt,Zt,t("ol",null,[$t,te,t("li",null,[ee,t("ul",null,[oe,le,t("li",null,[se,ne,s(l,{to:"/docs/configuration/data-model/fields/#keys-and-ids"},{default:o(()=>[ie]),_:1}),ae])])]),ce,de,re]),ue,he,_e,pe,fe,me,ge,ye,t("div",ve,[t("p",null,[we,s(l,{to:"/docs/configuration/users-roles-permissions"},{default:o(()=>[be]),_:1}),Se,Ce,Te,ke,Ae])]),De,Fe,Ie,xe,Ne,Pe,Me,Oe,Re,je,Be,Le,Ue,Ee,He,Ve,qe,We,t("p",null,[Ke,s(l,{to:"/docs/app/content/items"},{default:o(()=>[Qe]),_:1}),Ye,s(l,{to:"/docs/configuration/data-model/fields/"},{default:o(()=>[Ge]),_:1}),ze]),Je,Xe,Ze,t("ul",null,[$e,to,eo,oo,t("li",null,[lo,so,s(l,{to:"/docs/app/display-templates"},{default:o(()=>[no]),_:1}),io]),ao,t("li",null,[co,ro,s(l,{to:"/docs/app/content/collections"},{default:o(()=>[uo]),_:1}),ho,s(l,{to:"/docs/app/content/items"},{default:o(()=>[_o]),_:1}),po]),t("li",null,[fo,mo,s(l,{to:"/docs/configuration/project-settings#general"},{default:o(()=>[go]),_:1}),yo,s(l,{to:"/docs/app/user-directory#user-details-page"},{default:o(()=>[vo]),_:1}),wo])]),t("div",bo,[So,t("p",null,[Co,s(l,{to:"/docs/getting-started/glossary#title-formatter"},{default:o(()=>[To]),_:1}),ko])]),Ao,Do,Fo,Io,t("ul",null,[xo,t("li",null,[No,Po,s(l,{to:"/docs/app/content/collections#view-archived-items"},{default:o(()=>[Mo]),_:1}),Oo]),t("li",null,[Ro,jo,s(l,{to:"/docs/app/content/items#archive-an-item"},{default:o(()=>[Bo]),_:1}),Lo]),t("li",null,[Uo,Eo,s(l,{to:"/docs/app/content/items#archive-an-item"},{default:o(()=>[Ho]),_:1}),Vo])]),qo,Wo,Ko,Qo,Yo,t("p",null,[Go,s(l,{to:"/docs/app/content/collections#manually-sort-items"},{default:o(()=>[zo]),_:1}),Jo,Xo,Zo,s(l,{to:"/docs/getting-started/glossary#junction-collections"},{default:o(()=>[$o]),_:1}),tl,el,ol]),ll,sl,t("ol",null,[t("li",null,[s(l,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:o(()=>[nl]),_:1}),il,al,cl]),dl,rl]),t("p",null,[ul,s(l,{to:"/docs/app/content/collections#manually-sort-items"},{default:o(()=>[hl]),_:1}),_l]),t("div",pl,[fl,t("p",null,[ml,s(l,{to:"/docs/configuration/data-model/collections#create-a-collection"},{default:o(()=>[gl]),_:1}),yl,vl,wl])]),bl,Sl,Cl,Tl,t("p",null,[kl,s(l,{to:"/docs/reference/system/activity"},{default:o(()=>[Al]),_:1}),Dl,s(l,{to:"/docs/reference/system/revisions"},{default:o(()=>[Fl]),_:1}),Il]),xl,t("div",Nl,[Pl,t("p",null,[Ml,Ol,Rl,s(l,{to:"/docs/self-hosted/config-options#telemetry"},{default:o(()=>[jl]),_:1}),Bl,s(l,{to:"/docs/self-hosted/config-options#telemetry"},{default:o(()=>[Ll]),_:1}),Ul])]),El,Hl,Vl,ql,Wl,Kl,Ql,Yl,Gl])]),_:1})}}};export{es as default,ts as modularExtension,$l as title};
@@ -1,2 +1,2 @@
1
- import{a as l,o as d,b as r,w as o,g as t,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("p",null,"The Collection Page displays all Items within a Collection and comes with highly configurable Layouts for browsing, visualizing, and managing these Items.")],-1),p={class:"tip hint"},m=t("div",{class:"hint-title"},"Before You Begin",-1),_=e("To use the Collection Page, you will need to know about "),g=e("Collections"),y=e(", "),f=e("Items"),v=e(" and "),b=e("Fields"),w=e("."),I=t("h2",{id:"adjust-page-layout",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#adjust-page-layout"},"#"),e(" Adjust Page Layout")],-1),C=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Layouts"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/adjust-page-layout-20220415A.mp4",type:"video/mp4"})],-1),k=e("Layouts determine how you view or interact with Items in a Collection. Whether your Collection contains blog posts, project management tasks, geo-coordinates, temporal data or beyond; Layouts present Items in a more human-friendly way. "),A=e("Learn More"),T=t("h2",{id:"search-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#search-items"},"#"),e(" Search Items")],-1),x=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Search Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/search-items-20220419A.mp4",type:"video/mp4"})],-1),L=t("p",null,[e("Find all Items with one or more Fields containing your searched value, excluding any Items which have been "),t("a",{href:"#filter-items"},"filtered out"),e(". To search through a Collection\u2019s Items, follow these steps.")],-1),S=t("ol",null,[t("li",null,"Navigate to the Content Module and select the desired Collection."),t("li",null,[e("Select "),t("span",{mi:"",icon:""},"search"),e(" in the Page Header and a search bar will appear.")]),t("li",null,"Type in the value to search for.")],-1),P=t("h2",{id:"filter-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#filter-items"},"#"),e(" Filter Items")],-1),F=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Filter Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/filter-items-2022019A.mp4",type:"video/mp4"})],-1),B=e("Filters allow you to conditionally select Items from a Collection. Use-cases include customizing Item search results, restricting Item access permissions for specific Users or Roles, building dashboard analytics with the Insights module, and more. To Learn More, see our guide on "),E=e("Filters"),M=e("."),D=t("h2",{id:"manually-sort-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#manually-sort-items"},"#"),e(" Manually Sort Items")],-1),N=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Batch Edit Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/manually-sort-items-20220415A.mp4",type:"video/mp4"})],-1),j=e("Drag and drop Items to custom sort them as desired. This is only possible on certain Layouts, such as the default "),q=e("Table Layout"),V=e(". To sort a Collection\u2019s Items, follow these steps."),z=e("Be sure "),U=e("a sort field"),O=e(" has been configured under "),R=t("strong",null,"\u201CSettings > Data Model > Collection\u201D",-1),H=e("."),W=t("br",null,null,-1),Y=t("em",null,"(Shown in the video)",-1),G=t("li",null,"Navigate to the Content Module and select the desired Collection.",-1),J=t("li",null,[e("In the Sidebar, be sure a "),t("a",{href:"#adjust-page-layout"},"Layout"),e(" is chosen that supports manual sorting.")],-1),K=t("li",null,[e("Enable manual sorting: "),t("ul",null,[t("li",null,[e("For the Table Layout, toggle "),t("span",{mi:"",icon:""},"sort"),e(" in the configured Sort column.")])])],-1),Q=t("li",null,"Drag Items by their handle into a new position.",-1),X={class:"warning hint"},Z=t("div",{class:"hint-title"},"Manual Sorting Requires Configuration",-1),$=e("Only available if a "),tt=e("sort field"),et=e(" has been configured."),ot={class:"tip hint"},st=e("Sorting saves a value in a "),nt=e("Sort Field"),it=e(". This value is used to return data in a custom order. This means that while the values in this Sort Field do get updated and modified, values in other Fields are not changed."),lt=t("h2",{id:"automatically-sort-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#automatically-sort-items"},"#"),e(" Automatically Sort Items")],-1),at=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Automatically Sort Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/automatically-sort-items-20220415A.mp4",type:"video/mp4"})],-1),ct=e("Sort Items alphabetically or numerically, in ascending or descending order. Sorting is not possible on certain Layouts, such as the Map Layout. Layouts that do support automatic sorting have controls in slightly different locations. To learn more, see "),dt=e("Layouts"),rt=e("."),ht=t("div",{class:"tip hint"},[t("p",null,"Automatic sorting is a non-destructive action which does not change your data.")],-1),ut=t("h2",{id:"view-archived-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#view-archived-items"},"#"),e(" View Archived Items")],-1),pt=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"View Archived Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/view-archived-items.mp4",type:"video/mp4"})],-1),mt=e("The no-code app allows you to hide archived Items, display them alongside other Items, or display archived Items only. To learn how to archive an Item, see our guide on the "),_t=e("Item Page"),gt=e(". To change whether an archived Item is displayed, follow these steps."),yt=t("ol",null,[t("li",null,"Navigate to the Content Module and select the desired Collection."),t("li",null,[e("Click "),t("strong",null,"\u201CArchive\u201D"),e(" in the Sidebar.")]),t("li",null,[e("Choose the desired view: "),t("ul",null,[t("li",null,[t("strong",null,"\u201CShow Items\u201D")]),t("li",null,[t("strong",null,"\u201CShow Archived Items\u201D")]),t("li",null,[t("strong",null,"\u201CShow Items + Archived Items\u201D")])])])],-1),ft={class:"warning hint"},vt=t("div",{class:"hint-title"},"Archiving Requires Configuration",-1),bt=e("Only available if an "),wt=e("Archive field"),It=e(" has been configured."),Ct=t("h2",{id:"create-presets-and-bookmarks",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#create-presets-and-bookmarks"},"#"),e(" Create Presets and Bookmarks")],-1),kt=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Create Presets and Bookmarks"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/presets-and-bookmarks-20220415A.mp4",type:"video/mp4"})],-1),At=e("Save how a Collection Page looks so that you can return to the exact same view later, including details such as the Layout, searches, filters, sorting, ordering, etc. To learn more, see our guide on "),Tt=e("Presets and Bookmarks"),xt=e("."),Lt=t("h2",{id:"import-%2F-export-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#import-%2F-export-items"},"#"),e(" Import / Export Items")],-1),St=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/imports-exports-20220416A.webp",alt:"Import and Export Items"})],-1),Pt=e("The Content, User Directory and File Library modules allow importing and exporting of multiple Items stored as files. This makes it quick and easy to handle tasks like uploading and downloading new customer information; pulling down sales data for transformation, reports, analysis, and beyond. To learn more, see how to "),Ft=e("Import and Export Items"),Bt=e(" in file format."),Et=t("h2",{id:"batch-delete%2C-archive-or-edit-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#batch-delete%2C-archive-or-edit-items"},"#"),e(" Batch Delete, Archive or Edit Items")],-1),Mt=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Batch Edit Items"},[t("source",{src:`https://cdn.directus.io/docs/v9/app-guide/content/content-items/content-items-20220415A/batch-edit-items-20220415A.mp4
2
- `,type:"video/mp4"})],-1),Dt=t("p",null,"It is possible to delete, archive, or edit multiple Items at once from the Collection Page. Deletion will permanently delete Items from the database, this cannot be reverted. When batch editing, the Item Page opens, allowing you to make the same edit across multiple Items. Follow these steps to batch delete, archive, or edit Items.",-1),Nt=t("li",null,"Navigate to the Content Module and select the desired Collection.",-1),jt=e("Choose a "),qt=e("Layout"),Vt=e(" that supports multiple Item selection from the Sidebar."),zt=t("br",null,null,-1),Ut=e(" (e.g. The Table or Card Layout)"),Ot=t("li",null,[e("Click the Items you wish to select: "),t("ul",null,[t("li",null,[t("strong",null,"Table Layout:"),e(" Click "),t("span",{mi:"",icon:""},"check_box_outline_blank"),e(" in the left-most column.")]),t("li",null,[t("strong",null,"Card Layout:"),e(" Click "),t("span",{mi:"",icon:""},"radio_button_unchecked"),e(" in the upper left-hand corner of each Card.")])])],-1),Rt=t("p",null,[e("Once Items are selected, the following buttons will appear in the Page Header: "),t("span",{mi:"",btn:"",muted:""},"delete"),t("span",{mi:"",btn:"",muted:""},"archive"),e(),t("span",{mi:"",btn:"",muted:""},"edit")],-1),Ht=t("p",null,[t("strong",null,"Delete"),t("br"),e(" 4. Click "),t("span",{mi:"",btn:"",dngr:""},"delete"),e(" in the header and a popup will appear."),t("br"),e(" 5. Click "),t("strong",null,"\u201CDelete\u201D"),e(" to confirm the action.")],-1),Wt=t("p",null,[t("strong",null,"Archive"),t("br"),e(" 4. Click "),t("span",{mi:"",btn:"",muted:""},"archive"),e(" in the header and a popup will appear."),t("br"),e(" 5. Click "),t("strong",null,"\u201CDelete\u201D"),e(" to confirm the action.")],-1),Yt=t("p",null,[t("strong",null,"Edit"),t("br"),e(" 4. Click "),t("span",{mi:"",btn:"",muted:""},"edit"),e(" in the header and the Item Page will open."),t("br"),e(" 5. Update Item details as desired."),t("br"),e(" 6. Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm batch edits on all Items.")],-1),Xt="Collection Page",Zt=!1,$t="The Collection Page displays all Items within a Collection and comes with highly configurable Layouts for browsing, visualizing, and managing these Items.",te="6 min read",ee={name:"collections",setup(Gt,{expose:a}){const i={title:"Collection Page",modularExtension:!1,description:"The Collection Page displays all Items within a Collection and comes with highly configurable Layouts for browsing, visualizing, and managing these Items.",readTime:"6 min read"};return a({frontmatter:i}),(Jt,Kt)=>{const s=l("router-link"),c=l("docs-wrapper");return d(),r(c,{frontmatter:i},{default:o(()=>[t("div",h,[u,t("div",p,[m,t("p",null,[_,n(s,{to:"/docs/getting-started/glossary#collections"},{default:o(()=>[g]),_:1}),y,n(s,{to:"/docs/getting-started/glossary#items"},{default:o(()=>[f]),_:1}),v,n(s,{to:"/docs/getting-started/glossary#fields"},{default:o(()=>[b]),_:1}),w])]),I,C,t("p",null,[k,n(s,{to:"/docs/app/layouts"},{default:o(()=>[A]),_:1})]),T,x,L,S,P,F,t("p",null,[B,n(s,{to:"/docs/app/filters"},{default:o(()=>[E]),_:1}),M]),D,N,t("p",null,[j,n(s,{to:"/docs/app/layouts#table-layout"},{default:o(()=>[q]),_:1}),V]),t("ol",null,[t("li",null,[z,n(s,{to:"/docs/configuration/data-model/collections#sort-field"},{default:o(()=>[U]),_:1}),O,R,H,W,Y]),G,J,K,Q]),t("div",X,[Z,t("p",null,[$,n(s,{to:"/docs/configuration/data-model/collections#sort-field"},{default:o(()=>[tt]),_:1}),et])]),t("div",ot,[t("p",null,[st,n(s,{to:"/docs/reference/query#sort"},{default:o(()=>[nt]),_:1}),it])]),lt,at,t("p",null,[ct,n(s,{to:"/docs/app/layouts"},{default:o(()=>[dt]),_:1}),rt]),ht,ut,pt,t("p",null,[mt,n(s,{to:"/docs/app/content/items#archive-an-item"},{default:o(()=>[_t]),_:1}),gt]),yt,t("div",ft,[vt,t("p",null,[bt,n(s,{to:"/docs/configuration/data-model/collections#archive"},{default:o(()=>[wt]),_:1}),It])]),Ct,kt,t("p",null,[At,n(s,{to:"/docs/configuration/presets-bookmarks"},{default:o(()=>[Tt]),_:1}),xt]),Lt,St,t("p",null,[Pt,n(s,{to:"/docs/app/import-export"},{default:o(()=>[Ft]),_:1}),Bt]),Et,Mt,Dt,t("ol",null,[Nt,t("li",null,[jt,n(s,{to:"/docs/app/layouts"},{default:o(()=>[qt]),_:1}),Vt,zt,Ut]),Ot]),Rt,Ht,Wt,Yt])]),_:1})}}};export{ee as default,$t as description,Zt as modularExtension,te as readTime,Xt as title};
1
+ import{a as l,o as d,b as r,w as o,l as t,e as n,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("p",null,"The Collection Page displays all Items within a Collection and comes with highly configurable Layouts for browsing, visualizing, and managing these Items.")],-1),m={class:"tip hint"},p=t("div",{class:"hint-title"},"Before You Begin",-1),_=e("To use the Collection Page, you will need to know about "),g=e("Collections"),y=e(", "),f=e("Items"),v=e(" and "),b=e("Fields"),w=e("."),I=t("h2",{id:"adjust-page-layout",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#adjust-page-layout"},"#"),e(" Adjust Page Layout")],-1),C=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Layouts"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/adjust-page-layout-20220415A.mp4",type:"video/mp4"})],-1),k=e("Layouts determine how you view or interact with Items in a Collection. Whether your Collection contains blog posts, project management tasks, geo-coordinates, temporal data or beyond; Layouts present Items in a more human-friendly way. "),A=e("Learn More"),T=t("h2",{id:"search-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#search-items"},"#"),e(" Search Items")],-1),x=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Search Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/search-items-20220419A.mp4",type:"video/mp4"})],-1),L=t("p",null,[e("Find all Items with one or more Fields containing your searched value, excluding any Items which have been "),t("a",{href:"#filter-items"},"filtered out"),e(". To search through a Collection\u2019s Items, follow these steps.")],-1),S=t("ol",null,[t("li",null,"Navigate to the Content Module and select the desired Collection."),t("li",null,[e("Select "),t("span",{mi:"",icon:""},"search"),e(" in the Page Header and a search bar will appear.")]),t("li",null,"Type in the value to search for.")],-1),P=t("h2",{id:"filter-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#filter-items"},"#"),e(" Filter Items")],-1),B=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Filter Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/filter-items-2022019A.mp4",type:"video/mp4"})],-1),F=e("Filters allow you to conditionally select Items from a Collection. Use-cases include customizing Item search results, restricting Item access permissions for specific Users or Roles, building dashboard analytics with the Insights module, and more. To Learn More, see our guide on "),E=e("Filters"),M=e("."),N=t("h2",{id:"manually-sort-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#manually-sort-items"},"#"),e(" Manually Sort Items")],-1),D=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Batch Edit Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/manually-sort-items-20220415A.mp4",type:"video/mp4"})],-1),j=e("Drag and drop Items to custom sort them as desired. This is only possible on certain Layouts, such as the default "),q=e("Table Layout"),V=e(". To sort a Collection\u2019s Items, follow these steps."),z=e("Be sure "),U=e("a sort field"),O=e(" has been configured under "),R=t("strong",null,"\u201CSettings > Data Model > Collection\u201D",-1),H=e("."),W=t("br",null,null,-1),Y=t("em",null,"(Shown in the video)",-1),G=t("li",null,"Navigate to the Content Module and select the desired Collection.",-1),J=t("li",null,[e("In the Sidebar, be sure a "),t("a",{href:"#adjust-page-layout"},"Layout"),e(" is chosen that supports manual sorting.")],-1),K=t("li",null,[e("Enable manual sorting: "),t("ul",null,[t("li",null,[e("For the Table Layout, toggle "),t("span",{mi:"",icon:""},"sort"),e(" in the configured Sort column.")])])],-1),Q=t("li",null,"Drag Items by their handle into a new position.",-1),X={class:"warning hint"},Z=t("div",{class:"hint-title"},"Manual Sorting Requires Configuration",-1),$=e("Only available if a "),tt=e("sort field"),et=e(" has been configured."),ot={class:"tip hint"},st=e("Sorting saves a value in a "),nt=e("Sort Field"),it=e(". This value is used to return data in a custom order. This means that while the values in this Sort Field do get updated and modified, values in other Fields are not changed."),lt=t("h2",{id:"automatically-sort-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#automatically-sort-items"},"#"),e(" Automatically Sort Items")],-1),at=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Automatically Sort Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/automatically-sort-items-20220415A.mp4",type:"video/mp4"})],-1),ct=e("Sort Items alphabetically or numerically, in ascending or descending order. Sorting is not possible on certain Layouts, such as the Map Layout. Layouts that do support automatic sorting have controls in slightly different locations. To learn more, see "),dt=e("Layouts"),rt=e("."),ht=t("div",{class:"tip hint"},[t("p",null,"Automatic sorting is a non-destructive action which does not change your data.")],-1),ut=t("h2",{id:"view-archived-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#view-archived-items"},"#"),e(" View Archived Items")],-1),mt=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"View Archived Items"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/view-archived-items.mp4",type:"video/mp4"})],-1),pt=e("The no-code app allows you to hide archived Items, display them alongside other Items, or display archived Items only. To learn how to archive an Item, see our guide on the "),_t=e("Item Page"),gt=e(". To change whether an archived Item is displayed, follow these steps."),yt=t("ol",null,[t("li",null,"Navigate to the Content Module and select the desired Collection."),t("li",null,[e("Click "),t("strong",null,"\u201CArchive\u201D"),e(" in the Sidebar.")]),t("li",null,[e("Choose the desired view: "),t("ul",null,[t("li",null,[t("strong",null,"\u201CShow Items\u201D")]),t("li",null,[t("strong",null,"\u201CShow Archived Items\u201D")]),t("li",null,[t("strong",null,"\u201CShow Items + Archived Items\u201D")])])])],-1),ft={class:"warning hint"},vt=t("div",{class:"hint-title"},"Archiving Requires Configuration",-1),bt=e("Only available if an "),wt=e("Archive field"),It=e(" has been configured."),Ct=t("h2",{id:"create-a-bookmark",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#create-a-bookmark"},"#"),e(" Create a Bookmark")],-1),kt=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Create Presets and Bookmarks"},[t("source",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/presets-and-bookmarks-20220415A.mp4",type:"video/mp4"})],-1),At=t("p",null,"Save how a Collection Page looks so that you can return to the exact same view later. This includes details such as the Layout, search queries, filters, custom sort & order, etc. To create a Bookmark from the Collection Page, follow these steps.",-1),Tt=t("ol",null,[t("li",null,"Navigate to the desired collection."),t("li",null,[e("Click "),t("span",{mi:"",btn:"",muted:""},"bookmark_outline"),e(" in the page header.")]),t("li",null,[e("Enter a "),t("strong",null,"Name"),e(),t("em",null,"(and optionally)"),e(" an "),t("strong",null,"Icon"),e(" and "),t("strong",null,"Color"),e(".")]),t("li",null,[e("Click "),t("strong",null,"Save"),e(" to confirm.")])],-1),xt=t("p",null,"Your Bookmark will appear in the Navigation Bar, under the associated Collection Page.",-1),Lt={class:"tip hint"},St=t("div",{class:"hint-title"},"Learn More",-1),Pt=e("To learn more, see our guide on "),Bt=e("Presets and Bookmarks"),Ft=e("."),Et=t("h2",{id:"import-%2F-export-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#import-%2F-export-items"},"#"),e(" Import / Export Items")],-1),Mt=t("p",null,[t("img",{src:"https://cdn.directus.io/docs/v9/app-guide/content/content-collections/content-collections-20220415A/imports-exports-20220416A.webp",alt:"Import and Export Items"})],-1),Nt=e("The Content, User Directory and File Library modules allow importing and exporting of multiple Items stored as files. This makes it quick and easy to handle tasks like uploading and downloading new customer information; pulling down sales data for transformation, reports, analysis, and beyond. To learn more, see how to "),Dt=e("Import and Export Items"),jt=e(" in file format."),qt=t("h2",{id:"batch-delete%2C-archive-or-edit-items",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#batch-delete%2C-archive-or-edit-items"},"#"),e(" Batch Delete, Archive or Edit Items")],-1),Vt=t("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:"",title:"Batch Edit Items"},[t("source",{src:`https://cdn.directus.io/docs/v9/app-guide/content/content-items/content-items-20220415A/batch-edit-items-20220415A.mp4
2
+ `,type:"video/mp4"})],-1),zt=t("p",null,"It is possible to delete, archive, or edit multiple Items at once from the Collection Page. Deletion will permanently delete Items from the database, this cannot be reverted. When batch editing, the Item Page opens, allowing you to make the same edit across multiple Items. Follow these steps to batch delete, archive, or edit Items.",-1),Ut=t("li",null,"Navigate to the Content Module and select the desired Collection.",-1),Ot=e("Choose a "),Rt=e("Layout"),Ht=e(" that supports multiple Item selection from the Sidebar."),Wt=t("br",null,null,-1),Yt=e(" (e.g. The Table or Card Layout)"),Gt=t("li",null,[e("Click the Items you wish to select: "),t("ul",null,[t("li",null,[t("strong",null,"Table Layout:"),e(" Click "),t("span",{mi:"",icon:""},"check_box_outline_blank"),e(" in the left-most column.")]),t("li",null,[t("strong",null,"Card Layout:"),e(" Click "),t("span",{mi:"",icon:""},"radio_button_unchecked"),e(" in the upper left-hand corner of each Card.")])])],-1),Jt=t("p",null,[e("Once Items are selected, the following buttons will appear in the Page Header: "),t("span",{mi:"",btn:"",muted:""},"delete"),t("span",{mi:"",btn:"",muted:""},"archive"),e(),t("span",{mi:"",btn:"",muted:""},"edit")],-1),Kt=t("p",null,[t("strong",null,"Delete"),t("br"),e(" 4. Click "),t("span",{mi:"",btn:"",dngr:""},"delete"),e(" in the header and a popup will appear."),t("br"),e(" 5. Click "),t("strong",null,"\u201CDelete\u201D"),e(" to confirm the action.")],-1),Qt=t("p",null,[t("strong",null,"Archive"),t("br"),e(" 4. Click "),t("span",{mi:"",btn:"",muted:""},"archive"),e(" in the header and a popup will appear."),t("br"),e(" 5. Click "),t("strong",null,"\u201CDelete\u201D"),e(" to confirm the action.")],-1),Xt=t("p",null,[t("strong",null,"Edit"),t("br"),e(" 4. Click "),t("span",{mi:"",btn:"",muted:""},"edit"),e(" in the header and the Item Page will open."),t("br"),e(" 5. Update Item details as desired."),t("br"),e(" 6. Click "),t("span",{mi:"",btn:""},"check"),e(" to confirm batch edits on all Items.")],-1),oe="Collection Page",se=!1,ne="The Collection Page displays all Items within a Collection and comes with highly configurable Layouts for browsing, visualizing, and managing these Items.",ie="6 min read",le={name:"collections",setup(Zt,{expose:a}){const i={title:"Collection Page",modularExtension:!1,description:"The Collection Page displays all Items within a Collection and comes with highly configurable Layouts for browsing, visualizing, and managing these Items.",readTime:"6 min read"};return a({frontmatter:i}),($t,te)=>{const s=l("router-link"),c=l("docs-wrapper");return d(),r(c,{frontmatter:i},{default:o(()=>[t("div",h,[u,t("div",m,[p,t("p",null,[_,n(s,{to:"/docs/getting-started/glossary#collections"},{default:o(()=>[g]),_:1}),y,n(s,{to:"/docs/getting-started/glossary#items"},{default:o(()=>[f]),_:1}),v,n(s,{to:"/docs/getting-started/glossary#fields"},{default:o(()=>[b]),_:1}),w])]),I,C,t("p",null,[k,n(s,{to:"/docs/app/layouts"},{default:o(()=>[A]),_:1})]),T,x,L,S,P,B,t("p",null,[F,n(s,{to:"/docs/app/filters"},{default:o(()=>[E]),_:1}),M]),N,D,t("p",null,[j,n(s,{to:"/docs/app/layouts#table-layout"},{default:o(()=>[q]),_:1}),V]),t("ol",null,[t("li",null,[z,n(s,{to:"/docs/configuration/data-model/collections#sort-field"},{default:o(()=>[U]),_:1}),O,R,H,W,Y]),G,J,K,Q]),t("div",X,[Z,t("p",null,[$,n(s,{to:"/docs/configuration/data-model/collections#sort-field"},{default:o(()=>[tt]),_:1}),et])]),t("div",ot,[t("p",null,[st,n(s,{to:"/docs/reference/query#sort"},{default:o(()=>[nt]),_:1}),it])]),lt,at,t("p",null,[ct,n(s,{to:"/docs/app/layouts"},{default:o(()=>[dt]),_:1}),rt]),ht,ut,mt,t("p",null,[pt,n(s,{to:"/docs/app/content/items#archive-an-item"},{default:o(()=>[_t]),_:1}),gt]),yt,t("div",ft,[vt,t("p",null,[bt,n(s,{to:"/docs/configuration/data-model/collections#archive"},{default:o(()=>[wt]),_:1}),It])]),Ct,kt,At,Tt,xt,t("div",Lt,[St,t("p",null,[Pt,n(s,{to:"/docs/configuration/presets-bookmarks"},{default:o(()=>[Bt]),_:1}),Ft])]),Et,Mt,t("p",null,[Nt,n(s,{to:"/docs/app/import-export"},{default:o(()=>[Dt]),_:1}),jt]),qt,Vt,zt,t("ol",null,[Ut,t("li",null,[Ot,n(s,{to:"/docs/app/layouts"},{default:o(()=>[Rt]),_:1}),Ht,Wt,Yt]),Gt]),Jt,Kt,Qt,Xt])]),_:1})}}};export{le as default,ne as description,se as modularExtension,ie as readTime,oe as title};
@@ -1,4 +1,4 @@
1
- import{a as o,o as h,b as r,w as n,g as s,e as l,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},p=t("Collections are the individual collections of items, similar to tables in a database. Changes to collections will alter the schema of the database. "),u=t("Learn more about Collections"),_=t("."),m=s("hr",null,null,-1),j=s("h2",{id:"the-collection-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-collection-object"},"#"),t(" The Collection Object")],-1),g=s("p",null,[s("code",null,"collection"),t(),s("strong",null,"string"),s("br"),t(" Name of the collection. This matches the table name in the database.")],-1),f=s("h4",{id:"meta",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#meta"},"#"),t(" Meta")],-1),b=s("p",null,"Directus metadata, primarily used in the Admin App.",-1),y=s("p",null,[s("code",null,"collection"),t(),s("strong",null,"string"),s("br"),t(" Name of the collection. This matches the table name in the database.")],-1),x=s("p",null,[s("code",null,"icon"),t(),s("strong",null,"string"),s("br"),t(" Icon displayed in the Admin App when working with this collection.")],-1),q=s("p",null,[s("code",null,"note"),t(),s("strong",null,"string"),s("br"),t(" Short description displayed in the Admin App.")],-1),v=s("p",null,[s("code",null,"display_template"),t(),s("strong",null,"string"),s("br"),t(" How items in this collection should be displayed when viewed relationally in the Admin App.")],-1),w=s("p",null,[s("code",null,"hidden"),t(),s("strong",null,"boolean"),s("br"),t(" Whether or not this collection is hidden in the Admin App.")],-1),T=s("p",null,[s("code",null,"singleton"),t(),s("strong",null,"boolean"),s("br"),t(" Whether or not this collection is treated as a singleton.")],-1),A=s("p",null,[s("code",null,"translations"),t(),s("strong",null,"array"),s("br"),t(" How this collection\u2019s name is displayed in the different languages in the Admin App.")],-1),k=s("p",null,[s("code",null,"archive_field"),t(),s("strong",null,"string"),s("br"),t(" What field in the collection holds the archived state.")],-1),E=s("p",null,[s("code",null,"archive_value"),t(),s("strong",null,"string"),s("br"),t(" What value the archive field should be set to when archiving an item.")],-1),S=s("p",null,[s("code",null,"unarchive_value"),t(),s("strong",null,"string"),s("br"),t(" What value the archive field should be set to when unarchiving an item.")],-1),C=s("p",null,[s("code",null,"archive_app_filter"),t(),s("strong",null,"boolean"),s("br"),t(" Whether or not the Admin App should allow the user to view archived items.")],-1),P=s("p",null,[s("code",null,"sort_field"),t(),s("strong",null,"boolean"),s("br"),t(" What field holds the sort value on the collection. The Admin App uses this to allow drag-and-drop manual sorting.")],-1),R=s("code",null,"accountability",-1),L=t(),Q=s("strong",null,"string",-1),W=s("br",null,null,-1),G=t(" What data is tracked. One of "),O=s("code",null,"all",-1),B=t(", "),D=s("code",null,"activity",-1),I=t(". See "),H=t("Accountability"),N=t(" for more information."),M=s("code",null,"item_duplication_fields",-1),U=t(),V=s("strong",null,"array",-1),Y=s("br",null,null,-1),z=t(" What fields are duplicated during \u201CSave as copy\u201D action of an item in this collection. See "),F=t("Duplication"),J=t(" for more information."),K=s("code",null,"group",-1),X=t(),Z=s("strong",null,"string",-1),$=s("br",null,null,-1),ss=t(" The name of the parent collection. This is used in "),ts=t("grouping/nesting of collections"),ns=t("."),es=s("code",null,"sort",-1),ls=t(),as=s("strong",null,"number",-1),os=s("br",null,null,-1),cs=t(" What sort order of the collection relative to other collections of the same level. This is used in "),is=t("sorting of collections"),hs=t("."),rs=s("p",null,[s("code",null,"collapse"),t(),s("strong",null,"string"),s("br"),t(" What is the default behavior of this collection or \u201Cfolder\u201D collection when it has nested collections. One of "),s("code",null,"open"),t(", "),s("code",null,"closed"),t(", "),s("code",null,"locked"),t(".")],-1),ds=s("h4",{id:"schema",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#schema"},"#"),t(" Schema")],-1),ps=s("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers.",-1),us=s("p",null,[s("code",null,"name"),t(),s("strong",null,"string"),s("br"),t(" The table name.")],-1),_s=s("p",null,[s("code",null,"comment"),t(),s("strong",null,"string"),s("br"),t(" The table comment.")],-1),ms={class:"tip hint"},js=t("\u201Cfolder\u201D collections do not hold any data"),gs=t(", hence their schema would be "),fs=s("code",null,"null",-1),bs=t("."),ys=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),t(`
1
+ import{a as o,o as h,b as r,w as n,l as s,e as l,E as t}from"./runtime-core.esm-bundler.32cac88a.js";const d={class:"markdown-body"},p=t("Collections are the individual collections of items, similar to tables in a database. Changes to collections will alter the schema of the database. "),u=t("Learn more about Collections"),_=t("."),m=s("hr",null,null,-1),j=s("h2",{id:"the-collection-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-collection-object"},"#"),t(" The Collection Object")],-1),g=s("p",null,[s("code",null,"collection"),t(),s("strong",null,"string"),s("br"),t(" Name of the collection. This matches the table name in the database.")],-1),f=s("h4",{id:"meta",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#meta"},"#"),t(" Meta")],-1),b=s("p",null,"Directus metadata, primarily used in the Admin App.",-1),y=s("p",null,[s("code",null,"collection"),t(),s("strong",null,"string"),s("br"),t(" Name of the collection. This matches the table name in the database.")],-1),x=s("p",null,[s("code",null,"icon"),t(),s("strong",null,"string"),s("br"),t(" Icon displayed in the Admin App when working with this collection.")],-1),q=s("p",null,[s("code",null,"note"),t(),s("strong",null,"string"),s("br"),t(" Short description displayed in the Admin App.")],-1),v=s("p",null,[s("code",null,"display_template"),t(),s("strong",null,"string"),s("br"),t(" How items in this collection should be displayed when viewed relationally in the Admin App.")],-1),w=s("p",null,[s("code",null,"hidden"),t(),s("strong",null,"boolean"),s("br"),t(" Whether or not this collection is hidden in the Admin App.")],-1),T=s("p",null,[s("code",null,"singleton"),t(),s("strong",null,"boolean"),s("br"),t(" Whether or not this collection is treated as a singleton.")],-1),A=s("p",null,[s("code",null,"translations"),t(),s("strong",null,"array"),s("br"),t(" How this collection\u2019s name is displayed in the different languages in the Admin App.")],-1),E=s("p",null,[s("code",null,"archive_field"),t(),s("strong",null,"string"),s("br"),t(" What field in the collection holds the archived state.")],-1),k=s("p",null,[s("code",null,"archive_value"),t(),s("strong",null,"string"),s("br"),t(" What value the archive field should be set to when archiving an item.")],-1),S=s("p",null,[s("code",null,"unarchive_value"),t(),s("strong",null,"string"),s("br"),t(" What value the archive field should be set to when unarchiving an item.")],-1),C=s("p",null,[s("code",null,"archive_app_filter"),t(),s("strong",null,"boolean"),s("br"),t(" Whether or not the Admin App should allow the user to view archived items.")],-1),P=s("p",null,[s("code",null,"sort_field"),t(),s("strong",null,"boolean"),s("br"),t(" What field holds the sort value on the collection. The Admin App uses this to allow drag-and-drop manual sorting.")],-1),R=s("code",null,"accountability",-1),L=t(),Q=s("strong",null,"string",-1),W=s("br",null,null,-1),G=t(" What data is tracked. One of "),O=s("code",null,"all",-1),D=t(", "),B=s("code",null,"activity",-1),I=t(". See "),H=t("Accountability"),N=t(" for more information."),M=s("code",null,"item_duplication_fields",-1),U=t(),V=s("strong",null,"array",-1),Y=s("br",null,null,-1),z=t(" What fields are duplicated during \u201CSave as copy\u201D action of an item in this collection. See "),F=t("Duplication"),J=t(" for more information."),K=s("code",null,"group",-1),X=t(),Z=s("strong",null,"string",-1),$=s("br",null,null,-1),ss=t(" The name of the parent collection. This is used in "),ts=t("grouping/nesting of collections"),ns=t("."),es=s("code",null,"sort",-1),ls=t(),as=s("strong",null,"number",-1),os=s("br",null,null,-1),cs=t(" What sort order of the collection relative to other collections of the same level. This is used in "),is=t("sorting of collections"),hs=t("."),rs=s("p",null,[s("code",null,"collapse"),t(),s("strong",null,"string"),s("br"),t(" What is the default behavior of this collection or \u201Cfolder\u201D collection when it has nested collections. One of "),s("code",null,"open"),t(", "),s("code",null,"closed"),t(", "),s("code",null,"locked"),t(".")],-1),ds=s("h4",{id:"schema",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#schema"},"#"),t(" Schema")],-1),ps=s("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers.",-1),us=s("p",null,[s("code",null,"name"),t(),s("strong",null,"string"),s("br"),t(" The table name.")],-1),_s=s("p",null,[s("code",null,"comment"),t(),s("strong",null,"string"),s("br"),t(" The table comment.")],-1),ms={class:"tip hint"},js=t("\u201Cfolder\u201D collections do not hold any data"),gs=t(", hence their schema would be "),fs=s("code",null,"null",-1),bs=t("."),ys=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),t(`
2
2
  `),s("span",{class:"hljs-attr"},'"collection"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-string"},'"articles"'),s("span",{class:"hljs-punctuation"},","),t(`
3
3
  `),s("span",{class:"hljs-attr"},'"meta"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-punctuation"},"{"),t(`
4
4
  `),s("span",{class:"hljs-attr"},'"collection"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-string"},'"articles"'),s("span",{class:"hljs-punctuation"},","),t(`
@@ -30,7 +30,7 @@ import{a as o,o as h,b as r,w as n,g as s,e as l,B as t}from"./runtime-core.esm-
30
30
  `),s("span",{class:"hljs-attr"},'"comment"'),s("span",{class:"hljs-punctuation"},":"),t(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),t(`
31
31
  `),s("span",{class:"hljs-punctuation"},"}"),t(`
32
32
  `),s("span",{class:"hljs-punctuation"},"}"),t(`
33
- `)])],-1),xs=s("hr",null,null,-1),qs=s("h2",{id:"list-collections",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-collections"},"#"),t(" List Collections")],-1),vs=s("p",null,"List the available collections.",-1),ws=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),t(" Query Parameters")],-1),Ts=s("p",null,"This endpoint doesn\u2019t currently support any query parameters.",-1),As=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),t(" Returns")],-1),ks=s("p",null,[t("An array of "),s("a",{href:"#the-collection-object"},"collection objects"),t(".")],-1),Es=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),t(" REST API")],-1),Ss=s("pre",null,[s("code",null,`GET /collections
33
+ `)])],-1),xs=s("hr",null,null,-1),qs=s("h2",{id:"list-collections",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-collections"},"#"),t(" List Collections")],-1),vs=s("p",null,"List the available collections.",-1),ws=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),t(" Query Parameters")],-1),Ts=s("p",null,"This endpoint doesn\u2019t currently support any query parameters.",-1),As=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),t(" Returns")],-1),Es=s("p",null,[t("An array of "),s("a",{href:"#the-collection-object"},"collection objects"),t(".")],-1),ks=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),t(" REST API")],-1),Ss=s("pre",null,[s("code",null,`GET /collections
34
34
  SEARCH /collections
35
35
  `)],-1),Cs=t("Learn more about SEARCH ->"),Ps=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),t(" GraphQL")],-1),Rs=s("pre",null,[s("code",null,`POST /graphql/system
36
36
  `)],-1),Ls=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),t(` {
@@ -41,7 +41,7 @@ SEARCH /collections
41
41
  `),s("span",{class:"hljs-keyword"},"..."),t(`
42
42
  }
43
43
  }
44
- `)])],-1),Gs=s("hr",null,null,-1),Os=s("h2",{id:"retrieve-a-collection",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-collection"},"#"),t(" Retrieve a Collection")],-1),Bs=s("p",null,"Retrieve a single collection by table name.",-1),Ds=s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),t(" Query Parameters")],-1),Is=s("p",null,"This endpoint doesn\u2019t currently support any query parameters.",-1),Hs=s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),t(" Returns")],-1),Ns=s("p",null,[t("A "),s("a",{href:"#the-collection-object"},"collection object"),t(".")],-1),Ms=s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),t(" REST API")],-1),Us=s("pre",null,[s("code",null,`GET /collections/:collection
44
+ `)])],-1),Gs=s("hr",null,null,-1),Os=s("h2",{id:"retrieve-a-collection",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-collection"},"#"),t(" Retrieve a Collection")],-1),Ds=s("p",null,"Retrieve a single collection by table name.",-1),Bs=s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),t(" Query Parameters")],-1),Is=s("p",null,"This endpoint doesn\u2019t currently support any query parameters.",-1),Hs=s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),t(" Returns")],-1),Ns=s("p",null,[t("A "),s("a",{href:"#the-collection-object"},"collection object"),t(".")],-1),Ms=s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),t(" REST API")],-1),Us=s("pre",null,[s("code",null,`GET /collections/:collection
45
45
  `)],-1),Vs=s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),t(" Example")],-1),Ys=s("pre",null,[s("code",null,`GET /collections/articles
46
46
  `)],-1),zs=s("h3",{id:"graphql-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-1"},"#"),t(" GraphQL")],-1),Fs=s("pre",null,[s("code",null,`POST /graphql/system
47
47
  `)],-1),Js=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),t(` {
@@ -65,7 +65,7 @@ SEARCH /collections
65
65
  `)],-1),At=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),t(` {
66
66
  create_collections_item(data: directus_collections): directus_collections
67
67
  }
68
- `)])],-1),kt=s("h5",{id:"example-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-4"},"#"),t(" Example")],-1),Et=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),t(` {
68
+ `)])],-1),Et=s("h5",{id:"example-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-4"},"#"),t(" Example")],-1),kt=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),t(` {
69
69
  create_collections_item(data: {
70
70
  collection: `),s("span",{class:"hljs-string"},'"testimonials"'),t(`,
71
71
  meta: {
@@ -75,7 +75,7 @@ SEARCH /collections
75
75
  `),s("span",{class:"hljs-keyword"},"..."),t(`
76
76
  }
77
77
  }
78
- `)])],-1),St=s("hr",null,null,-1),Ct=s("h2",{id:"update-a-collection",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-a-collection"},"#"),t(" Update a Collection")],-1),Pt=s("p",null,"Update the metadata for an existing collection.",-1),Rt=s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),t(" Query Parameters")],-1),Lt=s("p",null,"This endpoint doesn\u2019t currently support any query parameters.",-1),Qt=s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),t(" Request Body")],-1),Wt=s("p",null,[t("You can only update the "),s("code",null,"meta"),t(" values of the "),s("a",{href:"#the-collection-object"},"collection object"),t(". Updating the collection name is not supported at this time.")],-1),Gt=s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),t(" Returns")],-1),Ot=s("p",null,[t("The "),s("a",{href:"#the-collection-object"},"collection object"),t(" for the updated collection in this request.")],-1),Bt=s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),t(" REST API")],-1),Dt=s("pre",null,[s("code",null,`PATCH /collections/:collection
78
+ `)])],-1),St=s("hr",null,null,-1),Ct=s("h2",{id:"update-a-collection",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-a-collection"},"#"),t(" Update a Collection")],-1),Pt=s("p",null,"Update the metadata for an existing collection.",-1),Rt=s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),t(" Query Parameters")],-1),Lt=s("p",null,"This endpoint doesn\u2019t currently support any query parameters.",-1),Qt=s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),t(" Request Body")],-1),Wt=s("p",null,[t("You can only update the "),s("code",null,"meta"),t(" values of the "),s("a",{href:"#the-collection-object"},"collection object"),t(". Updating the collection name is not supported at this time.")],-1),Gt=s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),t(" Returns")],-1),Ot=s("p",null,[t("The "),s("a",{href:"#the-collection-object"},"collection object"),t(" for the updated collection in this request.")],-1),Dt=s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),t(" REST API")],-1),Bt=s("pre",null,[s("code",null,`PATCH /collections/:collection
79
79
  `)],-1),It=s("h5",{id:"example-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-5"},"#"),t(" Example")],-1),Ht=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /collections/testimonials"),t(`
80
80
 
81
81
  `),s("span",{class:"hljs-punctuation"},"{"),t(`
@@ -103,4 +103,4 @@ SEARCH /collections
103
103
  collection
104
104
  }
105
105
  }
106
- `)])],-1),on=s("hr",null,null,-1),pn="Collections",un=!1,_n='REST and GraphQL API documentation on the "Collections" collection in Directus.',mn="5 min read",jn="page-reference",gn={name:"collections",setup(cn,{expose:c}){const a={title:"Collections",modularExtension:!1,description:'REST and GraphQL API documentation on the "Collections" collection in Directus.',readTime:"5 min read",pageClass:"page-reference"};return c({frontmatter:a}),(hn,rn)=>{const e=o("router-link"),i=o("docs-wrapper");return h(),r(i,{frontmatter:a},{default:n(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,l(e,{to:"/docs/getting-started/glossary#collections"},{default:n(()=>[u]),_:1}),_])]),m,j,g,f,b,y,x,q,v,w,T,A,k,E,S,C,P,s("p",null,[R,L,Q,W,G,O,B,D,I,l(e,{to:"/docs/configuration/data-model#accountability"},{default:n(()=>[H]),_:1}),N]),s("p",null,[M,U,V,Y,z,l(e,{to:"/docs/configuration/data-model#duplication"},{default:n(()=>[F]),_:1}),J]),s("p",null,[K,X,Z,$,ss,l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[ts]),_:1}),ns]),s("p",null,[es,ls,as,os,cs,l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[is]),_:1}),hs]),rs,ds,ps,us,_s,s("div",ms,[s("p",null,[l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[js]),_:1}),gs,fs,bs])]),ys,xs,qs,vs,ws,Ts,As,ks,Es,Ss,s("p",null,[l(e,{to:"/docs/reference/introduction#search-http-method"},{default:n(()=>[Cs]),_:1})]),Ps,Rs,Ls,Qs,Ws,Gs,Os,Bs,Ds,Is,Hs,Ns,Ms,Us,Vs,Ys,zs,Fs,Js,Ks,Xs,Zs,$s,st,tt,nt,et,lt,s("p",null,[at,ot,ct,l(e,{to:"/docs/reference/system/fields#the-fields-object"},{default:n(()=>[it]),_:1}),ht]),rt,dt,s("div",pt,[s("p",null,[ut,_t,mt,jt,gt,l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[ft]),_:1}),bt])]),yt,xt,qt,vt,wt,Tt,At,kt,Et,St,Ct,Pt,Rt,Lt,Qt,Wt,Gt,Ot,Bt,Dt,It,Ht,Nt,Mt,Ut,Vt,Yt,zt,Ft,Jt,Kt,Xt,Zt,$t,sn,tn,nn,en,ln,an,on])]),_:1})}}};export{gn as default,_n as description,un as modularExtension,jn as pageClass,mn as readTime,pn as title};
106
+ `)])],-1),on=s("hr",null,null,-1),pn="Collections",un=!1,_n='REST and GraphQL API documentation on the "Collections" collection in Directus.',mn="5 min read",jn="page-reference",gn={name:"collections",setup(cn,{expose:c}){const a={title:"Collections",modularExtension:!1,description:'REST and GraphQL API documentation on the "Collections" collection in Directus.',readTime:"5 min read",pageClass:"page-reference"};return c({frontmatter:a}),(hn,rn)=>{const e=o("router-link"),i=o("docs-wrapper");return h(),r(i,{frontmatter:a},{default:n(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,l(e,{to:"/docs/getting-started/glossary#collections"},{default:n(()=>[u]),_:1}),_])]),m,j,g,f,b,y,x,q,v,w,T,A,E,k,S,C,P,s("p",null,[R,L,Q,W,G,O,D,B,I,l(e,{to:"/docs/configuration/data-model#accountability"},{default:n(()=>[H]),_:1}),N]),s("p",null,[M,U,V,Y,z,l(e,{to:"/docs/configuration/data-model#duplication"},{default:n(()=>[F]),_:1}),J]),s("p",null,[K,X,Z,$,ss,l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[ts]),_:1}),ns]),s("p",null,[es,ls,as,os,cs,l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[is]),_:1}),hs]),rs,ds,ps,us,_s,s("div",ms,[s("p",null,[l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[js]),_:1}),gs,fs,bs])]),ys,xs,qs,vs,ws,Ts,As,Es,ks,Ss,s("p",null,[l(e,{to:"/docs/reference/introduction#search-http-method"},{default:n(()=>[Cs]),_:1})]),Ps,Rs,Ls,Qs,Ws,Gs,Os,Ds,Bs,Is,Hs,Ns,Ms,Us,Vs,Ys,zs,Fs,Js,Ks,Xs,Zs,$s,st,tt,nt,et,lt,s("p",null,[at,ot,ct,l(e,{to:"/docs/reference/system/fields#the-fields-object"},{default:n(()=>[it]),_:1}),ht]),rt,dt,s("div",pt,[s("p",null,[ut,_t,mt,jt,gt,l(e,{to:"/docs/configuration/data-model#sorting-grouping"},{default:n(()=>[ft]),_:1}),bt])]),yt,xt,qt,vt,wt,Tt,At,Et,kt,St,Ct,Pt,Rt,Lt,Qt,Wt,Gt,Ot,Dt,Bt,It,Ht,Nt,Mt,Ut,Vt,Yt,zt,Ft,Jt,Kt,Xt,Zt,$t,sn,tn,nn,en,ln,an,on])]),_:1})}}};export{gn as default,_n as description,un as modularExtension,jn as pageClass,mn as readTime,pn as title};
@@ -1 +1 @@
1
- import{y}from"./index.5552d1ba.entry.js";function k(c,d){return d.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(l){if(l!=="default"&&!(l in c)){var u=Object.getOwnPropertyDescriptor(i,l);Object.defineProperty(c,l,u.get?u:{enumerable:!0,get:function(){return i[l]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(c,d){(function(i){i(y.exports)})(function(i){i.defineMode("commonlisp",function(l){var u=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,s=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,b=/[^\s'`,@()\[\]";]/,o;function f(e){for(var n;n=e.next();)if(n=="\\")e.next();else if(!b.test(n)){e.backUp(1);break}return e.current()}function p(e,n){if(e.eatSpace())return o="ws",null;if(e.match(a))return"number";var t=e.next();if(t=="\\"&&(t=e.next()),t=='"')return(n.tokenize=m)(e,n);if(t=="(")return o="open","bracket";if(t==")"||t=="]")return o="close","bracket";if(t==";")return e.skipToEnd(),o="ws","comment";if(/['`,@]/.test(t))return null;if(t=="|")return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if(t=="#"){var t=e.next();return t=="("?(o="open","bracket"):/[+\-=\.']/.test(t)||/\d/.test(t)&&e.match(/^\d*#/)?null:t=="|"?(n.tokenize=v)(e,n):t==":"?(f(e),"meta"):t=="\\"?(e.next(),f(e),"string-2"):"error"}else{var r=f(e);return r=="."?null:(o="symbol",r=="nil"||r=="t"||r.charAt(0)==":"?"atom":n.lastType=="open"&&(u.test(r)||s.test(r))?"keyword":r.charAt(0)=="&"?"variable-2":"variable")}}function m(e,n){for(var t=!1,r;r=e.next();){if(r=='"'&&!t){n.tokenize=p;break}t=!t&&r=="\\"}return"string"}function v(e,n){for(var t,r;t=e.next();){if(t=="#"&&r=="|"){n.tokenize=p;break}r=t}return o="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:p}},token:function(e,n){e.sol()&&typeof n.ctx.indentTo!="number"&&(n.ctx.indentTo=n.ctx.start+1),o=null;var t=n.tokenize(e,n);return o!="ws"&&(n.ctx.indentTo==null?o=="symbol"&&s.test(e.current())?n.ctx.indentTo=n.ctx.start+l.indentUnit:n.ctx.indentTo="next":n.ctx.indentTo=="next"&&(n.ctx.indentTo=e.column()),n.lastType=o),o=="open"?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:o=="close"&&(n.ctx=n.ctx.prev||n.ctx),t},indent:function(e,n){var t=e.ctx.indentTo;return typeof t=="number"?t:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",blockCommentStart:"#|",blockCommentEnd:"|#"}}),i.defineMIME("text/x-common-lisp","commonlisp")})})();var h=x.exports,g=k({__proto__:null,default:h},[x.exports]);export{g as c};
1
+ import{y}from"./index.c02613ac.entry.js";function k(c,d){return d.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(l){if(l!=="default"&&!(l in c)){var u=Object.getOwnPropertyDescriptor(i,l);Object.defineProperty(c,l,u.get?u:{enumerable:!0,get:function(){return i[l]}})}})}),Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(c,d){(function(i){i(y.exports)})(function(i){i.defineMode("commonlisp",function(l){var u=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,s=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,b=/[^\s'`,@()\[\]";]/,o;function f(e){for(var n;n=e.next();)if(n=="\\")e.next();else if(!b.test(n)){e.backUp(1);break}return e.current()}function p(e,n){if(e.eatSpace())return o="ws",null;if(e.match(a))return"number";var t=e.next();if(t=="\\"&&(t=e.next()),t=='"')return(n.tokenize=m)(e,n);if(t=="(")return o="open","bracket";if(t==")"||t=="]")return o="close","bracket";if(t==";")return e.skipToEnd(),o="ws","comment";if(/['`,@]/.test(t))return null;if(t=="|")return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if(t=="#"){var t=e.next();return t=="("?(o="open","bracket"):/[+\-=\.']/.test(t)||/\d/.test(t)&&e.match(/^\d*#/)?null:t=="|"?(n.tokenize=v)(e,n):t==":"?(f(e),"meta"):t=="\\"?(e.next(),f(e),"string-2"):"error"}else{var r=f(e);return r=="."?null:(o="symbol",r=="nil"||r=="t"||r.charAt(0)==":"?"atom":n.lastType=="open"&&(u.test(r)||s.test(r))?"keyword":r.charAt(0)=="&"?"variable-2":"variable")}}function m(e,n){for(var t=!1,r;r=e.next();){if(r=='"'&&!t){n.tokenize=p;break}t=!t&&r=="\\"}return"string"}function v(e,n){for(var t,r;t=e.next();){if(t=="#"&&r=="|"){n.tokenize=p;break}r=t}return o="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:p}},token:function(e,n){e.sol()&&typeof n.ctx.indentTo!="number"&&(n.ctx.indentTo=n.ctx.start+1),o=null;var t=n.tokenize(e,n);return o!="ws"&&(n.ctx.indentTo==null?o=="symbol"&&s.test(e.current())?n.ctx.indentTo=n.ctx.start+l.indentUnit:n.ctx.indentTo="next":n.ctx.indentTo=="next"&&(n.ctx.indentTo=e.column()),n.lastType=o),o=="open"?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:o=="close"&&(n.ctx=n.ctx.prev||n.ctx),t},indent:function(e,n){var t=e.ctx.indentTo;return typeof t=="number"?t:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",blockCommentStart:"#|",blockCommentEnd:"|#"}}),i.defineMIME("text/x-common-lisp","commonlisp")})})();var h=x.exports,g=k({__proto__:null,default:h},[x.exports]);export{g as c};
@@ -1 +1 @@
1
- import{a as n,o as r,b as a,w as s,g as e,e as d,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const c={class:"markdown-body"},u=e("p",null,"Conditions allow you to alter the current field\u2019s setup based on the values of other fields in the form. This allows you to show/hide the field, make it readonly, or change the interface options.",-1),_=e("p",null,[t("Each field can have one or more "),e("em",null,"rules"),t(". Each rule has the following configuration options:")],-1),f=e("li",null,[e("strong",null,"Name"),t(": The name of the rule. This is only used internally for convenience purposes")],-1),p=e("strong",null,"Rule",-1),m=t(": The rule that controls whether or not these conditions are applied. Rule follows the "),g=t("Filter Rules"),w=t(" spec"),y=e("li",null,[e("strong",null,"Readonly"),t(": Whether or not the field is readonly when the condition is matched")],-1),T=e("li",null,[e("strong",null,"Hidden"),t(": Whether or not the field is hidden when the condition is matched")],-1),v=e("li",null,[e("strong",null,"Required"),t(": Whether or not the field is required when the condition is matched")],-1),k=e("li",null,[e("strong",null,"Interface Options"),t(": Any additional configuration for the selected interface")],-1),x=e("p",null,"These changes to the field are merged onto the base configuration of the field. This means you can have the field hidden by default, and then only toggle the hidden state of the field in the condition.",-1),b=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Order Matters"),e("p",null,[t("The conditions are matched in order. The "),e("strong",null,"last"),t(" condition that matches is the one that\u2019s used to apply the changes.")])],-1),N="Conditions",V=!1,W={name:"conditions",setup(C,{expose:i}){const o={title:"Conditions",modularExtension:!1};return i({frontmatter:o}),(R,B)=>{const l=n("router-link"),h=n("docs-wrapper");return r(),a(h,{frontmatter:o},{default:s(()=>[e("div",c,[u,_,e("ul",null,[f,e("li",null,[p,m,d(l,{to:"/docs/reference/filter-rules"},{default:s(()=>[g]),_:1}),w]),y,T,v,k]),x,b])]),_:1})}}};export{W as default,V as modularExtension,N as title};
1
+ import{a as n,o as r,b as a,w as s,l as e,e as d,E as t}from"./runtime-core.esm-bundler.32cac88a.js";const c={class:"markdown-body"},u=e("p",null,"Conditions allow you to alter the current field\u2019s setup based on the values of other fields in the form. This allows you to show/hide the field, make it readonly, or change the interface options.",-1),_=e("p",null,[t("Each field can have one or more "),e("em",null,"rules"),t(". Each rule has the following configuration options:")],-1),f=e("li",null,[e("strong",null,"Name"),t(": The name of the rule. This is only used internally for convenience purposes")],-1),p=e("strong",null,"Rule",-1),m=t(": The rule that controls whether or not these conditions are applied. Rule follows the "),g=t("Filter Rules"),w=t(" spec"),y=e("li",null,[e("strong",null,"Readonly"),t(": Whether or not the field is readonly when the condition is matched")],-1),T=e("li",null,[e("strong",null,"Hidden"),t(": Whether or not the field is hidden when the condition is matched")],-1),v=e("li",null,[e("strong",null,"Required"),t(": Whether or not the field is required when the condition is matched")],-1),k=e("li",null,[e("strong",null,"Interface Options"),t(": Any additional configuration for the selected interface")],-1),x=e("p",null,"These changes to the field are merged onto the base configuration of the field. This means you can have the field hidden by default, and then only toggle the hidden state of the field in the condition.",-1),b=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Order Matters"),e("p",null,[t("The conditions are matched in order. The "),e("strong",null,"last"),t(" condition that matches is the one that\u2019s used to apply the changes.")])],-1),B="Conditions",V=!1,W={name:"conditions",setup(C,{expose:i}){const o={title:"Conditions",modularExtension:!1};return i({frontmatter:o}),(E,R)=>{const l=n("router-link"),h=n("docs-wrapper");return r(),a(h,{frontmatter:o},{default:s(()=>[e("div",c,[u,_,e("ul",null,[f,e("li",null,[p,m,d(l,{to:"/docs/reference/filter-rules"},{default:s(()=>[g]),_:1}),w]),y,T,v,k]),x,b])]),_:1})}}};export{W as default,V as modularExtension,B as title};