@wssto2/vue-core 0.10.0 → 0.11.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 (58) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js +64 -0
  3. package/dist/{Activity-CeAG0ZtJ.js → Activity-CdkJW68R.js} +2 -2
  4. package/dist/{Changes-B9-zpDxG.js → Changes-DxK_QfiB.js} +2 -2
  5. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-Cn0YOWJF.js → CollectionPage.vue_vue_type_script_setup_true_lang-x0jyJ01f.js} +1 -1
  6. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-BQRG8bpH.js → DataTable.vue_vue_type_script_setup_true_lang-C_ZytnW-.js} +1 -1
  7. package/dist/{DeadLetters-BP03yC4R.js → DeadLetters-DnA7LP1w.js} +2 -2
  8. package/dist/{General-BDmCJr3H.js → General-2matxl2Y.js} +23 -21
  9. package/dist/Highlight.vue_vue_type_script_setup_true_lang-DZGBmwcX.js +29 -0
  10. package/dist/{IncidentRecord-DEhl6AyA.js → IncidentRecord-Bt3G4HlX.js} +1 -1
  11. package/dist/{IncidentsList-COgRPdk3.js → IncidentsList-2iwgqp9J.js} +3 -3
  12. package/dist/{ProfilePage-BQCK2w8R.js → ProfilePage-CpuyDBAv.js} +21 -20
  13. package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C0OIBrSp.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-FJbWxME_.js} +2 -2
  14. package/dist/{ServiceAccountRecord-gtlhYaAz.js → ServiceAccountRecord-0-JF5lRx.js} +29 -29
  15. package/dist/{ServiceAccountsList-BM7GGcvw.js → ServiceAccountsList-DcsnOcf-.js} +6 -6
  16. package/dist/{Sessions-BCDJYuV2.js → Sessions-DgWhpk-i.js} +2 -2
  17. package/dist/{SettingsPage-DUhMsYBf.js → SettingsPage-BXPWATYU.js} +5 -4
  18. package/dist/{SignIn-4D7WohI8.js → SignIn-DPoUwHZd.js} +2 -2
  19. package/dist/{SignInPage-B6B-34GG.js → SignInPage-OyrVemro.js} +1 -1
  20. package/dist/{SignIns-CFoe4hpX.js → SignIns-BMDrZVVp.js} +6 -6
  21. package/dist/{UserRecord-Cd1TCpJZ.js → UserRecord-BW-gdCqi.js} +43 -43
  22. package/dist/{UsersList-GJU5-CTG.js → UsersList-B3ZF_1Dj.js} +25 -25
  23. package/dist/app/index.d.ts +1 -0
  24. package/dist/app/index.js +11 -10
  25. package/dist/app/languages.d.ts +8 -0
  26. package/dist/collection/Highlight.vue.d.ts +12 -0
  27. package/dist/collection/index.d.ts +1 -0
  28. package/dist/collection/index.js +18 -17
  29. package/dist/i18n/index.d.ts +1 -0
  30. package/dist/i18n/index.js +6 -4
  31. package/dist/i18n/serverMessages.d.ts +16 -0
  32. package/dist/identity/index.d.ts +2 -1
  33. package/dist/identity/index.js +7 -7
  34. package/dist/identity/users/context.d.ts +3 -0
  35. package/dist/identity/users/feature.d.ts +12 -1
  36. package/dist/identity/users/list.d.ts +12 -1
  37. package/dist/identity/users/personSections.d.ts +14 -5
  38. package/dist/incidents/index.js +1 -1
  39. package/dist/{index-CTkG-acm.js → index-ClJeyW3F.js} +2 -2
  40. package/dist/{index-pJ_eRg80.js → index-Cq9TuOqH.js} +441 -434
  41. package/dist/{index-DUs7WSz-.js → index-kEHY7hcG.js} +2 -2
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/keepAlive-ClGnsIzT.js +55 -0
  45. package/dist/notifications/index.js +1 -1
  46. package/dist/rowLayout-BsKEzEME.js +650 -0
  47. package/dist/serverMessages-B6GHgi40.js +25 -0
  48. package/dist/shell/QuickSearchPalette.vue.d.ts +3 -3
  49. package/dist/shell/index.js +419 -427
  50. package/dist/shell/quickSearchControl.d.ts +8 -5
  51. package/dist/styles.css +1 -1
  52. package/package.json +1 -1
  53. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js +0 -87
  54. package/dist/highlight-DnYhLXnu.js +0 -9
  55. package/dist/identity/fieldMessages.d.ts +0 -15
  56. package/dist/identity/users/languages.d.ts +0 -4
  57. package/dist/keepAlive-z3IRFkQq.js +0 -46
  58. package/dist/rowLayout-Il4psyXN.js +0 -658
