@wssto2/vue-core 0.4.15 → 0.4.17

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 (97) hide show
  1. package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-CkvS5W6K.js → ActionRow.vue_vue_type_script_setup_true_lang-DOjn7fqy.js} +1 -1
  2. package/dist/{Activity-4q26REYj.js → Activity-DnFB6WXf.js} +5 -5
  3. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js} +64 -63
  4. package/dist/{Changes-CKIuGF8O.js → Changes-DMrQYv2e.js} +4 -4
  5. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-B17cUOzj.js → CollectionPage.vue_vue_type_script_setup_true_lang-CVnZzaBm.js} +5 -5
  6. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-ChS9ULwk.js → DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js} +1 -1
  7. package/dist/DateField.vue_vue_type_script_setup_true_lang-BIXzNzYo.js +278 -0
  8. package/dist/{DeadLetters-DPGcQOz1.js → DeadLetters-BF9PS4mA.js} +3 -3
  9. package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-noYI9QMk.js → FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js} +1 -1
  10. package/dist/{FormView.vue_vue_type_script_setup_true_lang-BcIbTMHN.js → FormView.vue_vue_type_script_setup_true_lang-Dz5TZt92.js} +1 -1
  11. package/dist/{General-CUA9b3ML.js → General-yInbmj6I.js} +8 -8
  12. package/dist/{NewRolePage-DBfCvDWA.js → NewRolePage-09C3P6fE.js} +3 -3
  13. package/dist/NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js +150 -0
  14. package/dist/{ProfilePage-On-eAiJ-.js → ProfilePage-CvV44C0m.js} +8 -8
  15. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js → RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js} +1 -1
  16. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Da0M-hen.js → ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js} +1 -1
  17. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-fvAf3rQm.js → RoleEditor.vue_vue_type_script_setup_true_lang-BqWoby16.js} +7 -7
  18. package/dist/{RolePage-B8oul55j.js → RolePage-DuIFjSKH.js} +8 -8
  19. package/dist/{RolesPage-DsXVivdj.js → RolesPage-BzqBqils.js} +5 -5
  20. package/dist/{SectionList.vue_vue_type_script_setup_true_lang-B0p_8xQG.js → SectionList.vue_vue_type_script_setup_true_lang-D5QWy-c1.js} +1 -1
  21. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-D5Cnb4_O.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CW81A_bn.js} +2 -2
  22. package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BMBkEmxr.js +81 -0
  23. package/dist/{SelectField.vue_vue_type_script_setup_true_lang-DedKLLQK.js → SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js} +161 -139
  24. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-CirlMdHb.js → SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js} +3 -3
  25. package/dist/{Sessions-BTyXDEuY.js → Sessions-_qmODKw2.js} +2 -2
  26. package/dist/{SettingsPage-DHTmMgif.js → SettingsPage-Bz48sO08.js} +9 -9
  27. package/dist/{SignIn-DU4DE2wj.js → SignIn-DJsTGQ79.js} +5 -5
  28. package/dist/{SignInPage-BA22kyOp.js → SignInPage-Bb78MIDk.js} +3 -3
  29. package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CIv34nRn.js → SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js} +1 -1
  30. package/dist/{SignIns-C8QAZBaL.js → SignIns-yRjJrf47.js} +2 -2
  31. package/dist/SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js +87 -0
  32. package/dist/TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js +292 -0
  33. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-4wC3c0BM.js +91 -0
  34. package/dist/TimeField.vue_vue_type_script_setup_true_lang-DrLtIexs.js +187 -0
  35. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js → Timestamp.vue_vue_type_script_setup_true_lang-CU2Y5oYl.js} +1 -1
  36. package/dist/{UserRecord-D1BNmYp9.js → UserRecord-4L0FrCty.js} +9 -9
  37. package/dist/{UsersList-ltx3G23-.js → UsersList-ww_-FoAq.js} +9 -9
  38. package/dist/access/index.js +1 -1
  39. package/dist/app/application.d.ts +1 -1
  40. package/dist/app/index.js +1 -1
  41. package/dist/collection/index.js +3 -3
  42. package/dist/content/index.js +1 -1
  43. package/dist/{control-CX9BG2UB.js → control-B_Nwtmag.js} +96 -82
  44. package/dist/{fieldMessages-DV6sESpn.js → fieldMessages-6HVzSDqG.js} +1 -1
  45. package/dist/form/CardSelectField.vue.d.ts +2 -2
  46. package/dist/form/ChoiceChips.vue.d.ts +2 -2
  47. package/dist/form/ComboField.vue.d.ts +2 -2
  48. package/dist/form/CommandDialog.vue.d.ts +3 -0
  49. package/dist/form/DateField.vue.d.ts +9 -2
  50. package/dist/form/DateTimeField.vue.d.ts +9 -2
  51. package/dist/form/Field.vue.d.ts +1 -1
  52. package/dist/form/FileField.vue.d.ts +9 -2
  53. package/dist/form/I18nField.vue.d.ts +9 -2
  54. package/dist/form/MoneyField.vue.d.ts +9 -2
  55. package/dist/form/MonthYearField.vue.d.ts +9 -2
  56. package/dist/form/MultiSelectField.vue.d.ts +2 -2
  57. package/dist/form/NumberField.vue.d.ts +20 -2
  58. package/dist/form/PhotoField.vue.d.ts +9 -2
  59. package/dist/form/SegmentedField.vue.d.ts +2 -2
  60. package/dist/form/SelectField.vue.d.ts +2 -2
  61. package/dist/form/SwitchField.vue.d.ts +2 -2
  62. package/dist/form/TextField.vue.d.ts +9 -2
  63. package/dist/form/TextareaField.vue.d.ts +9 -2
  64. package/dist/form/TimeField.vue.d.ts +9 -2
  65. package/dist/form/field.d.ts +9 -0
  66. package/dist/form/index.d.ts +1 -1
  67. package/dist/form/index.js +1176 -977
  68. package/dist/format/index.js +1 -1
  69. package/dist/format-D8X4zsx6.js +78 -0
  70. package/dist/i18n/index.d.ts +1 -0
  71. package/dist/i18n/index.js +31 -28
  72. package/dist/identity/index.js +1 -1
  73. package/dist/{index-BCw_Ki6z.js → index-C6vCe149.js} +3 -3
  74. package/dist/{index-Chh4z9xW.js → index-DW9gyWL1.js} +8 -8
  75. package/dist/{index-DwdVrW6q.js → index-JjALCpwi.js} +13 -13
  76. package/dist/index.d.ts +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/internal/intlLocale.d.ts +2 -0
  79. package/dist/intlLocale-CeRU44qJ.js +4 -0
  80. package/dist/notifications/index.js +1 -1
  81. package/dist/page/index.js +5 -5
  82. package/dist/phone/index.js +112 -111
  83. package/dist/resource/index.js +1 -1
  84. package/dist/{rowLayout-D1cYQghV.js → rowLayout-BFz4Kdoy.js} +2 -2
  85. package/dist/{status-cWCAMAmW.js → status-Cz54-7z7.js} +1 -1
  86. package/dist/testing/index.js +1 -1
  87. package/dist/{useCommand-B-N6HJOz.js → useCommand-YN9EMb7s.js} +41 -38
  88. package/dist/{useTypedEntry-aTfPBAhw.js → useTypedEntry-C7k7Dyl-.js} +237 -236
  89. package/package.json +1 -1
  90. package/dist/DateField.vue_vue_type_script_setup_true_lang-DehwWm78.js +0 -256
  91. package/dist/NumberField.vue_vue_type_script_setup_true_lang-Dm6FfJ2T.js +0 -126
  92. package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-B2d55hrh.js +0 -59
  93. package/dist/SwitchField.vue_vue_type_script_setup_true_lang-B2Z2hy_h.js +0 -65
  94. package/dist/TextField.vue_vue_type_script_setup_true_lang-nqnGG7Zc.js +0 -270
  95. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-BgIQyYtf.js +0 -69
  96. package/dist/TimeField.vue_vue_type_script_setup_true_lang-Dr0h-V_8.js +0 -165
  97. package/dist/format-B8mJm946.js +0 -77
