@ftlab/one-vue3 0.3.8-6 → 0.4.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 (56) hide show
  1. package/CHANGELOG.md +36 -146
  2. package/README.md +143 -61
  3. package/assets/css/index.scss +25 -25
  4. package/assets/css/mixin.scss +142 -142
  5. package/assets/css/public.scss +175 -175
  6. package/assets/img/Germany.png +0 -0
  7. package/components.d.ts +6 -3
  8. package/dist/CheckMessageDialog-DygR717d.js +78 -0
  9. package/dist/FtlEntry.js +109 -0
  10. package/dist/FtlMessage.js +186 -0
  11. package/dist/FtlMultipleChoose-D8o09guU.js +312 -0
  12. package/dist/FtlMultipleChoose.js +1 -0
  13. package/dist/FtlNavbar-SsenWatk.js +191 -0
  14. package/dist/FtlNavbar.js +1 -0
  15. package/dist/FtlPasswordDialog-Dj_vS0mC.js +188 -0
  16. package/dist/FtlPasswordDialog.js +1 -0
  17. package/dist/FtlSidebar-D5AkRjgA.js +159 -0
  18. package/dist/FtlSidebar.js +1 -0
  19. package/dist/_plugin-vue_export-helper-Djzt4Yr7.js +7 -0
  20. package/dist/asyncToGenerator-CENKRPhX.js +26 -0
  21. package/dist/configProvider-CFU3sEdy.js +6 -0
  22. package/dist/ftlOne.js +16 -13
  23. package/dist/langSelect-DdbxrMFQ.js +106 -0
  24. package/dist/objectSpread2-Bpgh6RJW.js +57 -0
  25. package/dist/storage-DBeiC15W.js +25 -0
  26. package/dist/store.js +39 -98
  27. package/dist/style.css +2 -1
  28. package/dist/utils-BuLanift.js +10 -0
  29. package/dist/utils.js +558 -475
  30. package/eslint.config.js +34 -0
  31. package/ftlab-one-vue3-0.4.0.tgz +0 -0
  32. package/global.d.ts +63 -63
  33. package/i18n/cn.json +22 -22
  34. package/i18n/de.json +23 -0
  35. package/i18n/en.json +22 -22
  36. package/i18n/es.json +23 -0
  37. package/i18n/fr.json +22 -22
  38. package/package.json +119 -74
  39. package/vitest.config.ts +8 -0
  40. package/.eslintrc.cjs +0 -24
  41. package/.prettierrc.cjs +0 -18
  42. package/dist/CheckMessageDialog-0f85dbee.js +0 -167
  43. package/dist/index-2284be94.js +0 -15036
  44. package/dist/storage-9f2ae3ed.js +0 -30
  45. package/dist/utils-0eda3e43.js +0 -17
  46. package/dist/vuex.esm-bundler-2a047356.js +0 -770
  47. package/function/index.ts +0 -4
  48. package/function/info.js +0 -17
  49. package/function/permission.js +0 -17
  50. package/store/app.js +0 -24
  51. package/store/auth.js +0 -87
  52. package/store/index.ts +0 -10
  53. package/utils/date.ts +0 -127
  54. package/utils/index.ts +0 -3
  55. package/utils/storage.js +0 -27
  56. package/utils/utils.ts +0 -10
