@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,276 @@
1
+ var J = Object.defineProperty;
2
+ var Q = (a, e, s) => e in a ? J(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
3
+ var I = (a, e, s) => Q(a, typeof e != "symbol" ? e + "" : e, s);
4
+ import { shallowRef as M, computed as x, toRaw as X, reactive as Z, ref as Y, defineComponent as K, watch as ee, nextTick as te, openBlock as b, createBlock as re, withCtx as se, createElementBlock as O, toDisplayString as A, createCommentVNode as E, Fragment as U, createElementVNode as P, normalizeClass as ae, unref as R, renderList as ne, createTextVNode as V } from "vue";
5
+ import { useI18n as G } from "vue-i18n";
6
+ import { i as le, a as q } from "./error-CD7x0Jrz.js";
7
+ import { _ as ie } from "./Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js";
8
+ class ue {
9
+ constructor() {
10
+ I(this, "messages", M({}));
11
+ /** How many fields have a message. */
12
+ I(this, "count", x(() => Object.keys(this.messages.value).length));
13
+ }
14
+ /** Replaces everything. Empty lists are dropped. */
15
+ set(e) {
16
+ this.messages.value = Object.fromEntries(Object.entries(e).filter(([, s]) => s.length > 0).map(([s, t]) => [s, [...t]]));
17
+ }
18
+ add(e, s) {
19
+ this.messages.value = { ...this.messages.value, [e]: [...this.messages.value[e] ?? [], s] };
20
+ }
21
+ /** Clears one field (and its nested paths), or everything. */
22
+ clear(e) {
23
+ if (e === void 0) {
24
+ this.count.value > 0 && (this.messages.value = {});
25
+ return;
26
+ }
27
+ const s = Object.fromEntries(Object.entries(this.messages.value).filter(([t]) => t !== e && !t.startsWith(`${e}.`)));
28
+ Object.keys(s).length !== this.count.value && (this.messages.value = s);
29
+ }
30
+ /** Whether the field, or a value inside it (`items.0.quantity` for `items`), has a message. */
31
+ has(e) {
32
+ return this.first(e) !== void 0 || Object.keys(this.messages.value).some((s) => s.startsWith(`${e}.`));
33
+ }
34
+ first(e) {
35
+ return this.messages.value[e]?.[0];
36
+ }
37
+ all() {
38
+ return this.messages.value;
39
+ }
40
+ }
41
+ function f(a) {
42
+ const e = X(a);
43
+ return e === null || typeof e != "object" ? e : e instanceof Date ? new Date(e.getTime()) : typeof Blob < "u" && e instanceof Blob ? e : Array.isArray(e) ? e.map(f) : Object.fromEntries(Object.entries(e).map(([s, t]) => [s, f(t)]));
44
+ }
45
+ function S(a, e) {
46
+ const s = a, t = e;
47
+ if (Object.is(s, t)) return !0;
48
+ if (s === null || t === null || typeof s != "object" || typeof t != "object") return !1;
49
+ if (s instanceof Date || t instanceof Date) return s instanceof Date && t instanceof Date && s.getTime() === t.getTime();
50
+ if (Array.isArray(s) || Array.isArray(t))
51
+ return Array.isArray(s) && Array.isArray(t) && s.length === t.length && s.every((c, d) => S(c, t[d]));
52
+ if (typeof Blob < "u" && (s instanceof Blob || t instanceof Blob)) return !1;
53
+ const l = (c) => Object.keys(c).filter((d) => c[d] !== void 0), o = l(s);
54
+ return o.length === l(t).length && o.every((c) => S(s[c], t[c]));
55
+ }
56
+ function W(a) {
57
+ const e = {};
58
+ for (const s of a) {
59
+ const t = s.path.map(String).join(".");
60
+ (e[t] ?? (e[t] = [])).push(s.message);
61
+ }
62
+ return e;
63
+ }
64
+ const oe = (a) => a.split(".")[0] ?? a, L = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).slice(2)}`;
65
+ function ye(a) {
66
+ const { t: e } = G(), t = Z(f(typeof a.defaults == "function" ? a.defaults() : a.defaults)), l = M(f(t)), o = new ue(), c = Y(!1), d = M(null), v = x(() => !S(t, l.value));
67
+ let j = null, h = L();
68
+ function y(r) {
69
+ const n = t;
70
+ for (const i of Object.keys(n)) i in r || delete n[i];
71
+ Object.assign(n, f(r));
72
+ }
73
+ function D() {
74
+ o.clear(), d.value = null;
75
+ }
76
+ function _(r, n) {
77
+ const i = q(n) ? n.requestId : null, u = a.failureMessage?.(r, n) ?? e(`core.form.failure.${r}`);
78
+ return d.value = { kind: r, message: u, requestId: i, error: n };
79
+ }
80
+ function B(r, n = !1) {
81
+ const { translate: i, serverField: u } = a, w = n && u ? Object.entries(r).map(([m, g]) => [u(m), g]) : Object.entries(r);
82
+ o.set(Object.fromEntries(i ? w.map(([m, g]) => [m, g.map((F) => i(F, m))]) : w));
83
+ }
84
+ function T() {
85
+ if (o.clear(), !a.validator) return f(t);
86
+ const r = a.validator.safeParse(f(t));
87
+ return r.success ? r.data : (B(W(r.error.issues)), null);
88
+ }
89
+ function C(r) {
90
+ if (o.clear(), !a.validator) return !0;
91
+ const n = a.validator.safeParse(f(t));
92
+ if (n.success) return !0;
93
+ const i = Object.fromEntries(Object.entries(W(n.error.issues)).filter(([u]) => r.includes(oe(u))));
94
+ return B(i), Object.keys(i).length === 0;
95
+ }
96
+ function H(r) {
97
+ if (!q(r)) return "failed";
98
+ switch (r.kind) {
99
+ case "validation":
100
+ return "invalid";
101
+ case "conflict":
102
+ return "conflict";
103
+ case "forbidden":
104
+ return "forbidden";
105
+ case "unauthorized":
106
+ return "unauthorized";
107
+ case "network":
108
+ return "offline";
109
+ default:
110
+ return "failed";
111
+ }
112
+ }
113
+ async function z(r, n, i, u) {
114
+ if (j) return j;
115
+ const m = (async () => {
116
+ d.value = null;
117
+ const g = r();
118
+ if (g === null) return { status: "failed", failure: _("invalid", null) };
119
+ const F = f(t);
120
+ let k;
121
+ c.value = !0;
122
+ try {
123
+ k = await n(g, { idempotencyKey: h });
124
+ } catch (p) {
125
+ if (c.value = !1, le(p)) return { status: "aborted" };
126
+ const N = H(p);
127
+ return N === "invalid" && q(p) && B(p.fields, !0), { status: "failed", failure: _(N, p) };
128
+ }
129
+ const $ = u?.hydrateFrom?.(k) ?? null;
130
+ $ ? (y($), l.value = f($), o.clear()) : i(k, F);
131
+ try {
132
+ await u?.refresh?.(k);
133
+ } catch (p) {
134
+ return _("refresh", p), { status: "saved-refresh-failed", value: k, error: p };
135
+ } finally {
136
+ c.value = !1;
137
+ }
138
+ return { status: "saved", value: k };
139
+ })().finally(() => {
140
+ j = null, h = L();
141
+ });
142
+ return j = m, m;
143
+ }
144
+ return {
145
+ values: t,
146
+ errors: o,
147
+ dirty: v,
148
+ submitting: c,
149
+ failure: d,
150
+ bind(r) {
151
+ return {
152
+ get modelValue() {
153
+ return t[r];
154
+ },
155
+ "onUpdate:modelValue"(n) {
156
+ t[r] = n, o.clear(r);
157
+ },
158
+ get error() {
159
+ return o.first(r);
160
+ },
161
+ "data-field-key": r
162
+ };
163
+ },
164
+ bindMonthYear(r, n) {
165
+ const i = t;
166
+ return {
167
+ get month() {
168
+ return i[r] ?? null;
169
+ },
170
+ get year() {
171
+ return i[n] ?? null;
172
+ },
173
+ "onUpdate:month"(u) {
174
+ i[r] = u, o.clear(r);
175
+ },
176
+ "onUpdate:year"(u) {
177
+ i[n] = u, o.clear(n);
178
+ },
179
+ get error() {
180
+ return o.first(r) ?? o.first(n);
181
+ },
182
+ "data-field-key": `${r} ${n}`
183
+ };
184
+ },
185
+ hydrate(r) {
186
+ y(r), l.value = f(r), D();
187
+ },
188
+ reset() {
189
+ y(l.value), D();
190
+ },
191
+ markClean() {
192
+ l.value = f(t);
193
+ },
194
+ validate: T,
195
+ check: C,
196
+ submit: (r, n) => z(T, r, (i, u) => l.value = u, n),
197
+ submitFields: (r, n, i) => z(
198
+ () => C(r) ? Object.fromEntries(r.map((u) => [u, f(t[u])])) : null,
199
+ n,
200
+ (u, w) => {
201
+ const m = f(l.value);
202
+ for (const g of r) m[g] = f(w[g]);
203
+ l.value = m;
204
+ },
205
+ i
206
+ ),
207
+ dismissFailure() {
208
+ d.value = null;
209
+ }
210
+ };
211
+ }
212
+ const ce = {
213
+ key: 0,
214
+ class: "text-footnote font-medium"
215
+ }, fe = {
216
+ class: "mt-1 list-inside list-disc text-footnote",
217
+ "data-test": "form-errors-hidden"
218
+ }, de = {
219
+ key: 2,
220
+ class: "mt-1 text-caption text-content-muted"
221
+ }, be = /* @__PURE__ */ K({
222
+ __name: "FormErrors",
223
+ props: {
224
+ form: {},
225
+ label: { type: Function, default: (a) => a },
226
+ scope: { default: null }
227
+ },
228
+ setup(a) {
229
+ const e = a, { t: s } = G(), t = Y([]);
230
+ ee(
231
+ () => e.form.errors.all(),
232
+ async (c) => {
233
+ await te();
234
+ const d = e.scope ?? document, v = new Set([...d.querySelectorAll("[data-field-key]")].flatMap((h) => (h.getAttribute("data-field-key") ?? "").split(/\s+/))), j = (h) => h.split(".").some((y, D, _) => v.has(_.slice(0, D + 1).join(".")));
235
+ t.value = Object.entries(c).flatMap(([h, y]) => y[0] && !j(h) ? [{ field: h, message: y[0] }] : []);
236
+ },
237
+ { immediate: !0 }
238
+ );
239
+ const l = x(() => e.form.failure.value), o = x(() => l.value?.kind === "conflict" || l.value?.kind === "refresh" ? "warning" : "critical");
240
+ return (c, d) => l.value || t.value.length ? (b(), re(ie, {
241
+ key: 0,
242
+ tone: l.value ? o.value : "warning",
243
+ "data-test": "form-errors"
244
+ }, {
245
+ default: se(() => [
246
+ l.value ? (b(), O("p", ce, A(l.value.message), 1)) : E("", !0),
247
+ t.value.length ? (b(), O(U, { key: 1 }, [
248
+ P("p", {
249
+ class: ae(["text-footnote", l.value ? "mt-1" : "font-medium"])
250
+ }, A(R(s)("core.form.errors.hidden_title")), 3),
251
+ P("ul", fe, [
252
+ (b(!0), O(U, null, ne(t.value, (v) => (b(), O("li", {
253
+ key: v.field
254
+ }, [
255
+ V(A(v.field ? e.label(v.field) : ""), 1),
256
+ v.field ? (b(), O(U, { key: 0 }, [
257
+ V(": ")
258
+ ], 64)) : E("", !0),
259
+ V(A(v.message), 1)
260
+ ]))), 128))
261
+ ])
262
+ ], 64)) : E("", !0),
263
+ l.value?.requestId ? (b(), O("p", de, A(R(s)("core.form.errors.request", { id: l.value.requestId })), 1)) : E("", !0)
264
+ ]),
265
+ _: 1
266
+ }, 8, ["tone"])) : E("", !0);
267
+ }
268
+ });
269
+ export {
270
+ ue as E,
271
+ be as _,
272
+ f as c,
273
+ oe as f,
274
+ S as s,
275
+ ye as u
276
+ };
@@ -0,0 +1,136 @@
1
+ import { defineComponent as B, openBlock as d, createBlock as L, withCtx as N, createTextVNode as v, toDisplayString as m, unref as h, createCommentVNode as i, inject as C, provide as y, ref as R, useSlots as O, computed as n, shallowReactive as E, useTemplateRef as V, useId as A, createElementBlock as p, normalizeStyle as M, normalizeClass as G, createElementVNode as S, renderSlot as f } from "vue";
2
+ import { s as T, u as W } from "./sectionIndex-BS0ic5W7.js";
3
+ import { d as $, g as j } from "./control-7EP4tjYy.js";
4
+ import { useI18n as D } from "vue-i18n";
5
+ import { _ as q } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
6
+ const H = /* @__PURE__ */ B({
7
+ __name: "GroupEditAction",
8
+ props: {
9
+ allowed: { type: Boolean, default: !0 },
10
+ locked: { type: Boolean, default: !1 },
11
+ label: { default: void 0 }
12
+ },
13
+ emits: ["click"],
14
+ setup(s, { emit: e }) {
15
+ const t = s, o = e, { t: a } = D();
16
+ return (k, l) => t.allowed && !t.locked ? (d(), L(q, {
17
+ key: 0,
18
+ prominence: "plain",
19
+ size: "sm",
20
+ "data-test": "group-edit",
21
+ onClick: l[0] || (l[0] = (c) => o("click"))
22
+ }, {
23
+ default: N(() => [
24
+ v(m(t.label ?? h(a)("core.actions.edit")), 1)
25
+ ]),
26
+ _: 1
27
+ })) : i("", !0);
28
+ }
29
+ }), F = Symbol("vue-core.recordGroups"), J = () => C(F, null);
30
+ function P() {
31
+ const s = /* @__PURE__ */ new Map();
32
+ return {
33
+ register(e, t) {
34
+ const o = s.get(t) ?? /* @__PURE__ */ new Map();
35
+ return o.set(e, (o.get(e) ?? 0) + 1), s.set(t, o), () => {
36
+ const a = (o.get(e) ?? 1) - 1;
37
+ a <= 0 ? o.delete(e) : o.set(e, a);
38
+ };
39
+ },
40
+ groupOf: (e) => s.get(e)?.keys().next().value,
41
+ fieldsOf: (e) => [...s.entries()].filter(([, t]) => t.has(e)).map(([t]) => t)
42
+ };
43
+ }
44
+ function le(s) {
45
+ const e = P();
46
+ return y(F, {
47
+ only: R(null),
48
+ edit: (t, o) => s.edit(t, o),
49
+ editLabel: s.editLabel ? (t) => s.editLabel?.(t) : void 0,
50
+ register: (t, o) => e.register(t, o)
51
+ }), e;
52
+ }
53
+ const Q = ["id"], U = {
54
+ key: 0,
55
+ class: "flex min-w-0 items-end gap-2 px-row-inset pb-2"
56
+ }, X = { class: "min-w-0 flex-1 text-subheadline font-semibold text-content-strong compact:text-footnote compact:font-normal compact:uppercase compact:tracking-wide compact:text-content-muted" }, Y = { class: "form-group-cell rounded-group bg-surface-cell shadow-group" }, Z = {
57
+ key: 1,
58
+ class: "px-row-inset pt-2 text-footnote text-content-muted text-pretty"
59
+ }, ae = /* @__PURE__ */ B({
60
+ __name: "FormGroup",
61
+ props: {
62
+ header: { default: void 0 },
63
+ footer: { default: void 0 },
64
+ hideEmpty: { type: Boolean, default: !0 },
65
+ labelWidth: { default: "11rem" },
66
+ section: { type: Boolean, default: !1 },
67
+ anchor: { default: void 0 },
68
+ editable: { type: Boolean, default: void 0 },
69
+ lockedFooter: { default: void 0 },
70
+ group: { default: void 0 }
71
+ },
72
+ setup(s) {
73
+ const e = s, t = O(), o = C($, R(!0));
74
+ y($, n(() => o.value && e.editable !== !1));
75
+ const a = E(/* @__PURE__ */ new Set()), k = n(() => [...a].some((r) => r.value)), l = J(), c = E(/* @__PURE__ */ new Set()), z = n(() => c.size > 0 && [...c].every((r) => r.value)), I = n(() => !l?.only.value || l.only.value === e.group), g = n(() => e.group && l?.edit && !z.value ? l.edit(e.group, e.header ?? "") : null), K = n(() => !!e.group && l?.only.value === e.group);
76
+ y(j, {
77
+ hideEmpty: n(() => e.hideEmpty),
78
+ registerLocked(r) {
79
+ return a.add(r), () => a.delete(r);
80
+ },
81
+ registerField(r, u) {
82
+ c.add(u);
83
+ const x = e.group && r && l?.register ? l.register(e.group, r) : null;
84
+ return () => {
85
+ c.delete(u), x?.();
86
+ };
87
+ }
88
+ });
89
+ const b = n(() => k.value ? e.lockedFooter : void 0), _ = V("root"), w = e.anchor ?? (T(e.header ?? "") || `group-${A()}`);
90
+ return e.section && W(w, () => e.header ?? "", _), (r, u) => I.value ? (d(), p("section", {
91
+ key: 0,
92
+ ref_key: "root",
93
+ ref: _,
94
+ id: e.section ? h(w) : void 0,
95
+ "data-test": "form-group",
96
+ class: G(["form-group flex min-w-0 flex-col has-[>.form-group-cell:empty]:hidden", { "scroll-mt-4": e.section }]),
97
+ style: M({ "--form-label-width": e.labelWidth })
98
+ }, [
99
+ !K.value && (e.header || t.header || t["header-trailing"] || g.value) ? (d(), p("header", U, [
100
+ S("h3", X, [
101
+ f(r.$slots, "header", {}, () => [
102
+ v(m(e.header), 1)
103
+ ])
104
+ ]),
105
+ f(r.$slots, "header-trailing", {}, () => [
106
+ g.value ? (d(), L(H, {
107
+ key: 0,
108
+ label: e.group ? h(l)?.editLabel?.(e.group) : void 0,
109
+ onClick: u[0] || (u[0] = (x) => g.value())
110
+ }, null, 8, ["label"])) : i("", !0)
111
+ ])
112
+ ])) : i("", !0),
113
+ S("div", Y, [
114
+ f(r.$slots, "default")
115
+ ]),
116
+ e.footer || t.footer ? (d(), p("p", Z, [
117
+ f(r.$slots, "footer", {}, () => [
118
+ v(m(e.footer), 1)
119
+ ])
120
+ ])) : i("", !0),
121
+ b.value ? (d(), p("p", {
122
+ key: 2,
123
+ "data-test": "form-group-locked-footer",
124
+ class: G(["px-row-inset text-footnote text-content-muted text-pretty", e.footer || t.footer ? "pt-1" : "pt-2"])
125
+ }, m(b.value), 3)) : i("", !0)
126
+ ], 14, Q)) : i("", !0);
127
+ }
128
+ });
129
+ export {
130
+ ae as _,
131
+ H as a,
132
+ P as c,
133
+ le as p,
134
+ F as r,
135
+ J as u
136
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as n, provide as f, computed as s, useTemplateRef as u, openBlock as t, createElementBlock as p, withModifiers as c, createBlock as d, createCommentVNode as b, renderSlot as _ } from "vue";
2
+ import { d as v } from "./control-7EP4tjYy.js";
3
+ import { _ as k } from "./FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js";
4
+ const x = /* @__PURE__ */ n({
5
+ __name: "FormView",
6
+ props: {
7
+ form: { default: void 0 },
8
+ editable: { type: Boolean, default: !0 },
9
+ fieldLabel: { type: Function, default: void 0 }
10
+ },
11
+ emits: ["submit"],
12
+ setup(r, { emit: i }) {
13
+ const e = r, l = i;
14
+ f(v, s(() => e.editable));
15
+ const o = u("root");
16
+ function m() {
17
+ e.form?.submitting.value || !e.editable || l("submit");
18
+ }
19
+ return (a, y) => (t(), p("form", {
20
+ ref_key: "root",
21
+ ref: o,
22
+ class: "flex min-w-0 flex-col gap-group-gap",
23
+ novalidate: "",
24
+ onSubmit: c(m, ["prevent"])
25
+ }, [
26
+ e.form ? (t(), d(k, {
27
+ key: 0,
28
+ form: e.form,
29
+ label: e.fieldLabel,
30
+ scope: o.value
31
+ }, null, 8, ["form", "label", "scope"])) : b("", !0),
32
+ _(a.$slots, "default")
33
+ ], 544));
34
+ }
35
+ });
36
+ export {
37
+ x as _
38
+ };
@@ -0,0 +1,145 @@
1
+ import { defineComponent as R, computed as N, openBlock as i, createElementBlock as k, createVNode as o, unref as e, withCtx as u, mergeProps as c, createBlock as b, createCommentVNode as d, createElementVNode as p, toDisplayString as v, createTextVNode as S } from "vue";
2
+ import { useI18n as V } from "vue-i18n";
3
+ import { RouterLink as B } from "vue-router";
4
+ import { u as E } from "./format-B8mJm946.js";
5
+ import { u as T } from "./useResourceForm-D1hIpwW5.js";
6
+ import { _ as h } from "./FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js";
7
+ import { _ as F } from "./FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js";
8
+ import { _ as L } from "./SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js";
9
+ import { _ as f } from "./TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js";
10
+ import { u as A } from "./useSaveChrome-chi6D3HY.js";
11
+ import { P as D, b as G, i as I } from "./index-CGv-u1Ws.js";
12
+ import { t as M } from "./toast-D9Z5To38.js";
13
+ import { u as O } from "./platform-q3cjODLx.js";
14
+ import { b as U } from "./routeResource-DstM0hvf.js";
15
+ import { u as j } from "./fieldMessages-C3Rpbktw.js";
16
+ import { _ as $ } from "./ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js";
17
+ import { _ as z } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
18
+ import { u as H } from "./languages-BShG9LpE.js";
19
+ const J = {
20
+ class: "flex min-w-0 max-w-200 flex-col gap-group-gap",
21
+ "data-person-general": ""
22
+ }, K = {
23
+ key: 1,
24
+ class: "flex flex-wrap items-center gap-x-1.5 px-row-inset text-footnote text-content-muted",
25
+ "data-person-audit": ""
26
+ }, fe = /* @__PURE__ */ R({
27
+ __name: "General",
28
+ setup(Q) {
29
+ const { t: a } = V(), { http: q } = O(), w = E(), _ = U(D), n = G(), C = H(), x = (t) => t === null || t.trim() === "", P = {
30
+ safeParse(t) {
31
+ const s = t, m = ["login", "name", "email", "locale"].filter((g) => x(s[g])).map((g) => ({ path: [g], message: a("core.account.validation.required") }));
32
+ return m.length > 0 ? { success: !1, error: { issues: m } } : { success: !0, data: { ...s, locale: s.locale ?? "", phone: x(s.phone) ? void 0 : s.phone } };
33
+ }
34
+ }, r = T({
35
+ ...j(),
36
+ source: _,
37
+ defaults: () => ({ login: "", name: "", email: "", phone: "", locale: null }),
38
+ validator: P,
39
+ toValues: (t) => ({ login: t.login, name: t.name, email: t.email, phone: t.phone, locale: t.locale }),
40
+ save: async (t, s) => (await q.request(I.usersUpdate, { id: s.id, ...t })).data
41
+ });
42
+ async function y() {
43
+ const t = await r.save();
44
+ (t.status === "saved" || t.status === "saved-refresh-failed") && M.success(a("core.users.general.saved"));
45
+ }
46
+ A({ form: r, allowed: () => n.can.manage, ready: () => _.data.value !== null, save: y, cancel: () => r.reset() });
47
+ const l = N(() => _.data.value);
48
+ return (t, s) => (i(), k("div", J, [
49
+ o(z, {
50
+ title: e(a)("core.users.sections.general"),
51
+ description: e(a)("core.users.intro.general")
52
+ }, null, 8, ["title", "description"]),
53
+ o(e(F), {
54
+ form: e(r),
55
+ editable: e(n).can.manage,
56
+ onSubmit: y
57
+ }, {
58
+ default: u(() => [
59
+ o(e(h), {
60
+ header: e(a)("core.users.groups.person"),
61
+ footer: e(a)("core.users.groups.person_footer"),
62
+ "label-width": "14rem"
63
+ }, {
64
+ default: u(() => [
65
+ o(e(f), c(e(r).bind("name"), {
66
+ label: e(a)("core.users.fields.name"),
67
+ required: ""
68
+ }), null, 16, ["label"]),
69
+ o(e(f), c(e(r).bind("login"), {
70
+ label: e(a)("core.users.fields.login"),
71
+ required: "",
72
+ mono: ""
73
+ }), null, 16, ["label"]),
74
+ o(e(L), c(e(r).bind("locale"), {
75
+ label: e(a)("core.users.fields.locale"),
76
+ options: e(C),
77
+ required: ""
78
+ }), null, 16, ["label", "options"])
79
+ ]),
80
+ _: 1
81
+ }, 8, ["header", "footer"]),
82
+ o(e(h), {
83
+ header: e(a)("core.users.groups.contact"),
84
+ "label-width": "14rem"
85
+ }, {
86
+ default: u(() => [
87
+ o(e(f), c(e(r).bind("email"), {
88
+ label: e(a)("core.users.fields.email"),
89
+ type: "email",
90
+ required: ""
91
+ }), null, 16, ["label"]),
92
+ o(e(f), c(e(r).bind("phone"), {
93
+ label: e(a)("core.users.fields.phone"),
94
+ type: "tel"
95
+ }), null, 16, ["label"])
96
+ ]),
97
+ _: 1
98
+ }, 8, ["header"])
99
+ ]),
100
+ _: 1
101
+ }, 8, ["form", "editable"]),
102
+ e(n).can.deactivate || e(n).can.activate ? (i(), b(e(h), {
103
+ key: 0,
104
+ "data-person-actions": ""
105
+ }, {
106
+ default: u(() => [
107
+ e(n).can.deactivate ? (i(), b($, {
108
+ key: 0,
109
+ label: e(a)("core.users.actions.deactivate"),
110
+ sub: e(a)("core.users.deactivate.row_sub"),
111
+ tone: "critical",
112
+ "data-deactivate-row": "",
113
+ onClick: s[0] || (s[0] = (m) => e(n).deactivate())
114
+ }, null, 8, ["label", "sub"])) : d("", !0),
115
+ e(n).can.activate ? (i(), b($, {
116
+ key: 1,
117
+ label: e(a)("core.users.actions.activate"),
118
+ sub: e(a)("core.users.activate.row_sub"),
119
+ "data-activate-row": "",
120
+ onClick: s[1] || (s[1] = (m) => e(n).activate())
121
+ }, null, 8, ["label", "sub"])) : d("", !0)
122
+ ]),
123
+ _: 1
124
+ })) : d("", !0),
125
+ l.value ? (i(), k("p", K, [
126
+ p("span", null, v(e(a)("core.users.general.created", { when: e(w).dateTime(l.value.created_at) })), 1),
127
+ s[2] || (s[2] = p("span", { "aria-hidden": "true" }, "·", -1)),
128
+ p("span", null, v(l.value.last_sign_in ? e(a)("core.users.general.last_sign_in", { when: e(w).dateTime(l.value.last_sign_in) }) : e(a)("core.users.general.never_signed_in")), 1),
129
+ s[3] || (s[3] = p("span", { "aria-hidden": "true" }, "·", -1)),
130
+ o(e(B), {
131
+ to: { name: "users.record.changes", params: { id: l.value.id }, query: t.$route.query },
132
+ class: "text-content-link"
133
+ }, {
134
+ default: u(() => [
135
+ S(v(e(a)("core.users.general.all_changes")), 1)
136
+ ]),
137
+ _: 1
138
+ }, 8, ["to"])
139
+ ])) : d("", !0)
140
+ ]));
141
+ }
142
+ });
143
+ export {
144
+ fe as default
145
+ };
@@ -0,0 +1,45 @@
1
+ import { defineComponent as c, inject as d, computed as u, openBlock as a, createBlock as m, resolveDynamicComponent as f, unref as o, mergeProps as b, withCtx as g, createVNode as h, createElementBlock as n, normalizeClass as v, toDisplayString as x, createCommentVNode as k } from "vue";
2
+ import { RouterLink as p } from "vue-router";
3
+ import { _ as y } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
4
+ import { h as z } from "./AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js";
5
+ const C = {
6
+ key: 1,
7
+ "aria-hidden": "true",
8
+ "data-header-action-badge": "",
9
+ class: "absolute -top-0.5 -right-0.5 min-w-4 rounded-full bg-status-danger-solid px-1 text-center text-3xs leading-4 font-semibold text-white"
10
+ }, S = /* @__PURE__ */ c({
11
+ __name: "HeaderAction",
12
+ props: {
13
+ label: {},
14
+ icon: {},
15
+ to: {},
16
+ badge: {}
17
+ },
18
+ emits: ["click"],
19
+ setup(e, { emit: r }) {
20
+ const l = r, s = d(z, "bar"), t = u(() => s === "rail");
21
+ return (w, i) => (a(), m(f(e.to ? o(p) : "button"), b(e.to ? { to: e.to } : { type: "button" }, {
22
+ "aria-label": e.label,
23
+ "data-header-action": "",
24
+ class: ["hit-target relative flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", t.value ? "size-9 text-gray-300 hover:bg-white/10 hover:text-white" : "size-8 text-content-link active:bg-tint-soft"],
25
+ onClick: i[0] || (i[0] = (B) => l("click"))
26
+ }), {
27
+ default: g(() => [
28
+ h(o(y), {
29
+ name: e.icon,
30
+ size: t.value ? 20 : 18
31
+ }, null, 8, ["name", "size"]),
32
+ e.badge === "dot" ? (a(), n("span", {
33
+ key: 0,
34
+ "aria-hidden": "true",
35
+ "data-header-action-badge": "",
36
+ class: v(["absolute top-1 right-1 size-2.5 rounded-full bg-status-danger-solid ring-2", t.value ? "ring-anchor-900" : "ring-surface-page"])
37
+ }, null, 2)) : e.badge !== void 0 ? (a(), n("span", C, x(e.badge), 1)) : k("", !0)
38
+ ]),
39
+ _: 1
40
+ }, 16, ["aria-label", "class"]));
41
+ }
42
+ });
43
+ export {
44
+ S as _
45
+ };