@@ -1,4 +1,4 @@
1
- import { nextTick as f, defineComponent as L, useTemplateRef as p, ref as w, watch as S, onBeforeUnmount as x, computed as E, openBlock as v, createBlock as T, unref as c, createSlots as $, withCtx as y, createElementVNode as C, createElementBlock as D, toDisplayString as B, createCommentVNode as N, createVNode as z, renderSlot as g } from "vue";
1
+ import { nextTick as f, defineComponent as L, useTemplateRef as p, ref as w, watch as D, onBeforeUnmount as S, computed as x, openBlock as v, createBlock as E, unref as c, createSlots as T, withCtx as y, createElementVNode as $, createElementBlock as B, toDisplayString as C, createCommentVNode as N, createVNode as z, renderSlot as g } from "vue";
2
2
  import { useI18n as V } from "vue-i18n";
3
3
  import { f as q } from "./useDialog-CXR3hN0G.js";
4
4
  import { _ as A } from "./Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js";
@@ -7,12 +7,12 @@ import { _ as O, u as I } from "./FormErrors.vue_vue_type_script_setup_true_lang
7
7
  import { a as R } from "./leaveGuard-Cc8yeLxM.js";
8
8
  const d = "input:not([type=hidden]):not([disabled]), textarea:not([disabled]), select:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex='-1'])";