@@ -1,167 +0,0 @@
1
- var R = Object.defineProperty, G = Object.defineProperties;
2
- var J = Object.getOwnPropertyDescriptors;
3
- var S = Object.getOwnPropertySymbols;
4
- var K = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
- var M = (n, t, e) => t in n ? R(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, T = (n, t) => {
6
- for (var e in t || (t = {}))
7
- K.call(t, e) && M(n, e, t[e]);
8
- if (S)
9
- for (var e of S(t))
10
- O.call(t, e) && M(n, e, t[e]);
11
- return n;
12
- }, U = (n, t) => G(n, J(t));
13
- var V = (n, t, e) => new Promise((i, l) => {
14
- var u = (s) => {
15
- try {
16
- d(e.next(s));
17
- } catch (_) {
18
- l(_);
19
- }
20
- }, g = (s) => {
21
- try {
22
- d(e.throw(s));
23
- } catch (_) {
24
- l(_);
25
- }
26
- }, d = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(u, g);
27
- d((e = e.apply(n, t)).next());
28
- });
29
- import { defineComponent as E, computed as k, openBlock as m, createElementBlock as b, normalizeClass as C, 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 se, w as ae, c as le, a as ie, E as re, e as de, f as ce, g as ue, h as pe, v as me, i as _e } from "./index-2284be94.js";
31
- import "./utils-0eda3e43.js";
32
- import "./vuex.esm-bundler-2a047356.js";
33
- const fe = te({
34
- direction: {
35
- type: String,
36
- values: ["horizontal", "vertical"],
37
- default: "horizontal"
38
- },
39
- contentPosition: {
40
- type: String,
41
- values: ["left", "center", "right"],
42
- default: "center"
43
- },
44
- borderStyle: {
45
- type: oe(String),
46
- default: "solid"
47
- }
48
- }), ve = E({
49
- name: "ElDivider"
50
- }), ge = /* @__PURE__ */ E(U(T({}, ve), {
51
- props: fe,
52
- setup(n) {
53
- const t = n, e = ne("divider"), i = k(() => e.cssVar({
54
- "border-style": t.borderStyle
55
- }));
56
- return (l, u) => (m(), b("div", {
57
- class: C([o(e).b(), o(e).m(l.direction)]),
58
- style: Q(o(i)),
59
- role: "separator"
60
- }, [
61
- l.$slots.default && l.direction !== "vertical" ? (m(), b("div", {
62
- key: 0,
63
- class: C([o(e).e("text"), o(e).is(l.contentPosition)])
64
- }, [
65
- W(l.$slots, "default")
66
- ], 2)) : I("v-if", !0)
67
- ], 6));
68
- }
69
- }));
70
- var he = /* @__PURE__ */ se(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
71
- const we = ae(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */ E({
72
- __name: "CheckMessageDialog",
73
- emits: ["preventHiddenDropdown"],
74
- setup(n, { expose: t, emit: e }) {
75
- const i = h(!1), l = $("authBaseUrl"), u = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), s = h({}), _ = {
76
- Authorization: `Bearer ${g}`
77
- }, N = k(
78
- () => `${l || le.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
79
- ), P = (r) => V(this, null, function* () {
80
- try {
81
- d.value = !0;
82
- const a = yield ie.get(N.value, { headers: _, params: { msgId: r } });
83
- a && a.data && (s.value = a.data);
84
- } catch (a) {
85
- console.log(a);
86
- } finally {
87
- d.value = !1;
88
- }
89
- }), x = k(
90
- () => s.value.immAttachments && s.value.immAttachments.length !== 0
91
- ), z = (r) => {
92
- r && window.open(r, "_blank");
93
- };
94
- return t({
95
- open: (r) => {
96
- P(r), i.value = !0;
97
- }
98
- }), (r, a) => {
99
- const A = we, B = re, H = de, L = ce, F = ue, j = pe, q = me;
100
- return m(), w(j, {
101
- center: "",
102
- title: o(u).dialogTitleText,
103
- modelValue: o(i),
104
- "onUpdate:modelValue": a[1] || (a[1] = (p) => X(i) ? i.value = p : null),
105
- "append-to-body": "",
106
- model: !1,
107
- onClosed: a[2] || (a[2] = () => {
108
- r.$emit("preventHiddenDropdown");
109
- })
110
- }, {
111
- default: c(() => [
112
- y("header", ye, f(o(s).title), 1),
113
- v(A),
114
- Y(y("div", {
115
- innerHTML: o(s).content
116
- }, null, 8, De), [
117
- [q, o(d)]
118
- ]),
119
- y("footer", {
120
- class: C(["mt15", [o(x) ? "f-s-c" : "f-c-e"]])
121
- }, [
122
- o(x) ? (m(), w(F, { key: 0 }, {
123
- dropdown: c(() => [
124
- v(L, null, {
125
- default: c(() => [
126
- (m(!0), b(Z, null, ee(o(s).immAttachments, (p) => (m(), w(H, {
127
- key: p.fileDownloadUrl,
128
- onClick: () => z(p.fileDownloadUrl)
129
- }, {
130
- default: c(() => [
131
- D(f(p.fileName), 1)
132
- ]),
133
- _: 2
134
- }, 1032, ["onClick"]))), 128))
135
- ]),
136
- _: 1
137
- })
138
- ]),
139
- default: c(() => [
140
- v(B, null, {
141
- default: c(() => [
142
- D(f(o(u).downloadText), 1)
143
- ]),
144
- _: 1
145
- })
146
- ]),
147
- _: 1
148
- })) : I("", !0),
149
- v(B, {
150
- onClick: a[0] || (a[0] = (p) => i.value = !1)
151
- }, {
152
- default: c(() => [
153
- D(f(o(u).cancelButtonText), 1)
154
- ]),
155
- _: 1
156
- })
157
- ], 2)
158
- ]),
159
- _: 1
160
- }, 8, ["title", "modelValue"]);
161
- };
162
- }
163
- });
164
- const Se = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-b6d5935c"]]);
165
- export {
166
- Se as default
167
- };