@directus/app 9.16.1 → 9.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) 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.1a58c745.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.54876b5a.js} +1 -1
  7. package/dist/assets/{architecture.d16e36b1.js → architecture.aaf5c296.js} +1 -1
  8. package/dist/assets/{asciiarmor.23cc7d28.js → asciiarmor.cb3baff4.js} +1 -1
  9. package/dist/assets/{asn.1.914dce71.js → asn.1.d62f0365.js} +1 -1
  10. package/dist/assets/{asterisk.960196ef.js → asterisk.3b59378d.js} +1 -1
  11. package/dist/assets/{authentication.ee6465fd.js → authentication.61c42dda.js} +7 -7
  12. package/dist/assets/{autorefresh.9c9423b3.js → autorefresh.c4183851.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.173012de.js +1 -0
  16. package/dist/assets/{brainfuck.652d067a.js → brainfuck.f4d448f4.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.e4048935.js} +1 -1
  20. package/dist/assets/{clojure.0ed660e3.js → clojure.754181ba.js} +1 -1
  21. package/dist/assets/{cloudron.aa3368a8.js → cloudron.8200e84b.js} +1 -1
  22. package/dist/assets/{cmake.795b52a3.js → cmake.abb9659c.js} +1 -1
  23. package/dist/assets/{cobol.dadc6a67.js → cobol.1e66a7c9.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.020b8eec.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.bea6c921.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.fd7831f1.js} +1 -1
  35. package/dist/assets/{css.6fb39c02.js → css.c3f2ba9c.js} +1 -1
  36. package/dist/assets/{cypher.62403d7d.js → cypher.3812adce.js} +1 -1
  37. package/dist/assets/{d.3e09de4f.js → d.c23c175b.js} +1 -1
  38. package/dist/assets/{dart.41841dee.js → dart.ad969d10.js} +1 -1
  39. package/dist/assets/{data-model.ef4eedaf.js → data-model.dbce1366.js} +7 -7
  40. package/dist/assets/de-DE.9b0cb798.js +1 -0
  41. package/dist/assets/{diff.545183ee.js → diff.55fa2e75.js} +1 -1
  42. package/dist/assets/{digitalocean-app-platform.5dd9a78b.js → digitalocean-app-platform.b046ae55.js} +2 -2
  43. package/dist/assets/{display-templates.6412d9bf.js → display-templates.91e34e9f.js} +1 -1
  44. package/dist/assets/display.494b7d1f.js +1 -0
  45. package/dist/assets/{displays.c3b9934b.js → displays.54ddeb10.js} +3 -3
  46. package/dist/assets/{django.17509d05.js → django.790045e7.js} +1 -1
  47. package/dist/assets/{docker.2130afa6.js → docker.36215dae.js} +2 -2
  48. package/dist/assets/{dockerfile.8e4c8627.js → dockerfile.1f25303f.js} +1 -1
  49. package/dist/assets/{documentation.e232fdb2.js → documentation.cb5bf843.js} +1 -1
  50. package/dist/assets/{dtd.c5634f07.js → dtd.6e6a3545.js} +1 -1
  51. package/dist/assets/{dylan.ed64e93d.js → dylan.b609acb8.js} +1 -1
  52. package/dist/assets/{ebnf.f0a160c2.js → ebnf.82c75be0.js} +1 -1
  53. package/dist/assets/{ecl.f410edf0.js → ecl.b0193626.js} +1 -1
  54. package/dist/assets/{eiffel.fc6fa090.js → eiffel.e22b2ddf.js} +1 -1
  55. package/dist/assets/{elm.d1f7e66b.js → elm.273a08e2.js} +1 -1
  56. package/dist/assets/{email-templates.0aa59541.js → email-templates.b0b82036.js} +1 -1
  57. package/dist/assets/{endpoints.b664ef10.js → endpoints.1ba44e66.js} +1 -1
  58. package/dist/assets/{erlang.f5c5e431.js → erlang.a39c5f2d.js} +1 -1
  59. package/dist/assets/es-419.733b82e4.js +1 -0
  60. package/dist/assets/es-CL.1db5f1f8.js +1 -0
  61. package/dist/assets/es-ES.62e820db.js +1 -0
  62. package/dist/assets/es-MX.37c3d88e.js +1 -0
  63. package/dist/assets/{extensions.e511fc6d.js → extensions.b4c93ce0.js} +2 -2
  64. package/dist/assets/{factor.fdee7d27.js → factor.abb1d150.js} +1 -1
  65. package/dist/assets/{faq.cc159e10.js → faq.4ca4b467.js} +1 -1
  66. package/dist/assets/{fcl.8ef841db.js → fcl.201b4224.js} +1 -1
  67. package/dist/assets/fi-FI.38180e94.js +1 -0
  68. package/dist/assets/{field-types.129a2c41.js → field-types.ed85836e.js} +1 -1
  69. package/dist/assets/{field.3061af3d.js → field.fb2213dd.js} +1 -1
  70. package/dist/assets/{fields.9e13d3e0.js → fields.057754cf.js} +5 -5
  71. package/dist/assets/{fields.1a3f05d2.js → fields.f3868bd3.js} +1 -1
  72. package/dist/assets/{file-library.531c267c.js → file-library.5d646392.js} +1 -1
  73. package/dist/assets/{files.af2c1a43.js → files.e0ad4209.js} +6 -6
  74. package/dist/assets/{filter-rules.454352d1.js → filter-rules.22fc9a6d.js} +1 -1
  75. package/dist/assets/{filters.57f37ec6.js → filters.5cf9b5c5.js} +1 -1
  76. package/dist/assets/flows.79e56304.js +17 -0
  77. package/dist/assets/{flows.4d2856ca.js → flows.eec58d0b.js} +5 -5
  78. package/dist/assets/{folders.10accc4b.js → folders.83d5bb9d.js} +1 -1
  79. package/dist/assets/{forth.2b2f71e9.js → forth.ef65c814.js} +1 -1
  80. package/dist/assets/{fortran.eeb26d81.js → fortran.08c1ca68.js} +1 -1
  81. package/dist/assets/fr-CA.67ca57c5.js +1 -0
  82. package/dist/assets/fr-FR.ae06065b.js +1 -0
  83. package/dist/assets/{gas.12f084f2.js → gas.d7413afc.js} +1 -1
  84. package/dist/assets/{gcp.c7937b1a.js → gcp.60b49ff2.js} +1 -1
  85. package/dist/assets/{gfm.3b66480c.js → gfm.527c31bf.js} +1 -1
  86. package/dist/assets/{gherkin.91e46d93.js → gherkin.da237d8e.js} +1 -1
  87. package/dist/assets/{github-ci.f7ee57b8.js → github-ci.b23bbe2d.js} +2 -2
  88. package/dist/assets/{glossary.80e53e05.js → glossary.238763c8.js} +1 -1
  89. package/dist/assets/{glossary.c84cb559.js → glossary.db37b807.js} +1 -1
  90. package/dist/assets/{go.b86f91ab.js → go.66559a1b.js} +1 -1
  91. package/dist/assets/{groovy.cd378bb4.js → groovy.dd5aa6ca.js} +1 -1
  92. package/dist/assets/{haml.a6cabf01.js → haml.c0ef60f2.js} +1 -1
  93. package/dist/assets/{handlebars.5c6be823.js → handlebars.76b15ded.js} +1 -1
  94. package/dist/assets/{haskell-literate.c38a1697.js → haskell-literate.8bce8183.js} +1 -1
  95. package/dist/assets/{haskell.a43190de.js → haskell.4d6cd941.js} +1 -1
  96. package/dist/assets/{haxe.67ea76a0.js → haxe.561cd86a.js} +1 -1
  97. package/dist/assets/he-IL.767fa735.js +1 -0
  98. package/dist/assets/{hooks.d1b00fc1.js → hooks.7b1e235e.js} +4 -4
  99. package/dist/assets/{htmlembedded.d7fc4ddf.js → htmlembedded.f35c4a09.js} +1 -1
  100. package/dist/assets/{htmlmixed.42236134.js → htmlmixed.3d063271.js} +1 -1
  101. package/dist/assets/{http.8876645f.js → http.be1a7f13.js} +1 -1
  102. package/dist/assets/{idl.1e06cb13.js → idl.961123e9.js} +1 -1
  103. package/dist/assets/{iis.2b991a80.js → iis.67a83939.js} +1 -1
  104. package/dist/assets/{import-export.74a08d53.js → import-export.92aee031.js} +1 -1
  105. package/dist/assets/{index.ab135b59.js → index.0645834a.js} +1 -1
  106. package/dist/assets/{index.4894f51e.js → index.0d2e59f7.js} +1 -1
  107. package/dist/assets/{index.15e3c95b.js → index.0eaf700c.js} +1 -1
  108. package/dist/assets/{index.58ce5d3f.js → index.197b17c1.js} +1 -1
  109. package/dist/assets/{index.36361e5b.js → index.1a3f31c4.js} +1 -1
  110. package/dist/assets/{index.e24720c2.js → index.1bbfd138.js} +1 -1
  111. package/dist/assets/{index.aeca2d25.js → index.1cd3d5ba.js} +1 -1
  112. package/dist/assets/{index.094d7435.js → index.22f2ba3c.js} +1 -1
  113. package/dist/assets/{index.b3227ed5.js → index.26419dc6.js} +1 -1
  114. package/dist/assets/{index.c0a6d945.js → index.27f67d42.js} +1 -1
  115. package/dist/assets/{index.5e2156f1.js → index.28a0ece3.js} +1 -1
  116. package/dist/assets/{index.719a1bf6.css → index.29c0adc9.css} +1 -1
  117. package/dist/assets/{index.43fc16cf.js → index.2e9e634f.js} +1 -1
  118. package/dist/assets/{index.a157d24b.js → index.322dc6a4.js} +1 -1
  119. package/dist/assets/{index.970729f9.js → index.32e3af07.js} +1 -1
  120. package/dist/assets/{index.44dfee18.js → index.34878ac2.js} +1 -1
  121. package/dist/assets/{index.b91f7cb9.js → index.38794fb2.js} +1 -1
  122. package/dist/assets/{index.4f3e1405.js → index.3907fbe9.js} +1 -1
  123. package/dist/assets/{index.8e6a2df6.js → index.39c3868e.js} +1 -1
  124. package/dist/assets/{index.6b8582b3.js → index.46908e35.js} +1 -1
  125. package/dist/assets/{index.5785bd5b.js → index.4a4f8949.js} +1 -1
  126. package/dist/assets/{index.8b727b3d.js → index.4a82f998.js} +1 -1
  127. package/dist/assets/{index.3dbbeee8.js → index.54ef22f3.js} +1 -1
  128. package/dist/assets/index.556512f9.js +1 -0
  129. package/dist/assets/{index.ee33b489.js → index.5713cf94.js} +1 -1
  130. package/dist/assets/{index.5efaa053.js → index.57954ae2.js} +1 -1
  131. package/dist/assets/{index.21e15966.js → index.594e4655.js} +1 -1
  132. package/dist/assets/{index.5bccbb70.js → index.5af46380.js} +1 -1
  133. package/dist/assets/{index.f45296e2.js → index.5b4bffdb.js} +1 -1
  134. package/dist/assets/{index.7fe2a6c1.js → index.5b507941.js} +1 -1
  135. package/dist/assets/{index.b990ffa7.js → index.6120d483.js} +1 -1
  136. package/dist/assets/{index.1c2bca61.js → index.620380a7.js} +1 -1
  137. package/dist/assets/{index.4caf473d.js → index.66b6c68b.js} +1 -1
  138. package/dist/assets/{index.286f3139.js → index.686784f1.js} +1 -1
  139. package/dist/assets/{index.b4512435.js → index.6c88db6e.js} +1 -1
  140. package/dist/assets/{index.238d8ccc.js → index.78f834f7.js} +1 -1
  141. package/dist/assets/{index.ac660d97.js → index.7ce1e572.js} +1 -1
  142. package/dist/assets/{index.34e50685.js → index.7dfe02f2.js} +1 -1
  143. package/dist/assets/{index.16102ca4.js → index.7e2708ed.js} +1 -1
  144. package/dist/assets/{index.ca46607e.js → index.7e4713d2.js} +1 -1
  145. package/dist/assets/{index.d9e06c0f.js → index.7eae9d5a.js} +1 -1
  146. package/dist/assets/{index.63beca13.js → index.81aae858.js} +1 -1
  147. package/dist/assets/{index.fee1fadb.js → index.83e516d5.js} +1 -1
  148. package/dist/assets/{index.2fa94ca6.js → index.84f0c372.js} +1 -1
  149. package/dist/assets/{index.8d64a2cc.js → index.86670575.js} +1 -1
  150. package/dist/assets/{index.ebc5fd3e.js → index.87b80a1b.js} +1 -1
  151. package/dist/assets/{index.d78b4dd1.js → index.92f081c8.js} +1 -1
  152. package/dist/assets/{index.86900d0e.js → index.9728d28b.js} +1 -1
  153. package/dist/assets/{index.ebace2a1.js → index.9ea39797.js} +1 -1
  154. package/dist/assets/{index.ce459a32.js → index.9f6f893d.js} +1 -1
  155. package/dist/assets/{index.38ca65a8.js → index.a07c2783.js} +1 -1
  156. package/dist/assets/{index.3a449212.js → index.a1938c4c.js} +1 -1
  157. package/dist/assets/{index.d3e27d97.js → index.a1e36825.js} +1 -1
  158. package/dist/assets/{index.fd19f059.js → index.a4be7bd2.js} +1 -1
  159. package/dist/assets/{index.048bfcd4.js → index.a4f50556.js} +1 -1
  160. package/dist/assets/{index.5552d1ba.entry.js → index.a6745321.entry.js} +219 -219
  161. package/dist/assets/index.a696cf7a.css +1 -0
  162. package/dist/assets/{index.727f38c4.js → index.a84a7598.js} +1 -1
  163. package/dist/assets/{index.9a2ded43.js → index.a981939a.js} +1 -1
  164. package/dist/assets/{index.ffa2a1cd.js → index.ad382721.js} +1 -1
  165. package/dist/assets/{index.dd5b5aec.js → index.b07b6c71.js} +1 -1
  166. package/dist/assets/{index.766f9329.js → index.b440ccbe.js} +1 -1
  167. package/dist/assets/{index.8b83352c.js → index.b4f005cc.js} +1 -1
  168. package/dist/assets/{index.504c871e.js → index.b7016c72.js} +1 -1
  169. package/dist/assets/{index.dae019ea.js → index.b73fc9df.js} +1 -1
  170. package/dist/assets/{index.efb2f918.js → index.b7eac46d.js} +1 -1
  171. package/dist/assets/{index.65ef9955.js → index.b8bc9ce9.js} +1 -1
  172. package/dist/assets/{index.6be1ec19.js → index.ba4d69a6.js} +1 -1
  173. package/dist/assets/{index.7f1515ca.js → index.babc408d.js} +1 -1
  174. package/dist/assets/{index.a14f652a.js → index.bb9b3d77.js} +1 -1
  175. package/dist/assets/{index.6ac5a367.js → index.bcef0184.js} +1 -1
  176. package/dist/assets/{index.558dbe9d.js → index.bf489604.js} +1 -1
  177. package/dist/assets/{index.73791b0b.js → index.c210d71e.js} +1 -1
  178. package/dist/assets/{index.6c3cfd9d.js → index.c378895c.js} +1 -1
  179. package/dist/assets/{index.8b6e1cf5.js → index.c7c5db2b.js} +1 -1
  180. package/dist/assets/{index.791e9a3d.js → index.d1f370bc.js} +3 -3
  181. package/dist/assets/{index.909efb92.js → index.d7318062.js} +1 -1
  182. package/dist/assets/{index.bb39eac1.js → index.db3bc6a7.js} +1 -1
  183. package/dist/assets/{index.87997092.js → index.e18ed1ac.js} +1 -1
  184. package/dist/assets/{index.b73eaa87.js → index.e22e6eb6.js} +1 -1
  185. package/dist/assets/{index.e7e3b4f1.js → index.e3c74acd.js} +1 -1
  186. package/dist/assets/{index.0152af18.js → index.e5ffe5fd.js} +1 -1
  187. package/dist/assets/{index.dccdb81c.js → index.ef505888.js} +1 -1
  188. package/dist/assets/{index.938b9c64.js → index.f32b69c8.js} +1 -1
  189. package/dist/assets/{index.22cbe4df.js → index.f7c78032.js} +1 -1
  190. package/dist/assets/{index.937b45e4.js → index.fd0568fe.js} +1 -1
  191. package/dist/assets/{input-rich-text-html.c3a5d829.js → input-rich-text-html.282b90c3.js} +30 -30
  192. package/dist/assets/{insights.0f2b188e.js → insights.c3df1bb3.js} +2 -2
  193. package/dist/assets/{installation.131e828a.js → installation.4ab6ce97.js} +1 -1
  194. package/dist/assets/{interface.aa4f61a0.js → interface.1195a442.js} +1 -1
  195. package/dist/assets/{interfaces.fc4c7384.js → interfaces.0dddec2f.js} +1 -1
  196. package/dist/assets/{introduction.b1da78a4.js → introduction.201b3a46.js} +2 -2
  197. package/dist/assets/{introduction.0f06a30b.js → introduction.2a49238f.js} +1 -1
  198. package/dist/assets/{introduction.24acabd2.js → introduction.569a3b41.js} +4 -4
  199. package/dist/assets/{introduction.e8ce5583.js → introduction.daef5dfe.js} +1 -1
  200. package/dist/assets/it-IT.1ddbc757.js +1 -0
  201. package/dist/assets/{items.cc5ed80d.js → items.207153dc.js} +10 -10
  202. package/dist/assets/{items.b5bb1efd.js → items.cc802753.js} +1 -1
  203. package/dist/assets/{javascript-hint.6d6f81e5.js → javascript-hint.d349fe4e.js} +1 -1
  204. package/dist/assets/{javascript.b46feeed.js → javascript.9e388b6a.js} +1 -1
  205. package/dist/assets/{jinja2.b4f1b6ad.js → jinja2.14046576.js} +1 -1
  206. package/dist/assets/{jsx.211683b6.js → jsx.3806b5c1.js} +1 -1
  207. package/dist/assets/{julia.baee0bfc.js → julia.644e2413.js} +1 -1
  208. package/dist/assets/{layouts.1b59a4c4.js → layouts.39ffa712.js} +1 -1
  209. package/dist/assets/{layouts.2759613b.js → layouts.6d10b629.js} +3 -3
  210. package/dist/assets/{livescript.cce15eeb.js → livescript.44370233.js} +1 -1
  211. package/dist/assets/{localization.854fe2a6.js → localization.6486db5d.js} +1 -1
  212. package/dist/assets/{lua.2285f263.js → lua.b2bbf8d0.js} +1 -1
  213. package/dist/assets/{manual.e19c207e.js → manual.edc6cff6.js} +4 -4
  214. package/dist/assets/{mark-selection.4abbe02e.js → mark-selection.62e88e54.js} +1 -1
  215. package/dist/assets/{match-highlighter.28d31a20.js → match-highlighter.42dd5ae0.js} +1 -1
  216. package/dist/assets/{mathematica.326d84f6.js → mathematica.f444d867.js} +1 -1
  217. package/dist/assets/{mbox.0bf9befe.js → mbox.4555191b.js} +1 -1
  218. package/dist/assets/{migrations.70984e94.js → migrations.ecdb3334.js} +1 -1
  219. package/dist/assets/{mirc.6eedfef8.js → mirc.c7058e56.js} +1 -1
  220. package/dist/assets/{mllike.96a9792b.js → mllike.0772bdf6.js} +1 -1
  221. package/dist/assets/{modelica.a729f46d.js → modelica.3c6ca1ec.js} +1 -1
  222. package/dist/assets/{modules.368e658d.js → modules.0dab0325.js} +1 -1
  223. package/dist/assets/{mscgen.fcbf244c.js → mscgen.0802d4ca.js} +1 -1
  224. package/dist/assets/{multiplex.e75d927b.js → multiplex.a84ab750.js} +1 -1
  225. package/dist/assets/{mumps.b063975e.js → mumps.36cf22cb.js} +1 -1
  226. package/dist/assets/{nginx.486ac0b3.js → nginx.82d6f736.js} +1 -1
  227. package/dist/assets/{notifications.71793dcb.js → notifications.5b10ad0b.js} +1 -1
  228. package/dist/assets/{nsis.1f1f7f19.js → nsis.0ef55402.js} +1 -1
  229. package/dist/assets/{ntriples.23df3a06.js → ntriples.74ea90a6.js} +1 -1
  230. package/dist/assets/{octave.a7c39dfd.js → octave.df936382.js} +1 -1
  231. package/dist/assets/{operations.3a53915d.js → operations.296e9710.js} +11 -11
  232. package/dist/assets/operations.30fc2625.js +1 -0
  233. package/dist/assets/{operations.687b2da1.js → operations.c5ee7367.js} +3 -3
  234. package/dist/assets/{overlay.25718331.js → overlay.1ea7740c.js} +1 -1
  235. package/dist/assets/{overview.2aef2737.js → overview.211898b7.js} +1 -1
  236. package/dist/assets/{overview.77c84906.js → overview.91ec2552.js} +1 -1
  237. package/dist/assets/{overview.42c9bc71.js → overview.eb55d14f.js} +1 -1
  238. package/dist/assets/{oz.50920854.js → oz.83930d1a.js} +1 -1
  239. package/dist/assets/{panels.1c9e59a5.js → panels.9b48e2ab.js} +3 -3
  240. package/dist/assets/{pascal.254524bf.js → pascal.3bcd9be2.js} +1 -1
  241. package/dist/assets/{pegjs.109b328f.js → pegjs.a13f9ba3.js} +1 -1
  242. package/dist/assets/{perl.a6a13b0b.js → perl.ff0d453b.js} +1 -1
  243. package/dist/assets/{permissions.7c6e7d90.js → permissions.66ecdced.js} +7 -7
  244. package/dist/assets/{php.ffc2eaca.js → php.d0378b2e.js} +1 -1
  245. package/dist/assets/{pig.5098455f.js → pig.b09085f8.js} +1 -1
  246. package/dist/assets/{pinia.b8e2dbe3.entry.js → pinia.ee5b7a45.entry.js} +2 -2
  247. package/dist/assets/pl-PL.ce204e00.js +1 -0
  248. package/dist/assets/{plesk.09c47961.js → plesk.0a2c4855.js} +5 -5
  249. package/dist/assets/{powershell.1a2fb8e0.js → powershell.3c83684c.js} +1 -1
  250. package/dist/assets/presets-bookmarks.0a83b030.js +1 -0
  251. package/dist/assets/{presets.a6220515.js → presets.198afe35.js} +6 -6
  252. package/dist/assets/project-settings.eebfbd8c.js +1 -0
  253. package/dist/assets/{projects.7b210ac2.js → projects.398642da.js} +1 -1
  254. package/dist/assets/{properties.f55a4bf0.js → properties.bc9c351d.js} +1 -1
  255. package/dist/assets/{protobuf.9cc87b15.js → protobuf.d94d8d4b.js} +1 -1
  256. package/dist/assets/pt-BR.664ac34b.js +1 -0
  257. package/dist/assets/{pug.09de4b33.js → pug.acdcf421.js} +1 -1
  258. package/dist/assets/{puppet.7cd5c3df.js → puppet.77eef81d.js} +1 -1
  259. package/dist/assets/{python.8647bbb6.js → python.b5ceceb5.js} +1 -1
  260. package/dist/assets/{q.83eacee3.js → q.0d05269a.js} +1 -1
  261. package/dist/assets/{query.b72e23c9.js → query.8ccae3a9.js} +1 -1
  262. package/dist/assets/{quickstart.1d485356.js → quickstart.a567dd49.js} +2 -2
  263. package/dist/assets/{quickstart.0e152d2a.js → quickstart.de9843d9.js} +1 -1
  264. package/dist/assets/{r.22d59660.js → r.91e27c7f.js} +1 -1
  265. package/dist/assets/{readme.a5652282.js → readme.1996f39f.js} +1 -1
  266. package/dist/assets/{relations.804b318b.js → relations.ad6c2398.js} +4 -4
  267. package/dist/assets/{relationship.040a5095.js → relationship.32af0bee.js} +1 -1
  268. package/dist/assets/{relationships.ff02a9ff.js → relationships.1cd9b5d9.js} +8 -8
  269. package/dist/assets/{resources.efe9810e.js → resources.f947272a.js} +1 -1
  270. package/dist/assets/{revisions.121cb7de.js → revisions.c13b66e0.js} +3 -3
  271. package/dist/assets/{roles.680acff2.js → roles.e767878c.js} +11 -11
  272. package/dist/assets/{rpm.45123b1f.js → rpm.014edd6b.js} +1 -1
  273. package/dist/assets/{rst.0d2ffa96.js → rst.32625068.js} +1 -1
  274. package/dist/assets/{ruby.0befbc72.js → ruby.feba6f75.js} +1 -1
  275. package/dist/assets/{running-locally.4b4aa0d8.js → running-locally.6bdbd71e.js} +4 -4
  276. package/dist/assets/{runtime-core.esm-bundler.e3d5f5b7.js → runtime-core.esm-bundler.32cac88a.js} +1 -1
  277. package/dist/assets/{rust.0aadcb17.js → rust.aebd6832.js} +1 -1
  278. package/dist/assets/{sas.6509cc75.js → sas.e59b46ec.js} +1 -1
  279. package/dist/assets/{sass.3fef2c5c.js → sass.e99e8513.js} +1 -1
  280. package/dist/assets/{schema.5f5eb18e.js → schema.7eb35ba9.js} +1 -1
  281. package/dist/assets/{scheme.6583195f.js → scheme.12ef2907.js} +1 -1
  282. package/dist/assets/{sdk.84d76266.js → sdk.d1cc970a.js} +9 -9
  283. package/dist/assets/{security.6a8942ba.js → security.0f4880b1.js} +1 -1
  284. package/dist/assets/{server.b24a421b.js → server.bcf6175e.js} +5 -5
  285. package/dist/assets/{settings.d91e399d.js → settings.25cab07d.js} +1 -1
  286. package/dist/assets/{settings.d3a9b46c.js → settings.f21d244b.js} +10 -10
  287. package/dist/assets/{shares.6bb87993.js → shares.cc7ce751.js} +1 -1
  288. package/dist/assets/{shell.c33a256a.js → shell.1da47370.js} +1 -1
  289. package/dist/assets/{show-hint.e10f26ff.js → show-hint.68480f4b.js} +1 -1
  290. package/dist/assets/{sieve.adb9c5cd.js → sieve.448a2294.js} +1 -1
  291. package/dist/assets/{slim.34875ef9.js → slim.e742b868.js} +1 -1
  292. package/dist/assets/{smalltalk.ce10cb5f.js → smalltalk.0519616f.js} +1 -1
  293. package/dist/assets/{smarty.42882935.js → smarty.f1c37335.js} +1 -1
  294. package/dist/assets/{solr.5286f18c.js → solr.80d4e627.js} +1 -1
  295. package/dist/assets/{soy.4f95bef4.js → soy.e241e43d.js} +1 -1
  296. package/dist/assets/{sparql.771a3939.js → sparql.0825a985.js} +1 -1
  297. package/dist/assets/{spreadsheet.84749884.js → spreadsheet.3d74a74a.js} +1 -1
  298. package/dist/assets/{sql.e6ae0ded.js → sql.6a932e46.js} +1 -1
  299. package/dist/assets/{sso-examples.eb8e7423.js → sso-examples.0b7c81f4.js} +3 -3
  300. package/dist/assets/{sso.c929d07f.js → sso.49e87f3a.js} +2 -2
  301. package/dist/assets/{stex.248311c6.js → stex.6c78fa60.js} +1 -1
  302. package/dist/assets/{stylus.75da53bc.js → stylus.88f0619a.js} +1 -1
  303. package/dist/assets/{support.09b549ef.js → support.55199a3e.js} +1 -1
  304. package/dist/assets/{swift.9d07c193.js → swift.de2921df.js} +1 -1
  305. package/dist/assets/{tcl.7a1d8f5e.js → tcl.6c5dac08.js} +1 -1
  306. package/dist/assets/{teams.ab67345b.js → teams.541d1f0c.js} +1 -1
  307. package/dist/assets/{textile.3f318174.js → textile.654e7c73.js} +1 -1
  308. package/dist/assets/{themes.078e9124.js → themes.47d63f74.js} +2 -2
  309. package/dist/assets/{tiddlywiki.70063591.js → tiddlywiki.b7e79b0f.js} +1 -1
  310. package/dist/assets/{tiki.be5148f3.js → tiki.9a99e175.js} +1 -1
  311. package/dist/assets/{toml.1c4a2454.js → toml.a476a385.js} +1 -1
  312. package/dist/assets/{tornado.2951da45.js → tornado.ec0e2ed1.js} +1 -1
  313. package/dist/assets/tr-TR.ea217e38.js +1 -0
  314. package/dist/assets/{translation-strings.2e3ee87a.js → translation-strings.6f6737a7.js} +1 -1
  315. package/dist/assets/{translations.36a34606.js → translations.4a2d59ad.js} +1 -1
  316. package/dist/assets/{translations.fb062afb.js → translations.7e97efc3.js} +1 -1
  317. package/dist/assets/triggers.6baf300f.js +1 -0
  318. package/dist/assets/{troff.87ee9d68.js → troff.9d44c1e9.js} +1 -1
  319. package/dist/assets/{ttcn-cfg.c84cc180.js → ttcn-cfg.667f8595.js} +1 -1
  320. package/dist/assets/{ttcn.2e4df029.js → ttcn.941dc1c5.js} +1 -1
  321. package/dist/assets/{turtle.95894809.js → turtle.6ab53dab.js} +1 -1
  322. package/dist/assets/{twig.d66473bf.js → twig.a5b9e950.js} +1 -1
  323. package/dist/assets/{ubuntu.79ece84b.js → ubuntu.14eb3ea1.js} +2 -2
  324. package/dist/assets/{upgrades-migrations.ea8bea7b.js → upgrades-migrations.a9a9ca7c.js} +1 -1
  325. package/dist/assets/{use-sync.1dee2657.js → use-sync.3af8e920.js} +8 -8
  326. package/dist/assets/{user-directory.bac5f2ee.js → user-directory.59b8470a.js} +1 -1
  327. package/dist/assets/{users-roles-permissions.e36d0bc8.js → users-roles-permissions.ed9e814c.js} +1 -1
  328. package/dist/assets/{users.a9ad4dd9.js → users.de050e21.js} +1 -1
  329. package/dist/assets/{utilities.00432834.js → utilities.99f7a370.js} +1 -1
  330. package/dist/assets/{validation.2c0c5444.js → validation.10b8a2f3.js} +1 -1
  331. package/dist/assets/{vb.6fa3f35c.js → vb.f5ad7d8e.js} +1 -1
  332. package/dist/assets/{vbscript.9733613a.js → vbscript.4e331a4a.js} +1 -1
  333. package/dist/assets/{velocity.01fb0be3.js → velocity.58ff92f8.js} +1 -1
  334. package/dist/assets/{verilog.424d22ca.js → verilog.88d1f1ca.js} +1 -1
  335. package/dist/assets/{vhdl.f35cfe5f.js → vhdl.872b8dd6.js} +1 -1
  336. package/dist/assets/vi-VN.a2a22682.js +1 -0
  337. package/dist/assets/{vue-i18n.3cc3a25f.entry.js → vue-i18n.ab96dd58.entry.js} +1 -1
  338. package/dist/assets/{vue-router.1ad5ff1f.entry.js → vue-router.4ad81e1d.entry.js} +2 -2
  339. package/dist/assets/vue.1c9ff390.entry.js +1 -0
  340. package/dist/assets/{vue.00bb2733.js → vue.9e899a50.js} +1 -1
  341. package/dist/assets/{vue.runtime.esm-bundler.ee2a778f.js → vue.runtime.esm-bundler.61bedc6f.js} +1 -1
  342. package/dist/assets/{wast.70fe5a84.js → wast.ca758f8e.js} +1 -1
  343. package/dist/assets/{webhooks.e7e122b7.js → webhooks.53b2215e.js} +1 -1
  344. package/dist/assets/{webhooks.f0dfc270.js → webhooks.a7e035b7.js} +1 -1
  345. package/dist/assets/{webidl.b85758c5.js → webidl.cf25afda.js} +1 -1
  346. package/dist/assets/{xquery.ac0d6186.js → xquery.df5e5b32.js} +1 -1
  347. package/dist/assets/{yacas.bbc1de95.js → yacas.8af76adc.js} +1 -1
  348. package/dist/assets/{yaml-frontmatter.bcf994b4.js → yaml-frontmatter.3f544bc2.js} +1 -1
  349. package/dist/assets/{yaml.aa565fd3.js → yaml.5fd7d7fc.js} +1 -1
  350. package/dist/assets/{z80.6ef87436.js → z80.17c1db87.js} +1 -1
  351. package/dist/assets/zh-CN.074a708e.js +1 -0
  352. package/dist/index.html +8 -8
  353. package/package.json +26 -5
  354. package/dist/assets/activity-log.86a173c5.js +0 -1
  355. package/dist/assets/bg-BG.6ccbe392.js +0 -1
  356. package/dist/assets/de-DE.980a9df8.js +0 -1
  357. package/dist/assets/display.c9e4c238.js +0 -1
  358. package/dist/assets/es-419.b77b2103.js +0 -1
  359. package/dist/assets/es-CL.e5af69da.js +0 -1
  360. package/dist/assets/es-ES.7fd65f45.js +0 -1
  361. package/dist/assets/es-MX.84fb11f1.js +0 -1
  362. package/dist/assets/fi-FI.f2ba369a.js +0 -1
  363. package/dist/assets/flows.c21cd837.js +0 -16
  364. package/dist/assets/fr-CA.bd73b96f.js +0 -1
  365. package/dist/assets/fr-FR.f86a9f41.js +0 -1
  366. package/dist/assets/he-IL.7b11dc5e.js +0 -1
  367. package/dist/assets/index.03840c13.css +0 -1
  368. package/dist/assets/index.cd90c757.js +0 -1
  369. package/dist/assets/it-IT.922112b6.js +0 -1
  370. package/dist/assets/operations.845da620.js +0 -1
  371. package/dist/assets/pl-PL.dfc1a032.js +0 -1
  372. package/dist/assets/presets-bookmarks.3d6f189f.js +0 -1
  373. package/dist/assets/project-settings.5ba0a483.js +0 -1
  374. package/dist/assets/pt-BR.a8e95f48.js +0 -1
  375. package/dist/assets/tr-TR.039a12a9.js +0 -1
  376. package/dist/assets/triggers.44226865.js +0 -1
  377. package/dist/assets/vi-VN.fff05bda.js +0 -1
  378. package/dist/assets/vue.f73b7cd5.entry.js +0 -1
  379. package/dist/assets/zh-CN.e03e0e56.js +0 -1
@@ -1 +1 @@
1
- import{a as l,o as d,b as c,w as t,g as e,e as i,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const u={class:"markdown-body"},h=s("The User Directory is the management system for all Users within a Project. "),p=s("Users"),_=s(" are the individual accounts for logging in to the App. Each User belongs to a "),g=s("Role"),m=s(" which defines its "),f=s("Permissions"),y=s("."),U=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-20220222A.webp",alt:"User Directory Page"})],-1),b=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),s(" How it Works")],-1),v=e("p",null,"This Module is a management system that enables one to view, invite, create, edit, and delete Users and User information. Users can be created directly in the app, or invited to join via email.",-1),w=e("p",null,"When a User is created, they must also be assigned a Role. This Role defines the User\u2019s data access permissions within Directus. In other words, it determines what a User can see and do inside the app.",-1),A=s("The User Directory is composed of two pages: The User Directory Page and the User Details Page. It has all the same features and functionality as the "),T=s("Content Module"),D=s(" such as manual and automatic sorting, batch edit/delete/archive, import/export from files, etc."),k=e("h2",{id:"user-directory-page",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#user-directory-page"},"#"),s(" User Directory Page")],-1),P=e("video",{title:"User Directory Options",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-options-20220222A.mp4"}),e("p",null,[s(" Your browser is not displaying the video for some reason. Here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-options-20220222A.mp4"},"link to the video"),s(" instead. ")])],-1),S=s("The User Directory Page lists all Users in a Project, with a navigation that allows quick access to Users by Role. This page has the same functionality as the "),x=s("Collection Page"),I=s("."),C=e("ul",null,[e("li",null,[e("strong",null,"Select All"),s(" \u2014 Selects all Users currently in queue.")]),e("li",null,[e("strong",null,"Card Size"),s(" \u2014 Toggles size of User Displays.")]),e("li",null,[e("strong",null,"Sort Field"),s(" \u2014 Selects Field used to Users by.")]),e("li",null,[e("strong",null,"Sort Direction"),s(" \u2014 Toggles ascending & descending sort order.")]),e("li",null,[e("strong",null,"Search"),s(" \u2014 Enables classic type-based searching.")]),e("li",null,[e("strong",null,"Filter"),s(" \u2014 Enables advanced query-based search.")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"person_add"),s(" \u2014 [Invite people](/configuration/users-roles-permissions#inviting-a-user) to become Users via email. ")]),e("li",null,[e("span",{mi:"",btn:""},"add"),s(" \u2014 [Create User](/configuration/users-roles-permissions#creating-a-user) manually. ")])],-1),L=e("p",null,[e("em",null,"The following are only visible once Users are selected.")],-1),E=e("ul",null,[e("li",null,[e("span",{mi:"",btn:"",warn:""},"edit"),s(" \u2014 Opens a User Details page to apply a single edit across multiple Users. ")]),e("li",null,[e("strong",null,[e("span",{mi:"",btn:"",dngr:""},"delete")]),s(" \u2014 Deletes one or more Users.")])],-1),N=e("h3",{id:"layout-options",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#layout-options"},"#"),s(" Layout Options")],-1),O=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-layout-options-20220222A.webp",alt:"User Directory Layout Options"})],-1),R=s("The "),F=e("strong",null,"Sidebar > Layout Options",-1),j=s(),M=e("em",null,[s("(denoted by "),e("span",{mi:"",icon:""},"layers"),s(" when Sidebar is minimized)")],-1),q=s(" allows you to adjust how Users are displayed on the User Directory. To learn more, see "),z=s("Layouts"),B=s("."),H=e("h2",{id:"user-details-page",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#user-details-page"},"#"),s(" User Details Page")],-1),V=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-profile-20220222A.webp",alt:"The User Page"})],-1),K=s("A User\u2019s profile page can be accessed from the User Directory or by clicking the User Menu at the bottom of the "),W=s("Module Bar"),Y=s(". The profile page has the same features and functionality as the "),G=s("Item Page"),J=s(". Administrators can add and customize Fields under "),Q=s("Settings > Data Model > Directus Users"),X=s(", but the following are available by default."),Z=e("ul",null,[e("li",null,[e("strong",null,"First Name"),s(" \u2014 The given name.")]),e("li",null,[e("strong",null,"Last Name"),s(" \u2014 The family/surname.")]),e("li",null,[e("strong",null,"Email"),s(" \u2014 A unique email address.")]),e("li",null,[e("strong",null,"Password"),s(" \u2014 A hashed system password.")]),e("li",null,[e("strong",null,"Avatar"),s(" \u2014 An image to represent the User.")]),e("li",null,[e("strong",null,"Location"),s(" \u2014 The city, country, office, or branch name.")]),e("li",null,[e("strong",null,"Title"),s(" \u2014 The professional staff title.")]),e("li",null,[e("strong",null,"Description"),s(" \u2014 A free-form text description.")]),e("li",null,[e("strong",null,"Tags"),s(" \u2014 Keywords for search-ability.")])],-1),$=e("h3",{id:"user-preferences",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#user-preferences"},"#"),s(" User Preferences")],-1),ee=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-preferences-20220222A.webp",alt:"User Preferences"})],-1),se=e("ul",null,[e("li",null,[e("strong",null,"Language"),s(" \u2014 The preferred App language/locale.")]),e("li",null,[e("strong",null,"Theme"),s(" \u2014 Light or Dark mode (or based on system preferences).")]),e("li",null,[e("strong",null,"Multi-Factor Authentication"),s(" \u2014 Configuration for MFA.")]),e("li",null,[e("strong",null,"Email Notifications"),s(" \u2014 Receive emails for notifications.")])],-1),te=e("h3",{id:"admin-options",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#admin-options"},"#"),s(" Admin Options")],-1),oe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/admin-options-20220222A.webp",alt:"Admin Options"})],-1),ie=e("li",null,[e("strong",null,"Status"),s(" \u2014 Sets User status as Draft, Invited, Active, Suspended, Archived.")],-1),ne=e("li",null,[e("strong",null,"Role"),s(" \u2014 Defines the User\u2019s Role.")],-1),le=e("li",null,[e("strong",null,"Token"),s(" \u2014 Allows generating a static User access token.")],-1),re=e("strong",null,"Provider",-1),ae=s(" \u2014 "),de=e("em",null,"read-only:",-1),ce=s(" SSO provider associated with User. See our built-in "),ue=s("SSO options"),he=s("."),pe=e("li",null,[e("strong",null,"External Identifier"),s(" \u2014 Displays external identifier generated by SSO provider.")],-1),_e=e("h3",{id:"read-only-info",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#read-only-info"},"#"),s(" Read-only Info")],-1),ge=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-profile-sidebar-information-20220309A.webp",alt:"User Profile Sidebar Information"})],-1),me=e("p",null,[s("Information in the Sidebar "),e("em",null,[s("(denoted by "),e("span",{mi:"",icon:"",dark:""},"info"),s(" when Sidebar is minimized)")]),s(" also includes the following read-only details:")],-1),fe=e("ul",null,[e("li",null,[e("strong",null,"User Key"),s(" \u2014 The Primary Key of the User.")]),e("li",null,[e("strong",null,"Last Page"),s(" \u2014 The last App page accessed by the User.")]),e("li",null,[e("strong",null,"Last Access"),s(" \u2014 The timestamp of the User\u2019s last App or API action.")])],-1),ye=e("h2",{id:"view-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#view-a-user"},"#"),s(" View a User")],-1),Ue=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/viewing-a-user-20220222A.mp4"}),e("p",null,[s(" Your browser is not displaying the video for some reason. Here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/viewing-a-user-20220222A.mp4"},"link to the video"),s(" instead. ")])],-1),be=e("p",null,"Users are referenced throughout the app, often for accountability purposes. Hovering over a User in this context will provide a popover with basic information. Clicking that popover will navigate you to a view of that User\u2019s profile page.",-1),ve=e("h2",{id:"create-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-user"},"#"),s(" Create a User")],-1),we=e("p",null,"To create a User, follow these steps:",-1),Ae=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,[s("Click "),e("span",{mi:"",btn:""},"add"),s(" in the page header.")]),e("li",null,[s("Enter an "),e("strong",null,"Email Address"),s(".")]),e("li",null,"Optional: Fill in the other User details as desired."),e("li",null,[s("Click "),e("span",{mi:"",btn:""},"check"),s(" to save the User.")])],-1),Te=e("h2",{id:"invite-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#invite-a-user"},"#"),s(" Invite a User")],-1),De=e("p",null,"To invite User(s) via email, follow these steps:",-1),ke=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,[s("Click "),e("span",{mi:"",btn:"",sec:""},"person_add"),s(" in the page header.")]),e("li",null,[s("Enter one or more email addresses, separated by a comma and a space."),e("br"),e("em",null,"Tip: You can also add emails on a new line.")]),e("li",null,[s("Select the "),e("strong",null,"Role"),s(" you want to assign to the User(s).")]),e("li",null,[s("Click "),e("strong",null,"Invite"),s(".")])],-1),Pe=e("p",null,"After that, the invited User(s) will receive an email with a link to the App where they set a password and enable their account.",-1),Se=e("h2",{id:"edit-user-details",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#edit-user-details"},"#"),s(" Edit User Details")],-1),xe=e("p",null,"To edit User details, follow these steps:",-1),Ie=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,"Click on the User you wish to manage and the User Details Page will open."),e("li",null,"Reset User details as desired.")],-1),Ce=e("p",null,"The User Detail is only editable by the current User and admins, and the following fields are only available to admins:",-1),Le=e("li",null,[e("strong",null,"Status"),s(" \u2014 Determines if an account is able to access the platform or not. Only the "),e("code",null,"active"),s(" state is able to authenticate, all others are simply descriptive inactive states. "),e("ul",null,[e("li",null,[e("strong",null,"Draft"),s(" \u2014 An incomplete User; no App/API access.")]),e("li",null,[e("strong",null,"Invited"),s(" \u2014 Has a pending invite to the project; no App/API access until accepted.")]),e("li",null,[e("strong",null,"Active"),s(" \u2014 The only status that has proper access to the App and API.")]),e("li",null,[e("strong",null,"Suspended"),s(" \u2014 A User that has been temporarily disabled; no App/API access.")]),e("li",null,[e("strong",null,"Archived"),s(" \u2014 A soft-deleted User; no App/API access.")])])],-1),Ee=e("li",null,[e("strong",null,"Role"),s(" \u2014 The User\u2019s role determines their permissions and access.")],-1),Ne=e("strong",null,"Token",-1),Oe=s(" \u2014 A User\u2019s token is an alternate way to "),Re=s("authenticate into the API"),Fe=s(" using a static string. When NULL, the token is disabled."),je=e("h2",{id:"archive-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#archive-a-user"},"#"),s(" Archive a User")],-1),Me=e("p",null,"To archive a User, follow these steps:",-1),qe=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,"Click the User you with to archive to go to their User Detail page."),e("li",null,[s("Click on "),e("span",{mi:"",btn:"",warn:""},"archive"),s(" in the header.")]),e("li",null,[s("Confirm this decision by clicking "),e("strong",null,"Archive"),s(" in the dialog.")])],-1),ze=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Disables Access"),e("p",null,[s("Archiving is equivalent to a "),e("em",null,"soft-delete"),s(". These Users are unable to access the App or API.")])],-1),Be=e("h2",{id:"delete-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-a-user"},"#"),s(" Delete a User")],-1),He=e("p",null,"To delete a User, follow these steps:",-1),Ve=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,"Select one or more Users you wish to delete."),e("li",null,[s("Click on "),e("span",{mi:"",btn:"",dngr:""},"delete"),s(" in the header.")]),e("li",null,[s("Confirm this decision by clicking "),e("strong",null,"Delete"),s(" in the dialog.")])],-1),Ke=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,[s("This action is permanent and can not be undone. Please proceed with caution. If you wish to soft-delete Users, see "),e("a",{href:"#archive-a-user"},"Archive a User"),s(".")])],-1),Qe="User Directory",Xe=!1,Ze="The User Directory is the management system for all Users within a Project.",$e="7 min read",es={name:"user-directory",setup(We,{expose:r}){const n={title:"User Directory",modularExtension:!1,description:"The User Directory is the management system for all Users within a Project.",readTime:"7 min read"};return r({frontmatter:n}),(Ye,Ge)=>{const o=l("router-link"),a=l("docs-wrapper");return d(),c(a,{frontmatter:n},{default:t(()=>[e("div",u,[e("blockquote",null,[e("p",null,[h,i(o,{to:"/docs/getting-started/glossary#users"},{default:t(()=>[p]),_:1}),_,i(o,{to:"/docs/getting-started/glossary#roles"},{default:t(()=>[g]),_:1}),m,i(o,{to:"/docs/getting-started/glossary#permissions"},{default:t(()=>[f]),_:1}),y])]),U,b,v,w,e("p",null,[A,i(o,{to:"/docs/app/content/collections"},{default:t(()=>[T]),_:1}),D]),k,P,e("p",null,[S,i(o,{to:"/docs/app/content/collections"},{default:t(()=>[x]),_:1}),I]),C,L,E,N,O,e("p",null,[R,F,j,M,q,i(o,{to:"/docs/app/layouts"},{default:t(()=>[z]),_:1}),B]),H,V,e("p",null,[K,i(o,{to:"/docs/app/overview#_1-module-bar"},{default:t(()=>[W]),_:1}),Y,i(o,{to:"/docs/app/content/items"},{default:t(()=>[G]),_:1}),J,i(o,{to:"/docs/configuration/data-model"},{default:t(()=>[Q]),_:1}),X]),Z,$,ee,se,te,oe,e("ul",null,[ie,ne,le,e("li",null,[re,ae,de,ce,i(o,{to:"/docs/self-hosted/sso"},{default:t(()=>[ue]),_:1}),he]),pe]),_e,ge,me,fe,ye,Ue,be,ve,we,Ae,Te,De,ke,Pe,Se,xe,Ie,Ce,e("ul",null,[Le,Ee,e("li",null,[Ne,Oe,i(o,{to:"/docs/reference/authentication"},{default:t(()=>[Re]),_:1}),Fe])]),je,Me,qe,ze,Be,He,Ve,Ke])]),_:1})}}};export{es as default,Ze as description,Xe as modularExtension,$e as readTime,Qe as title};
1
+ import{a as l,o as d,b as c,w as t,l as e,e as i,E as s}from"./runtime-core.esm-bundler.32cac88a.js";const u={class:"markdown-body"},h=s("The User Directory is the management system for all Users within a Project. "),p=s("Users"),_=s(" are the individual accounts for logging in to the App. Each User belongs to a "),g=s("Role"),m=s(" which defines its "),f=s("Permissions"),y=s("."),U=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-20220222A.webp",alt:"User Directory Page"})],-1),b=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),s(" How it Works")],-1),v=e("p",null,"This Module is a management system that enables one to view, invite, create, edit, and delete Users and User information. Users can be created directly in the app, or invited to join via email.",-1),w=e("p",null,"When a User is created, they must also be assigned a Role. This Role defines the User\u2019s data access permissions within Directus. In other words, it determines what a User can see and do inside the app.",-1),A=s("The User Directory is composed of two pages: The User Directory Page and the User Details Page. It has all the same features and functionality as the "),T=s("Content Module"),D=s(" such as manual and automatic sorting, batch edit/delete/archive, import/export from files, etc."),k=e("h2",{id:"user-directory-page",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#user-directory-page"},"#"),s(" User Directory Page")],-1),P=e("video",{title:"User Directory Options",autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-options-20220222A.mp4"}),e("p",null,[s(" Your browser is not displaying the video for some reason. Here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-options-20220222A.mp4"},"link to the video"),s(" instead. ")])],-1),S=s("The User Directory Page lists all Users in a Project, with a navigation that allows quick access to Users by Role. This page has the same functionality as the "),x=s("Collection Page"),I=s("."),C=e("ul",null,[e("li",null,[e("strong",null,"Select All"),s(" \u2014 Selects all Users currently in queue.")]),e("li",null,[e("strong",null,"Card Size"),s(" \u2014 Toggles size of User Displays.")]),e("li",null,[e("strong",null,"Sort Field"),s(" \u2014 Selects Field used to Users by.")]),e("li",null,[e("strong",null,"Sort Direction"),s(" \u2014 Toggles ascending & descending sort order.")]),e("li",null,[e("strong",null,"Search"),s(" \u2014 Enables classic type-based searching.")]),e("li",null,[e("strong",null,"Filter"),s(" \u2014 Enables advanced query-based search.")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"person_add"),s(" \u2014 [Invite people](/configuration/users-roles-permissions#inviting-a-user) to become Users via email. ")]),e("li",null,[e("span",{mi:"",btn:""},"add"),s(" \u2014 [Create User](/configuration/users-roles-permissions#creating-a-user) manually. ")])],-1),L=e("p",null,[e("em",null,"The following are only visible once Users are selected.")],-1),E=e("ul",null,[e("li",null,[e("span",{mi:"",btn:"",warn:""},"edit"),s(" \u2014 Opens a User Details page to apply a single edit across multiple Users. ")]),e("li",null,[e("strong",null,[e("span",{mi:"",btn:"",dngr:""},"delete")]),s(" \u2014 Deletes one or more Users.")])],-1),N=e("h3",{id:"layout-options",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#layout-options"},"#"),s(" Layout Options")],-1),O=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-directory-layout-options-20220222A.webp",alt:"User Directory Layout Options"})],-1),R=s("The "),F=e("strong",null,"Sidebar > Layout Options",-1),j=s(),M=e("em",null,[s("(denoted by "),e("span",{mi:"",icon:""},"layers"),s(" when Sidebar is minimized)")],-1),q=s(" allows you to adjust how Users are displayed on the User Directory. To learn more, see "),z=s("Layouts"),H=s("."),B=e("h2",{id:"user-details-page",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#user-details-page"},"#"),s(" User Details Page")],-1),V=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-profile-20220222A.webp",alt:"The User Page"})],-1),K=s("A User\u2019s profile page can be accessed from the User Directory or by clicking the User Menu at the bottom of the "),W=s("Module Bar"),Y=s(". The profile page has the same features and functionality as the "),G=s("Item Page"),J=s(". Administrators can add and customize Fields under "),Q=s("Settings > Data Model > Directus Users"),X=s(", but the following are available by default."),Z=e("ul",null,[e("li",null,[e("strong",null,"First Name"),s(" \u2014 The given name.")]),e("li",null,[e("strong",null,"Last Name"),s(" \u2014 The family/surname.")]),e("li",null,[e("strong",null,"Email"),s(" \u2014 A unique email address.")]),e("li",null,[e("strong",null,"Password"),s(" \u2014 A hashed system password.")]),e("li",null,[e("strong",null,"Avatar"),s(" \u2014 An image to represent the User.")]),e("li",null,[e("strong",null,"Location"),s(" \u2014 The city, country, office, or branch name.")]),e("li",null,[e("strong",null,"Title"),s(" \u2014 The professional staff title.")]),e("li",null,[e("strong",null,"Description"),s(" \u2014 A free-form text description.")]),e("li",null,[e("strong",null,"Tags"),s(" \u2014 Keywords for search-ability.")])],-1),$=e("h3",{id:"user-preferences",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#user-preferences"},"#"),s(" User Preferences")],-1),ee=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-preferences-20220222A.webp",alt:"User Preferences"})],-1),se=e("ul",null,[e("li",null,[e("strong",null,"Language"),s(" \u2014 The preferred App language/locale.")]),e("li",null,[e("strong",null,"Theme"),s(" \u2014 Light or Dark mode (or based on system preferences).")]),e("li",null,[e("strong",null,"Multi-Factor Authentication"),s(" \u2014 Configuration for MFA.")]),e("li",null,[e("strong",null,"Email Notifications"),s(" \u2014 Receive emails for notifications.")])],-1),te=e("h3",{id:"admin-options",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#admin-options"},"#"),s(" Admin Options")],-1),oe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/admin-options-20220222A.webp",alt:"Admin Options"})],-1),ie=e("li",null,[e("strong",null,"Status"),s(" \u2014 Sets User status as Draft, Invited, Active, Suspended, Archived.")],-1),ne=e("li",null,[e("strong",null,"Role"),s(" \u2014 Defines the User\u2019s Role.")],-1),le=e("li",null,[e("strong",null,"Token"),s(" \u2014 Allows generating a static User access token.")],-1),re=e("strong",null,"Provider",-1),ae=s(" \u2014 "),de=e("em",null,"read-only:",-1),ce=s(" SSO provider associated with User. See our built-in "),ue=s("SSO options"),he=s("."),pe=e("li",null,[e("strong",null,"External Identifier"),s(" \u2014 Displays external identifier generated by SSO provider.")],-1),_e=e("h3",{id:"read-only-info",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#read-only-info"},"#"),s(" Read-only Info")],-1),ge=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/user-profile-sidebar-information-20220309A.webp",alt:"User Profile Sidebar Information"})],-1),me=e("p",null,[s("Information in the Sidebar "),e("em",null,[s("(denoted by "),e("span",{mi:"",icon:"",dark:""},"info"),s(" when Sidebar is minimized)")]),s(" also includes the following read-only details:")],-1),fe=e("ul",null,[e("li",null,[e("strong",null,"User Key"),s(" \u2014 The Primary Key of the User.")]),e("li",null,[e("strong",null,"Last Page"),s(" \u2014 The last App page accessed by the User.")]),e("li",null,[e("strong",null,"Last Access"),s(" \u2014 The timestamp of the User\u2019s last App or API action.")])],-1),ye=e("h2",{id:"view-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#view-a-user"},"#"),s(" View a User")],-1),Ue=e("video",{autoplay:"",playsinline:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/viewing-a-user-20220222A.mp4"}),e("p",null,[s(" Your browser is not displaying the video for some reason. Here's a "),e("a",{href:"https://cdn.directus.io/docs/v9/app-guide/user-directory/user-directory-20220222A/viewing-a-user-20220222A.mp4"},"link to the video"),s(" instead. ")])],-1),be=e("p",null,"Users are referenced throughout the app, often for accountability purposes. Hovering over a User in this context will provide a popover with basic information. Clicking that popover will navigate you to a view of that User\u2019s profile page.",-1),ve=e("h2",{id:"create-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-user"},"#"),s(" Create a User")],-1),we=e("p",null,"To create a User, follow these steps:",-1),Ae=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,[s("Click "),e("span",{mi:"",btn:""},"add"),s(" in the page header.")]),e("li",null,[s("Enter an "),e("strong",null,"Email Address"),s(".")]),e("li",null,"Optional: Fill in the other User details as desired."),e("li",null,[s("Click "),e("span",{mi:"",btn:""},"check"),s(" to save the User.")])],-1),Te=e("h2",{id:"invite-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#invite-a-user"},"#"),s(" Invite a User")],-1),De=e("p",null,"To invite User(s) via email, follow these steps:",-1),ke=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,[s("Click "),e("span",{mi:"",btn:"",sec:""},"person_add"),s(" in the page header.")]),e("li",null,[s("Enter one or more email addresses, separated by a comma and a space."),e("br"),e("em",null,"Tip: You can also add emails on a new line.")]),e("li",null,[s("Select the "),e("strong",null,"Role"),s(" you want to assign to the User(s).")]),e("li",null,[s("Click "),e("strong",null,"Invite"),s(".")])],-1),Pe=e("p",null,"After that, the invited User(s) will receive an email with a link to the App where they set a password and enable their account.",-1),Se=e("h2",{id:"edit-user-details",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#edit-user-details"},"#"),s(" Edit User Details")],-1),xe=e("p",null,"To edit User details, follow these steps:",-1),Ie=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,"Click on the User you wish to manage and the User Details Page will open."),e("li",null,"Reset User details as desired.")],-1),Ce=e("p",null,"The User Detail is only editable by the current User and admins, and the following fields are only available to admins:",-1),Le=e("li",null,[e("strong",null,"Status"),s(" \u2014 Determines if an account is able to access the platform or not. Only the "),e("code",null,"active"),s(" state is able to authenticate, all others are simply descriptive inactive states. "),e("ul",null,[e("li",null,[e("strong",null,"Draft"),s(" \u2014 An incomplete User; no App/API access.")]),e("li",null,[e("strong",null,"Invited"),s(" \u2014 Has a pending invite to the project; no App/API access until accepted.")]),e("li",null,[e("strong",null,"Active"),s(" \u2014 The only status that has proper access to the App and API.")]),e("li",null,[e("strong",null,"Suspended"),s(" \u2014 A User that has been temporarily disabled; no App/API access.")]),e("li",null,[e("strong",null,"Archived"),s(" \u2014 A soft-deleted User; no App/API access.")])])],-1),Ee=e("li",null,[e("strong",null,"Role"),s(" \u2014 The User\u2019s role determines their permissions and access.")],-1),Ne=e("strong",null,"Token",-1),Oe=s(" \u2014 A User\u2019s token is an alternate way to "),Re=s("authenticate into the API"),Fe=s(" using a static string. When NULL, the token is disabled."),je=e("h2",{id:"archive-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#archive-a-user"},"#"),s(" Archive a User")],-1),Me=e("p",null,"To archive a User, follow these steps:",-1),qe=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,"Click the User you with to archive to go to their User Detail page."),e("li",null,[s("Click on "),e("span",{mi:"",btn:"",warn:""},"archive"),s(" in the header.")]),e("li",null,[s("Confirm this decision by clicking "),e("strong",null,"Archive"),s(" in the dialog.")])],-1),ze=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Disables Access"),e("p",null,[s("Archiving is equivalent to a "),e("em",null,"soft-delete"),s(". These Users are unable to access the App or API.")])],-1),He=e("h2",{id:"delete-a-user",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-a-user"},"#"),s(" Delete a User")],-1),Be=e("p",null,"To delete a User, follow these steps:",-1),Ve=e("ol",null,[e("li",null,[s("Navigate to the "),e("strong",null,"User Library"),s(".")]),e("li",null,"Select one or more Users you wish to delete."),e("li",null,[s("Click on "),e("span",{mi:"",btn:"",dngr:""},"delete"),s(" in the header.")]),e("li",null,[s("Confirm this decision by clicking "),e("strong",null,"Delete"),s(" in the dialog.")])],-1),Ke=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,[s("This action is permanent and can not be undone. Please proceed with caution. If you wish to soft-delete Users, see "),e("a",{href:"#archive-a-user"},"Archive a User"),s(".")])],-1),Qe="User Directory",Xe=!1,Ze="The User Directory is the management system for all Users within a Project.",$e="7 min read",es={name:"user-directory",setup(We,{expose:r}){const n={title:"User Directory",modularExtension:!1,description:"The User Directory is the management system for all Users within a Project.",readTime:"7 min read"};return r({frontmatter:n}),(Ye,Ge)=>{const o=l("router-link"),a=l("docs-wrapper");return d(),c(a,{frontmatter:n},{default:t(()=>[e("div",u,[e("blockquote",null,[e("p",null,[h,i(o,{to:"/docs/getting-started/glossary#users"},{default:t(()=>[p]),_:1}),_,i(o,{to:"/docs/getting-started/glossary#roles"},{default:t(()=>[g]),_:1}),m,i(o,{to:"/docs/getting-started/glossary#permissions"},{default:t(()=>[f]),_:1}),y])]),U,b,v,w,e("p",null,[A,i(o,{to:"/docs/app/content/collections"},{default:t(()=>[T]),_:1}),D]),k,P,e("p",null,[S,i(o,{to:"/docs/app/content/collections"},{default:t(()=>[x]),_:1}),I]),C,L,E,N,O,e("p",null,[R,F,j,M,q,i(o,{to:"/docs/app/layouts"},{default:t(()=>[z]),_:1}),H]),B,V,e("p",null,[K,i(o,{to:"/docs/app/overview#_1-module-bar"},{default:t(()=>[W]),_:1}),Y,i(o,{to:"/docs/app/content/items"},{default:t(()=>[G]),_:1}),J,i(o,{to:"/docs/configuration/data-model"},{default:t(()=>[Q]),_:1}),X]),Z,$,ee,se,te,oe,e("ul",null,[ie,ne,le,e("li",null,[re,ae,de,ce,i(o,{to:"/docs/self-hosted/sso"},{default:t(()=>[ue]),_:1}),he]),pe]),_e,ge,me,fe,ye,Ue,be,ve,we,Ae,Te,De,ke,Pe,Se,xe,Ie,Ce,e("ul",null,[Le,Ee,e("li",null,[Ne,Oe,i(o,{to:"/docs/reference/authentication"},{default:t(()=>[Re]),_:1}),Fe])]),je,Me,qe,ze,He,Be,Ve,Ke])]),_:1})}}};export{es as default,Ze as description,Xe as modularExtension,$e as readTime,Qe as title};
@@ -1 +1 @@
1
- import{a as l,o as c,b as d,w as t,g as e,e as n,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const u={class:"markdown-body"},h=s("Users"),m=s(" are the individual accounts for authenticating into the API and App. Each user belongs to a "),p=s("Role"),_=s(" which defines its access "),f=s("Permissions"),g=s("."),w=e("h2",{id:"overview",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#overview"},"#"),s(" Overview")],-1),b=e("p",null,"While this page focuses on configuration of Roles and Permissions, it is important to remember that Roles and Permissions are inherently intwined with Users. This is because every User must be assigned a Role to define their access permissions.",-1),y=e("p",null,"Directus comes with two Roles out of the box, Admin and Public. The Admin role provides full Permissions for all data in the app, and this cannot be limited. This Admin Role provides full, app-wide control to the Project owners, administrators, and creators. The Public role comes with all permissions turned off by default and these can be fully reconfigured as needed. This Public role determines the access permissions given for any unauthenticated request to app data including unauthenticated users, visitors to your website or any other web request to your Directus Project\u2019s API.",-1),v=e("p",null,"In addition, Admins can create as many Roles as they wish and configure permissions granularly.",-1),A=e("h2",{id:"create-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-role"},"#"),s(" Create a Role")],-1),P=e("ol",null,[e("li",null,[s("Navigate to "),e("strong",null,[s("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" Roles & Permissions")])]),e("li",null,[s("Click "),e("span",{mi:"",btn:""},"add"),s(" in the header")]),e("li",null,[s("Enter a unique "),e("strong",null,"Role Name")]),e("li",null,[s("Enabling "),e("strong",null,"App Access"),s(" allows logging in to the App")]),e("li",null,[s("Enabling "),e("strong",null,"Admin Access"),s(" gives full permission to project data and Settings")]),e("li",null,[s("Click on "),e("strong",null,"Save"),s(" to save the role")])],-1),R=e("h2",{id:"configure-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-a-role"},"#"),s(" Configure a Role")],-1),k=e("ul",null,[e("li",null,[e("strong",null,"Permissions"),s(" \u2014 Configure "),e("a",{href:"#configure-permissions"},"access permissions"),s(" for the role")]),e("li",null,[e("strong",null,"Role Name"),s(" \u2014 This is the name of the role")]),e("li",null,[e("strong",null,"Role Icon"),s(" \u2014 The icon used throughout the App when referencing this role")]),e("li",null,[e("strong",null,"Description"),s(" \u2014 A helpful note that explains the role\u2019s purpose")]),e("li",null,[e("strong",null,"App Access"),s(" \u2014 Allows logging in to the App")]),e("li",null,[e("strong",null,"Admin Access"),s(" \u2014 Gives full permission to project data and Settings")]),e("li",null,[e("strong",null,"IP Access"),s(" \u2014 An allow-list of IP addresses from which the platform can be accessed, empty allows all")]),e("li",null,[e("strong",null,"Require MFA"),s(" \u2014 Forces all users within this role to use two-factor authentication")]),e("li",null,[e("strong",null,"Users in Role"),s(" \u2014 A list of all users within this role")])],-1),C=e("h2",{id:"delete-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-a-role"},"#"),s(" Delete a Role")],-1),x=e("ol",null,[e("li",null,[s("Navigate to "),e("strong",null,[s("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" Roles & Permissions "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" [Role Name]")])]),e("li",null,[s("Click "),e("span",{mi:"",btn:"",dngr:""},"delete"),s(" in the header")]),e("li",null,[s("Confirm this decision by clicking "),e("strong",null,"Delete"),s(" in the dialog")])],-1),T=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Users in a Deleted Role"),e("p",null,[s("If you delete a role that still has users in it, those users will be given a "),e("code",null,"NULL"),s(" role, which denies their App access and limits them to Public permissions. They can then be reassigned to a new role by an admin.")])],-1),F=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Last Admin"),e("p",null,"You must maintain at least one role/user with Admin Access so that you can still properly manage the project.")],-1),I=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Public Role"),e("p",null,"You can not delete the Public role, as it is part of the core platform. To disable it completely, simply turn off all Public access permissions.")],-1),S=e("h2",{id:"configure-permissions",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-permissions"},"#"),s(" Configure Permissions")],-1),N=e("p",null,"Directus possesses an extremely granular, yet easy to configure, permissions system. When creating a new role, permissions are disabled for all project collections by default \u2014 allowing you to give explicit access to only what is required. Individual permissions are applied to the role, and each is scoped to a specific collection and CRUD action (create, read, update, delete).",-1),D=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Saves Automatically"),e("p",null,"Every change made to the permissions of a role is saved automatically and instantly.")],-1),U=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Admin Roles"),e("p",null,[s("If a role is set to "),e("strong",null,"Admin Access"),s(" then it is granted complete access to the platform, and Permission configuration is disabled.")])],-1),q=e("ol",null,[e("li",null,[s("Navigate to "),e("strong",null,[s("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" Roles & Permissions "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" [Role Name]")])]),e("li",null,[s("Scroll to the "),e("strong",null,"Permissions"),s(" section")]),e("li",null,[e("strong",null,"Click the icon"),s(" for the collection (row) and action (column) you want to set")]),e("li",null,[s("Choose the desired permission level: "),e("span",{mi:"",icon:""},"check"),s(),e("strong",null,"All Access"),s(", "),e("span",{mi:"",icon:""},"block"),s(),e("strong",null,"No Access"),s(", or "),e("span",{mi:"",icon:""},"rule"),s(),e("strong",null,"Use Custom")])],-1),E=e("p",null,[s("If you selected "),e("strong",null,[s("\u201C"),e("span",{mi:"",icon:""},"check"),s(" All Access\u201D")]),s(" or "),e("strong",null,[s("\u201C"),e("span",{mi:"",icon:""},"block"),s(" No Access\u201D")]),s(" then setup is complete. If you chose to customize permissions then continue with the appropriate guide below based on the relevant "),e("em",null,"action"),s(".")],-1),j=e("h3",{id:"create-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-(custom-access)"},"#"),s(" Create (Custom Access)")],-1),V=e("ol",{start:"5"},[e("li",null,[e("strong",null,"Field Permissions"),s(" control which fields accept a value on create. Fields are individually toggled.")]),e("li",null,[e("strong",null,"Field Validation"),s(" define the rules for field values on create")]),e("li",null,[e("strong",null,"Field Presets"),s(" control the field defaults when creating an item")])],-1),W=e("h3",{id:"read-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#read-(custom-access)"},"#"),s(" Read (Custom Access)")],-1),B={start:"5"},M=e("strong",null,"Item Permissions",-1),L=s(" control which items can be read, as defined by the "),Y=s("Filter Rules"),z=s(" entered."),G=e("li",null,[e("strong",null,"Field Permissions"),s(" control which fields can be read. Fields are individually toggled.")],-1),K=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Read Field Permissions"),e("p",null,[s("The Directus App always requires read access to the Primary Key field (e.g., "),e("code",null,"id"),s(") so it can uniquely identify items. Also, if a Collection has \u201CArchive\u201D or \u201CSort\u201D fields configured, those fields will also need read access to use the App\u2019s soft-delete and manual sorting features.")])],-1),O=e("h3",{id:"update-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#update-(custom-access)"},"#"),s(" Update (Custom Access)")],-1),H={start:"5"},J=e("strong",null,"Item Permissions",-1),Q=s(" control which items can be updated, as defined by "),X=s("Filter Rules"),Z=s("."),$=e("li",null,[e("strong",null,"Field Permissions"),s(" control which fields can be updated. Fields are individually toggled.")],-1),ee=e("strong",null,"Field Validation",-1),se=s(" define the rules for field values on update, as defined by "),te=s("Filter Rules"),oe=s("."),ne=e("li",null,[e("strong",null,"Field Presets"),s(" control the field defaults when updating an item")],-1),ie=e("h3",{id:"delete-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-(custom-access)"},"#"),s(" Delete (Custom Access)")],-1),le={start:"5"},ae=e("strong",null,"Item Permissions",-1),re=s(" control which items can be deleted, as defined by the "),ce=s("Filter Rules"),de=s(" entered."),ue=e("hr",null,null,-1),he=e("h3",{id:"configure-system-permissions",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-system-permissions"},"#"),s(" Configure System Permissions")],-1),me=e("p",null,[s("In addition to permissions for "),e("em",null,"your"),s(" custom collections, you can also customize the permissions for "),e("em",null,"system"),s(" collections. To edit system permissions, follow these steps:")],-1),pe=e("ol",null,[e("li",null,[s("Go to "),e("strong",null,"Roles and Permissions"),s(" and select the desired Role."),e("br"),e("em",null,"You will be taken to the permissions configuration page.")]),e("li",null,[s("Click "),e("strong",null,"System Collections"),s(" at the bottom of the page.")]),e("li",null,"Find the desired System Collection."),e("li",null,"Set permissions as desired.")],-1),_e=e("p",null,"There are two pre-configured options you can use for resetting the role\u2019s system permissions and ensure proper App access. To access these, click \u201CSystem Collections\u201D to expand, and then click one of the buttons at the bottom of the listing.",-1),fe=e("ul",null,[e("li",null,[e("strong",null,"App Access Minimum"),s(" \u2014 The minimum permissions required to properly access the App")]),e("li",null,[e("strong",null,"Recommended Defaults"),s(" \u2014 More permissive but balanced for a better App user experience")])],-1),ge=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Remember"),e("p",null,[s("When App Access is enabled, Directus will automatically add "),e("em",null,"(and hardcode)"),s(" permissions for the necessary system collections for that Role.")])],-1),we=e("h2",{id:"configure-workflows",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-workflows"},"#"),s(" Configure Workflows")],-1),be=e("p",null,"Workflows are a way to add structured stages to the flow of content authoring. They are primarily defined through the permissions for a Collection, but can be further enhanced via email notifications, custom interfaces, and automation. Directus supports endlessly configurable workflows, so we will only cover one simple example below.",-1),ye=s("To create a structured workflow for "),ve=e("strong",null,"Articles",-1),Ae=s(", the first step is "),Pe=s("Creating a Field"),Re=s(" to track the article \u201Cstatus\u201D \u2014 we\u2019ll call it "),ke=e("strong",null,"Status",-1),Ce=s(", but it can be named anything."),xe=e("li",null,[s("Next, create different Roles for each stage of the workflow, such as "),e("code",null,"author"),s(" and "),e("code",null,"manager"),s(".")],-1),Te=e("li",null,[s("Finally, configure the Role permissions based on the possible values of that Status field, such as "),e("code",null,"draft"),s(", "),e("code",null,"review"),s(", "),e("code",null,"approved"),s(", and "),e("code",null,"published"),s(", so that they are properly restricted to create content and update the status. "),e("ul",null,[e("li",null,[s("The Author can create content, but only save a status of "),e("code",null,"draft"),s(" or "),e("code",null,"review"),s(".")]),e("li",null,[s("The Manager has additional permissions that allow them to save statuses of "),e("code",null,"approved"),s(" or "),e("code",null,"published"),s(".")])])],-1),De="Users, Roles & Permissions",Ue=!1,qe="Users are the individual accounts for authenticating into the API and App. Each user belongs to a Role which defines its access Permissions.",Ee="7 min read",je={name:"users-roles-permissions",setup(Fe,{expose:a}){const i={title:"Users, Roles & Permissions",modularExtension:!1,description:"Users are the individual accounts for authenticating into the API and App. Each user belongs to a Role which defines its access Permissions.",readTime:"7 min read"};return a({frontmatter:i}),(Ie,Se)=>{const o=l("router-link"),r=l("docs-wrapper");return c(),d(r,{frontmatter:i},{default:t(()=>[e("div",u,[e("blockquote",null,[e("p",null,[n(o,{to:"/docs/getting-started/glossary#users"},{default:t(()=>[h]),_:1}),m,n(o,{to:"/docs/getting-started/glossary#roles"},{default:t(()=>[p]),_:1}),_,n(o,{to:"/docs/getting-started/glossary#permissions"},{default:t(()=>[f]),_:1}),g])]),w,b,y,v,A,P,R,k,C,x,T,F,I,S,N,D,U,q,E,j,V,W,e("ol",B,[e("li",null,[M,L,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[Y]),_:1}),z]),G]),K,O,e("ol",H,[e("li",null,[J,Q,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[X]),_:1}),Z]),$,e("li",null,[ee,se,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[te]),_:1}),oe]),ne]),ie,e("ol",le,[e("li",null,[ae,re,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[ce]),_:1}),de])]),ue,he,me,pe,_e,fe,ge,we,be,e("ol",null,[e("li",null,[ye,ve,Ae,n(o,{to:"/docs/configuration/data-model#creating-a-field"},{default:t(()=>[Pe]),_:1}),Re,ke,Ce]),xe,Te])])]),_:1})}}};export{je as default,qe as description,Ue as modularExtension,Ee as readTime,De as title};
1
+ import{a as l,o as c,b as d,w as t,l as e,e as n,E as s}from"./runtime-core.esm-bundler.32cac88a.js";const u={class:"markdown-body"},h=s("Users"),m=s(" are the individual accounts for authenticating into the API and App. Each user belongs to a "),p=s("Role"),_=s(" which defines its access "),f=s("Permissions"),g=s("."),w=e("h2",{id:"overview",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#overview"},"#"),s(" Overview")],-1),b=e("p",null,"While this page focuses on configuration of Roles and Permissions, it is important to remember that Roles and Permissions are inherently intwined with Users. This is because every User must be assigned a Role to define their access permissions.",-1),y=e("p",null,"Directus comes with two Roles out of the box, Admin and Public. The Admin role provides full Permissions for all data in the app, and this cannot be limited. This Admin Role provides full, app-wide control to the Project owners, administrators, and creators. The Public role comes with all permissions turned off by default and these can be fully reconfigured as needed. This Public role determines the access permissions given for any unauthenticated request to app data including unauthenticated users, visitors to your website or any other web request to your Directus Project\u2019s API.",-1),v=e("p",null,"In addition, Admins can create as many Roles as they wish and configure permissions granularly.",-1),A=e("h2",{id:"create-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-a-role"},"#"),s(" Create a Role")],-1),P=e("ol",null,[e("li",null,[s("Navigate to "),e("strong",null,[s("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" Roles & Permissions")])]),e("li",null,[s("Click "),e("span",{mi:"",btn:""},"add"),s(" in the header")]),e("li",null,[s("Enter a unique "),e("strong",null,"Role Name")]),e("li",null,[s("Enabling "),e("strong",null,"App Access"),s(" allows logging in to the App")]),e("li",null,[s("Enabling "),e("strong",null,"Admin Access"),s(" gives full permission to project data and Settings")]),e("li",null,[s("Click on "),e("strong",null,"Save"),s(" to save the role")])],-1),R=e("h2",{id:"configure-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-a-role"},"#"),s(" Configure a Role")],-1),k=e("ul",null,[e("li",null,[e("strong",null,"Permissions"),s(" \u2014 Configure "),e("a",{href:"#configure-permissions"},"access permissions"),s(" for the role")]),e("li",null,[e("strong",null,"Role Name"),s(" \u2014 This is the name of the role")]),e("li",null,[e("strong",null,"Role Icon"),s(" \u2014 The icon used throughout the App when referencing this role")]),e("li",null,[e("strong",null,"Description"),s(" \u2014 A helpful note that explains the role\u2019s purpose")]),e("li",null,[e("strong",null,"App Access"),s(" \u2014 Allows logging in to the App")]),e("li",null,[e("strong",null,"Admin Access"),s(" \u2014 Gives full permission to project data and Settings")]),e("li",null,[e("strong",null,"IP Access"),s(" \u2014 An allow-list of IP addresses from which the platform can be accessed, empty allows all")]),e("li",null,[e("strong",null,"Require MFA"),s(" \u2014 Forces all users within this role to use two-factor authentication")]),e("li",null,[e("strong",null,"Users in Role"),s(" \u2014 A list of all users within this role")])],-1),C=e("h2",{id:"delete-a-role",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-a-role"},"#"),s(" Delete a Role")],-1),x=e("ol",null,[e("li",null,[s("Navigate to "),e("strong",null,[s("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" Roles & Permissions "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" [Role Name]")])]),e("li",null,[s("Click "),e("span",{mi:"",btn:"",dngr:""},"delete"),s(" in the header")]),e("li",null,[s("Confirm this decision by clicking "),e("strong",null,"Delete"),s(" in the dialog")])],-1),T=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Users in a Deleted Role"),e("p",null,[s("If you delete a role that still has users in it, those users will be given a "),e("code",null,"NULL"),s(" role, which denies their App access and limits them to Public permissions. They can then be reassigned to a new role by an admin.")])],-1),F=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Last Admin"),e("p",null,"You must maintain at least one role/user with Admin Access so that you can still properly manage the project.")],-1),I=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Public Role"),e("p",null,"You can not delete the Public role, as it is part of the core platform. To disable it completely, simply turn off all Public access permissions.")],-1),S=e("h2",{id:"configure-permissions",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-permissions"},"#"),s(" Configure Permissions")],-1),N=e("p",null,"Directus possesses an extremely granular, yet easy to configure, permissions system. When creating a new role, permissions are disabled for all project collections by default \u2014 allowing you to give explicit access to only what is required. Individual permissions are applied to the role, and each is scoped to a specific collection and CRUD action (create, read, update, delete).",-1),D=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Saves Automatically"),e("p",null,"Every change made to the permissions of a role is saved automatically and instantly.")],-1),U=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Admin Roles"),e("p",null,[s("If a role is set to "),e("strong",null,"Admin Access"),s(" then it is granted complete access to the platform, and Permission configuration is disabled.")])],-1),E=e("ol",null,[e("li",null,[s("Navigate to "),e("strong",null,[s("Settings "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" Roles & Permissions "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),s(" [Role Name]")])]),e("li",null,[s("Scroll to the "),e("strong",null,"Permissions"),s(" section")]),e("li",null,[e("strong",null,"Click the icon"),s(" for the collection (row) and action (column) you want to set")]),e("li",null,[s("Choose the desired permission level: "),e("span",{mi:"",icon:""},"check"),s(),e("strong",null,"All Access"),s(", "),e("span",{mi:"",icon:""},"block"),s(),e("strong",null,"No Access"),s(", or "),e("span",{mi:"",icon:""},"rule"),s(),e("strong",null,"Use Custom")])],-1),q=e("p",null,[s("If you selected "),e("strong",null,[s("\u201C"),e("span",{mi:"",icon:""},"check"),s(" All Access\u201D")]),s(" or "),e("strong",null,[s("\u201C"),e("span",{mi:"",icon:""},"block"),s(" No Access\u201D")]),s(" then setup is complete. If you chose to customize permissions then continue with the appropriate guide below based on the relevant "),e("em",null,"action"),s(".")],-1),j=e("h3",{id:"create-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#create-(custom-access)"},"#"),s(" Create (Custom Access)")],-1),V=e("ol",{start:"5"},[e("li",null,[e("strong",null,"Field Permissions"),s(" control which fields accept a value on create. Fields are individually toggled.")]),e("li",null,[e("strong",null,"Field Validation"),s(" define the rules for field values on create")]),e("li",null,[e("strong",null,"Field Presets"),s(" control the field defaults when creating an item")])],-1),W=e("h3",{id:"read-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#read-(custom-access)"},"#"),s(" Read (Custom Access)")],-1),M={start:"5"},B=e("strong",null,"Item Permissions",-1),L=s(" control which items can be read, as defined by the "),Y=s("Filter Rules"),z=s(" entered."),G=e("li",null,[e("strong",null,"Field Permissions"),s(" control which fields can be read. Fields are individually toggled.")],-1),K=e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Read Field Permissions"),e("p",null,[s("The Directus App always requires read access to the Primary Key field (e.g., "),e("code",null,"id"),s(") so it can uniquely identify items. Also, if a Collection has \u201CArchive\u201D or \u201CSort\u201D fields configured, those fields will also need read access to use the App\u2019s soft-delete and manual sorting features.")])],-1),O=e("h3",{id:"update-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#update-(custom-access)"},"#"),s(" Update (Custom Access)")],-1),H={start:"5"},J=e("strong",null,"Item Permissions",-1),Q=s(" control which items can be updated, as defined by "),X=s("Filter Rules"),Z=s("."),$=e("li",null,[e("strong",null,"Field Permissions"),s(" control which fields can be updated. Fields are individually toggled.")],-1),ee=e("strong",null,"Field Validation",-1),se=s(" define the rules for field values on update, as defined by "),te=s("Filter Rules"),oe=s("."),ne=e("li",null,[e("strong",null,"Field Presets"),s(" control the field defaults when updating an item")],-1),ie=e("h3",{id:"delete-(custom-access)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#delete-(custom-access)"},"#"),s(" Delete (Custom Access)")],-1),le={start:"5"},ae=e("strong",null,"Item Permissions",-1),re=s(" control which items can be deleted, as defined by the "),ce=s("Filter Rules"),de=s(" entered."),ue=e("hr",null,null,-1),he=e("h3",{id:"configure-system-permissions",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-system-permissions"},"#"),s(" Configure System Permissions")],-1),me=e("p",null,[s("In addition to permissions for "),e("em",null,"your"),s(" custom collections, you can also customize the permissions for "),e("em",null,"system"),s(" collections. To edit system permissions, follow these steps:")],-1),pe=e("ol",null,[e("li",null,[s("Go to "),e("strong",null,"Roles and Permissions"),s(" and select the desired Role."),e("br"),e("em",null,"You will be taken to the permissions configuration page.")]),e("li",null,[s("Click "),e("strong",null,"System Collections"),s(" at the bottom of the page.")]),e("li",null,"Find the desired System Collection."),e("li",null,"Set permissions as desired.")],-1),_e=e("p",null,"There are two pre-configured options you can use for resetting the role\u2019s system permissions and ensure proper App access. To access these, click \u201CSystem Collections\u201D to expand, and then click one of the buttons at the bottom of the listing.",-1),fe=e("ul",null,[e("li",null,[e("strong",null,"App Access Minimum"),s(" \u2014 The minimum permissions required to properly access the App")]),e("li",null,[e("strong",null,"Recommended Defaults"),s(" \u2014 More permissive but balanced for a better App user experience")])],-1),ge=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Remember"),e("p",null,[s("When App Access is enabled, Directus will automatically add "),e("em",null,"(and hardcode)"),s(" permissions for the necessary system collections for that Role.")])],-1),we=e("h2",{id:"configure-workflows",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#configure-workflows"},"#"),s(" Configure Workflows")],-1),be=e("p",null,"Workflows are a way to add structured stages to the flow of content authoring. They are primarily defined through the permissions for a Collection, but can be further enhanced via email notifications, custom interfaces, and automation. Directus supports endlessly configurable workflows, so we will only cover one simple example below.",-1),ye=s("To create a structured workflow for "),ve=e("strong",null,"Articles",-1),Ae=s(", the first step is "),Pe=s("Creating a Field"),Re=s(" to track the article \u201Cstatus\u201D \u2014 we\u2019ll call it "),ke=e("strong",null,"Status",-1),Ce=s(", but it can be named anything."),xe=e("li",null,[s("Next, create different Roles for each stage of the workflow, such as "),e("code",null,"author"),s(" and "),e("code",null,"manager"),s(".")],-1),Te=e("li",null,[s("Finally, configure the Role permissions based on the possible values of that Status field, such as "),e("code",null,"draft"),s(", "),e("code",null,"review"),s(", "),e("code",null,"approved"),s(", and "),e("code",null,"published"),s(", so that they are properly restricted to create content and update the status. "),e("ul",null,[e("li",null,[s("The Author can create content, but only save a status of "),e("code",null,"draft"),s(" or "),e("code",null,"review"),s(".")]),e("li",null,[s("The Manager has additional permissions that allow them to save statuses of "),e("code",null,"approved"),s(" or "),e("code",null,"published"),s(".")])])],-1),De="Users, Roles & Permissions",Ue=!1,Ee="Users are the individual accounts for authenticating into the API and App. Each user belongs to a Role which defines its access Permissions.",qe="7 min read",je={name:"users-roles-permissions",setup(Fe,{expose:a}){const i={title:"Users, Roles & Permissions",modularExtension:!1,description:"Users are the individual accounts for authenticating into the API and App. Each user belongs to a Role which defines its access Permissions.",readTime:"7 min read"};return a({frontmatter:i}),(Ie,Se)=>{const o=l("router-link"),r=l("docs-wrapper");return c(),d(r,{frontmatter:i},{default:t(()=>[e("div",u,[e("blockquote",null,[e("p",null,[n(o,{to:"/docs/getting-started/glossary#users"},{default:t(()=>[h]),_:1}),m,n(o,{to:"/docs/getting-started/glossary#roles"},{default:t(()=>[p]),_:1}),_,n(o,{to:"/docs/getting-started/glossary#permissions"},{default:t(()=>[f]),_:1}),g])]),w,b,y,v,A,P,R,k,C,x,T,F,I,S,N,D,U,E,q,j,V,W,e("ol",M,[e("li",null,[B,L,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[Y]),_:1}),z]),G]),K,O,e("ol",H,[e("li",null,[J,Q,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[X]),_:1}),Z]),$,e("li",null,[ee,se,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[te]),_:1}),oe]),ne]),ie,e("ol",le,[e("li",null,[ae,re,n(o,{to:"/docs/reference/filter-rules"},{default:t(()=>[ce]),_:1}),de])]),ue,he,me,pe,_e,fe,ge,we,be,e("ol",null,[e("li",null,[ye,ve,Ae,n(o,{to:"/docs/configuration/data-model#creating-a-field"},{default:t(()=>[Pe]),_:1}),Re,ke,Ce]),xe,Te])])]),_:1})}}};export{je as default,Ee as description,Ue as modularExtension,qe as readTime,De as title};
@@ -1,4 +1,4 @@
1
- import{a as r,o as h,b as i,w as a,g as s,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},u=e("Directus Users are the individual accounts that let you authenticate into the API and App. Each user belongs to a Role which defines its granular Permissions. "),p=e("Learn more about Users"),_=e("."),g=s("hr",null,null,-1),m=s("h2",{id:"the-user-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-user-object"},"#"),e(" The User Object")],-1),j=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the user.")],-1),f=s("p",null,[s("code",null,"first_name"),e(),s("strong",null,"string"),s("br"),e(" First name of the user.")],-1),b=s("p",null,[s("code",null,"last_name"),e(),s("strong",null,"string"),s("br"),e(" Last name of the user.")],-1),y=s("p",null,[s("code",null,"email"),e(),s("strong",null,"string"),s("br"),e(" Email address of the user.")],-1),x=s("p",null,[s("code",null,"password"),e(),s("strong",null,"hash"),s("br"),e(" Password of the user.")],-1),q=s("p",null,[s("code",null,"location"),e(),s("strong",null,"string"),s("br"),e(" Location of the user.")],-1),w=s("p",null,[s("code",null,"title"),e(),s("strong",null,"string"),s("br"),e(" Title of the user.")],-1),T=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description of the user.")],-1),E=s("p",null,[s("code",null,"tags"),e(),s("strong",null,"csv"),s("br"),e(" Tags for the user.")],-1),R=s("code",null,"avatar",-1),S=e(),P=s("strong",null,"many-to-one",-1),k=s("br",null,null,-1),v=e(" Avatar file. Many-to-one to "),A=e("files"),O=e("."),L=s("p",null,[s("code",null,"language"),e(),s("strong",null,"string"),s("br"),e(" Language the Admin App is rendered in. See "),s("a",{href:"https://locales.directus.io",target:"_blank",rel:"noopener noreferrer"},"our Crowdin page"),e(" for all available languages and translations.")],-1),U=s("p",null,[s("code",null,"theme"),e(),s("strong",null,"string"),s("br"),e(" One of "),s("code",null,"auto"),e(", "),s("code",null,"light"),e(", "),s("code",null,"dark"),e(".")],-1),I=s("p",null,[s("code",null,"tfa_secret"),e(),s("strong",null,"string"),s("br"),e(" When TFA is enabled, this holds the secret key for it.")],-1),Q=s("p",null,[s("code",null,"status"),e(),s("strong",null,"string"),s("br"),e(" Status of the user. One of "),s("code",null,"draft"),e(", "),s("code",null,"invited"),e(", "),s("code",null,"active"),e(", "),s("code",null,"suspended"),e(", "),s("code",null,"archived"),e(".")],-1),C=s("code",null,"role",-1),G=e(),B=s("strong",null,"uuid",-1),D=s("br",null,null,-1),M=e(" Role of the user. Many-to-one to "),H=e("roles"),F=e("."),N=s("p",null,[s("code",null,"token"),e(),s("strong",null,"string"),s("br"),e(" Static access token for the user.")],-1),V=s("p",null,[s("code",null,"last_access"),e(),s("strong",null,"date"),s("br"),e(" Last time the user accessed the API.")],-1),W=s("p",null,[s("code",null,"last_page"),e(),s("strong",null,"string"),s("br"),e(" Last page in the app the user used.")],-1),Y=s("p",null,[s("code",null,"provider"),e(),s("strong",null,"string"),s("br"),e(" What auth provider was used to register this user.")],-1),z=s("p",null,[s("code",null,"external_identifier"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the user in the third party authentication provider, if used.")],-1),J=s("p",null,[s("code",null,"auth_data"),e(),s("strong",null,"json"),s("br"),e(" Required data about the user as provided by the third party auth provider, if used.")],-1),K=s("p",null,[s("code",null,"email_notifications"),e(),s("strong",null,"boolean"),s("br"),e(" When this is enabled, the user will receive emails for notifications.")],-1),X=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
1
+ import{a as r,o as h,b as i,w as a,l as s,e as n,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const d={class:"markdown-body"},u=e("Directus Users are the individual accounts that let you authenticate into the API and App. Each user belongs to a Role which defines its granular Permissions. "),p=e("Learn more about Users"),_=e("."),g=s("hr",null,null,-1),m=s("h2",{id:"the-user-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-user-object"},"#"),e(" The User Object")],-1),j=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the user.")],-1),f=s("p",null,[s("code",null,"first_name"),e(),s("strong",null,"string"),s("br"),e(" First name of the user.")],-1),b=s("p",null,[s("code",null,"last_name"),e(),s("strong",null,"string"),s("br"),e(" Last name of the user.")],-1),y=s("p",null,[s("code",null,"email"),e(),s("strong",null,"string"),s("br"),e(" Email address of the user.")],-1),x=s("p",null,[s("code",null,"password"),e(),s("strong",null,"hash"),s("br"),e(" Password of the user.")],-1),q=s("p",null,[s("code",null,"location"),e(),s("strong",null,"string"),s("br"),e(" Location of the user.")],-1),w=s("p",null,[s("code",null,"title"),e(),s("strong",null,"string"),s("br"),e(" Title of the user.")],-1),T=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description of the user.")],-1),E=s("p",null,[s("code",null,"tags"),e(),s("strong",null,"csv"),s("br"),e(" Tags for the user.")],-1),R=s("code",null,"avatar",-1),S=e(),P=s("strong",null,"many-to-one",-1),k=s("br",null,null,-1),v=e(" Avatar file. Many-to-one to "),A=e("files"),O=e("."),L=s("p",null,[s("code",null,"language"),e(),s("strong",null,"string"),s("br"),e(" Language the Admin App is rendered in. See "),s("a",{href:"https://locales.directus.io",target:"_blank",rel:"noopener noreferrer"},"our Crowdin page"),e(" for all available languages and translations.")],-1),U=s("p",null,[s("code",null,"theme"),e(),s("strong",null,"string"),s("br"),e(" One of "),s("code",null,"auto"),e(", "),s("code",null,"light"),e(", "),s("code",null,"dark"),e(".")],-1),I=s("p",null,[s("code",null,"tfa_secret"),e(),s("strong",null,"string"),s("br"),e(" When TFA is enabled, this holds the secret key for it.")],-1),Q=s("p",null,[s("code",null,"status"),e(),s("strong",null,"string"),s("br"),e(" Status of the user. One of "),s("code",null,"draft"),e(", "),s("code",null,"invited"),e(", "),s("code",null,"active"),e(", "),s("code",null,"suspended"),e(", "),s("code",null,"archived"),e(".")],-1),C=s("code",null,"role",-1),G=e(),B=s("strong",null,"uuid",-1),D=s("br",null,null,-1),M=e(" Role of the user. Many-to-one to "),H=e("roles"),F=e("."),N=s("p",null,[s("code",null,"token"),e(),s("strong",null,"string"),s("br"),e(" Static access token for the user.")],-1),V=s("p",null,[s("code",null,"last_access"),e(),s("strong",null,"date"),s("br"),e(" Last time the user accessed the API.")],-1),W=s("p",null,[s("code",null,"last_page"),e(),s("strong",null,"string"),s("br"),e(" Last page in the app the user used.")],-1),Y=s("p",null,[s("code",null,"provider"),e(),s("strong",null,"string"),s("br"),e(" What auth provider was used to register this user.")],-1),z=s("p",null,[s("code",null,"external_identifier"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the user in the third party authentication provider, if used.")],-1),J=s("p",null,[s("code",null,"auth_data"),e(),s("strong",null,"json"),s("br"),e(" Required data about the user as provided by the third party auth provider, if used.")],-1),K=s("p",null,[s("code",null,"email_notifications"),e(),s("strong",null,"boolean"),s("br"),e(" When this is enabled, the user will receive emails for notifications.")],-1),X=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
2
2
  `),s("span",{class:"hljs-attr"},'"id"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"0bc7b36a-9ba9-4ce0-83f0-0a526f354e07"'),s("span",{class:"hljs-punctuation"},","),e(`
3
3
  `),s("span",{class:"hljs-attr"},'"first_name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Admin"'),s("span",{class:"hljs-punctuation"},","),e(`
4
4
  `),s("span",{class:"hljs-attr"},'"last_name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"User"'),s("span",{class:"hljs-punctuation"},","),e(`
@@ -1,4 +1,4 @@
1
- import{a as o,o as c,b as i,w as t,g as s,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},u=s("blockquote",null,[s("p",null,"Utilities are the various helper endpoints located within the API.")],-1),p=s("hr",null,null,-1),_=s("h2",{id:"generate-a-hash",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#generate-a-hash"},"#"),e(" Generate a Hash")],-1),m=s("p",null,"Generate a hash for a given string.",-1),f=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),e(" Request Body")],-1),g=s("p",null,[s("code",null,"string"),e(),s("strong",null,"Required"),s("br"),e(" String to hash.")],-1),y=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),b=s("p",null,"Hashed string.",-1),j=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),x=s("pre",null,[s("code",null,`POST /utils/hash/generate
1
+ import{a as o,o as c,b as i,w as t,l as s,e as n,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const d={class:"markdown-body"},u=s("blockquote",null,[s("p",null,"Utilities are the various helper endpoints located within the API.")],-1),p=s("hr",null,null,-1),_=s("h2",{id:"generate-a-hash",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#generate-a-hash"},"#"),e(" Generate a Hash")],-1),m=s("p",null,"Generate a hash for a given string.",-1),f=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),e(" Request Body")],-1),g=s("p",null,[s("code",null,"string"),e(),s("strong",null,"Required"),s("br"),e(" String to hash.")],-1),y=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),b=s("p",null,"Hashed string.",-1),j=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),x=s("pre",null,[s("code",null,`POST /utils/hash/generate
2
2
  `)],-1),q=s("h5",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),e(" Example")],-1),A=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /utils/hash/generate"),e(`
3
3
 
4
4
  `),s("span",{class:"hljs-punctuation"},"{"),e(`
@@ -1 +1 @@
1
- import{a as e,o as n,b as s,w as r,g as c}from"./runtime-core.esm-bundler.e3d5f5b7.js";const l=c("div",{class:"markdown-body"},null,-1),m="Validation",f=!1,u={name:"validation",setup(i,{expose:o}){const t={title:"Validation",modularExtension:!1};return o({frontmatter:t}),(d,p)=>{const a=e("docs-wrapper");return n(),s(a,{frontmatter:t},{default:r(()=>[l]),_:1})}}};export{u as default,f as modularExtension,m as title};
1
+ import{a as e,o as n,b as s,w as r,l as c}from"./runtime-core.esm-bundler.32cac88a.js";const l=c("div",{class:"markdown-body"},null,-1),m="Validation",f=!1,u={name:"validation",setup(i,{expose:o}){const t={title:"Validation",modularExtension:!1};return o({frontmatter:t}),(d,p)=>{const a=e("docs-wrapper");return n(),s(a,{frontmatter:t},{default:r(()=>[l]),_:1})}}};export{u as default,f as modularExtension,m as title};
@@ -1 +1 @@
1
- import{y as U}from"./index.5552d1ba.entry.js";function $(l,v){return v.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(c){if(c!=="default"&&!(c in l)){var d=Object.getOwnPropertyDescriptor(i,c);Object.defineProperty(l,c,d.get?d:{enumerable:!0,get:function(){return i[c]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(l,v){(function(i){i(U.exports)})(function(i){i.defineMode("vb",function(c,d){var a="error";function u(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var E=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),R=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),z=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),S=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),_=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),j=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],g=["else","elseif","case","catch","finally"],y=["next","loop"],b=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],C=u(b),w=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],x=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],T=u(w),A=u(x),F='"',L=u(h),m=u(g),k=u(y),I=u(["end"]),D=u(["do"]);i.registerHelper("hintWords","vb",h.concat(g).concat(y).concat(b).concat(w).concat(x));function s(e,n){n.currentIndent++}function f(e,n){n.currentIndent--}function p(e,n){if(e.eatSpace())return null;var r=e.peek();if(r==="'")return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var t=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(t=!0),t)return e.eat(/J/i),"number";var o=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?o=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),o=!0):e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}return e.match(F)?(n.tokenize=K(e.current()),n.tokenize(e,n)):e.match(_)||e.match(S)?null:e.match(z)||e.match(E)||e.match(C)?"operator":e.match(R)?null:e.match(D)?(s(e,n),n.doInCurrentLine=!0,"keyword"):e.match(L)?(n.doInCurrentLine?n.doInCurrentLine=!1:s(e,n),"keyword"):e.match(m)?"keyword":e.match(I)?(f(e,n),f(e,n),"keyword"):e.match(k)?(f(e,n),"keyword"):e.match(A)||e.match(T)?"keyword":e.match(j)?"variable":(e.next(),a)}function K(e){var n=e.length==1,r="string";return function(t,o){for(;!t.eol();){if(t.eatWhile(/[^'"]/),t.match(e))return o.tokenize=p,r;t.eat(/['"]/)}if(n){if(d.singleLineStringErrors)return a;o.tokenize=p}return r}}function P(e,n){var r=n.tokenize(e,n),t=e.current();if(t===".")return r=n.tokenize(e,n),r==="variable"?"variable":a;var o="[({".indexOf(t);return o!==-1&&s(e,n),o="])}".indexOf(t),o!==-1&&f(e,n)?a:r}var H={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:p,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=P(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(k)||r.match(I)||r.match(m)?c.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*c.indentUnit},lineComment:"'"};return H}),i.defineMIME("text/x-vb","vb")})})();var J=O.exports,W=$({__proto__:null,default:J},[O.exports]);export{W as v};
1
+ import{y as U}from"./index.a6745321.entry.js";function $(l,v){return v.forEach(function(i){i&&typeof i!="string"&&!Array.isArray(i)&&Object.keys(i).forEach(function(c){if(c!=="default"&&!(c in l)){var d=Object.getOwnPropertyDescriptor(i,c);Object.defineProperty(l,c,d.get?d:{enumerable:!0,get:function(){return i[c]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(l,v){(function(i){i(U.exports)})(function(i){i.defineMode("vb",function(c,d){var a="error";function u(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var E=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),R=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),z=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),S=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),_=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),j=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],g=["else","elseif","case","catch","finally"],y=["next","loop"],b=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],C=u(b),w=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],x=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],T=u(w),A=u(x),F='"',L=u(h),m=u(g),k=u(y),I=u(["end"]),D=u(["do"]);i.registerHelper("hintWords","vb",h.concat(g).concat(y).concat(b).concat(w).concat(x));function s(e,n){n.currentIndent++}function f(e,n){n.currentIndent--}function p(e,n){if(e.eatSpace())return null;var r=e.peek();if(r==="'")return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var t=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(t=!0),t)return e.eat(/J/i),"number";var o=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?o=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),o=!0):e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}return e.match(F)?(n.tokenize=K(e.current()),n.tokenize(e,n)):e.match(_)||e.match(S)?null:e.match(z)||e.match(E)||e.match(C)?"operator":e.match(R)?null:e.match(D)?(s(e,n),n.doInCurrentLine=!0,"keyword"):e.match(L)?(n.doInCurrentLine?n.doInCurrentLine=!1:s(e,n),"keyword"):e.match(m)?"keyword":e.match(I)?(f(e,n),f(e,n),"keyword"):e.match(k)?(f(e,n),"keyword"):e.match(A)||e.match(T)?"keyword":e.match(j)?"variable":(e.next(),a)}function K(e){var n=e.length==1,r="string";return function(t,o){for(;!t.eol();){if(t.eatWhile(/[^'"]/),t.match(e))return o.tokenize=p,r;t.eat(/['"]/)}if(n){if(d.singleLineStringErrors)return a;o.tokenize=p}return r}}function P(e,n){var r=n.tokenize(e,n),t=e.current();if(t===".")return r=n.tokenize(e,n),r==="variable"?"variable":a;var o="[({".indexOf(t);return o!==-1&&s(e,n),o="])}".indexOf(t),o!==-1&&f(e,n)?a:r}var H={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:p,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=P(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(k)||r.match(I)||r.match(m)?c.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*c.indentUnit},lineComment:"'"};return H}),i.defineMIME("text/x-vb","vb")})})();var J=O.exports,W=$({__proto__:null,default:J},[O.exports]);export{W as v};
@@ -1 +1 @@
1
- import{y as Q}from"./index.5552d1ba.entry.js";function X(l,p){return p.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(a){if(a!=="default"&&!(a in l)){var v=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(l,a,v.get?v:{enumerable:!0,get:function(){return o[a]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(l,p){(function(o){o(Q.exports)})(function(o){o.defineMode("vbscript",function(a,v){var d="error";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var w=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),k=new RegExp("^((<>)|(<=)|(>=))"),O=new RegExp("^[\\.,]"),C=new RegExp("^[\\(\\)]"),I=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),S=["class","sub","select","while","if","function","property","with","for"],E=["else","elseif","case"],j=["next","loop","wend"],D=t(["and","or","not","xor","is","mod","eqv","imp"]),T=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],L=["true","false","nothing","empty","null"],R=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],F=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],u=["WScript","err","debug","RegExp"],z=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],W=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],A=["server","response","request","session","application"],B=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],K=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],b=W.concat(z);u=u.concat(F),a.isASP&&(u=u.concat(A),b=b.concat(K,B));var M=t(T),_=t(L),N=t(R),P=t(u),q=t(b),U='"',Y=t(S),y=t(E),g=t(j),h=t(["end"]),H=t(["do"]),J=t(["on error resume next","exit"]),V=t(["rem"]);function m(e,r){r.currentIndent++}function s(e,r){r.currentIndent--}function f(e,r){if(e.eatSpace())return"space";var n=e.peek();if(n==="'"||e.match(V))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(i=!0),i)return e.eat(/J/i),"number";var c=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?c=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),c=!0):e.match(/^0(?![\dx])/i)&&(c=!0),c)return e.eat(/L/i),"number"}return e.match(U)?(r.tokenize=$(e.current()),r.tokenize(e,r)):e.match(k)||e.match(w)||e.match(D)?"operator":e.match(O)?null:e.match(C)?"bracket":e.match(J)?(r.doInCurrentLine=!0,"keyword"):e.match(H)?(m(e,r),r.doInCurrentLine=!0,"keyword"):e.match(Y)?(r.doInCurrentLine?r.doInCurrentLine=!1:m(e,r),"keyword"):e.match(y)?"keyword":e.match(h)?(s(e,r),s(e,r),"keyword"):e.match(g)?(r.doInCurrentLine?r.doInCurrentLine=!1:s(e,r),"keyword"):e.match(M)?"keyword":e.match(_)?"atom":e.match(q)?"variable-2":e.match(N)?"builtin":e.match(P)?"variable-2":e.match(I)?"variable":(e.next(),d)}function $(e){var r=e.length==1,n="string";return function(i,c){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return c.tokenize=f,n;i.eat(/['"]/)}if(r){if(v.singleLineStringErrors)return d;c.tokenize=f}return n}}function G(e,r){var n=r.tokenize(e,r),i=e.current();return i==="."?(n=r.tokenize(e,r),i=e.current(),n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")?((n==="builtin"||n==="keyword")&&(n="variable"),b.indexOf(i.substr(1))>-1&&(n="variable-2"),n):d):n}var Z={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:f,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,r){e.sol()&&(r.currentIndent+=r.nextLineIndent,r.nextLineIndent=0,r.doInCurrentLine=0);var n=G(e,r);return r.lastToken={style:n,content:e.current()},n==="space"&&(n=null),n},indent:function(e,r){var n=r.replace(/^\s+|\s+$/g,"");return n.match(g)||n.match(h)||n.match(y)?a.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*a.indentUnit}};return Z}),o.defineMIME("text/vbscript","vbscript")})})();var ee=x.exports,ne=X({__proto__:null,default:ee},[x.exports]);export{ne as v};
1
+ import{y as Q}from"./index.a6745321.entry.js";function X(l,p){return p.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(a){if(a!=="default"&&!(a in l)){var v=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(l,a,v.get?v:{enumerable:!0,get:function(){return o[a]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(l,p){(function(o){o(Q.exports)})(function(o){o.defineMode("vbscript",function(a,v){var d="error";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var w=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),k=new RegExp("^((<>)|(<=)|(>=))"),O=new RegExp("^[\\.,]"),C=new RegExp("^[\\(\\)]"),I=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),S=["class","sub","select","while","if","function","property","with","for"],E=["else","elseif","case"],j=["next","loop","wend"],D=t(["and","or","not","xor","is","mod","eqv","imp"]),T=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],L=["true","false","nothing","empty","null"],R=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],F=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],u=["WScript","err","debug","RegExp"],z=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],W=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],A=["server","response","request","session","application"],B=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],K=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],b=W.concat(z);u=u.concat(F),a.isASP&&(u=u.concat(A),b=b.concat(K,B));var M=t(T),_=t(L),N=t(R),P=t(u),q=t(b),U='"',Y=t(S),y=t(E),g=t(j),h=t(["end"]),H=t(["do"]),J=t(["on error resume next","exit"]),V=t(["rem"]);function m(e,r){r.currentIndent++}function s(e,r){r.currentIndent--}function f(e,r){if(e.eatSpace())return"space";var n=e.peek();if(n==="'"||e.match(V))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(i=!0),i)return e.eat(/J/i),"number";var c=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?c=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),c=!0):e.match(/^0(?![\dx])/i)&&(c=!0),c)return e.eat(/L/i),"number"}return e.match(U)?(r.tokenize=$(e.current()),r.tokenize(e,r)):e.match(k)||e.match(w)||e.match(D)?"operator":e.match(O)?null:e.match(C)?"bracket":e.match(J)?(r.doInCurrentLine=!0,"keyword"):e.match(H)?(m(e,r),r.doInCurrentLine=!0,"keyword"):e.match(Y)?(r.doInCurrentLine?r.doInCurrentLine=!1:m(e,r),"keyword"):e.match(y)?"keyword":e.match(h)?(s(e,r),s(e,r),"keyword"):e.match(g)?(r.doInCurrentLine?r.doInCurrentLine=!1:s(e,r),"keyword"):e.match(M)?"keyword":e.match(_)?"atom":e.match(q)?"variable-2":e.match(N)?"builtin":e.match(P)?"variable-2":e.match(I)?"variable":(e.next(),d)}function $(e){var r=e.length==1,n="string";return function(i,c){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return c.tokenize=f,n;i.eat(/['"]/)}if(r){if(v.singleLineStringErrors)return d;c.tokenize=f}return n}}function G(e,r){var n=r.tokenize(e,r),i=e.current();return i==="."?(n=r.tokenize(e,r),i=e.current(),n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")?((n==="builtin"||n==="keyword")&&(n="variable"),b.indexOf(i.substr(1))>-1&&(n="variable-2"),n):d):n}var Z={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:f,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,r){e.sol()&&(r.currentIndent+=r.nextLineIndent,r.nextLineIndent=0,r.doInCurrentLine=0);var n=G(e,r);return r.lastToken={style:n,content:e.current()},n==="space"&&(n=null),n},indent:function(e,r){var n=r.replace(/^\s+|\s+$/g,"");return n.match(g)||n.match(h)||n.match(y)?a.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*a.indentUnit}};return Z}),o.defineMIME("text/vbscript","vbscript")})})();var ee=x.exports,ne=X({__proto__:null,default:ee},[x.exports]);export{ne as v};
@@ -1 +1 @@
1
- import{y as g}from"./index.5552d1ba.entry.js";function $(f,k){return k.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in f)){var a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(f,o,a.get?a:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var d={exports:{}};(function(f,k){(function(t){t(g.exports)})(function(t){t.defineMode("velocity",function(){function o(n){for(var e={},i=n.split(" "),r=0;r<i.length;++r)e[i[r]]=!0;return e}var a=o("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),u=o("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),h=o("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),b=/[+\-*&%=<>!?:\/|]/;function s(n,e,i){return e.tokenize=i,i(n,e)}function c(n,e){var i=e.beforeParams;e.beforeParams=!1;var r=n.next();if(r=="'"&&!e.inString&&e.inParams)return e.lastTokenWasBuiltin=!1,s(n,e,y(r));if(r=='"'){if(e.lastTokenWasBuiltin=!1,e.inString)return e.inString=!1,"string";if(e.inParams)return s(n,e,y(r))}else{if(/[\[\]{}\(\),;\.]/.test(r))return r=="("&&i?e.inParams=!0:r==")"&&(e.inParams=!1,e.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(/[\w\.]/),"number";if(r=="#"&&n.eat("*"))return e.lastTokenWasBuiltin=!1,s(n,e,v);if(r=="#"&&n.match(/ *\[ *\[/))return e.lastTokenWasBuiltin=!1,s(n,e,m);if(r=="#"&&n.eat("#"))return e.lastTokenWasBuiltin=!1,n.skipToEnd(),"comment";if(r=="$")return n.eat("!"),n.eatWhile(/[\w\d\$_\.{}-]/),h&&h.propertyIsEnumerable(n.current())?"keyword":(e.lastTokenWasBuiltin=!0,e.beforeParams=!0,"builtin");if(b.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(b),"operator";n.eatWhile(/[\w\$_{}@]/);var l=n.current();return a&&a.propertyIsEnumerable(l)?"keyword":u&&u.propertyIsEnumerable(l)||n.current().match(/^#@?[a-z0-9_]+ *$/i)&&n.peek()=="("&&!(u&&u.propertyIsEnumerable(l.toLowerCase()))?(e.beforeParams=!0,e.lastTokenWasBuiltin=!1,"keyword"):e.inString?(e.lastTokenWasBuiltin=!1,"string"):n.pos>l.length&&n.string.charAt(n.pos-l.length-1)=="."&&e.lastTokenWasBuiltin?"builtin":(e.lastTokenWasBuiltin=!1,null)}}function y(n){return function(e,i){for(var r=!1,l,p=!1;(l=e.next())!=null;){if(l==n&&!r){p=!0;break}if(n=='"'&&e.peek()=="$"&&!r){i.inString=!0,p=!0;break}r=!r&&l=="\\"}return p&&(i.tokenize=c),"string"}}function v(n,e){for(var i=!1,r;r=n.next();){if(r=="#"&&i){e.tokenize=c;break}i=r=="*"}return"comment"}function m(n,e){for(var i=0,r;r=n.next();){if(r=="#"&&i==2){e.tokenize=c;break}r=="]"?i++:r!=" "&&(i=0)}return"meta"}return{startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(n,e){return n.eatSpace()?null:e.tokenize(n,e)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}}),t.defineMIME("text/velocity","velocity")})})();var W=d.exports,B=$({__proto__:null,default:W},[d.exports]);export{B as v};
1
+ import{y as g}from"./index.a6745321.entry.js";function $(f,k){return k.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(o){if(o!=="default"&&!(o in f)){var a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(f,o,a.get?a:{enumerable:!0,get:function(){return t[o]}})}})}),Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var d={exports:{}};(function(f,k){(function(t){t(g.exports)})(function(t){t.defineMode("velocity",function(){function o(n){for(var e={},i=n.split(" "),r=0;r<i.length;++r)e[i[r]]=!0;return e}var a=o("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),u=o("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),h=o("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),b=/[+\-*&%=<>!?:\/|]/;function s(n,e,i){return e.tokenize=i,i(n,e)}function c(n,e){var i=e.beforeParams;e.beforeParams=!1;var r=n.next();if(r=="'"&&!e.inString&&e.inParams)return e.lastTokenWasBuiltin=!1,s(n,e,y(r));if(r=='"'){if(e.lastTokenWasBuiltin=!1,e.inString)return e.inString=!1,"string";if(e.inParams)return s(n,e,y(r))}else{if(/[\[\]{}\(\),;\.]/.test(r))return r=="("&&i?e.inParams=!0:r==")"&&(e.inParams=!1,e.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(/[\w\.]/),"number";if(r=="#"&&n.eat("*"))return e.lastTokenWasBuiltin=!1,s(n,e,v);if(r=="#"&&n.match(/ *\[ *\[/))return e.lastTokenWasBuiltin=!1,s(n,e,m);if(r=="#"&&n.eat("#"))return e.lastTokenWasBuiltin=!1,n.skipToEnd(),"comment";if(r=="$")return n.eat("!"),n.eatWhile(/[\w\d\$_\.{}-]/),h&&h.propertyIsEnumerable(n.current())?"keyword":(e.lastTokenWasBuiltin=!0,e.beforeParams=!0,"builtin");if(b.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(b),"operator";n.eatWhile(/[\w\$_{}@]/);var l=n.current();return a&&a.propertyIsEnumerable(l)?"keyword":u&&u.propertyIsEnumerable(l)||n.current().match(/^#@?[a-z0-9_]+ *$/i)&&n.peek()=="("&&!(u&&u.propertyIsEnumerable(l.toLowerCase()))?(e.beforeParams=!0,e.lastTokenWasBuiltin=!1,"keyword"):e.inString?(e.lastTokenWasBuiltin=!1,"string"):n.pos>l.length&&n.string.charAt(n.pos-l.length-1)=="."&&e.lastTokenWasBuiltin?"builtin":(e.lastTokenWasBuiltin=!1,null)}}function y(n){return function(e,i){for(var r=!1,l,p=!1;(l=e.next())!=null;){if(l==n&&!r){p=!0;break}if(n=='"'&&e.peek()=="$"&&!r){i.inString=!0,p=!0;break}r=!r&&l=="\\"}return p&&(i.tokenize=c),"string"}}function v(n,e){for(var i=!1,r;r=n.next();){if(r=="#"&&i){e.tokenize=c;break}i=r=="*"}return"comment"}function m(n,e){for(var i=0,r;r=n.next();){if(r=="#"&&i==2){e.tokenize=c;break}r=="]"?i++:r!=" "&&(i=0)}return"meta"}return{startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(n,e){return n.eatSpace()?null:e.tokenize(n,e)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}}),t.defineMIME("text/velocity","velocity")})})();var W=d.exports,B=$({__proto__:null,default:W},[d.exports]);export{B as v};
@@ -1 +1 @@
1
- import{y as oe}from"./index.5552d1ba.entry.js";function ae(S,D){return D.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(g){if(g!=="default"&&!(g in S)){var x=Object.getOwnPropertyDescriptor(s,g);Object.defineProperty(S,g,x.get?x:{enumerable:!0,get:function(){return s[g]}})}})}),Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var K={exports:{}};(function(S,D){(function(s){s(oe.exports)})(function(s){s.defineMode("verilog",function(i,l){var a=i.indentUnit,f=l.statementIndentUnit||a,w=l.dontAlignCalls,m=l.compilerDirectivesUseRegularIndentation,z=l.noIndentKeywords||[],_=l.multiLineStrings,p=l.hooks||{};function y(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var O=y("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),E=/[\+\-\*\/!~&|^%=?:<>]/,$=/[\[\]{}()]/,J=/\d[0-9_]*/,Q=/\d*\s*'s?d\s*\d[0-9_]*/i,X=/\d*\s*'s?b\s*[xz01][xz01_]*/i,Y=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,Z=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,U=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,H=/^((`?\w+)|[)}\]])/,M=/[)}\]]/,A=new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"),ee=/^(`(?:ifdef|ifndef|elsif|else))\b/,W=/^(`(?:elsif|else|endif))\b/,c,d,ne=y("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),u={};for(var I in ne)u[I]="end"+I;u.begin="end",u.casex="endcase",u.casez="endcase",u.do="while",u.fork="join;join_any;join_none",u.covergroup="endgroup",u.macro_begin="macro_end";for(var te in z){var I=z[te];u[I]&&(u[I]=void 0)}var ie=y("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef");function j(e,t){var n=e.peek(),r;if(p[n]&&(r=p[n](e,t))!=!1||p.tokenBase&&(r=p.tokenBase(e,t))!=!1)return r;if(/[,;:\.]/.test(n))return c=e.next(),null;if($.test(n))return c=e.next(),"bracket";if(n=="`")if(e.next(),e.eatWhile(/[\w\$_]/)){var o=e.current();if(d=o,o.startsWith("`uvm_")&&o.endsWith("_begin")){var v=d.substr(0,d.length-5)+"end";u[o]=v,c="newblock"}else{e.eatSpace(),e.peek()=="("&&(c="newmacro");var B=e.current();e.backUp(B.length-o.length)}return"def"}else return null;if(n=="$")return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if(n=="#")return e.next(),e.eatWhile(/[\d_.]/),"def";if(n=="@")return e.next(),e.eatWhile(/[@]/),"def";if(n=='"')return e.next(),t.tokenize=re(n),t.tokenize(e,t);if(n=="/"){if(e.next(),e.eat("*"))return t.tokenize=q,q(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}if(e.match(U)||e.match(Q)||e.match(X)||e.match(Y)||e.match(Z)||e.match(J)||e.match(U))return"number";if(e.eatWhile(E))return c=e.current(),"meta";if(e.eatWhile(/[\w\$_]/)){var o=e.current();return O[o]?(u[o]&&(c="newblock",o==="fork"&&(e.eatSpace(),e.peek()==";"&&(c="newstatement"),e.backUp(e.current().length-o.length))),ie[o]&&(c="newstatement"),d=o,"keyword"):"variable"}return e.next(),null}function re(e){return function(t,n){for(var r=!1,o,v=!1;(o=t.next())!=null;){if(o==e&&!r){v=!0;break}r=!r&&o=="\\"}return(v||!(r||_))&&(n.tokenize=j),"string"}}function q(e,t){for(var n=!1,r;r=e.next();){if(r=="/"&&n){t.tokenize=j;break}n=r=="*"}return"comment"}function R(e,t,n,r,o,v){this.indented=e,this.column=t,this.type=n,this.scopekind=r,this.align=o,this.prev=v}function h(e,t,n,r){var o=e.indented,v=new R(o,t,n,r||"",null,e.context);return e.context=v}function b(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function N(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}function T(e,t){return e==null?!1:e.scopekind===t?!0:T(e.prev,t)}function le(){var e=[];for(var t in u)if(u[t]){var n=u[t].split(";");for(var r in n)e.push(n[r])}var o=new RegExp("[{}()\\[\\]]|("+e.join("|")+")$");return o}return{electricInput:le(),startState:function(e){var t={tokenize:null,context:new R((e||0)-a,0,"top","top",!1),indented:0,compilerDirectiveIndented:0,startOfLine:!0};return p.startState&&p.startState(t),t},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),p.token){var r=p.token(e,t);if(r!==void 0)return r}if(e.eatSpace())return null;c=null,d=null;var r=(t.tokenize||j)(e,t);if(r=="comment"||r=="meta"||r=="variable")return(c==="="||c==="<=")&&!T(n,"assignment")&&(h(t,e.column()+c.length,"assignment","assignment"),n.align==null&&(n.align=!0)),r;n.align==null&&(n.align=!0);var o=n.type=="assignment"&&M.test(c)&&n.prev&&n.prev.type===c;if(c==n.type||o){if(o&&(n=b(t)),n=b(t),c==")"){if(n&&n.type==="macro")for(n=b(t);n&&(n.type=="statement"||n.type=="assignment");)n=b(t)}else if(c=="}"&&n&&n.type==="statement")for(;n&&n.type=="statement";)n=b(t)}else if((c==";"||c==",")&&(n.type=="statement"||n.type=="assignment")||n.type&&N(d,n.type))for(n=b(t);n&&(n.type=="statement"||n.type=="assignment");)n=b(t);else if(c=="{")h(t,e.column(),"}");else if(c=="[")h(t,e.column(),"]");else if(c=="(")h(t,e.column(),")");else if(n&&n.type=="endcase"&&c==":")h(t,e.column(),"statement","case");else if(c=="newstatement")h(t,e.column(),"statement",d);else if(c=="newblock"){if(!(d=="function"&&n&&(n.type=="statement"||n.type=="endgroup"))){if(!(d=="task"&&n&&n.type=="statement")){if(!(d=="class"&&n&&n.type=="statement")){var v=u[d];h(t,e.column(),v,d)}}}}else(c=="newmacro"||d&&d.match(A))&&(c=="newmacro"&&h(t,e.column(),"macro","macro"),d.match(W)&&(t.compilerDirectiveIndented-=f),d.match(ee)&&(t.compilerDirectiveIndented+=f));return t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=j&&e.tokenize!=null)return s.Pass;if(p.indent){var n=p.indent(e);if(n>=0)return n}var r=e.context,o=t&&t.charAt(0);r.type=="statement"&&o=="}"&&(r=r.prev);var v=!1,B=t.match(H);return B&&(v=N(B[0],r.type)),!m&&t.match(A)?t.match(W)?e.compilerDirectiveIndented-f:e.compilerDirectiveIndented:r.type=="statement"?r.indented+(o=="{"?0:f):(M.test(r.type)||r.type=="assignment")&&r.align&&!w?r.column+(v?0:1):r.type==")"&&!v?r.indented+f:r.indented+(v?0:a)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}}),s.defineMIME("text/x-verilog",{name:"verilog"}),s.defineMIME("text/x-systemverilog",{name:"verilog"});var g={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},x={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},k=3,L=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,P=/^[! ] /,V=/^[! ] */,F=/^\/[\/\*]/;function C(i,l,a){var f=l/k;return"tlv-"+i.tlvIndentationStyle[f]+"-"+a}function G(i){var l;return(l=i.match(L,!1))&&l[2].length>0}s.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(i,l){var a=void 0,f;if(i.sol()&&!l.tlvInBlockComment){i.peek()=="\\"&&(a="def",i.skipToEnd(),i.string.match(/\\SV/)?l.tlvCodeActive=!1:i.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&i.pos==0&&l.indented==0&&(f=i.match(V,!1))&&(l.indented=f[0].length);var w=l.indented,m=w/k;if(m<=l.tlvIndentationStyle.length){var z=i.string.length==w,_=m*k;if(_<i.string.length){var p=i.string.slice(_),y=p[0];x[y]&&(f=p.match(L))&&g[f[1]]&&(w+=k,y=="\\"&&_>0||(l.tlvIndentationStyle[m]=x[y],m++))}if(!z)for(;l.tlvIndentationStyle.length>m;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=w}if(l.tlvCodeActive){var O=!1,f;if(a!==void 0)a+=" "+C(l,0,"scope-ident");else if(i.pos/k<l.tlvIndentationStyle.length&&(f=i.match(i.sol()?P:/^ /)))a="tlv-indent-"+(i.pos%2==0?"even":"odd")+" "+C(l,i.pos-k,"indent"),f[0].charAt(0)=="!"&&(a+=" tlv-alert-line-prefix"),G(i)&&(a+=" "+C(l,i.pos,"before-scope-ident"));else if(l.tlvInBlockComment)i.match(/^.*?\*\//)?l.tlvInBlockComment=!1:i.skipToEnd(),a="comment";else if((f=i.match(F))&&!l.tlvInBlockComment)f[0]=="//"?i.skipToEnd():l.tlvInBlockComment=!0,a="comment";else if(f=i.match(L)){var E=f[1],$=f[2];g.hasOwnProperty(E)&&($.length>0||i.eol())?(a=g[E],i.column()==l.indented&&(a+=" "+C(l,i.column(),"scope-ident"))):(i.backUp(i.current().length-1),a="tlv-default")}else i.match(/^\t+/)?a="tlv-tab":i.match(/^[\[\]{}\(\);\:]+/)?a="meta":(f=i.match(/^[mM]4([\+_])?[\w\d_]*/))?a=f[1]=="+"?"tlv-m4-plus":"tlv-m4":i.match(/^ +/)?i.eol()?a="error":a="tlv-default":i.match(/^[\w\d_]+/)?a="number":(i.next(),a="tlv-default");O&&(a+=" tlv-statement")}else i.match(/^[mM]4([\w\d_]*)/)&&(a="tlv-m4");return a},indent:function(i){return i.tlvCodeActive==!0?i.tlvNextIndent:-1},startState:function(i){i.tlvIndentationStyle=[],i.tlvCodeActive=!0,i.tlvNextIndent=-1,i.tlvInBlockComment=!1}}})})})();var ce=K.exports,de=ae({__proto__:null,default:ce},[K.exports]);export{de as v};
1
+ import{y as oe}from"./index.a6745321.entry.js";function ae(S,D){return D.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(g){if(g!=="default"&&!(g in S)){var x=Object.getOwnPropertyDescriptor(s,g);Object.defineProperty(S,g,x.get?x:{enumerable:!0,get:function(){return s[g]}})}})}),Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var K={exports:{}};(function(S,D){(function(s){s(oe.exports)})(function(s){s.defineMode("verilog",function(i,l){var a=i.indentUnit,f=l.statementIndentUnit||a,w=l.dontAlignCalls,m=l.compilerDirectivesUseRegularIndentation,z=l.noIndentKeywords||[],_=l.multiLineStrings,p=l.hooks||{};function y(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var O=y("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),E=/[\+\-\*\/!~&|^%=?:<>]/,$=/[\[\]{}()]/,J=/\d[0-9_]*/,Q=/\d*\s*'s?d\s*\d[0-9_]*/i,X=/\d*\s*'s?b\s*[xz01][xz01_]*/i,Y=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,Z=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,U=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,H=/^((`?\w+)|[)}\]])/,M=/[)}\]]/,A=new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"),ee=/^(`(?:ifdef|ifndef|elsif|else))\b/,W=/^(`(?:elsif|else|endif))\b/,c,d,ne=y("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),u={};for(var I in ne)u[I]="end"+I;u.begin="end",u.casex="endcase",u.casez="endcase",u.do="while",u.fork="join;join_any;join_none",u.covergroup="endgroup",u.macro_begin="macro_end";for(var te in z){var I=z[te];u[I]&&(u[I]=void 0)}var ie=y("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef");function j(e,t){var n=e.peek(),r;if(p[n]&&(r=p[n](e,t))!=!1||p.tokenBase&&(r=p.tokenBase(e,t))!=!1)return r;if(/[,;:\.]/.test(n))return c=e.next(),null;if($.test(n))return c=e.next(),"bracket";if(n=="`")if(e.next(),e.eatWhile(/[\w\$_]/)){var o=e.current();if(d=o,o.startsWith("`uvm_")&&o.endsWith("_begin")){var v=d.substr(0,d.length-5)+"end";u[o]=v,c="newblock"}else{e.eatSpace(),e.peek()=="("&&(c="newmacro");var B=e.current();e.backUp(B.length-o.length)}return"def"}else return null;if(n=="$")return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if(n=="#")return e.next(),e.eatWhile(/[\d_.]/),"def";if(n=="@")return e.next(),e.eatWhile(/[@]/),"def";if(n=='"')return e.next(),t.tokenize=re(n),t.tokenize(e,t);if(n=="/"){if(e.next(),e.eat("*"))return t.tokenize=q,q(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}if(e.match(U)||e.match(Q)||e.match(X)||e.match(Y)||e.match(Z)||e.match(J)||e.match(U))return"number";if(e.eatWhile(E))return c=e.current(),"meta";if(e.eatWhile(/[\w\$_]/)){var o=e.current();return O[o]?(u[o]&&(c="newblock",o==="fork"&&(e.eatSpace(),e.peek()==";"&&(c="newstatement"),e.backUp(e.current().length-o.length))),ie[o]&&(c="newstatement"),d=o,"keyword"):"variable"}return e.next(),null}function re(e){return function(t,n){for(var r=!1,o,v=!1;(o=t.next())!=null;){if(o==e&&!r){v=!0;break}r=!r&&o=="\\"}return(v||!(r||_))&&(n.tokenize=j),"string"}}function q(e,t){for(var n=!1,r;r=e.next();){if(r=="/"&&n){t.tokenize=j;break}n=r=="*"}return"comment"}function R(e,t,n,r,o,v){this.indented=e,this.column=t,this.type=n,this.scopekind=r,this.align=o,this.prev=v}function h(e,t,n,r){var o=e.indented,v=new R(o,t,n,r||"",null,e.context);return e.context=v}function b(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function N(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}function T(e,t){return e==null?!1:e.scopekind===t?!0:T(e.prev,t)}function le(){var e=[];for(var t in u)if(u[t]){var n=u[t].split(";");for(var r in n)e.push(n[r])}var o=new RegExp("[{}()\\[\\]]|("+e.join("|")+")$");return o}return{electricInput:le(),startState:function(e){var t={tokenize:null,context:new R((e||0)-a,0,"top","top",!1),indented:0,compilerDirectiveIndented:0,startOfLine:!0};return p.startState&&p.startState(t),t},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),p.token){var r=p.token(e,t);if(r!==void 0)return r}if(e.eatSpace())return null;c=null,d=null;var r=(t.tokenize||j)(e,t);if(r=="comment"||r=="meta"||r=="variable")return(c==="="||c==="<=")&&!T(n,"assignment")&&(h(t,e.column()+c.length,"assignment","assignment"),n.align==null&&(n.align=!0)),r;n.align==null&&(n.align=!0);var o=n.type=="assignment"&&M.test(c)&&n.prev&&n.prev.type===c;if(c==n.type||o){if(o&&(n=b(t)),n=b(t),c==")"){if(n&&n.type==="macro")for(n=b(t);n&&(n.type=="statement"||n.type=="assignment");)n=b(t)}else if(c=="}"&&n&&n.type==="statement")for(;n&&n.type=="statement";)n=b(t)}else if((c==";"||c==",")&&(n.type=="statement"||n.type=="assignment")||n.type&&N(d,n.type))for(n=b(t);n&&(n.type=="statement"||n.type=="assignment");)n=b(t);else if(c=="{")h(t,e.column(),"}");else if(c=="[")h(t,e.column(),"]");else if(c=="(")h(t,e.column(),")");else if(n&&n.type=="endcase"&&c==":")h(t,e.column(),"statement","case");else if(c=="newstatement")h(t,e.column(),"statement",d);else if(c=="newblock"){if(!(d=="function"&&n&&(n.type=="statement"||n.type=="endgroup"))){if(!(d=="task"&&n&&n.type=="statement")){if(!(d=="class"&&n&&n.type=="statement")){var v=u[d];h(t,e.column(),v,d)}}}}else(c=="newmacro"||d&&d.match(A))&&(c=="newmacro"&&h(t,e.column(),"macro","macro"),d.match(W)&&(t.compilerDirectiveIndented-=f),d.match(ee)&&(t.compilerDirectiveIndented+=f));return t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=j&&e.tokenize!=null)return s.Pass;if(p.indent){var n=p.indent(e);if(n>=0)return n}var r=e.context,o=t&&t.charAt(0);r.type=="statement"&&o=="}"&&(r=r.prev);var v=!1,B=t.match(H);return B&&(v=N(B[0],r.type)),!m&&t.match(A)?t.match(W)?e.compilerDirectiveIndented-f:e.compilerDirectiveIndented:r.type=="statement"?r.indented+(o=="{"?0:f):(M.test(r.type)||r.type=="assignment")&&r.align&&!w?r.column+(v?0:1):r.type==")"&&!v?r.indented+f:r.indented+(v?0:a)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}}),s.defineMIME("text/x-verilog",{name:"verilog"}),s.defineMIME("text/x-systemverilog",{name:"verilog"});var g={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},x={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},k=3,L=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,P=/^[! ] /,V=/^[! ] */,F=/^\/[\/\*]/;function C(i,l,a){var f=l/k;return"tlv-"+i.tlvIndentationStyle[f]+"-"+a}function G(i){var l;return(l=i.match(L,!1))&&l[2].length>0}s.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(i,l){var a=void 0,f;if(i.sol()&&!l.tlvInBlockComment){i.peek()=="\\"&&(a="def",i.skipToEnd(),i.string.match(/\\SV/)?l.tlvCodeActive=!1:i.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&i.pos==0&&l.indented==0&&(f=i.match(V,!1))&&(l.indented=f[0].length);var w=l.indented,m=w/k;if(m<=l.tlvIndentationStyle.length){var z=i.string.length==w,_=m*k;if(_<i.string.length){var p=i.string.slice(_),y=p[0];x[y]&&(f=p.match(L))&&g[f[1]]&&(w+=k,y=="\\"&&_>0||(l.tlvIndentationStyle[m]=x[y],m++))}if(!z)for(;l.tlvIndentationStyle.length>m;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=w}if(l.tlvCodeActive){var O=!1,f;if(a!==void 0)a+=" "+C(l,0,"scope-ident");else if(i.pos/k<l.tlvIndentationStyle.length&&(f=i.match(i.sol()?P:/^ /)))a="tlv-indent-"+(i.pos%2==0?"even":"odd")+" "+C(l,i.pos-k,"indent"),f[0].charAt(0)=="!"&&(a+=" tlv-alert-line-prefix"),G(i)&&(a+=" "+C(l,i.pos,"before-scope-ident"));else if(l.tlvInBlockComment)i.match(/^.*?\*\//)?l.tlvInBlockComment=!1:i.skipToEnd(),a="comment";else if((f=i.match(F))&&!l.tlvInBlockComment)f[0]=="//"?i.skipToEnd():l.tlvInBlockComment=!0,a="comment";else if(f=i.match(L)){var E=f[1],$=f[2];g.hasOwnProperty(E)&&($.length>0||i.eol())?(a=g[E],i.column()==l.indented&&(a+=" "+C(l,i.column(),"scope-ident"))):(i.backUp(i.current().length-1),a="tlv-default")}else i.match(/^\t+/)?a="tlv-tab":i.match(/^[\[\]{}\(\);\:]+/)?a="meta":(f=i.match(/^[mM]4([\+_])?[\w\d_]*/))?a=f[1]=="+"?"tlv-m4-plus":"tlv-m4":i.match(/^ +/)?i.eol()?a="error":a="tlv-default":i.match(/^[\w\d_]+/)?a="number":(i.next(),a="tlv-default");O&&(a+=" tlv-statement")}else i.match(/^[mM]4([\w\d_]*)/)&&(a="tlv-m4");return a},indent:function(i){return i.tlvCodeActive==!0?i.tlvNextIndent:-1},startState:function(i){i.tlvIndentationStyle=[],i.tlvCodeActive=!0,i.tlvNextIndent=-1,i.tlvInBlockComment=!1}}})})})();var ce=K.exports,de=ae({__proto__:null,default:ce},[K.exports]);export{de as v};
@@ -1 +1 @@
1
- import{y as _}from"./index.5552d1ba.entry.js";function C(y,x){return x.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(u){if(u!=="default"&&!(u in y)){var p=Object.getOwnPropertyDescriptor(o,u);Object.defineProperty(y,u,p.get?p:{enumerable:!0,get:function(){return o[u]}})}})}),Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(y,x){(function(o){o(_.exports)})(function(o){function u(d){for(var f={},c=d.split(","),a=0;a<c.length;++a){var v=c[a].toUpperCase(),g=c[a].charAt(0).toUpperCase()+c[a].slice(1);f[c[a]]=!0,f[v]=!0,f[g]=!0}return f}function p(d){return d.eatWhile(/[\w\$_]/),"meta"}o.defineMode("vhdl",function(d,f){var c=d.indentUnit,a=f.atoms||u("null"),v=f.hooks||{"`":p,$:p},g=f.multiLineStrings,O=u("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),S=u("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),k=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/,l;function b(e,n){var t=e.next();if(v[t]){var r=v[t](e,n);if(r!==!1)return r}if(t=='"')return n.tokenize=E(t),n.tokenize(e,n);if(t=="'")return n.tokenize=j(t),n.tokenize(e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return l=t,null;if(/[\d']/.test(t))return e.eatWhile(/[\w\.']/),"number";if(t=="-"&&e.eat("-"))return e.skipToEnd(),"comment";if(k.test(t))return e.eatWhile(k),"operator";e.eatWhile(/[\w\$_]/);var i=e.current();return O.propertyIsEnumerable(i.toLowerCase())?(S.propertyIsEnumerable(i)&&(l="newstatement"),"keyword"):a.propertyIsEnumerable(i)?"atom":"variable"}function j(e){return function(n,t){for(var r=!1,i,h=!1;(i=n.next())!=null;){if(i==e&&!r){h=!0;break}r=!r&&i=="--"}return(h||!(r||g))&&(t.tokenize=b),"string"}}function E(e){return function(n,t){for(var r=!1,i,h=!1;(i=n.next())!=null;){if(i==e&&!r){h=!0;break}r=!r&&i=="--"}return(h||!(r||g))&&(t.tokenize=b),"string-2"}}function w(e,n,t,r,i){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=i}function m(e,n,t){return e.context=new w(e.indented,n,t,null,e.context)}function s(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new w((e||0)-c,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;l=null;var r=(n.tokenize||b)(e,n);if(r=="comment"||r=="meta")return r;if(t.align==null&&(t.align=!0),(l==";"||l==":")&&t.type=="statement")s(n);else if(l=="{")m(n,e.column(),"}");else if(l=="[")m(n,e.column(),"]");else if(l=="(")m(n,e.column(),")");else if(l=="}"){for(;t.type=="statement";)t=s(n);for(t.type=="}"&&(t=s(n));t.type=="statement";)t=s(n)}else l==t.type?s(n):(t.type=="}"||t.type=="top"||t.type=="statement"&&l=="newstatement")&&m(n,e.column(),"statement");return n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=b&&e.tokenize!=null)return 0;var t=n&&n.charAt(0),r=e.context,i=t==r.type;return r.type=="statement"?r.indented+(t=="{"?0:c):r.align?r.column+(i?0:1):r.indented+(i?0:c)},electricChars:"{}"}}),o.defineMIME("text/x-vhdl","vhdl")})})();var L=z.exports,I=C({__proto__:null,default:L},[z.exports]);export{I as v};
1
+ import{y as _}from"./index.a6745321.entry.js";function C(y,x){return x.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(u){if(u!=="default"&&!(u in y)){var p=Object.getOwnPropertyDescriptor(o,u);Object.defineProperty(y,u,p.get?p:{enumerable:!0,get:function(){return o[u]}})}})}),Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(y,x){(function(o){o(_.exports)})(function(o){function u(d){for(var f={},c=d.split(","),a=0;a<c.length;++a){var v=c[a].toUpperCase(),g=c[a].charAt(0).toUpperCase()+c[a].slice(1);f[c[a]]=!0,f[v]=!0,f[g]=!0}return f}function p(d){return d.eatWhile(/[\w\$_]/),"meta"}o.defineMode("vhdl",function(d,f){var c=d.indentUnit,a=f.atoms||u("null"),v=f.hooks||{"`":p,$:p},g=f.multiLineStrings,O=u("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),S=u("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),k=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/,l;function b(e,n){var t=e.next();if(v[t]){var r=v[t](e,n);if(r!==!1)return r}if(t=='"')return n.tokenize=E(t),n.tokenize(e,n);if(t=="'")return n.tokenize=j(t),n.tokenize(e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return l=t,null;if(/[\d']/.test(t))return e.eatWhile(/[\w\.']/),"number";if(t=="-"&&e.eat("-"))return e.skipToEnd(),"comment";if(k.test(t))return e.eatWhile(k),"operator";e.eatWhile(/[\w\$_]/);var i=e.current();return O.propertyIsEnumerable(i.toLowerCase())?(S.propertyIsEnumerable(i)&&(l="newstatement"),"keyword"):a.propertyIsEnumerable(i)?"atom":"variable"}function j(e){return function(n,t){for(var r=!1,i,h=!1;(i=n.next())!=null;){if(i==e&&!r){h=!0;break}r=!r&&i=="--"}return(h||!(r||g))&&(t.tokenize=b),"string"}}function E(e){return function(n,t){for(var r=!1,i,h=!1;(i=n.next())!=null;){if(i==e&&!r){h=!0;break}r=!r&&i=="--"}return(h||!(r||g))&&(t.tokenize=b),"string-2"}}function w(e,n,t,r,i){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=i}function m(e,n,t){return e.context=new w(e.indented,n,t,null,e.context)}function s(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new w((e||0)-c,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;l=null;var r=(n.tokenize||b)(e,n);if(r=="comment"||r=="meta")return r;if(t.align==null&&(t.align=!0),(l==";"||l==":")&&t.type=="statement")s(n);else if(l=="{")m(n,e.column(),"}");else if(l=="[")m(n,e.column(),"]");else if(l=="(")m(n,e.column(),")");else if(l=="}"){for(;t.type=="statement";)t=s(n);for(t.type=="}"&&(t=s(n));t.type=="statement";)t=s(n)}else l==t.type?s(n):(t.type=="}"||t.type=="top"||t.type=="statement"&&l=="newstatement")&&m(n,e.column(),"statement");return n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=b&&e.tokenize!=null)return 0;var t=n&&n.charAt(0),r=e.context,i=t==r.type;return r.type=="statement"?r.indented+(t=="{"?0:c):r.align?r.column+(i?0:1):r.indented+(i?0:c)},electricChars:"{}"}}),o.defineMIME("text/x-vhdl","vhdl")})})();var L=z.exports,I=C({__proto__:null,default:L},[z.exports]);export{I as v};