9
9
  async function U(t = document, n) {
10
- const e = [...t.querySelectorAll("[data-field-error]")], s = e.find((a) => a.matches(d) || a.querySelector(d)) ?? e[0];
11
- if (!s) return !1;
12
- const r = n?.sections.value.find((a) => a.element.contains(s));
10
+ const e = [...t.querySelectorAll("[data-field-error]")], o = e.find((s) => s.matches(d) || s.querySelector(d)) ?? e[0];
11
+ if (!o) return !1;
12
+ const r = n?.sections.value.find((s) => s.element.contains(o));
13
13
  r && (await n?.scrollTo(r.id, { updateUrl: !1 }), await f());
14
- const o = s.matches(d) ? s : s.querySelector(d);
15
- return (o ?? s).scrollIntoView?.({ block: "center" }), (o ?? s).focus({ preventScroll: !0 }), !0;
14
+ const a = o.matches(d) ? o : o.querySelector(d);
15
+ return (a ?? o).scrollIntoView?.({ block: "center" }), (a ?? o).focus({ preventScroll: !0 }), !0;
16
16
  }
17
17
  const Q = (t) => ({ "data-field-key": t }), G = {
18
18
  key: 0,
@@ -24,6 +24,7 @@ const Q = (t) => ({ "data-field-key": t }), G = {
24
24
  title: {},
25
25
  subtitle: { default: void 0 },
26
26
  confirmLabel: {},
27
+ confirmDisabled: { type: Boolean, default: !1 },
27
28
  doneLabel: { default: void 0 },
28
29
  busyLabel: { default: void 0 },
29
30
  message: { default: void 0 },
@@ -32,98 +33,100 @@ const Q = (t) => ({ "data-field-key": t }), G = {
32
33
  },
33
34
  emits: ["done"],
34
35
  setup(t, { emit: n }) {
35
- const e = t, s = n, { t: r } = V(), o = p("modal"), a = p("body"), u = w(!1);
36
+ const e = t, o = n, { t: r } = V(), a = p("modal"), s = p("body"), u = w(!1);
36
37
  let m = null;
37
38
  const { confirmDiscard: _ } = R(() => e.command.open.value && e.command.form.dirty.value);
38
- S(() => e.command.open.value, (i) => {
39
- i ? (u.value = !1, o.value?.present()) : o.value?.dismiss();
39
+ D(() => e.command.open.value, (l) => {
40
+ l ? (u.value = !1, a.value?.present()) : a.value?.dismiss();
40
41
  });
41
- async function b(i = {}) {
42
- const l = await e.command.run();
43
- if (l.status === "failed") {
44
- l.failure.kind === "invalid" && await f().then(() => U(a.value ?? document));
42
+ async function b(l = {}) {
43
+ if (e.confirmDisabled) return;
44
+ const i = await e.command.run();
45
+ if (i.status === "failed") {
46
+ i.failure.kind === "invalid" && await f().then(() => U(s.value ?? document));
45
47
  return;
46
48
  }
47
- if (l.status !== "aborted") {
48
- if (s("done"), i.addAnother) {
49
- e.command.present(), await f(), q(a.value)[0]?.focus();
49
+ if (i.status !== "aborted") {
50
+ if (o("done"), l.addAnother) {
51
+ e.command.present(), await f(), q(s.value)[0]?.focus();
50
52
  return;
51
53
  }
52
54
  u.value = !0, m = setTimeout(() => e.command.dismiss(), F);
53
55
  }
54
56
  }
55
- x(() => {
57
+ S(() => {
56
58
  m && clearTimeout(m);
57
59
  });
58
- const k = E(() => e.command.form.submitting.value ? "processing" : u.value ? "done" : "idle");
59
- return (i, l) => (v(), T(A, {
60
+ const k = x(() => e.command.form.submitting.value ? "processing" : u.value ? "done" : "idle");
61
+ return (l, i) => (v(), E(A, {
60
62
  ref_key: "modal",
61
- ref: o,
63
+ ref: a,
62
64
  size: e.size,
63
65
  grouped: "",
64
66
  title: e.title,
65
67
  subtitle: e.subtitle,
66
68
  "before-dismiss": c(_),
67
69
  "primary-label": e.confirmLabel,
70
+ "primary-disabled": e.confirmDisabled,
68
71
  status: k.value,
69
72
  "processing-label": e.busyLabel ?? c(r)("core.actions.saving"),
70
73
  "done-label": e.doneLabel ?? c(r)("core.actions.saved"),
71
- onPrimary: l[0] || (l[0] = (h) => b()),
72
- onDismissed: l[1] || (l[1] = (h) => e.command.dismiss())
73
- }, $({
74
+ onPrimary: i[0] || (i[0] = (h) => b()),
75
+ onDismissed: i[1] || (i[1] = (h) => e.command.dismiss())
76
+ }, T({
74
77
  default: y(() => [
75
- C("div", {
78
+ $("div", {
76
79
  ref_key: "body",
77
- ref: a,
80
+ ref: s,
78
81
  class: "flex min-w-0 flex-col gap-group-gap",
79
82
  "data-test": "command-dialog"
80
83
  }, [
81
- e.message ? (v(), D("p", G, B(e.message), 1)) : N("", !0),
84
+ e.message ? (v(), B("p", G, C(e.message), 1)) : N("", !0),
82
85
  z(O, {
83
86
  form: e.command.form,
84
87
  label: e.fieldLabel,
85
- scope: a.value
88
+ scope: s.value
86
89
  }, null, 8, ["form", "label", "scope"]),
87
- g(i.$slots, "default")
90
+ g(l.$slots, "default")
88
91
  ], 512)
89
92
  ]),
90
93
  _: 2
91
94
  }, [
92
- i.$slots.actions ? {
95
+ l.$slots.actions ? {
93
96
  name: "actions",
94
97
  fn: y(() => [
95
- g(i.$slots, "actions", {
98
+ g(l.$slots, "actions", {
96
99
  run: b,
97
100
  busy: e.command.form.submitting.value
98
101
  })
99
102
  ]),
100
103
  key: "0"
101
104
  } : void 0
102
- ]), 1032, ["size", "title", "subtitle", "before-dismiss", "primary-label", "status", "processing-label", "done-label"]));
105
+ ]), 1032, ["size", "title", "subtitle", "before-dismiss", "primary-label", "primary-disabled", "status", "processing-label", "done-label"]));
103
106
  }
104
107
  });
105
108
  function Y(t) {
106
- const n = I(t), e = w(!1), s = () => typeof t.defaults == "function" ? t.defaults() : t.defaults;
109
+ const n = I(t), e = w(!1), o = () => typeof t.defaults == "function" ? t.defaults() : t.defaults;
107
110
  async function r() {
108
111
  return await n.submit(t.run, {
109
112
  // The page updating itself after the call is the refresh: its failure is "saved, but could not be read back".
110
- refresh: t.done ? (a) => t.done?.(a) : void 0
113
+ refresh: t.done ? (s) => t.done?.(s) : void 0
111
114
  });
112
115
  }
113
116
  return {
114
117
  form: n,
115
118
  open: e,
116
- present(o) {
117
- n.hydrate({ ...s(), ...o }), e.value = !0;
119
+ present(a) {
120
+ n.hydrate({ ...o(), ...a }), e.value = !0;
118
121
  },
119
122
  dismiss() {
120
123
  e.value = !1;
121
124
  },
122
125
  run: r,
123
126
  async confirm() {
124
- const o = await r();
125
- if (o.status === "failed") throw new Error(o.failure.message);
126
- if (o.status === "aborted") throw new Error("aborted");
127
+ const a = await r();
128
+ if (a.status === "failed") throw new Error(a.failure.message);
129
+ if (a.status === "aborted") throw new Error("aborted");
127
130
  }
128
131
  };
129
132
  }