@antelopejs/dms 0.5.6 → 0.6.1

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 (1277) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +8 -0
  3. package/data/NOTICE.md +12 -0
  4. package/data/dbip-country-lite.mmdb +0 -0
  5. package/dist/attachments/access.d.ts +2 -2
  6. package/dist/attachments/access.js +2 -2
  7. package/dist/attachments/access.js.map +1 -1
  8. package/dist/attachments/table-view.d.ts +1 -1
  9. package/dist/attachments/table-view.js +2 -2
  10. package/dist/attachments/table-view.js.map +1 -1
  11. package/dist/config.d.ts +5 -1
  12. package/dist/config.js +1 -1
  13. package/dist/config.js.map +1 -1
  14. package/dist/crons/cleanup-user-invites.js +2 -2
  15. package/dist/crons/cleanup-user-invites.js.map +1 -1
  16. package/dist/db/models/index.d.ts +3 -0
  17. package/dist/db/models/index.js +3 -0
  18. package/dist/db/models/index.js.map +1 -1
  19. package/dist/db/models/notification-feed-filter.d.ts +39 -0
  20. package/dist/db/models/notification-feed-filter.js +143 -0
  21. package/dist/db/models/notification-feed-filter.js.map +1 -0
  22. package/dist/db/models/signInAttempts.model.d.ts +29 -0
  23. package/dist/db/models/signInAttempts.model.js +67 -0
  24. package/dist/db/models/signInAttempts.model.js.map +1 -0
  25. package/dist/db/models/userEmailChanges.model.d.ts +31 -0
  26. package/dist/db/models/userEmailChanges.model.js +21 -0
  27. package/dist/db/models/userEmailChanges.model.js.map +1 -0
  28. package/dist/db/models/userKnownDevices.model.d.ts +25 -0
  29. package/dist/db/models/userKnownDevices.model.js +45 -0
  30. package/dist/db/models/userKnownDevices.model.js.map +1 -0
  31. package/dist/db/models/userNotificationPreferences.model.d.ts +4 -0
  32. package/dist/db/models/userNotificationPreferences.model.js +28 -0
  33. package/dist/db/models/userNotificationPreferences.model.js.map +1 -1
  34. package/dist/db/models/userNotifications.model.d.ts +39 -5
  35. package/dist/db/models/userNotifications.model.js +152 -45
  36. package/dist/db/models/userNotifications.model.js.map +1 -1
  37. package/dist/db/tables/index.d.ts +3 -0
  38. package/dist/db/tables/index.js +3 -0
  39. package/dist/db/tables/index.js.map +1 -1
  40. package/dist/db/tables/signInAttempts.table.d.ts +9 -0
  41. package/dist/db/tables/signInAttempts.table.js +42 -0
  42. package/dist/db/tables/signInAttempts.table.js.map +1 -0
  43. package/dist/db/tables/systemState.table.d.ts +2 -0
  44. package/dist/db/tables/systemState.table.js +8 -0
  45. package/dist/db/tables/systemState.table.js.map +1 -1
  46. package/dist/db/tables/userEmailChanges.table.d.ts +9 -0
  47. package/dist/db/tables/userEmailChanges.table.js +45 -0
  48. package/dist/db/tables/userEmailChanges.table.js.map +1 -0
  49. package/dist/db/tables/userKnownDevices.table.d.ts +9 -0
  50. package/dist/db/tables/userKnownDevices.table.js +45 -0
  51. package/dist/db/tables/userKnownDevices.table.js.map +1 -0
  52. package/dist/db/tables/userNotificationPreferences.table.d.ts +1 -0
  53. package/dist/db/tables/userNotificationPreferences.table.js +4 -0
  54. package/dist/db/tables/userNotificationPreferences.table.js.map +1 -1
  55. package/dist/db/tables/userNotifications.table.d.ts +3 -0
  56. package/dist/db/tables/userNotifications.table.js +8 -0
  57. package/dist/db/tables/userNotifications.table.js.map +1 -1
  58. package/dist/dev/module-update-notifications.js +4 -1
  59. package/dist/dev/module-update-notifications.js.map +1 -1
  60. package/dist/hooks/invite-extensions.js +3 -3
  61. package/dist/hooks/invite-extensions.js.map +1 -1
  62. package/dist/hooks/workspace-notifications.d.ts +1 -0
  63. package/dist/hooks/workspace-notifications.js +26 -0
  64. package/dist/hooks/workspace-notifications.js.map +1 -0
  65. package/dist/implementations/dms/invite-extensions.d.ts +1 -1
  66. package/dist/implementations/dms/invite-extensions.js +3 -3
  67. package/dist/implementations/dms/invite-extensions.js.map +1 -1
  68. package/dist/implementations/dms/nav-badges.d.ts +15 -0
  69. package/dist/implementations/dms/nav-badges.js +34 -0
  70. package/dist/implementations/dms/nav-badges.js.map +1 -0
  71. package/dist/implementations/dms/page.d.ts +45 -7
  72. package/dist/implementations/dms/page.js +484 -32
  73. package/dist/implementations/dms/page.js.map +1 -1
  74. package/dist/implementations/dms/permission-preview.d.ts +43 -0
  75. package/dist/implementations/dms/permission-preview.js +124 -0
  76. package/dist/implementations/dms/permission-preview.js.map +1 -0
  77. package/dist/implementations/dms/saas-mode.d.ts +1 -1
  78. package/dist/implementations/dms/uploads.d.ts +2 -2
  79. package/dist/implementations/dms-auth/index.d.ts +2 -1
  80. package/dist/implementations/dms-auth/index.js +15 -17
  81. package/dist/implementations/dms-auth/index.js.map +1 -1
  82. package/dist/implementations/dms-auth/session-handoff.d.ts +8 -0
  83. package/dist/implementations/dms-auth/session-handoff.js +46 -0
  84. package/dist/implementations/dms-auth/session-handoff.js.map +1 -0
  85. package/dist/implementations/dms-auth/token-secret.d.ts +1 -0
  86. package/dist/implementations/dms-auth/token-secret.js +9 -0
  87. package/dist/implementations/dms-auth/token-secret.js.map +1 -0
  88. package/dist/implementations/dms-base/bulk-selection.d.ts +3 -0
  89. package/dist/implementations/dms-base/bulk-selection.js +28 -0
  90. package/dist/implementations/dms-base/bulk-selection.js.map +1 -0
  91. package/dist/implementations/dms-base/filter-tokens.d.ts +7 -0
  92. package/dist/implementations/dms-base/filter-tokens.js +30 -0
  93. package/dist/implementations/dms-base/filter-tokens.js.map +1 -0
  94. package/dist/implementations/dms-base/footer-summary.d.ts +12 -0
  95. package/dist/implementations/dms-base/footer-summary.js +74 -0
  96. package/dist/implementations/dms-base/footer-summary.js.map +1 -0
  97. package/dist/implementations/dms-base/search-route.d.ts +1 -0
  98. package/dist/implementations/dms-base/search-route.js +11 -6
  99. package/dist/implementations/dms-base/search-route.js.map +1 -1
  100. package/dist/implementations/dms-base/table-view.d.ts +2 -1
  101. package/dist/implementations/dms-base/table-view.js +24 -7
  102. package/dist/implementations/dms-base/table-view.js.map +1 -1
  103. package/dist/implementations/dms-html-render/service-jwt.js +1 -1
  104. package/dist/implementations/dms-html-render/service-jwt.js.map +1 -1
  105. package/dist/implementations/dms-notifications/delivery-dedupe.d.ts +9 -0
  106. package/dist/implementations/dms-notifications/delivery-dedupe.js +38 -0
  107. package/dist/implementations/dms-notifications/delivery-dedupe.js.map +1 -0
  108. package/dist/implementations/dms-notifications/delivery-guard.d.ts +2 -0
  109. package/dist/implementations/dms-notifications/delivery-guard.js +7 -0
  110. package/dist/implementations/dms-notifications/delivery-guard.js.map +1 -0
  111. package/dist/implementations/dms-notifications/index.d.ts +7 -5
  112. package/dist/implementations/dms-notifications/index.js +72 -28
  113. package/dist/implementations/dms-notifications/index.js.map +1 -1
  114. package/dist/implementations/dms-notifications/registry.d.ts +2 -1
  115. package/dist/implementations/dms-notifications/registry.js +12 -3
  116. package/dist/implementations/dms-notifications/registry.js.map +1 -1
  117. package/dist/index.js +9 -2
  118. package/dist/index.js.map +1 -1
  119. package/dist/page-extensions/pending-report.js +2 -1
  120. package/dist/page-extensions/pending-report.js.map +1 -1
  121. package/dist/pages/settings/overview/account-activity.d.ts +4 -0
  122. package/dist/pages/settings/overview/account-activity.js +29 -0
  123. package/dist/pages/settings/overview/account-activity.js.map +1 -0
  124. package/dist/pages/settings/overview/account-summary.d.ts +7 -0
  125. package/dist/pages/settings/overview/account-summary.js +64 -0
  126. package/dist/pages/settings/overview/account-summary.js.map +1 -0
  127. package/dist/pages/settings/settings-index.d.ts +11 -1
  128. package/dist/pages/settings/settings-index.js +83 -4
  129. package/dist/pages/settings/settings-index.js.map +1 -1
  130. package/dist/pages/settings/users/account-activity-feed.d.ts +11 -0
  131. package/dist/pages/settings/users/account-activity-feed.js +198 -0
  132. package/dist/pages/settings/users/account-activity-feed.js.map +1 -0
  133. package/dist/pages/settings/users/account-activity-store.d.ts +3 -0
  134. package/dist/pages/settings/users/account-activity-store.js +77 -0
  135. package/dist/pages/settings/users/account-activity-store.js.map +1 -0
  136. package/dist/pages/settings/users/account-activity.d.ts +47 -0
  137. package/dist/pages/settings/users/account-activity.js +180 -0
  138. package/dist/pages/settings/users/account-activity.js.map +1 -0
  139. package/dist/pages/settings/users/account-credentials.d.ts +46 -0
  140. package/dist/pages/settings/users/account-credentials.js +99 -0
  141. package/dist/pages/settings/users/account-credentials.js.map +1 -0
  142. package/dist/pages/settings/users/account-data-store.d.ts +25 -0
  143. package/dist/pages/settings/users/account-data-store.js +188 -0
  144. package/dist/pages/settings/users/account-data-store.js.map +1 -0
  145. package/dist/pages/settings/users/account-data.d.ts +76 -0
  146. package/dist/pages/settings/users/account-data.js +131 -0
  147. package/dist/pages/settings/users/account-data.js.map +1 -0
  148. package/dist/pages/settings/users/appearance.d.ts +5 -1
  149. package/dist/pages/settings/users/appearance.js +39 -6
  150. package/dist/pages/settings/users/appearance.js.map +1 -1
  151. package/dist/pages/settings/users/category.js +3 -1
  152. package/dist/pages/settings/users/category.js.map +1 -1
  153. package/dist/pages/settings/users/current-password.d.ts +3 -0
  154. package/dist/pages/settings/users/current-password.js +19 -0
  155. package/dist/pages/settings/users/current-password.js.map +1 -0
  156. package/dist/pages/settings/users/dashboard-languages.d.ts +4 -0
  157. package/dist/pages/settings/users/dashboard-languages.js +8 -0
  158. package/dist/pages/settings/users/dashboard-languages.js.map +1 -0
  159. package/dist/pages/settings/users/email-change.d.ts +11 -0
  160. package/dist/pages/settings/users/email-change.js +87 -0
  161. package/dist/pages/settings/users/email-change.js.map +1 -0
  162. package/dist/pages/settings/users/index.d.ts +2 -0
  163. package/dist/pages/settings/users/index.js +2 -0
  164. package/dist/pages/settings/users/index.js.map +1 -1
  165. package/dist/pages/settings/users/invite-extension-routes.js +8 -9
  166. package/dist/pages/settings/users/invite-extension-routes.js.map +1 -1
  167. package/dist/pages/settings/users/invite-resend.d.ts +7 -0
  168. package/dist/pages/settings/users/invite-resend.js +41 -0
  169. package/dist/pages/settings/users/invite-resend.js.map +1 -0
  170. package/dist/pages/settings/users/invites.d.ts +12 -5
  171. package/dist/pages/settings/users/invites.js +207 -65
  172. package/dist/pages/settings/users/invites.js.map +1 -1
  173. package/dist/pages/settings/users/member-change-notifications.d.ts +5 -0
  174. package/dist/pages/settings/users/member-change-notifications.js +51 -0
  175. package/dist/pages/settings/users/member-change-notifications.js.map +1 -0
  176. package/dist/pages/settings/users/member-invite-batch.d.ts +37 -0
  177. package/dist/pages/settings/users/member-invite-batch.js +108 -0
  178. package/dist/pages/settings/users/member-invite-batch.js.map +1 -0
  179. package/dist/pages/settings/users/member-invite-form.d.ts +3 -5
  180. package/dist/pages/settings/users/member-invite-form.js +59 -74
  181. package/dist/pages/settings/users/member-invite-form.js.map +1 -1
  182. package/dist/pages/settings/users/member-management.d.ts +23 -0
  183. package/dist/pages/settings/users/member-management.js +107 -0
  184. package/dist/pages/settings/users/member-management.js.map +1 -0
  185. package/dist/pages/settings/users/member-role-options.d.ts +13 -0
  186. package/dist/pages/settings/users/member-role-options.js +28 -0
  187. package/dist/pages/settings/users/member-role-options.js.map +1 -0
  188. package/dist/pages/settings/users/member-roles-field.d.ts +8 -0
  189. package/dist/pages/settings/users/member-roles-field.js +44 -0
  190. package/dist/pages/settings/users/member-roles-field.js.map +1 -0
  191. package/dist/pages/settings/users/members.d.ts +31 -7
  192. package/dist/pages/settings/users/members.js +304 -122
  193. package/dist/pages/settings/users/members.js.map +1 -1
  194. package/dist/pages/settings/users/notifications.d.ts +38 -6
  195. package/dist/pages/settings/users/notifications.js +316 -33
  196. package/dist/pages/settings/users/notifications.js.map +1 -1
  197. package/dist/pages/settings/users/permission-tree-nodes.d.ts +7 -3
  198. package/dist/pages/settings/users/permission-tree-nodes.js +22 -15
  199. package/dist/pages/settings/users/permission-tree-nodes.js.map +1 -1
  200. package/dist/pages/settings/users/profile-access.d.ts +7 -0
  201. package/dist/pages/settings/users/profile-access.js +15 -0
  202. package/dist/pages/settings/users/profile-access.js.map +1 -0
  203. package/dist/pages/settings/users/profile-helpers.d.ts +7 -2
  204. package/dist/pages/settings/users/profile-helpers.js +10 -7
  205. package/dist/pages/settings/users/profile-helpers.js.map +1 -1
  206. package/dist/pages/settings/users/profile.d.ts +15 -37
  207. package/dist/pages/settings/users/profile.js +137 -242
  208. package/dist/pages/settings/users/profile.js.map +1 -1
  209. package/dist/pages/settings/users/region-form.d.ts +2 -0
  210. package/dist/pages/settings/users/region-form.js +93 -0
  211. package/dist/pages/settings/users/region-form.js.map +1 -0
  212. package/dist/pages/settings/users/region.d.ts +14 -0
  213. package/dist/pages/settings/users/region.js +77 -0
  214. package/dist/pages/settings/users/region.js.map +1 -0
  215. package/dist/pages/settings/users/regional-preferences.d.ts +14 -0
  216. package/dist/pages/settings/users/regional-preferences.js +56 -0
  217. package/dist/pages/settings/users/regional-preferences.js.map +1 -0
  218. package/dist/pages/settings/users/role-editor-store.d.ts +19 -0
  219. package/dist/pages/settings/users/role-editor-store.js +196 -0
  220. package/dist/pages/settings/users/role-editor-store.js.map +1 -0
  221. package/dist/pages/settings/users/role-editor.d.ts +60 -0
  222. package/dist/pages/settings/users/role-editor.js +109 -0
  223. package/dist/pages/settings/users/role-editor.js.map +1 -0
  224. package/dist/pages/settings/users/role-preview.d.ts +41 -0
  225. package/dist/pages/settings/users/role-preview.js +97 -0
  226. package/dist/pages/settings/users/role-preview.js.map +1 -0
  227. package/dist/pages/settings/users/roles.d.ts +18 -3
  228. package/dist/pages/settings/users/roles.js +235 -26
  229. package/dist/pages/settings/users/roles.js.map +1 -1
  230. package/dist/pages/settings/users/security-attention.d.ts +3 -0
  231. package/dist/pages/settings/users/security-attention.js +22 -0
  232. package/dist/pages/settings/users/security-attention.js.map +1 -0
  233. package/dist/pages/settings/users/security.d.ts +31 -0
  234. package/dist/pages/settings/users/security.js +251 -0
  235. package/dist/pages/settings/users/security.js.map +1 -0
  236. package/dist/pages/settings/users/shortcuts.js +2 -3
  237. package/dist/pages/settings/users/shortcuts.js.map +1 -1
  238. package/dist/pages/settings/users/two-factor-operations.d.ts +33 -0
  239. package/dist/pages/settings/users/two-factor-operations.js +156 -0
  240. package/dist/pages/settings/users/two-factor-operations.js.map +1 -0
  241. package/dist/routes/auth/client-ip.js +2 -5
  242. package/dist/routes/auth/client-ip.js.map +1 -1
  243. package/dist/routes/auth/index.d.ts +1 -0
  244. package/dist/routes/auth/index.js +1 -0
  245. package/dist/routes/auth/index.js.map +1 -1
  246. package/dist/routes/auth/login-throttle.d.ts +3 -0
  247. package/dist/routes/auth/login-throttle.js +29 -0
  248. package/dist/routes/auth/login-throttle.js.map +1 -0
  249. package/dist/routes/auth/login.d.ts +2 -1
  250. package/dist/routes/auth/login.js +16 -4
  251. package/dist/routes/auth/login.js.map +1 -1
  252. package/dist/routes/auth/oauth/callback.d.ts +3 -2
  253. package/dist/routes/auth/oauth/callback.js +4 -3
  254. package/dist/routes/auth/oauth/callback.js.map +1 -1
  255. package/dist/routes/auth/reset-password.js +3 -1
  256. package/dist/routes/auth/reset-password.js.map +1 -1
  257. package/dist/routes/auth/session-handoff.d.ts +4 -0
  258. package/dist/routes/auth/session-handoff.js +26 -0
  259. package/dist/routes/auth/session-handoff.js.map +1 -0
  260. package/dist/routes/auth/session-response.d.ts +3 -2
  261. package/dist/routes/auth/session-response.js +6 -6
  262. package/dist/routes/auth/session-response.js.map +1 -1
  263. package/dist/routes/auth/signup.d.ts +2 -1
  264. package/dist/routes/auth/signup.js +4 -2
  265. package/dist/routes/auth/signup.js.map +1 -1
  266. package/dist/routes/auth/verify-2fa.d.ts +2 -1
  267. package/dist/routes/auth/verify-2fa.js +8 -3
  268. package/dist/routes/auth/verify-2fa.js.map +1 -1
  269. package/dist/routes/auth.d.ts +2 -0
  270. package/dist/routes/auth.js +18 -4
  271. package/dist/routes/auth.js.map +1 -1
  272. package/dist/routes/onboarding.d.ts +1 -0
  273. package/dist/routes/onboarding.js +14 -4
  274. package/dist/routes/onboarding.js.map +1 -1
  275. package/dist/routes/system-state.d.ts +2 -0
  276. package/dist/routes/system-state.js +1 -1
  277. package/dist/routes/system-state.js.map +1 -1
  278. package/dist/test/antelope.test.js +1 -1
  279. package/dist/test/attachment-host/archive.d.ts +58 -0
  280. package/dist/test/attachment-host/archive.js +79 -0
  281. package/dist/test/attachment-host/archive.js.map +1 -0
  282. package/dist/test/attachment-host/capabilities.d.ts +82 -0
  283. package/dist/test/attachment-host/capabilities.js +189 -0
  284. package/dist/test/attachment-host/capabilities.js.map +1 -0
  285. package/dist/test/attachment-host/derived.d.ts +74 -0
  286. package/dist/test/attachment-host/derived.js +96 -0
  287. package/dist/test/attachment-host/derived.js.map +1 -0
  288. package/dist/test/attachment-host/index.d.ts +3 -0
  289. package/dist/test/attachment-host/index.js +3 -0
  290. package/dist/test/attachment-host/index.js.map +1 -1
  291. package/dist/test/attachment-host/native.js +9 -3
  292. package/dist/test/attachment-host/native.js.map +1 -1
  293. package/dist/test/helpers/derived-controller.d.ts +12 -0
  294. package/dist/test/helpers/derived-controller.js +20 -0
  295. package/dist/test/helpers/derived-controller.js.map +1 -0
  296. package/dist/test/integration/account-deletion.test.d.ts +1 -0
  297. package/dist/test/integration/account-deletion.test.js +84 -0
  298. package/dist/test/integration/account-deletion.test.js.map +1 -0
  299. package/dist/test/integration/auth/auth-key-rotation.test.d.ts +1 -0
  300. package/dist/test/integration/auth/auth-key-rotation.test.js +77 -0
  301. package/dist/test/integration/auth/auth-key-rotation.test.js.map +1 -0
  302. package/dist/test/integration/auth/login-throttle.test.d.ts +1 -0
  303. package/dist/test/integration/auth/login-throttle.test.js +88 -0
  304. package/dist/test/integration/auth/login-throttle.test.js.map +1 -0
  305. package/dist/test/integration/auth/sign-in-country.test.d.ts +1 -0
  306. package/dist/test/integration/auth/sign-in-country.test.js +75 -0
  307. package/dist/test/integration/auth/sign-in-country.test.js.map +1 -0
  308. package/dist/test/integration/auth/two-factor-password.test.d.ts +1 -0
  309. package/dist/test/integration/auth/two-factor-password.test.js +40 -0
  310. package/dist/test/integration/auth/two-factor-password.test.js.map +1 -0
  311. package/dist/test/integration/derived-controller.test.d.ts +1 -0
  312. package/dist/test/integration/derived-controller.test.js +105 -0
  313. package/dist/test/integration/derived-controller.test.js.map +1 -0
  314. package/dist/test/integration/email-change.test.d.ts +1 -0
  315. package/dist/test/integration/email-change.test.js +100 -0
  316. package/dist/test/integration/email-change.test.js.map +1 -0
  317. package/dist/test/integration/export-cleanup.test.js +1 -1
  318. package/dist/test/integration/export-cleanup.test.js.map +1 -1
  319. package/dist/test/integration/files/shared-controller-files.test.js +31 -21
  320. package/dist/test/integration/files/shared-controller-files.test.js.map +1 -1
  321. package/dist/test/integration/invite-extension-edit.test.js +5 -5
  322. package/dist/test/integration/invite-extension-edit.test.js.map +1 -1
  323. package/dist/test/integration/invite-resolution.test.js +6 -6
  324. package/dist/test/integration/invite-resolution.test.js.map +1 -1
  325. package/dist/test/integration/member-change-notifications.test.d.ts +1 -0
  326. package/dist/test/integration/member-change-notifications.test.js +52 -0
  327. package/dist/test/integration/member-change-notifications.test.js.map +1 -0
  328. package/dist/test/integration/member-settings-access.test.d.ts +1 -0
  329. package/dist/test/integration/member-settings-access.test.js +100 -0
  330. package/dist/test/integration/member-settings-access.test.js.map +1 -0
  331. package/dist/test/integration/notification-inbox.test.d.ts +1 -0
  332. package/dist/test/integration/notification-inbox.test.js +97 -0
  333. package/dist/test/integration/notification-inbox.test.js.map +1 -0
  334. package/dist/test/integration/notification-locked-subjects.test.d.ts +1 -0
  335. package/dist/test/integration/notification-locked-subjects.test.js +81 -0
  336. package/dist/test/integration/notification-locked-subjects.test.js.map +1 -0
  337. package/dist/test/integration/notifications.test.js +46 -1
  338. package/dist/test/integration/notifications.test.js.map +1 -1
  339. package/dist/test/integration/role-delete-reassign.test.d.ts +1 -0
  340. package/dist/test/integration/role-delete-reassign.test.js +68 -0
  341. package/dist/test/integration/role-delete-reassign.test.js.map +1 -0
  342. package/dist/test/integration/sign-in-records.test.d.ts +1 -0
  343. package/dist/test/integration/sign-in-records.test.js +41 -0
  344. package/dist/test/integration/sign-in-records.test.js.map +1 -0
  345. package/dist/test/integration/table-view-archive.test.d.ts +1 -0
  346. package/dist/test/integration/table-view-archive.test.js +46 -0
  347. package/dist/test/integration/table-view-archive.test.js.map +1 -0
  348. package/dist/test/integration/table-view-capabilities.test.d.ts +1 -0
  349. package/dist/test/integration/table-view-capabilities.test.js +146 -0
  350. package/dist/test/integration/table-view-capabilities.test.js.map +1 -0
  351. package/dist/test/integration/tenant-lifecycle.test.js +1 -1
  352. package/dist/test/integration/tenant-lifecycle.test.js.map +1 -1
  353. package/dist/test/unit/client-ip.test.js +0 -6
  354. package/dist/test/unit/client-ip.test.js.map +1 -1
  355. package/dist/test/unit/db/notification-feed-filter.test.d.ts +1 -0
  356. package/dist/test/unit/db/notification-feed-filter.test.js +144 -0
  357. package/dist/test/unit/db/notification-feed-filter.test.js.map +1 -0
  358. package/dist/test/unit/db/notification-inbox.test.d.ts +1 -0
  359. package/dist/test/unit/db/notification-inbox.test.js +110 -0
  360. package/dist/test/unit/db/notification-inbox.test.js.map +1 -0
  361. package/dist/test/unit/db/notification-preferences.test.js +35 -0
  362. package/dist/test/unit/db/notification-preferences.test.js.map +1 -1
  363. package/dist/test/unit/db/session-refresh-token.test.js +3 -14
  364. package/dist/test/unit/db/session-refresh-token.test.js.map +1 -1
  365. package/dist/test/unit/db/session-sweep.test.js +0 -1
  366. package/dist/test/unit/db/session-sweep.test.js.map +1 -1
  367. package/dist/test/unit/implementations/dms/gate-consistency.test.js +1 -1
  368. package/dist/test/unit/implementations/dms/gate-consistency.test.js.map +1 -1
  369. package/dist/test/unit/implementations/dms/missing-category.test.js +46 -0
  370. package/dist/test/unit/implementations/dms/missing-category.test.js.map +1 -1
  371. package/dist/test/unit/implementations/dms/nav-badges.test.d.ts +1 -0
  372. package/dist/test/unit/implementations/dms/nav-badges.test.js +146 -0
  373. package/dist/test/unit/implementations/dms/nav-badges.test.js.map +1 -0
  374. package/dist/test/unit/implementations/dms/permission-preview-aggregate.test.d.ts +1 -0
  375. package/dist/test/unit/implementations/dms/permission-preview-aggregate.test.js +116 -0
  376. package/dist/test/unit/implementations/dms/permission-preview-aggregate.test.js.map +1 -0
  377. package/dist/test/unit/implementations/dms/permission-preview-cost.test.d.ts +1 -0
  378. package/dist/test/unit/implementations/dms/permission-preview-cost.test.js +118 -0
  379. package/dist/test/unit/implementations/dms/permission-preview-cost.test.js.map +1 -0
  380. package/dist/test/unit/implementations/dms/permission-preview-header.test.d.ts +1 -0
  381. package/dist/test/unit/implementations/dms/permission-preview-header.test.js +78 -0
  382. package/dist/test/unit/implementations/dms/permission-preview-header.test.js.map +1 -0
  383. package/dist/test/unit/implementations/dms/permission-preview-menu.test.d.ts +1 -0
  384. package/dist/test/unit/implementations/dms/permission-preview-menu.test.js +162 -0
  385. package/dist/test/unit/implementations/dms/permission-preview-menu.test.js.map +1 -0
  386. package/dist/test/unit/implementations/dms-base/filter-tokens.test.d.ts +1 -0
  387. package/dist/test/unit/implementations/dms-base/filter-tokens.test.js +39 -0
  388. package/dist/test/unit/implementations/dms-base/filter-tokens.test.js.map +1 -0
  389. package/dist/test/unit/implementations/dms-base/footer-summary.test.d.ts +1 -0
  390. package/dist/test/unit/implementations/dms-base/footer-summary.test.js +51 -0
  391. package/dist/test/unit/implementations/dms-base/footer-summary.test.js.map +1 -0
  392. package/dist/test/unit/implementations/dms-notifications/delivery-dedupe.test.d.ts +1 -0
  393. package/dist/test/unit/implementations/dms-notifications/delivery-dedupe.test.js +100 -0
  394. package/dist/test/unit/implementations/dms-notifications/delivery-dedupe.test.js.map +1 -0
  395. package/dist/test/unit/implementations/dms-notifications/delivery-guard.test.d.ts +1 -0
  396. package/dist/test/unit/implementations/dms-notifications/delivery-guard.test.js +20 -0
  397. package/dist/test/unit/implementations/dms-notifications/delivery-guard.test.js.map +1 -0
  398. package/dist/test/unit/implementations/notification-subject-lock.test.d.ts +1 -0
  399. package/dist/test/unit/implementations/notification-subject-lock.test.js +31 -0
  400. package/dist/test/unit/implementations/notification-subject-lock.test.js.map +1 -0
  401. package/dist/test/unit/interfaces/dms/category-default-layout.test.d.ts +1 -0
  402. package/dist/test/unit/interfaces/dms/category-default-layout.test.js +85 -0
  403. package/dist/test/unit/interfaces/dms/category-default-layout.test.js.map +1 -0
  404. package/dist/test/unit/interfaces/dms/component-children-permissions.test.js +2 -2
  405. package/dist/test/unit/interfaces/dms/component-children-permissions.test.js.map +1 -1
  406. package/dist/test/unit/interfaces/dms/invite-extension.test.js +31 -28
  407. package/dist/test/unit/interfaces/dms/invite-extension.test.js.map +1 -1
  408. package/dist/test/unit/interfaces/dms/member-access.test.d.ts +1 -0
  409. package/dist/test/unit/interfaces/dms/member-access.test.js +117 -0
  410. package/dist/test/unit/interfaces/dms/member-access.test.js.map +1 -0
  411. package/dist/test/unit/interfaces/dms/module-permission-registration.test.js +11 -0
  412. package/dist/test/unit/interfaces/dms/module-permission-registration.test.js.map +1 -1
  413. package/dist/test/unit/interfaces/dms/module-reload-registrations.test.js +1 -1
  414. package/dist/test/unit/interfaces/dms/module-reload-registrations.test.js.map +1 -1
  415. package/dist/test/unit/interfaces/dms/page-extension.test.js +2 -1
  416. package/dist/test/unit/interfaces/dms/page-extension.test.js.map +1 -1
  417. package/dist/test/unit/interfaces/dms/page-registration-identity.test.js +5 -4
  418. package/dist/test/unit/interfaces/dms/page-registration-identity.test.js.map +1 -1
  419. package/dist/test/unit/interfaces/dms/tenant-invite-email.test.js +2 -2
  420. package/dist/test/unit/interfaces/dms/tenant-invite-email.test.js.map +1 -1
  421. package/dist/test/unit/interfaces/dms-auth/refresh-token-rotation.test.js +20 -32
  422. package/dist/test/unit/interfaces/dms-auth/refresh-token-rotation.test.js.map +1 -1
  423. package/dist/test/unit/interfaces/dms-base/block-vocabulary.test.d.ts +1 -0
  424. package/dist/test/unit/interfaces/dms-base/block-vocabulary.test.js +76 -0
  425. package/dist/test/unit/interfaces/dms-base/block-vocabulary.test.js.map +1 -0
  426. package/dist/test/unit/interfaces/dms-base/column-display.test.d.ts +1 -0
  427. package/dist/test/unit/interfaces/dms-base/column-display.test.js +98 -0
  428. package/dist/test/unit/interfaces/dms-base/column-display.test.js.map +1 -0
  429. package/dist/test/unit/interfaces/dms-base/data-types/field-types.test.d.ts +1 -0
  430. package/dist/test/unit/interfaces/dms-base/data-types/field-types.test.js +155 -0
  431. package/dist/test/unit/interfaces/dms-base/data-types/field-types.test.js.map +1 -0
  432. package/dist/test/unit/interfaces/dms-base/date-type-filter.test.d.ts +1 -0
  433. package/dist/test/unit/interfaces/dms-base/date-type-filter.test.js +34 -0
  434. package/dist/test/unit/interfaces/dms-base/date-type-filter.test.js.map +1 -0
  435. package/dist/test/unit/interfaces/dms-base/date-type-range.test.d.ts +1 -0
  436. package/dist/test/unit/interfaces/dms-base/date-type-range.test.js +29 -0
  437. package/dist/test/unit/interfaces/dms-base/date-type-range.test.js.map +1 -0
  438. package/dist/test/unit/interfaces/dms-base/display-blocks-catalog.test.d.ts +1 -0
  439. package/dist/test/unit/interfaces/dms-base/display-blocks-catalog.test.js +76 -0
  440. package/dist/test/unit/interfaces/dms-base/display-blocks-catalog.test.js.map +1 -0
  441. package/dist/test/unit/interfaces/dms-base/form-catalog.test.js +10 -5
  442. package/dist/test/unit/interfaces/dms-base/form-catalog.test.js.map +1 -1
  443. package/dist/test/unit/interfaces/dms-base/form-footer.test.d.ts +1 -0
  444. package/dist/test/unit/interfaces/dms-base/form-footer.test.js +12 -0
  445. package/dist/test/unit/interfaces/dms-base/form-footer.test.js.map +1 -0
  446. package/dist/test/unit/interfaces/dms-base/form-sections.test.d.ts +1 -0
  447. package/dist/test/unit/interfaces/dms-base/form-sections.test.js +93 -0
  448. package/dist/test/unit/interfaces/dms-base/form-sections.test.js.map +1 -0
  449. package/dist/test/unit/interfaces/dms-base/layout-header-actions.test.d.ts +1 -0
  450. package/dist/test/unit/interfaces/dms-base/layout-header-actions.test.js +222 -0
  451. package/dist/test/unit/interfaces/dms-base/layout-header-actions.test.js.map +1 -0
  452. package/dist/test/unit/interfaces/dms-base/lists-and-settings-catalog.test.d.ts +1 -0
  453. package/dist/test/unit/interfaces/dms-base/lists-and-settings-catalog.test.js +43 -0
  454. package/dist/test/unit/interfaces/dms-base/lists-and-settings-catalog.test.js.map +1 -0
  455. package/dist/test/unit/interfaces/dms-base/table-view-after-write.test.d.ts +1 -0
  456. package/dist/test/unit/interfaces/dms-base/table-view-after-write.test.js +62 -0
  457. package/dist/test/unit/interfaces/dms-base/table-view-after-write.test.js.map +1 -0
  458. package/dist/test/unit/interfaces/dms-base/table-view-bulk-operations.test.d.ts +1 -0
  459. package/dist/test/unit/interfaces/dms-base/table-view-bulk-operations.test.js +259 -0
  460. package/dist/test/unit/interfaces/dms-base/table-view-bulk-operations.test.js.map +1 -0
  461. package/dist/test/unit/interfaces/dms-base/table-view-column-validator.test.d.ts +1 -0
  462. package/dist/test/unit/interfaces/dms-base/table-view-column-validator.test.js +87 -0
  463. package/dist/test/unit/interfaces/dms-base/table-view-column-validator.test.js.map +1 -0
  464. package/dist/test/unit/interfaces/dms-base/table-view-export-permission.test.d.ts +1 -0
  465. package/dist/test/unit/interfaces/dms-base/table-view-export-permission.test.js +90 -0
  466. package/dist/test/unit/interfaces/dms-base/table-view-export-permission.test.js.map +1 -0
  467. package/dist/test/unit/interfaces/dms-base/table-view-footer.test.d.ts +1 -0
  468. package/dist/test/unit/interfaces/dms-base/table-view-footer.test.js +177 -0
  469. package/dist/test/unit/interfaces/dms-base/table-view-footer.test.js.map +1 -0
  470. package/dist/test/unit/interfaces/dms-base/table-view-form-page-texts.test.d.ts +1 -0
  471. package/dist/test/unit/interfaces/dms-base/table-view-form-page-texts.test.js +36 -0
  472. package/dist/test/unit/interfaces/dms-base/table-view-form-page-texts.test.js.map +1 -0
  473. package/dist/test/unit/interfaces/dms-base/table-view-form-page-urls.test.js +15 -13
  474. package/dist/test/unit/interfaces/dms-base/table-view-form-page-urls.test.js.map +1 -1
  475. package/dist/test/unit/interfaces/dms-base/table-view-form-redirect.test.js +9 -7
  476. package/dist/test/unit/interfaces/dms-base/table-view-form-redirect.test.js.map +1 -1
  477. package/dist/test/unit/interfaces/dms-base/table-view-meta-inherit.test.d.ts +1 -0
  478. package/dist/test/unit/interfaces/dms-base/table-view-meta-inherit.test.js +119 -0
  479. package/dist/test/unit/interfaces/dms-base/table-view-meta-inherit.test.js.map +1 -0
  480. package/dist/test/unit/interfaces/dms-base/table-view-one-writer.test.d.ts +1 -0
  481. package/dist/test/unit/interfaces/dms-base/table-view-one-writer.test.js +179 -0
  482. package/dist/test/unit/interfaces/dms-base/table-view-one-writer.test.js.map +1 -0
  483. package/dist/test/unit/interfaces/dms-base/table-view-realtime-no-change.test.d.ts +1 -0
  484. package/dist/test/unit/interfaces/dms-base/table-view-realtime-no-change.test.js +23 -0
  485. package/dist/test/unit/interfaces/dms-base/table-view-realtime-no-change.test.js.map +1 -0
  486. package/dist/test/unit/interfaces/dms-base/table-view-realtime.test.js +1 -1
  487. package/dist/test/unit/interfaces/dms-base/table-view-realtime.test.js.map +1 -1
  488. package/dist/test/unit/interfaces/dms-base/table-view-reduced-chrome.test.d.ts +1 -0
  489. package/dist/test/unit/interfaces/dms-base/table-view-reduced-chrome.test.js +454 -0
  490. package/dist/test/unit/interfaces/dms-base/table-view-reduced-chrome.test.js.map +1 -0
  491. package/dist/test/unit/interfaces/dms-base/table-view-route-param-filter-defaults.test.js +8 -6
  492. package/dist/test/unit/interfaces/dms-base/table-view-route-param-filter-defaults.test.js.map +1 -1
  493. package/dist/test/unit/interfaces/dms-base/table-view-shared-controller-permissions.test.d.ts +1 -0
  494. package/dist/test/unit/interfaces/dms-base/table-view-shared-controller-permissions.test.js +144 -0
  495. package/dist/test/unit/interfaces/dms-base/table-view-shared-controller-permissions.test.js.map +1 -0
  496. package/dist/test/unit/interfaces/dms-base/table-view-source-reorder.test.d.ts +1 -0
  497. package/dist/test/unit/interfaces/dms-base/table-view-source-reorder.test.js +188 -0
  498. package/dist/test/unit/interfaces/dms-base/table-view-source-reorder.test.js.map +1 -0
  499. package/dist/test/unit/interfaces/dms-base/table-view-tab-count-warning.test.js +1 -1
  500. package/dist/test/unit/interfaces/dms-base/table-view-tab-count-warning.test.js.map +1 -1
  501. package/dist/test/unit/interfaces/dms-base/table-view-tenant-gate.test.js +14 -13
  502. package/dist/test/unit/interfaces/dms-base/table-view-tenant-gate.test.js.map +1 -1
  503. package/dist/test/unit/interfaces/dms-base/table-view-views.test.d.ts +1 -0
  504. package/dist/test/unit/interfaces/dms-base/table-view-views.test.js +314 -0
  505. package/dist/test/unit/interfaces/dms-base/table-view-views.test.js.map +1 -0
  506. package/dist/test/unit/interfaces/dms-base/table-view-writer-row-rules.test.d.ts +1 -0
  507. package/dist/test/unit/interfaces/dms-base/table-view-writer-row-rules.test.js +292 -0
  508. package/dist/test/unit/interfaces/dms-base/table-view-writer-row-rules.test.js.map +1 -0
  509. package/dist/test/unit/onboarding-platform.test.d.ts +1 -0
  510. package/dist/test/unit/onboarding-platform.test.js +76 -0
  511. package/dist/test/unit/onboarding-platform.test.js.map +1 -0
  512. package/dist/test/unit/pages/settings/account-activity-feed.test.d.ts +1 -0
  513. package/dist/test/unit/pages/settings/account-activity-feed.test.js +116 -0
  514. package/dist/test/unit/pages/settings/account-activity-feed.test.js.map +1 -0
  515. package/dist/test/unit/pages/settings/account-activity.test.d.ts +1 -0
  516. package/dist/test/unit/pages/settings/account-activity.test.js +262 -0
  517. package/dist/test/unit/pages/settings/account-activity.test.js.map +1 -0
  518. package/dist/test/unit/pages/settings/account-data.test.d.ts +1 -0
  519. package/dist/test/unit/pages/settings/account-data.test.js +255 -0
  520. package/dist/test/unit/pages/settings/account-data.test.js.map +1 -0
  521. package/dist/test/unit/pages/settings/account-security.test.d.ts +1 -0
  522. package/dist/test/unit/pages/settings/account-security.test.js +208 -0
  523. package/dist/test/unit/pages/settings/account-security.test.js.map +1 -0
  524. package/dist/test/unit/pages/settings/invite-email-delivery.test.js +24 -18
  525. package/dist/test/unit/pages/settings/invite-email-delivery.test.js.map +1 -1
  526. package/dist/test/unit/pages/settings/invite-member-quick-action.test.js +1 -1
  527. package/dist/test/unit/pages/settings/invite-member-quick-action.test.js.map +1 -1
  528. package/dist/test/unit/pages/settings/member-roles-field.test.d.ts +1 -0
  529. package/dist/test/unit/pages/settings/member-roles-field.test.js +47 -0
  530. package/dist/test/unit/pages/settings/member-roles-field.test.js.map +1 -0
  531. package/dist/test/unit/pages/settings/member-table-widths.test.d.ts +1 -0
  532. package/dist/test/unit/pages/settings/member-table-widths.test.js +53 -0
  533. package/dist/test/unit/pages/settings/member-table-widths.test.js.map +1 -0
  534. package/dist/test/unit/pages/settings/members-page.test.d.ts +1 -0
  535. package/dist/test/unit/pages/settings/members-page.test.js +234 -0
  536. package/dist/test/unit/pages/settings/members-page.test.js.map +1 -0
  537. package/dist/test/unit/pages/settings/permission-tree-nodes.test.js +41 -5
  538. package/dist/test/unit/pages/settings/permission-tree-nodes.test.js.map +1 -1
  539. package/dist/test/unit/pages/settings/regional-preferences.test.d.ts +1 -0
  540. package/dist/test/unit/pages/settings/regional-preferences.test.js +118 -0
  541. package/dist/test/unit/pages/settings/regional-preferences.test.js.map +1 -0
  542. package/dist/test/unit/pages/settings/role-delete-confirm.test.d.ts +1 -0
  543. package/dist/test/unit/pages/settings/role-delete-confirm.test.js +77 -0
  544. package/dist/test/unit/pages/settings/role-delete-confirm.test.js.map +1 -0
  545. package/dist/test/unit/pages/settings/role-editor.test.d.ts +1 -0
  546. package/dist/test/unit/pages/settings/role-editor.test.js +261 -0
  547. package/dist/test/unit/pages/settings/role-editor.test.js.map +1 -0
  548. package/dist/test/unit/pages/settings/role-preview.test.d.ts +1 -0
  549. package/dist/test/unit/pages/settings/role-preview.test.js +200 -0
  550. package/dist/test/unit/pages/settings/role-preview.test.js.map +1 -0
  551. package/dist/test/unit/request-authenticators.test.js +1 -1
  552. package/dist/test/unit/request-authenticators.test.js.map +1 -1
  553. package/dist/test/unit/request-tenant-guards.test.js +2 -1
  554. package/dist/test/unit/request-tenant-guards.test.js.map +1 -1
  555. package/dist/test/unit/signup-account-guard.test.js +1 -1
  556. package/dist/test/unit/signup-account-guard.test.js.map +1 -1
  557. package/dist/test/unit/utils/attempt-limiter.test.d.ts +1 -0
  558. package/dist/test/unit/utils/attempt-limiter.test.js +43 -0
  559. package/dist/test/unit/utils/attempt-limiter.test.js.map +1 -0
  560. package/dist/test/unit/utils/failed-sign-ins.test.d.ts +1 -0
  561. package/dist/test/unit/utils/failed-sign-ins.test.js +57 -0
  562. package/dist/test/unit/utils/failed-sign-ins.test.js.map +1 -0
  563. package/dist/test/unit/utils/notification-rules.test.d.ts +1 -0
  564. package/dist/test/unit/utils/notification-rules.test.js +60 -0
  565. package/dist/test/unit/utils/notification-rules.test.js.map +1 -0
  566. package/dist/test/unit/utils/notification-tones.test.d.ts +1 -0
  567. package/dist/test/unit/utils/notification-tones.test.js +18 -0
  568. package/dist/test/unit/utils/notification-tones.test.js.map +1 -0
  569. package/dist/test/unit/utils/owned-registry.test.js +1 -1
  570. package/dist/test/unit/utils/owned-registry.test.js.map +1 -1
  571. package/dist/test/unit/utils/sign-in-country.test.d.ts +1 -0
  572. package/dist/test/unit/utils/sign-in-country.test.js +70 -0
  573. package/dist/test/unit/utils/sign-in-country.test.js.map +1 -0
  574. package/dist/test/unit/utils/sign-in-devices.test.d.ts +1 -0
  575. package/dist/test/unit/utils/sign-in-devices.test.js +105 -0
  576. package/dist/test/unit/utils/sign-in-devices.test.js.map +1 -0
  577. package/dist/test/unit/utils/type-check.test.js +1 -1
  578. package/dist/test/unit/utils/type-check.test.js.map +1 -1
  579. package/dist/test/unit/utils/user-activity.test.d.ts +1 -0
  580. package/dist/test/unit/utils/user-activity.test.js +85 -0
  581. package/dist/test/unit/utils/user-activity.test.js.map +1 -0
  582. package/dist/test/unit/utils/value-parser.test.js +1 -1
  583. package/dist/test/unit/utils/value-parser.test.js.map +1 -1
  584. package/dist/test/unit/utils/workspace-notifications.test.d.ts +1 -0
  585. package/dist/test/unit/utils/workspace-notifications.test.js +32 -0
  586. package/dist/test/unit/utils/workspace-notifications.test.js.map +1 -0
  587. package/dist/test/unit/validation/onboarding/register-admin.schema.test.js +54 -14
  588. package/dist/test/unit/validation/onboarding/register-admin.schema.test.js.map +1 -1
  589. package/dist/test/unit/validation/user-notification-preferences.schema.test.js +12 -0
  590. package/dist/test/unit/validation/user-notification-preferences.schema.test.js.map +1 -1
  591. package/dist/utils/account-notifications.d.ts +12 -4
  592. package/dist/utils/account-notifications.js +86 -101
  593. package/dist/utils/account-notifications.js.map +1 -1
  594. package/dist/utils/attempt-limiter.d.ts +12 -0
  595. package/dist/utils/attempt-limiter.js +48 -0
  596. package/dist/utils/attempt-limiter.js.map +1 -0
  597. package/dist/utils/email-change-mail.d.ts +3 -0
  598. package/dist/utils/email-change-mail.js +25 -0
  599. package/dist/utils/email-change-mail.js.map +1 -0
  600. package/dist/utils/export-jobs-run.d.ts +1 -1
  601. package/dist/utils/export-jobs-run.js +4 -3
  602. package/dist/utils/export-jobs-run.js.map +1 -1
  603. package/dist/utils/export-jobs.d.ts +3 -1
  604. package/dist/utils/export-jobs.js +11 -4
  605. package/dist/utils/export-jobs.js.map +1 -1
  606. package/dist/utils/failed-sign-ins.d.ts +13 -0
  607. package/dist/utils/failed-sign-ins.js +22 -0
  608. package/dist/utils/failed-sign-ins.js.map +1 -0
  609. package/dist/utils/index.d.ts +3 -3
  610. package/dist/utils/index.js +3 -3
  611. package/dist/utils/index.js.map +1 -1
  612. package/dist/utils/notification-emitter.d.ts +23 -0
  613. package/dist/utils/notification-emitter.js +43 -0
  614. package/dist/utils/notification-emitter.js.map +1 -0
  615. package/dist/utils/notification-rules.d.ts +5 -0
  616. package/dist/utils/notification-rules.js +26 -0
  617. package/dist/utils/notification-rules.js.map +1 -0
  618. package/dist/utils/notification-tones.d.ts +4 -0
  619. package/dist/utils/notification-tones.js +13 -0
  620. package/dist/utils/notification-tones.js.map +1 -0
  621. package/dist/utils/sign-in-country.d.ts +15 -0
  622. package/dist/utils/sign-in-country.js +87 -0
  623. package/dist/utils/sign-in-country.js.map +1 -0
  624. package/dist/utils/sign-in-devices.d.ts +15 -0
  625. package/dist/utils/sign-in-devices.js +43 -0
  626. package/dist/utils/sign-in-devices.js.map +1 -0
  627. package/dist/utils/sign-in-monitor.d.ts +6 -0
  628. package/dist/utils/sign-in-monitor.js +90 -0
  629. package/dist/utils/sign-in-monitor.js.map +1 -0
  630. package/dist/utils/user-activity.d.ts +4 -0
  631. package/dist/utils/user-activity.js +22 -0
  632. package/dist/utils/user-activity.js.map +1 -0
  633. package/dist/utils/user-agent.d.ts +2 -2
  634. package/dist/utils/workspace-notifications.d.ts +28 -0
  635. package/dist/utils/workspace-notifications.js +184 -0
  636. package/dist/utils/workspace-notifications.js.map +1 -0
  637. package/dist/validation/account-deletion.schema.d.ts +12 -0
  638. package/dist/validation/account-deletion.schema.js +44 -0
  639. package/dist/validation/account-deletion.schema.js.map +1 -0
  640. package/dist/validation/auth.schema.d.ts +7 -0
  641. package/dist/validation/auth.schema.js +3 -0
  642. package/dist/validation/auth.schema.js.map +1 -1
  643. package/dist/validation/member-invite.schema.d.ts +34 -9
  644. package/dist/validation/member-invite.schema.js +57 -23
  645. package/dist/validation/member-invite.schema.js.map +1 -1
  646. package/dist/validation/member-ownership.schema.d.ts +8 -0
  647. package/dist/validation/member-ownership.schema.js +8 -0
  648. package/dist/validation/member-ownership.schema.js.map +1 -0
  649. package/dist/validation/onboarding/register-admin.schema.d.ts +19 -4
  650. package/dist/validation/onboarding/register-admin.schema.js +27 -2
  651. package/dist/validation/onboarding/register-admin.schema.js.map +1 -1
  652. package/dist/validation/regional-preferences.schema.d.ts +22 -0
  653. package/dist/validation/regional-preferences.schema.js +70 -0
  654. package/dist/validation/regional-preferences.schema.js.map +1 -0
  655. package/dist/validation/role-editor.schema.d.ts +42 -0
  656. package/dist/validation/role-editor.schema.js +34 -0
  657. package/dist/validation/role-editor.schema.js.map +1 -0
  658. package/dist/validation/security.schema.d.ts +37 -0
  659. package/dist/validation/security.schema.js +61 -0
  660. package/dist/validation/security.schema.js.map +1 -0
  661. package/dist/validation/user-notification-preferences.schema.d.ts +1 -0
  662. package/dist/validation/user-notification-preferences.schema.js +2 -1
  663. package/dist/validation/user-notification-preferences.schema.js.map +1 -1
  664. package/frontend-vue/deferred-plugins.ts +2 -0
  665. package/frontend-vue/dms.frontend.build.ts +11 -0
  666. package/frontend-vue/dms.frontend.ts +32 -10
  667. package/frontend-vue/layers/dms-auth/app/build/components/AuthBackLink.vue +21 -0
  668. package/frontend-vue/layers/dms-auth/app/build/components/AuthFormAlert.vue +26 -0
  669. package/frontend-vue/layers/dms-auth/app/build/components/AuthNewPasswordField.vue +41 -0
  670. package/frontend-vue/layers/dms-auth/app/build/components/AuthResendCode.vue +51 -0
  671. package/frontend-vue/layers/dms-auth/app/build/composables/useAuthFormError.ts +102 -0
  672. package/frontend-vue/layers/dms-auth/app/build/utils/authStyles.ts +8 -0
  673. package/frontend-vue/layers/dms-auth/app/components/OAuthButtons.vue +6 -5
  674. package/frontend-vue/layers/dms-auth/app/composables/useLogout.ts +5 -0
  675. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/2fa.vue +124 -83
  676. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/accounts.vue +98 -94
  677. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/backup.vue +82 -48
  678. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +118 -80
  679. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot.vue +69 -47
  680. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/login.vue +128 -103
  681. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover-success.vue +20 -13
  682. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover.vue +57 -75
  683. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/signup.vue +108 -103
  684. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +101 -80
  685. package/frontend-vue/layers/dms-auth/app/utils/accountsFlow.ts +1 -4
  686. package/frontend-vue/layers/dms-auth/i18n/locales/auth-en-GB.json +292 -21
  687. package/frontend-vue/layers/dms-auth/i18n/locales/auth-fr-FR.json +295 -24
  688. package/frontend-vue/layers/dms-core/app/build/composables/auth/usePermissionPreview.ts +297 -0
  689. package/frontend-vue/layers/dms-core/app/build/composables/page/usePageRecordLabel.ts +31 -0
  690. package/frontend-vue/layers/dms-core/app/build/utils/permission-preview.ts +266 -0
  691. package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +27 -0
  692. package/frontend-vue/layers/dms-core/app/composables/period/compareResolvers.ts +35 -1
  693. package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +522 -0
  694. package/frontend-vue/layers/dms-core/app/composables/useFormValidation.ts +209 -0
  695. package/frontend-vue/layers/dms-core/app/composables/user/useRegionalFormat.ts +65 -0
  696. package/frontend-vue/layers/dms-core/app/composables/user/useUserRegionalPreferences.ts +57 -0
  697. package/frontend-vue/layers/dms-core/app/types/confirm-dialog.ts +68 -0
  698. package/frontend-vue/layers/dms-core/app/types/menu.ts +12 -0
  699. package/frontend-vue/layers/dms-core/app/types/row-action.ts +14 -0
  700. package/frontend-vue/layers/dms-core/app/utils/formatter.ts +76 -53
  701. package/frontend-vue/layers/dms-core/app/utils/regional.ts +269 -0
  702. package/frontend-vue/layers/dms-core/app/utils/url-interpolation.ts +23 -2
  703. package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +46 -7
  704. package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +46 -7
  705. package/frontend-vue/layers/dms-core/shared/types/runtime-config.d.ts +0 -8
  706. package/frontend-vue/layers/dms-layout/app/app.config.ts +81 -149
  707. package/frontend-vue/layers/dms-layout/app/assets/css/main.css +379 -74
  708. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardBanners.vue +24 -3
  709. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardFrame.vue +97 -0
  710. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +136 -114
  711. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardPageBody.vue +72 -0
  712. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +118 -34
  713. package/frontend-vue/layers/dms-layout/app/build/components/layout/Footer.vue +148 -26
  714. package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeader.vue +10 -8
  715. package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionBar.vue +241 -0
  716. package/frontend-vue/layers/dms-layout/app/build/components/layout/PageHeaderActionsOutlet.vue +62 -0
  717. package/frontend-vue/layers/dms-layout/app/build/components/layout/PageSkeleton.vue +35 -0
  718. package/frontend-vue/layers/dms-layout/app/build/components/layout/QuickActionsPopover.vue +35 -12
  719. package/frontend-vue/layers/dms-layout/app/build/components/layout/RolePreviewBar.vue +137 -0
  720. package/frontend-vue/layers/dms-layout/app/build/components/layout/SidebarUserMenu.vue +113 -0
  721. package/frontend-vue/layers/dms-layout/app/build/components/layout/StageCard.vue +88 -0
  722. package/frontend-vue/layers/dms-layout/app/build/components/layout/UserIdentity.vue +34 -0
  723. package/frontend-vue/layers/dms-layout/app/build/components/layout/sidebarState.ts +5 -1
  724. package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +122 -68
  725. package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleCatalogTile.vue +99 -0
  726. package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleStoreTile.vue +75 -0
  727. package/frontend-vue/layers/dms-layout/app/build/components/pages/modules/ModuleTile.vue +102 -0
  728. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/members/MemberRolePicker.vue +184 -0
  729. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxDisplay.vue +138 -0
  730. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxItem.vue +118 -0
  731. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixCategory.vue +87 -0
  732. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixSubject.vue +88 -0
  733. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +168 -273
  734. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/notificationDisplay.ts +86 -0
  735. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfileAccountData.vue +40 -0
  736. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfileAvatar.vue +47 -0
  737. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfilePersonalInfo.vue +344 -0
  738. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfilePreferencesSummary.vue +68 -0
  739. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfileSecuritySummary.vue +75 -0
  740. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/profile/ProfileSummaryRow.vue +101 -0
  741. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/region/RegionFormatPreview.vue +90 -0
  742. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/region/RegionTimeZoneInput.vue +62 -0
  743. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/region/timeZones.ts +96 -0
  744. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleEditor.vue +370 -0
  745. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleMemberAvatars.vue +30 -0
  746. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RoleOwnerPanel.vue +57 -0
  747. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePanelHead.vue +41 -0
  748. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionArea.vue +141 -0
  749. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionBranch.vue +82 -0
  750. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionGroup.vue +63 -0
  751. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionLeaf.vue +209 -0
  752. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolePermissionTree.vue +183 -0
  753. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesList.vue +158 -0
  754. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/RolesListItem.vue +95 -0
  755. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-permissions.ts +463 -0
  756. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/role-types.ts +89 -0
  757. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/useRoleEditor.ts +204 -0
  758. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/roles/useRolesApi.ts +71 -0
  759. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityBackupCodesModal.vue +160 -0
  760. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityCodeModal.vue +110 -0
  761. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityDialogFrame.vue +75 -0
  762. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityEditPanel.vue +169 -0
  763. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityEmail.vue +402 -0
  764. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityPanelField.vue +56 -0
  765. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityPassword.vue +330 -0
  766. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityPasswordModal.vue +102 -0
  767. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecuritySessions.vue +369 -0
  768. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityStatus.vue +177 -0
  769. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityTotpSetupModal.vue +189 -0
  770. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/security/SecurityTwoFactor.vue +597 -0
  771. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsNav.vue +225 -0
  772. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +22 -0
  773. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shortcut/KeyboardShortcut.vue +3 -8
  774. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceAccessibility.vue +62 -0
  775. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceDeveloper.vue +50 -0
  776. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceOptionTile.vue +76 -0
  777. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceScale.vue +55 -0
  778. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceSidebar.vue +19 -0
  779. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/AppearanceTheme.vue +60 -0
  780. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/CssVariablesList.vue +276 -168
  781. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/theme/useAppearanceSave.ts +76 -0
  782. package/frontend-vue/layers/dms-layout/app/build/composables/dev-reload/useDevReloadHolder.ts +358 -0
  783. package/frontend-vue/layers/dms-layout/app/build/composables/general/useSidebarStartCollapsed.ts +14 -0
  784. package/frontend-vue/layers/dms-layout/app/build/composables/navigation/useCategoryNavCards.ts +73 -0
  785. package/frontend-vue/layers/dms-layout/app/build/composables/notification/useNotificationCatalog.ts +85 -0
  786. package/frontend-vue/layers/dms-layout/app/build/composables/notification/useNotificationPreferences.ts +90 -0
  787. package/frontend-vue/layers/dms-layout/app/build/composables/security/useSessionHandoff.ts +55 -0
  788. package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/preferencesSummary.ts +209 -0
  789. package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/useAccountData.ts +329 -0
  790. package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/useProfileAvatar.ts +95 -0
  791. package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/useProfilePreferences.ts +198 -0
  792. package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useCodeFieldError.ts +63 -0
  793. package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useRevealedBackupCodes.ts +53 -0
  794. package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityFormat.ts +95 -0
  795. package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityOverview.ts +85 -0
  796. package/frontend-vue/layers/dms-layout/app/build/composables/settings/useSettingsNavigation.ts +101 -0
  797. package/frontend-vue/layers/dms-layout/app/build/utils/categoryPages.ts +44 -0
  798. package/frontend-vue/layers/dms-layout/app/build/utils/module-store-catalog.ts +137 -0
  799. package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +197 -0
  800. package/frontend-vue/layers/dms-layout/app/components/AppWidgetsDock.vue +49 -16
  801. package/frontend-vue/layers/dms-layout/app/components/layout/DashboardSearch.vue +18 -1
  802. package/frontend-vue/layers/dms-layout/app/components/layout/HStack.vue +2 -1
  803. package/frontend-vue/layers/dms-layout/app/components/layout/Spacer.vue +25 -0
  804. package/frontend-vue/layers/dms-layout/app/components/layout/VStack.vue +2 -1
  805. package/frontend-vue/layers/dms-layout/app/components/navigation/CollapsedMenuItem.vue +65 -4
  806. package/frontend-vue/layers/dms-layout/app/components/navigation/NavigationMenu.vue +109 -4
  807. package/frontend-vue/layers/dms-layout/app/composables/general/useAccessibilityPreferences.ts +52 -0
  808. package/frontend-vue/layers/dms-layout/app/composables/layout/useInstantSaveHeader.ts +34 -0
  809. package/frontend-vue/layers/dms-layout/app/composables/layout/usePageHeaderActions.ts +158 -0
  810. package/frontend-vue/layers/dms-layout/app/composables/notification/useNotifications.ts +169 -110
  811. package/frontend-vue/layers/dms-layout/app/composables/page/useModuleHistory.ts +60 -12
  812. package/frontend-vue/layers/dms-layout/app/composables/page/useModulesListing.ts +62 -26
  813. package/frontend-vue/layers/dms-layout/app/composables/page/usePageComponentPreload.ts +16 -14
  814. package/frontend-vue/layers/dms-layout/app/composables/page/useQuickActions.ts +1 -61
  815. package/frontend-vue/layers/dms-layout/app/composables/profile/useUserLanguage.ts +4 -3
  816. package/frontend-vue/layers/dms-layout/app/composables/useDevReload.ts +4 -359
  817. package/frontend-vue/layers/dms-layout/app/composables/useFooterLinks.ts +20 -1
  818. package/frontend-vue/layers/dms-layout/app/custom-layouts/DefaultLayout.vue +17 -43
  819. package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +42 -4
  820. package/frontend-vue/layers/dms-layout/app/custom-layouts/SettingsLayout.vue +42 -0
  821. package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +564 -70
  822. package/frontend-vue/layers/dms-layout/app/custom-pages/settings/roles.vue +298 -0
  823. package/frontend-vue/layers/dms-layout/app/custom-pages/settings/shortcuts.vue +162 -109
  824. package/frontend-vue/layers/dms-layout/app/emails/EmailChangeNotice.vue +28 -0
  825. package/frontend-vue/layers/dms-layout/app/emails/EmailChangeVerification.vue +32 -0
  826. package/frontend-vue/layers/dms-layout/app/error.vue +75 -84
  827. package/frontend-vue/layers/dms-layout/app/middleware/page-leave-guard.global.ts +8 -0
  828. package/frontend-vue/layers/dms-layout/app/pages/[...slug].vue +8 -0
  829. package/frontend-vue/layers/dms-layout/app/plugins/accessibility.ts +22 -0
  830. package/frontend-vue/layers/dms-layout/app/plugins/dms-dev-reload.client.ts +5 -2
  831. package/frontend-vue/layers/dms-layout/app/plugins/font-preload.ts +23 -0
  832. package/frontend-vue/layers/dms-layout/app/plugins/notification-stream.client.ts +15 -2
  833. package/frontend-vue/layers/dms-layout/app/plugins/permission-preview-prepaint.ts +40 -0
  834. package/frontend-vue/layers/dms-layout/app/plugins/permission-preview.client.ts +35 -0
  835. package/frontend-vue/layers/dms-layout/app/plugins/profile-sync.client.ts +10 -4
  836. package/frontend-vue/layers/dms-layout/app/plugins/regional-preferences.ts +19 -0
  837. package/frontend-vue/layers/dms-layout/app/theme/actions.ts +385 -0
  838. package/frontend-vue/layers/dms-layout/app/theme/data.ts +174 -0
  839. package/frontend-vue/layers/dms-layout/app/theme/form-controls.ts +657 -0
  840. package/frontend-vue/layers/dms-layout/app/theme/navigation.ts +295 -0
  841. package/frontend-vue/layers/dms-layout/app/theme/surfaces.ts +319 -0
  842. package/frontend-vue/layers/dms-layout/app/types/page.ts +22 -0
  843. package/frontend-vue/layers/dms-layout/app/utils/account-menu.ts +1 -1
  844. package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +639 -63
  845. package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +638 -62
  846. package/frontend-vue/layers/dms-layout/public/images/antelope-logo/dark.svg +12 -12
  847. package/frontend-vue/layers/dms-layout/public/images/antelope-logo/light.svg +12 -12
  848. package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/StepIndicator.vue +44 -0
  849. package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/StepMeta.vue +41 -0
  850. package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/platform.vue +153 -0
  851. package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/ready.vue +191 -0
  852. package/frontend-vue/layers/dms-onboarding/app/build/composables/onboarding/steps.ts +16 -0
  853. package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/register.vue +152 -115
  854. package/frontend-vue/layers/dms-onboarding/app/custom-pages/onboarding.vue +60 -1
  855. package/frontend-vue/layers/dms-onboarding/i18n/locales/onboarding-en-GB.json +46 -15
  856. package/frontend-vue/layers/dms-onboarding/i18n/locales/onboarding-fr-FR.json +46 -15
  857. package/frontend-vue/layers/dms-ui/app/build/components/activity-feed/activityFeedDays.ts +173 -0
  858. package/frontend-vue/layers/dms-ui/app/build/components/blocks/BlockActions.vue +72 -0
  859. package/frontend-vue/layers/dms-ui/app/build/components/blocks/BlockStatus.vue +69 -0
  860. package/frontend-vue/layers/dms-ui/app/build/components/chart/internal/ChartSkeleton.vue +56 -0
  861. package/frontend-vue/layers/dms-ui/app/build/components/containers/constants.ts +2 -0
  862. package/frontend-vue/layers/dms-ui/app/build/components/containers/drawer/DynamicDrawer.vue +70 -12
  863. package/frontend-vue/layers/dms-ui/app/build/components/containers/modal/DynamicModal.vue +91 -16
  864. package/frontend-vue/layers/dms-ui/app/build/components/form/ChipGroup.vue +113 -0
  865. package/frontend-vue/layers/dms-ui/app/build/components/form/FormEntries.vue +101 -0
  866. package/frontend-vue/layers/dms-ui/app/build/components/form/FormErrorSummary.vue +51 -0
  867. package/frontend-vue/layers/dms-ui/app/build/components/form/FormErrorText.vue +15 -0
  868. package/frontend-vue/layers/dms-ui/app/build/components/form/FormFieldControl.vue +109 -0
  869. package/frontend-vue/layers/dms-ui/app/build/components/form/FormFieldNotes.vue +96 -0
  870. package/frontend-vue/layers/dms-ui/app/build/components/form/FormRequiredLegend.vue +6 -0
  871. package/frontend-vue/layers/dms-ui/app/build/components/form/FormSectionNav.vue +94 -0
  872. package/frontend-vue/layers/dms-ui/app/build/components/form/FormSections.vue +131 -0
  873. package/frontend-vue/layers/dms-ui/app/build/components/form/OtpInput.vue +108 -0
  874. package/frontend-vue/layers/dms-ui/app/build/components/form/PasswordInput.vue +95 -0
  875. package/frontend-vue/layers/dms-ui/app/build/components/form/SearchInput.vue +102 -0
  876. package/frontend-vue/layers/dms-ui/app/build/components/form/UnsavedStatus.vue +30 -0
  877. package/frontend-vue/layers/dms-ui/app/build/components/period/PeriodRangeCalendar.vue +294 -0
  878. package/frontend-vue/layers/dms-ui/app/build/components/permission/PermissionVeil.vue +118 -0
  879. package/frontend-vue/layers/dms-ui/app/build/components/section/context.ts +10 -0
  880. package/frontend-vue/layers/dms-ui/app/build/components/skeleton/RowSkeleton.vue +38 -0
  881. package/frontend-vue/layers/dms-ui/app/build/components/stat/StatCell.vue +183 -0
  882. package/frontend-vue/layers/dms-ui/app/build/components/table/Actions.vue +397 -37
  883. package/frontend-vue/layers/dms-ui/app/build/components/table/Empty.vue +154 -61
  884. package/frontend-vue/layers/dms-ui/app/build/components/table/FiltersRow.vue +147 -68
  885. package/frontend-vue/layers/dms-ui/app/build/components/table/Menu.vue +13 -1
  886. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuDensity.vue +80 -0
  887. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuFilter.vue +11 -3
  888. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuRoot.vue +11 -0
  889. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuSort.vue +98 -4
  890. package/frontend-vue/layers/dms-ui/app/build/components/table/MenuViewMode.vue +37 -16
  891. package/frontend-vue/layers/dms-ui/app/build/components/table/MonoCell.vue +47 -0
  892. package/frontend-vue/layers/dms-ui/app/build/components/table/Pagination.vue +251 -36
  893. package/frontend-vue/layers/dms-ui/app/build/components/table/RowSelection.vue +210 -32
  894. package/frontend-vue/layers/dms-ui/app/build/components/table/Table.vue +999 -176
  895. package/frontend-vue/layers/dms-ui/app/build/components/table/Tabs.vue +157 -22
  896. package/frontend-vue/layers/dms-ui/app/build/components/table/Views.vue +286 -0
  897. package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardGridSkeleton.vue +61 -0
  898. package/frontend-vue/layers/dms-ui/app/build/components/table-view/CardsDisplay.vue +186 -0
  899. package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +147 -0
  900. package/frontend-vue/layers/dms-ui/app/build/components/table-view/IdentityCell.vue +126 -0
  901. package/frontend-vue/layers/dms-ui/app/build/composables/actions/bulkSelection.ts +67 -0
  902. package/frontend-vue/layers/dms-ui/app/build/composables/actions/rowNavigation.ts +85 -0
  903. package/frontend-vue/layers/dms-ui/app/build/composables/actions/useActionTargets.ts +452 -0
  904. package/frontend-vue/layers/dms-ui/app/build/composables/blocks/registerBlockFunctions.ts +7 -0
  905. package/frontend-vue/layers/dms-ui/app/build/composables/blocks/useBlockItems.ts +75 -0
  906. package/frontend-vue/layers/dms-ui/app/build/composables/chart/apexTheme.ts +168 -0
  907. package/frontend-vue/layers/dms-ui/app/build/composables/chart/sparklinePath.ts +81 -0
  908. package/frontend-vue/layers/dms-ui/app/build/composables/clipboard/useCopyFeedback.ts +49 -0
  909. package/frontend-vue/layers/dms-ui/app/build/composables/confirm/actionError.ts +142 -0
  910. package/frontend-vue/layers/dms-ui/app/build/composables/confirm/confirmDialogTexts.ts +66 -0
  911. package/frontend-vue/layers/dms-ui/app/build/composables/confirm/useActionConfirm.ts +102 -0
  912. package/frontend-vue/layers/dms-ui/app/build/composables/containers/context.ts +16 -0
  913. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/cellHelpers.ts +39 -0
  914. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/metricCells.ts +265 -0
  915. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerDefaults.ts +339 -93
  916. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerFieldTypes.ts +64 -0
  917. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationValue.ts +66 -0
  918. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts +122 -0
  919. package/frontend-vue/layers/dms-ui/app/build/composables/form/formEntryContext.ts +55 -0
  920. package/frontend-vue/layers/dms-ui/app/build/composables/form/formFooter.ts +110 -0
  921. package/frontend-vue/layers/dms-ui/app/build/composables/form/formLayout.ts +91 -0
  922. package/frontend-vue/layers/dms-ui/app/build/composables/form/formSections.ts +110 -0
  923. package/frontend-vue/layers/dms-ui/app/build/composables/form/formValidation.ts +180 -0
  924. package/frontend-vue/layers/dms-ui/app/build/composables/form/keyValueRows.ts +64 -0
  925. package/frontend-vue/layers/dms-ui/app/build/composables/form/tagValues.ts +43 -0
  926. package/frontend-vue/layers/dms-ui/app/build/composables/form/useControlError.ts +34 -0
  927. package/frontend-vue/layers/dms-ui/app/build/composables/form/useInstantForm.ts +125 -0
  928. package/frontend-vue/layers/dms-ui/app/build/composables/global/searchShortcuts.ts +61 -0
  929. package/frontend-vue/layers/dms-ui/app/build/composables/global/shortcuts.ts +31 -0
  930. package/frontend-vue/layers/dms-ui/app/build/composables/instant-save/useInstantSave.ts +260 -0
  931. package/frontend-vue/layers/dms-ui/app/build/composables/navigation/useNavBadges.ts +24 -0
  932. package/frontend-vue/layers/dms-ui/app/build/composables/period/periodDisplay.ts +154 -0
  933. package/frontend-vue/layers/dms-ui/app/build/composables/period/usePeriodDraft.ts +127 -0
  934. package/frontend-vue/layers/dms-ui/app/build/composables/shortcuts/useShortcutRegistry.ts +18 -0
  935. package/frontend-vue/layers/dms-ui/app/build/composables/table/constants.ts +7 -1
  936. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTable.ts +27 -10
  937. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableColumns.ts +437 -72
  938. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableConfigClipboard.ts +8 -1
  939. package/frontend-vue/layers/dms-ui/app/build/composables/table/useTableStates.ts +0 -7
  940. package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/clearTableFilters.ts +80 -0
  941. package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/columnOrder.ts +34 -0
  942. package/frontend-vue/layers/dms-ui/app/build/composables/table/utils/pageSizeOptions.ts +18 -0
  943. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/displayRegistry.ts +30 -0
  944. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/registerDefaultFunctions.ts +1 -1
  945. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useAccumulatedPages.ts +46 -0
  946. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useExpandedRowDetails.ts +56 -0
  947. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +125 -0
  948. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useServerRenderedAsyncData.ts +23 -0
  949. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableFooter.ts +119 -0
  950. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableReorder.ts +77 -0
  951. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableRows.ts +175 -0
  952. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViewConfig.ts +11 -5
  953. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViewRowActions.ts +322 -344
  954. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableViews.ts +266 -0
  955. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/bulkActions.ts +152 -0
  956. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/card.ts +75 -0
  957. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/chrome.ts +70 -0
  958. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/expandedRowProps.ts +24 -0
  959. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/expandedRows.ts +51 -0
  960. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/formTexts.ts +127 -0
  961. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +180 -0
  962. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/quickFilters.ts +178 -0
  963. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/recordLink.ts +32 -0
  964. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/reorder.ts +68 -0
  965. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/sortableColumns.ts +189 -0
  966. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +1 -1
  967. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/views.ts +202 -0
  968. package/frontend-vue/layers/dms-ui/app/build/composables/unsaved-changes/formValue.ts +97 -0
  969. package/frontend-vue/layers/dms-ui/app/build/composables/unsaved-changes/registry.ts +216 -0
  970. package/frontend-vue/layers/dms-ui/app/build/types/tree.ts +1 -0
  971. package/frontend-vue/layers/dms-ui/app/build/utils/accessibilityPreferences.ts +138 -0
  972. package/frontend-vue/layers/dms-ui/app/build/utils/codeCells.ts +12 -0
  973. package/frontend-vue/layers/dms-ui/app/build/utils/codeEditor.ts +304 -0
  974. package/frontend-vue/layers/dms-ui/app/build/utils/dispatchQuickActionTarget.ts +74 -0
  975. package/frontend-vue/layers/dms-ui/app/build/utils/eyebrow.ts +7 -0
  976. package/frontend-vue/layers/dms-ui/app/build/utils/fieldOptionsI18n.ts +60 -0
  977. package/frontend-vue/layers/dms-ui/app/build/utils/fieldTrigger.ts +46 -0
  978. package/frontend-vue/layers/dms-ui/app/build/utils/link.ts +33 -0
  979. package/frontend-vue/layers/dms-ui/app/build/utils/literalText.ts +21 -0
  980. package/frontend-vue/layers/dms-ui/app/build/utils/monoChip.ts +13 -0
  981. package/frontend-vue/layers/dms-ui/app/build/utils/permissionPreview.ts +6 -0
  982. package/frontend-vue/layers/dms-ui/app/build/utils/quickActionTargets.ts +54 -0
  983. package/frontend-vue/layers/dms-ui/app/build/utils/relativeDate.ts +67 -0
  984. package/frontend-vue/layers/dms-ui/app/build/utils/selectionScope.ts +20 -0
  985. package/frontend-vue/layers/dms-ui/app/build/utils/textLink.ts +7 -0
  986. package/frontend-vue/layers/dms-ui/app/build/utils/tileRow.ts +10 -0
  987. package/frontend-vue/layers/dms-ui/app/build/utils/tone.ts +74 -0
  988. package/frontend-vue/layers/dms-ui/app/build/utils/urlVariables.ts +63 -0
  989. package/frontend-vue/layers/dms-ui/app/components/RecursiveComponent.vue +106 -37
  990. package/frontend-vue/layers/dms-ui/app/components/activity/ActivityItem.vue +80 -54
  991. package/frontend-vue/layers/dms-ui/app/components/activity-feed/ActivityFeed.vue +251 -0
  992. package/frontend-vue/layers/dms-ui/app/components/banner/Banner.vue +100 -57
  993. package/frontend-vue/layers/dms-ui/app/components/blocks/BannerBlock.vue +117 -0
  994. package/frontend-vue/layers/dms-ui/app/components/blocks/CardBlock.vue +99 -0
  995. package/frontend-vue/layers/dms-ui/app/components/blocks/EmptyStateBlock.vue +69 -0
  996. package/frontend-vue/layers/dms-ui/app/components/blocks/KeyValueListBlock.vue +114 -0
  997. package/frontend-vue/layers/dms-ui/app/components/blocks/NavCardGridBlock.vue +200 -0
  998. package/frontend-vue/layers/dms-ui/app/components/blocks/StatGroupBlock.vue +93 -0
  999. package/frontend-vue/layers/dms-ui/app/components/card/Card.vue +82 -3
  1000. package/frontend-vue/layers/dms-ui/app/components/card/NavCard.vue +94 -28
  1001. package/frontend-vue/layers/dms-ui/app/components/chart/ApexChartHost.vue +149 -10
  1002. package/frontend-vue/layers/dms-ui/app/components/chart/Chart.vue +77 -24
  1003. package/frontend-vue/layers/dms-ui/app/components/chart/ChartCard.vue +63 -25
  1004. package/frontend-vue/layers/dms-ui/app/components/chart/internal/Sparkline.vue +98 -81
  1005. package/frontend-vue/layers/dms-ui/app/components/chart/internal/TrendBadge.vue +67 -26
  1006. package/frontend-vue/layers/dms-ui/app/components/check-list/CheckList.vue +228 -0
  1007. package/frontend-vue/layers/dms-ui/app/components/check-list/PasswordRules.vue +140 -0
  1008. package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +446 -13
  1009. package/frontend-vue/layers/dms-ui/app/components/copy/CopyButton.vue +5 -5
  1010. package/frontend-vue/layers/dms-ui/app/components/empty-state/EmptyState.vue +139 -0
  1011. package/frontend-vue/layers/dms-ui/app/components/field-error/FieldError.vue +31 -0
  1012. package/frontend-vue/layers/dms-ui/app/components/field-row/FieldRow.vue +156 -0
  1013. package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +8 -0
  1014. package/frontend-vue/layers/dms-ui/app/components/form/Form.vue +652 -274
  1015. package/frontend-vue/layers/dms-ui/app/components/form/LocalizedField.vue +114 -37
  1016. package/frontend-vue/layers/dms-ui/app/components/form/components/BooleanCard.vue +55 -0
  1017. package/frontend-vue/layers/dms-ui/app/components/form/components/Calendar.vue +59 -7
  1018. package/frontend-vue/layers/dms-ui/app/components/form/components/Cascader.vue +32 -4
  1019. package/frontend-vue/layers/dms-ui/app/components/form/components/Checkbox.vue +9 -1
  1020. package/frontend-vue/layers/dms-ui/app/components/form/components/ChoiceCards.vue +64 -0
  1021. package/frontend-vue/layers/dms-ui/app/components/form/components/CopyableText.vue +26 -0
  1022. package/frontend-vue/layers/dms-ui/app/components/form/components/DatePicker.vue +140 -12
  1023. package/frontend-vue/layers/dms-ui/app/components/form/components/DatePickerRange.vue +17 -0
  1024. package/frontend-vue/layers/dms-ui/app/components/form/components/File.vue +35 -21
  1025. package/frontend-vue/layers/dms-ui/app/components/form/components/Image.vue +86 -38
  1026. package/frontend-vue/layers/dms-ui/app/components/form/components/InputAddress.vue +113 -1
  1027. package/frontend-vue/layers/dms-ui/app/components/form/components/InputCode.vue +196 -0
  1028. package/frontend-vue/layers/dms-ui/app/components/form/components/InputColor.vue +37 -7
  1029. package/frontend-vue/layers/dms-ui/app/components/form/components/InputNumber.vue +27 -5
  1030. package/frontend-vue/layers/dms-ui/app/components/form/components/InputPassword.vue +21 -39
  1031. package/frontend-vue/layers/dms-ui/app/components/form/components/InputPercentage.vue +16 -8
  1032. package/frontend-vue/layers/dms-ui/app/components/form/components/InputSecret.vue +107 -0
  1033. package/frontend-vue/layers/dms-ui/app/components/form/components/InputTags.vue +132 -0
  1034. package/frontend-vue/layers/dms-ui/app/components/form/components/InputTime.vue +16 -4
  1035. package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +85 -0
  1036. package/frontend-vue/layers/dms-ui/app/components/form/components/Relation.vue +21 -2
  1037. package/frontend-vue/layers/dms-ui/app/components/form/components/Repeater.vue +258 -0
  1038. package/frontend-vue/layers/dms-ui/app/components/form/components/RichText.vue +66 -15
  1039. package/frontend-vue/layers/dms-ui/app/components/form/components/SegmentedSelect.vue +49 -0
  1040. package/frontend-vue/layers/dms-ui/app/components/form/components/Select.vue +2 -0
  1041. package/frontend-vue/layers/dms-ui/app/components/grid/Grid.vue +47 -10
  1042. package/frontend-vue/layers/dms-ui/app/components/grid/GridRow.vue +42 -15
  1043. package/frontend-vue/layers/dms-ui/app/components/grid/columns.ts +84 -0
  1044. package/frontend-vue/layers/dms-ui/app/components/grid/constants.ts +16 -0
  1045. package/frontend-vue/layers/dms-ui/app/components/icon-well/IconWell.vue +84 -0
  1046. package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +223 -0
  1047. package/frontend-vue/layers/dms-ui/app/components/kpi/KpiCard.vue +185 -64
  1048. package/frontend-vue/layers/dms-ui/app/components/link/AutoLink.vue +33 -0
  1049. package/frontend-vue/layers/dms-ui/app/components/list-row/ListRow.vue +301 -0
  1050. package/frontend-vue/layers/dms-ui/app/components/master-detail/MasterDetail.vue +3 -1
  1051. package/frontend-vue/layers/dms-ui/app/components/meter/Meter.vue +241 -0
  1052. package/frontend-vue/layers/dms-ui/app/components/meter/MeterBlock.vue +183 -0
  1053. package/frontend-vue/layers/dms-ui/app/components/period/PeriodSelector.vue +520 -166
  1054. package/frontend-vue/layers/dms-ui/app/components/record-card/RecordCard.vue +170 -0
  1055. package/frontend-vue/layers/dms-ui/app/components/save-bar/InstantSaveBadge.vue +54 -0
  1056. package/frontend-vue/layers/dms-ui/app/components/save-bar/SaveBar.vue +167 -0
  1057. package/frontend-vue/layers/dms-ui/app/components/save-bar/SaveStatus.vue +69 -0
  1058. package/frontend-vue/layers/dms-ui/app/components/section/Section.vue +96 -0
  1059. package/frontend-vue/layers/dms-ui/app/components/section-header/Eyebrow.vue +68 -0
  1060. package/frontend-vue/layers/dms-ui/app/components/section-header/SectionHeader.vue +121 -0
  1061. package/frontend-vue/layers/dms-ui/app/components/segmented/Segmented.vue +142 -33
  1062. package/frontend-vue/layers/dms-ui/app/components/stat-group/StatGroup.vue +186 -0
  1063. package/frontend-vue/layers/dms-ui/app/components/status/StatusSummary.vue +145 -43
  1064. package/frontend-vue/layers/dms-ui/app/components/status-pill/StatusPill.vue +167 -0
  1065. package/frontend-vue/layers/dms-ui/app/components/tab/Tab.vue +81 -6
  1066. package/frontend-vue/layers/dms-ui/app/components/table-view/FilePreview.vue +1 -1
  1067. package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanBoard.vue +165 -34
  1068. package/frontend-vue/layers/dms-ui/app/components/table-view/KanbanDisplay.vue +9 -12
  1069. package/frontend-vue/layers/dms-ui/app/components/table-view/TableView.vue +990 -110
  1070. package/frontend-vue/layers/dms-ui/app/components/top-list/TopListCard.vue +159 -70
  1071. package/frontend-vue/layers/dms-ui/app/components/top-list/internal/TopListRow.vue +53 -19
  1072. package/frontend-vue/layers/dms-ui/app/composables/chart/apexPlotOptions.ts +37 -6
  1073. package/frontend-vue/layers/dms-ui/app/composables/chart/apexTypeConfigs.ts +4 -3
  1074. package/frontend-vue/layers/dms-ui/app/composables/chart/resolveSparklineAccent.ts +6 -3
  1075. package/frontend-vue/layers/dms-ui/app/composables/chart/useApexChart.ts +157 -113
  1076. package/frontend-vue/layers/dms-ui/app/composables/chart/useChartFetch.ts +131 -30
  1077. package/frontend-vue/layers/dms-ui/app/composables/chart/useChartTheme.ts +58 -9
  1078. package/frontend-vue/layers/dms-ui/app/composables/confirm/index.ts +1 -0
  1079. package/frontend-vue/layers/dms-ui/app/composables/confirm/types.ts +102 -0
  1080. package/frontend-vue/layers/dms-ui/app/composables/confirm/useConfirm.ts +6 -8
  1081. package/frontend-vue/layers/dms-ui/app/composables/containers/openDynamicContainer.ts +1 -0
  1082. package/frontend-vue/layers/dms-ui/app/composables/containers/types.ts +30 -1
  1083. package/frontend-vue/layers/dms-ui/app/composables/form/types/api.ts +1 -1
  1084. package/frontend-vue/layers/dms-ui/app/composables/form/types/field.ts +34 -0
  1085. package/frontend-vue/layers/dms-ui/app/composables/form/types/props.ts +34 -3
  1086. package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +413 -147
  1087. package/frontend-vue/layers/dms-ui/app/composables/global/keyboardPlatform.ts +125 -0
  1088. package/frontend-vue/layers/dms-ui/app/composables/resolveDmsComponent.ts +14 -17
  1089. package/frontend-vue/layers/dms-ui/app/composables/tab/types/props.ts +8 -0
  1090. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/action-target.ts +6 -10
  1091. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/column.ts +14 -0
  1092. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +216 -4
  1093. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/custom-button.ts +8 -0
  1094. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/display.ts +94 -3
  1095. package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableDataChanges.ts +41 -0
  1096. package/frontend-vue/layers/dms-ui/app/composables/table-view/useTableViewDisplays.ts +42 -27
  1097. package/frontend-vue/layers/dms-ui/app/composables/unsaved-changes/index.ts +2 -0
  1098. package/frontend-vue/layers/dms-ui/app/composables/unsaved-changes/useFormDirty.ts +54 -0
  1099. package/frontend-vue/layers/dms-ui/app/composables/unsaved-changes/useUnsavedChanges.ts +120 -0
  1100. package/frontend-vue/layers/dms-ui/app/composables/usePasswordStrength.ts +12 -6
  1101. package/frontend-vue/layers/dms-ui/app/config/shortcuts-registry.ts +5 -5
  1102. package/frontend-vue/layers/dms-ui/app/plugins/register.ts +2 -0
  1103. package/frontend-vue/layers/dms-ui/app/plugins/shortcuts.ts +2 -0
  1104. package/frontend-vue/layers/dms-ui/app/plugins/table-view-displays.ts +55 -0
  1105. package/frontend-vue/layers/dms-ui/app/types/modal.ts +3 -1
  1106. package/frontend-vue/layers/dms-ui/app/types/row-action.ts +27 -0
  1107. package/frontend-vue/layers/dms-ui/app/types/tone.ts +13 -0
  1108. package/frontend-vue/layers/dms-ui/app/utils/blockRefresh.ts +28 -0
  1109. package/frontend-vue/layers/dms-ui/app/utils/semanticTint.ts +1 -1
  1110. package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +330 -86
  1111. package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +326 -82
  1112. package/frontend-vue/package.json +14 -3
  1113. package/frontend-vue/pnpm-lock.yaml +284 -492
  1114. package/frontend-vue/tests/accessibility-preferences.test.ts +320 -0
  1115. package/frontend-vue/tests/activity-feed-days.test.ts +125 -0
  1116. package/frontend-vue/tests/block-page-refresh.test.ts +128 -0
  1117. package/frontend-vue/tests/block-route-params.test.ts +190 -0
  1118. package/frontend-vue/tests/category-nav-cards.test.ts +97 -0
  1119. package/frontend-vue/tests/chart-colors.test.ts +1 -1
  1120. package/frontend-vue/tests/chart-series-styles.test.ts +9 -9
  1121. package/frontend-vue/tests/chip-group.test.ts +68 -0
  1122. package/frontend-vue/tests/confirm-action-errors.test.ts +324 -0
  1123. package/frontend-vue/tests/confirm-dialog-fields.test.ts +271 -0
  1124. package/frontend-vue/tests/confirm-typed-text.test.ts +201 -0
  1125. package/frontend-vue/tests/copy-feedback.test.ts +48 -0
  1126. package/frontend-vue/tests/custom-action-confirm-from.test.ts +85 -0
  1127. package/frontend-vue/tests/dev-reload-stream.test.ts +1 -1
  1128. package/frontend-vue/tests/dev-reload.test.ts +2 -2
  1129. package/frontend-vue/tests/error-page-message.test.ts +15 -0
  1130. package/frontend-vue/tests/field-errors.test.ts +212 -0
  1131. package/frontend-vue/tests/field-options-i18n.test.ts +41 -0
  1132. package/frontend-vue/tests/field-row.test.ts +101 -0
  1133. package/frontend-vue/tests/file-unavailable.test.ts +7 -1
  1134. package/frontend-vue/tests/form-action-reset.test.ts +106 -0
  1135. package/frontend-vue/tests/form-actions.test.ts +6 -7
  1136. package/frontend-vue/tests/form-control-error-state.test.ts +164 -0
  1137. package/frontend-vue/tests/form-footer-kind.test.ts +96 -0
  1138. package/frontend-vue/tests/form-reload-on-reopen.test.ts +20 -0
  1139. package/frontend-vue/tests/form-required-fields.test.ts +16 -0
  1140. package/frontend-vue/tests/form-required-validation.test.ts +407 -0
  1141. package/frontend-vue/tests/form-sections.test.ts +94 -0
  1142. package/frontend-vue/tests/form-server-field-errors.test.ts +187 -0
  1143. package/frontend-vue/tests/form-submit-clear.test.ts +406 -0
  1144. package/frontend-vue/tests/form-submit-only-changed.test.ts +195 -0
  1145. package/frontend-vue/tests/form-validation.test.ts +213 -0
  1146. package/frontend-vue/tests/grid-responsive-columns.test.ts +68 -1
  1147. package/frontend-vue/tests/header-action-press-in-place.test.ts +231 -0
  1148. package/frontend-vue/tests/image-hydration-ids.test.ts +10 -1
  1149. package/frontend-vue/tests/image-reference-preservation.test.ts +18 -2
  1150. package/frontend-vue/tests/input-tags.test.ts +146 -0
  1151. package/frontend-vue/tests/instant-save-badge.test.ts +195 -0
  1152. package/frontend-vue/tests/instant-save.test.ts +217 -0
  1153. package/frontend-vue/tests/key-value-rows.test.ts +52 -0
  1154. package/frontend-vue/tests/keyboard-platform.test.ts +87 -0
  1155. package/frontend-vue/tests/kpi-no-comparison.test.ts +92 -0
  1156. package/frontend-vue/tests/member-role-picker.test.ts +227 -0
  1157. package/frontend-vue/tests/metadata-retry.test.ts +12 -1
  1158. package/frontend-vue/tests/meter-block-load-error.test.ts +70 -0
  1159. package/frontend-vue/tests/module-store-catalog.test.ts +152 -0
  1160. package/frontend-vue/tests/modules-catalog.test.ts +152 -0
  1161. package/frontend-vue/tests/notification-inbox-display.test.ts +169 -0
  1162. package/frontend-vue/tests/notification-popover-errors.test.ts +136 -17
  1163. package/frontend-vue/tests/onboarding-register.test.ts +71 -44
  1164. package/frontend-vue/tests/otp-input.test.ts +97 -0
  1165. package/frontend-vue/tests/page-fill-height.test.ts +82 -16
  1166. package/frontend-vue/tests/password-input.test.ts +122 -0
  1167. package/frontend-vue/tests/period-draft.test.ts +120 -0
  1168. package/frontend-vue/tests/period-presets.test.ts +12 -0
  1169. package/frontend-vue/tests/period-scope-first-fetch.test.ts +93 -8
  1170. package/frontend-vue/tests/permission-preview-partial.test.ts +301 -0
  1171. package/frontend-vue/tests/permission-preview-session.test.ts +69 -0
  1172. package/frontend-vue/tests/permission-preview.test.ts +196 -0
  1173. package/frontend-vue/tests/permission-veil-stable-content.test.ts +191 -0
  1174. package/frontend-vue/tests/profile-preferences-summary.test.ts +510 -0
  1175. package/frontend-vue/tests/quick-actions.test.ts +2 -2
  1176. package/frontend-vue/tests/record-card.test.ts +73 -0
  1177. package/frontend-vue/tests/regional-format.test.ts +67 -0
  1178. package/frontend-vue/tests/regional-preferences.test.ts +209 -0
  1179. package/frontend-vue/tests/relation-value.test.ts +39 -0
  1180. package/frontend-vue/tests/resolve-dms-component.test.ts +47 -0
  1181. package/frontend-vue/tests/response-warning-toast.test.ts +1 -1
  1182. package/frontend-vue/tests/revealed-backup-codes.test.ts +58 -0
  1183. package/frontend-vue/tests/role-permission-tree.test.ts +470 -0
  1184. package/frontend-vue/tests/role-permissions.test.ts +539 -0
  1185. package/frontend-vue/tests/roles-name-errors.test.ts +295 -0
  1186. package/frontend-vue/tests/save-bar.test.ts +106 -0
  1187. package/frontend-vue/tests/save-status-error.test.ts +66 -0
  1188. package/frontend-vue/tests/search-input.test.ts +91 -0
  1189. package/frontend-vue/tests/section-description-only.test.ts +33 -0
  1190. package/frontend-vue/tests/security-email-panel.test.ts +378 -0
  1191. package/frontend-vue/tests/security-password-modal.test.ts +128 -0
  1192. package/frontend-vue/tests/security-password-panel.test.ts +267 -0
  1193. package/frontend-vue/tests/security-sessions-load-error.test.ts +123 -0
  1194. package/frontend-vue/tests/security-status-load-error.test.ts +106 -0
  1195. package/frontend-vue/tests/selection-scope.test.ts +24 -0
  1196. package/frontend-vue/tests/session-handoff.test.ts +60 -0
  1197. package/frontend-vue/tests/settings-navigation.test.ts +170 -0
  1198. package/frontend-vue/tests/settings-search-shortcuts.test.ts +191 -0
  1199. package/frontend-vue/tests/shortcuts-aggregate.test.ts +12 -5
  1200. package/frontend-vue/tests/sidebar-footer-navigation.test.ts +10 -0
  1201. package/frontend-vue/tests/sidebar-search-hint.test.ts +191 -0
  1202. package/frontend-vue/tests/signup-invitation-link.test.ts +6 -2
  1203. package/frontend-vue/tests/stat-cell-shared.test.ts +64 -0
  1204. package/frontend-vue/tests/tab-slot-spacing.test.ts +1 -1
  1205. package/frontend-vue/tests/table-actions-column-width.test.ts +85 -0
  1206. package/frontend-vue/tests/table-cell-wrap.test.ts +8 -3
  1207. package/frontend-vue/tests/table-clear-filters.test.ts +254 -0
  1208. package/frontend-vue/tests/table-density-menu.test.ts +128 -0
  1209. package/frontend-vue/tests/table-header-placement.test.ts +21 -0
  1210. package/frontend-vue/tests/table-metric-cells.test.ts +139 -0
  1211. package/frontend-vue/tests/table-page-size-options.test.ts +20 -0
  1212. package/frontend-vue/tests/table-row-action-errors.test.ts +360 -0
  1213. package/frontend-vue/tests/table-row-hover.test.ts +6 -1
  1214. package/frontend-vue/tests/table-scroll-area.test.ts +43 -0
  1215. package/frontend-vue/tests/table-view-bulk-actions.test.ts +154 -0
  1216. package/frontend-vue/tests/table-view-bulk-drawer.test.ts +311 -0
  1217. package/frontend-vue/tests/table-view-card-props.test.ts +226 -0
  1218. package/frontend-vue/tests/table-view-chrome.test.ts +175 -0
  1219. package/frontend-vue/tests/table-view-display-registry.test.ts +59 -0
  1220. package/frontend-vue/tests/table-view-expanded-band.test.ts +143 -0
  1221. package/frontend-vue/tests/table-view-expanded-row-details.test.ts +88 -0
  1222. package/frontend-vue/tests/table-view-expanded-rows.test.ts +55 -0
  1223. package/frontend-vue/tests/table-view-form-texts.test.ts +124 -0
  1224. package/frontend-vue/tests/table-view-grouped.test.ts +277 -0
  1225. package/frontend-vue/tests/table-view-pagination-modes.test.ts +48 -0
  1226. package/frontend-vue/tests/table-view-reorder.test.ts +122 -0
  1227. package/frontend-vue/tests/table-view-selection-footer-empty.test.ts +379 -0
  1228. package/frontend-vue/tests/table-view-sortable-columns.test.ts +293 -0
  1229. package/frontend-vue/tests/table-view-sources.test.ts +115 -0
  1230. package/frontend-vue/tests/table-view-views.test.ts +540 -0
  1231. package/frontend-vue/tests/tag-values.test.ts +32 -0
  1232. package/frontend-vue/tests/time-span.test.ts +37 -0
  1233. package/frontend-vue/tests/tone.test.ts +45 -0
  1234. package/frontend-vue/tests/unsaved-changes.test.ts +184 -0
  1235. package/frontend-vue/tests/url-interpolation.test.ts +40 -0
  1236. package/frontend-vue/tests/vue-inventory.test.ts +24 -9
  1237. package/frontend-vue/vitest.config.ts +6 -0
  1238. package/package.json +8 -5
  1239. package/skills/dms/REFERENCE.md +1 -1
  1240. package/skills/dms/SKILL.md +4 -1
  1241. package/skills/dms-auth/SKILL.md +2 -1
  1242. package/skills/dms-module/SKILL.md +1 -1
  1243. package/skills/dms-pages/REFERENCE.md +3 -3
  1244. package/skills/dms-pages/SKILL.md +5 -4
  1245. package/frontend-vue/antelope.config.json +0 -5
  1246. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationsList.vue +0 -226
  1247. package/frontend-vue/layers/dms-layout/app/components/profile/ProfileLanguage.vue +0 -51
  1248. package/frontend-vue/layers/dms-layout/app/components/profile/ProfileSessions.vue +0 -321
  1249. package/frontend-vue/layers/dms-layout/app/components/profile/ProfileTwoFactor.vue +0 -501
  1250. package/frontend-vue/layers/dms-layout/app/custom-pages/settings/appearance.vue +0 -174
  1251. package/frontend-vue/layers/dms-layout/app/custom-pages/settings/index.vue +0 -164
  1252. package/frontend-vue/layers/dms-layout/app/custom-pages/settings/notifications.vue +0 -15
  1253. package/frontend-vue/layers/dms-layout/app/plugins/language-sync.ts +0 -10
  1254. package/frontend-vue/layers/dms-ui/app/build/components/form/PermissionsTreeNode.vue +0 -148
  1255. package/frontend-vue/layers/dms-ui/app/components/form/components/InputTree.vue +0 -98
  1256. package/frontend-vue/layers/dms-ui/app/components/form/components/PermissionsTree.vue +0 -133
  1257. package/frontend-vue/layers/dms-ui/app/components/tree/Tree.vue +0 -196
  1258. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/index.ts +0 -65
  1259. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeArrowDown.ts +0 -11
  1260. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeArrowUp.ts +0 -11
  1261. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeEnd.ts +0 -11
  1262. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeEnter.ts +0 -11
  1263. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeEscape.ts +0 -35
  1264. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeHome.ts +0 -11
  1265. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeShiftA.ts +0 -32
  1266. package/frontend-vue/layers/dms-ui/app/composables/tree/shortcuts/treeSpace.ts +0 -11
  1267. package/frontend-vue/layers/dms-ui/app/composables/tree/types/events.ts +0 -8
  1268. package/frontend-vue/layers/dms-ui/app/composables/tree/types/index.ts +0 -4
  1269. package/frontend-vue/layers/dms-ui/app/composables/tree/types/navigation.ts +0 -7
  1270. package/frontend-vue/layers/dms-ui/app/composables/tree/types/node.ts +0 -12
  1271. package/frontend-vue/layers/dms-ui/app/composables/tree/types/props.ts +0 -34
  1272. package/frontend-vue/layers/dms-ui/app/composables/tree/useTree.ts +0 -334
  1273. package/frontend-vue/layers/dms-ui/app/plugins/table-view-displays.client.ts +0 -31
  1274. package/frontend-vue/tests/tree-escape-shortcut.test.ts +0 -138
  1275. package/frontend-vue/tests/tree-without-source.test.ts +0 -79
  1276. /package/frontend-vue/layers/dms-layout/app/{utils → build/utils}/dev-reload-stream.ts +0 -0
  1277. /package/frontend-vue/layers/dms-ui/app/{utils → build/utils}/responseWarning.ts +0 -0
