@wssto2/vue-core 0.1.0 → 0.3.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 (314) hide show
  1. package/README.md +53 -9
  2. package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js +22 -0
  3. package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js +76 -0
  4. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js +45 -0
  5. package/dist/Activity-DviO0VQ8.js +156 -0
  6. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CKghARkW.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js} +48 -47
  7. package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-BZb4qKXo.js → AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js} +2 -2
  8. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B82bl36A.js → AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js} +4 -4
  9. package/dist/Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js +51 -0
  10. package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js} +1 -1
  11. package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
  12. package/dist/Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js +182 -0
  13. package/dist/Changes-DlT5mN9G.js +129 -0
  14. package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js +1481 -0
  15. package/dist/CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js +299 -0
  16. package/dist/DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js +52 -0
  17. package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +1099 -0
  18. package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Bx5O1RZJ.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js} +1 -1
  19. package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js} +1 -1
  20. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js +276 -0
  21. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js +136 -0
  22. package/dist/FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js +38 -0
  23. package/dist/General-BD-Hcz0a.js +145 -0
  24. package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-VvcV2Bzo.js} +46 -33
  25. package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.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-DH6EB8br.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js} +2 -2
  28. package/dist/{Menu.vue_vue_type_script_setup_true_lang-D44EHXQZ.js → Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js} +61 -57
  29. package/dist/{Modal.vue_vue_type_script_setup_true_lang-DYQgaUtj.js → Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js} +139 -129
  30. package/dist/NewRolePage-Dla4YnMs.js +42 -0
  31. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js +31 -0
  32. package/dist/NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.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-Cfr5xsJx.js +47 -0
  35. package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js} +1 -1
  36. package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DDVQXJRB.js → PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js} +2 -2
  37. package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
  38. package/dist/ProfilePage-OJMQ8cr8.js +691 -0
  39. package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
  40. package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js +64 -0
  41. package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js +173 -0
  42. package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js +299 -0
  43. package/dist/RolePage-bZzv_E4l.js +315 -0
  44. package/dist/RolesPage-BniZv0nB.js +115 -0
  45. package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
  46. package/dist/SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js +148 -0
  47. package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js +314 -0
  48. package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js +58 -0
  49. package/dist/SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js +422 -0
  50. package/dist/SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js +111 -0
  51. package/dist/Sessions-Co5-xdeb.js +96 -0
  52. package/dist/Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js +142 -0
  53. package/dist/SignIn-BWwFbxki.js +140 -0
  54. package/dist/SignInPage-FnLtoi2q.js +60 -0
  55. package/dist/SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js +79 -0
  56. package/dist/SignIns-3UcI64_h.js +66 -0
  57. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js +93 -0
  58. package/dist/Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js +155 -0
  59. package/dist/TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js +269 -0
  60. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +127 -0
  61. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js} +1 -1
  62. package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-BJWPVyfT.js → Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js} +1 -1
  63. package/dist/UserRecord-Ci8HfwbX.js +267 -0
  64. package/dist/UsersList-vEJ-cgkT.js +155 -0
  65. package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js +28 -0
  66. package/dist/access/AddRoleDialog.vue.d.ts +19 -0
  67. package/dist/access/BindingRow.vue.d.ts +19 -0
  68. package/dist/access/EffectiveAccess.vue.d.ts +12 -0
  69. package/dist/access/NewRolePage.vue.d.ts +2 -0
  70. package/dist/access/PermissionTree.vue.d.ts +13 -0
  71. package/dist/access/PersonAccess.vue.d.ts +21 -0
  72. package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
  73. package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
  74. package/dist/access/RoleEditor.vue.d.ts +28 -0
  75. package/dist/access/RolePage.vue.d.ts +2 -0
  76. package/dist/access/RolesPage.vue.d.ts +2 -0
  77. package/dist/access/api.d.ts +26 -0
  78. package/dist/access/catalogue.d.ts +64 -0
  79. package/dist/access/context.d.ts +20 -0
  80. package/dist/access/effective.d.ts +42 -0
  81. package/dist/access/feature.d.ts +27 -0
  82. package/dist/access/index.d.ts +13 -0
  83. package/dist/access/index.js +15 -0
  84. package/dist/access/labels.d.ts +35 -0
  85. package/dist/access/refusals.d.ts +6 -0
  86. package/dist/access/routes.d.ts +45 -0
  87. package/dist/access/scopes.d.ts +20 -0
  88. package/dist/app/application.d.ts +5 -0
  89. package/dist/app/contributions.d.ts +1 -1
  90. package/dist/app/environment.d.ts +2 -0
  91. package/dist/app/feature.d.ts +8 -0
  92. package/dist/app/index.js +260 -294
  93. package/dist/bottomDock-BZEiOPYZ.js +12 -0
  94. package/dist/button/Button.vue.d.ts +3 -3
  95. package/dist/button/index.d.ts +1 -1
  96. package/dist/button/index.js +5 -3
  97. package/dist/button/shortcut.d.ts +28 -2
  98. package/dist/chrome-BS3xJcad.js +93 -0
  99. package/dist/client/client.d.ts +13 -0
  100. package/dist/client/index.d.ts +3 -1
  101. package/dist/client/index.js +19 -138
  102. package/dist/client/route.d.ts +59 -0
  103. package/dist/client-Bw0aM5Gu.js +147 -0
  104. package/dist/closeOverlays-CjVsIrpL.js +8 -0
  105. package/dist/collection/CollectionPage.vue.d.ts +1 -0
  106. package/dist/collection/CollectionRows.vue.d.ts +59 -0
  107. package/dist/collection/CollectionTable.vue.d.ts +1 -1
  108. package/dist/collection/DataTable.vue.d.ts +47 -0
  109. package/dist/collection/RowActions.vue.d.ts +19 -0
  110. package/dist/collection/columns.d.ts +2 -0
  111. package/dist/collection/http.d.ts +4 -2
  112. package/dist/collection/index.d.ts +4 -2
  113. package/dist/collection/index.js +87 -2299
  114. package/dist/collection/rowLayout.d.ts +10 -0
  115. package/dist/collection/slots.d.ts +6 -3
  116. package/dist/content/index.js +37 -66
  117. package/dist/contributions-CDDg3fKp.js +26 -0
  118. package/dist/controls/DateButton.vue.d.ts +1 -1
  119. package/dist/controls/PopupButton.vue.d.ts +1 -1
  120. package/dist/controls/index.js +11 -10
  121. package/dist/defineRoutes-BGAdiIrt.js +19 -0
  122. package/dist/describeError-Ctga6GcS.js +41 -0
  123. package/dist/dialogStack-DZZg55w0.js +31 -0
  124. package/dist/environment-Dva-SG8D.js +6 -0
  125. package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
  126. package/dist/feature-DdUAfyi4.js +25 -0
  127. package/dist/fieldMessages-C3Rpbktw.js +25 -0
  128. package/dist/form/CheckboxField.vue.d.ts +1 -1
  129. package/dist/form/CommandDialog.vue.d.ts +13 -2
  130. package/dist/form/DateField.vue.d.ts +1 -1
  131. package/dist/form/DateTimeField.vue.d.ts +1 -1
  132. package/dist/form/EditorPage.vue.d.ts +1 -1
  133. package/dist/form/Field.vue.d.ts +1 -1
  134. package/dist/form/FileField.vue.d.ts +1 -1
  135. package/dist/form/FormGroup.vue.d.ts +1 -1
  136. package/dist/form/FormGroupButton.vue.d.ts +1 -1
  137. package/dist/form/FormRow.vue.d.ts +1 -1
  138. package/dist/form/I18nField.vue.d.ts +3 -3
  139. package/dist/form/MoneyField.vue.d.ts +1 -1
  140. package/dist/form/MonthYearField.vue.d.ts +1 -1
  141. package/dist/form/MultiSelectField.vue.d.ts +4 -1
  142. package/dist/form/NumberCell.vue.d.ts +1 -1
  143. package/dist/form/NumberField.vue.d.ts +8 -2
  144. package/dist/form/OptionList.vue.d.ts +6 -2
  145. package/dist/form/OtpInput.vue.d.ts +2 -2
  146. package/dist/form/PhotoField.vue.d.ts +1 -1
  147. package/dist/form/SelectField.vue.d.ts +4 -1
  148. package/dist/form/SwitchField.vue.d.ts +1 -1
  149. package/dist/form/TextField.vue.d.ts +3 -3
  150. package/dist/form/TextareaField.vue.d.ts +3 -3
  151. package/dist/form/TimeField.vue.d.ts +1 -1
  152. package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
  153. package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
  154. package/dist/form/index.d.ts +2 -0
  155. package/dist/form/index.js +1273 -3509
  156. package/dist/form/suggestions.d.ts +11 -0
  157. package/dist/form/useOptions.d.ts +60 -0
  158. package/dist/guards-Cd1V28oG.js +51 -0
  159. package/dist/http-DGGSKWvU.js +193 -0
  160. package/dist/i18n/describeError.d.ts +31 -0
  161. package/dist/i18n/index.d.ts +307 -0
  162. package/dist/i18n/index.js +54 -52
  163. package/dist/icon/core.d.ts +13 -0
  164. package/dist/icon/index.js +1 -1
  165. package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
  166. package/dist/identity/LocaleSync.vue.d.ts +2 -0
  167. package/dist/identity/SessionExpiry.vue.d.ts +2 -0
  168. package/dist/identity/SignInAsButton.vue.d.ts +15 -0
  169. package/dist/identity/SignInPage.vue.d.ts +2 -0
  170. package/dist/identity/context.d.ts +7 -0
  171. package/dist/identity/feature.d.ts +16 -0
  172. package/dist/identity/fieldMessages.d.ts +15 -0
  173. package/dist/identity/index.d.ts +16 -0
  174. package/dist/identity/index.js +18 -0
  175. package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
  176. package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
  177. package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
  178. package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
  179. package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
  180. package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
  181. package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
  182. package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
  183. package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
  184. package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
  185. package/dist/identity/profile/routes.d.ts +13 -0
  186. package/dist/identity/session.d.ts +30 -0
  187. package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
  188. package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
  189. package/dist/identity/shared/PageBar.vue.d.ts +12 -0
  190. package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
  191. package/dist/identity/shared/SessionList.vue.d.ts +19 -0
  192. package/dist/{phone/CountryFlag.vue.d.ts → identity/shared/SignInTable.vue.d.ts} +5 -4
  193. package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
  194. package/dist/identity/shared/signInEvents.d.ts +9 -0
  195. package/dist/identity/signIn.d.ts +27 -0
  196. package/dist/identity/useSignInForm.d.ts +20 -0
  197. package/dist/identity/user.d.ts +6 -0
  198. package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
  199. package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
  200. package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
  201. package/dist/identity/users/UserRecord.vue.d.ts +2 -0
  202. package/dist/identity/users/UsersList.vue.d.ts +2 -0
  203. package/dist/identity/users/access.d.ts +4 -0
  204. package/dist/identity/users/context.d.ts +9 -0
  205. package/dist/identity/users/feature.d.ts +34 -0
  206. package/dist/identity/users/languages.d.ts +4 -0
  207. package/dist/identity/users/list.d.ts +8 -0
  208. package/dist/identity/users/person.d.ts +26 -0
  209. package/dist/identity/users/personSections.d.ts +22 -0
  210. package/dist/identity/users/routes.d.ts +22 -0
  211. package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
  212. package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
  213. package/dist/identity/users/sections/General.vue.d.ts +2 -0
  214. package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
  215. package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
  216. package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
  217. package/dist/identity/users/status.d.ts +4 -0
  218. package/dist/index-B2dbYZR9.js +706 -0
  219. package/dist/index-BAcl44SC.js +459 -0
  220. package/dist/index.d.ts +1 -1
  221. package/dist/index.js +1 -1
  222. package/dist/internal/CountryFlag.vue.d.ts +10 -0
  223. package/dist/internal/languageName.d.ts +2 -0
  224. package/dist/keepAlive-WYQGRhuz.js +48 -0
  225. package/dist/languageName-CItV_SOv.js +11 -0
  226. package/dist/languages-BShG9LpE.js +10 -0
  227. package/dist/leaveGuard-Cc8yeLxM.js +72 -0
  228. package/dist/modal/Modal.vue.d.ts +4 -0
  229. package/dist/modal/ShortcutHelp.vue.d.ts +2 -0
  230. package/dist/modal/index.d.ts +2 -0
  231. package/dist/modal/index.js +64 -6
  232. package/dist/modal/placement.d.ts +22 -0
  233. package/dist/modules/access/entities.d.ts +112 -0
  234. package/dist/modules/access/routes.d.ts +67 -0
  235. package/dist/modules/access/schemas.d.ts +73 -0
  236. package/dist/modules/identity/entities.d.ts +150 -0
  237. package/dist/modules/identity/routes.d.ts +118 -0
  238. package/dist/modules/identity/schemas.d.ts +145 -0
  239. package/dist/{navigation-B33ikiCS.js → navigation-BPWa63ge.js} +21 -20
  240. package/dist/neighbors-D0WRBxXI.js +86 -0
  241. package/dist/{options-CjSz2dQK.js → options-BXkMR63B.js} +48 -49
  242. package/dist/overlay/AlertDialog.vue.d.ts +3 -3
  243. package/dist/overlay/Popover.vue.d.ts +4 -1
  244. package/dist/overlay/closeOverlays.d.ts +7 -0
  245. package/dist/overlay/dialogStack.d.ts +9 -0
  246. package/dist/overlay/index.d.ts +1 -1
  247. package/dist/overlay/index.js +20 -18
  248. package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
  249. package/dist/page/ResourceHeader.vue.d.ts +2 -2
  250. package/dist/page/index.js +99 -457
  251. package/dist/phone/PhoneField.vue.d.ts +2 -2
  252. package/dist/phone/index.js +247 -540
  253. package/dist/platform/AccessGate.vue.d.ts +50 -0
  254. package/dist/platform/index.d.ts +4 -2
  255. package/dist/platform/index.js +38 -35
  256. package/dist/platform/platform.d.ts +2 -2
  257. package/dist/platform/session.d.ts +22 -1
  258. package/dist/platform-hunMqFdB.js +255 -0
  259. package/dist/resource/index.js +8 -248
  260. package/dist/routeResource-DstM0hvf.js +82 -0
  261. package/dist/router/guards.d.ts +7 -1
  262. package/dist/router/index.js +23 -37
  263. package/dist/router/navigation.d.ts +1 -1
  264. package/dist/rowLayout-BI7a3Kom.js +603 -0
  265. package/dist/sectionIndex-BS0ic5W7.js +86 -0
  266. package/dist/{sections-LtxV5Mtk.js → sections-BEqW1dOc.js} +1 -1
  267. package/dist/shell/AccountMenuItem.vue.d.ts +4 -1
  268. package/dist/shell/BackofficeShell.vue.d.ts +2 -2
  269. package/dist/shell/ShellBrand.vue.d.ts +1 -1
  270. package/dist/shell/backofficeShell.d.ts +1 -1
  271. package/dist/shell/identity.d.ts +1 -1
  272. package/dist/shell/index.js +476 -532
  273. package/dist/state/Badge.vue.d.ts +17 -10
  274. package/dist/state/ProgressTrack.vue.d.ts +1 -1
  275. package/dist/state/hue.d.ts +8 -0
  276. package/dist/state/index.d.ts +2 -0
  277. package/dist/state/index.js +34 -31
  278. package/dist/state/useLoad.d.ts +41 -0
  279. package/dist/status-C9aXR-Jb.js +33 -0
  280. package/dist/styles.css +1 -1
  281. package/dist/suggestions-BJAqOj4c.js +138 -0
  282. package/dist/testing/app.d.ts +61 -0
  283. package/dist/testing/async.d.ts +12 -0
  284. package/dist/testing/collection.d.ts +18 -0
  285. package/dist/testing/format.d.ts +9 -0
  286. package/dist/testing/i18n.d.ts +16 -0
  287. package/dist/testing/index.d.ts +14 -0
  288. package/dist/testing/index.js +178 -0
  289. package/dist/testing/media.d.ts +23 -0
  290. package/dist/testing/platform.d.ts +40 -0
  291. package/dist/testing/transport.d.ts +40 -0
  292. package/dist/toast-D9Z5To38.js +13 -0
  293. package/dist/useCommand-BgRwnYlV.js +135 -0
  294. package/dist/{useDialog-wmyNx2j_.js → useDialog-CXR3hN0G.js} +1 -1
  295. package/dist/useLoad-CYRVx6HW.js +39 -0
  296. package/dist/useResourceForm-Bgc9jMcu.js +52 -0
  297. package/dist/useSaveChrome-chi6D3HY.js +25 -0
  298. package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
  299. package/package.json +26 -5
  300. package/src/styles/theme.css +60 -0
  301. package/dist/Badge.vue_vue_type_script_setup_true_lang-DKc6ugmr.js +0 -31
  302. package/dist/Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js +0 -141
  303. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
  304. package/dist/SectionList.vue_vue_type_script_setup_true_lang-DGcKX_OJ.js +0 -230
  305. package/dist/SelectField.vue_vue_type_script_setup_true_lang-SyFWE33A.js +0 -422
  306. package/dist/Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.js +0 -210
  307. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
  308. package/dist/chrome-D9pwD6iS.js +0 -101
  309. package/dist/dialogStack-DiTG1rZc.js +0 -26
  310. package/dist/environment-D3nozt9a.js +0 -75
  311. package/dist/feature-DyDtyMLU.js +0 -47
  312. package/dist/platform-jqlKVJ2e.js +0 -244
  313. package/dist/toast-BTeX0r66.js +0 -129
  314. /package/dist/{phone → internal}/flagLoaders.d.ts +0 -0
