@wssto2/vue-core 0.19.0 → 0.21.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 (174) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +5 -1
  3. package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-Bg8JFAOT.js → AccessGate.vue_vue_type_script_setup_true_lang-Dw_pnsh9.js} +1 -1
  4. package/dist/{AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js → AccountMenuItem.vue_vue_type_script_setup_true_lang-C2TmmH38.js} +1 -1
  5. package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-B5IMNnTf.js → ActionRow.vue_vue_type_script_setup_true_lang-BEV0drwF.js} +2 -2
  6. package/dist/{Activity-CiYn5E6A.js → Activity-CZzAt3SH.js} +9 -9
  7. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-oXWQTfBs.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BkZzuICH.js} +6 -6
  8. package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-WuGvAOrj.js → AlertDialog.vue_vue_type_script_setup_true_lang-B0UvzCoE.js} +1 -1
  9. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CX8mpXRE.js → AsyncSection.vue_vue_type_script_setup_true_lang-DuPS_zMX.js} +4 -4
  10. package/dist/{Banner.vue_vue_type_script_setup_true_lang-sv0phngk.js → Banner.vue_vue_type_script_setup_true_lang-BXZVOhfH.js} +1 -1
  11. package/dist/{Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js → Button.vue_vue_type_script_setup_true_lang-CZkTqGtE.js} +1 -1
  12. package/dist/{Changes-Cy8STpLX.js → Changes-B0bhSNU3.js} +5 -5
  13. package/dist/CharacteristicsPage-fGnahf62.js +4 -0
  14. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js → CollectionPage.vue_vue_type_script_setup_true_lang-Bf5WXVFZ.js} +12 -12
  15. package/dist/CollectionTree.vue_vue_type_script_setup_true_lang-DV0OhquO.js +345 -0
  16. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-D372wlxR.js → DataTable.vue_vue_type_script_setup_true_lang-Cw_E8w48.js} +1 -1
  17. package/dist/{DateField.vue_vue_type_script_setup_true_lang-D0KcfW8R.js → DateField.vue_vue_type_script_setup_true_lang-Cn8CNAwM.js} +4 -4
  18. package/dist/{DeadLetters-DhJkMpd_.js → DeadLetters--js7aeC6.js} +4 -4
  19. package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-92szOrYd.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-lnFUie1d.js} +1 -1
  20. package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-DbZiO2RF.js → EmptyState.vue_vue_type_script_setup_true_lang-DHmu-UG-.js} +1 -1
  21. package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js → FormGroup.vue_vue_type_script_setup_true_lang-BUhKKybf.js} +4 -4
  22. package/dist/{FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js → FormRow.vue_vue_type_script_setup_true_lang-B-uth5RB.js} +1 -1
  23. package/dist/{FormView.vue_vue_type_script_setup_true_lang-D01Jr4UU.js → FormView.vue_vue_type_script_setup_true_lang-CoQZG-hB.js} +2 -2
  24. package/dist/{General-CwTPC5UP.js → General-BGT9H69S.js} +8 -8
  25. package/dist/{HeaderAction.vue_vue_type_script_setup_true_lang-Da59TLBh.js → HeaderAction.vue_vue_type_script_setup_true_lang-Uw0vwV-o.js} +2 -2
  26. package/dist/{Icon.vue_vue_type_script_lang-BhhsFYwp.js → Icon.vue_vue_type_script_lang-BIzh8LF1.js} +19 -13
  27. package/dist/{IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js → IconTile.vue_vue_type_script_setup_true_lang-DRirnJvd.js} +1 -1
  28. package/dist/{IncidentRecord-hXEGuLGg.js → IncidentRecord-BETFfXbI.js} +17 -17
  29. package/dist/{IncidentsList-C41VyDwK.js → IncidentsList-BIr3a2To.js} +6 -6
  30. package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CrGrjrlO.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-DjXYh-p0.js} +1 -1
  31. package/dist/{Menu.vue_vue_type_script_setup_true_lang-Cqu4Ebsb.js → Menu.vue_vue_type_script_setup_true_lang-D2FsOVYA.js} +1 -1
  32. package/dist/{MenuButton.vue_vue_type_script_setup_true_lang-C-XRr5f2.js → MenuButton.vue_vue_type_script_setup_true_lang-BNzrYIzR.js} +1 -1
  33. package/dist/{Modal.vue_vue_type_script_setup_true_lang-CZ7WrDwu.js → Modal.vue_vue_type_script_setup_true_lang-BRRMKXOV.js} +2 -2
  34. package/dist/{NewRolePage-BYYZJkK7.js → NewRolePage-B0Y5MrTu.js} +4 -4
  35. package/dist/{NoAccess.vue_vue_type_script_setup_true_lang-BHzZtZ50.js → NoAccess.vue_vue_type_script_setup_true_lang-CnfE_AEl.js} +1 -1
  36. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-BhNZgEW6.js → NumberField.vue_vue_type_script_setup_true_lang-BDZ_0TH7.js} +2 -2
  37. package/dist/{Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js → Panel.vue_vue_type_script_setup_true_lang-CwcJadT7.js} +1 -1
  38. package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-mYFuG-Y3.js → PersonAccess.vue_vue_type_script_setup_true_lang-CJMV9BDQ.js} +12 -12
  39. package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DmMg1T_V.js → PhotoViewer.vue_vue_type_script_setup_true_lang-BL485L63.js} +1 -1
  40. package/dist/{ProfilePage-DGEsIycR.js → ProfilePage-CMy2Dkr2.js} +17 -17
  41. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B3BnYg1x.js → RecordHeader.vue_vue_type_script_setup_true_lang-D4PcZnbo.js} +2 -2
  42. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-1iZtj3rh.js → ResourcePage.vue_vue_type_script_setup_true_lang-CpGwm2tv.js} +4 -4
  43. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-BslSDDiM.js → RoleEditor.vue_vue_type_script_setup_true_lang-CMo8PrO7.js} +12 -12
  44. package/dist/{RolePage-C08ZUqw1.js → RolePage-DGFISfM1.js} +13 -13
  45. package/dist/{RolesPage-FOuY1VKg.js → RolesPage-Bq9EVB_3.js} +9 -9
  46. package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CodyVezo.js → SectionList.vue_vue_type_script_setup_true_lang-BdJ11lZo.js} +3 -3
  47. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-DCTFxfPB.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CnzECivO.js} +6 -6
  48. package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-CLR6EvzO.js → SegmentedField.vue_vue_type_script_setup_true_lang-D3IZil4q.js} +2 -2
  49. package/dist/{SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js → SelectField.vue_vue_type_script_setup_true_lang-DxCEwED6.js} +6 -6
  50. package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CDr4WNIb.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-DtVXUOdP.js} +8 -8
  51. package/dist/{ServiceAccountRecord-kWwIQGZb.js → ServiceAccountRecord-Dc7Gn52W.js} +18 -18
  52. package/dist/{ServiceAccountsList-CKy9_YHP.js → ServiceAccountsList-DBUFeka-.js} +10 -10
  53. package/dist/{Sessions-BDc8gdYH.js → Sessions-BMmqYZrJ.js} +7 -7
  54. package/dist/{SettingsPage-t-8kmFVT.js → SettingsPage-4Dolsr0t.js} +18 -18
  55. package/dist/Sheet.vue_vue_type_script_setup_true_lang-BVU5yzXe.js +163 -0
  56. package/dist/{SignIn-CqtkvtCZ.js → SignIn-uFn1ZWG8.js} +8 -8
  57. package/dist/{SignInPage-DcdNKZIb.js → SignInPage-DouCg9aD.js} +6 -6
  58. package/dist/{SignIns-D4-nGu0B.js → SignIns-CqN5UNmh.js} +5 -5
  59. package/dist/SortableList.vue_vue_type_script_setup_true_lang-D2-5Z_jO.js +112 -0
  60. package/dist/{StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js → StatusLine.vue_vue_type_script_setup_true_lang-DBkQueB0.js} +1 -1
  61. package/dist/{SwipeActions.vue_vue_type_script_setup_true_lang-D8SiC0G7.js → SwipeActions.vue_vue_type_script_setup_true_lang-DUjUWq3G.js} +1 -1
  62. package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-CLtcuofe.js → SwitchField.vue_vue_type_script_setup_true_lang-CTMjlNid.js} +2 -2
  63. package/dist/Tabs.vue_vue_type_script_setup_true_lang-7CJto6Mp.js +169 -0
  64. package/dist/{TextField.vue_vue_type_script_setup_true_lang-CVGh-p3J.js → TextField.vue_vue_type_script_setup_true_lang-B6Q65aQA.js} +4 -4
  65. package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-YxUlNHSk.js → TextareaField.vue_vue_type_script_setup_true_lang-Cj0LKDdo.js} +2 -2
  66. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DHNC_MLt.js → TimeField.vue_vue_type_script_setup_true_lang-TSnnjMn1.js} +4 -4
  67. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-d_KuxWjH.js → Timestamp.vue_vue_type_script_setup_true_lang-0WL7PP0j.js} +1 -1
  68. package/dist/{UserRecord-CwZCr9Im.js → UserRecord-CH5oNRLg.js} +10 -10
  69. package/dist/{UsersList-Cn19sFgv.js → UsersList-BmxWpt9h.js} +3 -3
  70. package/dist/{ViewTabs.vue_vue_type_script_setup_true_lang-BjdDXE3T.js → ViewTabs.vue_vue_type_script_setup_true_lang-BKI5DGuS.js} +1 -1
  71. package/dist/access/index.js +7 -7
  72. package/dist/app/index.js +2 -2
  73. package/dist/{application-CDSweJb9.js → application-C5fZyCB9.js} +8 -8
  74. package/dist/{back-LcLlFodC.js → back-CeozxCgQ.js} +2 -2
  75. package/dist/button/index.js +1 -1
  76. package/dist/characteristics/CharacteristicsPage.vue.d.ts +2 -0
  77. package/dist/characteristics/DeleteDialog.vue.d.ts +22 -0
  78. package/dist/characteristics/ItemSheet.vue.d.ts +25 -0
  79. package/dist/characteristics/access.d.ts +3 -0
  80. package/dist/characteristics/api.d.ts +23 -0
  81. package/dist/characteristics/context.d.ts +12 -0
  82. package/dist/characteristics/feature.d.ts +27 -0
  83. package/dist/characteristics/index.d.ts +10 -0
  84. package/dist/characteristics/index.js +617 -0
  85. package/dist/characteristics/model.d.ts +34 -0
  86. package/dist/characteristics/routes.d.ts +13 -0
  87. package/dist/collection/CollectionTree.vue.d.ts +51 -0
  88. package/dist/collection/CollectionTreeBranch.vue.d.ts +12 -0
  89. package/dist/collection/FileExplorer.vue.d.ts +53 -0
  90. package/dist/collection/RowMore.vue.d.ts +11 -0
  91. package/dist/collection/explorer.d.ts +11 -0
  92. package/dist/collection/index.d.ts +5 -0
  93. package/dist/collection/index.js +431 -158
  94. package/dist/collection/tree.d.ts +64 -0
  95. package/dist/content/DiffView.vue.d.ts +22 -0
  96. package/dist/content/PreviewFrame.vue.d.ts +46 -0
  97. package/dist/content/diff.d.ts +27 -0
  98. package/dist/content/index.d.ts +4 -0
  99. package/dist/content/index.js +552 -218
  100. package/dist/content/previewFrame.d.ts +50 -0
  101. package/dist/{contributions-B0x5x5xD.js → contributions-BSmIRPg1.js} +1 -1
  102. package/dist/controls/SortableList.vue.d.ts +32 -0
  103. package/dist/controls/Tabs.vue.d.ts +2 -0
  104. package/dist/controls/index.d.ts +1 -0
  105. package/dist/controls/index.js +18 -16
  106. package/dist/form/CharacteristicField.vue.d.ts +36 -0
  107. package/dist/form/CodeEditor.vue.d.ts +61 -0
  108. package/dist/form/I18nField.vue.d.ts +1 -1
  109. package/dist/form/MarkerList.vue.d.ts +20 -0
  110. package/dist/form/TextareaField.vue.d.ts +1 -1
  111. package/dist/form/index.d.ts +3 -0
  112. package/dist/form/index.js +1769 -1805
  113. package/dist/{guards-CNJ0ATVC.js → guards-BP9x7CLF.js} +1 -1
  114. package/dist/i18n/index.js +46 -46
  115. package/dist/icon/core.d.ts +6 -0
  116. package/dist/icon/index.js +1 -1
  117. package/dist/identity/index.js +3 -3
  118. package/dist/identity/profile/EmailChangeDialog.vue.d.ts +2 -2
  119. package/dist/incidents/index.js +1 -1
  120. package/dist/{index-SLJWm40T.js → index-4wyfEeIw.js} +9 -9
  121. package/dist/{index-BA2w8uwD.js → index-C_ZVaTkR.js} +27 -27
  122. package/dist/{index-1HS7O2-e.js → index-OVbtHAtG.js} +10 -10
  123. package/dist/index.d.ts +1 -1
  124. package/dist/index.js +1 -1
  125. package/dist/modal/Sheet.vue.d.ts +13 -0
  126. package/dist/modal/TabbedSheet.vue.d.ts +46 -0
  127. package/dist/modal/index.d.ts +1 -0
  128. package/dist/modal/index.js +123 -41
  129. package/dist/modules/characteristics/entities.d.ts +67 -0
  130. package/dist/modules/characteristics/routes.d.ts +55 -0
  131. package/dist/modules/characteristics/schemas.d.ts +50 -0
  132. package/dist/modules/identity/entities.d.ts +1 -0
  133. package/dist/navigation-C05vGEN8.js +55 -0
  134. package/dist/{neighbors-Dg_LU9ry.js → neighbors-BqfO6zf3.js} +2 -2
  135. package/dist/notifications/index.js +1 -1
  136. package/dist/onboarding/index.js +2 -2
  137. package/dist/{options-mOOX6JSS.js → options-DDCG86OV.js} +2 -2
  138. package/dist/overlay/index.js +4 -4
  139. package/dist/page/SectionNavigator.vue.d.ts +1 -1
  140. package/dist/page/SplitPane.vue.d.ts +54 -0
  141. package/dist/page/WorkbenchPage.vue.d.ts +72 -0
  142. package/dist/page/index.d.ts +2 -0
  143. package/dist/page/index.js +343 -104
  144. package/dist/phone/index.js +3 -3
  145. package/dist/platform/index.js +3 -3
  146. package/dist/platform/navigation.d.ts +10 -0
  147. package/dist/{platform-DU9QFts8.js → platform-YWfOO7b2.js} +94 -88
  148. package/dist/pwa/index.js +3 -3
  149. package/dist/resource/index.js +1 -1
  150. package/dist/{resources-BZLlAtoS.js → resources-DkI60fHL.js} +1 -1
  151. package/dist/router/index.js +4 -4
  152. package/dist/router/navigation.d.ts +2 -0
  153. package/dist/routes-DC8BWFz8.js +251 -0
  154. package/dist/{rowLayout-PIuD7MGo.js → rowLayout-zd3Yw6fO.js} +34 -33
  155. package/dist/{sectionIndex-BS0ic5W7.js → sectionIndex-CSr457Lb.js} +2 -2
  156. package/dist/{sections-BpiRLntE.js → sections-DXso1JSV.js} +2 -2
  157. package/dist/shell/NavigationList.vue.d.ts +1 -1
  158. package/dist/shell/index.js +522 -501
  159. package/dist/shell/navigationGroups.d.ts +4 -1
  160. package/dist/state/index.js +8 -8
  161. package/dist/{state-z1iPF1DT.js → state-DqCZdet7.js} +1 -1
  162. package/dist/styles.css +1 -1
  163. package/dist/{suggestions-DeMgs_ki.js → suggestions-DZ3B5RVH.js} +1 -1
  164. package/dist/testing/index.js +2 -2
  165. package/dist/{useCommand-DQKvro1n.js → useCommand-DerEnzIW.js} +4 -4
  166. package/dist/{useGroupSheet-CRw3MUmX.js → useGroupSheet-B9TCHIKH.js} +5 -5
  167. package/dist/{usePreferences-DB29UTFD.js → usePreferences-D38x73re.js} +1 -1
  168. package/dist/{useRecordDialog-0azHxxvm.js → useRecordDialog-DX97ivZD.js} +1 -1
  169. package/dist/{useResourceForm-zVuWerSn.js → useResourceForm-D8T1snBQ.js} +1 -1
  170. package/dist/{useTypedEntry-BsMV66Yc.js → useTypedEntry-CTkgM29Y.js} +2 -2
  171. package/package.json +6 -2
  172. package/dist/Sheet.vue_vue_type_script_setup_true_lang-BG8HUNfs.js +0 -145
  173. package/dist/Tabs.vue_vue_type_script_setup_true_lang-tpkGp98F.js +0 -155
  174. package/dist/navigation-d-JAPBGA.js +0 -53
