@wssto2/vue-core 0.9.4 → 0.10.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 +24 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js +87 -0
- package/dist/Activity-CeAG0ZtJ.js +169 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-DdJOodn8.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js} +147 -159
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-BdeOKqz_.js → AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js} +1 -1
- package/dist/BottomDockPortal.vue_vue_type_script_setup_true_lang-DmwR-2SP.js +17 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js +123 -0
- package/dist/Changes-B9-zpDxG.js +69 -0
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DHcekGNn.js → CollectionPage.vue_vue_type_script_setup_true_lang-Cn0YOWJF.js} +19 -18
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-8kBsNRuq.js → DataTable.vue_vue_type_script_setup_true_lang-BQRG8bpH.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-BhKdCVFn.js → DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js} +1 -1
- package/dist/{DeadLetters-Bb5pPlOY.js → DeadLetters-BP03yC4R.js} +5 -6
- package/dist/DrawnCheck.vue_vue_type_script_setup_true_lang-9DzDJlIA.js +38 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +427 -0
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-aaNnMIOi.js → FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js} +2 -2
- package/dist/{General-BAG7S6wV.js → General-BDmCJr3H.js} +35 -38
- package/dist/{IncidentRecord-D8aOpNHo.js → IncidentRecord-DEhl6AyA.js} +14 -15
- package/dist/{IncidentsList-C0cFl0Db.js → IncidentsList-COgRPdk3.js} +3 -3
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-BlHhdmMy.js → Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js} +9 -8
- package/dist/{NewRolePage-C6Iu-EQJ.js → NewRolePage-DhGFwvk3.js} +4 -4
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-TGGAq8J-.js → NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js} +1 -1
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-qz1tmYpF.js → PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js} +56 -56
- package/dist/ProfilePage-BQCK2w8R.js +684 -0
- package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-DrOm8k--.js +30 -0
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B9mN7UxZ.js → RecordHeader.vue_vue_type_script_setup_true_lang-DqGc3Jyo.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Cw8mGf_B.js → ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js} +3 -3
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CJPvOVDV.js → RoleEditor.vue_vue_type_script_setup_true_lang-C0FIotFA.js} +11 -12
- package/dist/{RolePage-Dj_ocMnM.js → RolePage-DaNv049g.js} +10 -10
- package/dist/{RolesPage-PXrs4O-1.js → RolesPage-6hlzJes_.js} +6 -6
- package/dist/SearchInput.vue_vue_type_script_setup_true_lang-w4eAqyZ9.js +32 -0
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CtdF1zuv.js → SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.js} +1 -1
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-B5ove3rM.js → SectionNavigator.vue_vue_type_script_setup_true_lang-Dh3sXUt_.js} +2 -2
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-ChfDFAA2.js → SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js} +1 -1
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BP8nAQwo.js → SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js} +3 -3
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-aWkKwxNe.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C0OIBrSp.js} +20 -20
- package/dist/{ServiceAccountRecord-bxX9yQkC.js → ServiceAccountRecord-gtlhYaAz.js} +37 -37
- package/dist/{ServiceAccountsList-BXE6htxk.js → ServiceAccountsList-BM7GGcvw.js} +33 -33
- package/dist/{Sessions--Gvc0kxw.js → Sessions-BCDJYuV2.js} +23 -24
- package/dist/{SettingsPage-DzDC7gD-.js → SettingsPage-DUhMsYBf.js} +27 -30
- package/dist/{SignIn-CTI_699e.js → SignIn-4D7WohI8.js} +9 -10
- package/dist/{SignInPage-HKC1bm2E.js → SignInPage-B6B-34GG.js} +4 -4
- package/dist/SignIns-CFoe4hpX.js +64 -0
- package/dist/StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js +56 -0
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-BMA2YXTZ.js → SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js} +1 -1
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-BFVsqcBX.js → TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js} +2 -2
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-Dyh4Hhyl.js → TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js} +1 -1
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-gGFfQLuK.js → TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js} +1 -1
- package/dist/UserRecord-Cd1TCpJZ.js +202 -0
- package/dist/UsersList-GJU5-CTG.js +74 -0
- package/dist/access/index.js +4 -4
- package/dist/app/index.js +1 -1
- package/dist/{application-BmXW6iW_.js → application-CuzT-0vW.js} +1 -1
- package/dist/button/index.js +6 -5
- package/dist/collection/PickerModal.vue.d.ts +26 -0
- package/dist/collection/definition.d.ts +6 -6
- package/dist/collection/http.d.ts +6 -6
- package/dist/collection/index.d.ts +5 -1
- package/dist/collection/index.js +144 -85
- package/dist/collection/picker.d.ts +39 -0
- package/dist/collection/types.d.ts +9 -4
- package/dist/collection/useCollection.d.ts +5 -5
- package/dist/content/ActivityStream.vue.d.ts +62 -0
- package/dist/content/CommentThread.vue.d.ts +52 -0
- package/dist/content/Composer.vue.d.ts +36 -0
- package/dist/content/index.d.ts +3 -0
- package/dist/content/index.js +321 -56
- package/dist/controls/index.js +28 -54
- package/dist/form/index.js +132 -134
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +10 -6
- package/dist/format/slug.d.ts +8 -0
- package/dist/highlight-DnYhLXnu.js +9 -0
- package/dist/http-Dm0uXY9O.js +95 -0
- package/dist/i18n/index.d.ts +14 -0
- package/dist/i18n/index.js +87 -63
- package/dist/i18n/plural.d.ts +23 -0
- package/dist/identity/embed.d.ts +39 -0
- package/dist/identity/index.d.ts +20 -0
- package/dist/identity/index.js +40 -21
- package/dist/identity/session.d.ts +9 -1
- package/dist/identity/shared/ChangeFeed.vue.d.ts +6 -3
- package/dist/identity/users/context.d.ts +8 -0
- package/dist/identity/users/dialogs.d.ts +10 -0
- package/dist/identity/users/ext.d.ts +8 -0
- package/dist/identity/users/feature.d.ts +10 -0
- package/dist/identity/users/list.d.ts +1 -1
- package/dist/identity/users/personSections.d.ts +1 -1
- package/dist/identity/users/replace.d.ts +45 -0
- package/dist/identity/users/words.d.ts +28 -0
- package/dist/incidents/api.d.ts +1 -1
- package/dist/incidents/index.js +1 -1
- package/dist/{index-Dz0LkLM8.js → index-CTkG-acm.js} +4 -4
- package/dist/{index-Dm-sdJJr.js → index-DUs7WSz-.js} +31 -32
- package/dist/index-pJ_eRg80.js +1257 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/index.js +3 -3
- package/dist/modules/identity/entities.d.ts +7 -0
- package/dist/modules/identity/routes.d.ts +8 -4
- package/dist/modules/identity/schemas.d.ts +16 -0
- package/dist/{neighbors-DVfU9T0o.js → neighbors-OyvGi233.js} +2 -2
- package/dist/notifications/deadletters/list.d.ts +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{options-QuOkMKVZ.js → options-B48UiYsG.js} +2 -2
- package/dist/page/index.js +11 -11
- package/dist/phone/index.js +1 -1
- package/dist/pwa/AndroidInstallBanner.vue.d.ts +18 -0
- package/dist/pwa/InstallQrSheet.vue.d.ts +21 -0
- package/dist/pwa/IosInstallGuide.vue.d.ts +19 -0
- package/dist/pwa/QrCode.vue.d.ts +16 -0
- package/dist/pwa/index.d.ts +4 -0
- package/dist/pwa/index.js +244 -24
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-CT8vWYgI.js → rowLayout-Il4psyXN.js} +183 -188
- package/dist/shell/DarkModeRow.vue.d.ts +15 -0
- package/dist/shell/OfflineNotice.vue.d.ts +2 -0
- package/dist/shell/QuickSearchButton.vue.d.ts +2 -0
- package/dist/shell/QuickSearchPalette.vue.d.ts +12 -0
- package/dist/shell/darkMode.d.ts +26 -0
- package/dist/shell/index.d.ts +10 -0
- package/dist/shell/index.js +963 -580
- package/dist/shell/offlineNotice.d.ts +3 -0
- package/dist/shell/quickSearch.d.ts +14 -0
- package/dist/shell/quickSearchControl.d.ts +66 -0
- package/dist/shortcut-DUR6yPWA.js +93 -0
- package/dist/state/BackgroundTaskCapsule.vue.d.ts +18 -0
- package/dist/state/backgroundTasks.d.ts +58 -0
- package/dist/state/index.d.ts +4 -0
- package/dist/state/index.js +194 -80
- package/dist/state/useCountUp.d.ts +9 -0
- package/dist/styles.css +1 -1
- package/dist/{suggestions-BVQhoXzS.js → suggestions-q_v3M7G6.js} +1 -1
- package/dist/testing/collection.d.ts +1 -1
- package/dist/{useCommand-Dc8Lgs9h.js → useCommand-Ch_nx1AQ.js} +4 -4
- package/dist/{useGroupSheet-DQ6cVG-z.js → useGroupSheet-CPjHydQV.js} +14 -15
- package/dist/{useRecordDialog-BTsbHY38.js → useRecordDialog-DdkauXnU.js} +1 -1
- package/dist/{useResourceForm-DJ4Q75pq.js → useResourceForm-Dl6YFYyz.js} +1 -1
- package/package.json +3 -2
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-Cg1lhpcA.js +0 -45
- package/dist/Activity-29hsZ28j.js +0 -156
- package/dist/Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js +0 -192
- package/dist/Changes-Dxjdkd_5.js +0 -129
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-CIggKPtq.js +0 -295
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-B37dixvJ.js +0 -137
- package/dist/PageBar.vue_vue_type_script_setup_true_lang-qI94fjJv.js +0 -47
- package/dist/ProfilePage-BnohZIEg.js +0 -764
- package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js +0 -64
- package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +0 -23
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-Cnyt5V8T.js +0 -133
- package/dist/SignIns-BcqBgWgN.js +0 -121
- package/dist/UserRecord-CtUPpbCt.js +0 -267
- package/dist/UsersList-BMkIgIg8.js +0 -155
- package/dist/definition-C7QuyV3i.js +0 -54
- package/dist/fieldMessages-B6GHgi40.js +0 -25
- package/dist/http-nz92KjdS.js +0 -42
- package/dist/index-CdtofdcJ.js +0 -501
- package/dist/languages-BShG9LpE.js +0 -10
- package/dist/signInEvents-DWShrJox.js +0 -30
- package/dist/status-BRA14qwX.js +0 -34
- package/dist/useWaitStatus-fsacMl4W.js +0 -24
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { defineComponent as S, useSlots as w, useTemplateRef as E, computed as u, openBlock as f, createBlock as I, unref as N, withCtx as R, createElementVNode as L, mergeProps as b, createVNode as p, createElementBlock as x, h as v } from "vue";
|
|
2
|
+
import { RouterLink as P } from "vue-router";
|
|
3
|
+
import { _ as m } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
4
|
+
import { b as V, u as j } from "./shortcut-DUR6yPWA.js";
|
|
5
|
+
const D = ["href", "tabindex", "onClick"], K = ["href", "tabindex"], M = ["type", "disabled"], $ = /* @__PURE__ */ S({
|
|
6
|
+
__name: "Button",
|
|
7
|
+
props: {
|
|
8
|
+
prominence: { default: "standard" },
|
|
9
|
+
tone: { default: void 0 },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
icon: { default: void 0 },
|
|
12
|
+
trailingIcon: { default: void 0 },
|
|
13
|
+
to: { default: void 0 },
|
|
14
|
+
href: { default: void 0 },
|
|
15
|
+
type: { default: "button" },
|
|
16
|
+
disabled: { type: Boolean, default: !1 },
|
|
17
|
+
processing: { type: Boolean, default: !1 },
|
|
18
|
+
keyboardShortcut: { default: void 0 }
|
|
19
|
+
},
|
|
20
|
+
emits: ["click"],
|
|
21
|
+
setup(h, { emit: k }) {
|
|
22
|
+
const e = h, g = k, y = w(), s = E("element"), _ = V(() => e.processing), t = u(() => e.disabled || e.processing);
|
|
23
|
+
function r(o, n) {
|
|
24
|
+
if (t.value) {
|
|
25
|
+
o.preventDefault();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
g("click", o), n?.(o);
|
|
29
|
+
}
|
|
30
|
+
j(() => e.keyboardShortcut, (o) => {
|
|
31
|
+
if (t.value || s.value?.closest("[inert]")) return !1;
|
|
32
|
+
g("click", o);
|
|
33
|
+
});
|
|
34
|
+
const C = {
|
|
35
|
+
primary: {
|
|
36
|
+
default: "bg-tint text-content-on-tint hover:bg-tint/90 active:bg-tint/80",
|
|
37
|
+
critical: "bg-status-danger-solid text-white hover:brightness-110"
|
|
38
|
+
},
|
|
39
|
+
secondary: {
|
|
40
|
+
default: "bg-tint-soft text-content-link hover:brightness-95 dark:hover:brightness-125",
|
|
41
|
+
critical: "bg-status-danger-surface text-content-destructive hover:brightness-95 dark:hover:brightness-125"
|
|
42
|
+
},
|
|
43
|
+
standard: {
|
|
44
|
+
default: "bg-fill text-content-strong hover:bg-fill-strong",
|
|
45
|
+
critical: "bg-fill text-content-destructive hover:bg-fill-strong"
|
|
46
|
+
},
|
|
47
|
+
plain: {
|
|
48
|
+
default: "bg-transparent text-content-link hover:bg-tint-soft",
|
|
49
|
+
critical: "bg-transparent text-content-destructive hover:bg-status-danger-surface"
|
|
50
|
+
},
|
|
51
|
+
link: {
|
|
52
|
+
default: "bg-transparent text-content-link hover:underline",
|
|
53
|
+
critical: "bg-transparent text-content-destructive hover:underline"
|
|
54
|
+
}
|
|
55
|
+
}, a = {
|
|
56
|
+
xs: { box: "min-h-6 px-2.5 py-0.5 text-xs gap-1", icon: 12 },
|
|
57
|
+
sm: { box: "min-h-8 px-3 py-1 text-xs gap-1.5", icon: 14 },
|
|
58
|
+
md: { box: "min-h-9 px-4 py-1.5 text-sm gap-2", icon: 16 },
|
|
59
|
+
lg: { box: "min-h-11 px-5 py-2 text-base gap-2", icon: 20 },
|
|
60
|
+
xl: { box: "min-h-12 px-6 py-2.5 text-base gap-2.5", icon: 22 }
|
|
61
|
+
}, l = u(() => [
|
|
62
|
+
"hit-target flex cursor-pointer select-none items-center justify-center rounded-button text-center font-semibold",
|
|
63
|
+
"transition duration-motion-fast ease-motion-standard",
|
|
64
|
+
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
|
|
65
|
+
C[e.prominence][e.tone ?? "default"],
|
|
66
|
+
a[e.size].box,
|
|
67
|
+
// aria-disabled covers links, which have no `disabled` attribute.
|
|
68
|
+
e.processing && !e.disabled ? "cursor-progress" : "disabled:cursor-not-allowed disabled:opacity-45 aria-disabled:cursor-not-allowed aria-disabled:opacity-45"
|
|
69
|
+
]), c = u(() => ({
|
|
70
|
+
"aria-disabled": t.value || void 0,
|
|
71
|
+
"aria-busy": e.processing || void 0
|
|
72
|
+
})), d = () => [
|
|
73
|
+
e.processing && _.visible.value ? v(m, { name: "loader4Line", size: a[e.size].icon, class: "animate-spin", "data-test": "button-spinner" }) : e.icon ? v(m, { name: e.icon, size: a[e.size].icon }) : null,
|
|
74
|
+
y.default?.(),
|
|
75
|
+
e.trailingIcon ? v(m, { name: e.trailingIcon, size: a[e.size].icon }) : null
|
|
76
|
+
];
|
|
77
|
+
return (o, n) => e.to !== void 0 ? (f(), I(N(P), {
|
|
78
|
+
key: 0,
|
|
79
|
+
to: e.to,
|
|
80
|
+
custom: ""
|
|
81
|
+
}, {
|
|
82
|
+
default: R(({ href: i, navigate: z }) => [
|
|
83
|
+
L("a", b({
|
|
84
|
+
ref_key: "element",
|
|
85
|
+
ref: s,
|
|
86
|
+
href: t.value ? void 0 : i,
|
|
87
|
+
class: l.value
|
|
88
|
+
}, c.value, {
|
|
89
|
+
tabindex: t.value ? -1 : void 0,
|
|
90
|
+
onClick: (B) => r(B, z)
|
|
91
|
+
}), [
|
|
92
|
+
p(d)
|
|
93
|
+
], 16, D)
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["to"])) : e.href !== void 0 ? (f(), x("a", b({
|
|
97
|
+
key: 1,
|
|
98
|
+
ref_key: "element",
|
|
99
|
+
ref: s,
|
|
100
|
+
href: t.value ? void 0 : e.href,
|
|
101
|
+
class: l.value
|
|
102
|
+
}, c.value, {
|
|
103
|
+
tabindex: t.value ? -1 : void 0,
|
|
104
|
+
onClick: n[0] || (n[0] = (i) => r(i))
|
|
105
|
+
}), [
|
|
106
|
+
p(d)
|
|
107
|
+
], 16, K)) : (f(), x("button", b({
|
|
108
|
+
key: 2,
|
|
109
|
+
ref_key: "element",
|
|
110
|
+
ref: s,
|
|
111
|
+
type: e.type,
|
|
112
|
+
class: l.value,
|
|
113
|
+
disabled: t.value
|
|
114
|
+
}, c.value, {
|
|
115
|
+
onClick: n[1] || (n[1] = (i) => r(i))
|
|
116
|
+
}), [
|
|
117
|
+
p(d)
|
|
118
|
+
], 16, M));
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
export {
|
|
122
|
+
$ as _
|
|
123
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as h, ref as m, watch as p, openBlock as l, createElementBlock as d, createVNode as c, unref as t, withCtx as y, toDisplayString as x, createBlock as f, createCommentVNode as C } from "vue";
|
|
2
|
+
import { useI18n as k } from "vue-i18n";
|
|
3
|
+
import { P as $, g as b, i as V, n as R, m as E } from "./index-pJ_eRg80.js";
|
|
4
|
+
import { u as N } from "./platform-BQOX_Ntw.js";
|
|
5
|
+
import { b as B } from "./routeResource-DlTsGTg_.js";
|
|
6
|
+
import { _ as P } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js";
|
|
7
|
+
import { u as S } from "./useLoad-M7V-AVwR.js";
|
|
8
|
+
import { _ as U } from "./ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js";
|
|
9
|
+
import { _ as I } from "./ViewTabs.vue_vue_type_script_setup_true_lang-BjdDXE3T.js";
|
|
10
|
+
const W = {
|
|
11
|
+
class: "flex min-w-0 flex-col gap-group-gap",
|
|
12
|
+
"data-person-changes": ""
|
|
13
|
+
}, q = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "px-row-inset py-4 text-body text-content-muted",
|
|
16
|
+
"data-changes-empty": ""
|
|
17
|
+
}, K = /* @__PURE__ */ h({
|
|
18
|
+
__name: "Changes",
|
|
19
|
+
setup(A) {
|
|
20
|
+
const g = ["all", "access", "details"], { t: a } = k(), { http: _ } = N(), i = B($), { changeWords: v } = b(), r = m("all"), o = m(1), n = S(
|
|
21
|
+
async ({ signal: u }) => {
|
|
22
|
+
const s = i.id.value;
|
|
23
|
+
return s === null ? null : (await _.request(V.usersChanges, { id: s, view: r.value, page: o.value, per_page: 20 }, { signal: u })).data;
|
|
24
|
+
},
|
|
25
|
+
{ watch: () => i.id.value }
|
|
26
|
+
);
|
|
27
|
+
return p(r, () => {
|
|
28
|
+
o.value = 1, n.reload();
|
|
29
|
+
}), p(o, () => void n.reload()), (u, s) => (l(), d("div", W, [
|
|
30
|
+
c(U, {
|
|
31
|
+
title: t(a)("core.users.sections.changes"),
|
|
32
|
+
description: t(a)("core.users.intro.changes", { name: t(i).data.value?.name ?? "" })
|
|
33
|
+
}, null, 8, ["title", "description"]),
|
|
34
|
+
c(I, {
|
|
35
|
+
modelValue: r.value,
|
|
36
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => r.value = e),
|
|
37
|
+
views: g,
|
|
38
|
+
counts: t(n).data.value?.meta?.views,
|
|
39
|
+
"label-of": (e) => t(a)(`core.users.changes.views.${e}`),
|
|
40
|
+
label: t(a)("core.users.sections.changes")
|
|
41
|
+
}, null, 8, ["modelValue", "counts", "label-of", "label"]),
|
|
42
|
+
c(t(P), {
|
|
43
|
+
state: t(n).state.value,
|
|
44
|
+
"skeleton-rows": 5,
|
|
45
|
+
"is-empty": () => !1,
|
|
46
|
+
onRetry: s[2] || (s[2] = (e) => t(n).reload())
|
|
47
|
+
}, {
|
|
48
|
+
default: y(({ value: e }) => [
|
|
49
|
+
!e || e.data.length === 0 ? (l(), d("p", q, x(t(a)("core.users.changes.empty")), 1)) : (l(), f(R, {
|
|
50
|
+
key: 1,
|
|
51
|
+
rows: e.data,
|
|
52
|
+
words: t(v)
|
|
53
|
+
}, null, 8, ["rows", "words"])),
|
|
54
|
+
e ? (l(), f(E, {
|
|
55
|
+
key: 2,
|
|
56
|
+
page: o.value,
|
|
57
|
+
"onUpdate:page": s[1] || (s[1] = (w) => o.value = w),
|
|
58
|
+
"last-page": e.last_page,
|
|
59
|
+
total: e.total
|
|
60
|
+
}, null, 8, ["page", "last-page", "total"])) : C("", !0)
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["state"])
|
|
64
|
+
]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
K as default
|
|
69
|
+
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { hasInjectionContext as lt, inject as ot, shallowRef as xe, computed as k, watch as Ve, toValue as Se, ref as ie, getCurrentScope as nt, onScopeDispose as st, defineComponent as be, openBlock as u, createElementBlock as y, createVNode as O, unref as t, createElementVNode as i, toDisplayString as g, Fragment as ee, renderList as le, createCommentVNode as F, createBlock as W, mergeProps as ve, withCtx as q, createTextVNode as G, normalizeClass as ue, useTemplateRef as fe, withModifiers as Ke, withDirectives as Le, vModelText as Fe, nextTick as at, onBeforeUnmount as rt, onMounted as it, renderSlot as ge, useSlots as We, createSlots as Qe, normalizeProps as Xe, guardReactiveProps as Je } from "vue";
|
|
2
2
|
import { routerKey as ct } from "vue-router";
|
|
3
3
|
import { i as qe, a as ut } from "./error-CD7x0Jrz.js";
|
|
4
|
-
import { d as dt } from "./
|
|
4
|
+
import { d as dt } from "./http-Dm0uXY9O.js";
|
|
5
5
|
import { d as Re, o as ft, L as Te, e as je, w as pt, r as vt } from "./state-6KSYsVw0.js";
|
|
6
|
-
import {
|
|
6
|
+
import { _ as mt } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js";
|
|
7
7
|
import { useI18n as he } from "vue-i18n";
|
|
8
|
-
import { _ as ce
|
|
8
|
+
import { _ as ce } from "./Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
|
|
9
9
|
import { _ as Ge } from "./Tabs.vue_vue_type_script_setup_true_lang-tpkGp98F.js";
|
|
10
10
|
import { u as Pe } from "./format-D8KUBmbS.js";
|
|
11
11
|
import { _ as I } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { u as bt, _ as gt } from "./rowLayout-
|
|
12
|
+
import { _ as Ne } from "./Banner.vue_vue_type_script_setup_true_lang-sv0phngk.js";
|
|
13
|
+
import { _ as Ae } from "./EmptyState.vue_vue_type_script_setup_true_lang-DbZiO2RF.js";
|
|
14
|
+
import { u as bt, _ as gt } from "./rowLayout-Il4psyXN.js";
|
|
15
|
+
import { u as Ee } from "./shortcut-DUR6yPWA.js";
|
|
15
16
|
import { _ as Ye } from "./Menu.vue_vue_type_script_setup_true_lang-wKc9gdCn.js";
|
|
16
17
|
import { _ as Ze } from "./Popover.vue_vue_type_script_setup_true_lang-C20Hf3Hl.js";
|
|
17
18
|
import { _ as we } from "./ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js";
|
|
18
|
-
import { _ as ht } from "./NumberField.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { _ as yt } from "./SelectField.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as ht } from "./NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js";
|
|
20
|
+
import { _ as yt } from "./SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js";
|
|
20
21
|
import { a as _t } from "./mediaQuery-CygcXmFW.js";
|
|
21
22
|
import { _ as xt } from "./Sheet.vue_vue_type_script_setup_true_lang-B91aRD_y.js";
|
|
22
23
|
import { t as ke } from "./toast-CqSDTWRX.js";
|
|
@@ -82,7 +83,7 @@ function St(s, e, n, f) {
|
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
const Oe = (s) => s.status === "loaded" || s.status === "refreshing" || s.status === "stale", Me = (s) => s instanceof Error && s.message !== "" ? s.message : String(s);
|
|
85
|
-
function
|
|
86
|
+
function Bo(s, e) {
|
|
86
87
|
const n = `useCollection("${s.id}")`, f = e.state;
|
|
87
88
|
let a = null, r = "", p = "", d = () => {
|
|
88
89
|
};
|
|
@@ -1123,10 +1124,10 @@ const jt = {
|
|
|
1123
1124
|
n.collection.setFilters(Object.fromEntries(C.map((B) => [B, null])));
|
|
1124
1125
|
}
|
|
1125
1126
|
const Q = fe("panel"), M = fe("panelButton"), Y = (C) => !!C && (typeof C.checkVisibility != "function" || C.checkVisibility());
|
|
1126
|
-
|
|
1127
|
+
Ee({ key: "/", group: "list", label: () => a("core.shortcuts.focus_search") }, () => {
|
|
1127
1128
|
if (!Y(d.value)) return !1;
|
|
1128
1129
|
d.value?.focus(), d.value?.select();
|
|
1129
|
-
}),
|
|
1130
|
+
}), Ee({ key: "f", group: "list", label: () => $.value.length > 0 ? a("core.shortcuts.open_filters") : "" }, () => {
|
|
1130
1131
|
if ($.value.length === 0 || !Y(M.value)) return !1;
|
|
1131
1132
|
Q.value?.present();
|
|
1132
1133
|
});
|
|
@@ -1389,7 +1390,7 @@ const jt = {
|
|
|
1389
1390
|
G(" " + g(t(f)("core.state.refreshing")), 1)
|
|
1390
1391
|
])) : F("", !0),
|
|
1391
1392
|
te.value ? (u(), y("div", vo, [
|
|
1392
|
-
O(t(
|
|
1393
|
+
O(t(Ne), {
|
|
1393
1394
|
tone: "warning",
|
|
1394
1395
|
role: "alert"
|
|
1395
1396
|
}, {
|
|
@@ -1437,7 +1438,7 @@ const jt = {
|
|
|
1437
1438
|
onSort: _[4] || (_[4] = (z) => e.collection.toggleSort(z))
|
|
1438
1439
|
}, Qe({
|
|
1439
1440
|
failed: q(() => [
|
|
1440
|
-
O(t(
|
|
1441
|
+
O(t(Ne), {
|
|
1441
1442
|
tone: "warning",
|
|
1442
1443
|
role: "alert"
|
|
1443
1444
|
}, {
|
|
@@ -1463,7 +1464,7 @@ const jt = {
|
|
|
1463
1464
|
})
|
|
1464
1465
|
]),
|
|
1465
1466
|
empty: q(() => [
|
|
1466
|
-
e.collection.display.value === "empty" && n.empty ? ge(h.$slots, "empty", {}, void 0, void 0, 0) : e.collection.display.value === "empty" && Q.value.length > 0 ? (u(), W(t(
|
|
1467
|
+
e.collection.display.value === "empty" && n.empty ? ge(h.$slots, "empty", {}, void 0, void 0, 0) : e.collection.display.value === "empty" && Q.value.length > 0 ? (u(), W(t(Ae), {
|
|
1467
1468
|
key: 1,
|
|
1468
1469
|
"data-test": "collection-empty-start",
|
|
1469
1470
|
title: t(f)("core.collection.no_data"),
|
|
@@ -1488,7 +1489,7 @@ const jt = {
|
|
|
1488
1489
|
"last-chip": M.value,
|
|
1489
1490
|
onRemove: Y,
|
|
1490
1491
|
onClearAll: de
|
|
1491
|
-
}, null, 8, ["chips", "last-chip"])) : (u(), W(t(
|
|
1492
|
+
}, null, 8, ["chips", "last-chip"])) : (u(), W(t(Ae), {
|
|
1492
1493
|
key: 3,
|
|
1493
1494
|
title: t(f)("core.collection.no_data"),
|
|
1494
1495
|
description: t(f)("core.collection.no_results")
|
|
@@ -1512,7 +1513,7 @@ const jt = {
|
|
|
1512
1513
|
], 2)
|
|
1513
1514
|
], 8, uo));
|
|
1514
1515
|
}
|
|
1515
|
-
}),
|
|
1516
|
+
}), Do = /* @__PURE__ */ be({
|
|
1516
1517
|
__name: "CollectionPage",
|
|
1517
1518
|
props: {
|
|
1518
1519
|
collection: {},
|
|
@@ -1564,7 +1565,7 @@ const jt = {
|
|
|
1564
1565
|
}
|
|
1565
1566
|
});
|
|
1566
1567
|
export {
|
|
1567
|
-
|
|
1568
|
+
Do as _,
|
|
1568
1569
|
ho as a,
|
|
1569
|
-
|
|
1570
|
+
Bo as u
|
|
1570
1571
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, computed as u, useSlots as p, openBlock as w, createElementBlock as y, createVNode as f, unref as k, createSlots as b, renderList as m, withCtx as h, renderSlot as v, normalizeProps as _, guardReactiveProps as g } from "vue";
|
|
2
|
-
import { u as R, _ as L } from "./rowLayout-
|
|
2
|
+
import { u as R, _ as L } from "./rowLayout-Il4psyXN.js";
|
|
3
3
|
const F = ["aria-busy"], V = /* @__PURE__ */ d({
|
|
4
4
|
__name: "DataTable",
|
|
5
5
|
props: {
|
|
@@ -5,7 +5,7 @@ import { u as W } from "./format-D8KUBmbS.js";
|
|
|
5
5
|
import { _ as de } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
6
6
|
import { u as ue } from "./mediaQuery-CygcXmFW.js";
|
|
7
7
|
import { _ as ce } from "./Popover.vue_vue_type_script_setup_true_lang-C20Hf3Hl.js";
|
|
8
|
-
import { e as me, _ as fe, f as pe, b as be } from "./options-
|
|
8
|
+
import { e as me, _ as fe, f as pe, b as be } from "./options-B48UiYsG.js";
|
|
9
9
|
import { e as q, f as j, m as X, g as Z, h as ve, j as ye, u as ke, k as ge, _ as he, l as xe, c as we } from "./useTypedEntry-C_Bk4sI0.js";
|
|
10
10
|
const _e = ["d", "m", "y"];
|
|
11
11
|
function $e(o) {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { defineComponent as B, useTemplateRef as C, computed as y, ref as v, openBlock as D, createBlock as z, unref as r, withCtx as m, createVNode as F, createElementVNode as b, normalizeClass as $, toDisplayString as h } from "vue";
|
|
2
2
|
import { useI18n as q } from "vue-i18n";
|
|
3
3
|
import { a as k } from "./error-CD7x0Jrz.js";
|
|
4
|
-
import { u as V, _ as N } from "./CollectionPage.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as V, _ as N } from "./CollectionPage.vue_vue_type_script_setup_true_lang-Cn0YOWJF.js";
|
|
5
5
|
import { u as P } from "./describeError-B-NMa--w.js";
|
|
6
6
|
import { u as I } from "./format-D8KUBmbS.js";
|
|
7
|
-
import { e as a, R as O } from "./index-
|
|
7
|
+
import { e as a, R as O } from "./index-CTkG-acm.js";
|
|
8
8
|
import { _ as W } from "./AlertDialog.vue_vue_type_script_setup_true_lang-CrFhR9rJ.js";
|
|
9
9
|
import { t as i } from "./toast-CqSDTWRX.js";
|
|
10
10
|
import { u as Y } from "./useLoad-M7V-AVwR.js";
|
|
11
11
|
import { u as j } from "./platform-BQOX_Ntw.js";
|
|
12
|
-
import { d as G } from "./
|
|
13
|
-
import { r as H } from "./http-nz92KjdS.js";
|
|
12
|
+
import { d as G, r as H } from "./http-Dm0uXY9O.js";
|
|
14
13
|
function J(u) {
|
|
15
14
|
return G({
|
|
16
15
|
id: "events.deadletters",
|
|
@@ -24,7 +23,7 @@ function J(u) {
|
|
|
24
23
|
defaults: { pageSize: 25 }
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
|
-
const K = ["title"], M = ["datetime"],
|
|
26
|
+
const K = ["title"], M = ["datetime"], le = /* @__PURE__ */ B({
|
|
28
27
|
__name: "DeadLetters",
|
|
29
28
|
setup(u) {
|
|
30
29
|
const { t: e } = q(), { http: s, access: l } = j(), g = I(), w = P(), f = C("confirm"), L = y(() => [
|
|
@@ -101,5 +100,5 @@ const K = ["title"], M = ["datetime"], ce = /* @__PURE__ */ B({
|
|
|
101
100
|
}
|
|
102
101
|
});
|
|
103
102
|
export {
|
|
104
|
-
|
|
103
|
+
le as default
|
|
105
104
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as o, createElementBlock as t, createCommentVNode as a, createElementVNode as n, normalizeClass as i } from "vue";
|
|
2
|
+
const c = ["width", "height", "stroke-width"], d = {
|
|
3
|
+
key: 0,
|
|
4
|
+
cx: "12",
|
|
5
|
+
cy: "12",
|
|
6
|
+
r: "10",
|
|
7
|
+
class: "[stroke-dasharray:64] [stroke-dashoffset:64] animate-[app-draw_450ms_ease-out_forwards] motion-reduce:animate-none motion-reduce:[stroke-dashoffset:0]"
|
|
8
|
+
}, l = ["d"], f = /* @__PURE__ */ r({
|
|
9
|
+
__name: "DrawnCheck",
|
|
10
|
+
props: {
|
|
11
|
+
size: { default: 16 },
|
|
12
|
+
circle: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
setup(s) {
|
|
15
|
+
const e = s;
|
|
16
|
+
return (m, _) => (o(), t("svg", {
|
|
17
|
+
width: e.size,
|
|
18
|
+
height: e.size,
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
"stroke-width": e.circle ? 2 : 2.8,
|
|
23
|
+
"stroke-linecap": "round",
|
|
24
|
+
"stroke-linejoin": "round",
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
class: "shrink-0"
|
|
27
|
+
}, [
|
|
28
|
+
e.circle ? (o(), t("circle", d)) : a("", !0),
|
|
29
|
+
n("path", {
|
|
30
|
+
d: e.circle ? "M7.5 12.5l3 3 6-6.5" : "M5 12.5l4.5 4.5L19 7.5",
|
|
31
|
+
class: i(["[stroke-dasharray:24] [stroke-dashoffset:24] motion-reduce:animate-none motion-reduce:[stroke-dashoffset:0]", e.circle ? "animate-[app-draw_300ms_300ms_ease-out_forwards]" : "animate-[app-draw_400ms_50ms_ease-out_forwards]"])
|
|
32
|
+
}, null, 10, l)
|
|
33
|
+
], 8, c));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
f as _
|
|
38
|
+
};
|