package/dist/app/index.js CHANGED
@@ -1,66 +1,72 @@
1
1
  var Ee = Object.defineProperty;
2
- var ke = (e, a, n) => a in e ? Ee(e, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[a] = n;
3
- var Y = (e, a, n) => ke(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 Ne } from "vue";
5
- import { useI18n as je, 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-3f0emVNU.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 b(l, d) {
25
- const g = new AbortController(), u = { controller: g, stops: [] };
26
- for (const p of l)
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-VvcV2Bzo.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-hunMqFdB.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-8m9cNptR.js";
16
+ import { i as Ze } from "../guards-Cd1V28oG.js";
17
+ import { b as et, c as tt, n as ne } from "../navigation-BPWa63ge.js";
18
+ import { c as st, s as ae } from "../contributions-CDDg3fKp.js";
19
+ import { S as Tt } from "../contributions-CDDg3fKp.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-CYil8h9z.js";
23
+ import { _ as rt } from "../EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.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 $ = d(p, g.signal);
29
- typeof $ == "function" && u.stops.push({ owned: p, stop: $ });
34
+ const $ = m(E, h.signal);
35
+ typeof $ == "function" && u.stops.push({ owned: E, stop: $ });
30
36
  } catch ($) {
31
- e.onError($, p);
37
+ e.onError($, E);
32
38
  }
33
39
  return u;
34
40
  }
35
- function E(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 k = (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 = b(
51
- k("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 = k("session");
55
- n.run(
56
- () => P(
57
- () => x(a.session.state.value),
58
- (d) => {
59
- E(h), h = null;
60
- const g = a.session.state.value;
61
- d === null || g.status !== "authenticated" || (h = b(
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: ($) => e.onError($, 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(), E(h), E(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 } = je();
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,358 +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 = [], b = /* @__PURE__ */ new Set(), E = (o) => {
134
- if (b.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(" -> ")}.`), b.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 && E(m);
148
+ const d = w.get(c);
149
+ d && R(d);
144
150
  }
145
- y.pop(), b.add(o.id);
151
+ v.pop(), k.add(o.id);
146
152
  };
147
- i.forEach(E);
148
- const k = 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
- k.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 N of Object.keys(c.loaders))
177
- e.supportedLocales.includes(N) || n(o, `the namespace "${c.namespace}" has a loader for "${N}", 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);
186
+ for (const o of i) E(g(o), o.messages);
187
+ E(le, e.messages);
182
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
- $(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
- $(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 jt(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(", ")}).` });
224
- const b = e.locale?.initial ?? (n.includes(a.config.locale) ? a.config.locale : i);
225
- n.includes(b) || y.push({ owner: "application", message: `the initial locale "${b}" is not among the supported locales (${n.join(", ")}).` });
226
- const E = [Je, Fe, He, Ve, De, re, ae, ne, se], k = ct({
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(", ")}).` });
230
+ for (const t of Object.keys(e.locale?.flags ?? {}))
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({
227
235
  features: e.features,
228
236
  platform: a,
229
237
  messages: e.messages ?? [],
230
- reservedContexts: E,
231
- supportedLocales: n,
232
- shellSlots: h?.slots
233
- }), x = [...y, ...k.issues], l = k.features, d = Ze(
234
- 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 }))),
235
243
  e.navigation
236
244
  );
237
- for (const t of d.issues) x.push({ owner: "navigation", message: t });
238
- if (x.length > 0) throw new ie(x);
239
- const g = lt(b, i, e.i18n), u = g.global;
240
- for (const [t, r] of Object.entries(oe)) u.mergeLocaleMessage(t, r);
241
- for (const [t, r] of Object.entries(e.i18n?.messages ?? {})) u.mergeLocaleMessage(t, r);
242
- const p = Ke({ locale: () => u.locale.value, formatters: e.formatting }), $ = [...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({
243
251
  target: u,
244
252
  namespaces: $,
245
253
  fallback: i,
246
- supported: n,
247
- onFailure: (t) => A({ source: "messages", error: t.error, detail: `${t.namespace} (${t.locale})`, feature: o.get(t.namespace) })
248
- }), o = new Map(l.flatMap((t) => t.messages.map((r) => [r.namespace, t.id]))), s = Te({
249
- history: e.router?.history ?? Ue(),
250
- routes: l.flatMap((t) => fe(t.routes, t.id)),
251
- scrollBehavior: e.router?.scrollBehavior ?? ((t, r) => t.name === r.name ? !1 : { top: 0 })
252
- }), c = e.router?.login ?? { name: "login" }, m = e.router?.home ?? { path: "/" }, N = [], 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) => {
253
261
  try {
254
262
  return s.resolve(t).matched.length > 0 ? null : "matches no route";
255
- } catch (r) {
256
- const f = r instanceof Error ? r.message : String(r);
263
+ } catch (n) {
264
+ const f = n instanceof Error ? n.message : String(n);
257
265
  return f.startsWith("No match for") ? "matches no route" : `cannot be resolved (${f})`;
258
266
  }
259
267
  };
260
- 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))) {
261
269
  const t = H(c) ?? (s.resolve(c).meta.public === !0 ? null : "is not public (meta.public: true)");
262
- t && N.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.` });
263
271
  }
264
- for (const { feature: t, binding: r } of d.destinations.values()) {
265
- const f = H(r.to);
266
- f && N.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}.` });
267
275
  }
268
- if (N.length > 0) throw new ie(N);
269
- const j = Me({ status: "idle" }), K = {
270
- state: j,
271
- locale: Re(() => u.locale.value),
272
- locales: n,
276
+ if (L.length > 0) throw new ce(L);
277
+ const N = je({ status: "idle" }), I = {
278
+ state: N,
279
+ locale: Le(() => u.locale.value),
280
+ locales: r,
281
+ localeFlags: e.locale?.flags ?? {},
273
282
  setLocale: async (t) => {
274
- const r = u.locale.value, f = await R.setLocale(t);
275
- if (f && u.locale.value !== r) {
276
- 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 });
277
286
  try {
278
- Promise.resolve(e.locale?.onChange?.(t)).catch(S);
279
- } catch (O) {
280
- S(O);
287
+ Promise.resolve(e.locale?.onChange?.(t)).catch(b);
288
+ } catch (C) {
289
+ b(C);
281
290
  }
282
291
  }
283
292
  return f;
284
293
  },
285
- retry: () => q()
286
- }, I = {
287
- contributions: l.flatMap((t) => t.contributions.map((r) => ({ feature: t.id, contribution: r }))),
288
- effects: l.flatMap((t) => t.effects.map((r) => ({ feature: t.id, effect: r })))
289
- }, V = rt({
290
- 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,
291
300
  platform: a,
292
301
  sessionKey: e.sessionKey,
293
- onError: (t, r) => A({ source: "effect", error: t, feature: r.feature, detail: r.effect.id })
294
- }), 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");
295
- async function he(t) {
296
- const r = t.matched.flatMap((S) => [...de.get(S.meta.feature ?? "") ?? [], ...S.meta.messages ?? []]), f = a.session.state.value.status === "authenticated";
297
- 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 : []]));
298
307
  }