@@ -1,133 +1,140 @@
1
- import { d as H } from "../http-D6qOS6xs.js";
2
- import { D as Fe, h as $e, l as Ie, a as je, r as Ne, b as ze } from "../http-D6qOS6xs.js";
3
- import { u as J, _ as K } from "../CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js";
4
- import { a as Ve } from "../CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js";
5
- import { L as Be } from "../state-z1iPF1DT.js";
6
- import { a as Ge, u as He } from "../neighbors-Dg_LU9ry.js";
7
- import { r as x } from "../route-goWMxDUN.js";
8
- import { b as Ke, a as Xe } from "../rowLayout-PIuD7MGo.js";
9
- import { _ as Qe } from "../DataTable.vue_vue_type_script_setup_true_lang-D372wlxR.js";
10
- import { defineComponent as z, openBlock as c, createElementBlock as m, Fragment as S, renderList as g, createBlock as M, unref as k, withCtx as C, normalizeClass as O, createVNode as P, createCommentVNode as X, computed as v, useSlots as Z, createSlots as Q, renderSlot as W, normalizeProps as Y, guardReactiveProps as ee, toDisplayString as _ } from "vue";
11
- import { _ as R } from "../Icon.vue_vue_type_script_lang-BhhsFYwp.js";
12
- import { _ as te } from "../Tooltip.vue_vue_type_script_setup_true_lang-C1C1qeBj.js";
13
- import { u as ne } from "../datePresets-DB13HHHd.js";
14
- import { D as Ye } from "../datePresets-DB13HHHd.js";
15
- import { _ as tt, h as nt } from "../Highlight.vue_vue_type_script_setup_true_lang-DZGBmwcX.js";
16
- import { t as oe } from "../resources-BZLlAtoS.js";
17
- import { _ as st, c as at } from "../resources-BZLlAtoS.js";
18
- import { useI18n as se } from "vue-i18n";
19
- function Ae(o, t) {
20
- const s = o?.authors;
21
- return t == null || !Array.isArray(s) ? null : s.find((a) => a.id === t) ?? null;
1
+ import { d as oe } from "../http-D6qOS6xs.js";
2
+ import { D as Ot, h as Dt, l as Nt, a as Pt, r as zt, b as It } from "../http-D6qOS6xs.js";
3
+ import { u as se, _ as ne } from "../CollectionPage.vue_vue_type_script_setup_true_lang-Bf5WXVFZ.js";
4
+ import { a as Bt } from "../CollectionPage.vue_vue_type_script_setup_true_lang-Bf5WXVFZ.js";
5
+ import { L as qt } from "../state-DqCZdet7.js";
6
+ import { a as Gt, u as Ht } from "../neighbors-BqfO6zf3.js";
7
+ import { r as M } from "../route-goWMxDUN.js";
8
+ import { v as le, b as ae } from "../rowLayout-zd3Yw6fO.js";
9
+ import { a as Ut } from "../rowLayout-zd3Yw6fO.js";
10
+ import { _ as Wt } from "../DataTable.vue_vue_type_script_setup_true_lang-Cw_E8w48.js";
11
+ import { defineComponent as j, openBlock as r, createElementBlock as c, Fragment as h, renderList as g, createBlock as q, unref as b, withCtx as R, normalizeClass as $, createVNode as S, createCommentVNode as E, computed as C, useSlots as re, createSlots as ie, renderSlot as L, normalizeProps as ce, guardReactiveProps as de, toDisplayString as _, useModel as V, inject as ue, watch as G, createElementVNode as p, createTextVNode as H, normalizeStyle as pe, mergeModels as K } from "vue";
12
+ import { _ as U } from "../Icon.vue_vue_type_script_lang-BIzh8LF1.js";
13
+ import { _ as fe } from "../Tooltip.vue_vue_type_script_setup_true_lang-C1C1qeBj.js";
14
+ import { u as me } from "../datePresets-DB13HHHd.js";
15
+ import { D as Zt } from "../datePresets-DB13HHHd.js";
16
+ import { _ as Yt, h as eo } from "../Highlight.vue_vue_type_script_setup_true_lang-DZGBmwcX.js";
17
+ import { t as be } from "../resources-DkI60fHL.js";
18
+ import { _ as oo, c as so } from "../resources-DkI60fHL.js";
19
+ import { useI18n as te } from "vue-i18n";
20
+ import { routerKey as ye } from "vue-router";
21
+ import { _ as J } from "../Button.vue_vue_type_script_setup_true_lang-CZkTqGtE.js";
22
+ import { _ as ke } from "../IconTile.vue_vue_type_script_setup_true_lang-DRirnJvd.js";
23
+ import { _ as _e } from "../EmptyState.vue_vue_type_script_setup_true_lang-DHmu-UG-.js";
24
+ import { _ as ve } from "../CollectionTree.vue_vue_type_script_setup_true_lang-DV0OhquO.js";
25
+ import { a as lo, m as ao, v as ro } from "../CollectionTree.vue_vue_type_script_setup_true_lang-DV0OhquO.js";
26
+ function $t(l, n) {
27
+ const t = l?.authors;
28
+ return n == null || !Array.isArray(t) ? null : t.find((i) => i.id === n) ?? null;
22
29
  }
23
- const w = {
24
- index: x("GET", "/v1/saved-views"),
25
- store: x("POST", "/v1/saved-views"),
26
- delete: x("DELETE", "/v1/saved-views/:id")
27
- }, F = ({ id: o, name: t, state: s }) => ({ id: o, name: t, state: s });
28
- function Te(o) {
30
+ const B = {
31
+ index: M("GET", "/v1/saved-views"),
32
+ store: M("POST", "/v1/saved-views"),
33
+ delete: M("DELETE", "/v1/saved-views/:id")
34
+ }, W = ({ id: l, name: n, state: t }) => ({ id: l, name: n, state: t });
35
+ function St(l) {
29
36
  return {
30
- async list(t, { signal: s }) {
31
- return (await o.request(w.index, { list: t }, { signal: s })).data.map(F);
37
+ async list(n, { signal: t }) {
38
+ return (await l.request(B.index, { list: n }, { signal: t })).data.map(W);
32
39
  },
33
- async save(t, s, a) {
34
- const r = JSON.stringify({ ...a, view: a.view || void 0 });
35
- return F((await o.request(w.store, { list_key: t, name: s, state: r })).data);
40
+ async save(n, t, i) {
41
+ const u = JSON.stringify({ ...i, view: i.view || void 0 });
42
+ return W((await l.request(B.store, { list_key: n, name: t, state: u })).data);
36
43
  },
37
- async remove(t, s) {
38
- await o.request(w.delete, { id: Number(s) });
44
+ async remove(n, t) {
45
+ await l.request(B.delete, { id: Number(t) });
39
46
  }
40
47
  };
41
48
  }
42
- function Le(o = {}) {
43
- const t = new Map(Object.entries(o).map(([r, n]) => [r, [...n]]));
44
- let s = 1;
45
- const a = (r) => {
46
- let n = t.get(r);
47
- return n || t.set(r, n = []), n;
49
+ function At(l = {}) {
50
+ const n = new Map(Object.entries(l).map(([u, a]) => [u, [...a]]));
51
+ let t = 1;
52
+ const i = (u) => {
53
+ let a = n.get(u);
54
+ return a || n.set(u, a = []), a;
48
55
  };
49
56
  return {
50
- async list(r) {
51
- return [...a(r)];
57
+ async list(u) {
58
+ return [...i(u)];
52
59
  },
53
- async save(r, n, f) {
54
- const u = a(r), y = u.findIndex((h) => h.name === n), b = { id: y === -1 ? `view-${s++}` : u[y].id, name: n, state: f };
55
- return y === -1 ? u.push(b) : u[y] = b, b;
60
+ async save(u, a, f) {
61
+ const y = i(u), v = y.findIndex((x) => x.name === a), w = { id: v === -1 ? `view-${t++}` : y[v].id, name: a, state: f };
62
+ return v === -1 ? y.push(w) : y[v] = w, w;
56
63
  },
57
- async remove(r, n) {
58
- const f = a(r), u = f.findIndex((y) => y.id === n);
59
- u !== -1 && f.splice(u, 1);
64
+ async remove(u, a) {
65
+ const f = i(u), y = f.findIndex((v) => v.id === a);
66
+ y !== -1 && f.splice(y, 1);
60
67
  }
61
68
  };
62
69
  }
63
- const ae = {
70
+ const he = {
64
71
  key: 0,
65
72
  class: "flex items-center justify-center gap-1",
66
73
  "data-test": "row-actions"
67
- }, re = ["href", "target", "rel", "aria-label", "data-action"], ie = ["aria-label", "data-action", "disabled", "onClick"], $ = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", De = /* @__PURE__ */ z({
74
+ }, ge = ["href", "target", "rel", "aria-label", "data-action"], xe = ["aria-label", "data-action", "disabled", "onClick"], X = "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", Et = /* @__PURE__ */ j({
68
75
  __name: "RowActions",
69
76
  props: {
70
77
  actions: {},
71
78
  disabled: { type: Boolean, default: !1 }
72
79
  },
73
- setup(o) {
74
- const t = o, s = (a) => a.tone === "critical" ? "text-status-danger-content hover:bg-status-danger-surface" : "text-content-link hover:bg-tint-soft";
75
- return (a, r) => t.actions.length > 0 ? (c(), m("div", ae, [
76
- (c(!0), m(S, null, g(t.actions, (n) => (c(), M(k(te), {
77
- key: n.key,
78
- text: n.label,
80
+ setup(l) {
81
+ const n = l, t = (i) => i.tone === "critical" ? "text-status-danger-content hover:bg-status-danger-surface" : "text-content-link hover:bg-tint-soft";
82
+ return (i, u) => n.actions.length > 0 ? (r(), c("div", he, [
83
+ (r(!0), c(h, null, g(n.actions, (a) => (r(), q(b(fe), {
84
+ key: a.key,
85
+ text: a.label,
79
86
  side: "left"
80
87
  }, {
81
- default: C(() => [
82
- n.href && !t.disabled ? (c(), m("a", {
88
+ default: R(() => [
89
+ a.href && !n.disabled ? (r(), c("a", {
83
90
  key: 0,
84
- href: n.href,
85
- target: n.external ? "_blank" : void 0,
86
- rel: n.external ? "noopener" : void 0,
87
- "aria-label": n.label,
88
- "data-action": n.key,
89
- class: O(["inline-flex rounded-md p-1.5 transition-colors", [s(n), $]])
91
+ href: a.href,
92
+ target: a.external ? "_blank" : void 0,
93
+ rel: a.external ? "noopener" : void 0,
94
+ "aria-label": a.label,
95
+ "data-action": a.key,
96
+ class: $(["inline-flex rounded-md p-1.5 transition-colors", [t(a), X]])
90
97
  }, [
91
- P(k(R), {
92
- name: n.icon,
98
+ S(b(U), {
99
+ name: a.icon,
93
100
  size: 18
94
101
  }, null, 8, ["name"])
95
- ], 10, re)) : (c(), m("button", {
102
+ ], 10, ge)) : (r(), c("button", {
96
103
  key: 1,
97
104
  type: "button",
98
- "aria-label": n.label,
99
- "data-action": n.key,
100
- disabled: t.disabled,
101
- class: O(["inline-flex cursor-pointer rounded-md p-1.5 transition-colors disabled:pointer-events-none disabled:opacity-40", [s(n), $]]),
102
- onClick: (f) => n.onSelect?.()
105
+ "aria-label": a.label,
106
+ "data-action": a.key,
107
+ disabled: n.disabled,
108
+ class: $(["inline-flex cursor-pointer rounded-md p-1.5 transition-colors disabled:pointer-events-none disabled:opacity-40", [t(a), X]]),
109
+ onClick: (f) => a.onSelect?.()
103
110
  }, [
104
- P(k(R), {
105
- name: n.icon,
111
+ S(b(U), {
112
+ name: a.icon,
106
113
  size: 18
107
114
  }, null, 8, ["name"])
108
- ], 10, ie))
115
+ ], 10, xe))
109
116
  ]),
110
117
  _: 2
111
118
  }, 1032, ["text"]))), 128))
112
- ])) : X("", !0);
119
+ ])) : E("", !0);
113
120
  }
114
- }), le = ["text", "number", "boolean", "select", "multi_select", "date", "datetime", "image", "document", "gallery"], ce = ["text", "number", "boolean", "select", "date", "datetime"], de = ["select", "boolean", "date", "datetime"];
115
- function ue(o, t) {
116
- return t ? t.flatMap((s) => o.fields.filter((a) => a.key === s)) : o.fields.filter((s) => le.includes(s.kind));
121
+ }), we = ["text", "number", "boolean", "select", "multi_select", "date", "datetime", "image", "document", "gallery"], Ce = ["text", "number", "boolean", "select", "date", "datetime"], $e = ["select", "boolean", "date", "datetime"];
122
+ function Se(l, n) {
123
+ return n ? n.flatMap((t) => l.fields.filter((i) => i.key === t)) : l.fields.filter((t) => we.includes(t.kind));
117
124
  }
118
- const I = (o) => ce.includes(o.kind) && !o.translatable, j = (o) => de.includes(o.kind) && !o.translatable;
119
- function N(o, t) {
120
- if (o == null) return "";
121
- if (typeof o == "object" && !Array.isArray(o)) {
122
- const s = o, a = s[t];
123
- return typeof a == "string" && a !== "" ? a : Object.values(s).find((r) => typeof r == "string" && r !== "") ?? "";
125
+ const Z = (l) => Ce.includes(l.kind) && !l.translatable, Q = (l) => $e.includes(l.kind) && !l.translatable;
126
+ function Y(l, n) {
127
+ if (l == null) return "";
128
+ if (typeof l == "object" && !Array.isArray(l)) {
129
+ const t = l, i = t[n];
130
+ return typeof i == "string" && i !== "" ? i : Object.values(t).find((u) => typeof u == "string" && u !== "") ?? "";
124
131
  }
125
- return String(o);
132
+ return String(l);
126
133
  }
127
- function me(o, t) {
128
- return o.kind === "boolean" ? [{ value: "true", label: t.yes }, { value: "false", label: t.no }] : (o.options ?? []).map((s) => ({ value: s.value, label: s.label }));
134
+ function Ae(l, n) {
135
+ return l.kind === "boolean" ? [{ value: "true", label: n.yes }, { value: "false", label: n.no }] : (l.options ?? []).map((t) => ({ value: t.value, label: t.label }));
129
136
  }
130
- const ye = { key: 0 }, pe = ["src"], fe = { key: 2 }, ke = { key: 3 }, be = { key: 4 }, Oe = /* @__PURE__ */ z({
137
+ const Ee = { key: 0 }, Le = ["src"], Te = { key: 2 }, Re = { key: 3 }, Fe = { key: 4 }, Lt = /* @__PURE__ */ j({
131
138
  __name: "DynamicCollection",
132
139
  props: {
133
140
  schema: {},
@@ -145,97 +152,363 @@ const ye = { key: 0 }, pe = ["src"], fe = { key: 2 }, ke = { key: 3 }, be = { ke
145
152
  thumbnail: { default: void 0 },
146
153
  locale: { default: void 0 }
147
154
  },
148
- setup(o) {
149
- const t = o, { t: s, locale: a } = se(), r = v(() => t.locale ?? a.value), n = ue(t.schema, t.columns), f = t.titleField ?? n.find((e) => e.kind === "text")?.key, u = v(() => ({ yes: s("core.form.yes"), no: s("core.form.no") })), y = H({
150
- id: t.id,
155
+ setup(l) {
156
+ const n = l, { t, locale: i } = te(), u = C(() => n.locale ?? i.value), a = Se(n.schema, n.columns), f = n.titleField ?? a.find((o) => o.kind === "text")?.key, y = C(() => ({ yes: t("core.form.yes"), no: t("core.form.no") })), v = oe({
157
+ id: n.id,
151
158
  stateVersion: 1,
152
- load: t.load,
153
- key: (e) => e.id,
154
- query: { sorts: n.filter(I).map((e) => e.key), filters: n.filter(j).map((e) => e.key) }
155
- }), b = new Map(n.filter((e) => e.kind === "date" || e.kind === "datetime").map((e) => [e.key, ne(e.key, e.label)])), h = v(() => n.filter(j).map((e) => b.get(e.key)?.value ?? { key: e.key, label: e.label, type: "select", options: me(e, u.value) })), E = (e, i) => e.options?.find((l) => l.value === i)?.label ?? String(i ?? ""), A = v(() => n.map((e) => {
156
- const i = { key: e.key, label: e.label, ...I(e) ? { sort: e.key } : {} };
157
- if (e.key === f) return { ...i, kind: "identity", title: (l) => N(l[e.key], r.value) };
158
- switch (e.kind) {
159
+ load: n.load,
160
+ key: (o) => o.id,
161
+ query: { sorts: a.filter(Z).map((o) => o.key), filters: a.filter(Q).map((o) => o.key) }
162
+ }), w = new Map(a.filter((o) => o.kind === "date" || o.kind === "datetime").map((o) => [o.key, me(o.key, o.label)])), x = C(() => a.filter(Q).map((o) => w.get(o.key)?.value ?? { key: o.key, label: o.label, type: "select", options: Ae(o, y.value) })), F = (o, m) => o.options?.find((s) => s.value === m)?.label ?? String(m ?? ""), A = C(() => a.map((o) => {
163
+ const m = { key: o.key, label: o.label, ...Z(o) ? { sort: o.key } : {} };
164
+ if (o.key === f) return { ...m, kind: "identity", title: (s) => Y(s[o.key], u.value) };
165
+ switch (o.kind) {
159
166
  case "number":
160
- return { ...i, kind: "number" };
167
+ return { ...m, kind: "number" };
161
168
  case "date":
162
- return { ...i, kind: "timestamp", precision: "date" };
169
+ return { ...m, kind: "timestamp", precision: "date" };
163
170
  case "datetime":
164
- return { ...i, kind: "timestamp", precision: "dateTime" };
171
+ return { ...m, kind: "timestamp", precision: "dateTime" };
165
172
  case "boolean":
166
- return { ...i, kind: "badge", tone: (l) => l[e.key] === !0 ? "positive" : "neutral", text: (l) => l[e.key] === !0 ? u.value.yes : u.value.no };
173
+ return { ...m, kind: "badge", tone: (s) => s[o.key] === !0 ? "positive" : "neutral", text: (s) => s[o.key] === !0 ? y.value.yes : y.value.no };
167
174
  case "select":
168
- return { ...i, kind: "badge", tone: () => "neutral", text: (l) => E(e, l[e.key]) };
175
+ return { ...m, kind: "badge", tone: () => "neutral", text: (s) => F(o, s[o.key]) };
169
176
  case "text":
170
- return e.translatable ? { ...i, kind: "custom" } : { ...i, kind: "text" };
177
+ return o.translatable ? { ...m, kind: "custom" } : { ...m, kind: "text" };
171
178
  default:
172
- return { ...i, kind: "custom" };
179
+ return { ...m, kind: "custom" };
173
180
  }
174
- })), V = J(y, {
181
+ })), P = se(v, {
175
182
  columns: A,
176
- filters: h,
177
- state: t.state,
178
- ...t.recordRoute ? { recordRoute: t.recordRoute } : {}
179
- }), T = (e) => `cell-${e.replace(/\./g, "_")}`, L = Z(), q = v(() => A.value.filter((e) => e.kind === "custom" && !(T(e.key) in L))), B = () => Object.keys(L), U = (e) => n.find((i) => i.key === e), D = (e) => Array.isArray(e) ? e : [];
180
- return (e, i) => (c(), M(K, {
181
- collection: k(V),
182
- title: t.title,
183
- description: t.description,
184
- icon: t.icon,
185
- actions: t.actions,
186
- "row-actions": t.rowActions
187
- }, Q({ _: 2 }, [
188
- g(B(), (l) => ({
189
- name: l,
190
- fn: C((p) => [
191
- W(e.$slots, l, Y(ee(p ?? {})))
183
+ filters: x,
184
+ state: n.state,
185
+ ...n.recordRoute ? { recordRoute: n.recordRoute } : {}
186
+ }), O = (o) => `cell-${o.replace(/\./g, "_")}`, T = re(), z = C(() => A.value.filter((o) => o.kind === "custom" && !(O(o.key) in T))), D = () => Object.keys(T), I = (o) => a.find((m) => m.key === o), N = (o) => Array.isArray(o) ? o : [];
187
+ return (o, m) => (r(), q(ne, {
188
+ collection: b(P),
189
+ title: n.title,
190
+ description: n.description,
191
+ icon: n.icon,
192
+ actions: n.actions,
193
+ "row-actions": n.rowActions
194
+ }, ie({ _: 2 }, [
195
+ g(D(), (s) => ({
196
+ name: s,
197
+ fn: R((d) => [
198
+ L(o.$slots, s, ce(de(d ?? {})))
192
199
  ])
193
200
  })),
194
- g(q.value, (l) => ({
195
- name: T(l.key),
196
- fn: C(({ item: p }) => [
197
- (c(!0), m(S, null, g([U(l.key)], (d) => (c(), m(S, {
198
- key: d.key
201
+ g(z.value, (s) => ({
202
+ name: O(s.key),
203
+ fn: R(({ item: d }) => [
204
+ (r(!0), c(h, null, g([I(s.key)], (e) => (r(), c(h, {
205
+ key: e.key
199
206
  }, [
200
- d.kind === "text" ? (c(), m("span", ye, _(k(N)(p[d.key], r.value)), 1)) : d.kind === "image" && t.thumbnail && p[d.key] != null ? (c(), m("img", {
207
+ e.kind === "text" ? (r(), c("span", Ee, _(b(Y)(d[e.key], u.value)), 1)) : e.kind === "image" && n.thumbnail && d[e.key] != null ? (r(), c("img", {
201
208
  key: 1,
202
- src: k(oe)({ thumbnail: t.thumbnail }, p[d.key]),
209
+ src: b(be)({ thumbnail: n.thumbnail }, d[e.key]),
203
210
  alt: "",
204
211
  class: "size-10 rounded object-cover",
205
212
  loading: "lazy"
206
- }, null, 8, pe)) : d.kind === "gallery" ? (c(), m("span", fe, _(D(p[d.key]).length || ""), 1)) : d.kind === "multi_select" ? (c(), m("span", ke, _(D(p[d.key]).map((G) => E(d, G)).join(", ")), 1)) : (c(), m("span", be, _(p[d.key] ?? ""), 1))
213
+ }, null, 8, Le)) : e.kind === "gallery" ? (r(), c("span", Te, _(N(d[e.key]).length || ""), 1)) : e.kind === "multi_select" ? (r(), c("span", Re, _(N(d[e.key]).map((k) => F(e, k)).join(", ")), 1)) : (r(), c("span", Fe, _(d[e.key] ?? ""), 1))
207
214
  ], 64))), 128))
208
215
  ])
209
216
  }))
210
217
  ]), 1032, ["collection", "title", "description", "icon", "actions", "row-actions"]));
211
218
  }
219
+ }), Oe = ["aria-busy"], De = { class: "flex flex-wrap items-center gap-x-3 gap-y-2 px-3 py-2.5" }, Ne = ["aria-label"], Pe = { class: "flex flex-wrap items-center gap-1 text-body text-content-muted" }, ze = {
220
+ key: 0,
221
+ "aria-hidden": "true"
222
+ }, Ie = {
223
+ key: 1,
224
+ "aria-current": "page",
225
+ class: "text-content-strong"
226
+ }, Me = ["onClick"], Be = { class: "ml-auto flex flex-wrap items-center gap-2" }, je = ["aria-label"], qe = {
227
+ role: "status",
228
+ class: "mr-1 text-body"
229
+ }, Ve = { class: "overflow-x-auto" }, Ge = ["aria-label"], He = { class: "border-y border-border-separator bg-fill/40 text-footnote font-normal text-content-muted" }, Ke = { class: "text-left" }, Ue = {
230
+ scope: "col",
231
+ class: "w-10 py-2 pl-4"
232
+ }, Je = ["aria-label", "checked", "indeterminate", "disabled"], We = {
233
+ scope: "col",
234
+ class: "px-2 py-2 font-normal"
235
+ }, Xe = {
236
+ scope: "col",
237
+ class: "w-12"
238
+ }, Ze = { class: "sr-only" }, Qe = ["colspan"], Ye = ["data-kind", "aria-selected", "onClick"], et = { class: "py-1 pl-4" }, tt = ["aria-label", "checked", "onChange"], ot = { class: "px-2 py-1" }, st = ["onClick"], nt = { class: "truncate" }, lt = {
239
+ key: 0,
240
+ class: "sr-only"
241
+ }, at = { class: "pr-2" }, rt = {
242
+ key: 0,
243
+ "data-test": "explorer-empty"
244
+ }, it = ["colspan"], ee = "size-4 cursor-pointer accent-tile-brand focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", Tt = /* @__PURE__ */ j({
245
+ __name: "FileExplorer",
246
+ props: /* @__PURE__ */ K({
247
+ rows: {},
248
+ columns: {},
249
+ label: {},
250
+ breadcrumb: { default: () => [] },
251
+ loading: { type: Boolean, default: !1 },
252
+ rowActions: { type: Function, default: void 0 },
253
+ selectionActions: { type: Function, default: void 0 },
254
+ param: { default: "folder" },
255
+ nameLabel: { default: void 0 }
256
+ }, {
257
+ selected: { default: () => [] },
258
+ selectedModifiers: {},
259
+ folder: { default: null },
260
+ folderModifiers: {}
261
+ }),
262
+ emits: /* @__PURE__ */ K(["open"], ["update:selected", "update:folder"]),
263
+ setup(l, { emit: n }) {
264
+ const t = l, i = V(l, "selected"), u = V(l, "folder"), a = n, { t: f } = te(), y = ue(ye, null), v = () => y?.currentRoute.value.query;
265
+ y && t.param !== null && G(() => {
266
+ const d = v()?.[t.param];
267
+ return typeof d == "string" && d !== "" ? d : null;
268
+ }, (d) => {
269
+ d !== u.value && (u.value = d);
270
+ }, { immediate: !0 });
271
+ function w(s) {
272
+ if (s === u.value) return;
273
+ if (!y || t.param === null) {
274
+ u.value = s;
275
+ return;
276
+ }
277
+ const d = { ...v() };
278
+ s === null ? delete d[t.param] : d[t.param] = s, y.push({ query: d });
279
+ }
280
+ G(u, () => i.value = []);
281
+ const x = C(() => t.rows.filter((s) => i.value.includes(s.id))), F = C(() => t.selectionActions?.(x.value) ?? []), A = C(() => t.rows.length > 0 && x.value.length === t.rows.length), P = (s) => i.value = i.value.includes(s.id) ? i.value.filter((d) => d !== s.id) : [...i.value, s.id], O = () => i.value = A.value ? [] : t.rows.map((s) => s.id);
282
+ function T(s) {
283
+ s.kind === "folder" ? w(String(s.id)) : a("open", s);
284
+ }
285
+ function z(s, d) {
286
+ s.target.closest("a, button, input, label, [data-row-click-ignore]") || T(d);
287
+ }
288
+ const D = {
289
+ folder: { icon: "folderLine", tone: "brand" },
290
+ page: { icon: "fileTextLine", tone: "anchor" },
291
+ link: { icon: "externalLink", tone: "anchor" },
292
+ file: { icon: "fileLine", tone: "anchor" }
293
+ }, I = (s) => `cell-${String(s.key).replace(/\./g, "_")}`, N = { md: "hidden md:table-cell", xl: "hidden xl:table-cell", "2xl": "hidden 2xl:table-cell" }, o = { start: "text-left", center: "text-center", end: "text-right" }, m = (s) => [s.hideBelow ? N[s.hideBelow] : "", o[s.align ?? "start"], "px-4"];
294
+ return (s, d) => (r(), c("section", {
295
+ class: "overflow-hidden rounded-group bg-surface-cell shadow-group",
296
+ "data-test": "file-explorer",
297
+ "aria-busy": t.loading || void 0
298
+ }, [
299
+ p("header", De, [
300
+ L(s.$slots, "switch"),
301
+ t.breadcrumb.length > 0 ? (r(), c("nav", {
302
+ key: 0,
303
+ "aria-label": b(f)("core.explorer.breadcrumb"),
304
+ class: "min-w-0"
305
+ }, [
306
+ p("ol", Pe, [
307
+ (r(!0), c(h, null, g(t.breadcrumb, (e, k) => (r(), c("li", {
308
+ key: e.id ?? "root",
309
+ class: "flex items-center gap-1"
310
+ }, [
311
+ k > 0 ? (r(), c("span", ze, "/")) : E("", !0),
312
+ k === t.breadcrumb.length - 1 ? (r(), c("span", Ie, _(e.label), 1)) : (r(), c("button", {
313
+ key: 2,
314
+ type: "button",
315
+ class: "cursor-pointer rounded-sm hover:text-content-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
316
+ onClick: (ct) => w(e.id)
317
+ }, _(e.label), 9, Me))
318
+ ]))), 128))
319
+ ])
320
+ ], 8, Ne)) : E("", !0),
321
+ p("div", Be, [
322
+ L(s.$slots, "toolbar")
323
+ ])
324
+ ]),
325
+ x.value.length > 0 ? (r(), c("div", {
326
+ key: 0,
327
+ role: "region",
328
+ "aria-label": b(f)("core.explorer.selection"),
329
+ "data-test": "selection-bar",
330
+ class: "flex flex-wrap items-center gap-2 border-y border-border-separator bg-tint-soft px-3 py-2"
331
+ }, [
332
+ p("span", qe, _(b(f)("core.explorer.selected", x.value.length)), 1),
333
+ (r(!0), c(h, null, g(F.value, (e) => (r(), q(J, {
334
+ key: e.id,
335
+ size: "sm",
336
+ icon: e.icon,
337
+ tone: e.tone,
338
+ disabled: e.disabled,
339
+ processing: e.processing,
340
+ "data-page-action": e.id,
341
+ onClick: (k) => e.onClick()
342
+ }, {
343
+ default: R(() => [
344
+ H(_(e.label), 1)
345
+ ]),
346
+ _: 2
347
+ }, 1032, ["icon", "tone", "disabled", "processing", "data-page-action", "onClick"]))), 128)),
348
+ S(J, {
349
+ class: "ml-auto",
350
+ size: "sm",
351
+ prominence: "link",
352
+ "data-test": "selection-clear",
353
+ onClick: d[0] || (d[0] = (e) => i.value = [])
354
+ }, {
355
+ default: R(() => [
356
+ H(_(b(f)("core.explorer.clear")), 1)
357
+ ]),
358
+ _: 1
359
+ })
360
+ ], 8, je)) : E("", !0),
361
+ p("div", Ve, [
362
+ p("table", {
363
+ class: "w-full",
364
+ "aria-label": t.label
365
+ }, [
366
+ p("thead", He, [
367
+ p("tr", Ke, [
368
+ p("th", Ue, [
369
+ p("input", {
370
+ type: "checkbox",
371
+ class: $(ee),
372
+ "aria-label": b(f)("core.explorer.select_all"),
373
+ checked: A.value,
374
+ indeterminate: x.value.length > 0 && !A.value,
375
+ disabled: t.rows.length === 0,
376
+ onChange: O
377
+ }, null, 40, Je)
378
+ ]),
379
+ p("th", We, _(t.nameLabel ?? b(f)("core.explorer.name")), 1),
380
+ (r(!0), c(h, null, g(t.columns, (e) => (r(), c("th", {
381
+ key: String(e.key),
382
+ scope: "col",
383
+ class: $(["py-2 font-normal", m(e)]),
384
+ style: pe({ width: e.width ? `${e.width}px` : void 0 })
385
+ }, _(e.label), 7))), 128)),
386
+ p("th", Xe, [
387
+ p("span", Ze, _(b(f)("core.actions.more")), 1)
388
+ ])
389
+ ])
390
+ ]),
391
+ p("tbody", null, [
392
+ t.loading ? (r(), c(h, { key: 0 }, g(3, (e) => p("tr", {
393
+ key: e,
394
+ "aria-hidden": "true",
395
+ class: "h-[50px]"
396
+ }, [
397
+ p("td", {
398
+ colspan: t.columns.length + 3,
399
+ class: "px-4"
400
+ }, [...d[1] || (d[1] = [
401
+ p("div", { class: "h-3 w-1/3 animate-pulse rounded-full bg-fill motion-reduce:animate-none" }, null, -1)
402
+ ])], 8, Qe)
403
+ ])), 64)) : (r(), c(h, { key: 1 }, [
404
+ (r(!0), c(h, null, g(t.rows, (e) => (r(), c("tr", {
405
+ key: e.id,
406
+ "data-test": "explorer-row",
407
+ "data-kind": e.kind,
408
+ "aria-selected": i.value.includes(e.id),
409
+ class: $(["h-[50px] cursor-pointer border-b border-border-separator last:border-b-0 hover:bg-fill/50", i.value.includes(e.id) ? "bg-tint-soft" : ""]),
410
+ onClick: (k) => z(k, e)
411
+ }, [
412
+ p("td", et, [
413
+ p("input", {
414
+ type: "checkbox",
415
+ class: $(ee),
416
+ "aria-label": b(f)("core.explorer.select", { name: e.name }),
417
+ checked: i.value.includes(e.id),
418
+ onChange: (k) => P(e)
419
+ }, null, 40, tt)
420
+ ]),
421
+ p("td", ot, [
422
+ p("button", {
423
+ type: "button",
424
+ class: "flex min-w-0 cursor-pointer items-center gap-3 rounded-sm text-left text-body text-content-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
425
+ onClick: (k) => T(e)
426
+ }, [
427
+ L(s.$slots, "icon", { item: e }, () => [
428
+ S(ke, {
429
+ size: "sm",
430
+ tone: D[e.kind].tone,
431
+ icon: D[e.kind].icon
432
+ }, null, 8, ["tone", "icon"])
433
+ ]),
434
+ p("span", nt, _(e.name), 1),
435
+ e.kind === "folder" ? (r(), c("span", lt, _(b(f)("core.explorer.folder")), 1)) : E("", !0)
436
+ ], 8, st)
437
+ ]),
438
+ (r(!0), c(h, null, g(t.columns, (k) => (r(), c("td", {
439
+ key: String(k.key),
440
+ class: $(m(k))
441
+ }, [
442
+ L(s.$slots, I(k), {
443
+ item: e,
444
+ value: b(le)(e, k.key),
445
+ compact: !1,
446
+ to: null
447
+ }, () => [
448
+ S(ae, {
449
+ column: k,
450
+ item: e,
451
+ compact: !1,
452
+ to: null
453
+ }, null, 8, ["column", "item"])
454
+ ])
455
+ ], 2))), 128)),
456
+ p("td", at, [
457
+ S(ve, {
458
+ actions: t.rowActions?.(e) ?? [],
459
+ label: e.name
460
+ }, null, 8, ["actions", "label"])
461
+ ])
462
+ ], 10, Ye))), 128)),
463
+ t.rows.length === 0 ? (r(), c("tr", rt, [
464
+ p("td", {
465
+ colspan: t.columns.length + 3,
466
+ class: "py-6 text-center"
467
+ }, [
468
+ L(s.$slots, "empty", {}, () => [
469
+ S(_e, {
470
+ title: b(f)("core.explorer.empty")
471
+ }, null, 8, ["title"])
472
+ ])
473
+ ], 8, it)
474
+ ])) : E("", !0)
475
+ ], 64))
476
+ ])
477
+ ], 8, Ge)
478
+ ])
479
+ ], 8, Oe));
480
+ }
212
481
  });
213
482
  export {
214
- Ke as CollectionCell,
215
- K as CollectionPage,
216
- Ve as CollectionTable,
217
- Ye as DATE_PRESETS,
218
- Fe as DEFAULT_PAGE_SIZES,
219
- Qe as DataTable,
220
- Oe as DynamicCollection,
221
- tt as Highlight,
222
- Be as LIST_CONTEXT_PARAM,
223
- st as PickerModal,
224
- Xe as RecordIdentity,
225
- De as RowActions,
226
- Ae as authorOf,
227
- Le as createMemorySavedViews,
228
- at as createPicker,
229
- H as defineCollection,
230
- nt as highlightParts,
231
- $e as httpList,
232
- Ie as listLoader,
233
- je as listParams,
234
- Ne as readListPage,
235
- ze as routeListLoader,
236
- Te as serverSavedViews,
237
- J as useCollection,
238
- Ge as useCollectionBack,
239
- He as useCollectionNeighbors,
240
- ne as useDatePresetFilter
483
+ ae as CollectionCell,
484
+ ne as CollectionPage,
485
+ Bt as CollectionTable,
486
+ lo as CollectionTree,
487
+ Zt as DATE_PRESETS,
488
+ Ot as DEFAULT_PAGE_SIZES,
489
+ Wt as DataTable,
490
+ Lt as DynamicCollection,
491
+ Tt as FileExplorer,
492
+ Yt as Highlight,
493
+ qt as LIST_CONTEXT_PARAM,
494
+ oo as PickerModal,
495
+ Ut as RecordIdentity,
496
+ Et as RowActions,
497
+ $t as authorOf,
498
+ At as createMemorySavedViews,
499
+ so as createPicker,
500
+ oe as defineCollection,
501
+ eo as highlightParts,
502
+ Dt as httpList,
503
+ Nt as listLoader,
504
+ Pt as listParams,
505
+ ao as matchesText,
506
+ zt as readListPage,
507
+ It as routeListLoader,
508
+ St as serverSavedViews,
509
+ se as useCollection,
510
+ Gt as useCollectionBack,
511
+ Ht as useCollectionNeighbors,
512
+ me as useDatePresetFilter,
513
+ ro as visibleNodes
241
514
  };