@ftlab/one-vue3 0.3.1 → 0.3.2
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/dist/{CheckMessageDialog-46a3ba33.js → CheckMessageDialog-77c20697.js} +20 -18
- package/dist/ftlOne.js +11 -9
- package/dist/{index-9380a3cc.js → index-99103fbf.js} +2791 -2829
- package/dist/lang-eedab336.js +57 -0
- package/dist/storage-9f2ae3ed.js +30 -0
- package/dist/store.js +9 -0
- package/dist/utils-0eda3e43.js +17 -0
- package/dist/utils.js +32 -31
- package/package.json +9 -1
- package/dist/utils-4ed080a5.js +0 -45
- package/store/auth.js +0 -63
- package/store/index.js +0 -5
- package/store/lang.js +0 -16
- package/utils/date.ts +0 -119
- package/utils/index.ts +0 -3
- package/utils/storage.ts +0 -27
- package/utils/utils.ts +0 -10
|
@@ -11,7 +11,7 @@ var M = (n, t, e) => t in n ? R(n, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return n;
|
|
12
12
|
}, U = (n, t) => G(n, J(t));
|
|
13
13
|
var V = (n, t, e) => new Promise((i, l) => {
|
|
14
|
-
var
|
|
14
|
+
var p = (a) => {
|
|
15
15
|
try {
|
|
16
16
|
d(e.next(a));
|
|
17
17
|
} catch (_) {
|
|
@@ -23,13 +23,15 @@ var V = (n, t, e) => new Promise((i, l) => {
|
|
|
23
23
|
} catch (_) {
|
|
24
24
|
l(_);
|
|
25
25
|
}
|
|
26
|
-
}, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(
|
|
26
|
+
}, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(p, g);
|
|
27
27
|
d((e = e.apply(n, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as b, computed as k, openBlock as m, createElementBlock as C, normalizeClass as E, unref as o, normalizeStyle as Q, renderSlot as W, createCommentVNode as I, ref as h, inject as $, createBlock as w, isRef as X, withCtx as c, createElementVNode as y, toDisplayString as f, createVNode as v, withDirectives as Y, Fragment as Z, renderList as ee, createTextVNode as D } from "vue";
|
|
30
|
-
import { b as te, d as oe, u as ne, _ as ae, w as se, c as le, a as ie, E as re, e as de, f as ce, g as
|
|
31
|
-
import "./utils-
|
|
30
|
+
import { b as te, d as oe, u as ne, _ as ae, w as se, c as le, a as ie, E as re, e as de, f as ce, g as pe, h as ue, v as me, i as _e } from "./index-99103fbf.js";
|
|
31
|
+
import "./utils-0eda3e43.js";
|
|
32
|
+
import "./lang-eedab336.js";
|
|
32
33
|
import "pinia";
|
|
34
|
+
import "./storage-9f2ae3ed.js";
|
|
33
35
|
const fe = te({
|
|
34
36
|
direction: {
|
|
35
37
|
type: String,
|
|
@@ -53,7 +55,7 @@ const fe = te({
|
|
|
53
55
|
const t = n, e = ne("divider"), i = k(() => e.cssVar({
|
|
54
56
|
"border-style": t.borderStyle
|
|
55
57
|
}));
|
|
56
|
-
return (l,
|
|
58
|
+
return (l, p) => (m(), C("div", {
|
|
57
59
|
class: E([o(e).b(), o(e).m(l.direction)]),
|
|
58
60
|
style: Q(o(i)),
|
|
59
61
|
role: "separator"
|
|
@@ -72,7 +74,7 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
|
|
|
72
74
|
__name: "CheckMessageDialog",
|
|
73
75
|
emits: ["preventHiddenDropdown"],
|
|
74
76
|
setup(n, { expose: t, emit: e }) {
|
|
75
|
-
const i = h(!1), l = $("authBaseUrl"),
|
|
77
|
+
const i = h(!1), l = $("authBaseUrl"), p = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), a = h({}), _ = {
|
|
76
78
|
Authorization: `Bearer ${g}`
|
|
77
79
|
}, N = k(
|
|
78
80
|
() => `${l || le.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
|
|
@@ -96,12 +98,12 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
|
|
|
96
98
|
P(r), i.value = !0;
|
|
97
99
|
}
|
|
98
100
|
}), (r, s) => {
|
|
99
|
-
const A = we, B = re, H = de, L = ce, F =
|
|
101
|
+
const A = we, B = re, H = de, L = ce, F = pe, j = ue, q = me;
|
|
100
102
|
return m(), w(j, {
|
|
101
103
|
center: "",
|
|
102
|
-
title: o(
|
|
104
|
+
title: o(p).dialogTitleText,
|
|
103
105
|
modelValue: o(i),
|
|
104
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
106
|
+
"onUpdate:modelValue": s[1] || (s[1] = (u) => X(i) ? i.value = u : null),
|
|
105
107
|
"append-to-body": "",
|
|
106
108
|
model: !1,
|
|
107
109
|
onClosed: s[2] || (s[2] = () => {
|
|
@@ -123,12 +125,12 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
|
|
|
123
125
|
dropdown: c(() => [
|
|
124
126
|
v(L, null, {
|
|
125
127
|
default: c(() => [
|
|
126
|
-
(m(!0), C(Z, null, ee(o(a).immAttachments, (
|
|
127
|
-
key:
|
|
128
|
-
onClick: () => z(
|
|
128
|
+
(m(!0), C(Z, null, ee(o(a).immAttachments, (u) => (m(), w(H, {
|
|
129
|
+
key: u.fileDownloadUrl,
|
|
130
|
+
onClick: () => z(u.fileDownloadUrl)
|
|
129
131
|
}, {
|
|
130
132
|
default: c(() => [
|
|
131
|
-
D(f(
|
|
133
|
+
D(f(u.fileName), 1)
|
|
132
134
|
]),
|
|
133
135
|
_: 2
|
|
134
136
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -139,7 +141,7 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
|
|
|
139
141
|
default: c(() => [
|
|
140
142
|
v(B, null, {
|
|
141
143
|
default: c(() => [
|
|
142
|
-
D(f(o(
|
|
144
|
+
D(f(o(p).downloadText), 1)
|
|
143
145
|
]),
|
|
144
146
|
_: 1
|
|
145
147
|
})
|
|
@@ -147,10 +149,10 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
|
|
|
147
149
|
_: 1
|
|
148
150
|
})) : I("", !0),
|
|
149
151
|
v(B, {
|
|
150
|
-
onClick: s[0] || (s[0] = (
|
|
152
|
+
onClick: s[0] || (s[0] = (u) => i.value = !1)
|
|
151
153
|
}, {
|
|
152
154
|
default: c(() => [
|
|
153
|
-
D(f(o(
|
|
155
|
+
D(f(o(p).cancelButtonText), 1)
|
|
154
156
|
]),
|
|
155
157
|
_: 1
|
|
156
158
|
})
|
|
@@ -161,7 +163,7 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
|
|
|
161
163
|
};
|
|
162
164
|
}
|
|
163
165
|
});
|
|
164
|
-
const
|
|
166
|
+
const Te = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-0003507a"]]);
|
|
165
167
|
export {
|
|
166
|
-
|
|
168
|
+
Te as default
|
|
167
169
|
};
|
package/dist/ftlOne.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e, l as m, n as p, F, m as d, k as b, o as f } from "./index-99103fbf.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "./utils-
|
|
3
|
+
import "./utils-0eda3e43.js";
|
|
4
|
+
import "./lang-eedab336.js";
|
|
4
5
|
import "pinia";
|
|
6
|
+
import "./storage-9f2ae3ed.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
e as FtlEntry,
|
|
9
|
+
m as FtlMessage,
|
|
10
|
+
p as FtlMultipleChoose,
|
|
11
|
+
F as FtlNavbar,
|
|
12
|
+
d as FtlPasswordDialog,
|
|
13
|
+
b as FtlSidebar,
|
|
14
|
+
f as default
|
|
13
15
|
};
|