299
- let F = null;
300
- function W(t) {
301
- 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);
302
- 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);
303
312
  }
304
- 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({
305
314
  name: "ApplicationRoot",
306
315
  setup() {
307
316
  return () => {
308
- const t = j.value;
309
- return t.status === "failed" ? te(it, { kind: t.kind, onRetry: () => void q() }) : t.status !== "ready" ? null : te(h?.component ?? Qe);
317
+ const t = N.value;
318
+ return t.status === "failed" ? se(ct, { kind: t.kind, onRetry: () => void P() }) : t.status !== "ready" ? null : se(w?.component ?? Ue);
310
319
  };
311
320
  }
312
- }), v = Ne(ye);
313
- 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);
314
- for (const t of l) for (const { key: r, value: f } of t.contexts) v.provide(r, f);
315
- let M = !1, J = !1, z = !1, Q = !1;
316
- const T = [];
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 = [];
317
326
  function be() {
318
- const t = v.config.errorHandler;
319
- v.config.errorHandler = (L, $e, X) => {
320
- A({ source: "vue", error: L, detail: X }), t?.(L, $e, X);
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);
321
330
  };
322
- const r = (L) => A({ source: "unhandledrejection", error: L.reason }), f = (L) => {
323
- 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 });
324
333
  };
325
- window.addEventListener("unhandledrejection", r), window.addEventListener("error", f), T.push(() => {
326
- window.removeEventListener("unhandledrejection", r), window.removeEventListener("error", f);
327
- }), T.push(
328
- 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({
329
340
  router: s,
330
341
  session: a.session,
331
342
  login: c,
332
- home: m,
333
- prepare: he,
334
- afterNavigation: W,
335
- progress: e.router?.progress ?? h?.progress,
336
- 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 })
337
349
  })