@@ -0,0 +1,255 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const chai_1 = require("chai");
4
+ const account_data_1 = require("../../../../pages/settings/users/account-data");
5
+ const account_data_store_1 = require("../../../../pages/settings/users/account-data-store");
6
+ const USER_ID = "account-data-user";
7
+ const PASSWORD_HASH = "$2b$10$secret-password-hash";
8
+ const TOTP_SECRET = "JBSWY3DPEHPK3PXP-totp-secret";
9
+ const PENDING_SECRET = "pending-totp-secret";
10
+ const BACKUP_CODE_HASH = "backup-code-hash-1";
11
+ const EMAIL_CODE = "482913";
12
+ const AUTH_KEY = "auth-key-secret";
13
+ const VALIDATION_TOKEN = "validation-token-secret";
14
+ const RESET_TOKEN = "forgot-password-token-secret";
15
+ const REFRESH_TOKEN = "refresh-token-secret";
16
+ const REFRESH_HASH = "refresh-token-hash-secret";
17
+ const SEALED_REFRESH = "sealed-refresh-secret";
18
+ const INVITE_TOKEN = "invite-token-secret";
19
+ const PROVIDER_ACCOUNT = "provider-account-id-123";
20
+ const EXPORTED_AT = new Date("2026-10-01T12:00:00Z");
21
+ const SECRETS = [
22
+ PASSWORD_HASH,
23
+ TOTP_SECRET,
24
+ PENDING_SECRET,
25
+ BACKUP_CODE_HASH,
26
+ EMAIL_CODE,
27
+ AUTH_KEY,
28
+ VALIDATION_TOKEN,
29
+ RESET_TOKEN,
30
+ REFRESH_TOKEN,
31
+ REFRESH_HASH,
32
+ SEALED_REFRESH,
33
+ INVITE_TOKEN,
34
+ ];
35
+ function storedUser() {
36
+ return {
37
+ _id: USER_ID,
38
+ createdAt: new Date("2025-03-12T09:00:00Z"),
39
+ updatedAt: new Date("2026-09-30T09:00:00Z"),
40
+ email: "camille@acme.dev",
41
+ name: "Camille Laurent",
42
+ avatar: { key: "avatars/camille.webp" },
43
+ language: "fr",
44
+ timeZone: "Europe/Brussels",
45
+ weekStart: 1,
46
+ timeFormat: "h23",
47
+ dateFormat: null,
48
+ password: PASSWORD_HASH,
49
+ passwordChangedAt: new Date("2026-01-01T00:00:00Z"),
50
+ authKey: AUTH_KEY,
51
+ isValidated: true,
52
+ validationToken: VALIDATION_TOKEN,
53
+ validationRequestedAt: null,
54
+ forgotPasswordToken: RESET_TOKEN,
55
+ forgotPasswordRequestedAt: null,
56
+ owner: false,
57
+ lastActiveAt: new Date("2026-09-30T10:00:00Z"),
58
+ twoFactorMethods: ["totp"],
59
+ twoFactorSecret: TOTP_SECRET,
60
+ twoFactorPendingSecret: PENDING_SECRET,
61
+ twoFactorBackupCodes: [BACKUP_CODE_HASH],
62
+ twoFactorBackupCodesGeneratedAt: null,
63
+ twoFactorBackupCodesSavedAt: null,
64
+ twoFactorEmailCode: EMAIL_CODE,
65
+ twoFactorEmailCodeRequestedAt: null,
66
+ };
67
+ }
68
+ function membership(overrides) {
69
+ return {
70
+ tenantId: "acme",
71
+ tenantName: "Acme",
72
+ roleNames: ["Editor"],
73
+ otherOwners: 0,
74
+ ...overrides,
75
+ member: {
76
+ _id: `acme:${USER_ID}`,
77
+ userId: USER_ID,
78
+ roleIds: ["editor"],
79
+ isTenantOwner: overrides.isTenantOwner ?? false,
80
+ joinedAt: new Date("2025-03-12T09:00:00Z"),
81
+ invitedBy: "someone",
82
+ },
83
+ };
84
+ }
85
+ function exportOf(user) {
86
+ return (0, account_data_1.buildAccountExport)({
87
+ user,
88
+ notificationPreferences: { "security.sign_in": true },
89
+ memberships: [membership({ isTenantOwner: true, otherOwners: 2 })],
90
+ notifications: [
91
+ {
92
+ _id: "n1",
93
+ userId: USER_ID,
94
+ icon: "i-ph-bell",
95
+ title: "New sign-in",
96
+ description: "Chrome on Windows",
97
+ linkTo: null,
98
+ params: null,
99
+ tone: null,
100
+ isRead: false,
101
+ categoryId: "security",
102
+ subjectId: "sign_in",
103
+ groupId: null,
104
+ createdAt: EXPORTED_AT,
105
+ updatedAt: EXPORTED_AT,
106
+ },
107
+ ],
108
+ sessions: [
109
+ {
110
+ _id: "s1",
111
+ userId: USER_ID,
112
+ refreshToken: REFRESH_TOKEN,
113
+ refreshTokenHash: REFRESH_HASH,
114
+ sealedRefreshToken: SEALED_REFRESH,
115
+ previousRefreshTokenHash: REFRESH_HASH,
116
+ userAgent: "Mozilla/5.0",
117
+ ip: "127.0.0.1",
118
+ browser: "Chrome",
119
+ os: "Windows",
120
+ deviceType: "desktop",
121
+ location: "",
122
+ createdAt: EXPORTED_AT,
123
+ lastActiveAt: EXPORTED_AT,
124
+ },
125
+ ],
126
+ identities: [
127
+ {
128
+ _id: "i1",
129
+ userId: USER_ID,
130
+ provider: "google",
131
+ providerAccountId: PROVIDER_ACCOUNT,
132
+ email: "camille@gmail.com",
133
+ createdAt: EXPORTED_AT,
134
+ lastLoginAt: EXPORTED_AT,
135
+ },
136
+ ],
137
+ invitesSent: [
138
+ {
139
+ tenantId: "acme",
140
+ roleNames: ["Viewer"],
141
+ invite: {
142
+ _id: "inv1",
143
+ email: "new@acme.dev",
144
+ firstname: "Noa",
145
+ lastname: null,
146
+ roles_ids: ["viewer"],
147
+ token: INVITE_TOKEN,
148
+ asTenantOwner: false,
149
+ createdAt: EXPORTED_AT,
150
+ expiresAt: new Date("2026-10-08T12:00:00Z"),
151
+ },
152
+ },
153
+ ],
154
+ exportedAt: EXPORTED_AT,
155
+ });
156
+ }
157
+ describe("[unit] account data — the export file", () => {
158
+ it("carries no password, two-factor secret, code or token", () => {
159
+ const serialized = JSON.stringify(exportOf(storedUser()));
160
+ for (const secret of SECRETS) {
161
+ (0, chai_1.expect)(serialized, secret).not.to.contain(secret);
162
+ }
163
+ });
164
+ it("names its format and lists every kind of row", () => {
165
+ const file = exportOf(storedUser());
166
+ (0, chai_1.expect)(file.format).to.equal(account_data_1.ACCOUNT_EXPORT_FORMAT);
167
+ (0, chai_1.expect)(file.profile).to.include({
168
+ id: USER_ID,
169
+ email: "camille@acme.dev",
170
+ hasPassword: true,
171
+ avatar: "avatars/camille.webp",
172
+ });
173
+ (0, chai_1.expect)(file.profile.twoFactorMethods).to.deep.equal(["totp"]);
174
+ (0, chai_1.expect)(file.preferences).to.deep.include({
175
+ language: "fr",
176
+ timeZone: "Europe/Brussels",
177
+ weekStart: 1,
178
+ dateFormat: null,
179
+ });
180
+ (0, chai_1.expect)(file.preferences.notifications).to.deep.equal({
181
+ "security.sign_in": true,
182
+ });
183
+ (0, chai_1.expect)(file.memberships[0]).to.include({
184
+ tenantName: "Acme",
185
+ isTenantOwner: true,
186
+ });
187
+ (0, chai_1.expect)(file.sessions[0]).to.include({ browser: "Chrome", ip: "127.0.0.1" });
188
+ (0, chai_1.expect)(file.externalIdentities[0]).to.deep.equal({
189
+ provider: "google",
190
+ email: "camille@gmail.com",
191
+ linkedAt: EXPORTED_AT,
192
+ lastLoginAt: EXPORTED_AT,
193
+ });
194
+ (0, chai_1.expect)(file.invitesSent[0]).to.include({
195
+ email: "new@acme.dev",
196
+ status: "pending",
197
+ });
198
+ });
199
+ it("exports a field added to the user only once it is picked", () => {
200
+ const user = Object.assign(storedUser(), { apiSecret: "leak-me" });
201
+ (0, chai_1.expect)(JSON.stringify(exportOf(user))).not.to.contain("leak-me");
202
+ });
203
+ });
204
+ describe("[unit] account data — deletion guards", () => {
205
+ const NOT_PLATFORM_OWNER = { isPlatformOwner: false, otherPlatformOwners: 0 };
206
+ it("refuses the last owner of a workspace", () => {
207
+ (0, chai_1.expect)((0, account_data_1.findDeletionBlockers)([membership({ isTenantOwner: true, otherOwners: 0 })], NOT_PLATFORM_OWNER)).to.deep.equal([{ kind: "tenant", tenantId: "acme", tenantName: "Acme" }]);
208
+ });
209
+ it("lets an owner go once another member owns the workspace", () => {
210
+ (0, chai_1.expect)((0, account_data_1.findDeletionBlockers)([
211
+ membership({ isTenantOwner: true, otherOwners: 1 }),
212
+ membership({ tenantId: "beta", isTenantOwner: false }),
213
+ ], NOT_PLATFORM_OWNER)).to.deep.equal([]);
214
+ });
215
+ it("refuses the last platform owner", () => {
216
+ (0, chai_1.expect)((0, account_data_1.findDeletionBlockers)([], {
217
+ isPlatformOwner: true,
218
+ otherPlatformOwners: 0,
219
+ })).to.deep.equal([{ kind: "platform" }]);
220
+ (0, chai_1.expect)((0, account_data_1.findDeletionBlockers)([], {
221
+ isPlatformOwner: true,
222
+ otherPlatformOwners: 1,
223
+ })).to.deep.equal([]);
224
+ });
225
+ it("takes the account's e-mail, in any case, as confirmation", () => {
226
+ const user = storedUser();
227
+ (0, chai_1.expect)((0, account_data_1.isDeletionConfirmed)(user, " Camille@ACME.dev ")).to.equal(true);
228
+ (0, chai_1.expect)((0, account_data_1.isDeletionConfirmed)(user, "camille@acme.io")).to.equal(false);
229
+ });
230
+ });
231
+ describe("[unit] account data — deletion hook", () => {
232
+ it("names the user, their e-mail, the workspaces they left and why", () => {
233
+ const user = { _id: USER_ID, email: "ada@example.com" };
234
+ (0, chai_1.expect)((0, account_data_store_1.selfDeletionPayload)(user, [
235
+ membership({ tenantId: "acme" }),
236
+ membership({ tenantId: "beta" }),
237
+ ])).to.deep.equal({
238
+ userId: USER_ID,
239
+ email: "ada@example.com",
240
+ tenantIds: ["acme", "beta"],
241
+ reason: "self",
242
+ });
243
+ });
244
+ });
245
+ describe("[unit] account data — export throttle", () => {
246
+ const WINDOW_MS = 10_000;
247
+ it("allows one export per user per window", () => {
248
+ const throttle = new account_data_1.AccountExportThrottle(WINDOW_MS);
249
+ (0, chai_1.expect)(throttle.tryAcquire("a", 0)).to.equal(true);
250
+ (0, chai_1.expect)(throttle.tryAcquire("a", WINDOW_MS - 1)).to.equal(false);
251
+ (0, chai_1.expect)(throttle.tryAcquire("b", 1)).to.equal(true);
252
+ (0, chai_1.expect)(throttle.tryAcquire("a", WINDOW_MS)).to.equal(true);
253
+ });
254
+ });
255
+ //# sourceMappingURL=account-data.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-data.test.js","sourceRoot":"","sources":["../../../../../src/test/unit/pages/settings/account-data.test.ts"],"names":[],"mappings":";;AAAA,+BAA8B;AAQ9B,gFAOuD;AACvD,4FAA0F;AAE1F,MAAM,OAAO,GAAG,mBAAmB,CAAC;AACpC,MAAM,aAAa,GAAG,6BAA6B,CAAC;AACpD,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,MAAM,cAAc,GAAG,qBAAqB,CAAC;AAC7C,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAC9C,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC5B,MAAM,QAAQ,GAAG,iBAAiB,CAAC;AACnC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AACnD,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,MAAM,aAAa,GAAG,sBAAsB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AQ,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACnD,IAAA,aAAM,EAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const interface_api_1 = require("@antelopejs/interface-api");
4
+ const chai_1 = require("chai");
5
+ const jsonwebtoken_1 = require("jsonwebtoken");
6
+ const account_credentials_1 = require("../../../../pages/settings/users/account-credentials");
7
+ const email_change_1 = require("../../../../pages/settings/users/email-change");
8
+ const two_factor_operations_1 = require("../../../../pages/settings/users/two-factor-operations");
9
+ const HTTP_BAD_REQUEST = 400;
10
+ const HTTP_CONFLICT = 409;
11
+ const CURRENT_PASSWORD = "Current1!";
12
+ const NEW_PASSWORD = "Antelope26!";
13
+ const WEAK_PASSWORD = "antelope";
14
+ const USER_ID = "account-security-user";
15
+ const OTHER_USER_ID = "account-security-other";
16
+ const OWN_EMAIL = "camille@acme.dev";
17
+ const TAKEN_EMAIL = "taken@acme.dev";
18
+ const FREE_EMAIL = "camille.laurent@acme.dev";
19
+ const CURRENT_SESSION = "session-current";
20
+ const TENANT_ID = "account-security-tenant";
21
+ const ORIGINAL_AUTH_KEY = "original-auth-key";
22
+ const TOKEN_SIGNING_KEY = "account-security-test";
23
+ const BACKUP_CODE_TOTAL = 10;
24
+ const INVALID_CURRENT_PASSWORD = "error.invalid_current_password";
25
+ function buildUser(password) {
26
+ return {
27
+ _id: USER_ID,
28
+ email: OWN_EMAIL,
29
+ password,
30
+ authKey: ORIGINAL_AUTH_KEY,
31
+ createdAt: new Date(0),
32
+ twoFactorMethods: [],
33
+ twoFactorBackupCodes: [],
34
+ testHash: (_field, candidate) => candidate === CURRENT_PASSWORD,
35
+ };
36
+ }
37
+ function session(id, lastActiveAt) {
38
+ return {
39
+ _id: id,
40
+ userId: USER_ID,
41
+ browser: "Chrome",
42
+ os: "macOS",
43
+ ip: "127.0.0.1",
44
+ deviceType: "desktop",
45
+ location: "",
46
+ createdAt: new Date(0),
47
+ lastActiveAt: new Date(lastActiveAt),
48
+ };
49
+ }
50
+ function buildHarness(password = "hashed") {
51
+ const harness = {
52
+ user: buildUser(password),
53
+ sessions: [
54
+ session("session-old", 1),
55
+ session(CURRENT_SESSION, 2),
56
+ session("session-recent", 3),
57
+ ],
58
+ updates: 0,
59
+ refreshTokens: new Map(),
60
+ };
61
+ harness.userModel = {
62
+ get: async () => harness.user,
63
+ getByEmail: async (email) => email === TAKEN_EMAIL
64
+ ? { _id: OTHER_USER_ID }
65
+ : undefined,
66
+ update: async () => {
67
+ harness.updates += 1;
68
+ },
69
+ };
70
+ harness.sessionModel = {
71
+ getByUserId: async () => [...harness.sessions],
72
+ delete: async (id) => {
73
+ harness.sessions = harness.sessions.filter((entry) => entry._id !== id);
74
+ },
75
+ replaceRefreshToken: async (id, token) => {
76
+ harness.refreshTokens.set(id, token);
77
+ },
78
+ };
79
+ return harness;
80
+ }
81
+ const authorization = `Bearer ${(0, jsonwebtoken_1.sign)({ sessionId: CURRENT_SESSION, tenantId: TENANT_ID }, TOKEN_SIGNING_KEY)}`;
82
+ async function refusal(action) {
83
+ const outcome = await action.then(() => undefined, (error) => error);
84
+ if (outcome instanceof interface_api_1.HTTPResult)
85
+ return outcome;
86
+ throw new Error(`Expected an HTTP refusal, got ${String(outcome)}`);
87
+ }
88
+ function passwordChange(harness, body) {
89
+ return (0, account_credentials_1.changePassword)(harness.user, body, {
90
+ userModel: harness.userModel,
91
+ sessionModel: harness.sessionModel,
92
+ authorization,
93
+ });
94
+ }
95
+ describe("[unit] settings/security — password change asks for the current password", () => {
96
+ it("refuses a wrong current password and leaves the account untouched", async () => {
97
+ const harness = buildHarness();
98
+ const result = await refusal(passwordChange(harness, {
99
+ currentPassword: "Wrong1!",
100
+ password: NEW_PASSWORD,
101
+ }));
102
+ (0, chai_1.expect)(result.getStatus()).to.equal(HTTP_BAD_REQUEST);
103
+ (0, chai_1.expect)(result.getBody()).to.equal(INVALID_CURRENT_PASSWORD);
104
+ (0, chai_1.expect)(harness.updates).to.equal(0);
105
+ });
106
+ it("refuses a missing current password", async () => {
107
+ const harness = buildHarness();
108
+ const result = await refusal(passwordChange(harness, { password: NEW_PASSWORD }));
109
+ (0, chai_1.expect)(result.getBody()).to.equal(INVALID_CURRENT_PASSWORD);
110
+ });
111
+ it("enforces the sign-up password rules", async () => {
112
+ const harness = buildHarness();
113
+ const result = await refusal(passwordChange(harness, {
114
+ currentPassword: CURRENT_PASSWORD,
115
+ password: WEAK_PASSWORD,
116
+ }));
117
+ (0, chai_1.expect)(result.getStatus()).to.equal(HTTP_BAD_REQUEST);
118
+ (0, chai_1.expect)(harness.updates).to.equal(0);
119
+ });
120
+ it("changes the password and stamps the change, with the new auth key in one write", async () => {
121
+ const harness = buildHarness();
122
+ await passwordChange(harness, {
123
+ currentPassword: CURRENT_PASSWORD,
124
+ password: NEW_PASSWORD,
125
+ });
126
+ (0, chai_1.expect)(harness.user.password).to.equal(NEW_PASSWORD);
127
+ (0, chai_1.expect)(harness.user.passwordChangedAt).to.be.instanceOf(Date);
128
+ (0, chai_1.expect)(harness.user.authKey).to.not.equal(ORIGINAL_AUTH_KEY);
129
+ (0, chai_1.expect)(harness.updates).to.equal(1);
130
+ });
131
+ it("signs out every other session and hands this one back a way in", async () => {
132
+ const harness = buildHarness();
133
+ const result = await passwordChange(harness, {
134
+ currentPassword: CURRENT_PASSWORD,
135
+ password: NEW_PASSWORD,
136
+ });
137
+ (0, chai_1.expect)(result.signedOutSessions).to.equal(2);
138
+ (0, chai_1.expect)(harness.sessions.map((entry) => entry._id)).to.deep.equal([
139
+ CURRENT_SESSION,
140
+ ]);
141
+ (0, chai_1.expect)(result.sessionHandoff?.endpoint).to.equal("/api/auth/session-handoff");
142
+ (0, chai_1.expect)(harness.refreshTokens.get(CURRENT_SESSION)).to.equal(result.sessionHandoff?.payload.token);
143
+ });
144
+ it("lets an account without a password set its first one", async () => {
145
+ const harness = buildHarness(null);
146
+ await passwordChange(harness, { password: NEW_PASSWORD });
147
+ (0, chai_1.expect)(harness.user.password).to.equal(NEW_PASSWORD);
148
+ });
149
+ });
150
+ describe("[unit] settings/security — email change asks for the current password", () => {
151
+ it("refuses a wrong current password", async () => {
152
+ const harness = buildHarness();
153
+ const result = await refusal((0, email_change_1.requestEmailChange)(harness.user, { email: FREE_EMAIL, currentPassword: "Wrong1!" }, harness.userModel));
154
+ (0, chai_1.expect)(result.getBody()).to.equal(INVALID_CURRENT_PASSWORD);
155
+ (0, chai_1.expect)(harness.user.email).to.equal(OWN_EMAIL);
156
+ });
157
+ it("refuses an address another account holds", async () => {
158
+ const harness = buildHarness();
159
+ const result = await refusal((0, email_change_1.requestEmailChange)(harness.user, { email: TAKEN_EMAIL, currentPassword: CURRENT_PASSWORD }, harness.userModel));
160
+ (0, chai_1.expect)(result.getStatus()).to.equal(HTTP_CONFLICT);
161
+ });
162
+ });
163
+ describe("[unit] settings/security — sessions and backup codes", () => {
164
+ it("lists the current session first, then the most recent", async () => {
165
+ const harness = buildHarness();
166
+ const sessions = await (0, account_credentials_1.listSessions)(harness.user, {
167
+ sessionModel: harness.sessionModel,
168
+ authorization,
169
+ });
170
+ (0, chai_1.expect)(sessions.map((entry) => entry._id)).to.deep.equal([
171
+ CURRENT_SESSION,
172
+ "session-recent",
173
+ "session-old",
174
+ ]);
175
+ (0, chai_1.expect)(sessions[0]?.isCurrent).to.equal(true);
176
+ });
177
+ it("signs out the other sessions only", async () => {
178
+ const harness = buildHarness();
179
+ const result = await (0, account_credentials_1.revokeOtherSessions)(harness.user, {
180
+ userModel: harness.userModel,
181
+ sessionModel: harness.sessionModel,
182
+ authorization,
183
+ });
184
+ (0, chai_1.expect)(result.count).to.equal(2);
185
+ (0, chai_1.expect)(harness.sessions).to.have.length(1);
186
+ (0, chai_1.expect)(harness.user.authKey).to.not.equal(ORIGINAL_AUTH_KEY);
187
+ (0, chai_1.expect)(result.sessionHandoff?.payload.token).to.be.a("string");
188
+ });
189
+ it("reports the codes left and records that they were saved", async () => {
190
+ const harness = buildHarness();
191
+ harness.user.twoFactorMethods = ["totp"];
192
+ harness.user.twoFactorBackupCodes = ["a", "b", "c"];
193
+ harness.user.twoFactorBackupCodesSavedAt = null;
194
+ (0, chai_1.expect)((0, two_factor_operations_1.getTwoFactorStatus)(harness.user)).to.include({
195
+ backupCodesLeft: 3,
196
+ backupCodesTotal: BACKUP_CODE_TOTAL,
197
+ backupCodesSavedAt: null,
198
+ });
199
+ const status = await (0, two_factor_operations_1.markBackupCodesSaved)(harness.user, harness.userModel);
200
+ (0, chai_1.expect)(status.backupCodesSavedAt).to.be.instanceOf(Date);
201
+ });
202
+ it("refuses to mark codes saved when there are none", async () => {
203
+ const harness = buildHarness();
204
+ const result = await refusal((0, two_factor_operations_1.markBackupCodesSaved)(harness.user, harness.userModel));
205
+ (0, chai_1.expect)(result.getStatus()).to.equal(HTTP_BAD_REQUEST);
206
+ });
207
+ });
208
+ //# sourceMappingURL=account-security.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-security.test.js","sourceRoot":"","sources":["../../../../../src/test/unit/pages/settings/account-security.test.ts"],"names":[],"mappings":";;AAAA,6DAAuD;AACvD,+BAA8B;AAO9B,+CAAoC;AACpC,8FAI8D;AAC9D,gFAAmF;AACnF,kGAGgE;AAEhE,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,gBAAgB,GAAG,WAAW,CAAC;AACrC,MAAM,YAAY,GAAG,aAAa,CAAC;AACnC,MAAM,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,OAAO,GAAG,uBAAuB,CAAC;AACxC,MAAM,aAAa,GAA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AAO,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,MAAM,CAAC,CAAC;QACzC,OAAO,CAAC,IAAI,CAAC,oBAAoB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACpD,OAAO,CAAC,IAAI,CAAC,2BAA2B,GAAG,IAAI,CAAC;QAChD,IAAA,aAAM,EAAC,IAAA,0CAAkB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC;YAClD,eAAe,EAAE,CAAC;YAClB,gBAAgB,EAAE,iBAAiB;YACnC,kBAAkB,EAAE,IAAI;SACzB,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,4CAAoB,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;QAC3E,IAAA,aAAM,EAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;QAC/D,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;QAC/B,MAAM,MAAM,GAAG,MAAM,OAAO,CAC1B,IAAA,4CAAoB,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CACtD,CAAC;QACF,IAAA,aAAM,EAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -7,7 +7,8 @@ const auth_1 = require("@antelopejs/interface-dms/auth");
7
7
  const db_1 = require("@antelopejs/interface-dms/db");
