@wssto2/vue-core 0.9.2 → 0.9.4

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 (51) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{Activity-DBy2ZG5b.js → Activity-29hsZ28j.js} +3 -3
  3. package/dist/{Changes-DDicMqpj.js → Changes-Dxjdkd_5.js} +2 -2
  4. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-5QSqmIFj.js → CollectionPage.vue_vue_type_script_setup_true_lang-DHcekGNn.js} +3 -3
  5. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-Ba3vLxt6.js → DataTable.vue_vue_type_script_setup_true_lang-8kBsNRuq.js} +1 -1
  6. package/dist/{DateField.vue_vue_type_script_setup_true_lang-MP9frI9g.js → DateField.vue_vue_type_script_setup_true_lang-BhKdCVFn.js} +2 -2
  7. package/dist/{DeadLetters-qOY8lQQn.js → DeadLetters-Bb5pPlOY.js} +3 -3
  8. package/dist/{General-VsiXKARg.js → General-BAG7S6wV.js} +3 -3
  9. package/dist/{IncidentRecord-CoweBFQ8.js → IncidentRecord-D8aOpNHo.js} +2 -2
  10. package/dist/{IncidentsList-DphbU1FK.js → IncidentsList-C0cFl0Db.js} +5 -5
  11. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-CLN2COfp.js → NumberField.vue_vue_type_script_setup_true_lang-TGGAq8J-.js} +1 -1
  12. package/dist/{ProfilePage-DrKiof1I.js → ProfilePage-BnohZIEg.js} +4 -4
  13. package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CrtVy3Ea.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-aWkKwxNe.js} +2 -2
  14. package/dist/{ServiceAccountRecord-DnunLV1K.js → ServiceAccountRecord-bxX9yQkC.js} +4 -4
  15. package/dist/{ServiceAccountsList-7OovJ7gR.js → ServiceAccountsList-BXE6htxk.js} +3 -3
  16. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-B04ECmcf.js → SessionList.vue_vue_type_script_setup_true_lang-Cnyt5V8T.js} +1 -1
  17. package/dist/{Sessions-DzyRG4PP.js → Sessions--Gvc0kxw.js} +2 -2
  18. package/dist/{SettingsPage-CaMER5m8.js → SettingsPage-DzDC7gD-.js} +5 -5
  19. package/dist/{SignIn-MHbY4kg8.js → SignIn-CTI_699e.js} +2 -2
  20. package/dist/{SignInPage-3nerqsOt.js → SignInPage-HKC1bm2E.js} +1 -1
  21. package/dist/{SignIns-B3uCHdLX.js → SignIns-BcqBgWgN.js} +2 -2
  22. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DsWI9A-z.js → TimeField.vue_vue_type_script_setup_true_lang-gGFfQLuK.js} +2 -2
  23. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CAz2W69d.js → Timestamp.vue_vue_type_script_setup_true_lang-ClZAAUMd.js} +1 -1
  24. package/dist/{UserRecord-m4c7H9X9.js → UserRecord-CtUPpbCt.js} +3 -3
  25. package/dist/{UsersList-C-c8J2XS.js → UsersList-BMkIgIg8.js} +5 -5
  26. package/dist/app/index.js +1 -1
  27. package/dist/{application-Dqm5sJdZ.js → application-BmXW6iW_.js} +1 -1
  28. package/dist/collection/index.js +3 -3
  29. package/dist/content/index.js +46 -49
  30. package/dist/{fieldMessages-DuyspfNV.js → fieldMessages-B6GHgi40.js} +1 -1
  31. package/dist/form/index.d.ts +2 -0
  32. package/dist/form/index.js +611 -593
  33. package/dist/form/storableText.d.ts +24 -0
  34. package/dist/format/format.d.ts +16 -4
  35. package/dist/format/index.d.ts +1 -1
  36. package/dist/format/index.js +1 -1
  37. package/dist/format-D8KUBmbS.js +87 -0
  38. package/dist/identity/index.js +1 -1
  39. package/dist/incidents/index.js +1 -1
  40. package/dist/{index-DLq_tp3t.js → index-CdtofdcJ.js} +13 -13
  41. package/dist/{index-DwgdsKJN.js → index-Dm-sdJJr.js} +3 -3
  42. package/dist/{index-W80SBKUX.js → index-Dz0LkLM8.js} +3 -3
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/notifications/index.js +1 -1
  46. package/dist/{rowLayout-DQtop4nN.js → rowLayout-CT8vWYgI.js} +3 -3
  47. package/dist/{status-MUjElKZC.js → status-BRA14qwX.js} +1 -1
  48. package/dist/testing/index.js +1 -1
  49. package/dist/{useTypedEntry-KfhdrVqp.js → useTypedEntry-C_Bk4sI0.js} +1 -1
  50. package/package.json +1 -1
  51. package/dist/format-Dn-BOb-o.js +0 -86