@@ -1,5 +1,5 @@
1
- import { defineComponent as O, useTemplateRef as F, ref as N, openBlock as r, createBlock as _, unref as e, withCtx as o, createElementBlock as E, createVNode as s, createElementVNode as D, toDisplayString as w, createTextVNode as R, createCommentVNode as L, mergeProps as Z, computed as K, Fragment as se, renderList as oe, createSlots as ne } from "vue";
2
- import { useI18n as P } from "vue-i18n";
1
+ import { defineComponent as P, useTemplateRef as F, ref as N, openBlock as r, createBlock as _, unref as e, withCtx as o, createElementBlock as E, createVNode as s, createElementVNode as D, toDisplayString as w, createTextVNode as R, createCommentVNode as L, mergeProps as Z, computed as K, Fragment as se, renderList as oe, createSlots as ne } from "vue";
2
+ import { useI18n as q } from "vue-i18n";
3
3
  import { useRoute as re } from "vue-router";
4
4
  import { u as le } from "./refusals-DfPzVNNY.js";
5
5
  import { a as ie } from "./PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js";
@@ -14,9 +14,9 @@ import { _ as de } from "./RecordHeader.vue_vue_type_script_setup_true_lang-DqGc
14
14
  import { u as ae } from "./platform-BQOX_Ntw.js";
15
15
  import { u as me, a as ve } from "./routeResource-DlTsGTg_.js";
16
16
  import { a as fe } from "./ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js";
17
- import { _ as M } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
18
- import { p as ce, R as _e, o as pe, q as ye } from "./index-pJ_eRg80.js";
19
- import { u as W, a as X, _ as ke } from "./ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C0OIBrSp.js";
17
+ import { _ as O } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
18
+ import { o as ce, R as _e, n as pe, p as ye } from "./index-Cq9TuOqH.js";
19
+ import { u as W, a as X, _ as ke } from "./ServiceAccountDialog.vue_vue_type_script_setup_true_lang-FJbWxME_.js";
20
20
  import { _ as J } from "./Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
21
21
  import { _ as be } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js";
22
22
  import { _ as ge } from "./Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js";