8
8
  const invites_1 = require("@antelopejs/interface-dms/invites");
9
9
  const actions_1 = require("../../../../automation/actions");
10
- const invites_2 = require("../../../../pages/settings/users/invites");
10
+ const member_invite_batch_1 = require("../../../../pages/settings/users/member-invite-batch");
11
+ const invite_resend_1 = require("../../../../pages/settings/users/invite-resend");
11
12
  const members_1 = require("../../../../pages/settings/users/members");
12
13
  const db_2 = require("../../../helpers/db");
13
14
  const WORKSPACE_ID = "invite-email-delivery-workspace";
@@ -24,13 +25,12 @@ const automationCtx = {
24
25
  log: () => undefined,
25
26
  };
26
27
  function inviteThroughMembersRoute() {
27
- return (0, invites_1.inviteUserToTenant)({
28
- tenantId: WORKSPACE_ID,
29
- email: INVITEE_EMAIL,
30
- roleIds: [],
31
- sendEmail: true,
32
- awaitEmailDelivery: true,
33
- });
28
+ return (0, member_invite_batch_1.inviteMembers)({
29
+ emails: [INVITEE_EMAIL],
30
+ language: "en",
31
+ asTenantOwner: true,
32
+ skipEmailValidation: false,
33
+ }, { tenantId: WORKSPACE_ID, userId: "inviter", name: "Inviter" }, undefined);
34
34
  }