@@ -1,13 +1,13 @@
1
- import { _ as G, i as P } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
2
- import { defineComponent as c, openBlock as t, createElementBlock as n, createElementVNode as _, toDisplayString as u, createCommentVNode as i, normalizeClass as p, Fragment as d, renderList as w, createBlock as b, createSlots as $, withCtx as x, renderSlot as k, resolveDynamicComponent as B, computed as r, createTextVNode as g } from "vue";
3
- import { _ as D } from "../KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js";
4
- import { u as M } from "../format-Dn-BOb-o.js";
1
+ import { _ as I, i as P } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
2
+ import { defineComponent as c, openBlock as t, createElementBlock as l, createElementVNode as _, toDisplayString as u, createCommentVNode as m, normalizeClass as i, Fragment as p, renderList as h, createBlock as b, createSlots as w, withCtx as x, renderSlot as g, resolveDynamicComponent as $, computed as r, createTextVNode as v } from "vue";
3
+ import { _ as B } from "../KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js";
4
+ import { u as M } from "../format-D8KUBmbS.js";
5
5
  import { _ as j } from "../Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js";
6
- import { _ as H } from "../Timestamp.vue_vue_type_script_setup_true_lang-CAz2W69d.js";
7
- const F = {
6
+ import { _ as H } from "../Timestamp.vue_vue_type_script_setup_true_lang-ClZAAUMd.js";
7
+ const V = {
8
8
  role: "separator",
9
9
  class: "my-2 flex items-center gap-4"
10
- }, V = {
10
+ }, C = {
11
11
  key: 0,
12
12
  class: "select-none whitespace-nowrap font-mono text-2xs uppercase tracking-widest text-content-muted"
13
13
  }, K = /* @__PURE__ */ c({
@@ -15,61 +15,61 @@ const F = {
15
15
  props: {
16
16
  label: {}
17
17
  },
18
- setup(l) {
19
- return (e, a) => (t(), n("div", F, [
18
+ setup(n) {
19
+ return (e, a) => (t(), l("div", V, [
20
20
  a[0] || (a[0] = _("span", { class: "h-px flex-1 bg-border-separator" }, null, -1)),
21
- l.label ? (t(), n("span", V, u(l.label), 1)) : i("", !0),
21
+ n.label ? (t(), l("span", C, u(n.label), 1)) : m("", !0),
22
22
  a[1] || (a[1] = _("span", { class: "h-px flex-1 bg-border-separator" }, null, -1))
23
23
  ]));
24
24
  }
25
- }), I = /* @__PURE__ */ c({
25
+ }), T = /* @__PURE__ */ c({
26
26
  __name: "KeyValueList",
27
27
  props: {
28
28
  items: {},
29
29
  columns: { default: 1 }
30
30
  },
31
- setup(l) {
32
- const e = l, a = {
31
+ setup(n) {
32
+ const e = n, a = {
33
33
  1: "grid-cols-1",
34
34
  2: "grid-cols-1 sm:grid-cols-2",
35
35
  3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"
36
36
  };
37
- return (s, f) => (t(), n("dl", {
38
- class: p(["grid gap-x-6 gap-y-3", a[e.columns]])
37
+ return (o, d) => (t(), l("dl", {
38
+ class: i(["grid gap-x-6 gap-y-3", a[e.columns]])
39
39
  }, [
40
- (t(!0), n(d, null, w(e.items, (o) => (t(), b(D, {
41
- key: o.key,
42
- label: o.label,
43
- value: o.value,
44
- "data-key": o.key
45
- }, $({ _: 2 }, [
46
- s.$slots.value ? {
40
+ (t(!0), l(p, null, h(e.items, (s) => (t(), b(B, {
41
+ key: s.key,
42
+ label: s.label,
43
+ value: s.value,
44
+ "data-key": s.key
45
+ }, w({ _: 2 }, [
46
+ o.$slots.value ? {
47
47
  name: "default",
48
48
  fn: x(() => [
49
- k(s.$slots, "value", { item: o })
49
+ g(o.$slots, "value", { item: s })
50
50
  ]),
51
51
  key: "0"
52
52
  } : void 0
53
53
  ]), 1032, ["label", "value", "data-key"]))), 128))
54
54
  ], 2));
55
55
  }
56
- }), T = /* @__PURE__ */ c({
56
+ }), Z = /* @__PURE__ */ c({
57
57
  __name: "MicroLabel",
58
58
  props: {
59
59
  as: { default: "span" }
60
60
  },
61
- setup(l) {
62
- return (e, a) => (t(), b(B(l.as), { class: "text-2xs font-semibold uppercase tracking-[0.06em] text-content-muted" }, {
61
+ setup(n) {
62
+ return (e, a) => (t(), b($(n.as), { class: "text-2xs font-semibold uppercase tracking-[0.06em] text-content-muted" }, {
63
63
  default: x(() => [
64
- k(e.$slots, "default")
64
+ g(e.$slots, "default")
65
65
  ]),
66
66
  _: 3
67
67
  }));
68
68
  }
69
- }), C = {
69
+ }), D = {
70
70
  key: 0,
71
71
  class: "mr-0.5"
72
- }, Z = /* @__PURE__ */ c({
72
+ }, z = /* @__PURE__ */ c({
73
73
  __name: "Money",
74
74
  props: {
75
75
  amount: {},
@@ -79,34 +79,31 @@ const F = {
79
79
  emptyZero: { type: Boolean, default: !1 },
80
80
  signed: { type: Boolean, default: !1 }
81
81
  },
82
- setup(l) {
83
- const e = l, a = M(), s = r(() => typeof e.amount == "number" && Number.isFinite(e.amount) ? e.amount : 0), f = r(() => e.emptyZero && !s.value), o = r(() => !e.signed || !s.value || !Math.round(Math.abs(s.value) * 10 ** e.decimals) ? "" : s.value > 0 ? "+" : "−"), h = r(() => {
84
- const m = e.whole && Number.isInteger(s.value) ? 0 : e.decimals;
85
- return a.number(e.signed ? Math.abs(s.value) : s.value, { minimumFractionDigits: m, maximumFractionDigits: m });
86
- }), y = r(() => o.value === "+" ? "font-medium text-status-success-content" : o.value === "−" ? "font-medium text-status-danger-content" : ""), v = r(() => e.symbol ? a.currencySymbol : "");
87
- return (m, L) => (t(), n("span", {
88
- class: p(["whitespace-nowrap tabular-nums", y.value])
82
+ setup(n) {
83
+ const e = n, a = M(), o = r(() => typeof e.amount == "number" && Number.isFinite(e.amount) ? e.amount : 0), d = r(() => e.emptyZero && !o.value), s = r(() => !e.signed || !o.value || !Math.round(Math.abs(o.value) * 10 ** e.decimals) ? "" : o.value > 0 ? "+" : "−"), k = r(() => a.money(e.signed ? Math.abs(o.value) : o.value, { decimals: e.decimals, whole: e.whole, symbol: !1 })), f = r(() => s.value === "+" ? "font-medium text-status-success-content" : s.value === "−" ? "font-medium text-status-danger-content" : ""), y = r(() => e.symbol ? a.currencySymbol : "");
84
+ return (L, S) => (t(), l("span", {
85
+ class: i(["whitespace-nowrap tabular-nums", f.value])
89
86
  }, [
90
- f.value ? (t(), n(d, { key: 0 }, [
91
- g("—")
92
- ], 64)) : (t(), n(d, { key: 1 }, [
93
- o.value ? (t(), n("span", C, u(o.value), 1)) : i("", !0),
94
- g(u(h.value), 1),
95
- v.value ? (t(), n("span", {
87
+ d.value ? (t(), l(p, { key: 0 }, [
88
+ v("—")
89
+ ], 64)) : (t(), l(p, { key: 1 }, [
90
+ s.value ? (t(), l("span", D, u(s.value), 1)) : m("", !0),
91
+ v(u(k.value), 1),
92
+ y.value ? (t(), l("span", {
96
93
  key: 1,
97
- class: p(["ml-1 font-normal", y.value ? "opacity-75" : "text-content-muted"])
98
- }, u(v.value), 3)) : i("", !0)
94
+ class: i(["ml-1 font-normal", f.value ? "opacity-75" : "text-content-muted"])
95
+ }, u(y.value), 3)) : m("", !0)
99
96
  ], 64))
100
97
  ], 2));
101
98
  }
102
99
  });
103
100
  export {
104
- G as Avatar,
101
+ I as Avatar,
105
102
  K as Divider,
106
- D as KeyValue,
107
- I as KeyValueList,
108
- T as MicroLabel,
109
- Z as Money,
103
+ B as KeyValue,
104
+ T as KeyValueList,
105
+ Z as MicroLabel,
106
+ z as Money,
110
107
  j as Panel,
111
108
  H as Timestamp,
112
109
  P as initialsFor
@@ -1,6 +1,6 @@
1
1
  import { useI18n as f } from "vue-i18n";
2
2
  import { a as c } from "./error-CD7x0Jrz.js";
3
- import { u as m } from "./format-Dn-BOb-o.js";
3
+ import { u as m } from "./format-D8KUBmbS.js";
4
4
  import { u as l } from "./describeError-B-NMa--w.js";
5
5
  function E() {
6
6
  const { t: i, te: u } = f(), a = m(), d = l(), s = (e) => [`errors.${e}`, `core.errors.${e}`].find((t) => u(t));
@@ -32,6 +32,8 @@ export { default as FormRow } from "./FormRow.vue";
32
32
  export { default as FormView } from "./FormView.vue";
33
33
  export { default as I18nField } from "./I18nField.vue";
34
34
  export { missingLocales } from "./i18nText";
35
+ export { hasUnsupportedCharacters, refineStorableText, unsupportedCharactersCode } from "./storableText";
36
+ export type { StorableTextContext } from "./storableText";
35
37
  export type { I18nText } from "./i18nText";
36
38
  export { default as MoneyField } from "./MoneyField.vue";
37
39
  export { default as MonthYearField } from "./MonthYearField.vue";