@wssto2/vue-core 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/README.md +36 -0
  2. package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js +22 -0
  3. package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js +76 -0
  4. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js +45 -0
  5. package/dist/Activity-2gGxQn7v.js +156 -0
  6. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CeKK8_g5.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js} +48 -47
  7. package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-e4hzkzg3.js → AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js} +1 -1
  8. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CWLB3xsR.js → AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js} +4 -4
  9. package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js} +1 -1
  10. package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
  11. package/dist/{Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js → Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js} +1 -1
  12. package/dist/Changes-Bm8xvagD.js +129 -0
  13. package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-DCBVw2Qd.js +1485 -0
  14. package/dist/DataTable.vue_vue_type_script_setup_true_lang-UH6f9puS.js +52 -0
  15. package/dist/DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js +255 -0
  16. package/dist/DeadLetters-CMRtXn_N.js +104 -0
  17. package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-DyhYHRyz.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-D1arePCZ.js} +1 -1
  18. package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js} +1 -1
  19. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js +276 -0
  20. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js +136 -0
  21. package/dist/FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js +38 -0
  22. package/dist/General-CTqd0SLK.js +145 -0
  23. package/dist/HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js +45 -0
  24. package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-D7oC-d-S.js} +54 -37
  25. package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js} +1 -1
  26. package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
  27. package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CvwoT1JF.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js} +2 -2
  28. package/dist/{Menu.vue_vue_type_script_setup_true_lang-CrMj6KPD.js → Menu.vue_vue_type_script_setup_true_lang-DTbAcDzL.js} +66 -58
  29. package/dist/{Modal.vue_vue_type_script_setup_true_lang-BQZM49gC.js → Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js} +4 -4
  30. package/dist/NewRolePage-DTOWIxxC.js +42 -0
  31. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js +31 -0
  32. package/dist/NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js +113 -0
  33. package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +95 -0
  34. package/dist/PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js +47 -0
  35. package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js} +1 -1
  36. package/dist/PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js +46 -0
  37. package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-ElDizaW2.js → PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js} +1 -1
  38. package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
  39. package/dist/ProfilePage-BlpiWH_W.js +654 -0
  40. package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
  41. package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-C_ymvhHU.js +64 -0
  42. package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CwI_sROp.js +173 -0
  43. package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-CmwvSytD.js +300 -0
  44. package/dist/RolePage-DZk7BZOc.js +315 -0
  45. package/dist/RolesPage-DzGGCMnm.js +115 -0
  46. package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
  47. package/dist/SectionList.vue_vue_type_script_setup_true_lang-BFYls8fR.js +148 -0
  48. package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-DSMXEaCs.js +314 -0
  49. package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js +58 -0
  50. package/dist/SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js +423 -0
  51. package/dist/SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js +111 -0
  52. package/dist/Sessions-CWqjjTr1.js +96 -0
  53. package/dist/SettingsPage-C4s0IdkW.js +255 -0
  54. package/dist/Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js +145 -0
  55. package/dist/SignIn-zzKY__df.js +140 -0
  56. package/dist/SignInPage-Rqnus_s-.js +60 -0
  57. package/dist/SignInTable.vue_vue_type_script_setup_true_lang-CEbAvZ_C.js +79 -0
  58. package/dist/SignIns-Cnf9BVR0.js +66 -0
  59. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js +93 -0
  60. package/dist/SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js +64 -0
  61. package/dist/Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js +155 -0
  62. package/dist/TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js +269 -0
  63. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js +68 -0
  64. package/dist/TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js +164 -0
  65. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js} +1 -1
  66. package/dist/UserRecord-DqigxVxH.js +267 -0
  67. package/dist/UsersList-DNlZsI9J.js +155 -0
  68. package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js +28 -0
  69. package/dist/access/AddRoleDialog.vue.d.ts +19 -0
  70. package/dist/access/BindingRow.vue.d.ts +19 -0
  71. package/dist/access/EffectiveAccess.vue.d.ts +12 -0
  72. package/dist/access/NewRolePage.vue.d.ts +2 -0
  73. package/dist/access/PermissionTree.vue.d.ts +13 -0
  74. package/dist/access/PersonAccess.vue.d.ts +21 -0
  75. package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
  76. package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
  77. package/dist/access/RoleEditor.vue.d.ts +28 -0
  78. package/dist/access/RolePage.vue.d.ts +2 -0
  79. package/dist/access/RolesPage.vue.d.ts +2 -0
  80. package/dist/access/api.d.ts +26 -0
  81. package/dist/access/catalogue.d.ts +64 -0
  82. package/dist/access/context.d.ts +20 -0
  83. package/dist/access/effective.d.ts +42 -0
  84. package/dist/access/feature.d.ts +27 -0
  85. package/dist/access/index.d.ts +13 -0
  86. package/dist/access/index.js +15 -0
  87. package/dist/access/labels.d.ts +35 -0
  88. package/dist/access/refusals.d.ts +6 -0
  89. package/dist/access/routes.d.ts +45 -0
  90. package/dist/access/scopes.d.ts +20 -0
  91. package/dist/app/contributions.d.ts +1 -1
  92. package/dist/app/feature.d.ts +8 -0
  93. package/dist/app/index.js +259 -296
  94. package/dist/bottomDock-BZEiOPYZ.js +12 -0
  95. package/dist/button/Button.vue.d.ts +3 -3
  96. package/dist/button/index.js +1 -1
  97. package/dist/chrome-BS3xJcad.js +93 -0
  98. package/dist/client/client.d.ts +13 -0
  99. package/dist/client/index.d.ts +3 -1
  100. package/dist/client/index.js +11 -138
  101. package/dist/client/route.d.ts +59 -0
  102. package/dist/client-k9euDWF4.js +147 -0
  103. package/dist/closeOverlays-CjVsIrpL.js +8 -0
  104. package/dist/collection/definition.d.ts +3 -0
  105. package/dist/collection/http.d.ts +4 -2
  106. package/dist/collection/index.js +74 -2428
  107. package/dist/collection/useCollection.d.ts +2 -0
  108. package/dist/content/index.js +37 -66
  109. package/dist/contributions-DsfmDoRD.js +26 -0
  110. package/dist/control-7EP4tjYy.js +313 -0
  111. package/dist/controls/DateButton.vue.d.ts +1 -1
  112. package/dist/controls/PopupButton.vue.d.ts +1 -1
  113. package/dist/controls/index.js +11 -10
  114. package/dist/defineRoutes-BGAdiIrt.js +19 -0
  115. package/dist/{describeError-l5T9b8Uv.js → describeError-Ctga6GcS.js} +1 -1
  116. package/dist/environment-Dva-SG8D.js +6 -0
  117. package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
  118. package/dist/feature-DdUAfyi4.js +25 -0
  119. package/dist/fieldMessages-C3Rpbktw.js +25 -0
  120. package/dist/form/CheckboxField.vue.d.ts +1 -1
  121. package/dist/form/CommandDialog.vue.d.ts +1 -1
  122. package/dist/form/DateField.vue.d.ts +1 -1
  123. package/dist/form/DateTimeField.vue.d.ts +1 -1
  124. package/dist/form/EditorPage.vue.d.ts +1 -1
  125. package/dist/form/Field.vue.d.ts +1 -1
  126. package/dist/form/FileField.vue.d.ts +1 -1
  127. package/dist/form/FormGroup.vue.d.ts +1 -1
  128. package/dist/form/FormGroupButton.vue.d.ts +1 -1
  129. package/dist/form/FormRow.vue.d.ts +1 -1
  130. package/dist/form/I18nField.vue.d.ts +3 -3
  131. package/dist/form/MoneyField.vue.d.ts +1 -1
  132. package/dist/form/MonthYearField.vue.d.ts +1 -1
  133. package/dist/form/NumberCell.vue.d.ts +1 -1
  134. package/dist/form/NumberField.vue.d.ts +2 -2
  135. package/dist/form/OtpInput.vue.d.ts +2 -2
  136. package/dist/form/PhotoField.vue.d.ts +1 -1
  137. package/dist/form/SwitchField.vue.d.ts +1 -1
  138. package/dist/form/TextField.vue.d.ts +3 -3
  139. package/dist/form/TextareaField.vue.d.ts +3 -3
  140. package/dist/form/TimeField.vue.d.ts +1 -1
  141. package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
  142. package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
  143. package/dist/form/index.js +1159 -3474
  144. package/dist/guards-Dve61KjR.js +51 -0
  145. package/dist/http-CNcDHSOj.js +194 -0
  146. package/dist/i18n/index.d.ts +281 -0
  147. package/dist/i18n/index.js +52 -52
  148. package/dist/icon/core.d.ts +17 -0
  149. package/dist/icon/index.js +1 -1
  150. package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
  151. package/dist/identity/LocaleSync.vue.d.ts +2 -0
  152. package/dist/identity/SessionExpiry.vue.d.ts +2 -0
  153. package/dist/identity/SignInAsButton.vue.d.ts +15 -0
  154. package/dist/identity/SignInPage.vue.d.ts +2 -0
  155. package/dist/identity/context.d.ts +7 -0
  156. package/dist/identity/feature.d.ts +16 -0
  157. package/dist/identity/fieldMessages.d.ts +15 -0
  158. package/dist/identity/index.d.ts +16 -0
  159. package/dist/identity/index.js +18 -0
  160. package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
  161. package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
  162. package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
  163. package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
  164. package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
  165. package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
  166. package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
  167. package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
  168. package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
  169. package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
  170. package/dist/identity/profile/routes.d.ts +13 -0
  171. package/dist/identity/session.d.ts +30 -0
  172. package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
  173. package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
  174. package/dist/identity/shared/PageBar.vue.d.ts +12 -0
  175. package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
  176. package/dist/identity/shared/SessionList.vue.d.ts +19 -0
  177. package/dist/identity/shared/SignInTable.vue.d.ts +11 -0
  178. package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
  179. package/dist/identity/shared/signInEvents.d.ts +9 -0
  180. package/dist/identity/signIn.d.ts +27 -0
  181. package/dist/identity/useSignInForm.d.ts +20 -0
  182. package/dist/identity/user.d.ts +6 -0
  183. package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
  184. package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
  185. package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
  186. package/dist/identity/users/UserRecord.vue.d.ts +2 -0
  187. package/dist/identity/users/UsersList.vue.d.ts +2 -0
  188. package/dist/identity/users/access.d.ts +4 -0
  189. package/dist/identity/users/context.d.ts +9 -0
  190. package/dist/identity/users/feature.d.ts +34 -0
  191. package/dist/identity/users/languages.d.ts +4 -0
  192. package/dist/identity/users/list.d.ts +8 -0
  193. package/dist/identity/users/person.d.ts +26 -0
  194. package/dist/identity/users/personSections.d.ts +22 -0
  195. package/dist/identity/users/routes.d.ts +22 -0
  196. package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
  197. package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
  198. package/dist/identity/users/sections/General.vue.d.ts +2 -0
  199. package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
  200. package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
  201. package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
  202. package/dist/identity/users/status.d.ts +4 -0
  203. package/dist/index-BsJ92eub.js +504 -0
  204. package/dist/index-CGv-u1Ws.js +459 -0
  205. package/dist/index-GcLnFF-z.js +706 -0
  206. package/dist/index.d.ts +1 -1
  207. package/dist/index.js +1 -1
  208. package/dist/internal/languageName.d.ts +2 -0
  209. package/dist/keepAlive-WYQGRhuz.js +48 -0
  210. package/dist/languageName-CItV_SOv.js +11 -0
  211. package/dist/languages-BShG9LpE.js +10 -0
  212. package/dist/leaveGuard-Cc8yeLxM.js +72 -0
  213. package/dist/modal/Modal.vue.d.ts +1 -1
  214. package/dist/modal/Sheet.vue.d.ts +2 -0
  215. package/dist/modal/index.js +5 -5
  216. package/dist/modules/access/entities.d.ts +112 -0
  217. package/dist/modules/access/routes.d.ts +67 -0
  218. package/dist/modules/access/schemas.d.ts +73 -0
  219. package/dist/modules/events/entities.d.ts +16 -0
  220. package/dist/modules/events/routes.d.ts +17 -0
  221. package/dist/modules/events/schemas.d.ts +16 -0
  222. package/dist/modules/identity/entities.d.ts +150 -0
  223. package/dist/modules/identity/routes.d.ts +118 -0
  224. package/dist/modules/identity/schemas.d.ts +145 -0
  225. package/dist/modules/notification/entities.d.ts +46 -0
  226. package/dist/modules/notification/routes.d.ts +26 -0
  227. package/dist/modules/notification/schemas.d.ts +25 -0
  228. package/dist/{navigation-B33ikiCS.js → navigation-Cm3iChlR.js} +21 -20
  229. package/dist/neighbors-DpaIMQAL.js +86 -0
  230. package/dist/notifications/InboxPanel.vue.d.ts +16 -0
  231. package/dist/notifications/MarkAllRead.vue.d.ts +7 -0
  232. package/dist/notifications/NotificationBell.vue.d.ts +2 -0
  233. package/dist/notifications/SettingsLink.vue.d.ts +6 -0
  234. package/dist/notifications/context.d.ts +20 -0
  235. package/dist/notifications/deadletters/DeadLetters.vue.d.ts +2 -0
  236. package/dist/notifications/deadletters/access.d.ts +3 -0
  237. package/dist/notifications/deadletters/list.d.ts +3 -0
  238. package/dist/notifications/deadletters/routes.d.ts +13 -0
  239. package/dist/notifications/feature.d.ts +31 -0
  240. package/dist/notifications/inbox.d.ts +62 -0
  241. package/dist/notifications/index.d.ts +13 -0
  242. package/dist/notifications/index.js +8 -0
  243. package/dist/notifications/settings/EmailPanel.vue.d.ts +14 -0
  244. package/dist/notifications/settings/QuietHoursPanel.vue.d.ts +14 -0
  245. package/dist/notifications/settings/SettingsMenuItem.vue.d.ts +2 -0
  246. package/dist/notifications/settings/SettingsPage.vue.d.ts +2 -0
  247. package/dist/notifications/settings/categoryText.d.ts +9 -0
  248. package/dist/notifications/settings/routes.d.ts +13 -0
  249. package/dist/notifications/settings/settings.d.ts +18 -0
  250. package/dist/notifications/settings/state.d.ts +16 -0
  251. package/dist/notifications/state.d.ts +27 -0
  252. package/dist/notifications/stream.d.ts +21 -0
  253. package/dist/options-Ba_0uLWN.js +18 -0
  254. package/dist/overlay/AlertDialog.vue.d.ts +3 -3
  255. package/dist/overlay/Popover.vue.d.ts +1 -1
  256. package/dist/overlay/closeOverlays.d.ts +7 -0
  257. package/dist/overlay/index.js +21 -20
  258. package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
  259. package/dist/page/ResourceHeader.vue.d.ts +2 -2
  260. package/dist/page/index.js +99 -457
  261. package/dist/phone/PhoneField.vue.d.ts +2 -2
  262. package/dist/phone/index.js +68 -67
  263. package/dist/platform/index.d.ts +2 -2
  264. package/dist/platform/index.js +73 -90
  265. package/dist/platform/platform.d.ts +2 -2
  266. package/dist/platform/session.d.ts +22 -1
  267. package/dist/platform-q3cjODLx.js +255 -0
  268. package/dist/resource/index.js +8 -248
  269. package/dist/route-goWMxDUN.js +13 -0
  270. package/dist/routeResource-DstM0hvf.js +82 -0
  271. package/dist/router/guards.d.ts +7 -1
  272. package/dist/router/index.js +23 -37
  273. package/dist/router/navigation.d.ts +1 -1
  274. package/dist/rowLayout-BqTEhEuy.js +603 -0
  275. package/dist/sectionIndex-BS0ic5W7.js +86 -0
  276. package/dist/{sections-LtxV5Mtk.js → sections-CntvUTxn.js} +1 -1
  277. package/dist/shell/AccountMenuItem.vue.d.ts +1 -1
  278. package/dist/shell/BackofficeShell.vue.d.ts +2 -2
  279. package/dist/shell/NavigationList.vue.d.ts +1 -1
  280. package/dist/shell/ShellBrand.vue.d.ts +1 -1
  281. package/dist/shell/backofficeShell.d.ts +1 -1
  282. package/dist/shell/identity.d.ts +1 -1
  283. package/dist/shell/index.js +491 -595
  284. package/dist/state/ProgressTrack.vue.d.ts +1 -1
  285. package/dist/state/index.js +59 -92
  286. package/dist/status-BuP3ULjH.js +33 -0
  287. package/dist/styles.css +1 -1
  288. package/dist/suggestions-BxMm6MQA.js +138 -0
  289. package/dist/testing/index.js +1 -1
  290. package/dist/toast-D9Z5To38.js +13 -0
  291. package/dist/transport-BnP7WC0Y.js +4 -0
  292. package/dist/useCommand-BkONMn3X.js +135 -0
  293. package/dist/useLoad-CYRVx6HW.js +39 -0
  294. package/dist/useResourceForm-D1hIpwW5.js +52 -0
  295. package/dist/useSaveChrome-chi6D3HY.js +25 -0
  296. package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
  297. package/dist/useTypedEntry-aTfPBAhw.js +857 -0
  298. package/package.json +26 -5
  299. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
  300. package/dist/SectionList.vue_vue_type_script_setup_true_lang-L9ita_Kx.js +0 -230
  301. package/dist/SelectField.vue_vue_type_script_setup_true_lang-DZTrU8NJ.js +0 -661
  302. package/dist/Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.js +0 -210
  303. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
  304. package/dist/chrome-D9pwD6iS.js +0 -101
  305. package/dist/environment-D3nozt9a.js +0 -75
  306. package/dist/feature-DyDtyMLU.js +0 -47
  307. package/dist/options-DAkBtYkI.js +0 -330
  308. package/dist/platform-jqlKVJ2e.js +0 -244
  309. package/dist/toast-DvrHQ6Ag.js +0 -131