@@ -49,14 +49,14 @@ const Ae = {
49
49
  }, Re = {
50
50
  class: "contents",
51
51
  "data-test": "copy-api-key"
52
- }, Le = { "data-test": "api-key-once" }, Te = /* @__PURE__ */ O({
52
+ }, Le = { "data-test": "api-key-once" }, Te = /* @__PURE__ */ P({
53
53
  __name: "CreatedApiKeyDialog",
54
54
  props: {
55
55
  account: {}
56
56
  },
57
57
  emits: ["done"],
58
58
  setup(u, { expose: t, emit: k }) {
59
- const l = u, g = k, { t: c } = P(), $ = Q(), d = F("dialog"), m = N(null), i = N(!1);
59
+ const l = u, g = k, { t: c } = q(), $ = Q(), d = F("dialog"), m = N(null), i = N(!1);
60
60
  function n(C) {
61
61
  m.value = C, i.value = !1, d.value?.present();
62
62
  }
@@ -154,14 +154,14 @@ function Ne(u = /* @__PURE__ */ new Date()) {
154
154
  const Ee = {
155
155
  class: "flex min-w-0 flex-col gap-group-gap",
156
156
  "data-test": "new-api-key"
157
- }, Ve = /* @__PURE__ */ O({
157
+ }, Ve = /* @__PURE__ */ P({
158
158
  __name: "NewApiKeyDialog",
159
159
  props: {
160
160
  account: {}
161
161
  },
162
162
  emits: ["created"],
163
163
  setup(u, { expose: t, emit: k }) {
164
- const l = u, g = k, { t: c } = P(), $ = W(), d = X(), i = he({
164
+ const l = u, g = k, { t: c } = q(), $ = W(), d = X(), i = he({
165
165
  ...d,
166
166
  defaults: () => ({ name: "", expires: null }),
167
167
  validator: {
@@ -210,17 +210,17 @@ const Ee = {
210
210
  }), je = {
211
211
  class: "flex min-w-0 flex-col gap-group-gap",
212
212
  "data-test": "api-keys"
213
- }, qe = ["data-test"], ze = {
213
+ }, ze = ["data-test"], Me = {
214
214
  class: "contents",
215
215
  "data-test": "new-api-key-action"
216
- }, Me = /* @__PURE__ */ O({
216
+ }, Oe = /* @__PURE__ */ P({
217
217
  __name: "ApiKeysPanel",
218
218
  props: {
219
219
  account: {}
220
220
  },
221
221
  emits: ["changed"],
222
222
  setup(u, { expose: t, emit: k }) {
223
- const l = u, g = k, { t: c } = P(), { access: $ } = ae(), d = Q(), m = W(), i = X(), n = me({ for: () => l.account.id, load: (a, { signal: f }) => m.keys(a, { signal: f }) }), v = () => n.reload(), x = F("newKey"), h = F("createdKey"), C = F("revokeConfirm"), A = N(null), q = K(() => !l.account.deactivated_at), B = K(() => $.can(ce)), z = K(() => $.can(_e)), T = (a) => a.expires_at !== null && new Date(a.expires_at).getTime() < Date.now();
223
+ const l = u, g = k, { t: c } = q(), { access: $ } = ae(), d = Q(), m = W(), i = X(), n = me({ for: () => l.account.id, load: (a, { signal: f }) => m.keys(a, { signal: f }) }), v = () => n.reload(), x = F("newKey"), h = F("createdKey"), C = F("revokeConfirm"), A = N(null), z = K(() => !l.account.deactivated_at), B = K(() => $.can(ce)), M = K(() => $.can(_e)), T = (a) => a.expires_at !== null && new Date(a.expires_at).getTime() < Date.now();
224
224
  function I(a) {
225
225
  return [
226
226
  `${a.prefix}…`,
@@ -272,7 +272,7 @@ const Ee = {
272
272
  }, null, 8, ["tone"])
273
273
  ]),
274
274
  default: o(() => [
275
- b.revoked_at ? (r(), _(e(M), {
275
+ b.revoked_at ? (r(), _(e(O), {
276
276
  key: 0,
277
277
  tone: "critical"
278
278
  }, {
@@ -280,7 +280,7 @@ const Ee = {
280
280
  R(w(e(c)("core.serviceaccounts.keys.revoked", { date: e(d).date(b.revoked_at) })), 1)
281
281
  ]),
282
282
  _: 2
283
- }, 1024)) : T(b) ? (r(), _(e(M), {
283
+ }, 1024)) : T(b) ? (r(), _(e(O), {
284
284
  key: 1,
285
285
  tone: "warning"
286
286
  }, {
@@ -292,7 +292,7 @@ const Ee = {
292
292
  ]),
293
293
  _: 2
294
294
  }, [
295
- z.value && !b.revoked_at ? {
295
+ M.value && !b.revoked_at ? {
296
296
  name: "trailing",
297
297
  fn: o(() => [
298
298
  D("span", {
@@ -310,17 +310,17 @@ const Ee = {
310
310
  ]),
311
311
  _: 1
312
312
  }, 8, ["onClick"])
313
- ], 8, qe)
313
+ ], 8, ze)
314
314
  ]),
315
315
  key: "0"
316
316
  } : void 0
317
317
  ]), 1032, ["label", "sub"]))), 128)),
318
- B.value && q.value ? (r(), _(e(p), {
318
+ B.value && z.value ? (r(), _(e(p), {
319
319
  key: 1,
320
320
  layout: "stacked"
321
321
  }, {
322
322
  default: o(() => [
323
- D("span", ze, [
323
+ D("span", Me, [
324
324
  s(e(J), {
325
325
  prominence: "secondary",
326
326
  icon: "addLine",
@@ -365,22 +365,22 @@ const Ee = {
365
365
  }, null, 8, ["title", "message", "confirm-label"])
366
366
  ]));
367
367
  }
368
- }), Oe = { key: 0 }, Pe = { class: "flex min-w-0 flex-col gap-group-gap" }, Be = {
368
+ }), Pe = { key: 0 }, qe = { class: "flex min-w-0 flex-col gap-group-gap" }, Be = {
369
369
  key: 0,
370
370
  class: "flex min-w-0 flex-col gap-group-gap",
371
371
  "data-test": "service-general"
372
- }, yt = /* @__PURE__ */ O({
372
+ }, yt = /* @__PURE__ */ P({
373
373
  __name: "ServiceAccountRecord",
374
374
  setup(u) {
375
- const { t } = P(), k = re(), { access: l } = ae(), g = Q(), c = le(), $ = W(), { tenants: d } = pe(), m = X(), i = ve({ param: "id", load: (S, { signal: y }) => $.show(S, { signal: y }) }), n = i.data, v = ["general", "access", "keys"], x = typeof k.query.tab == "string" ? k.query.tab : "", h = N(v.includes(x) ? x : "general"), C = N(null), A = F("editDialog"), q = F("deactivateConfirm"), B = K(() => l.can(ce)), z = K(() => n.value !== null && !n.value.deactivated_at), T = K(() => n.value?.tenant?.name ?? c.levelLabel("organization")), I = K(() => [
375
+ const { t } = q(), k = re(), { access: l } = ae(), g = Q(), c = le(), $ = W(), { tenants: d } = pe(), m = X(), i = ve({ param: "id", load: (S, { signal: y }) => $.show(S, { signal: y }) }), n = i.data, v = ["general", "access", "keys"], x = typeof k.query.tab == "string" ? k.query.tab : "", h = N(v.includes(x) ? x : "general"), C = N(null), A = F("editDialog"), z = F("deactivateConfirm"), B = K(() => l.can(ce)), M = K(() => n.value !== null && !n.value.deactivated_at), T = K(() => n.value?.tenant?.name ?? c.levelLabel("organization")), I = K(() => [
376
376
  { value: "general", label: t("core.serviceaccounts.tabs.general"), icon: "settings3Line" },
377
377
  { value: "access", label: t("core.serviceaccounts.tabs.access"), icon: "shieldStarFill", ...C.value !== null ? { badge: C.value } : {} },
378
378
  { value: "keys", label: t("core.serviceaccounts.tabs.keys"), icon: "key2Line", badge: n.value?.active_keys ?? 0 }
379
379
  ]), U = K(() => {
380
380
  const S = n.value;
381
- return !S || !B.value || !z.value ? [] : [
381
+ return !S || !B.value || !M.value ? [] : [
382
382
  { id: "edit", label: t("core.serviceaccounts.actions.edit"), icon: "edit", placement: "secondary", onClick: () => A.value?.show(S) },
383
- { id: "deactivate", label: t("core.serviceaccounts.actions.deactivate"), icon: "lockLine", placement: "overflow", tone: "critical", onClick: () => q.value?.present() }
383
+ { id: "deactivate", label: t("core.serviceaccounts.actions.deactivate"), icon: "lockLine", placement: "overflow", tone: "critical", onClick: () => z.value?.present() }
384
384
  ];
385
385
  });
386
386
  async function Y() {
@@ -407,14 +407,14 @@ const Ee = {
407
407
  })
408
408
  ]),
409
409
  meta: o(() => [
410
- s(e(M), { tone: "context" }, {
410
+ s(e(O), { tone: "context" }, {
411
411
  default: o(() => [
412
412
  R(w(e(t)("core.serviceaccounts.title")), 1)
413
413
  ]),
414
414
  _: 1
415
415
  }),
416
- e(d) ? (r(), E("span", Oe, w(T.value), 1)) : L("", !0),
417
- z.value ? L("", !0) : (r(), _(e(M), {
416
+ e(d) ? (r(), E("span", Pe, w(T.value), 1)) : L("", !0),
417
+ M.value ? L("", !0) : (r(), _(e(O), {
418
418
  key: 1,
419
419
  tone: "neutral"
420
420
  }, {
@@ -428,7 +428,7 @@ const Ee = {
428
428
  }, 8, ["title", "subtitle"])
429
429
  ]),
430
430
  default: o(({ record: a }) => [
431
- D("div", Pe, [
431
+ D("div", qe, [
432
432
  s(e(ue), {
433
433
  modelValue: h.value,
434
434
  "onUpdate:modelValue": y[0] || (y[0] = (f) => h.value = f),
@@ -480,7 +480,7 @@ const Ee = {
480
480
  name: a.name,
481
481
  "subject-label": e(d) ? `${a.name} · ${T.value}` : a.name,
482
482
  onLoaded: y[1] || (y[1] = (f) => C.value = f)
483
- }, null, 8, ["subject", "name", "subject-label"])) : (r(), _(Me, {
483
+ }, null, 8, ["subject", "name", "subject-label"])) : (r(), _(Oe, {
484
484
  key: 2,
485
485
  account: a,
486
486
  onChanged: y[2] || (y[2] = (f) => e(i).reload())
@@ -493,7 +493,7 @@ const Ee = {
493
493
  }, null, 512),
494
494
  s(e(te), {
495
495
  ref_key: "deactivateConfirm",
496
- ref: q,
496
+ ref: z,
497
497
  title: e(t)("core.serviceaccounts.deactivate_title"),
498
498
  message: e(t)("core.serviceaccounts.deactivate_body", { name: a.name }),
499
499
  "confirm-label": e(t)("core.serviceaccounts.actions.deactivate"),
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, useTemplateRef as F, ref as w, computed as n, openBlock as c, createBlock as d, unref as t, withCtx as r, createElementVNode as p, createVNode as l, createElementBlock as _, toDisplayString as b, createCommentVNode as x, Fragment as O, renderList as j, createTextVNode as z } from "vue";
1
+ import { defineComponent as F, useTemplateRef as O, ref as w, computed as n, openBlock as c, createBlock as d, unref as t, withCtx as r, createElementVNode as p, createVNode as l, createElementBlock as _, toDisplayString as b, createCommentVNode as x, Fragment as j, renderList as q, createTextVNode as z } from "vue";
2
2
  import { useI18n as D } from "vue-i18n";
3
3
  import { useRouter as G } from "vue-router";
4
4
  import { u as I } from "./refusals-DfPzVNNY.js";
@@ -13,8 +13,8 @@ import { u as X } from "./platform-BQOX_Ntw.js";
13
13
  import { _ as Y } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js";
14
14
  import { _ as Z } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
15
15
  import { u as ee } from "./useLoad-M7V-AVwR.js";
16
- import { o as te, p as $, q as A } from "./index-pJ_eRg80.js";
17
- import { u as ae, _ as oe } from "./ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C0OIBrSp.js";
16
+ import { n as te, o as $, p as A } from "./index-Cq9TuOqH.js";
17
+ import { u as ae, _ as oe } from "./ServiceAccountDialog.vue_vue_type_script_setup_true_lang-FJbWxME_.js";
18
18
  const se = {
19
19
  class: "flex min-w-0 flex-col gap-group-gap",
20
20
  "data-test": "service-segment"
@@ -26,10 +26,10 @@ const se = {
26
26
  key: 1,
27
27
  class: "min-w-[4.5rem] text-right text-footnote tabular-nums text-content-muted",
28
28
  "data-test": "account-keys"
29
- }, Ve = /* @__PURE__ */ q({
29
+ }, Ve = /* @__PURE__ */ F({
30
30
  __name: "ServiceAccountsList",
31
31
  setup(ie) {
32
- const { t: a } = D(), L = G(), { access: y } = X(), V = Q(), C = I(), N = ae(), { tenants: S } = te(), g = F("dialog"), v = ee(({ signal: e }) => N.list({ signal: e })), i = w("active"), f = w(""), h = n(() => v.data.value ?? []), u = (e) => e.deactivated_at === null, B = (e) => e.tenant?.name ?? C.levelLabel("organization"), m = n(() => {
32
+ const { t: a } = D(), L = G(), { access: y } = X(), V = Q(), C = I(), N = ae(), { tenants: S } = te(), g = O("dialog"), v = ee(({ signal: e }) => N.list({ signal: e })), i = w("active"), f = w(""), h = n(() => v.data.value ?? []), u = (e) => e.deactivated_at === null, B = (e) => e.tenant?.name ?? C.levelLabel("organization"), m = n(() => {
33
33
  const e = f.value.trim().toLowerCase();
34
34
  return h.value.filter((s) => e === "" || `${s.name} ${s.description} ${s.owner.name}`.toLowerCase().includes(e));
35
35
  }), k = n(() => m.value.filter((e) => i.value === "all" || i.value === "active" === u(e))), R = n(() => [
@@ -86,7 +86,7 @@ const se = {
86
86
  }, {
87
87
  default: r(() => [
88
88
  k.value.length === 0 ? (c(), _("p", ne, b(t(a)("core.serviceaccounts.empty")), 1)) : x("", !0),
89
- (c(!0), _(O, null, j(k.value, (o) => (c(), d(t(H), {
89
+ (c(!0), _(j, null, q(k.value, (o) => (c(), d(t(H), {
90
90
  key: o.id,
91
91
  layout: "setting",
92
92
  label: o.name,
@@ -2,13 +2,13 @@ import { defineComponent as x, useTemplateRef as v, computed as w, ref as $, ope
2
2
  import { useI18n as N } from "vue-i18n";
3
3
  import { _ as q } from "./Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
4
4
  import { u as A } from "./describeError-B-NMa--w.js";
5
- import { P as D, e as L, j as O, k as T, i as g, h as V } from "./index-pJ_eRg80.js";
5
+ import { P as D, e as L, h as O, j as T, i as g, g as V } from "./index-Cq9TuOqH.js";
6
6
  import { _ as k } from "./AlertDialog.vue_vue_type_script_setup_true_lang-CrFhR9rJ.js";
7
7
  import { t as y } from "./toast-CqSDTWRX.js";
8
8
  import { u as j } from "./platform-BQOX_Ntw.js";
9
9
  import { b as I } from "./routeResource-DlTsGTg_.js";
10
10
  import { _ as z } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js";
11
- import { _ as F } from "./ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js";
11
+ import { _ as F } from "./ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js";
12
12
  const G = {
13
13
  class: "flex min-w-0 flex-col gap-group-gap",
14
14
  "data-person-sessions": ""
@@ -3,9 +3,10 @@ import { useI18n as V } from "vue-i18n";
3
3
  import { useRouter as ae } from "vue-router";
4
4
  import { _ as oe } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js";
5
5
  import { t as C } from "./toast-CqSDTWRX.js";
6
- import { u as U, _ as H, a as j } from "./ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js";
6
+ import { u as U } from "./serverMessages-B6GHgi40.js";
7
7
  import { _ as W } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js";
8
- import { n as T, u as le, a as re } from "./index-CTkG-acm.js";
8
+ import { n as T, u as le, a as re } from "./index-ClJeyW3F.js";
9
+ import { _ as H, a as j } from "./ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js";
9
10
  import { _ as I } from "./Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
10
11
  import { _ as ce } from "./IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js";
11
12
  import { u as ue } from "./format-D8KUBmbS.js";
@@ -586,7 +587,7 @@ function Ee(a = X().http) {
586
587
  }
587
588
  return { loaded: i, saving: t, setChannel: d, saveQuietHours: s };
588
589
  }
589
- const pt = /* @__PURE__ */ B({
590
+ const _t = /* @__PURE__ */ B({
590
591
  __name: "SettingsPage",
591
592
  setup(a) {
592
593
  const { t: i } = V(), t = ae(), d = U(), s = Ee(), l = D(() => t.hasRoute("profile") ? { label: i("core.profile.menu"), to: { name: "profile" } } : void 0);
@@ -625,5 +626,5 @@ const pt = /* @__PURE__ */ B({
625
626
  }
626
627
  });
627
628
  export {
628
- pt as default
629
+ _t as default
629
630
  };
@@ -6,12 +6,12 @@ import { u as D } from "./format-D8KUBmbS.js";
6
6
  import { a as p } from "./FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js";
7
7
  import { g as b } from "./options-B48UiYsG.js";
8
8
  import { u as U } from "./describeError-B-NMa--w.js";
9
- import { g as q, P as z, e as F, _ as L, i as O, h as T } from "./index-pJ_eRg80.js";
9
+ import { f as q, P as z, e as F, _ as L, i as O, g as T } from "./index-Cq9TuOqH.js";
10
10
  import { t as h } from "./toast-CqSDTWRX.js";
11
11
  import { u as j, h as G } from "./platform-BQOX_Ntw.js";
12
12
  import { b as H } from "./routeResource-DlTsGTg_.js";
13
13
  import { _ as J } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
14
- import { _ as K, a as M } from "./ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js";
14
+ import { _ as K, a as M } from "./ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js";
15
15
  const Q = {
16
16
  key: 0,
17
17
  class: "flex min-w-0 max-w-200 flex-col gap-group-gap",
@@ -6,7 +6,7 @@ import { _ as N } from "./Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js"
6
6
  import { _ as S } from "./FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js";
7
7
  import { _ as a } from "./TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
8
8
  import { r as $ } from "./guards-Biv_SlGn.js";
9
- import { u as C, a as E } from "./index-pJ_eRg80.js";
9
+ import { u as C, a as E } from "./index-Cq9TuOqH.js";
10
10
  const V = { class: "flex flex-1 flex-col items-center justify-center gap-8" }, k = { class: "text-xl font-semibold text-content-strong" }, H = /* @__PURE__ */ d({
11
11
  __name: "SignInPage",
12
12
  setup(q) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as g, ref as m, watch as c, openBlock as p, createElementBlock as v, createVNode as i, unref as e, withCtx as w, createBlock as x, createCommentVNode as y, createElementVNode as V, toDisplayString as $ } from "vue";
2
- import { useI18n as N } from "vue-i18n";
3
- import { P as S, i as b, l as k, m as I } from "./index-pJ_eRg80.js";
2
+ import { useI18n as k } from "vue-i18n";
3
+ import { P as N, i as S, k as b, l as I } from "./index-Cq9TuOqH.js";
4
4
  import { u as R } from "./platform-BQOX_Ntw.js";
5
5
  import { b as C } from "./routeResource-DlTsGTg_.js";
6
6
  import { _ as E } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js";
7
7
  import { u as B } from "./useLoad-M7V-AVwR.js";
8
- import { _ as P } from "./ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js";
8
+ import { _ as P } from "./ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js";
9
9
  import { _ as h } from "./ViewTabs.vue_vue_type_script_setup_true_lang-BjdDXE3T.js";
10
10
  const U = {
11
11
  class: "flex min-w-0 flex-col gap-group-gap",
@@ -13,10 +13,10 @@ const U = {
13
13
  }, q = { class: "px-row-inset text-footnote text-content-muted" }, J = /* @__PURE__ */ g({
14
14
  __name: "SignIns",
15
15
  setup(D) {
16
- const d = ["all", "failed"], { t: s } = N(), { http: f } = R(), r = C(S), l = m("all"), a = m(1), n = B(
16
+ const d = ["all", "failed"], { t: s } = k(), { http: f } = R(), r = C(N), l = m("all"), a = m(1), n = B(
17
17
  async ({ signal: u }) => {
18
18
  const t = r.id.value;
19
- return t === null ? null : (await f.request(b.usersSignins, { id: t, view: l.value, page: a.value, per_page: 20 }, { signal: u })).data;
19
+ return t === null ? null : (await f.request(S.usersSignins, { id: t, view: l.value, page: a.value, per_page: 20 }, { signal: u })).data;
20
20
  },
21
21
  { watch: () => r.id.value }
22
22
  );
@@ -42,7 +42,7 @@ const U = {
42
42
  onRetry: t[2] || (t[2] = (o) => e(n).reload())
43
43
  }, {
44
44
  default: w(({ value: o }) => [
45
- i(k, {
45
+ i(b, {
46
46
  rows: o?.data ?? []
47
47
  }, null, 8, ["rows"]),
48
48
  o ? (p(), x(I, {
@@ -1,13 +1,13 @@
1
- import { defineComponent as E, openBlock as N, createBlock as L, unref as e, withCtx as f, createVNode as n, mergeProps as q, provide as C, computed as _, useTemplateRef as D, createElementVNode as h, toDisplayString as S, createTextVNode as K } from "vue";
2
- import { useI18n as V } from "vue-i18n";
1
+ import { defineComponent as E, openBlock as N, createBlock as L, unref as e, withCtx as p, createVNode as n, mergeProps as R, provide as C, computed as _, useTemplateRef as D, createElementVNode as h, toDisplayString as S, createTextVNode as K } from "vue";
2
+ import { useI18n as U } from "vue-i18n";
3
3
  import { u as z } from "./neighbors-OyvGi233.js";
4
4
  import { _ as G } from "./Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
5
5
  import { u as I } from "./describeError-B-NMa--w.js";
6
- import { i as k, P as O, r as j, c as F, d as H, b as J, M as Q, t as W, s as X, h as Y } from "./index-pJ_eRg80.js";
6
+ import { i as k, P as O, q as j, c as F, d as H, b as J, M as Q, r as W, s as X, g as Y } from "./index-Cq9TuOqH.js";
7
7
  import { _ as Z } from "./AlertDialog.vue_vue_type_script_setup_true_lang-CrFhR9rJ.js";
8
8
  import { t as $ } from "./toast-CqSDTWRX.js";
9
9
  import { _ as ee } from "./SectionNavigator.vue_vue_type_script_setup_true_lang-Dh3sXUt_.js";
10
- import { u as M } from "./platform-BQOX_Ntw.js";
10
+ import { u as V } from "./platform-BQOX_Ntw.js";
11
11
  import { a as se } from "./routeResource-DlTsGTg_.js";
12
12
  import { a as ae } from "./ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js";
13
13
  import { A as te } from "./access-DmAceEo5.js";
@@ -16,7 +16,7 @@ import { u as re } from "./useLoad-M7V-AVwR.js";
16
16
  import { a as ne } from "./FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js";
17
17
  import { _ as A } from "./TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
18
18
  import { u as ce, _ as ie } from "./useCommand-Ch_nx1AQ.js";
19
- import { u as le } from "./ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js";
19
+ import { u as le } from "./serverMessages-B6GHgi40.js";
20
20
  const ue = /* @__PURE__ */ E({
21
21
  __name: "SetPasswordDialog",
22
22
  props: {
@@ -24,16 +24,16 @@ const ue = /* @__PURE__ */ E({
24
24
  name: {}
25
25
  },
26
26
  emits: ["saved"],
27
- setup(P, { expose: s, emit: m }) {
28
- const v = P, w = m, { t: o } = V(), { http: c } = M(), u = {
27
+ setup(q, { expose: s, emit: f }) {
28
+ const v = q, w = f, { t: o } = U(), { http: c } = V(), u = {
29
29
  safeParse(a) {
30
- const { password: i, repeat: p } = a, b = [
30
+ const { password: i, repeat: d } = a, g = [
31
31
  ...i === "" ? [{ path: ["password"], message: o("core.account.validation.required") }] : [],
32
- ...i !== "" && p !== i ? [{ path: ["repeat"], message: o(p === "" ? "core.account.validation.required" : "core.account.validation.mismatch") }] : []
32
+ ...i !== "" && d !== i ? [{ path: ["repeat"], message: o(d === "" ? "core.account.validation.required" : "core.account.validation.mismatch") }] : []
33
33
  ];
34
- return b.length > 0 ? { success: !1, error: { issues: b } } : { success: !0, data: { password: i } };
34
+ return g.length > 0 ? { success: !1, error: { issues: g } } : { success: !0, data: { password: i } };
35
35
  }
36
- }, d = ce({
36
+ }, m = ce({
37
37
  ...le(),
38
38
  defaults: () => ({ password: "", repeat: "" }),
39
39
  validator: u,
@@ -42,25 +42,25 @@ const ue = /* @__PURE__ */ E({
42
42
  $.success(o("core.users.password.done", { name: v.name })), w("saved");
43
43
  }
44
44
  });
45
- return s({ open: () => d.present() }), (a, i) => (N(), L(e(ie), {
46
- command: e(d),
45
+ return s({ open: () => m.present() }), (a, i) => (N(), L(e(ie), {
46
+ command: e(m),
47
47
  title: e(o)("core.users.password.title"),
48
48
  subtitle: v.name,
49
49
  "confirm-label": e(o)("core.users.password.action")
50
50
  }, {
51
- default: f(() => [
51
+ default: p(() => [
52
52
  n(e(ne), {
53
53
  footer: e(o)("core.users.password.footer"),
54
54
  "data-set-password-dialog": ""
55
55
  }, {
56
- default: f(() => [
57
- n(e(A), q(e(d).form.bind("password"), {
56
+ default: p(() => [
57
+ n(e(A), R(e(m).form.bind("password"), {
58
58
  label: e(o)("core.users.fields.password"),
59
59
  type: "password",
60
60
  required: "",
61
61
  autocomplete: "new-password"
62
62
  }), null, 16, ["label"]),
63
- n(e(A), q(e(d).form.bind("repeat"), {
63
+ n(e(A), R(e(m).form.bind("repeat"), {
64
64
  label: e(o)("core.users.fields.password_repeat"),
65
65
  type: "password",
66
66
  required: "",
@@ -78,32 +78,32 @@ const ue = /* @__PURE__ */ E({
78
78
  "data-person-identity": ""
79
79
  }, de = { class: "flex min-w-0 flex-col items-start gap-0.5" }, pe = { class: "max-w-full truncate text-headline font-semibold text-content-strong" }, fe = { class: "max-w-full truncate text-footnote text-content-muted" }, Le = /* @__PURE__ */ E({
80
80
  __name: "UserRecord",
81
- setup(P) {
82
- const { t: s } = V(), { http: m, access: v, session: w } = M(), o = I(), c = se({
81
+ setup(q) {
82
+ const { t: s } = U(), { http: f, access: v, session: w } = V(), o = I(), c = se({
83
83
  key: O,
84
84
  param: "id",
85
- load: async (t, { signal: l }) => (await m.request(k.usersShow, { id: t }, { signal: l })).data
85
+ load: async (t, { signal: l }) => (await f.request(k.usersShow, { id: t }, { signal: l })).data
86
86
  }), u = re(
87
87
  async ({ signal: t }) => {
88
88
  const l = c.data.value?.id;
89
- return l === void 0 ? { sessions: [] } : (await m.request(k.usersSessions, { id: l }, { signal: t })).data;
89
+ return l === void 0 ? { sessions: [] } : (await f.request(k.usersSessions, { id: l }, { signal: t })).data;
90
90
  },
91
91
  { watch: () => c.data.value?.id }
92
92
  );
93
93
  C(j, u);
94
- const d = z(H(m), { current: () => c.id.value, list: F.index, param: "id", backLabel: () => s("core.users.title") }), a = _(() => c.data.value), i = _(() => a.value !== null && w.state.value.status === "authenticated" && w.state.value.user.id === a.value.id), p = D("deactivateDialog"), { deactivate: b } = J(), R = D("passwordDialog"), x = D("activateDialog");
95
- async function g() {
94
+ const m = z(H(), { current: () => c.id.value, list: F.index, param: "id", backLabel: () => s("core.users.title") }), a = _(() => c.data.value), i = _(() => a.value !== null && w.state.value.status === "authenticated" && w.state.value.user.id === a.value.id), d = D("deactivateDialog"), { deactivate: g } = J(), P = D("passwordDialog"), x = D("activateDialog");
95
+ async function b() {
96
96
  await Promise.all([c.reload(), u.reload()]);
97
97
  }
98
- async function T() {
98
+ async function M() {
99
99
  const t = c.id.value;
100
100
  if (t !== null) {
101
101
  try {
102
- await m.request(k.usersActivate, { id: t }), $.success(s("core.users.activate.done", { name: a.value?.name ?? "" }));
102
+ await f.request(k.usersActivate, { id: t }), $.success(s("core.users.activate.done", { name: a.value?.name ?? "" }));
103
103
  } catch (l) {
104
104
  Y(l) || $.error(o(l, { fallback: s("core.users.activate.failed") }));
105
105
  }
106
- await g();
106
+ await b();
107
107
  }
108
108
  }
109
109
  const y = _(() => {
@@ -114,13 +114,13 @@ const ue = /* @__PURE__ */ E({
114
114
  get can() {
115
115
  return y.value;
116
116
  },
117
- deactivate: () => p.value?.open(),
117
+ deactivate: () => d.value?.open(),
118
118
  activate: () => x.value?.present(),
119
- setPassword: () => R.value?.open(),
120
- refresh: g
119
+ setPassword: () => P.value?.open(),
120
+ refresh: b
121
121
  });
122
- const U = _(() => [
123
- ...y.value.deactivate ? [{ id: "deactivate", label: s("core.users.actions.deactivate"), icon: "lockLine", placement: "overflow", tone: "critical", onClick: () => p.value?.open() }] : [],
122
+ const T = _(() => [
123
+ ...y.value.deactivate ? [{ id: "deactivate", label: s("core.users.actions.deactivate"), icon: "lockLine", placement: "overflow", tone: "critical", onClick: () => d.value?.open() }] : [],
124
124
  ...y.value.activate ? [{ id: "activate", label: s("core.users.actions.activate"), icon: "checkCircle", placement: "overflow", onClick: () => x.value?.present() }] : []
125
125
  ]), B = _(() => ({
126
126
  ...u.data.value ? { "users.record.sessions": u.data.value.sessions.length } : {},
@@ -129,10 +129,10 @@ const ue = /* @__PURE__ */ E({
129
129
  return (t, l) => (N(), L(e(ae), {
130
130
  resource: e(c),
131
131
  title: a.value?.name ?? e(s)("core.users.record"),
132
- list: e(d).context,
133
- actions: U.value
132
+ list: e(m).context,
133
+ actions: T.value
134
134
  }, {
135
- default: f(({ record: r }) => [
135
+ default: p(({ record: r }) => [
136
136
  n(e(ee), {
137
137
  label: e(s)("core.users.sections_label"),
138
138
  desktop: "sidebar",
@@ -140,7 +140,7 @@ const ue = /* @__PURE__ */ E({
140
140
  "back-label": r.name,
141
141
  counts: B.value
142
142
  }, {
143
- summary: f(() => [
143
+ summary: p(() => [
144
144
  h("div", me, [
145
145
  n(e(G), {
146
146
  name: r.name,
@@ -155,7 +155,7 @@ const ue = /* @__PURE__ */ E({
155
155
  dot: "",
156
156
  "data-person-status": ""
157
157
  }, {
158
- default: f(() => [
158
+ default: p(() => [
159
159
  K(S(e(s)(`core.users.status.${r.status}`)), 1)
160
160
  ]),
161
161
  _: 2
@@ -163,25 +163,25 @@ const ue = /* @__PURE__ */ E({
163
163
  ])
164
164
  ])
165
165
  ]),
166
- default: f(() => [
166
+ default: p(() => [
167
167
  n(e(te))
168
168
  ]),
169
169
  _: 2
170
170
  }, 1032, ["label", "back-label", "counts"]),
171
- n(e(b), {
171
+ n(e(g), {
172
172
  ref_key: "deactivateDialog",
173
- ref: p,
173
+ ref: d,
174
174
  id: r.id,
175
175
  name: r.name,
176
176
  "session-count": e(u).data.value?.sessions.length ?? null,
177
- onDone: g
177
+ onDone: b
178
178
  }, null, 8, ["id", "name", "session-count"]),
179
179
  n(ue, {
180
180
  ref_key: "passwordDialog",
181
- ref: R,
181
+ ref: P,
182
182
  id: r.id,
183
183
  name: r.name,
184
- onSaved: g
184
+ onSaved: b
185
185
  }, null, 8, ["id", "name"]),
186
186
  n(e(Z), {
187
187
  ref_key: "activateDialog",
@@ -190,7 +190,7 @@ const ue = /* @__PURE__ */ E({
190
190
  title: e(s)("core.users.activate.title"),
191
191
  message: e(s)("core.users.activate.body", { name: r.name }),
192
192
  "confirm-label": e(s)("core.users.actions.activate"),
193
- action: T
193
+ action: M
194
194
  }, null, 8, ["title", "message", "confirm-label"])
195
195
  ]),
196
196
  _: 1