@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
@@ -0,0 +1,315 @@
1
+ import { defineComponent as I, computed as z, openBlock as l, createBlock as b, unref as e, withCtx as n, createElementVNode as S, createVNode as f, mergeProps as W, useTemplateRef as A, ref as j, createElementBlock as y, toDisplayString as L, Fragment as D, createCommentVNode as w, renderList as E, createTextVNode as G } from "vue";
2
+ import { useI18n as K } from "vue-i18n";
3
+ import { useRouter as X } from "vue-router";
4
+ import { _ as Y } from "./IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js";
5
+ import { _ as C } from "./FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js";
6
+ import { e as F } from "./options-BXkMR63B.js";
7
+ import { u as Z } from "./describeError-Ctga6GcS.js";
8
+ import { _ as ee } from "./AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js";
9
+ import { t as q } from "./toast-D9Z5To38.js";
10
+ import { _ as oe } from "./RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js";
11
+ import { u as te } from "./platform-hunMqFdB.js";
12
+ import { a as ae, u as le } from "./routeResource-DstM0hvf.js";
13
+ import { a as se } from "./ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js";
14
+ import { _ as re } from "./AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js";
15
+ import { _ as H } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
16
+ import { u as O, a as U, f as ce, d as ne, b as M, c as T } from "./index-B2dbYZR9.js";
17
+ import { _ as J } from "./SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js";
18
+ import { u as ie, _ as ue } from "./useCommand-BgRwnYlV.js";
19
+ import { _ as me } from "./Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js";
20
+ import { _ as pe } from "./RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js";
21
+ const de = { "data-test": "role-replace" }, fe = /* @__PURE__ */ I({
22
+ __name: "ReplaceRoleDialog",
23
+ props: {
24
+ role: {},
25
+ others: {}
26
+ },
27
+ emits: ["replaced"],
28
+ setup(B, { expose: r, emit: g }) {
29
+ const s = B, i = g, { t: _ } = K(), k = O(), m = U(), p = ie({
30
+ defaults: () => ({ with: null }),
31
+ validator: {
32
+ safeParse: (c) => c.with ? { success: !0, data: { with: c.with } } : { success: !1, error: { issues: [{ path: ["with"], message: _("core.access.replace.choose") }] } }
33
+ },
34
+ failureMessage: ce(),
35
+ run: (c) => m.replace(s.role.ref, c.with),
36
+ done: (c) => {
37
+ q.success(_("core.access.replace.done", { count: c })), i("replaced", c);
38
+ }
39
+ }), h = z(() => s.others.map((c) => ({ value: c.ref, label: k.roleName(c) })));
40
+ return r({ present: () => p.present() }), (c, N) => (l(), b(e(ue), {
41
+ command: e(p),
42
+ title: e(_)("core.access.replace.title"),
43
+ subtitle: e(k).roleName(s.role),
44
+ size: "md",
45
+ "confirm-label": e(_)("core.access.replace.confirm"),
46
+ message: e(_)("core.access.replace.moves", { count: s.role.holders })
47
+ }, {
48
+ default: n(() => [
49
+ S("div", de, [
50
+ f(e(C), {
51
+ footer: e(_)("core.access.replace.footer")
52
+ }, {
53
+ default: n(() => [
54
+ f(e(J), W(e(p).form.bind("with"), {
55
+ label: e(_)("core.access.replace.with"),
56
+ options: h.value
57
+ }), null, 16, ["label", "options"])
58
+ ]),
59
+ _: 1
60
+ }, 8, ["footer"])
61
+ ])
62
+ ]),
63
+ _: 1
64
+ }, 8, ["command", "title", "subtitle", "confirm-label", "message"]));
65
+ }
66
+ }), _e = {
67
+ class: "flex flex-col gap-group-gap",
68
+ "data-test": "role-compare"
69
+ }, ve = {
70
+ key: 0,
71
+ class: "px-row-inset text-body text-content-muted",
72
+ "data-test": "compare-loading"
73
+ }, he = {
74
+ key: 1,
75
+ class: "px-row-inset text-body text-content-destructive",
76
+ role: "alert",
77
+ "data-test": "compare-failed"
78
+ }, be = {
79
+ key: 0,
80
+ class: "px-row-inset text-body text-content-muted",
81
+ "data-test": "compare-identical"
82
+ }, ye = /* @__PURE__ */ I({
83
+ __name: "RoleCompareDialog",
84
+ props: {
85
+ role: {},
86
+ others: {}
87
+ },
88
+ setup(B, { expose: r }) {
89
+ const g = B, { t: s } = K(), i = O(), _ = U(), k = A("modal"), m = j(null), o = j(null), p = j(!1), h = j(!1), c = z(() => g.others.map((d) => ({ value: d.ref, label: i.roleName(d) }))), N = z(() => o.value !== null && !o.value.only_in_role.length && !o.value.only_in_other.length && !o.value.different.length);
90
+ async function V(d) {
91
+ if (m.value = d, o.value = null, h.value = !1, p.value = !1, !!d) {
92
+ p.value = !0;
93
+ try {
94
+ const x = await _.compare(g.role.ref, d);
95
+ m.value === d && (o.value = x);
96
+ } catch {
97
+ m.value === d && (h.value = !0);
98
+ } finally {
99
+ m.value === d && (p.value = !1);
100
+ }
101
+ }
102
+ }
103
+ function P() {
104
+ m.value = null, o.value = null, h.value = !1, k.value?.present();
105
+ }
106
+ return r({ present: P }), (d, x) => (l(), b(e(me), {
107
+ ref_key: "modal",
108
+ ref: k,
109
+ title: e(s)("core.access.compare.title"),
110
+ subtitle: e(i).roleName(g.role),
111
+ size: "lg",
112
+ grouped: "",
113
+ "without-footer": ""
114
+ }, {
115
+ default: n(() => [
116
+ S("div", _e, [
117
+ f(e(C), {
118
+ footer: e(s)("core.access.compare.footer")
119
+ }, {
120
+ default: n(() => [
121
+ f(e(J), {
122
+ "model-value": m.value,
123
+ label: e(s)("core.access.compare.with"),
124
+ options: c.value,
125
+ "onUpdate:modelValue": x[0] || (x[0] = (u) => V(u))
126
+ }, null, 8, ["model-value", "label", "options"])
127
+ ]),
128
+ _: 1
129
+ }, 8, ["footer"]),
130
+ p.value ? (l(), y("p", ve, L(e(s)("core.access.compare.loading")), 1)) : h.value ? (l(), y("p", he, L(e(s)("core.access.compare.failed")), 1)) : o.value ? (l(), y(D, { key: 2 }, [
131
+ N.value ? (l(), y("p", be, L(e(s)("core.access.compare.identical")), 1)) : w("", !0),
132
+ o.value.only_in_role.length ? (l(), b(e(C), {
133
+ key: 1,
134
+ header: e(s)("core.access.compare.only_in_role", { count: o.value.only_in_role.length })
135
+ }, {
136
+ default: n(() => [
137
+ (l(!0), y(D, null, E(o.value.only_in_role, (u) => (l(), b(e(F), {
138
+ key: u.permission,
139
+ layout: "setting",
140
+ label: e(i).permissionLabel(u.permission)
141
+ }, null, 8, ["label"]))), 128))
142
+ ]),
143
+ _: 1
144
+ }, 8, ["header"])) : w("", !0),
145
+ o.value.only_in_other.length ? (l(), b(e(C), {
146
+ key: 2,
147
+ header: e(s)("core.access.compare.only_in_other", { count: o.value.only_in_other.length })
148
+ }, {
149
+ default: n(() => [
150
+ (l(!0), y(D, null, E(o.value.only_in_other, (u) => (l(), b(e(F), {
151
+ key: u.permission,
152
+ layout: "setting",
153
+ label: e(i).permissionLabel(u.permission)
154
+ }, null, 8, ["label"]))), 128))
155
+ ]),
156
+ _: 1
157
+ }, 8, ["header"])) : w("", !0),
158
+ o.value.different.length ? (l(), b(e(C), {
159
+ key: 3,
160
+ header: e(s)("core.access.compare.different", { count: o.value.different.length })
161
+ }, {
162
+ default: n(() => [
163
+ (l(!0), y(D, null, E(o.value.different, (u) => (l(), b(e(F), {
164
+ key: u.permission,
165
+ layout: "setting",
166
+ label: e(i).permissionLabel(u.permission),
167
+ value: e(s)("core.access.compare.whose", { role: e(i).qualifierLabel(u.role), other: e(i).qualifierLabel(u.other) })
168
+ }, null, 8, ["label", "value"]))), 128))
169
+ ]),
170
+ _: 1
171
+ }, 8, ["header"])) : w("", !0)
172
+ ], 64)) : w("", !0)
173
+ ])
174
+ ]),
175
+ _: 1
176
+ }, 8, ["title", "subtitle"]));
177
+ }
178
+ }), ge = { "data-test": "role-holders" }, ke = { class: "flex min-w-0 flex-col gap-group-gap" }, Ie = /* @__PURE__ */ I({
179
+ __name: "RolePage",
180
+ setup(B) {
181
+ const { t: r } = K(), g = X(), { access: s } = te(), i = O(), _ = Z(), { subjectRoute: k } = ne(), m = U(), o = ae({ param: "ref", parse: (t) => t === "" ? null : t, identify: (t) => t.ref, load: (t, { signal: a }) => m.role(t, { signal: a }) }), p = le({ for: o, load: (t, { signal: a }) => m.holders(t, { signal: a }) }), h = j([]), c = A("compareDialog"), N = A("replaceDialog"), V = A("deleteDialog"), P = (t) => !t.predefined && !t.computed;
182
+ async function d(t) {
183
+ if (h.value.length === 0)
184
+ try {
185
+ h.value = (await m.roles()).filter((a) => a.predefined);
186
+ } catch (a) {
187
+ q.error(_(a));
188
+ return;
189
+ }
190
+ t();
191
+ }
192
+ const x = z(() => {
193
+ const t = o.data.value;
194
+ if (!t) return [];
195
+ const a = [];
196
+ return s.can(M.manageRoles) && a.push({ id: "copy", label: r("core.access.copy"), icon: "copy", placement: "secondary", onClick: () => void g.push({ ...T.newRole, query: { copy: t.ref } }) }), P(t) && s.can(M.manageRoles) && (a.push({ id: "compare", label: r("core.access.compare.action"), icon: "swapBoxLine", placement: "overflow", onClick: () => void d(() => c.value?.present()) }), a.push({ id: "replace", label: r("core.access.replace.action"), icon: "refreshLine", placement: "overflow", onClick: () => void d(() => N.value?.present()) })), P(t) && s.can(M.deleteRoles) && a.push({ id: "delete", label: r("core.access.delete.action"), icon: "deleteBin2Line", placement: "overflow", tone: "critical", onClick: () => V.value?.present(t) }), a;
197
+ });
198
+ async function u(t) {
199
+ await m.remove(t.ref), q.success(r("core.access.deleted")), await g.replace(T.roles);
200
+ }
201
+ const Q = (t) => q.error(_(t, { fallback: r("core.access.delete.failed") }));
202
+ return (t, a) => (l(), b(e(se), {
203
+ resource: e(o),
204
+ title: e(o).data.value ? e(i).roleName(e(o).data.value) : "",
205
+ back: { label: e(r)("core.access.title"), to: e(T).roles },
206
+ actions: x.value
207
+ }, {
208
+ header: n(({ record: v }) => [
209
+ f(e(oe), {
210
+ title: e(i).roleName(v),
211
+ subtitle: v.description
212
+ }, {
213
+ leading: n(() => [
214
+ f(e(Y), {
215
+ tone: v.predefined ? "anchor" : "brand",
216
+ icon: "shieldStarFill",
217
+ size: "lg"
218
+ }, null, 8, ["tone"])
219
+ ]),
220
+ meta: n(() => [
221
+ f(e(H), {
222
+ tone: v.predefined ? "neutral" : "info"
223
+ }, {
224
+ default: n(() => [
225
+ G(L(e(i).roleKind(v)), 1)
226
+ ]),
227
+ _: 2
228
+ }, 1032, ["tone"]),
229
+ S("span", ge, L(e(r)("core.access.holders_count", { count: v.holders })), 1)
230
+ ]),
231
+ _: 2
232
+ }, 1032, ["title", "subtitle"])
233
+ ]),
234
+ default: n(({ record: v }) => [
235
+ S("div", ke, [
236
+ f(pe, {
237
+ role: v,
238
+ onSaved: a[0] || (a[0] = ($) => {
239
+ e(o).update($), e(p).reload();
240
+ })
241
+ }, null, 8, ["role"]),
242
+ f(e(re), {
243
+ state: e(p).state.value,
244
+ "skeleton-rows": 3,
245
+ "is-empty": () => !1,
246
+ onRetry: a[1] || (a[1] = ($) => e(p).reload())
247
+ }, {
248
+ default: n(({ value: $ }) => [
249
+ f(e(C), {
250
+ header: e(r)("core.access.holders.title"),
251
+ footer: $.length ? void 0 : e(r)("core.access.holders.empty")
252
+ }, {
253
+ default: n(() => [
254
+ (l(!0), y(D, null, E($, (R) => (l(), b(e(F), {
255
+ key: `${R.subject.kind}-${R.subject.id}`,
256
+ layout: "setting",
257
+ label: R.name,
258
+ sub: e(i).scopeLabel(R.scope),
259
+ to: e(k)(R.subject) ?? void 0
260
+ }, {
261
+ default: n(() => [
262
+ R.subject.kind === "service" ? (l(), b(e(H), {
263
+ key: 0,
264
+ tone: "neutral"
265
+ }, {
266
+ default: n(() => [
267
+ G(L(e(r)("core.access.holders.service")), 1)
268
+ ]),
269
+ _: 1
270
+ })) : w("", !0)
271
+ ]),
272
+ _: 2
273
+ }, 1032, ["label", "sub", "to"]))), 128))
274
+ ]),
275
+ _: 2
276
+ }, 1032, ["header", "footer"])
277
+ ]),
278
+ _: 1
279
+ }, 8, ["state"]),
280
+ P(v) ? (l(), y(D, { key: 0 }, [
281
+ f(ye, {
282
+ ref_key: "compareDialog",
283
+ ref: c,
284
+ role: v,
285
+ others: h.value
286
+ }, null, 8, ["role", "others"]),
287
+ f(fe, {
288
+ ref_key: "replaceDialog",
289
+ ref: N,
290
+ role: v,
291
+ others: h.value,
292
+ onReplaced: a[2] || (a[2] = ($) => {
293
+ e(o).reload(), e(p).reload();
294
+ })
295
+ }, null, 8, ["role", "others"]),
296
+ f(e(ee), {
297
+ ref_key: "deleteDialog",
298
+ ref: V,
299
+ tone: "critical",
300
+ title: e(r)("core.access.delete.title"),
301
+ message: e(r)("core.access.delete.body", { name: e(i).roleName(v) }),
302
+ "confirm-label": e(r)("core.access.delete.action"),
303
+ action: u,
304
+ onFailed: Q
305
+ }, null, 8, ["title", "message", "confirm-label"])
306
+ ], 64)) : w("", !0)
307
+ ])
308
+ ]),
309
+ _: 1
310
+ }, 8, ["resource", "title", "back", "actions"]));
311
+ }
312
+ });
313
+ export {
314
+ Ie as default
315
+ };
@@ -0,0 +1,115 @@
1
+ import { defineComponent as L, ref as b, computed as i, openBlock as d, createBlock as g, unref as e, withCtx as l, createElementVNode as f, createVNode as n, createElementBlock as h, toDisplayString as _, createCommentVNode as N, Fragment as R, renderList as B, createTextVNode as P } from "vue";
2
+ import { useI18n as A } from "vue-i18n";
3
+ import { useRouter as F } from "vue-router";
4
+ import { _ as S } from "./IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js";
5
+ import { _ as E } from "./Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js";
6
+ import { _ as U } from "./FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js";
7
+ import { e as j } from "./options-BXkMR63B.js";
8
+ import { _ as D } from "./TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js";
9
+ import { a as I } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js";
10
+ import { u as K } from "./platform-hunMqFdB.js";
11
+ import { _ as T } from "./AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js";
12
+ import { _ as q } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
13
+ import { u as z } from "./useLoad-CYRVx6HW.js";
14
+ import { u as G, a as H, b as J, c as x } from "./index-B2dbYZR9.js";
15
+ const M = {
16
+ class: "flex min-w-0 flex-col gap-group-gap",
17
+ "data-test": "roles-index"
18
+ }, O = { class: "flex flex-wrap items-center gap-3" }, Q = {
19
+ key: 0,
20
+ class: "px-row-inset py-6 text-center text-body text-content-muted",
21
+ "data-test": "roles-empty"
22
+ }, W = {
23
+ class: "min-w-[4.5rem] text-right text-footnote tabular-nums text-content-muted",
24
+ "data-test": "role-holders"
25
+ }, me = /* @__PURE__ */ L({
26
+ __name: "RolesPage",
27
+ setup(X) {
28
+ const { t: o } = A(), k = F(), { access: w } = K(), u = G(), y = H(), m = z(({ signal: s }) => y.roles({ signal: s })), c = b("all"), p = b(""), r = i(() => m.data.value ?? []), $ = i(() => [
29
+ { value: "all", label: o("core.access.kinds.all"), badge: r.value.length },
30
+ { value: "predefined", label: o("core.access.kinds.predefined"), badge: r.value.filter((s) => s.predefined).length },
31
+ { value: "custom", label: o("core.access.kinds.custom"), badge: r.value.filter((s) => !s.predefined).length }
32
+ ]), v = i(() => {
33
+ const s = p.value.trim().toLowerCase();
34
+ return r.value.filter(
35
+ (a) => (c.value === "all" || c.value === "predefined" === a.predefined) && (s === "" || `${u.roleName(a)} ${a.description}`.toLowerCase().includes(s))
36
+ );
37
+ }), V = i(
38
+ () => w.can(J.manageRoles) ? [{ id: "create", label: o("core.access.create"), icon: "addLine", placement: "primary", compact: "icon", onClick: () => void k.push(x.newRole) }] : []
39
+ ), C = (s) => [s.description, o("core.access.permissions", { count: s.permission_count })].filter(Boolean).join(" · ");
40
+ return (s, a) => (d(), g(e(I), {
41
+ title: e(o)("core.access.title"),
42
+ description: e(o)("core.access.description"),
43
+ icon: "shieldStarFill",
44
+ count: r.value.length || null,
45
+ actions: V.value
46
+ }, {
47
+ default: l(() => [
48
+ f("div", M, [
49
+ f("div", O, [
50
+ n(e(E), {
51
+ modelValue: c.value,
52
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => c.value = t),
53
+ tabs: $.value,
54
+ presentation: "scope"
55
+ }, null, 8, ["modelValue", "tabs"]),
56
+ n(e(D), {
57
+ modelValue: p.value,
58
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => p.value = t),
59
+ class: "min-w-[14rem] flex-1",
60
+ placeholder: e(o)("core.access.search")
61
+ }, null, 8, ["modelValue", "placeholder"])
62
+ ]),
63
+ n(e(T), {
64
+ state: e(m).state.value,
65
+ "skeleton-rows": 6,
66
+ "is-empty": () => !1,
67
+ onRetry: a[2] || (a[2] = (t) => e(m).reload())
68
+ }, {
69
+ default: l(() => [
70
+ n(e(U), {
71
+ footer: e(o)("core.access.list_footer")
72
+ }, {
73
+ default: l(() => [
74
+ v.value.length === 0 ? (d(), h("p", Q, _(e(o)("core.access.empty")), 1)) : N("", !0),
75
+ (d(!0), h(R, null, B(v.value, (t) => (d(), g(e(j), {
76
+ key: t.ref,
77
+ layout: "setting",
78
+ label: e(u).roleName(t),
79
+ sub: C(t),
80
+ to: e(x).role({ ref: t.ref })
81
+ }, {
82
+ leading: l(() => [
83
+ n(e(S), {
84
+ tone: t.predefined ? "anchor" : "brand",
85
+ icon: "shieldStarFill"
86
+ }, null, 8, ["tone"])
87
+ ]),
88
+ default: l(() => [
89
+ n(e(q), {
90
+ tone: t.predefined ? "neutral" : "info"
91
+ }, {
92
+ default: l(() => [
93
+ P(_(e(u).roleKind(t)), 1)
94
+ ]),
95
+ _: 2
96
+ }, 1032, ["tone"]),
97
+ f("span", W, _(e(o)("core.access.holders_count", { count: t.holders })), 1)
98
+ ]),
99
+ _: 2
100
+ }, 1032, ["label", "sub", "to"]))), 128))
101
+ ]),
102
+ _: 1
103
+ }, 8, ["footer"])
104
+ ]),
105
+ _: 1
106
+ }, 8, ["state"])
107
+ ])
108
+ ]),
109
+ _: 1
110
+ }, 8, ["title", "description", "count", "actions"]));
111
+ }
112
+ });
113
+ export {
114
+ me as default
115
+ };
@@ -0,0 +1,23 @@
1
+ import { defineComponent as c, openBlock as e, createElementBlock as o, createElementVNode as n, toDisplayString as s, createCommentVNode as r, renderSlot as a } from "vue";
2
+ const l = { class: "flex flex-wrap items-end gap-3 px-row-inset" }, d = { class: "flex min-w-0 grow basis-56 flex-col gap-1" }, m = { class: "text-title font-semibold tracking-tight text-content-strong" }, p = {
3
+ key: 0,
4
+ class: "max-w-readable text-subheadline text-content-muted"
5
+ }, f = /* @__PURE__ */ c({
6
+ __name: "SectionIntro",
7
+ props: {
8
+ title: {},
9
+ description: {}
10
+ },
11
+ setup(t) {
12
+ return (i, x) => (e(), o("div", l, [
13
+ n("div", d, [
14
+ n("h2", m, s(t.title), 1),
15
+ t.description ? (e(), o("p", p, s(t.description), 1)) : r("", !0)
16
+ ]),
17
+ a(i.$slots, "actions")
18
+ ]));
19
+ }
20
+ });
21
+ export {
22
+ f as _
23
+ };
@@ -0,0 +1,148 @@
1
+ import { defineComponent as $, computed as _, unref as s, openBlock as l, createBlock as C, withCtx as g, createElementVNode as n, createVNode as k, mergeProps as z, createElementBlock as d, toDisplayString as c, createCommentVNode as u, resolveDynamicComponent as B, normalizeClass as y, Fragment as I, renderList as D, withModifiers as E, normalizeStyle as L } from "vue";
2
+ import { useI18n as S } from "vue-i18n";
3
+ import { _ as j } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
4
+ import { _ as N } from "./Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js";
5
+ import { _ as V } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js";
6
+ import { a as q } from "./sectionIndex-BS0ic5W7.js";
7
+ const M = {
8
+ class: "dock-safe-area pointer-events-none",
9
+ "data-test": "section-jumper"
10
+ }, O = { class: "flex justify-center px-4 pb-3" }, T = ["aria-label", "onClick"], F = {
11
+ key: 0,
12
+ class: "text-footnote font-semibold tabular-nums text-content-link"
13
+ }, J = { class: "min-w-0 truncate text-headline font-semibold text-content-strong" }, P = {
14
+ key: 1,
15
+ "data-test": "jumper-error-count",
16
+ class: "min-w-4.5 rounded-full bg-status-danger-solid px-1.5 text-center text-caption font-semibold text-white"
17
+ }, le = /* @__PURE__ */ $({
18
+ __name: "SectionJumper",
19
+ props: {
20
+ states: { default: void 0 }
21
+ },
22
+ setup(v) {
23
+ const x = v, { t } = S(), m = q(), a = _(() => m?.sections.value ?? []), r = _(() => a.value.find((e) => e.id === m?.activeId.value) ?? a.value[0] ?? null), p = (e) => [e.number, e.label].filter(Boolean).join(" "), i = (e) => x.states?.[e]?.errors ?? 0, b = (e) => i(e.id) > 0 ? `${p(e)} · ${t("core.form.sections.errors", { count: i(e.id) })}` : p(e), h = _(() => a.value.map((e) => ({ id: e.id, label: b(e), onSelect: () => void m?.scrollTo(e.id) })));
24
+ return (e, f) => s(m) && a.value.length > 1 && r.value ? (l(), C(V, { key: 0 }, {
25
+ default: g(() => [
26
+ n("div", M, [
27
+ n("div", O, [
28
+ k(N, {
29
+ items: h.value,
30
+ label: s(t)("core.sections.label"),
31
+ placement: "top"
32
+ }, {
33
+ trigger: g(({ toggle: o, attrs: w }) => [
34
+ n("button", z({ type: "button" }, w, {
35
+ "aria-label": `${s(t)("core.sections.label")}: ${b(r.value)}`,
36
+ class: "pointer-events-auto flex h-12 max-w-full cursor-pointer items-center gap-2.5 rounded-full bg-surface-overlay/90 pr-3.5 pl-4 shadow-float backdrop-blur-xl transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
37
+ onClick: o
38
+ }), [
39
+ r.value.number ? (l(), d("span", F, c(r.value.number), 1)) : u("", !0),
40
+ n("span", J, c(r.value.label), 1),
41
+ i(r.value.id) > 0 ? (l(), d("span", P, c(i(r.value.id)), 1)) : u("", !0),
42
+ k(s(j), {
43
+ name: "arrowDownSLine",
44
+ size: 16,
45
+ class: "shrink-0 rotate-180 text-content-muted"
46
+ })
47
+ ], 16, T)
48
+ ]),
49
+ _: 1
50
+ }, 8, ["items", "label"])
51
+ ])
52
+ ])
53
+ ]),
54
+ _: 1
55
+ })) : u("", !0);
56
+ }
57
+ }), A = {
58
+ key: 0,
59
+ class: "px-2.5 text-caption font-semibold tracking-wide text-content-muted uppercase"
60
+ }, G = { class: "flex flex-col gap-0.5" }, H = ["href", "aria-current", "data-test", "data-state", "onClick"], K = {
61
+ key: 0,
62
+ class: "w-5 shrink-0 text-footnote font-semibold tabular-nums text-content-link"
63
+ }, Q = { class: "min-w-0 flex-1 break-words" }, R = ["aria-label"], U = {
64
+ key: 2,
65
+ class: "flex size-4 shrink-0 items-center justify-center rounded-full bg-control-on text-white"
66
+ }, W = { class: "sr-only" }, X = {
67
+ key: 1,
68
+ class: "mx-2.5 flex flex-col gap-1.5 border-t border-border-separator pt-3.5",
69
+ "data-test": "section-progress"
70
+ }, Y = { class: "text-footnote text-content-muted" }, Z = ["aria-valuemax", "aria-valuenow", "aria-label"], ee = { class: "text-footnote tabular-nums text-content-muted" }, ie = /* @__PURE__ */ $({
71
+ __name: "SectionList",
72
+ props: {
73
+ standalone: { type: Boolean, default: !1 },
74
+ states: { default: void 0 },
75
+ progress: { default: null }
76
+ },
77
+ emits: ["select"],
78
+ setup(v, { emit: x }) {
79
+ const t = v, m = x, { t: a } = S(), r = q(), p = _(() => r?.sections.value ?? []), i = (e) => t.states?.[e]?.errors ?? 0, b = (e) => {
80
+ const f = t.states?.[e]?.required;
81
+ return !!f && f.total > 0 && f.filled === f.total && i(e) === 0;
82
+ };
83
+ function h(e) {
84
+ r?.scrollTo(e), m("select", e);
85
+ }
86
+ return (e, f) => p.value.length > 1 ? (l(), C(B(t.standalone ? "nav" : "div"), {
87
+ key: 0,
88
+ "data-test": "section-list",
89
+ class: y(t.standalone ? "flex min-w-0 flex-col gap-3.5" : "mt-1 mb-2 pl-2"),
90
+ "aria-label": t.standalone ? s(a)("core.sections.label") : void 0
91
+ }, {
92
+ default: g(() => [
93
+ t.standalone ? (l(), d("h2", A, c(s(a)("core.sections.label")), 1)) : u("", !0),
94
+ n("ul", G, [
95
+ (l(!0), d(I, null, D(p.value, (o) => (l(), d("li", {
96
+ key: o.id
97
+ }, [
98
+ n("a", {
99
+ href: `#${o.id}`,
100
+ "aria-current": s(r)?.activeId.value === o.id ? "location" : void 0,
101
+ "data-test": `section-link-${o.id}`,
102
+ "data-state": i(o.id) > 0 ? "error" : b(o.id) ? "done" : void 0,
103
+ class: y(["flex min-h-[2.125rem] items-center gap-2.5 rounded-control px-2.5 py-1 text-body text-content-strong transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus", s(r)?.activeId.value === o.id ? "bg-tint-soft font-semibold" : "hover:bg-fill"]),
104
+ onClick: E((w) => h(o.id), ["prevent"])
105
+ }, [
106
+ o.number ? (l(), d("span", K, c(o.number), 1)) : u("", !0),
107
+ n("span", Q, c(o.label), 1),
108
+ i(o.id) > 0 ? (l(), d("span", {
109
+ key: 1,
110
+ "data-test": "section-error-count",
111
+ class: "min-w-4.5 rounded-full bg-status-danger-solid px-1.5 text-center text-caption font-semibold text-white",
112
+ "aria-label": s(a)("core.form.sections.errors", { count: i(o.id) })
113
+ }, c(i(o.id)), 9, R)) : b(o.id) ? (l(), d("span", U, [
114
+ k(s(j), {
115
+ name: "checkCustom",
116
+ size: 12
117
+ }),
118
+ n("span", W, c(s(a)("core.form.sections.done")), 1)
119
+ ])) : u("", !0)
120
+ ], 10, H)
121
+ ]))), 128))
122
+ ]),
123
+ t.progress && t.progress.total > 0 ? (l(), d("div", X, [
124
+ n("span", Y, c(s(a)("core.form.required.label")), 1),
125
+ n("div", {
126
+ class: "h-1 overflow-hidden rounded-full bg-fill",
127
+ role: "progressbar",
128
+ "aria-valuemin": 0,
129
+ "aria-valuemax": t.progress.total,
130
+ "aria-valuenow": t.progress.filled,
131
+ "aria-label": s(a)("core.form.required.label")
132
+ }, [
133
+ n("div", {
134
+ class: "h-1 rounded-full bg-control-on transition-[width] duration-motion-normal",
135
+ style: L({ width: `${Math.round(t.progress.filled / t.progress.total * 100)}%` })
136
+ }, null, 4)
137
+ ], 8, Z),
138
+ n("span", ee, c(s(a)("core.form.required.count", { filled: t.progress.filled, total: t.progress.total })), 1)
139
+ ])) : u("", !0)
140
+ ]),
141
+ _: 1
142
+ }, 8, ["class", "aria-label"])) : u("", !0);
143
+ }
144
+ });
145
+ export {
146
+ ie as _,
147
+ le as a
148
+ };