@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.
- package/CHANGELOG.md +31 -0
- package/README.md +5 -1
- 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
- package/dist/{AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js → AccountMenuItem.vue_vue_type_script_setup_true_lang-C2TmmH38.js} +1 -1
- package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-B5IMNnTf.js → ActionRow.vue_vue_type_script_setup_true_lang-BEV0drwF.js} +2 -2
- package/dist/{Activity-CiYn5E6A.js → Activity-CZzAt3SH.js} +9 -9
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-oXWQTfBs.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BkZzuICH.js} +6 -6
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-WuGvAOrj.js → AlertDialog.vue_vue_type_script_setup_true_lang-B0UvzCoE.js} +1 -1
- 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
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-sv0phngk.js → Banner.vue_vue_type_script_setup_true_lang-BXZVOhfH.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js → Button.vue_vue_type_script_setup_true_lang-CZkTqGtE.js} +1 -1
- package/dist/{Changes-Cy8STpLX.js → Changes-B0bhSNU3.js} +5 -5
- package/dist/CharacteristicsPage-fGnahf62.js +4 -0
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js → CollectionPage.vue_vue_type_script_setup_true_lang-Bf5WXVFZ.js} +12 -12
- package/dist/CollectionTree.vue_vue_type_script_setup_true_lang-DV0OhquO.js +345 -0
- 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
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-D0KcfW8R.js → DateField.vue_vue_type_script_setup_true_lang-Cn8CNAwM.js} +4 -4
- package/dist/{DeadLetters-DhJkMpd_.js → DeadLetters--js7aeC6.js} +4 -4
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-92szOrYd.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-lnFUie1d.js} +1 -1
- 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
- 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
- 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
- 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
- package/dist/{General-CwTPC5UP.js → General-BGT9H69S.js} +8 -8
- 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
- package/dist/{Icon.vue_vue_type_script_lang-BhhsFYwp.js → Icon.vue_vue_type_script_lang-BIzh8LF1.js} +19 -13
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js → IconTile.vue_vue_type_script_setup_true_lang-DRirnJvd.js} +1 -1
- package/dist/{IncidentRecord-hXEGuLGg.js → IncidentRecord-BETFfXbI.js} +17 -17
- package/dist/{IncidentsList-C41VyDwK.js → IncidentsList-BIr3a2To.js} +6 -6
- 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
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-Cqu4Ebsb.js → Menu.vue_vue_type_script_setup_true_lang-D2FsOVYA.js} +1 -1
- 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
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-CZ7WrDwu.js → Modal.vue_vue_type_script_setup_true_lang-BRRMKXOV.js} +2 -2
- package/dist/{NewRolePage-BYYZJkK7.js → NewRolePage-B0Y5MrTu.js} +4 -4
- 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
- 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
- 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
- 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
- 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
- package/dist/{ProfilePage-DGEsIycR.js → ProfilePage-CMy2Dkr2.js} +17 -17
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B3BnYg1x.js → RecordHeader.vue_vue_type_script_setup_true_lang-D4PcZnbo.js} +2 -2
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-1iZtj3rh.js → ResourcePage.vue_vue_type_script_setup_true_lang-CpGwm2tv.js} +4 -4
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-BslSDDiM.js → RoleEditor.vue_vue_type_script_setup_true_lang-CMo8PrO7.js} +12 -12
- package/dist/{RolePage-C08ZUqw1.js → RolePage-DGFISfM1.js} +13 -13
- package/dist/{RolesPage-FOuY1VKg.js → RolesPage-Bq9EVB_3.js} +9 -9
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CodyVezo.js → SectionList.vue_vue_type_script_setup_true_lang-BdJ11lZo.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-DCTFxfPB.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CnzECivO.js} +6 -6
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-CLR6EvzO.js → SegmentedField.vue_vue_type_script_setup_true_lang-D3IZil4q.js} +2 -2
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js → SelectField.vue_vue_type_script_setup_true_lang-DxCEwED6.js} +6 -6
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CDr4WNIb.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-DtVXUOdP.js} +8 -8
- package/dist/{ServiceAccountRecord-kWwIQGZb.js → ServiceAccountRecord-Dc7Gn52W.js} +18 -18
- package/dist/{ServiceAccountsList-CKy9_YHP.js → ServiceAccountsList-DBUFeka-.js} +10 -10
- package/dist/{Sessions-BDc8gdYH.js → Sessions-BMmqYZrJ.js} +7 -7
- package/dist/{SettingsPage-t-8kmFVT.js → SettingsPage-4Dolsr0t.js} +18 -18
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BVU5yzXe.js +163 -0
- package/dist/{SignIn-CqtkvtCZ.js → SignIn-uFn1ZWG8.js} +8 -8
- package/dist/{SignInPage-DcdNKZIb.js → SignInPage-DouCg9aD.js} +6 -6
- package/dist/{SignIns-D4-nGu0B.js → SignIns-CqN5UNmh.js} +5 -5
- package/dist/SortableList.vue_vue_type_script_setup_true_lang-D2-5Z_jO.js +112 -0
- package/dist/{StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js → StatusLine.vue_vue_type_script_setup_true_lang-DBkQueB0.js} +1 -1
- package/dist/{SwipeActions.vue_vue_type_script_setup_true_lang-D8SiC0G7.js → SwipeActions.vue_vue_type_script_setup_true_lang-DUjUWq3G.js} +1 -1
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-CLtcuofe.js → SwitchField.vue_vue_type_script_setup_true_lang-CTMjlNid.js} +2 -2
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-7CJto6Mp.js +169 -0
- 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
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-YxUlNHSk.js → TextareaField.vue_vue_type_script_setup_true_lang-Cj0LKDdo.js} +2 -2
- 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
- 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
- package/dist/{UserRecord-CwZCr9Im.js → UserRecord-CH5oNRLg.js} +10 -10
- package/dist/{UsersList-Cn19sFgv.js → UsersList-BmxWpt9h.js} +3 -3
- package/dist/{ViewTabs.vue_vue_type_script_setup_true_lang-BjdDXE3T.js → ViewTabs.vue_vue_type_script_setup_true_lang-BKI5DGuS.js} +1 -1
- package/dist/access/index.js +7 -7
- package/dist/app/index.js +2 -2
- package/dist/{application-CDSweJb9.js → application-C5fZyCB9.js} +8 -8
- package/dist/{back-LcLlFodC.js → back-CeozxCgQ.js} +2 -2
- package/dist/button/index.js +1 -1
- package/dist/characteristics/CharacteristicsPage.vue.d.ts +2 -0
- package/dist/characteristics/DeleteDialog.vue.d.ts +22 -0
- package/dist/characteristics/ItemSheet.vue.d.ts +25 -0
- package/dist/characteristics/access.d.ts +3 -0
- package/dist/characteristics/api.d.ts +23 -0
- package/dist/characteristics/context.d.ts +12 -0
- package/dist/characteristics/feature.d.ts +27 -0
- package/dist/characteristics/index.d.ts +10 -0
- package/dist/characteristics/index.js +617 -0
- package/dist/characteristics/model.d.ts +34 -0
- package/dist/characteristics/routes.d.ts +13 -0
- package/dist/collection/CollectionTree.vue.d.ts +51 -0
- package/dist/collection/CollectionTreeBranch.vue.d.ts +12 -0
- package/dist/collection/FileExplorer.vue.d.ts +53 -0
- package/dist/collection/RowMore.vue.d.ts +11 -0
- package/dist/collection/explorer.d.ts +11 -0
- package/dist/collection/index.d.ts +5 -0
- package/dist/collection/index.js +431 -158
- package/dist/collection/tree.d.ts +64 -0
- package/dist/content/DiffView.vue.d.ts +22 -0
- package/dist/content/PreviewFrame.vue.d.ts +46 -0
- package/dist/content/diff.d.ts +27 -0
- package/dist/content/index.d.ts +4 -0
- package/dist/content/index.js +552 -218
- package/dist/content/previewFrame.d.ts +50 -0
- package/dist/{contributions-B0x5x5xD.js → contributions-BSmIRPg1.js} +1 -1
- package/dist/controls/SortableList.vue.d.ts +32 -0
- package/dist/controls/Tabs.vue.d.ts +2 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +18 -16
- package/dist/form/CharacteristicField.vue.d.ts +36 -0
- package/dist/form/CodeEditor.vue.d.ts +61 -0
- package/dist/form/I18nField.vue.d.ts +1 -1
- package/dist/form/MarkerList.vue.d.ts +20 -0
- package/dist/form/TextareaField.vue.d.ts +1 -1
- package/dist/form/index.d.ts +3 -0
- package/dist/form/index.js +1769 -1805
- package/dist/{guards-CNJ0ATVC.js → guards-BP9x7CLF.js} +1 -1
- package/dist/i18n/index.js +46 -46
- package/dist/icon/core.d.ts +6 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/index.js +3 -3
- package/dist/identity/profile/EmailChangeDialog.vue.d.ts +2 -2
- package/dist/incidents/index.js +1 -1
- package/dist/{index-SLJWm40T.js → index-4wyfEeIw.js} +9 -9
- package/dist/{index-BA2w8uwD.js → index-C_ZVaTkR.js} +27 -27
- package/dist/{index-1HS7O2-e.js → index-OVbtHAtG.js} +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/Sheet.vue.d.ts +13 -0
- package/dist/modal/TabbedSheet.vue.d.ts +46 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +123 -41
- package/dist/modules/characteristics/entities.d.ts +67 -0
- package/dist/modules/characteristics/routes.d.ts +55 -0
- package/dist/modules/characteristics/schemas.d.ts +50 -0
- package/dist/modules/identity/entities.d.ts +1 -0
- package/dist/navigation-C05vGEN8.js +55 -0
- package/dist/{neighbors-Dg_LU9ry.js → neighbors-BqfO6zf3.js} +2 -2
- package/dist/notifications/index.js +1 -1
- package/dist/onboarding/index.js +2 -2
- package/dist/{options-mOOX6JSS.js → options-DDCG86OV.js} +2 -2
- package/dist/overlay/index.js +4 -4
- package/dist/page/SectionNavigator.vue.d.ts +1 -1
- package/dist/page/SplitPane.vue.d.ts +54 -0
- package/dist/page/WorkbenchPage.vue.d.ts +72 -0
- package/dist/page/index.d.ts +2 -0
- package/dist/page/index.js +343 -104
- package/dist/phone/index.js +3 -3
- package/dist/platform/index.js +3 -3
- package/dist/platform/navigation.d.ts +10 -0
- package/dist/{platform-DU9QFts8.js → platform-YWfOO7b2.js} +94 -88
- package/dist/pwa/index.js +3 -3
- package/dist/resource/index.js +1 -1
- package/dist/{resources-BZLlAtoS.js → resources-DkI60fHL.js} +1 -1
- package/dist/router/index.js +4 -4
- package/dist/router/navigation.d.ts +2 -0
- package/dist/routes-DC8BWFz8.js +251 -0
- package/dist/{rowLayout-PIuD7MGo.js → rowLayout-zd3Yw6fO.js} +34 -33
- package/dist/{sectionIndex-BS0ic5W7.js → sectionIndex-CSr457Lb.js} +2 -2
- package/dist/{sections-BpiRLntE.js → sections-DXso1JSV.js} +2 -2
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- package/dist/shell/index.js +522 -501
- package/dist/shell/navigationGroups.d.ts +4 -1
- package/dist/state/index.js +8 -8
- package/dist/{state-z1iPF1DT.js → state-DqCZdet7.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{suggestions-DeMgs_ki.js → suggestions-DZ3B5RVH.js} +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/{useCommand-DQKvro1n.js → useCommand-DerEnzIW.js} +4 -4
- package/dist/{useGroupSheet-CRw3MUmX.js → useGroupSheet-B9TCHIKH.js} +5 -5
- package/dist/{usePreferences-DB29UTFD.js → usePreferences-D38x73re.js} +1 -1
- package/dist/{useRecordDialog-0azHxxvm.js → useRecordDialog-DX97ivZD.js} +1 -1
- package/dist/{useResourceForm-zVuWerSn.js → useResourceForm-D8T1snBQ.js} +1 -1
- package/dist/{useTypedEntry-BsMV66Yc.js → useTypedEntry-CTkgM29Y.js} +2 -2
- package/package.json +6 -2
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BG8HUNfs.js +0 -145
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-tpkGp98F.js +0 -155
- package/dist/navigation-d-JAPBGA.js +0 -53
package/dist/collection/index.js
CHANGED
|
@@ -1,133 +1,140 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { D as
|
|
3
|
-
import { u as
|
|
4
|
-
import { a as
|
|
5
|
-
import { L as
|
|
6
|
-
import { a as
|
|
7
|
-
import { r as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { _ as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
24
|
-
index:
|
|
25
|
-
store:
|
|
26
|
-
delete:
|
|
27
|
-
},
|
|
28
|
-
function
|
|
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(
|
|
31
|
-
return (await
|
|
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(
|
|
34
|
-
const
|
|
35
|
-
return
|
|
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(
|
|
38
|
-
await
|
|
44
|
+
async remove(n, t) {
|
|
45
|
+
await l.request(B.delete, { id: Number(t) });
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
48
|
}
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
let
|
|
47
|
-
return
|
|
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(
|
|
51
|
-
return [...
|
|
57
|
+
async list(u) {
|
|
58
|
+
return [...i(u)];
|
|
52
59
|
},
|
|
53
|
-
async save(
|
|
54
|
-
const
|
|
55
|
-
return
|
|
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(
|
|
58
|
-
const f =
|
|
59
|
-
|
|
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
|
|
70
|
+
const he = {
|
|
64
71
|
key: 0,
|
|
65
72
|
class: "flex items-center justify-center gap-1",
|
|
66
73
|
"data-test": "row-actions"
|
|
67
|
-
},
|
|
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(
|
|
74
|
-
const
|
|
75
|
-
return (
|
|
76
|
-
(
|
|
77
|
-
key:
|
|
78
|
-
text:
|
|
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:
|
|
82
|
-
|
|
88
|
+
default: R(() => [
|
|
89
|
+
a.href && !n.disabled ? (r(), c("a", {
|
|
83
90
|
key: 0,
|
|
84
|
-
href:
|
|
85
|
-
target:
|
|
86
|
-
rel:
|
|
87
|
-
"aria-label":
|
|
88
|
-
"data-action":
|
|
89
|
-
class:
|
|
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
|
-
|
|
92
|
-
name:
|
|
98
|
+
S(b(U), {
|
|
99
|
+
name: a.icon,
|
|
93
100
|
size: 18
|
|
94
101
|
}, null, 8, ["name"])
|
|
95
|
-
], 10,
|
|
102
|
+
], 10, ge)) : (r(), c("button", {
|
|
96
103
|
key: 1,
|
|
97
104
|
type: "button",
|
|
98
|
-
"aria-label":
|
|
99
|
-
"data-action":
|
|
100
|
-
disabled:
|
|
101
|
-
class:
|
|
102
|
-
onClick: (f) =>
|
|
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
|
-
|
|
105
|
-
name:
|
|
111
|
+
S(b(U), {
|
|
112
|
+
name: a.icon,
|
|
106
113
|
size: 18
|
|
107
114
|
}, null, 8, ["name"])
|
|
108
|
-
], 10,
|
|
115
|
+
], 10, xe))
|
|
109
116
|
]),
|
|
110
117
|
_: 2
|
|
111
118
|
}, 1032, ["text"]))), 128))
|
|
112
|
-
])) :
|
|
119
|
+
])) : E("", !0);
|
|
113
120
|
}
|
|
114
|
-
}),
|
|
115
|
-
function
|
|
116
|
-
return
|
|
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
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
121
|
-
if (typeof
|
|
122
|
-
const
|
|
123
|
-
return typeof
|
|
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(
|
|
132
|
+
return String(l);
|
|
126
133
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
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
|
|
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(
|
|
149
|
-
const
|
|
150
|
-
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:
|
|
153
|
-
key: (
|
|
154
|
-
query: { sorts:
|
|
155
|
-
}),
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
158
|
-
switch (
|
|
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 { ...
|
|
167
|
+
return { ...m, kind: "number" };
|
|
161
168
|
case "date":
|
|
162
|
-
return { ...
|
|
169
|
+
return { ...m, kind: "timestamp", precision: "date" };
|
|
163
170
|
case "datetime":
|
|
164
|
-
return { ...
|
|
171
|
+
return { ...m, kind: "timestamp", precision: "dateTime" };
|
|
165
172
|
case "boolean":
|
|
166
|
-
return { ...
|
|
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 { ...
|
|
175
|
+
return { ...m, kind: "badge", tone: () => "neutral", text: (s) => F(o, s[o.key]) };
|
|
169
176
|
case "text":
|
|
170
|
-
return
|
|
177
|
+
return o.translatable ? { ...m, kind: "custom" } : { ...m, kind: "text" };
|
|
171
178
|
default:
|
|
172
|
-
return { ...
|
|
179
|
+
return { ...m, kind: "custom" };
|
|
173
180
|
}
|
|
174
|
-
})),
|
|
181
|
+
})), P = se(v, {
|
|
175
182
|
columns: A,
|
|
176
|
-
filters:
|
|
177
|
-
state:
|
|
178
|
-
...
|
|
179
|
-
}),
|
|
180
|
-
return (
|
|
181
|
-
collection:
|
|
182
|
-
title:
|
|
183
|
-
description:
|
|
184
|
-
icon:
|
|
185
|
-
actions:
|
|
186
|
-
"row-actions":
|
|
187
|
-
},
|
|
188
|
-
g(
|
|
189
|
-
name:
|
|
190
|
-
fn:
|
|
191
|
-
|
|
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(
|
|
195
|
-
name:
|
|
196
|
-
fn:
|
|
197
|
-
(
|
|
198
|
-
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
|
-
|
|
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:
|
|
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,
|
|
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
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
};
|