@wssto2/vue-core 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/README.md +36 -0
  2. package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js +22 -0
  3. package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js +76 -0
  4. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js +45 -0
  5. package/dist/Activity-2gGxQn7v.js +156 -0
  6. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CeKK8_g5.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js} +48 -47
  7. package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-e4hzkzg3.js → AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js} +1 -1
  8. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CWLB3xsR.js → AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js} +4 -4
  9. package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js} +1 -1
  10. package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
  11. package/dist/{Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js → Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js} +1 -1
  12. package/dist/Changes-Bm8xvagD.js +129 -0
  13. package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-DCBVw2Qd.js +1485 -0
  14. package/dist/DataTable.vue_vue_type_script_setup_true_lang-UH6f9puS.js +52 -0
  15. package/dist/DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js +255 -0
  16. package/dist/DeadLetters-CMRtXn_N.js +104 -0
  17. package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-DyhYHRyz.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-D1arePCZ.js} +1 -1
  18. package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js} +1 -1
  19. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js +276 -0
  20. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js +136 -0
  21. package/dist/FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js +38 -0
  22. package/dist/General-CTqd0SLK.js +145 -0
  23. package/dist/HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js +45 -0
  24. package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-D7oC-d-S.js} +54 -37
  25. package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js} +1 -1
  26. package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
  27. package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CvwoT1JF.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js} +2 -2
  28. package/dist/{Menu.vue_vue_type_script_setup_true_lang-CrMj6KPD.js → Menu.vue_vue_type_script_setup_true_lang-DTbAcDzL.js} +66 -58
  29. package/dist/{Modal.vue_vue_type_script_setup_true_lang-BQZM49gC.js → Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js} +4 -4
  30. package/dist/NewRolePage-DTOWIxxC.js +42 -0
  31. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js +31 -0
  32. package/dist/NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js +113 -0
  33. package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +95 -0
  34. package/dist/PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js +47 -0
  35. package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js} +1 -1
  36. package/dist/PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js +46 -0
  37. package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-ElDizaW2.js → PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js} +1 -1
  38. package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
  39. package/dist/ProfilePage-BlpiWH_W.js +654 -0
  40. package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
  41. package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-C_ymvhHU.js +64 -0
  42. package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CwI_sROp.js +173 -0
  43. package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-CmwvSytD.js +300 -0
  44. package/dist/RolePage-DZk7BZOc.js +315 -0
  45. package/dist/RolesPage-DzGGCMnm.js +115 -0
  46. package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
  47. package/dist/SectionList.vue_vue_type_script_setup_true_lang-BFYls8fR.js +148 -0
  48. package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-DSMXEaCs.js +314 -0
  49. package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js +58 -0
  50. package/dist/SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js +423 -0
  51. package/dist/SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js +111 -0
  52. package/dist/Sessions-CWqjjTr1.js +96 -0
  53. package/dist/SettingsPage-C4s0IdkW.js +255 -0
  54. package/dist/Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js +145 -0
  55. package/dist/SignIn-zzKY__df.js +140 -0
  56. package/dist/SignInPage-Rqnus_s-.js +60 -0
  57. package/dist/SignInTable.vue_vue_type_script_setup_true_lang-CEbAvZ_C.js +79 -0
  58. package/dist/SignIns-Cnf9BVR0.js +66 -0
  59. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js +93 -0
  60. package/dist/SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js +64 -0
  61. package/dist/Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js +155 -0
  62. package/dist/TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js +269 -0
  63. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js +68 -0
  64. package/dist/TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js +164 -0
  65. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js} +1 -1
  66. package/dist/UserRecord-DqigxVxH.js +267 -0
  67. package/dist/UsersList-DNlZsI9J.js +155 -0
  68. package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js +28 -0
  69. package/dist/access/AddRoleDialog.vue.d.ts +19 -0
  70. package/dist/access/BindingRow.vue.d.ts +19 -0
  71. package/dist/access/EffectiveAccess.vue.d.ts +12 -0
  72. package/dist/access/NewRolePage.vue.d.ts +2 -0
  73. package/dist/access/PermissionTree.vue.d.ts +13 -0
  74. package/dist/access/PersonAccess.vue.d.ts +21 -0
  75. package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
  76. package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
  77. package/dist/access/RoleEditor.vue.d.ts +28 -0
  78. package/dist/access/RolePage.vue.d.ts +2 -0
  79. package/dist/access/RolesPage.vue.d.ts +2 -0
  80. package/dist/access/api.d.ts +26 -0
  81. package/dist/access/catalogue.d.ts +64 -0
  82. package/dist/access/context.d.ts +20 -0
  83. package/dist/access/effective.d.ts +42 -0
  84. package/dist/access/feature.d.ts +27 -0
  85. package/dist/access/index.d.ts +13 -0
  86. package/dist/access/index.js +15 -0
  87. package/dist/access/labels.d.ts +35 -0
  88. package/dist/access/refusals.d.ts +6 -0
  89. package/dist/access/routes.d.ts +45 -0
  90. package/dist/access/scopes.d.ts +20 -0
  91. package/dist/app/contributions.d.ts +1 -1
  92. package/dist/app/feature.d.ts +8 -0
  93. package/dist/app/index.js +259 -296
  94. package/dist/bottomDock-BZEiOPYZ.js +12 -0
  95. package/dist/button/Button.vue.d.ts +3 -3
  96. package/dist/button/index.js +1 -1
  97. package/dist/chrome-BS3xJcad.js +93 -0
  98. package/dist/client/client.d.ts +13 -0
  99. package/dist/client/index.d.ts +3 -1
  100. package/dist/client/index.js +11 -138
  101. package/dist/client/route.d.ts +59 -0
  102. package/dist/client-k9euDWF4.js +147 -0
  103. package/dist/closeOverlays-CjVsIrpL.js +8 -0
  104. package/dist/collection/definition.d.ts +3 -0
  105. package/dist/collection/http.d.ts +4 -2
  106. package/dist/collection/index.js +74 -2428
  107. package/dist/collection/useCollection.d.ts +2 -0
  108. package/dist/content/index.js +37 -66
  109. package/dist/contributions-DsfmDoRD.js +26 -0
  110. package/dist/control-7EP4tjYy.js +313 -0
  111. package/dist/controls/DateButton.vue.d.ts +1 -1
  112. package/dist/controls/PopupButton.vue.d.ts +1 -1
  113. package/dist/controls/index.js +11 -10
  114. package/dist/defineRoutes-BGAdiIrt.js +19 -0
  115. package/dist/{describeError-l5T9b8Uv.js → describeError-Ctga6GcS.js} +1 -1
  116. package/dist/environment-Dva-SG8D.js +6 -0
  117. package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
  118. package/dist/feature-DdUAfyi4.js +25 -0
  119. package/dist/fieldMessages-C3Rpbktw.js +25 -0
  120. package/dist/form/CheckboxField.vue.d.ts +1 -1
  121. package/dist/form/CommandDialog.vue.d.ts +1 -1
  122. package/dist/form/DateField.vue.d.ts +1 -1
  123. package/dist/form/DateTimeField.vue.d.ts +1 -1
  124. package/dist/form/EditorPage.vue.d.ts +1 -1
  125. package/dist/form/Field.vue.d.ts +1 -1
  126. package/dist/form/FileField.vue.d.ts +1 -1
  127. package/dist/form/FormGroup.vue.d.ts +1 -1
  128. package/dist/form/FormGroupButton.vue.d.ts +1 -1
  129. package/dist/form/FormRow.vue.d.ts +1 -1
  130. package/dist/form/I18nField.vue.d.ts +3 -3
  131. package/dist/form/MoneyField.vue.d.ts +1 -1
  132. package/dist/form/MonthYearField.vue.d.ts +1 -1
  133. package/dist/form/NumberCell.vue.d.ts +1 -1
  134. package/dist/form/NumberField.vue.d.ts +2 -2
  135. package/dist/form/OtpInput.vue.d.ts +2 -2
  136. package/dist/form/PhotoField.vue.d.ts +1 -1
  137. package/dist/form/SwitchField.vue.d.ts +1 -1
  138. package/dist/form/TextField.vue.d.ts +3 -3
  139. package/dist/form/TextareaField.vue.d.ts +3 -3
  140. package/dist/form/TimeField.vue.d.ts +1 -1
  141. package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
  142. package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
  143. package/dist/form/index.js +1159 -3474
  144. package/dist/guards-Dve61KjR.js +51 -0
  145. package/dist/http-CNcDHSOj.js +194 -0
  146. package/dist/i18n/index.d.ts +281 -0
  147. package/dist/i18n/index.js +52 -52
  148. package/dist/icon/core.d.ts +17 -0
  149. package/dist/icon/index.js +1 -1
  150. package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
  151. package/dist/identity/LocaleSync.vue.d.ts +2 -0
  152. package/dist/identity/SessionExpiry.vue.d.ts +2 -0
  153. package/dist/identity/SignInAsButton.vue.d.ts +15 -0
  154. package/dist/identity/SignInPage.vue.d.ts +2 -0
  155. package/dist/identity/context.d.ts +7 -0
  156. package/dist/identity/feature.d.ts +16 -0
  157. package/dist/identity/fieldMessages.d.ts +15 -0
  158. package/dist/identity/index.d.ts +16 -0
  159. package/dist/identity/index.js +18 -0
  160. package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
  161. package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
  162. package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
  163. package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
  164. package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
  165. package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
  166. package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
  167. package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
  168. package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
  169. package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
  170. package/dist/identity/profile/routes.d.ts +13 -0
  171. package/dist/identity/session.d.ts +30 -0
  172. package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
  173. package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
  174. package/dist/identity/shared/PageBar.vue.d.ts +12 -0
  175. package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
  176. package/dist/identity/shared/SessionList.vue.d.ts +19 -0
  177. package/dist/identity/shared/SignInTable.vue.d.ts +11 -0
  178. package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
  179. package/dist/identity/shared/signInEvents.d.ts +9 -0
  180. package/dist/identity/signIn.d.ts +27 -0
  181. package/dist/identity/useSignInForm.d.ts +20 -0
  182. package/dist/identity/user.d.ts +6 -0
  183. package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
  184. package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
  185. package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
  186. package/dist/identity/users/UserRecord.vue.d.ts +2 -0
  187. package/dist/identity/users/UsersList.vue.d.ts +2 -0
  188. package/dist/identity/users/access.d.ts +4 -0
  189. package/dist/identity/users/context.d.ts +9 -0
  190. package/dist/identity/users/feature.d.ts +34 -0
  191. package/dist/identity/users/languages.d.ts +4 -0
  192. package/dist/identity/users/list.d.ts +8 -0
  193. package/dist/identity/users/person.d.ts +26 -0
  194. package/dist/identity/users/personSections.d.ts +22 -0
  195. package/dist/identity/users/routes.d.ts +22 -0
  196. package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
  197. package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
  198. package/dist/identity/users/sections/General.vue.d.ts +2 -0
  199. package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
  200. package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
  201. package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
  202. package/dist/identity/users/status.d.ts +4 -0
  203. package/dist/index-BsJ92eub.js +504 -0
  204. package/dist/index-CGv-u1Ws.js +459 -0
  205. package/dist/index-GcLnFF-z.js +706 -0
  206. package/dist/index.d.ts +1 -1
  207. package/dist/index.js +1 -1
  208. package/dist/internal/languageName.d.ts +2 -0
  209. package/dist/keepAlive-WYQGRhuz.js +48 -0
  210. package/dist/languageName-CItV_SOv.js +11 -0
  211. package/dist/languages-BShG9LpE.js +10 -0
  212. package/dist/leaveGuard-Cc8yeLxM.js +72 -0
  213. package/dist/modal/Modal.vue.d.ts +1 -1
  214. package/dist/modal/Sheet.vue.d.ts +2 -0
  215. package/dist/modal/index.js +5 -5
  216. package/dist/modules/access/entities.d.ts +112 -0
  217. package/dist/modules/access/routes.d.ts +67 -0
  218. package/dist/modules/access/schemas.d.ts +73 -0
  219. package/dist/modules/events/entities.d.ts +16 -0
  220. package/dist/modules/events/routes.d.ts +17 -0
  221. package/dist/modules/events/schemas.d.ts +16 -0
  222. package/dist/modules/identity/entities.d.ts +150 -0
  223. package/dist/modules/identity/routes.d.ts +118 -0
  224. package/dist/modules/identity/schemas.d.ts +145 -0
  225. package/dist/modules/notification/entities.d.ts +46 -0
  226. package/dist/modules/notification/routes.d.ts +26 -0
  227. package/dist/modules/notification/schemas.d.ts +25 -0
  228. package/dist/{navigation-B33ikiCS.js → navigation-Cm3iChlR.js} +21 -20
  229. package/dist/neighbors-DpaIMQAL.js +86 -0
  230. package/dist/notifications/InboxPanel.vue.d.ts +16 -0
  231. package/dist/notifications/MarkAllRead.vue.d.ts +7 -0
  232. package/dist/notifications/NotificationBell.vue.d.ts +2 -0
  233. package/dist/notifications/SettingsLink.vue.d.ts +6 -0
  234. package/dist/notifications/context.d.ts +20 -0
  235. package/dist/notifications/deadletters/DeadLetters.vue.d.ts +2 -0
  236. package/dist/notifications/deadletters/access.d.ts +3 -0
  237. package/dist/notifications/deadletters/list.d.ts +3 -0
  238. package/dist/notifications/deadletters/routes.d.ts +13 -0
  239. package/dist/notifications/feature.d.ts +31 -0
  240. package/dist/notifications/inbox.d.ts +62 -0
  241. package/dist/notifications/index.d.ts +13 -0
  242. package/dist/notifications/index.js +8 -0
  243. package/dist/notifications/settings/EmailPanel.vue.d.ts +14 -0
  244. package/dist/notifications/settings/QuietHoursPanel.vue.d.ts +14 -0
  245. package/dist/notifications/settings/SettingsMenuItem.vue.d.ts +2 -0
  246. package/dist/notifications/settings/SettingsPage.vue.d.ts +2 -0
  247. package/dist/notifications/settings/categoryText.d.ts +9 -0
  248. package/dist/notifications/settings/routes.d.ts +13 -0
  249. package/dist/notifications/settings/settings.d.ts +18 -0
  250. package/dist/notifications/settings/state.d.ts +16 -0
  251. package/dist/notifications/state.d.ts +27 -0
  252. package/dist/notifications/stream.d.ts +21 -0
  253. package/dist/options-Ba_0uLWN.js +18 -0
  254. package/dist/overlay/AlertDialog.vue.d.ts +3 -3
  255. package/dist/overlay/Popover.vue.d.ts +1 -1
  256. package/dist/overlay/closeOverlays.d.ts +7 -0
  257. package/dist/overlay/index.js +21 -20
  258. package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
  259. package/dist/page/ResourceHeader.vue.d.ts +2 -2
  260. package/dist/page/index.js +99 -457
  261. package/dist/phone/PhoneField.vue.d.ts +2 -2
  262. package/dist/phone/index.js +68 -67
  263. package/dist/platform/index.d.ts +2 -2
  264. package/dist/platform/index.js +73 -90
  265. package/dist/platform/platform.d.ts +2 -2
  266. package/dist/platform/session.d.ts +22 -1
  267. package/dist/platform-q3cjODLx.js +255 -0
  268. package/dist/resource/index.js +8 -248
  269. package/dist/route-goWMxDUN.js +13 -0
  270. package/dist/routeResource-DstM0hvf.js +82 -0
  271. package/dist/router/guards.d.ts +7 -1
  272. package/dist/router/index.js +23 -37
  273. package/dist/router/navigation.d.ts +1 -1
  274. package/dist/rowLayout-BqTEhEuy.js +603 -0
  275. package/dist/sectionIndex-BS0ic5W7.js +86 -0
  276. package/dist/{sections-LtxV5Mtk.js → sections-CntvUTxn.js} +1 -1
  277. package/dist/shell/AccountMenuItem.vue.d.ts +1 -1
  278. package/dist/shell/BackofficeShell.vue.d.ts +2 -2
  279. package/dist/shell/NavigationList.vue.d.ts +1 -1
  280. package/dist/shell/ShellBrand.vue.d.ts +1 -1
  281. package/dist/shell/backofficeShell.d.ts +1 -1
  282. package/dist/shell/identity.d.ts +1 -1
  283. package/dist/shell/index.js +491 -595
  284. package/dist/state/ProgressTrack.vue.d.ts +1 -1
  285. package/dist/state/index.js +59 -92
  286. package/dist/status-BuP3ULjH.js +33 -0
  287. package/dist/styles.css +1 -1
  288. package/dist/suggestions-BxMm6MQA.js +138 -0
  289. package/dist/testing/index.js +1 -1
  290. package/dist/toast-D9Z5To38.js +13 -0
  291. package/dist/transport-BnP7WC0Y.js +4 -0
  292. package/dist/useCommand-BkONMn3X.js +135 -0
  293. package/dist/useLoad-CYRVx6HW.js +39 -0
  294. package/dist/useResourceForm-D1hIpwW5.js +52 -0
  295. package/dist/useSaveChrome-chi6D3HY.js +25 -0
  296. package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
  297. package/dist/useTypedEntry-aTfPBAhw.js +857 -0
  298. package/package.json +26 -5
  299. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
  300. package/dist/SectionList.vue_vue_type_script_setup_true_lang-L9ita_Kx.js +0 -230
  301. package/dist/SelectField.vue_vue_type_script_setup_true_lang-DZTrU8NJ.js +0 -661
  302. package/dist/Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.js +0 -210
  303. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
  304. package/dist/chrome-D9pwD6iS.js +0 -101
  305. package/dist/environment-D3nozt9a.js +0 -75
  306. package/dist/feature-DyDtyMLU.js +0 -47
  307. package/dist/options-DAkBtYkI.js +0 -330
  308. package/dist/platform-jqlKVJ2e.js +0 -244
  309. package/dist/toast-DvrHQ6Ag.js +0 -131