338
350
  );
339
- const S = D();
340
- S.run(() => P(() => F?.documentTitle.value, () => W(s.currentRoute.value))), T.push(() => S.stop());
341
- const O = D();
342
- O.run(
343
- () => 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(
344
356
  () => u.locale.value,
345
- (L) => {
346
- document.documentElement.lang = L, W(s.currentRoute.value);
357
+ (y) => {
358
+ document.documentElement.lang = y, q(s.currentRoute.value);
347
359
  },
348
360
  { immediate: !0 }
349
361
  )
350
- ), T.push(() => O.stop());
362
+ ), O.push(() => X.stop());
351
363
  }
352
- const C = (t, r) => {
353
- j.value = { status: "failed", kind: t, error: r };
364
+ const _ = (t, n) => {
365
+ N.value = { status: "failed", kind: t, error: n };
354
366
  };
355
367
  async function U() {
356
- j.value = { status: "starting" };
368
+ N.value = { status: "starting" };
357
369
  const t = await a.session.restore();
358
- if (M) return;
359
- if (t.status === "failed") return C("session", t.error);
360
- const r = await R.loadEssential();
361
- if (!M) {
362
- 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);
363
375
  try {
364
376
  const f = await s.replace(s.options.history.location);
365
- if (M) return;
366
- if (_e(f)) return C("startup", f);
377
+ if (S) return;
378
+ if (_e(f)) return _("startup", f);
367
379
  } catch (f) {
368
- M || C("startup", f);
380
+ S || _("startup", f);
369
381
  return;
370
382
  }
371
- Q || (v.use(s), Q = !0), j.value = { status: "ready" }, V.start();
383
+ Q || (p.use(s), Q = !0), N.value = { status: "ready" }, V.start();
372
384
  }
373
385
  }