@@ -0,0 +1,255 @@
1
+ import { defineComponent as w, openBlock as u, createBlock as b, unref as e, withCtx as p, createElementBlock as g, toDisplayString as y, Fragment as $, renderList as Q, createElementVNode as P, createVNode as d, createTextVNode as U, createCommentVNode as S, computed as V, mergeProps as h, ref as D } from "vue";
2
+ import { useI18n as v } from "vue-i18n";
3
+ import { useRouter as I } from "vue-router";
4
+ import { a as j } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js";
5
+ import { t as T } from "./toast-D9Z5To38.js";
6
+ import { u as N } from "./fieldMessages-C3Rpbktw.js";
7
+ import { _ as A } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
8
+ import { _ as O } from "./Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js";
9
+ import { _ as R } from "./FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
10
+ import { e as G } from "./control-7EP4tjYy.js";
11
+ import { _ as Z } from "./SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js";
12
+ import { _ as J } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
13
+ import { u as K } from "./FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js";
14
+ import { _ as W } from "./FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js";
15
+ import { _ as E } from "./TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js";
16
+ import { a as k, n as X } from "./useTypedEntry-aTfPBAhw.js";
17
+ import { _ as Y } from "./PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js";
18
+ import { n as q } from "./index-BsJ92eub.js";
19
+ import { u as ee } from "./platform-q3cjODLx.js";
20
+ import { u as te } from "./useLoad-CYRVx6HW.js";
21
+ function ne() {
22
+ const { t: s, te: t } = v();
23
+ return (n) => {
24
+ const m = `notifications.categories.${n}`, a = `${m}.description`;
25
+ return { label: t(`${m}.label`) ? s(`${m}.label`) : n, ...t(a) ? { description: s(a) } : {} };
26
+ };
27
+ }
28
+ const ae = {
29
+ key: 0,
30
+ class: "text-subheadline text-content-muted",
31
+ "data-email-unavailable": ""
32
+ }, oe = { class: "flex items-center gap-1.5 text-body text-content-muted" }, ie = ["data-category"], se = {
33
+ key: 2,
34
+ class: "mt-3 text-footnote text-content-muted",
35
+ "data-in-app": ""
36
+ }, re = /* @__PURE__ */ w({
37
+ __name: "EmailPanel",
38
+ props: {
39
+ preferences: {}
40
+ },
41
+ emits: ["change"],
42
+ setup(s, { emit: t }) {
43
+ const n = s, m = t, { t: a } = v(), r = ne();
44
+ return (f, c) => (u(), b(e(O), {
45
+ title: e(a)("core.notifications.settings.email.title"),
46
+ icon: "notification3Line",
47
+ "data-notification-email": ""
48
+ }, {
49
+ default: p(() => [
50
+ n.preferences.email_available ? (u(), b(e(R), {
51
+ key: 1,
52
+ footer: e(a)("core.notifications.settings.email.in_app"),
53
+ "data-in-app": ""
54
+ }, {
55
+ default: p(() => [
56
+ (u(!0), g($, null, Q(n.preferences.categories, (o) => (u(), g($, {
57
+ key: o.category
58
+ }, [
59
+ o.email.source === "enforced" ? (u(), b(e(G), {
60
+ key: 0,
61
+ "data-category": o.category,
62
+ layout: "setting",
63
+ label: e(r)(o.category).label,
64
+ sub: e(a)("core.notifications.settings.email.locked")
65
+ }, {
66
+ default: p(() => [
67
+ P("span", oe, [
68
+ d(e(J), {
69
+ name: "lockLine",
70
+ size: 14
71
+ }),
72
+ U(y(o.email.enabled ? e(a)("core.form.yes") : e(a)("core.form.no")), 1)
73
+ ])
74
+ ]),
75
+ _: 2
76
+ }, 1032, ["data-category", "label", "sub"])) : (u(), g("div", {
77
+ key: 1,
78
+ "data-category": o.category
79
+ }, [
80
+ d(e(Z), {
81
+ "model-value": o.email.enabled,
82
+ label: e(r)(o.category).label,
83
+ hint: e(r)(o.category).description,
84
+ "onUpdate:modelValue": (i) => m("change", o.category, i)
85
+ }, null, 8, ["model-value", "label", "hint", "onUpdate:modelValue"])
86
+ ], 8, ie))
87
+ ], 64))), 128))
88
+ ]),
89
+ _: 1
90
+ }, 8, ["footer"])) : (u(), g("p", ae, y(e(a)("core.notifications.settings.email.unavailable")), 1)),
91
+ n.preferences.email_available ? S("", !0) : (u(), g("p", se, y(e(a)("core.notifications.settings.email.in_app")), 1))
92
+ ]),
93
+ _: 1
94
+ }, 8, ["title"]));
95
+ }
96
+ });
97
+ function x(s, t) {
98
+ return { ...s, categories: s.categories.map((n) => n.category === t.category ? t : n) };
99
+ }
100
+ function ce(s, t, n) {
101
+ return x(s, { category: t, email: { enabled: n, source: "person" } });
102
+ }
103
+ function z(s) {
104
+ return X(Math.floor(s / 60), s % 60) ?? "00:00";
105
+ }
106
+ function H(s) {
107
+ const t = k(s);
108
+ return t === null ? null : t.hour * 60 + t.minute;
109
+ }
110
+ const L = (s) => ({ enabled: s.enabled, start: z(s.start), end: z(s.end) }), le = /* @__PURE__ */ w({
111
+ __name: "QuietHoursPanel",
112
+ props: {
113
+ quietHours: {},
114
+ timeZone: {},
115
+ submit: { type: Function }
116
+ },
117
+ setup(s) {
118
+ const t = s, { t: n } = v(), m = {
119
+ safeParse(c) {
120
+ const o = c, i = H(o.start), l = H(o.end), _ = [
121
+ ...i === null ? [{ path: ["start"], message: n("core.notifications.settings.quiet.required") }] : [],
122
+ ...l === null ? [{ path: ["end"], message: n("core.notifications.settings.quiet.required") }] : [],
123
+ ...i !== null && i === l ? [{ path: ["end"], message: n("core.notifications.settings.quiet.same") }] : []
124
+ ];
125
+ return _.length > 0 || i === null || l === null ? { success: !1, error: { issues: _ } } : { success: !0, data: { enabled: o.enabled, start: i, end: l } };
126
+ }
127
+ }, a = K({ ...N(), defaults: () => L(t.quietHours), validator: m }), r = V(() => {
128
+ const { enabled: c, start: o, end: i } = a.values, l = k(o), _ = k(i);
129
+ if (!c) return n("core.notifications.settings.quiet.summary_off");
130
+ if (!l || !_ || l.hour === _.hour && l.minute === _.minute) return "";
131
+ const C = ({ hour: F, minute: M }) => `${String(F).padStart(2, "0")}:${String(M).padStart(2, "0")}`, B = t.timeZone && t.timeZone !== "Local";
132
+ return n(`core.notifications.settings.quiet.${B ? "summary_on" : "summary_on_no_zone"}`, { start: C(l), end: C(_), zone: t.timeZone });
133
+ });
134
+ async function f() {
135
+ const c = await a.submit((o) => t.submit(o));
136
+ c.status === "saved" && (a.hydrate(L(c.value)), T.success(n("core.notifications.settings.quiet.saved")));
137
+ }
138
+ return (c, o) => (u(), b(e(O), {
139
+ title: e(n)("core.notifications.settings.quiet.title"),
140
+ icon: "moonLine",
141
+ "data-notification-quiet-hours": ""
142
+ }, {
143
+ footer: p(() => [
144
+ d(Y, {
145
+ label: e(n)("core.notifications.settings.quiet.submit"),
146
+ processing: e(a).submitting.value,
147
+ dirty: e(a).dirty.value,
148
+ onSubmit: f,
149
+ onCancel: o[0] || (o[0] = (i) => e(a).reset())
150
+ }, null, 8, ["label", "processing", "dirty"])
151
+ ]),
152
+ default: p(() => [
153
+ d(e(W), {
154
+ form: e(a),
155
+ onSubmit: f
156
+ }, {
157
+ default: p(() => [
158
+ d(e(R), {
159
+ footer: r.value,
160
+ "data-quiet-summary": ""
161
+ }, {
162
+ default: p(() => [
163
+ d(e(Z), h(e(a).bind("enabled"), {
164
+ label: e(n)("core.notifications.settings.quiet.enabled")
165
+ }), null, 16, ["label"]),
166
+ e(a).values.enabled ? (u(), g($, { key: 0 }, [
167
+ d(e(E), h(e(a).bind("start"), {
168
+ label: e(n)("core.notifications.settings.quiet.start")
169
+ }), null, 16, ["label"]),
170
+ d(e(E), h(e(a).bind("end"), {
171
+ label: e(n)("core.notifications.settings.quiet.end")
172
+ }), null, 16, ["label"])
173
+ ], 64)) : S("", !0)
174
+ ]),
175
+ _: 1
176
+ }, 8, ["footer"])
177
+ ]),
178
+ _: 1
179
+ }, 8, ["form"])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["title"]));
183
+ }
184
+ });
185
+ function ue(s = ee().http) {
186
+ const t = te(async ({ signal: r }) => (await s.request(q.preferences, void 0, { signal: r })).data), n = D([]);
187
+ async function m(r, f) {
188
+ const c = t.data.value, o = c?.categories.find((i) => i.category === r);
189
+ if (!(!c || !o || n.value.includes(r))) {
190
+ t.update(ce(c, r, f)), n.value = [...n.value, r];
191
+ try {
192
+ const { data: i } = await s.request(q.preferencesSetEmail, { category: r, email: f }), l = t.data.value;
193
+ l && t.update(x(l, i));
194
+ } catch (i) {
195
+ const l = t.data.value;
196
+ throw l && t.update(x(l, o)), i;
197
+ } finally {
198
+ n.value = n.value.filter((i) => i !== r);
199
+ }
200
+ }
201
+ }
202
+ async function a(r) {
203
+ const { data: f } = await s.request(q.quietHours, r), c = t.data.value;
204
+ return c && t.update({ ...c, quiet_hours: f }), f;
205
+ }
206
+ return { loaded: t, saving: n, setEmail: m, saveQuietHours: a };
207
+ }
208
+ const me = { class: "grid grid-cols-1 items-start gap-4 lg:grid-cols-2" }, Pe = /* @__PURE__ */ w({
209
+ __name: "SettingsPage",
210
+ setup(s) {
211
+ const { t } = v(), n = I(), m = N(), a = ue(), r = V(() => n.hasRoute("profile") ? { label: t("core.profile.menu"), to: { name: "profile" } } : void 0);
212
+ async function f(c, o) {
213
+ try {
214
+ await a.setEmail(c, o);
215
+ } catch (i) {
216
+ T.error(m.sentence(i, t("core.notifications.settings.email.save_failed")));
217
+ }
218
+ }
219
+ return (c, o) => (u(), b(e(j), {
220
+ title: e(t)("core.notifications.settings.title"),
221
+ description: e(t)("core.notifications.settings.description"),
222
+ back: r.value,
223
+ width: "content"
224
+ }, {
225
+ default: p(() => [
226
+ d(e(A), {
227
+ state: e(a).loaded.state.value,
228
+ "skeleton-rows": 6,
229
+ "is-empty": () => !1,
230
+ onRetry: o[0] || (o[0] = (i) => e(a).loaded.reload())
231
+ }, {
232
+ default: p(({ value: i }) => [
233
+ P("div", me, [
234
+ d(re, {
235
+ preferences: i,
236
+ onChange: f
237
+ }, null, 8, ["preferences"]),
238
+ i.email_available ? (u(), b(le, {
239
+ key: 0,
240
+ "quiet-hours": i.quiet_hours,
241
+ "time-zone": i.time_zone,
242
+ submit: e(a).saveQuietHours
243
+ }, null, 8, ["quiet-hours", "time-zone", "submit"])) : S("", !0)
244
+ ])
245
+ ]),
246
+ _: 1
247
+ }, 8, ["state"])
248
+ ]),
249
+ _: 1
250
+ }, 8, ["title", "description", "back"]));
251
+ }
252
+ });
253
+ export {
254
+ Pe as default
255
+ };
@@ -0,0 +1,145 @@
1
+ import { defineComponent as j, ref as b, useId as A, watch as N, openBlock as o, createBlock as V, Teleport as M, createElementBlock as n, unref as e, createVNode as v, Transition as k, withCtx as _, normalizeStyle as w, createCommentVNode as r, normalizeClass as S, createElementVNode as i, mergeProps as C, renderSlot as u, toDisplayString as P } from "vue";
2
+ import { useI18n as T } from "vue-i18n";
3
+ import { _ as W } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
4
+ import { a as F } from "./mediaQuery-CygcXmFW.js";
5
+ import { u as L } from "./useDialog-CXR3hN0G.js";
6
+ import { u as O } from "./useSheetDrag-OsD6Eb6I.js";
7
+ const Q = ["aria-labelledby"], q = {
8
+ key: 0,
9
+ class: "flex justify-center pt-1.5",
10
+ "aria-hidden": "true"
11
+ }, G = ["id"], H = { class: "ml-auto flex items-center gap-1" }, J = ["aria-label"], K = {
12
+ key: 0,
13
+ class: "shrink-0 border-t border-border-separator bg-surface-cell px-4 pt-3 pb-[max(0.75rem,var(--app-safe-bottom))]"
14
+ }, te = /* @__PURE__ */ j({
15
+ __name: "Sheet",
16
+ props: {
17
+ title: { default: void 0 },
18
+ grouped: { type: Boolean, default: !1 }
19
+ },
20
+ emits: ["presented", "dismissed"],
21
+ setup($, { expose: z, emit: B }) {
22
+ const l = $, y = B, { t: D } = T(), t = F("(max-width: 1023px), (pointer: coarse)"), m = b(!1), I = () => {
23
+ c.value || (m.value = !1);
24
+ }, f = b(null), g = b(null), p = A(), d = L(f, {
25
+ initialFocus: "panel",
26
+ onPresented: () => y("presented"),
27
+ onDismissed: () => y("dismissed")
28
+ }), { isOpen: c } = d;
29
+ N(c, (s) => {
30
+ s && (m.value = !0);
31
+ }, { flush: "sync" });
32
+ const a = O({
33
+ enabled: t,
34
+ panel: f,
35
+ body: g,
36
+ onDismiss: () => (d.dismissWithoutAsking(), !0)
37
+ });
38
+ function E() {
39
+ a.reset(), d.present();
40
+ }
41
+ function h() {
42
+ d.dismissWithoutAsking();
43
+ }
44
+ return z({ present: E, dismiss: h }), (s, x) => (o(), V(M, { to: "body" }, [
45
+ m.value ? (o(), n("div", {
46
+ key: 0,
47
+ class: "relative z-9999",
48
+ role: "dialog",
49
+ "aria-modal": "true",
50
+ "aria-labelledby": l.title ? e(p) : void 0
51
+ }, [
52
+ v(k, {
53
+ appear: "",
54
+ "enter-active-class": "transition-opacity duration-motion-normal ease-motion-standard",
55
+ "enter-from-class": "opacity-0",
56
+ "leave-active-class": "pointer-events-none transition-opacity duration-motion-normal ease-motion-standard",
57
+ "leave-to-class": "opacity-0"
58
+ }, {
59
+ default: _(() => [
60
+ e(c) ? (o(), n("div", {
61
+ key: 0,
62
+ class: "fixed inset-0 bg-scrim",
63
+ style: w(e(a).backdropStyle.value),
64
+ "aria-hidden": "true",
65
+ onClick: h
66
+ }, null, 4)) : r("", !0)
67
+ ]),
68
+ _: 1
69
+ }),
70
+ v(k, {
71
+ appear: "",
72
+ "enter-active-class": "transition-transform duration-motion-sheet ease-motion-sheet",
73
+ "enter-from-class": e(t) ? "translate-y-full" : "translate-x-full",
74
+ "leave-active-class": "pointer-events-none transition-transform duration-motion-normal ease-motion-standard",
75
+ "leave-to-class": e(t) ? "translate-y-full" : "translate-x-full",
76
+ onAfterLeave: I
77
+ }, {
78
+ default: _(() => [
79
+ e(c) ? (o(), n("div", {
80
+ key: 0,
81
+ ref_key: "panel",
82
+ ref: f,
83
+ tabindex: "-1",
84
+ "data-part": "panel",
85
+ class: S(["fixed flex flex-col text-content-strong shadow-dialog outline-none", [
86
+ l.grouped ? "bg-surface-page" : "bg-surface-cell",
87
+ e(t) ? "inset-x-0 bottom-0 mx-auto max-h-[90dvh] w-full max-w-readable rounded-t-sheet" : "inset-y-0 right-0 w-full max-w-md",
88
+ e(a).dragging.value ? "" : "transition-transform duration-motion-normal ease-motion-sheet"
89
+ ]]),
90
+ style: w(e(a).panelStyle.value)
91
+ }, [
92
+ i("div", C({
93
+ class: ["shrink-0", e(t) ? "cursor-grab touch-none select-none" : ""]
94
+ }, e(a).handleEvents), [
95
+ e(t) ? (o(), n("div", q, [...x[0] || (x[0] = [
96
+ i("span", { class: "h-1.25 w-9 rounded-full bg-fill-strong" }, null, -1)
97
+ ])])) : r("", !0),
98
+ u(s.$slots, "header", { titleId: e(p) }, () => [
99
+ i("div", {
100
+ class: S(["flex min-h-bar-height items-center justify-between gap-3 px-4", e(t) ? "pb-1" : "border-b border-border-separator"])
101
+ }, [
102
+ l.title ? (o(), n("h3", {
103
+ key: 0,
104
+ id: e(p),
105
+ class: "text-headline font-semibold"
106
+ }, P(l.title), 9, G)) : r("", !0),
107
+ i("div", H, [
108
+ u(s.$slots, "actions"),
109
+ i("button", {
110
+ type: "button",
111
+ "data-part": "close",
112
+ "aria-label": e(D)("core.actions.close"),
113
+ class: "hit-target -mr-1 flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full bg-fill text-content-muted transition-colors duration-motion-fast hover:bg-fill-strong",
114
+ onClick: h
115
+ }, [
116
+ v(e(W), {
117
+ name: "close",
118
+ size: 14
119
+ })
120
+ ], 8, J)
121
+ ])
122
+ ], 2)
123
+ ])
124
+ ], 16),
125
+ i("div", C({
126
+ ref_key: "body",
127
+ ref: g,
128
+ class: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 py-4"
129
+ }, e(a).bodyEvents), [
130
+ u(s.$slots, "default")
131
+ ], 16),
132
+ s.$slots.footer ? (o(), n("div", K, [
133
+ u(s.$slots, "footer")
134
+ ])) : r("", !0)
135
+ ], 6)) : r("", !0)
136
+ ]),
137
+ _: 3
138
+ }, 8, ["enter-from-class", "leave-to-class"])
139
+ ], 8, Q)) : r("", !0)
140
+ ]));
141
+ }
142
+ });
143
+ export {
144
+ te as _
145
+ };
@@ -0,0 +1,140 @@
1
+ import { defineComponent as P, computed as f, ref as I, openBlock as m, createElementBlock as N, createVNode as n, unref as e, withCtx as r, createSlots as R, createBlock as _, createTextVNode as k, toDisplayString as v, createCommentVNode as d } from "vue";
2
+ import { useI18n as A } from "vue-i18n";
3
+ import { _ as B } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
4
+ import { _ as V } from "./IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js";
5
+ import { u as D } from "./format-B8mJm946.js";
6
+ import { _ as p } from "./FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
7
+ import { e as b } from "./control-7EP4tjYy.js";
8
+ import { u as U } from "./describeError-Ctga6GcS.js";
9
+ import { c as q, P as z, b as F, _ as L, i as O, d as T } from "./index-CGv-u1Ws.js";
10
+ import { t as h } from "./toast-D9Z5To38.js";
11
+ import { u as j, h as G } from "./platform-q3cjODLx.js";
12
+ import { b as H } from "./routeResource-DstM0hvf.js";
13
+ import { _ as J } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
14
+ import { _ as K } from "./ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js";
15
+ import { _ as M } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
16
+ const Q = {
17
+ key: 0,
18
+ class: "flex min-w-0 max-w-200 flex-col gap-group-gap",
19
+ "data-person-signin": ""
20
+ }, fe = /* @__PURE__ */ P({
21
+ __name: "SignIn",
22
+ setup(W) {
23
+ const { t: s } = A(), { http: w, access: y, session: x } = j(), $ = D(), C = U(), { signInAs: u } = q(), g = H(z), l = F(), o = f(() => g.data.value), t = f(() => o.value?.status === "locked"), c = I(!1), S = f(() => {
24
+ const a = G(x.state.value);
25
+ return u !== !1 && y.can(u) && !!o.value?.active && a !== null && a.impersonator === void 0 && a.user.id !== o.value.id;
26
+ });
27
+ async function E() {
28
+ const a = g.id.value;
29
+ if (!(a === null || c.value)) {
30
+ c.value = !0;
31
+ try {
32
+ await w.request(O.usersUnlock, { id: a }), h.success(s("core.users.signin.unlocked")), await l.refresh();
33
+ } catch (i) {
34
+ T(i) || h.error(C(i, { fallback: s("core.users.signin.unlock_failed") }));
35
+ } finally {
36
+ c.value = !1;
37
+ }
38
+ }
39
+ }
40
+ return (a, i) => o.value ? (m(), N("div", Q, [
41
+ n(M, {
42
+ title: e(s)("core.users.sections.signin"),
43
+ description: e(s)("core.users.intro.signin", { name: o.value.name })
44
+ }, null, 8, ["title", "description"]),
45
+ n(e(p), {
46
+ header: e(s)("core.users.signin.lock"),
47
+ footer: e(s)("core.users.signin.lock_footer")
48
+ }, {
49
+ default: r(() => [
50
+ n(e(b), {
51
+ layout: "setting",
52
+ label: t.value ? e(s)("core.users.signin.locked_title") : e(s)("core.users.signin.not_locked"),
53
+ sub: t.value && o.value.locked_until ? e(s)("core.users.signin.unlocks_at", { time: e($).time(o.value.locked_until) }) : e(s)("core.users.signin.not_locked_sub"),
54
+ "data-lock-row": ""
55
+ }, R({
56
+ leading: r(() => [
57
+ n(e(V), {
58
+ tone: t.value ? "anchor" : "neutral",
59
+ icon: "lockLine"
60
+ }, null, 8, ["tone"])
61
+ ]),
62
+ default: r(() => [
63
+ t.value ? (m(), _(e(J), {
64
+ key: 0,
65
+ tone: "critical",
66
+ dot: ""
67
+ }, {
68
+ default: r(() => [
69
+ k(v(e(s)("core.users.status.locked")), 1)
70
+ ]),
71
+ _: 1
72
+ })) : d("", !0)
73
+ ]),
74
+ _: 2
75
+ }, [
76
+ t.value && e(l).can.manage ? {
77
+ name: "trailing",
78
+ fn: r(() => [
79
+ n(e(B), {
80
+ size: "sm",
81
+ processing: c.value,
82
+ "data-unlock": "",
83
+ onClick: E
84
+ }, {
85
+ default: r(() => [
86
+ k(v(e(s)("core.users.signin.unlock")), 1)
87
+ ]),
88
+ _: 1
89
+ }, 8, ["processing"])
90
+ ]),
91
+ key: "0"
92
+ } : void 0
93
+ ]), 1032, ["label", "sub"])
94
+ ]),
95
+ _: 1
96
+ }, 8, ["header", "footer"]),
97
+ e(l).can.manage ? (m(), _(e(p), {
98
+ key: 0,
99
+ header: e(s)("core.users.signin.password"),
100
+ footer: e(s)("core.users.signin.password_footer")
101
+ }, {
102
+ default: r(() => [
103
+ n(K, {
104
+ label: e(s)("core.users.signin.set_password"),
105
+ sub: e(s)("core.users.signin.set_password_sub"),
106
+ "data-set-password": "",
107
+ onClick: i[0] || (i[0] = (X) => e(l).setPassword())
108
+ }, null, 8, ["label", "sub"])
109
+ ]),
110
+ _: 1
111
+ }, 8, ["header", "footer"])) : d("", !0),
112
+ S.value && e(u) !== !1 ? (m(), _(e(p), {
113
+ key: 1,
114
+ header: e(s)("core.users.signin.as_header", { name: o.value.name }),
115
+ footer: e(s)("core.users.signin.as_footer", { name: o.value.name })
116
+ }, {
117
+ default: r(() => [
118
+ n(e(b), {
119
+ layout: "setting",
120
+ label: e(s)("core.users.signin.as_title"),
121
+ sub: e(s)("core.users.signin.as_sub")
122
+ }, {
123
+ trailing: r(() => [
124
+ n(L, {
125
+ "user-id": o.value.id,
126
+ name: o.value.name,
127
+ permission: e(u)
128
+ }, null, 8, ["user-id", "name", "permission"])
129
+ ]),
130
+ _: 1
131
+ }, 8, ["label", "sub"])
132
+ ]),
133
+ _: 1
134
+ }, 8, ["header", "footer"])) : d("", !0)
135
+ ])) : d("", !0);
136
+ }
137
+ });
138
+ export {
139
+ fe as default
140
+ };
@@ -0,0 +1,60 @@
1
+ import { defineComponent as d, openBlock as _, createElementBlock as g, createElementVNode as b, toDisplayString as n, unref as e, createVNode as t, withCtx as s, mergeProps as i, createTextVNode as w } from "vue";
2
+ import { useI18n as x } from "vue-i18n";
3
+ import { useRoute as y, useRouter as h } from "vue-router";
4
+ import { _ as I } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
5
+ import { _ as N } from "./Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js";
6
+ import { _ as S } from "./FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js";
7
+ import { _ as a } from "./TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js";
8
+ import { r as $ } from "./guards-Dve61KjR.js";
9
+ import { u as C, a as E } from "./index-CGv-u1Ws.js";
10
+ const V = { class: "flex flex-1 flex-col items-center justify-center gap-8" }, k = { class: "text-xl font-semibold text-content-strong" }, H = /* @__PURE__ */ d({
11
+ __name: "SignInPage",
12
+ setup(q) {
13
+ const { t: o } = x(), m = y(), c = h(), { home: l } = C(), { form: r, passwordError: u, submit: p } = E();
14
+ async function f() {
15
+ await p() && await c.push($(m) ?? l);
16
+ }
17
+ return (v, B) => (_(), g("div", V, [
18
+ b("h1", k, n(e(o)("core.identity.signin.title")), 1),
19
+ t(e(N), { class: "w-full max-w-md" }, {
20
+ default: s(() => [
21
+ t(e(S), {
22
+ class: "p-1",
23
+ onSubmit: f
24
+ }, {
25
+ default: s(() => [
26
+ t(e(a), i(e(r).bind("login"), {
27
+ label: e(o)("core.identity.username"),
28
+ autocomplete: "username",
29
+ required: ""
30
+ }), null, 16, ["label"]),
31
+ t(e(a), i(e(r).bind("password"), {
32
+ label: e(o)("core.identity.signin.password"),
33
+ type: "password",
34
+ autocomplete: "current-password",
35
+ required: "",
36
+ error: e(u)
37
+ }), null, 16, ["label", "error"]),
38
+ t(e(I), {
39
+ type: "submit",
40
+ prominence: "primary",
41
+ class: "w-full",
42
+ processing: e(r).submitting.value
43
+ }, {
44
+ default: s(() => [
45
+ w(n(e(o)("core.identity.signin.submit")), 1)
46
+ ]),
47
+ _: 1
48
+ }, 8, ["processing"])
49
+ ]),
50
+ _: 1
51
+ })
52
+ ]),
53
+ _: 1
54
+ })
55
+ ]));
56
+ }
57
+ });
58
+ export {
59
+ H as default
60
+ };
@@ -0,0 +1,79 @@
1
+ import { defineComponent as _, computed as p, openBlock as y, createElementBlock as g, createVNode as l, unref as i, withCtx as s, createElementVNode as a, toDisplayString as r, createTextVNode as h } from "vue";
2
+ import { useI18n as b } from "vue-i18n";
3
+ import { _ as f } from "./DataTable.vue_vue_type_script_setup_true_lang-UH6f9puS.js";
4
+ import { _ as v } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
5
+ const w = {
6
+ signed_in: { tone: "positive", byOther: !1 },
7
+ wrong_password: { tone: "critical", byOther: !1 },
8
+ locked_out: { tone: "critical", byOther: !1 },
9
+ refused_inactive: { tone: "critical", byOther: !1 },
10
+ signed_in_as: { tone: "warning", byOther: !0 },
11
+ unlocked: { tone: "neutral", byOther: !0 },
12
+ signed_out_everywhere: { tone: "neutral", byOther: !0 },
13
+ session_revoked: { tone: "neutral", byOther: !0 }
14
+ };
15
+ function d(t) {
16
+ const o = w[t];
17
+ return o ? { ...o, known: !0 } : { tone: "neutral", byOther: !1, known: !1 };
18
+ }
19
+ function k(t, o) {
20
+ const n = d(t);
21
+ return n.known ? n.byOther && o ? `core.account.signins.events_by.${t}` : `core.account.signins.events.${t}` : "core.account.signins.events.unknown";
22
+ }
23
+ const O = {
24
+ class: "overflow-hidden rounded-group bg-surface-cell shadow-group",
25
+ "data-signin-table": ""
26
+ }, x = ["title"], E = { class: "font-mono text-footnote" }, B = {
27
+ class: "px-4 py-8 text-center text-body text-content-muted",
28
+ "data-signin-empty": ""
29
+ }, T = /* @__PURE__ */ _({
30
+ __name: "SignInTable",
31
+ props: {
32
+ rows: {},
33
+ loading: { type: Boolean }
34
+ },
35
+ setup(t) {
36
+ const o = t, { t: n } = b(), u = p(() => [
37
+ { key: "created_at", label: n("core.account.signins.columns.time"), kind: "timestamp", width: 170, mobile: "meta" },
38
+ { key: "event", label: n("core.account.signins.columns.event"), mobile: "primary" },
39
+ { key: "device", label: n("core.account.signins.columns.device"), hideBelow: "md", width: 320, mobile: "hidden" },
40
+ { key: "ip", label: n("core.account.signins.columns.ip"), hideBelow: "md", width: 140, mobile: "hidden" }
41
+ ]), m = (c) => n(k(c.event, c.actor?.name || null), { name: c.actor?.name ?? "" });
42
+ return (c, I) => (y(), g("div", O, [
43
+ l(i(f), {
44
+ rows: o.rows,
45
+ columns: u.value,
46
+ "row-key": (e) => e.id,
47
+ loading: o.loading
48
+ }, {
49
+ "cell-event": s(({ item: e }) => [
50
+ l(i(v), {
51
+ tone: i(d)(e.event).tone,
52
+ "data-event": e.event
53
+ }, {
54
+ default: s(() => [
55
+ h(r(m(e)), 1)
56
+ ]),
57
+ _: 2
58
+ }, 1032, ["tone", "data-event"])
59
+ ]),
60
+ "cell-device": s(({ item: e }) => [
61
+ a("span", {
62
+ class: "block truncate",
63
+ title: e.device
64
+ }, r(e.device || "—"), 9, x)
65
+ ]),
66
+ "cell-ip": s(({ item: e }) => [
67
+ a("span", E, r(e.ip || "—"), 1)
68
+ ]),
69
+ empty: s(() => [
70
+ a("p", B, r(i(n)("core.account.signins.empty")), 1)
71
+ ]),
72
+ _: 1
73
+ }, 8, ["rows", "columns", "row-key", "loading"])
74
+ ]));
75
+ }
76
+ });
77
+ export {
78
+ T as _
79
+ };