@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.
- package/CHANGELOG.md +10 -0
- package/dist/{Activity-DBy2ZG5b.js → Activity-29hsZ28j.js} +3 -3
- package/dist/{Changes-DDicMqpj.js → Changes-Dxjdkd_5.js} +2 -2
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-5QSqmIFj.js → CollectionPage.vue_vue_type_script_setup_true_lang-DHcekGNn.js} +3 -3
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-Ba3vLxt6.js → DataTable.vue_vue_type_script_setup_true_lang-8kBsNRuq.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-MP9frI9g.js → DateField.vue_vue_type_script_setup_true_lang-BhKdCVFn.js} +2 -2
- package/dist/{DeadLetters-qOY8lQQn.js → DeadLetters-Bb5pPlOY.js} +3 -3
- package/dist/{General-VsiXKARg.js → General-BAG7S6wV.js} +3 -3
- package/dist/{IncidentRecord-CoweBFQ8.js → IncidentRecord-D8aOpNHo.js} +2 -2
- package/dist/{IncidentsList-DphbU1FK.js → IncidentsList-C0cFl0Db.js} +5 -5
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-CLN2COfp.js → NumberField.vue_vue_type_script_setup_true_lang-TGGAq8J-.js} +1 -1
- package/dist/{ProfilePage-DrKiof1I.js → ProfilePage-BnohZIEg.js} +4 -4
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CrtVy3Ea.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-aWkKwxNe.js} +2 -2
- package/dist/{ServiceAccountRecord-DnunLV1K.js → ServiceAccountRecord-bxX9yQkC.js} +4 -4
- package/dist/{ServiceAccountsList-7OovJ7gR.js → ServiceAccountsList-BXE6htxk.js} +3 -3
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-B04ECmcf.js → SessionList.vue_vue_type_script_setup_true_lang-Cnyt5V8T.js} +1 -1
- package/dist/{Sessions-DzyRG4PP.js → Sessions--Gvc0kxw.js} +2 -2
- package/dist/{SettingsPage-CaMER5m8.js → SettingsPage-DzDC7gD-.js} +5 -5
- package/dist/{SignIn-MHbY4kg8.js → SignIn-CTI_699e.js} +2 -2
- package/dist/{SignInPage-3nerqsOt.js → SignInPage-HKC1bm2E.js} +1 -1
- package/dist/{SignIns-B3uCHdLX.js → SignIns-BcqBgWgN.js} +2 -2
- 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
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CAz2W69d.js → Timestamp.vue_vue_type_script_setup_true_lang-ClZAAUMd.js} +1 -1
- package/dist/{UserRecord-m4c7H9X9.js → UserRecord-CtUPpbCt.js} +3 -3
- package/dist/{UsersList-C-c8J2XS.js → UsersList-BMkIgIg8.js} +5 -5
- package/dist/app/index.js +1 -1
- package/dist/{application-Dqm5sJdZ.js → application-BmXW6iW_.js} +1 -1
- package/dist/collection/index.js +3 -3
- package/dist/content/index.js +46 -49
- package/dist/{fieldMessages-DuyspfNV.js → fieldMessages-B6GHgi40.js} +1 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +611 -593
- package/dist/form/storableText.d.ts +24 -0
- package/dist/format/format.d.ts +16 -4
- package/dist/format/index.d.ts +1 -1
- package/dist/format/index.js +1 -1
- package/dist/format-D8KUBmbS.js +87 -0
- package/dist/identity/index.js +1 -1
- package/dist/incidents/index.js +1 -1
- package/dist/{index-DLq_tp3t.js → index-CdtofdcJ.js} +13 -13
- package/dist/{index-DwgdsKJN.js → index-Dm-sdJJr.js} +3 -3
- package/dist/{index-W80SBKUX.js → index-Dz0LkLM8.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{rowLayout-DQtop4nN.js → rowLayout-CT8vWYgI.js} +3 -3
- package/dist/{status-MUjElKZC.js → status-BRA14qwX.js} +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/{useTypedEntry-KfhdrVqp.js → useTypedEntry-C_Bk4sI0.js} +1 -1
- package/package.json +1 -1
- package/dist/format-Dn-BOb-o.js +0 -86
package/dist/content/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as c, openBlock as t, createElementBlock as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as M } from "../format-
|
|
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-
|
|
7
|
-
const
|
|
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
|
-
},
|
|
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(
|
|
19
|
-
return (e, a) => (t(),
|
|
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
|
-
|
|
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
|
-
}),
|
|
25
|
+
}), T = /* @__PURE__ */ c({
|
|
26
26
|
__name: "KeyValueList",
|
|
27
27
|
props: {
|
|
28
28
|
items: {},
|
|
29
29
|
columns: { default: 1 }
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const e =
|
|
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 (
|
|
38
|
-
class:
|
|
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),
|
|
41
|
-
key:
|
|
42
|
-
label:
|
|
43
|
-
value:
|
|
44
|
-
"data-key":
|
|
45
|
-
},
|
|
46
|
-
|
|
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
|
-
|
|
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
|
-
}),
|
|
56
|
+
}), Z = /* @__PURE__ */ c({
|
|
57
57
|
__name: "MicroLabel",
|
|
58
58
|
props: {
|
|
59
59
|
as: { default: "span" }
|
|
60
60
|
},
|
|
61
|
-
setup(
|
|
62
|
-
return (e, a) => (t(), b(
|
|
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
|
-
|
|
64
|
+
g(e.$slots, "default")
|
|
65
65
|
]),
|
|
66
66
|
_: 3
|
|
67
67
|
}));
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), D = {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "mr-0.5"
|
|
72
|
-
},
|
|
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(
|
|
83
|
-
const e =
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
], 64)) : (t(),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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:
|
|
98
|
-
}, u(
|
|
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
|
-
|
|
101
|
+
I as Avatar,
|
|
105
102
|
K as Divider,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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-
|
|
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));
|
package/dist/form/index.d.ts
CHANGED
|
@@ -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";
|