@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
package/dist/app/index.js CHANGED
@@ -1,66 +1,72 @@
1
- var ke = Object.defineProperty;
2
- var Ee = (e, a, n) => a in e ? ke(e, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[a] = n;
3
- var Y = (e, a, n) => Ee(e, typeof a != "symbol" ? a + "" : a, n);
4
- import { effectScope as D, watch as P, defineComponent as ue, openBlock as Se, createElementBlock as Le, createVNode as Z, unref as _, withCtx as ee, createTextVNode as xe, toDisplayString as Ae, shallowRef as Me, computed as Re, h as te, createApp as je } from "vue";
5
- import { useI18n as Ne, createI18n as Oe } from "vue-i18n";
6
- import { createRouter as Te, isNavigationFailure as _e } from "vue-router";
7
- import { i as Ce, a as se } from "../environment-D3nozt9a.js";
8
- import { b as Ct } from "../environment-D3nozt9a.js";
9
- import { c as Ke, i as Ie, f as Fe } from "../format-B8mJm946.js";
10
- import { coreMessages as oe, createMessageRuntime as We } from "../i18n/index.js";
11
- import { i as qe, a as De } from "../Icon.vue_vue_type_script_lang-DtC4_mkz.js";
12
- import { a as Pe, i as Be, p as He, b as Ve } from "../chrome-D9pwD6iS.js";
13
- import { i as Ge, f as Je } from "../platform-jqlKVJ2e.js";
14
- import { c as ze, A as Qe, r as ne } from "../access-DdRFrVV1.js";
15
- import { c as Ue, _ as Xe, i as Ye } from "../NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js";
16
- import { b as Ze, c as et, n as re } from "../navigation-B33ikiCS.js";
17
- import { i as tt, c as st, s as ae } from "../feature-DyDtyMLU.js";
18
- import { S as It, d as Ft, p as Wt } from "../feature-DyDtyMLU.js";
19
- import { _ as ot } from "../Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js";
20
- import { _ as nt } from "../EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js";
21
- function rt(e) {
22
- const { platform: a } = e, n = D();
23
- let i = null, h = null, y = !1;
24
- function $(l, d) {
25
- const g = new AbortController(), u = { controller: g, stops: [] };
26
- for (const p of l)
1
+ var Ee = Object.defineProperty;
2
+ var xe = (e, a, r) => a in e ? Ee(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r;
3
+ var Z = (e, a, r) => xe(e, typeof a != "symbol" ? a + "" : a, r);
4
+ import { effectScope as W, watch as B, defineComponent as fe, openBlock as Se, createElementBlock as Re, createVNode as ee, unref as K, withCtx as te, createTextVNode as Me, toDisplayString as Ae, shallowRef as je, computed as Le, h as se, createApp as Ne } from "vue";
5
+ import { useI18n as Oe, createI18n as Ce } from "vue-i18n";
6
+ import { createRouter as Ke, isNavigationFailure as _e } from "vue-router";
7
+ import { i as Ie } from "../leaveGuard-Cc8yeLxM.js";
8
+ import { c as Fe, i as Te, f as qe } from "../format-B8mJm946.js";
9
+ import { coreMessages as oe, createMessageRuntime as Pe } from "../i18n/index.js";
10
+ import { i as We, a as Be } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
11
+ import { i as De, b as He } from "../bottomDock-BZEiOPYZ.js";
12
+ import { i as Ve, p as Ge } from "../chrome-BS3xJcad.js";
13
+ import { i as Je, g as ze } from "../platform-q3cjODLx.js";
14
+ import { c as Qe, A as Ue, r as re } from "../access-DdRFrVV1.js";
15
+ import { c as Xe, _ as Ye } from "../NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js";
16
+ import { i as Ze } from "../guards-Dve61KjR.js";
17
+ import { b as et, c as tt, n as ne } from "../navigation-Cm3iChlR.js";
18
+ import { c as st, s as ae } from "../contributions-DsfmDoRD.js";
19
+ import { S as Tt } from "../contributions-DsfmDoRD.js";
20
+ import { a as ie } from "../environment-Dva-SG8D.js";
21
+ import { u as Pt } from "../environment-Dva-SG8D.js";
22
+ import { _ as ot } from "../Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
23
+ import { _ as rt } from "../EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
24
+ import { i as nt } from "../feature-DdUAfyi4.js";
25
+ import { d as Bt, p as Dt } from "../feature-DdUAfyi4.js";
26
+ import { k as Vt } from "../keepAlive-WYQGRhuz.js";
27
+ function at(e) {
28
+ const { platform: a } = e, r = W();
29
+ let i = null, w = null, v = !1;
30
+ function k(l, m) {
31
+ const h = new AbortController(), u = { controller: h, stops: [] };
32
+ for (const E of l)
27
33
  try {
28
- const b = d(p, g.signal);
29
- typeof b == "function" && u.stops.push({ owned: p, stop: b });
30
- } catch (b) {
31
- e.onError(b, p);
34
+ const $ = m(E, h.signal);
35
+ typeof $ == "function" && u.stops.push({ owned: E, stop: $ });
36
+ } catch ($) {
37
+ e.onError($, E);
32
38
  }
33
39
  return u;
34
40
  }
35
- function k(l) {
41
+ function R(l) {
36
42
  if (l) {
37
43
  l.controller.abort();
38
- for (const { owned: d, stop: g } of l.stops.reverse())
44
+ for (const { owned: m, stop: h } of l.stops.reverse())
39
45
  try {
40
- g();
46
+ h();
41
47
  } catch (u) {
42
- e.onError(u, d);
48
+ e.onError(u, m);
43
49
  }
44
50
  }
45
51
  }
46
- const E = (l) => e.effects.filter((d) => d.effect.scope === l), x = (l) => l.status !== "authenticated" ? null : e.sessionKey ? e.sessionKey(l) : String(l.user.id);
52
+ const j = (l) => e.effects.filter((m) => m.effect.scope === l), M = (l) => l.status !== "authenticated" ? null : e.sessionKey ? e.sessionKey(l) : String(l.user.id);
47
53
  return {
48
54
  start() {
49
- if (y || i) return;
50
- i = $(
51
- E("app"),
52
- (d, g) => d.effect.start({ signal: g, platform: a, report: (u) => e.onError(u, d) })
55
+ if (v || i) return;
56
+ i = k(
57
+ j("app"),
58
+ (m, h) => m.effect.start({ signal: h, platform: a, report: (u) => e.onError(u, m) })
53
59
  );
54
- const l = E("session");
55
- n.run(
56
- () => P(
57
- () => x(a.session.state.value),
58
- (d) => {
59
- k(h), h = null;
60
- const g = a.session.state.value;
61
- d === null || g.status !== "authenticated" || (h = $(
60
+ const l = j("session");
61
+ r.run(
62
+ () => B(
63
+ () => M(a.session.state.value),
64
+ (m) => {
65
+ R(w), w = null;
66
+ const h = a.session.state.value;
67
+ m === null || h.status !== "authenticated" || (w = k(
62
68
  l,
63
- (u, p) => u.effect.start({ signal: p, platform: a, user: g.user, report: (b) => e.onError(b, u) })
69
+ (u, E) => u.effect.start({ signal: E, platform: a, user: h.user, report: ($) => e.onError($, u) })
64
70
  ));
65
71
  },
66
72
  { immediate: !0, flush: "sync" }
@@ -68,32 +74,32 @@ function rt(e) {
68
74
  );
69
75
  },
70
76
  dispose() {
71
- y || (y = !0, n.stop(), k(h), k(i), h = i = null);
77
+ v || (v = !0, r.stop(), R(w), R(i), w = i = null);
72
78
  }
73
79
  };
74
80
  }
75
- const at = { class: "mx-auto flex min-h-screen max-w-content items-center justify-center p-screen-padding" }, it = /* @__PURE__ */ ue({
81
+ const it = { class: "mx-auto flex min-h-screen max-w-content items-center justify-center p-screen-padding" }, ct = /* @__PURE__ */ fe({
76
82
  __name: "StartupFailure",
77
83
  props: {
78
84
  kind: {}
79
85
  },
80
86
  emits: ["retry"],
81
87
  setup(e) {
82
- const { t: a } = Ne();
83
- return (n, i) => (Se(), Le("div", at, [
84
- Z(_(nt), {
85
- title: _(a)("core.startup.title"),
86
- description: _(a)(e.kind === "startup" ? "core.startup.other" : `core.startup.${e.kind}`),
88
+ const { t: a } = Oe();
89
+ return (r, i) => (Se(), Re("div", it, [
90
+ ee(K(rt), {
91
+ title: K(a)("core.startup.title"),
92
+ description: K(a)(e.kind === "startup" ? "core.startup.other" : `core.startup.${e.kind}`),
87
93
  icon: "errorWarningLine"
88
94
  }, {
89
- actions: ee(() => [
90
- Z(_(ot), {
95
+ actions: te(() => [
96
+ ee(K(ot), {
91
97
  prominence: "primary",
92
98
  icon: "refreshLine",
93
- onClick: i[0] || (i[0] = (h) => n.$emit("retry"))
99
+ onClick: i[0] || (i[0] = (w) => r.$emit("retry"))
94
100
  }, {
95
- default: ee(() => [
96
- xe(Ae(_(a)("core.actions.retry")), 1)
101
+ default: te(() => [
102
+ Me(Ae(K(a)("core.actions.retry")), 1)
97
103
  ]),
98
104
  _: 1
99
105
  })
@@ -103,361 +109,318 @@ const at = { class: "mx-auto flex min-h-screen max-w-content items-center justif
103
109
  ]));
104
110
  }
105
111
  });
106
- class ie extends Error {
107
- constructor(n) {
112
+ class ce extends Error {
113
+ constructor(r) {
108
114
  super(`The application composition is invalid:
109
- ${n.map((i) => ` - [${i.owner}] ${i.message}`).join(`
115
+ ${r.map((i) => ` - [${i.owner}] ${i.message}`).join(`
110
116
  `)}`);
111
- Y(this, "issues");
112
- this.name = "ApplicationError", this.issues = n;
117
+ Z(this, "issues");
118
+ this.name = "ApplicationError", this.issues = r;
113
119
  }
114
120
  }
115
- const ce = "application", w = (e) => `feature "${e.id}"`;
116
- function* B(e, a = "") {
117
- for (const n of e) {
118
- const i = n.path.startsWith("/") ? n.path : `${a.replace(/\/$/, "")}/${n.path}`;
119
- yield { record: n, path: i }, n.children && (yield* B(n.children, i));
121
+ const le = "application", g = (e) => `feature "${e.id}"`;
122
+ function* D(e, a = "") {
123
+ for (const r of e) {
124
+ const i = r.path.startsWith("/") ? r.path : `${a.replace(/\/$/, "")}/${r.path}`;
125
+ yield { record: r, path: i }, r.children && (yield* D(r.children, i));
120
126
  }
121
127
  }
122
- function ct(e) {
123
- const a = [], n = (o, s) => a.push({ owner: o, message: s }), i = [];
128
+ function lt(e) {
129
+ const a = [], r = (o, s) => a.push({ owner: o, message: s }), i = [];
124
130
  e.features.forEach((o, s) => {
125
- tt(o) ? i.push(o) : n(ce, `features[${s}] was not created with defineFeature().`);
131
+ nt(o) ? i.push(o) : r(le, `features[${s}] was not created with defineFeature().`);
126
132
  });
127
- const h = /* @__PURE__ */ new Map();
133
+ const w = /* @__PURE__ */ new Map();
128
134
  for (const o of i)
129
- h.has(o.id) ? n(w(o), `the feature id "${o.id}" is used twice in the features list.`) : h.set(o.id, o);
135
+ w.has(o.id) ? r(g(o), `the feature id "${o.id}" is used twice in the features list.`) : w.set(o.id, o);
130
136
  for (const o of i)
131
137
  for (const s of o.requires)
132
- h.has(s) || n(w(o), `requires the feature "${s}", which is not in the features list.`);
133
- const y = [], $ = /* @__PURE__ */ new Set(), k = (o) => {
134
- if ($.has(o.id)) return;
135
- const s = y.indexOf(o.id);
138
+ w.has(s) || r(g(o), `requires the feature "${s}", which is not in the features list.`);
139
+ const v = [], k = /* @__PURE__ */ new Set(), R = (o) => {
140
+ if (k.has(o.id)) return;
141
+ const s = v.indexOf(o.id);
136
142
  if (s !== -1) {
137
- n(w(o), `requirements form a cycle: ${[...y.slice(s), o.id].join(" -> ")}.`), $.add(o.id);
143
+ r(g(o), `requirements form a cycle: ${[...v.slice(s), o.id].join(" -> ")}.`), k.add(o.id);
138
144
  return;
139
145
  }
140
- y.push(o.id);
146
+ v.push(o.id);
141
147
  for (const c of o.requires) {
142
- const m = h.get(c);
143
- m && k(m);
148
+ const d = w.get(c);
149
+ d && R(d);
144
150
  }
145
- y.pop(), $.add(o.id);
151
+ v.pop(), k.add(o.id);
146
152
  };
147
- i.forEach(k);
148
- const E = new Set(e.platform.config.capabilities);
153
+ i.forEach(R);
154
+ const j = new Set(e.platform.config.capabilities);
149
155
  for (const o of i)
150
156
  for (const s of o.backend)
151
- E.has(s) || n(w(o), `needs the backend capability "${s}", which the server does not report.`);
152
- const x = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
157
+ j.has(s) || r(g(o), `needs the backend capability "${s}", which the server does not report.`);
158
+ const M = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
153
159
  for (const o of i) {
154
160
  for (const s of o.routes) {
155
- const c = s.path.length > 1 ? s.path.replace(/\/$/, "") : s.path, m = l.get(c);
156
- m ? n(w(o), `declares the path "${s.path}", which feature "${m.id}" declares too.`) : l.set(c, o);
161
+ const c = s.path.length > 1 ? s.path.replace(/\/$/, "") : s.path, d = l.get(c);
162
+ d ? r(g(o), `declares the path "${s.path}", which feature "${d.id}" declares too.`) : l.set(c, o);
157
163
  }
158
- for (const { record: s } of B(o.routes)) {
159
- if (s.meta && "feature" in s.meta && n(w(o), `the route "${String(s.name ?? s.path)}" sets meta.feature, which the runtime owns.`), typeof s.name != "string") continue;
160
- const c = x.get(s.name);
161
- c ? n(w(o), `declares the route name "${s.name}", which feature "${c.id}" declares too.`) : x.set(s.name, o);
164
+ for (const { record: s } of D(o.routes)) {
165
+ if (s.meta && "feature" in s.meta && r(g(o), `the route "${String(s.name ?? s.path)}" sets meta.feature, which the runtime owns.`), typeof s.name != "string") continue;
166
+ const c = M.get(s.name);
167
+ c ? r(g(o), `declares the route name "${s.name}", which feature "${c.id}" declares too.`) : M.set(s.name, o);
162
168
  }
163
169
  }
164
- const d = new Set(e.reservedContexts), g = /* @__PURE__ */ new Map();
170
+ const m = new Set(e.reservedContexts), h = /* @__PURE__ */ new Map();
165
171
  for (const o of i)
166
172
  for (const { key: s } of o.contexts) {
167
173
  const c = s.description ?? "a context";
168
- d.has(s) && n(w(o), `provides the context "${c}", which the runtime provides itself.`);
169
- const m = g.get(s);
170
- m ? n(w(o), `provides the context "${c}", which feature "${m.id}" provides too.`) : g.set(s, o);
174
+ m.has(s) && r(g(o), `provides the context "${c}", which the runtime provides itself.`);
175
+ const d = h.get(s);
176
+ d ? r(g(o), `provides the context "${c}", which feature "${d.id}" provides too.`) : h.set(s, o);
171
177
  }
172
- const u = /* @__PURE__ */ new Map(), p = (o, s) => {
178
+ const u = /* @__PURE__ */ new Map(), E = (o, s) => {
173
179
  for (const c of s) {
174
- const m = u.get(c.namespace);
175
- m ? n(o, `declares the message namespace "${c.namespace}", which ${m} declares too.`) : u.set(c.namespace, o);
176
- for (const j of Object.keys(c.loaders))
177
- e.supportedLocales.includes(j) || n(o, `the namespace "${c.namespace}" has a loader for "${j}", which is not a supported locale (${e.supportedLocales.join(", ")}).`);
180
+ const d = u.get(c.namespace);
181
+ d ? r(o, `declares the message namespace "${c.namespace}", which ${d} declares too.`) : u.set(c.namespace, o);
182
+ for (const L of Object.keys(c.loaders))
183
+ e.supportedLocales.includes(L) || r(o, `the namespace "${c.namespace}" has a loader for "${L}", which is not a supported locale (${e.supportedLocales.join(", ")}).`);
178
184
  }
179
185
  };
180
- for (const o of i) p(w(o), o.messages);
181
- p(ce, e.messages);
182
- const b = (o) => u.has(o);
186
+ for (const o of i) E(g(o), o.messages);
187
+ E(le, e.messages);
188
+ const $ = (o) => u.has(o);
183
189
  for (const o of i)
184
- for (const { record: s } of B(o.routes))
190
+ for (const { record: s } of D(o.routes))
185
191
  for (const c of s.meta?.messages ?? [])
186
- b(c) || n(w(o), `the route "${String(s.name ?? s.path)}" needs the message namespace "${c}", which nobody declares.`);
187
- const A = /* @__PURE__ */ new Map();
192
+ $(c) || r(g(o), `the route "${String(s.name ?? s.path)}" needs the message namespace "${c}", which nobody declares.`);
193
+ const x = /* @__PURE__ */ new Map();
188
194
  for (const o of i)
189
195
  for (const s of o.contributions) {
190
- const c = A.get(s.id);
191
- c ? n(w(o), `declares the shell contribution "${s.id}", which feature "${c.id}" declares too.`) : A.set(s.id, o), e.shellSlots && !s.optional && !e.shellSlots.includes(s.slot) && n(w(o), `contributes "${s.id}" to the slot "${s.slot}", which the shell does not render (it renders ${e.shellSlots.join(", ") || "none"}). Mark it optional to leave it out instead.`);
192
- for (const m of s.messages ?? [])
193
- b(m) || n(w(o), `the contribution "${s.id}" needs the message namespace "${m}", which nobody declares.`);
196
+ const c = x.get(s.id);
197
+ c ? r(g(o), `declares the shell contribution "${s.id}", which feature "${c.id}" declares too.`) : x.set(s.id, o), e.shellSlots && !s.optional && !e.shellSlots.includes(s.slot) && r(g(o), `contributes "${s.id}" to the slot "${s.slot}", which the shell does not render (it renders ${e.shellSlots.join(", ") || "none"}). Mark it optional to leave it out instead.`);
198
+ for (const d of s.messages ?? [])
199
+ $(d) || r(g(o), `the contribution "${s.id}" needs the message namespace "${d}", which nobody declares.`);
194
200
  }
195
- const R = /* @__PURE__ */ new Map();
201
+ const A = /* @__PURE__ */ new Map();
196
202
  for (const o of i)
197
203
  for (const s of o.effects) {
198
- const c = R.get(s.id);
199
- c ? n(w(o), `declares the effect "${s.id}", which feature "${c.id}" declares too.`) : R.set(s.id, o);
200
- const m = s.scope;
201
- m !== "app" && m !== "session" && n(w(o), `the effect "${s.id}" has the scope "${m}"; use "app" or "session".`);
204
+ const c = A.get(s.id);
205
+ c ? r(g(o), `declares the effect "${s.id}", which feature "${c.id}" declares too.`) : A.set(s.id, o);
206
+ const d = s.scope;
207
+ d !== "app" && d !== "session" && r(g(o), `the effect "${s.id}" has the scope "${d}"; use "app" or "session".`);
202
208
  }
203
209
  return { features: i, issues: a };
204
210
  }
205
- const lt = (e, a, n) => Oe({
211
+ const ut = (e, a, r) => Ce({
206
212
  legacy: !1,
207
213
  locale: e,
208
214
  fallbackLocale: a,
209
- pluralRules: n?.pluralRules && { ...n.pluralRules },
210
- ...n?.missingWarn === !1 && { missingWarn: !1, fallbackWarn: !1 },
215
+ pluralRules: r?.pluralRules && { ...r.pluralRules },
216
+ ...r?.missingWarn === !1 && { missingWarn: !1, fallbackWarn: !1 },
211
217
  messages: {}
212
- }), ut = (e) => typeof e == "object" && e !== null && "component" in e && "slots" in e;
213
- function fe(e, a) {
214
- return e.map((n) => ({
215
- ...n,
216
- meta: { ...n.meta, feature: a },
217
- ...n.children && { children: fe(n.children, a) }
218
+ }), ft = (e) => typeof e == "object" && e !== null && "component" in e && "slots" in e;
219
+ function de(e, a) {
220
+ return e.map((r) => ({
221
+ ...r,
222
+ meta: { ...r.meta, feature: a },
223
+ ...r.children && { children: de(r.children, a) }
218
224
  }));
219
225
  }
220
- const le = (e) => [...new Set(e)];
221
- function Nt(e) {
222
- const { platform: a } = e, n = e.locale?.supported ?? Object.keys(oe), i = e.locale?.fallback ?? "en", h = e.shell === void 0 ? void 0 : ut(e.shell) ? e.shell : { component: e.shell, slots: void 0, progress: void 0 }, y = [];
223
- n.includes(i) || y.push({ owner: "application", message: `the fallback locale "${i}" is not among the supported locales (${n.join(", ")}).` });
226
+ const ue = (e) => [...new Set(e)];
227
+ function _t(e) {
228
+ const { platform: a } = e, r = e.locale?.supported ?? Object.keys(oe), i = e.locale?.fallback ?? "en", w = e.shell === void 0 ? void 0 : ft(e.shell) ? e.shell : { component: e.shell, slots: void 0, progress: void 0 }, v = [];
229
+ r.includes(i) || v.push({ owner: "application", message: `the fallback locale "${i}" is not among the supported locales (${r.join(", ")}).` });
224
230
  for (const t of Object.keys(e.locale?.flags ?? {}))
225
- n.includes(t) || y.push({ owner: "application", message: `locale.flags names the locale "${t}", which is not among the supported locales (${n.join(", ")}).` });
226
- const $ = e.locale?.initial ?? (n.includes(a.config.locale) ? a.config.locale : i);
227
- n.includes($) || y.push({ owner: "application", message: `the initial locale "${$}" is not among the supported locales (${n.join(", ")}).` });
228
- const k = [Je, Fe, He, Ve, De, re, ae, ne, se], E = ct({
231
+ r.includes(t) || v.push({ owner: "application", message: `locale.flags names the locale "${t}", which is not among the supported locales (${r.join(", ")}).` });
232
+ const k = e.locale?.initial ?? (r.includes(a.config.locale) ? a.config.locale : i);
233
+ r.includes(k) || v.push({ owner: "application", message: `the initial locale "${k}" is not among the supported locales (${r.join(", ")}).` });
234
+ const R = [ze, qe, Ge, He, Be, ne, ae, re, ie], j = lt({
229
235
  features: e.features,
230
236
  platform: a,
231
237
  messages: e.messages ?? [],
232
- reservedContexts: k,
233
- supportedLocales: n,
234
- shellSlots: h?.slots
235
- }), x = [...y, ...E.issues], l = E.features, d = Ze(
236
- l.flatMap((t) => t.navigation.map((r) => ({ feature: t.id, binding: r }))),
238
+ reservedContexts: R,
239
+ supportedLocales: r,
240
+ shellSlots: w?.slots
241
+ }), M = [...v, ...j.issues], l = j.features, m = et(
242
+ l.flatMap((t) => t.navigation.map((n) => ({ feature: t.id, binding: n }))),
237
243
  e.navigation
238
244
  );
239
- for (const t of d.issues) x.push({ owner: "navigation", message: t });
240
- if (x.length > 0) throw new ie(x);
241
- const g = lt($, i, e.i18n), u = g.global;
242
- for (const [t, r] of Object.entries(oe)) u.mergeLocaleMessage(t, r);
243
- for (const [t, r] of Object.entries(e.i18n?.messages ?? {})) u.mergeLocaleMessage(t, r);
244
- const p = Ke({ locale: () => u.locale.value, formatters: e.formatting }), b = [...l.flatMap((t) => t.messages), ...e.messages ?? []], A = (t) => (e.onError ?? ft)({ ...t, route: s.currentRoute.value.matched.length > 0 ? s.currentRoute.value.fullPath : null }), R = We({
245
+ for (const t of m.issues) M.push({ owner: "navigation", message: t });
246
+ if (M.length > 0) throw new ce(M);
247
+ const h = ut(k, i, e.i18n), u = h.global;
248
+ for (const [t, n] of Object.entries(oe)) u.mergeLocaleMessage(t, n);
249
+ for (const [t, n] of Object.entries(e.i18n?.messages ?? {})) u.mergeLocaleMessage(t, n);
250
+ const E = Fe({ locale: () => u.locale.value, formatters: e.formatting }), $ = [...l.flatMap((t) => t.messages), ...e.messages ?? []], x = (t) => (e.onError ?? dt)({ ...t, route: s.currentRoute.value.matched.length > 0 ? s.currentRoute.value.fullPath : null }), A = Pe({
245
251
  target: u,
246
- namespaces: b,
252
+ namespaces: $,
247
253
  fallback: i,
248
- supported: n,
249
- onFailure: (t) => A({ source: "messages", error: t.error, detail: `${t.namespace} (${t.locale})`, feature: o.get(t.namespace) })
250
- }), o = new Map(l.flatMap((t) => t.messages.map((r) => [r.namespace, t.id]))), s = Te({
251
- history: e.router?.history ?? Ue(),
252
- routes: l.flatMap((t) => fe(t.routes, t.id)),
253
- scrollBehavior: e.router?.scrollBehavior ?? ((t, r) => t.name === r.name ? !1 : { top: 0 })
254
- }), c = e.router?.login ?? { name: "login" }, m = e.router?.home ?? { path: "/" }, j = [], H = (t) => {
254
+ supported: r,
255
+ onFailure: (t) => x({ source: "messages", error: t.error, detail: `${t.namespace} (${t.locale})`, feature: o.get(t.namespace) })
256
+ }), o = new Map(l.flatMap((t) => t.messages.map((n) => [n.namespace, t.id]))), s = Ke({
257
+ history: e.router?.history ?? Xe(),
258
+ routes: l.flatMap((t) => de(t.routes, t.id)),
259
+ scrollBehavior: e.router?.scrollBehavior ?? ((t, n) => t.name === n.name ? !1 : { top: 0 })
260
+ }), c = e.router?.login ?? { name: "login" }, d = e.router?.home ?? { path: "/" }, L = [], H = (t) => {
255
261
  try {
256
262
  return s.resolve(t).matched.length > 0 ? null : "matches no route";
257
- } catch (r) {
258
- const f = r instanceof Error ? r.message : String(r);
263
+ } catch (n) {
264
+ const f = n instanceof Error ? n.message : String(n);
259
265
  return f.startsWith("No match for") ? "matches no route" : `cannot be resolved (${f})`;
260
266
  }
261
267
  };
262
- if (l.some((t) => t.routes.some((r) => r.meta?.public !== !0))) {
268
+ if (l.some((t) => t.routes.some((n) => n.meta?.public !== !0))) {
263
269
  const t = H(c) ?? (s.resolve(c).meta.public === !0 ? null : "is not public (meta.public: true)");
264
- t && j.push({ owner: "application", message: `the login route ${JSON.stringify(c)} ${t.replace("matches no route", "does not exist")}, but protected routes are installed: an anonymous visitor would have nowhere to go. Install a feature with the login route or set router.login.` });
270
+ t && L.push({ owner: "application", message: `the login route ${JSON.stringify(c)} ${t.replace("matches no route", "does not exist")}, but protected routes are installed: an anonymous visitor would have nowhere to go. Install a feature with the login route or set router.login.` });
265
271
  }
266
- for (const { feature: t, binding: r } of d.destinations.values()) {
267
- const f = H(r.to);
268
- f && j.push({ owner: `feature "${t}"`, message: `the destination "${r.destination}" is bound to ${JSON.stringify(r.to)}, which ${f}.` });
272
+ for (const { feature: t, binding: n } of m.destinations.values()) {
273
+ const f = H(n.to);
274
+ f && L.push({ owner: `feature "${t}"`, message: `the destination "${n.destination}" is bound to ${JSON.stringify(n.to)}, which ${f}.` });
269
275
  }
270
- if (j.length > 0) throw new ie(j);
271
- const N = Me({ status: "idle" }), K = {
276
+ if (L.length > 0) throw new ce(L);
277
+ const N = je({ status: "idle" }), I = {
272
278
  state: N,
273
- locale: Re(() => u.locale.value),
274
- locales: n,
279
+ locale: Le(() => u.locale.value),
280
+ locales: r,
275
281
  localeFlags: e.locale?.flags ?? {},
276
282
  setLocale: async (t) => {
277
- const r = u.locale.value, f = await R.setLocale(t);
278
- if (f && u.locale.value !== r) {
279
- const S = (O) => A({ source: "locale", error: O, detail: t });
283
+ const n = u.locale.value, f = await A.setLocale(t);
284
+ if (f && u.locale.value !== n) {
285
+ const b = (C) => x({ source: "locale", error: C, detail: t });
280
286
  try {
281
- Promise.resolve(e.locale?.onChange?.(t)).catch(S);
282
- } catch (O) {
283
- S(O);
287
+ Promise.resolve(e.locale?.onChange?.(t)).catch(b);
288
+ } catch (C) {
289
+ b(C);
284
290
  }
285
291
  }
286
292
  return f;
287
293
  },
288
- retry: () => q()
289
- }, I = {
290
- contributions: l.flatMap((t) => t.contributions.map((r) => ({ feature: t.id, contribution: r }))),
291
- effects: l.flatMap((t) => t.effects.map((r) => ({ feature: t.id, effect: r })))
292
- }, V = rt({
293
- effects: I.effects,
294
+ retry: () => P()
295
+ }, F = {
296
+ contributions: l.flatMap((t) => t.contributions.map((n) => ({ feature: t.id, contribution: n }))),
297
+ effects: l.flatMap((t) => t.effects.map((n) => ({ feature: t.id, effect: n })))
298
+ }, V = at({
299
+ effects: F.effects,
294
300
  platform: a,
295
301
  sessionKey: e.sessionKey,
296
- onError: (t, r) => A({ source: "effect", error: t, feature: r.feature, detail: r.effect.id })
297
- }), de = new Map(l.map((t) => [t.id, t.messages.map((r) => r.namespace)])), G = (t) => le(I.contributions.filter(({ contribution: r }) => r.scope === t).flatMap(({ contribution: r }) => r.messages ?? [])), pe = G("always"), me = G("authenticated");
298
- async function he(t) {
299
- const r = t.matched.flatMap((S) => [...de.get(S.meta.feature ?? "") ?? [], ...S.meta.messages ?? []]), f = a.session.state.value.status === "authenticated";
300
- await R.load(le([...r, ...pe, ...f ? me : []]));
302
+ onError: (t, n) => x({ source: "effect", error: t, feature: n.feature, detail: n.effect.id })
303
+ }), pe = new Map(l.map((t) => [t.id, t.messages.map((n) => n.namespace)])), G = (t) => ue(F.contributions.filter(({ contribution: n }) => n.scope === t).flatMap(({ contribution: n }) => n.messages ?? [])), me = G("always"), he = G("authenticated");
304
+ async function ge(t) {
305
+ const n = t.matched.flatMap((b) => [...pe.get(b.meta.feature ?? "") ?? [], ...b.meta.messages ?? []]), f = a.session.state.value.status === "authenticated";
306
+ await A.load(ue([...n, ...me, ...f ? he : []]));
301
307
  }
302
- let F = null;
303
- function W(t) {
304
- const r = t.meta.titleKey, f = F?.documentTitle.value ?? (r && u.te(r) ? u.t(r) : null), S = (e.router?.documentTitle ?? dt)(f, a.config.appName);
305
- S !== "" && (document.title = S);
308
+ let T = null;
309
+ function q(t) {
310
+ const n = t.meta.titleKey, f = T?.documentTitle.value ?? (n && u.te(n) ? u.t(n) : null), b = (e.router?.documentTitle ?? pt)(f, a.config.appName);
311
+ b !== "" && (document.title = b);
306
312
  }
307
- const ge = et({ session: a.session, router: s, i18n: u, destinations: d.destinations }), ve = st(I.contributions, a.session), we = ze({ router: s, access: a.access, noAccess: e.noAccess ?? Xe }), ye = ue({
313
+ const we = tt({ session: a.session, router: s, i18n: u, destinations: m.destinations }), ve = st(F.contributions, a.session), ye = Qe({ router: s, access: a.access, noAccess: e.noAccess ?? Ye }), $e = fe({
308
314
  name: "ApplicationRoot",
309
315
  setup() {
310
316
  return () => {
311
317
  const t = N.value;
312
- return t.status === "failed" ? te(it, { kind: t.kind, onRetry: () => void q() }) : t.status !== "ready" ? null : te(h?.component ?? Qe);
318
+ return t.status === "failed" ? se(ct, { kind: t.kind, onRetry: () => void P() }) : t.status !== "ready" ? null : se(w?.component ?? Ue);
313
319
  };
314
320
  }
315
- }), v = je(ye);
316
- Ge(v, a), v.use(g), Ie(v, p), F = Pe(v), Be(v), Ce(v), e.icons && qe(v, ...Array.isArray(e.icons) ? e.icons : [e.icons]), v.provide(se, K), v.provide(re, ge), v.provide(ae, ve), v.provide(ne, we);
317
- for (const t of l) for (const { key: r, value: f } of t.contexts) v.provide(r, f);
318
- let M = !1, J = !1, z = !1, Q = !1;
319
- const T = [];
320
- function $e() {
321
- const t = v.config.errorHandler;
322
- v.config.errorHandler = (L, be, X) => {
323
- A({ source: "vue", error: L, detail: X }), t?.(L, be, X);
321
+ }), p = Ne($e);
322
+ Je(p, a), p.use(h), Te(p, E), T = Ve(p), De(p), Ie(p), e.icons && We(p, ...Array.isArray(e.icons) ? e.icons : [e.icons]), p.provide(ie, I), p.provide(ne, we), p.provide(ae, ve), p.provide(re, ye);
323
+ for (const t of l) for (const { key: n, value: f } of t.contexts) p.provide(n, f);
324
+ let S = !1, J = !1, z = !1, Q = !1;
325
+ const O = [];
326
+ function be() {
327
+ const t = p.config.errorHandler;
328
+ p.config.errorHandler = (y, ke, Y) => {
329
+ x({ source: "vue", error: y, detail: Y }), t?.(y, ke, Y);
324
330
  };
325
- const r = (L) => A({ source: "unhandledrejection", error: L.reason }), f = (L) => {
326
- L.error && A({ source: "window", error: L.error });
331
+ const n = (y) => x({ source: "unhandledrejection", error: y.reason }), f = (y) => {
332
+ y.error && x({ source: "window", error: y.error });
327
333
  };
328
- window.addEventListener("unhandledrejection", r), window.addEventListener("error", f), T.push(() => {
329
- window.removeEventListener("unhandledrejection", r), window.removeEventListener("error", f);
330
- }), T.push(
331
- Ye({
334
+ window.addEventListener("unhandledrejection", n), window.addEventListener("error", f), O.push(() => {
335
+ window.removeEventListener("unhandledrejection", n), window.removeEventListener("error", f);
336
+ });
337
+ const b = l.some((y) => y.holdsExpiredSession);
338
+ a.session.holdExpired(b), O.push(() => a.session.holdExpired(!1)), O.push(
339
+ Ze({
332
340
  router: s,
333
341
  session: a.session,
334
342
  login: c,
335
- home: m,
336
- prepare: he,
337
- afterNavigation: W,
338
- progress: e.router?.progress ?? h?.progress,
339
- onError: (L) => A({ source: "router", error: L })
343
+ home: d,
344
+ holdExpired: b,
345
+ prepare: ge,
346
+ afterNavigation: q,
347
+ progress: e.router?.progress ?? w?.progress,
348
+ onError: (y) => x({ source: "router", error: y })
340
349
  })
341
350
  );
342
- const S = D();
343
- S.run(() => P(() => F?.documentTitle.value, () => W(s.currentRoute.value))), T.push(() => S.stop());
344
- const O = D();
345
- O.run(
346
- () => P(
351
+ const C = W();
352
+ C.run(() => B(() => T?.documentTitle.value, () => q(s.currentRoute.value))), O.push(() => C.stop());
353
+ const X = W();
354
+ X.run(
355
+ () => B(
347
356
  () => u.locale.value,
348
- (L) => {
349
- document.documentElement.lang = L, W(s.currentRoute.value);
357
+ (y) => {
358
+ document.documentElement.lang = y, q(s.currentRoute.value);
350
359
  },
351
360
  { immediate: !0 }
352
361
  )
353
- ), T.push(() => O.stop());
362
+ ), O.push(() => X.stop());
354
363
  }
355
- const C = (t, r) => {
356
- N.value = { status: "failed", kind: t, error: r };
364
+ const _ = (t, n) => {
365
+ N.value = { status: "failed", kind: t, error: n };
357
366
  };
358
367
  async function U() {
359
368
  N.value = { status: "starting" };
360
369
  const t = await a.session.restore();
361
- if (M) return;
362
- if (t.status === "failed") return C("session", t.error);
363
- const r = await R.loadEssential();
364
- if (!M) {
365
- if (r.length > 0) return C("messages", r[0].error);
370
+ if (S) return;
371
+ if (t.status === "failed") return _("session", t.error);
372
+ const n = await A.loadEssential();
373
+ if (!S) {
374
+ if (n.length > 0) return _("messages", n[0].error);
366
375
  try {
367
376
  const f = await s.replace(s.options.history.location);
368
- if (M) return;
369
- if (_e(f)) return C("startup", f);
377
+ if (S) return;
378
+ if (_e(f)) return _("startup", f);
370
379
  } catch (f) {
371
- M || C("startup", f);
380
+ S || _("startup", f);
372
381
  return;
373
382
  }
374
- Q || (v.use(s), Q = !0), N.value = { status: "ready" }, V.start();
383
+ Q || (p.use(s), Q = !0), N.value = { status: "ready" }, V.start();
375
384
  }
376
385
  }
377
- async function q() {
378
- M || N.value.status !== "failed" || (await R.retry(), await U());
386
+ async function P() {
387
+ S || N.value.status !== "failed" || (await A.retry(), await U());
379
388
  }
380
389
  return {
381
- app: v,
390
+ app: p,
382
391
  router: s,
383
- i18n: g,
392
+ i18n: h,
384
393
  state: N,
385
- locale: K.locale,
386
- setLocale: K.setLocale,
394
+ locale: I.locale,
395
+ setLocale: I.setLocale,
387
396
  async mount(t) {
388
- if (M) throw new Error("This application was disposed; create a new one with createApplication().");
397
+ if (S) throw new Error("This application was disposed; create a new one with createApplication().");
389
398
  if (J) throw new Error("This application is already mounted.");
390
- J = !0, $e(), await U(), !M && (v.mount(t), z = !0);
399
+ J = !0, be(), await U(), !S && (p.mount(t), z = !0);
391
400
  },
392
- retry: q,
401
+ retry: P,
393
402
  dispose() {
394
- if (!M) {
395
- M = !0, V.dispose(), R.dispose(), z && v.unmount();
396
- for (const t of T.reverse()) t();
403
+ if (!S) {
404
+ S = !0, V.dispose(), A.dispose(), z && p.unmount();
405
+ for (const t of O.reverse()) t();
397
406
  s.options.history.destroy();
398
407
  }
399
408
  }
400
409
  };
401
410
  }
402
- function ft(e) {
411
+ function dt(e) {
403
412
  console.error(`[vue-core] ${e.source}${e.feature ? ` (${e.feature})` : ""}${e.detail ? `: ${e.detail}` : ""}`, e.error);
404
413
  }
405
- function dt(e, a) {
406
- return [e, a].filter((n) => !!n).join(" · ");
407
- }
408
- const pt = 864e5;
409
- function Ot(e = {}) {
410
- const { margin: a = 6e4, retryAfter: n = 3e4 } = e;
411
- return {
412
- id: "vue-core.keep-session-alive",
413
- scope: "session",
414
- start({ signal: i, platform: h, report: y }) {
415
- let $, k = null;
416
- const E = () => {
417
- const p = h.session.state.value;
418
- return p.status === "authenticated" && p.expiresAt ? p.expiresAt.getTime() - Date.now() - a : null;
419
- }, x = () => (k ?? (k = (async () => {
420
- try {
421
- await e.renew?.(h), await h.session.refresh();
422
- } catch (p) {
423
- y(p);
424
- } finally {
425
- k = null;
426
- }
427
- })()), k);
428
- function l(p = 0) {
429
- clearTimeout($);
430
- const b = E();
431
- b !== null && !i.aborted && ($ = setTimeout(() => void d(), Math.min(Math.max(b, p), pt)));
432
- }
433
- async function d() {
434
- if (i.aborted || !navigator.onLine) return;
435
- const p = E();
436
- if (p !== null) {
437
- if (p <= 0) {
438
- if (await x(), i.aborted) return;
439
- l((E() ?? 1) <= 0 ? n : 0);
440
- return;
441
- }
442
- l();
443
- }
444
- }
445
- const g = () => {
446
- document.visibilityState === "visible" && d();
447
- }, u = () => void d();
448
- return document.addEventListener("visibilitychange", g), window.addEventListener("online", u), d(), () => {
449
- clearTimeout($), document.removeEventListener("visibilitychange", g), window.removeEventListener("online", u);
450
- };
451
- }
452
- };
414
+ function pt(e, a) {
415
+ return [e, a].filter((r) => !!r).join(" · ");
453
416
  }
454
417
  export {
455
- ie as ApplicationError,
456
- It as ShellOutlet,
457
- se as applicationKey,
458
- Nt as createApplication,
459
- Ft as defineFeature,
460
- Ot as keepSessionAlive,
461
- Wt as provideContext,
462
- Ct as useApplication
418
+ ce as ApplicationError,
419
+ Tt as ShellOutlet,
420
+ ie as applicationKey,
421
+ _t as createApplication,
422
+ Bt as defineFeature,
423
+ Vt as keepSessionAlive,
424
+ Dt as provideContext,
425
+ Pt as useApplication
463
426
  };