35
35
  async function createPendingInviteId() {
36
36
  const result = await (0, invites_1.inviteUserToTenant)({
@@ -70,23 +70,29 @@ describe("[unit] pages/settings — invitation email delivery", () => {
70
70
  describe("members invite route", () => {
71
71
  it("keeps the invitation and tells the inviter when the email fails", async () => {
72
72
  sendEmail = refuse;
73
- const result = await inviteThroughMembersRoute();
74
- (0, chai_1.expect)(result).to.include({ kind: "invited", emailDelivery: "failed" });
73
+ const results = await inviteThroughMembersRoute();
74
+ (0, chai_1.expect)(results).to.deep.equal([
75
+ { email: INVITEE_EMAIL, outcome: "invited", emailDelivery: "failed" },
76
+ ]);
75
77
  (0, chai_1.expect)(await pendingInvite()).to.exist;
76
- const response = (0, members_1.memberInviteResponse)(result);
78
+ const response = (0, members_1.memberInviteResponse)(results);
77
79
  (0, chai_1.expect)(response).to.deep.equal({
80
+ results,
78
81
  redirectPath: members_1.INVITES_PAGE_PATH,
79
- emailDelivery: "failed",
82
+ notice: undefined,
80
83
  warning: members_1.INVITE_EMAIL_FAILED_WARNING,
81
84
  });
82
85
  (0, chai_1.expect)(JSON.stringify(response)).not.to.contain(SMTP_REFUSAL);
83
86
  });
84
87
  it("reports a sent email without a warning", async () => {
85
- const result = await inviteThroughMembersRoute();
88
+ const results = await inviteThroughMembersRoute();
86
89
  (0, chai_1.expect)(sentCount).to.equal(1);
87
- (0, chai_1.expect)((0, members_1.memberInviteResponse)(result)).to.deep.equal({
90
+ (0, chai_1.expect)((0, members_1.memberInviteResponse)(results)).to.deep.equal({
91
+ results: [
92
+ { email: INVITEE_EMAIL, outcome: "invited", emailDelivery: "sent" },
93
+ ],
88
94
  redirectPath: members_1.INVITES_PAGE_PATH,
89
- emailDelivery: "sent",
95
+ notice: undefined,
90
96
  });
91
97
  });
92
98
  });
@@ -94,16 +100,16 @@ describe("[unit] pages/settings — invitation email delivery", () => {
94
100
  it("keeps the reissued invitation and warns when the email fails", async () => {
95
101
  const inviteId = await createPendingInviteId();
96
102
  sendEmail = refuse;
97
- const outcome = await (0, invites_2.resendPendingInvite)(WORKSPACE_ID, inviteId);
103
+ const outcome = await (0, invite_resend_1.resendPendingInvite)(WORKSPACE_ID, inviteId);
98
104
  (0, chai_1.expect)(outcome).to.deep.equal({
99
105
  emailDelivery: "failed",
100
- warning: invites_2.INVITE_RESEND_EMAIL_FAILED_WARNING,
106
+ warning: invite_resend_1.INVITE_RESEND_EMAIL_FAILED_WARNING,
101
107
  });
102
108
  (0, chai_1.expect)(await pendingInvite()).to.exist;
103
109
  });
104
110
  it("reports a sent email without a warning", async () => {
105
111
  const inviteId = await createPendingInviteId();
106
- const outcome = await (0, invites_2.resendPendingInvite)(WORKSPACE_ID, inviteId);
112
+ const outcome = await (0, invite_resend_1.resendPendingInvite)(WORKSPACE_ID, inviteId);
107
113
  (0, chai_1.expect)(outcome).to.deep.equal({ emailDelivery: "sent" });
108
114
  (0, chai_1.expect)(sentCount).to.equal(1);
109
115
  });
@@ -1 +1 @@
1
- {"version":3,"file":"invite-email-delivery.test.js","sourceRoot":"","sources":["../../../../../src/test/unit/pages/settings/invite-email-delivery.test.ts"],"names":[],"mappings":";;AA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AAC,CAAC,CAAC;QAEH,EAAE,CAAC,uDAAuD,EAAE,KAAK,IAAI,EAAE;YACrE,SAAS,GAAG,MAAM,CAAC;YACnB,MAAM,MAAM,GAAG,iBAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,iBAAiB,CAAC,CAAC;YAElE,MAAM,MAAM,GAAG,MAAM,MAAM,EAAE,OAAO,CAClC,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,EAChD,aAAa,CACd,CAAC;YAEF,MAAM,MAAM,GAAG,MAAM,aAAa,EAAE,CAAC;YACrC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"invite-email-delivery.test.js","sourceRoot":"","sources":["../../../../../src/test/unit/pages/settings/invite-email-delivery.test.ts"],"names":[],"mappings":";;AAAA,+DAAgE;AAChE,6FAAqE;AAErE,+BAA8B;AAC9B,yDAAsE;AACtE,qDAA4E;AAC5E,+DAAuE;AACvE,4DAAyD;AACzD,8FAAqF;AACrF,kFAGwD;AACxD,sEAIkD;AAClD,4CAAoD;AAEpD,MAAM,YAAY,GAAG,iCAAiC,CAAC;AACvD,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAC9C,MAAM,YAAY,GAAG,mCAAmC,CAAC;AAIzD,MAAM,MAAM,GAAgB,KAAK,IAAI,EAAE;IACrC,MAAM,IAAI,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC;AACF,MAAM,MAAM,GAAgB,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC;AAElD,MAAM,aAAa,GAAiB;IAClC,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MAAM,MAAM,GAAG,MAAM,MAAM,EAAE,OAAO,CAClC,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,EAChD,aAAa,CACd,CAAC;YAEF,MAAM,MAAM,GAAG,MAAM,aAAa,EAAE,CAAC;YACrC,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -86,7 +86,7 @@ describe("[unit] pages/settings/users/quick-actions — invite a member", () =>
86
86
  displayName: "$quickActions.invite_member",
87
87
  target: {
88
88
  type: "button",
89
- to: "/settings/user/members",
89
+ to: "/settings/workspace/members",
90
90
  component: "table",
91
91
  button: members_1.MEMBER_INVITE_BUTTON_ID,
92
92
  },
@@ -1 +1 @@
1
- {"version":3,"file":"invite-member-quick-action.test.js","sourceRoot":"","sources":["../../../../../src/test/unit/pages/settings/invite-member-quick-action.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,+BAA8B;AAC9B,yDAGwC;AACxC,4FAA8E;AAC9E,6GAA+F;AAC/F,2EAA4F;AAC5F,+FAAiF;AAEjF,+DAG8C;AAC9C,6FAA+E;AAC/E,8GAAgG;AAChG,gGAAkF;AAClF,gGAAkF;AAClF,sEAIkD;AAClD,kFAAyF;AACzF,8DAAoE;AAEpE,MAAM,UAAU,GAAG,GAAG,uCAAuB,CAAC,QAAQ,CAAC,EAAE,IAAI,uCAAuB,CAAC,EAAE,EAAE,CAAC;AAC1F,MAAM,SAAS,GAAG,4BAA4B,CAAC;AAE/C,SAAS,qBAAqB;IAC5B,MAAM,QAAQ,GAAG,IAAA,4BAAW,EAC1B,mCAAyB,EACzB,mBAAY,CACb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B,EAAE;SACnB,CAAC,CAAC;QAEH,IAAA,aAAM,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;YAC1C,WAAW,EAAE,6BAA6B;YAC1C,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,wBAAwB;gBAC5B,SAAS,EAAE,OAAO;gBAClB,MAAM,EAAE,iCAAuB;aAChC;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sEAAsE,EAAE,KAAK,IAAI,EAAE;QACpF,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;QAE5D,IAAA,aAAM,EAAC,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4DAA4D,EAAE,KAAK,IAAI,EAAE;QAC1E,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,EAAE,CAAC,CAAC;QAErC,IAAA,aAAM,EAAC,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"invite-member-quick-action.test.js","sourceRoot":"","sources":["../../../../../src/test/unit/pages/settings/invite-member-quick-action.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,+BAA8B;AAC9B,yDAGwC;AACxC,4FAA8E;AAC9E,6GAA+F;AAC/F,2EAA4F;AAC5F,+FAAiF;AAEjF,+DAG8C;AAC9C,6FAA+E;AAC/E,8GAAgG;AAChG,gGAAkF;AAClF,gGAAkF;AAClF,sEAIkD;AAClD,kFAAyF;AACzF,8DAAoE;AAE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