@@ -1,661 +0,0 @@
1
- import { defineComponent as P, useModel as K, useTemplateRef as W, computed as $, ref as V, watch as R, openBlock as h, createBlock as T, mergeProps as U, unref as i, withCtx as B, createElementVNode as x, normalizeClass as S, createElementBlock as D, toDisplayString as L, createCommentVNode as A, mergeModels as J, mergeDefaults as Q, useId as re, nextTick as ie, createVNode as M, withDirectives as ue, vModelText as ce, Fragment as j, renderList as G, inject as de, shallowRef as X, onBeforeUnmount as fe, onScopeDispose as pe, createSlots as me, createTextVNode as ve } from "vue";
2
- import { b as ge } from "./controlSurface-t7OEFESJ.js";
3
- import { u as be } from "./format-B8mJm946.js";
4
- import { u as Y, a as Z, _ as ee, b as te, c as le, g as he, m as ye, f as E } from "./options-DAkBtYkI.js";
5
- import { useI18n as oe } from "vue-i18n";
6
- import { _ as xe } from "./Button.vue_vue_type_script_setup_true_lang-B1eZgLae.js";
7
- import { _ as N } from "./Icon.vue_vue_type_script_lang-DtC4_mkz.js";
8
- import { u as ke } from "./mediaQuery-CygcXmFW.js";
9
- import { _ as we } from "./Sheet.vue_vue_type_script_setup_true_lang-CtkJ-4e3.js";
10
- import { _ as _e } from "./toast-DvrHQ6Ag.js";
11
- import { a as $e } from "./error-Bb_dr_Ay.js";
12
- function Ce(l) {
13
- const t = l.number(1234.5, { minimumFractionDigits: 1, maximumFractionDigits: 1, useGrouping: !0 }), e = /^\d(\D)\d/.exec(t)?.[1] ?? "";
14
- return { decimal: t.charAt(t.length - 2) || ".", group: e === "." || e === "," ? e : "" };
15
- }
16
- function De(l, t) {
17
- const e = l.trim().startsWith("-"), o = l.replace(/[^\d.,]/g, "");
18
- if (o === "") return e ? void 0 : null;
19
- const r = [...o].filter((c) => c === "." || c === ",");
20
- let u = o, s = "";
21
- if (t.decimals > 0 && r.length > 0) {
22
- const c = Math.max(o.lastIndexOf("."), o.lastIndexOf(",")), _ = o.charAt(c), q = o.slice(c + 1), k = o.includes(".") && o.includes(","), v = r.filter((y) => y === _).length > 1, b = !k && _ === t.group && q.length === 3;
23
- (k || !v && !b) && (u = o.slice(0, c), s = q);
24
- }
25
- const f = (c) => c.replace(/\D/g, ""), n = +`${f(u) || "0"}.${f(s) || "0"}`;
26
- if (!Number.isFinite(n)) return;
27
- const m = Number(n.toFixed(t.decimals));
28
- return e ? -m || 0 : m;
29
- }
30
- const Se = {
31
- key: 0,
32
- class: "shrink-0 text-footnote text-content-muted"
33
- }, Ae = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], Le = {
34
- key: 1,
35
- class: "shrink-0 text-footnote text-content-muted"
36
- }, mt = /* @__PURE__ */ P({
37
- __name: "NumberField",
38
- props: /* @__PURE__ */ J(/* @__PURE__ */ Q({
39
- label: {},
40
- hint: {},
41
- error: {},
42
- required: { type: Boolean },
43
- editable: { type: Boolean },
44
- disabled: { type: Boolean },
45
- lockedReason: {},
46
- presentation: {},
47
- name: {},
48
- decimals: {},
49
- negative: { type: Boolean },
50
- grouping: { type: Boolean },
51
- placeholder: {},
52
- prefix: {},
53
- suffix: {},
54
- width: {}
55
- }, { ...le, decimals: 0, negative: !1, grouping: !0, placeholder: void 0, prefix: void 0, suffix: void 0, width: "sm" }), {
56
- modelValue: { default: null },
57
- modelModifiers: {}
58
- }),
59
- emits: ["update:modelValue"],
60
- setup(l, { expose: t }) {
61
- const e = l, o = K(l, "modelValue"), r = be(), u = W("input"), s = !!Y(), f = Z("text", () => e.error ? "error" : e.disabled ? "locked" : "rest"), n = $(() => s ? ge(e.width) : "w-full"), m = $(() => Ce(r)), c = (a) => a === null ? "" : r.number(a, { minimumFractionDigits: e.decimals, maximumFractionDigits: e.decimals, useGrouping: e.grouping }), _ = (a) => a === null ? "" : String(a).replace(".", m.value.decimal), q = (a) => De(a, { decimals: e.decimals, group: e.grouping ? m.value.group : "" }), k = V(!1), v = V(c(o.value));
62
- R(o, (a) => {
63
- k.value ? q(v.value) !== a && (v.value = _(a)) : v.value = c(a);
64
- }), R(() => [e.decimals, e.grouping, m.value.decimal], () => {
65
- k.value || (v.value = c(o.value));
66
- });
67
- function b(a) {
68
- const g = a.target;
69
- let p = g.value.replace(/[^\d.,\-\s]/g, "");
70
- e.negative ? p = p.replace(/(?!^)-/g, "") : p = p.replace(/-/g, ""), p !== g.value && (g.value = p), v.value = p;
71
- const O = q(p);
72
- O !== void 0 ? o.value = O : o.value = null;
73
- }
74
- function y() {
75
- k.value = !0, v.value = _(o.value);
76
- }
77
- function C() {
78
- k.value = !1, v.value = c(o.value);
79
- }
80
- return t({ focus: () => u.value?.focus() }), (a, g) => (h(), T(ee, U(i(te)(e), {
81
- value: o.value === null ? null : c(o.value),
82
- prefix: e.prefix,
83
- suffix: e.suffix,
84
- "value-style": "numeric"
85
- }), {
86
- default: B(({ id: p, describedby: O, invalid: I }) => [
87
- x("div", {
88
- class: S(["flex items-center gap-1.5", [i(f), n.value]])
89
- }, [
90
- e.prefix ? (h(), D("span", Se, L(e.prefix), 1)) : A("", !0),
91
- x("input", {
92
- id: p,
93
- ref_key: "input",
94
- ref: u,
95
- value: v.value,
96
- type: "text",
97
- inputmode: "decimal",
98
- autocomplete: "off",
99
- name: e.name,
100
- placeholder: e.placeholder,
101
- disabled: e.disabled,
102
- required: e.required,
103
- "aria-required": e.required || void 0,
104
- "aria-invalid": I || void 0,
105
- "aria-describedby": O,
106
- class: "block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-right text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
107
- onInput: b,
108
- onFocus: y,
109
- onBlur: C
110
- }, null, 40, Ae),
111
- e.suffix ? (h(), D("span", Le, L(e.suffix), 1)) : A("", !0)
112
- ], 2)
113
- ]),
114
- _: 1
115
- }, 16, ["value", "prefix", "suffix"]));
116
- }
117
- }), qe = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill px-2.5 text-content-muted focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-border-focus" }, Fe = ["aria-label", "placeholder"], Oe = ["aria-multiselectable", "aria-busy"], Ve = {
118
- key: 0,
119
- role: "presentation"
120
- }, Be = ["aria-selected"], Me = { class: "flex-1 py-2" }, Ne = {
121
- key: 1,
122
- role: "presentation",
123
- class: "flex items-center gap-2.5 px-row-inset py-4 text-subheadline text-content-muted",
124
- "data-test": "options-loading"
125
- }, Te = { role: "status" }, ze = {
126
- key: 2,
127
- role: "presentation",
128
- class: "flex flex-col items-start gap-1 px-row-inset py-3",
129
- "data-test": "options-failed"
130
- }, Ee = {
131
- role: "alert",
132
- class: "text-subheadline text-content-destructive"
133
- }, Re = ["id"], Ie = ["aria-labelledby"], Ue = ["aria-selected"], Pe = ["disabled", "onClick"], We = {
134
- key: 0,
135
- "aria-hidden": "true",
136
- class: "flex shrink-0 items-center"
137
- }, je = { class: "min-w-0 flex-1 text-content-strong" }, Ge = {
138
- key: 0,
139
- class: "shrink-0 text-footnote text-content-muted"
140
- }, He = {
141
- key: 3,
142
- class: "px-4 py-6 text-center text-subheadline text-content-muted"
143
- }, H = /* @__PURE__ */ P({
144
- __name: "OptionList",
145
- props: {
146
- options: {},
147
- modelValue: { default: null },
148
- multiple: { type: Boolean, default: !1 },
149
- searchFrom: { default: 9 },
150
- noneLabel: { default: void 0 },
151
- presentation: { default: "grouped" },
152
- status: { default: "loaded" }
153
- },
154
- emits: ["select", "retry"],
155
- setup(l, { emit: t }) {
156
- const e = l, o = t, { t: r } = oe(), u = V(""), s = re(), f = W("root"), n = $(() => e.options.length >= e.searchFrom), m = $(() => he(ye(e.options, u.value))), c = (y) => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.includes(y.value) : e.modelValue === y.value, _ = $(() => e.multiple ? !1 : e.modelValue === null);
157
- function q(y) {
158
- if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(y.key)) return;
159
- const a = [...f.value?.querySelectorAll("[data-option]:not([disabled])") ?? []];
160
- if (a.length === 0) return;
161
- const g = a.indexOf(document.activeElement), p = y.key === "Home" ? 0 : y.key === "End" ? a.length - 1 : y.key === "ArrowDown" ? Math.min(g + 1, a.length - 1) : Math.max(g - 1, 0);
162
- y.key === "ArrowUp" && g <= 0 ? f.value?.querySelector("[data-option-search]")?.focus() : a[g === -1 && y.key === "ArrowDown" ? 0 : p]?.focus(), y.preventDefault();
163
- }
164
- const k = $(() => e.presentation === "grouped"), v = $(() => e.status === "loading"), b = $(() => e.status === "failed");
165
- return R(() => e.status, (y, C) => {
166
- C !== "loading" || y === "loading" || ie(() => {
167
- const a = document.activeElement;
168
- (!a || a === document.body || a.getAttribute("role") === "dialog" && !!f.value && a.contains(f.value)) && f.value?.querySelector("[data-option-search], [data-option]:not([disabled])")?.focus({ preventScroll: !0 });
169
- });
170
- }), (y, C) => (h(), D("div", {
171
- ref_key: "root",
172
- ref: f,
173
- "data-test": "option-list",
174
- onKeydown: q
175
- }, [
176
- n.value ? (h(), D("div", {
177
- key: 0,
178
- class: S(["sticky top-0 z-10 pb-2", k.value ? "bg-surface-page pt-1" : "bg-surface-cell"])
179
- }, [
180
- x("label", qe, [
181
- M(i(N), {
182
- name: "search",
183
- size: 16,
184
- class: "shrink-0"
185
- }),
186
- ue(x("input", {
187
- "onUpdate:modelValue": C[0] || (C[0] = (a) => u.value = a),
188
- "data-option-search": "",
189
- type: "search",
190
- enterkeyhint: "search",
191
- autocomplete: "off",
192
- autocapitalize: "off",
193
- spellcheck: "false",
194
- "aria-label": i(r)("core.form.select.search"),
195
- placeholder: i(r)("core.form.select.search"),
196
- class: "min-w-0 flex-1 border-0 bg-transparent p-0 text-body text-content-strong outline-none placeholder:text-content-disabled focus:ring-0"
197
- }, null, 8, Fe), [
198
- [ce, u.value]
199
- ])
200
- ])
201
- ], 2)) : A("", !0),
202
- x("ul", {
203
- class: S(["flex flex-col", k.value ? "gap-group-gap" : "gap-2"]),
204
- role: "listbox",
205
- "aria-multiselectable": e.multiple || void 0,
206
- "aria-busy": v.value || void 0
207
- }, [
208
- e.noneLabel && u.value === "" ? (h(), D("li", Ve, [
209
- x("ul", {
210
- role: "group",
211
- class: S(k.value ? "rounded-group bg-surface-cell shadow-group" : "")
212
- }, [
213
- x("li", {
214
- role: "option",
215
- "aria-selected": _.value
216
- }, [
217
- x("button", {
218
- type: "button",
219
- "data-option": "",
220
- class: S(["flex min-h-row w-full cursor-pointer items-center gap-3 px-row-inset text-left text-body hover:bg-fill focus-visible:bg-fill focus-visible:outline-none active:bg-fill", [_.value ? "text-content-strong" : "text-content-muted", k.value ? "rounded-group" : "rounded-control"]]),
221
- onClick: C[1] || (C[1] = (a) => o("select", null))
222
- }, [
223
- x("span", Me, L(e.noneLabel), 1),
224
- _.value ? (h(), T(i(N), {
225
- key: 0,
226
- name: "checkCustom",
227
- size: 18,
228
- class: "shrink-0 text-content-link"
229
- })) : A("", !0)
230
- ], 2)
231
- ], 8, Be)
232
- ], 2)
233
- ])) : A("", !0),
234
- v.value ? (h(), D("li", Ne, [
235
- M(i(N), {
236
- name: "loader4Line",
237
- size: 16,
238
- class: "shrink-0 animate-spin text-content-link"
239
- }),
240
- x("span", Te, L(i(r)("core.form.select.loading")), 1)
241
- ])) : b.value ? (h(), D("li", ze, [
242
- x("span", Ee, L(i(r)("core.form.select.load_failed")), 1),
243
- x("button", {
244
- type: "button",
245
- "data-option": "",
246
- "data-test": "options-retry",
247
- class: "-ml-2 cursor-pointer rounded-control px-2 py-1 text-subheadline font-medium text-content-link hover:bg-fill focus-visible:bg-fill focus-visible:outline-none",
248
- onClick: C[2] || (C[2] = (a) => o("retry"))
249
- }, L(i(r)("core.actions.retry")), 1)
250
- ])) : A("", !0),
251
- (h(!0), D(j, null, G(m.value, (a, g) => (h(), D("li", {
252
- key: a.title ?? g,
253
- role: "presentation"
254
- }, [
255
- a.title ? (h(), D("p", {
256
- key: 0,
257
- id: `${i(s)}-${g}`,
258
- class: "px-row-inset pb-1.5 text-footnote uppercase tracking-wide text-content-muted"
259
- }, L(a.title), 9, Re)) : A("", !0),
260
- x("ul", {
261
- role: "group",
262
- "aria-labelledby": a.title ? `${i(s)}-${g}` : void 0,
263
- class: S(k.value ? "rounded-group bg-surface-cell shadow-group" : "")
264
- }, [
265
- (h(!0), D(j, null, G(a.options, (p) => (h(), D("li", {
266
- key: String(p.value),
267
- role: "option",
268
- "aria-selected": c(p),
269
- class: "group/option"
270
- }, [
271
- x("button", {
272
- type: "button",
273
- "data-option": "",
274
- "data-test": "option",
275
- disabled: p.disabled,
276
- class: S(["flex w-full cursor-pointer items-stretch gap-3 pl-row-inset text-left text-body hover:bg-fill focus-visible:bg-fill focus-visible:outline-none active:bg-fill disabled:cursor-not-allowed disabled:opacity-45", k.value ? "group-first/option:rounded-t-group group-last/option:rounded-b-group" : "rounded-control"]),
277
- onClick: (O) => o("select", p.value)
278
- }, [
279
- e.multiple ? (h(), D("span", We, [
280
- x("span", {
281
- class: S(["flex size-5.5 items-center justify-center rounded-full border", c(p) ? "border-control-on bg-control-on text-white" : "border-border-control"])
282
- }, [
283
- c(p) ? (h(), T(i(N), {
284
- key: 0,
285
- name: "checkCustom",
286
- size: 12
287
- })) : A("", !0)
288
- ], 2)
289
- ])) : A("", !0),
290
- x("span", {
291
- class: S(["flex min-h-row min-w-0 flex-1 items-center gap-3 py-2 pr-row-inset", k.value ? "border-t border-border-separator group-first/option:border-t-0" : ""])
292
- }, [
293
- x("span", je, L(p.label), 1),
294
- p.description ? (h(), D("span", Ge, L(p.description), 1)) : A("", !0),
295
- !e.multiple && c(p) ? (h(), T(i(N), {
296
- key: 1,
297
- name: "checkCustom",
298
- size: 18,
299
- class: "shrink-0 text-content-link"
300
- })) : A("", !0)
301
- ], 2)
302
- ], 10, Pe)
303
- ], 8, Ue))), 128))
304
- ], 10, Ie)
305
- ]))), 128)),
306
- m.value.length === 0 && !v.value && !b.value ? (h(), D("li", He, L(i(r)("core.form.select.no_matches")), 1)) : A("", !0)
307
- ], 10, Oe)
308
- ], 544));
309
- }
310
- }), Ke = Symbol("vue-core.recentChoices"), ne = 5, Je = (l) => {
311
- if (typeof l != "object" || l === null) return !1;
312
- const t = l;
313
- return (typeof t.value == "string" || typeof t.value == "number") && typeof t.label == "string";
314
- }, Qe = {
315
- read(l) {
316
- try {
317
- const t = JSON.parse(localStorage.getItem(`vue-core.recent.${l}`) ?? "[]");
318
- return Array.isArray(t) ? t.filter(Je).slice(0, ne) : [];
319
- } catch {
320
- return [];
321
- }
322
- },
323
- write(l, t) {
324
- try {
325
- localStorage.setItem(`vue-core.recent.${l}`, JSON.stringify(t));
326
- } catch {
327
- }
328
- }
329
- };
330
- function vt(l, t) {
331
- const e = E(t.trim());
332
- if (e === "") return { before: "", match: "", after: l };
333
- let o = "";
334
- const r = [];
335
- let u = 0;
336
- for (const m of l) {
337
- const c = E(m);
338
- for (let _ = 0; _ < c.length; _++) r.push(u);
339
- o += c, u += m.length;
340
- }
341
- const s = o.indexOf(e);
342
- if (s < 0) return { before: "", match: "", after: l };
343
- const f = r[s] ?? 0, n = r[s + e.length] ?? l.length;
344
- return { before: l.slice(0, f), match: l.slice(f, n), after: l.slice(n) };
345
- }
346
- function gt(l, t) {
347
- return l === "" || t.length <= l.length ? "" : t.toLocaleLowerCase().startsWith(l.toLocaleLowerCase()) ? t.slice(l.length) : "";
348
- }
349
- function Xe(l, t) {
350
- const e = E(t.trim());
351
- if (e === "") return [...l];
352
- const o = [], r = [];
353
- for (const u of l) {
354
- const s = E(u.label);
355
- s.startsWith(e) ? o.push(u) : (s.includes(e) || u.description !== void 0 && E(u.description).includes(e)) && r.push(u);
356
- }
357
- return [...o, ...r];
358
- }
359
- function bt(l, t, e, o) {
360
- return l && (t > 0 || e === "loading" || e === "failed" || e === "loaded" && o);
361
- }
362
- function ae() {
363
- const l = X([]), t = V("idle");
364
- let e = 0, o = null;
365
- function r() {
366
- e++, o?.abort(), o = null;
367
- }
368
- async function u(s, f = (n) => n) {
369
- r();
370
- const n = e;
371
- o = new AbortController(), t.value = "loading";
372
- try {
373
- const m = await s(o.signal);
374
- if (n !== e) return;
375
- l.value = f(m), t.value = "loaded";
376
- } catch (m) {
377
- if (n !== e || $e(m)) return;
378
- l.value = [], t.value = "failed";
379
- }
380
- }
381
- return { items: l, status: t, run: u, cancel: r };
382
- }
383
- function ht(l) {
384
- const t = de(Ke, Qe), e = ae(), { items: o, status: r } = e, u = X([]), s = V(!1), f = V(0), n = V(!1);
385
- let m = "", c = null;
386
- const _ = $(() => r.value === "idle" ? u.value : o.value), q = $(() => r.value === "idle" && u.value.length > 0), k = $(() => _.value[f.value]);
387
- function v() {
388
- e.cancel(), c && clearTimeout(c), c = null;
389
- }
390
- fe(v);
391
- function b(d) {
392
- return f.value = 0, n.value = !1, d.slice(0, l.limit());
393
- }
394
- const y = (d, w) => e.run((F) => w(d, { signal: F }), b);
395
- function C(d) {
396
- m = d, v(), s.value = !0;
397
- const w = l.source(), F = d.trim() === "";
398
- if (!w || F && !l.listAllWhenEmpty || typeof w == "function" && d.trim().length < l.minLength()) {
399
- r.value = "idle", o.value = [], f.value = 0, n.value = !1;
400
- return;
401
- }
402
- typeof w == "function" ? c = setTimeout(() => void y(d, w), l.debounce()) : (o.value = b(Xe(w, d)), r.value = "loaded");
403
- }
404
- function a(d) {
405
- const w = l.recents();
406
- u.value = w ? t.read(w) : [], C(d), s.value = _.value.length > 0;
407
- }
408
- function g() {
409
- v(), s.value = !1, r.value === "loading" && (r.value = "idle");
410
- }
411
- function p(d) {
412
- const w = l.recents();
413
- if (!w) return;
414
- const F = t.read(w).filter((se) => se.value !== d.value);
415
- t.write(w, [{ value: d.value, label: d.label, ...d.description !== void 0 ? { description: d.description } : {} }, ...F].slice(0, ne));
416
- }
417
- function O(d, w = !0) {
418
- f.value = d, w && (n.value = !0);
419
- }
420
- function I(d, w) {
421
- if (d.key === "Escape" && s.value)
422
- d.stopPropagation(), d.preventDefault(), g();
423
- else if (d.key === "ArrowDown" || d.key === "ArrowUp") {
424
- if (d.preventDefault(), !s.value) {
425
- a(m), s.value = !0;
426
- return;
427
- }
428
- const F = _.value.length - 1;
429
- O(d.key === "ArrowDown" ? Math.min(f.value + 1, F) : Math.max(f.value - 1, 0));
430
- } else if (d.key === "Enter" && s.value) {
431
- const F = k.value;
432
- F && !F.disabled && (n.value || !w.enterNeedsMove) && (d.preventDefault(), w.pick(F));
433
- } else d.key === "Tab" && !d.shiftKey && s.value && w.complete?.() && d.preventDefault();
434
- }
435
- return { items: _, showingRecent: q, status: r, open: s, highlighted: f, moved: n, current: k, ask: C, show: a, close: g, cancel: v, remember: p, highlight: O, keydown: I };
436
- }
437
- function yt(l) {
438
- const t = ae(), e = l.for !== void 0;
439
- let o = 0;
440
- function r() {
441
- const u = l.for?.();
442
- if (e && u == null) {
443
- t.cancel(), t.items.value = [], t.status.value = "idle";
444
- return;
445
- }
446
- t.run(
447
- (s) => e ? l.load(u, { signal: s }) : l.load({ signal: s })
448
- );
449
- }
450
- return R(
451
- () => l.for?.(),
452
- (u, s) => {
453
- s != null && o++, r();
454
- },
455
- { immediate: !0 }
456
- ), pe(t.cancel), {
457
- get status() {
458
- return t.status.value;
459
- },
460
- get options() {
461
- return t.items.value;
462
- },
463
- get generation() {
464
- return o;
465
- },
466
- reload: r
467
- };
468
- }
469
- const z = (l) => Array.isArray(l), Ye = [];
470
- function Ze(l, t) {
471
- const e = $(() => {
472
- const n = l();
473
- return z(n) ? n : n.options;
474
- }), o = $(() => {
475
- const n = l();
476
- return z(n) ? "loaded" : n.status;
477
- }), r = $(() => o.value === "loading" || o.value === "failed" ? Ye : e.value), u = $(() => o.value === "loading"), s = l();
478
- let f = z(s) ? 0 : s.generation;
479
- return R(
480
- () => {
481
- const n = l();
482
- return z(n) ? null : n.status === "loaded" || n.status === "idle" ? n.options : null;
483
- },
484
- (n) => {
485
- const m = l();
486
- n === null || z(m) || m.generation === f || (f = m.generation, t(n));
487
- }
488
- ), { known: e, rows: r, status: o, loading: u, reload: () => {
489
- const n = l();
490
- z(n) || n.reload();
491
- } };
492
- }
493
- const et = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid", "aria-describedby", "aria-busy"], tt = ["id", "disabled", "aria-required", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], lt = { class: "max-h-72 overflow-y-auto" }, xt = /* @__PURE__ */ P({
494
- __name: "SelectField",
495
- props: /* @__PURE__ */ J(/* @__PURE__ */ Q({
496
- label: {},
497
- hint: {},
498
- error: {},
499
- required: { type: Boolean },
500
- editable: { type: Boolean },
501
- disabled: { type: Boolean },
502
- lockedReason: {},
503
- presentation: {},
504
- name: {},
505
- options: {},
506
- selected: {},
507
- placeholder: {},
508
- clearable: { type: Boolean },
509
- searchFrom: {}
510
- }, { ...le, selected: null, placeholder: void 0, clearable: !1, searchFrom: 9 }), {
511
- modelValue: { default: null },
512
- modelModifiers: {}
513
- }),
514
- emits: ["update:modelValue"],
515
- setup(l) {
516
- const t = l, e = K(l, "modelValue"), { t: o } = oe(), r = ke(), u = !!Y(), s = W("sheet"), f = V(!1), n = Ze(() => t.options, (v) => {
517
- e.value !== null && !v.some((b) => b.value === e.value) && (e.value = null);
518
- }), m = $(() => n.known.value.find((v) => v.value === e.value) ?? (t.selected?.value === e.value ? t.selected : null)), c = $(() => t.placeholder ?? o("core.form.select.choose")), _ = Z("popup", () => t.error ? "error" : t.disabled ? "locked" : "rest");
519
- function q(v) {
520
- e.value = v, s.value?.dismiss();
521
- }
522
- const k = $(() => [
523
- "flex max-w-full min-w-0 items-center gap-1.5 py-1 pl-2.5 pr-2 text-body focus-visible:outline-none",
524
- u ? "compact:pl-0 compact:pr-0" : "",
525
- t.disabled ? "cursor-not-allowed" : "cursor-pointer"
526
- ]);
527
- return (v, b) => (h(), T(ee, U(i(te)(t), {
528
- value: m.value?.label ?? null
529
- }), {
530
- default: B(({ id: y, describedby: C, invalid: a }) => [
531
- x("div", {
532
- class: S(["inline-flex max-w-full min-w-0", i(_)])
533
- }, [
534
- i(r) ? (h(), D("button", {
535
- key: 0,
536
- id: y,
537
- type: "button",
538
- disabled: t.disabled,
539
- "aria-haspopup": "dialog",
540
- "aria-expanded": f.value,
541
- "aria-required": t.required || void 0,
542
- "aria-invalid": a || void 0,
543
- "aria-describedby": C,
544
- "aria-busy": i(n).loading.value || void 0,
545
- class: S(k.value),
546
- onClick: b[0] || (b[0] = (g) => s.value?.present())
547
- }, [
548
- x("span", {
549
- class: S(["min-w-0 truncate", m.value ? u ? "text-content-strong compact:text-content-muted" : "text-content-strong" : "text-content-disabled"])
550
- }, L(m.value?.label ?? c.value), 3),
551
- M(i(N), {
552
- name: i(n).loading.value ? "loader4Line" : "expandUpDownLine",
553
- size: 14,
554
- class: S(["shrink-0 text-content-muted", i(n).loading.value ? "animate-spin" : ""])
555
- }, null, 8, ["name", "class"])
556
- ], 10, et)) : (h(), T(_e, {
557
- key: 1,
558
- label: t.label ?? c.value,
559
- width: "md",
560
- "match-trigger-width": "",
561
- placement: "bottom-start",
562
- arrow: !1
563
- }, {
564
- trigger: B(({ toggle: g, attrs: p }) => [
565
- x("button", U({
566
- id: y,
567
- type: "button"
568
- }, p, {
569
- "aria-haspopup": "listbox",
570
- disabled: t.disabled,
571
- "aria-required": t.required || void 0,
572
- "aria-invalid": a || void 0,
573
- "aria-describedby": C,
574
- "aria-busy": i(n).loading.value || void 0,
575
- class: k.value,
576
- onClick: g
577
- }), [
578
- x("span", {
579
- class: S(["min-w-0 truncate", m.value ? "text-content-strong" : "text-content-disabled"])
580
- }, L(m.value?.label ?? c.value), 3),
581
- M(i(N), {
582
- name: i(n).loading.value ? "loader4Line" : "expandUpDownLine",
583
- size: 14,
584
- class: S(["shrink-0 text-content-muted", i(n).loading.value ? "animate-spin" : ""])
585
- }, null, 8, ["name", "class"])
586
- ], 16, tt)
587
- ]),
588
- default: B(({ dismiss: g }) => [
589
- x("div", lt, [
590
- M(H, {
591
- options: i(n).rows.value,
592
- status: i(n).status.value,
593
- "model-value": e.value,
594
- "search-from": t.searchFrom,
595
- "none-label": t.clearable ? i(o)("core.form.select.clear") : void 0,
596
- presentation: "plain",
597
- onSelect: (p) => {
598
- e.value = p, g();
599
- },
600
- onRetry: b[1] || (b[1] = (p) => i(n).reload())
601
- }, null, 8, ["options", "status", "model-value", "search-from", "none-label", "onSelect"])
602
- ])
603
- ]),
604
- _: 2
605
- }, 1032, ["label"]))
606
- ], 2),
607
- i(r) ? (h(), T(we, {
608
- key: 0,
609
- ref_key: "sheet",
610
- ref: s,
611
- title: t.label ?? c.value,
612
- grouped: "",
613
- onPresented: b[4] || (b[4] = (g) => f.value = !0),
614
- onDismissed: b[5] || (b[5] = (g) => f.value = !1)
615
- }, me({
616
- default: B(() => [
617
- M(H, {
618
- options: i(n).rows.value,
619
- status: i(n).status.value,
620
- "model-value": e.value,
621
- "search-from": t.searchFrom,
622
- "none-label": t.clearable ? i(o)("core.form.select.clear") : void 0,
623
- onSelect: q,
624
- onRetry: b[2] || (b[2] = (g) => i(n).reload())
625
- }, null, 8, ["options", "status", "model-value", "search-from", "none-label"])
626
- ]),
627
- _: 2
628
- }, [
629
- t.clearable && e.value !== null ? {
630
- name: "footer",
631
- fn: B(() => [
632
- M(xe, {
633
- prominence: "plain",
634
- onClick: b[3] || (b[3] = (g) => q(null))
635
- }, {
636
- default: B(() => [
637
- ve(L(i(o)("core.form.select.clear")), 1)
638
- ]),
639
- _: 1
640
- })
641
- ]),
642
- key: "0"
643
- } : void 0
644
- ]), 1032, ["title"])) : A("", !0)
645
- ]),
646
- _: 1
647
- }, 16, ["value"]));
648
- }
649
- });
650
- export {
651
- mt as _,
652
- xt as a,
653
- Ze as b,
654
- H as c,
655
- gt as d,
656
- yt as e,
657
- bt as l,
658
- vt as m,
659
- Ke as r,
660
- ht as u
661
- };