374
- async function q() {
375
- M || j.value.status !== "failed" || (await R.retry(), await U());
386
+ async function P() {
387
+ S || N.value.status !== "failed" || (await A.retry(), await U());
376
388
  }
377
389
  return {
378
- app: v,
390
+ app: p,
379
391
  router: s,
380
- i18n: g,
381
- state: j,
382
- locale: K.locale,
383
- setLocale: K.setLocale,
392
+ i18n: h,
393
+ state: N,
394
+ locale: I.locale,
395
+ setLocale: I.setLocale,
384
396
  async mount(t) {
385
- 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().");
386
398
  if (J) throw new Error("This application is already mounted.");
387
- J = !0, be(), await U(), !M && (v.mount(t), z = !0);
399
+ J = !0, be(), await U(), !S && (p.mount(t), z = !0);
388
400
  },
389
- retry: q,
401
+ retry: P,
390
402
  dispose() {
391
- if (!M) {
392
- M = !0, V.dispose(), R.dispose(), z && v.unmount();
393
- 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();
394
406
  s.options.history.destroy();
395
407
  }
396
408
  }
397
409
  };
398
410
  }
399
- function ft(e) {
411
+ function dt(e) {
400
412
  console.error(`[vue-core] ${e.source}${e.feature ? ` (${e.feature})` : ""}${e.detail ? `: ${e.detail}` : ""}`, e.error);
401
413
  }
402
- function dt(e, a) {
403
- return [e, a].filter((n) => !!n).join(" · ");
404
- }
405
- const pt = 864e5;
406
- function Ot(e = {}) {
407
- const { margin: a = 6e4, retryAfter: n = 3e4 } = e;
408
- return {
409
- id: "vue-core.keep-session-alive",
410
- scope: "session",
411
- start({ signal: i, platform: h, report: y }) {
412
- let b, E = null;
413
- const k = () => {
414
- const p = h.session.state.value;
415
- return p.status === "authenticated" && p.expiresAt ? p.expiresAt.getTime() - Date.now() - a : null;
416
- }, x = () => (E ?? (E = (async () => {
417
- try {
418
- await e.renew?.(h), await h.session.refresh();
419
- } catch (p) {
420
- y(p);
421
- } finally {
422
- E = null;
423
- }
424
- })()), E);
425
- function l(p = 0) {
426
- clearTimeout(b);
427
- const $ = k();
428
- $ !== null && !i.aborted && (b = setTimeout(() => void d(), Math.min(Math.max($, p), pt)));
429
- }
430
- async function d() {
431
- if (i.aborted || !navigator.onLine) return;
432
- const p = k();
433
- if (p !== null) {
434
- if (p <= 0) {
435
- if (await x(), i.aborted) return;
436
- l((k() ?? 1) <= 0 ? n : 0);
437
- return;
438
- }
439
- l();
440
- }
441
- }
442
- const g = () => {
443
- document.visibilityState === "visible" && d();
444
- }, u = () => void d();
445
- return document.addEventListener("visibilitychange", g), window.addEventListener("online", u), d(), () => {
446
- clearTimeout(b), document.removeEventListener("visibilitychange", g), window.removeEventListener("online", u);
447
- };
448
- }
449
- };
414
+ function pt(e, a) {
415
+ return [e, a].filter((r) => !!r).join(" · ");
450
416
  }
451
417
  export {
452
- ie as ApplicationError,
453
- It as ShellOutlet,
454
- se as applicationKey,
455
- jt as createApplication,
456
- Ft as defineFeature,
457
- Ot as keepSessionAlive,
458
- Wt as provideContext,
459
- 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
460
426
  };