@ftlab/one-vue3 0.3.7 → 0.3.8-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.
@@ -1,176 +1,176 @@
1
- * {
2
- box-sizing: border-box;
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- @for $i from -20 through 20 {
8
- $num: 5 * $i;
9
- .p#{$num} {
10
- padding: 0px + $num;
11
- }
12
- .pt#{$num} {
13
- padding-top: 0px + $num;
14
- }
15
- .pr#{$num} {
16
- padding-right: 0px + $num;
17
- }
18
- .pb#{$num} {
19
- padding-bottom: 0px + $num;
20
- }
21
- .pl#{$num} {
22
- padding-left: 0px + $num;
23
- }
24
- .pv#{$num} {
25
- padding-top: 0px + $num;
26
- padding-bottom: 0px + $num;
27
- }
28
- .ph#{$num} {
29
- padding-left: 0px + $num;
30
- padding-right: 0px + $num;
31
- }
32
- .m#{$num} {
33
- margin: 0px + $num;
34
- }
35
- .mt#{$num} {
36
- margin-top: 0px + $num;
37
- }
38
- .mr#{$num} {
39
- margin-right: 0px + $num;
40
- }
41
- .mb#{$num} {
42
- margin-bottom: 0px + $num;
43
- }
44
- .ml#{$num} {
45
- margin-left: 0px + $num;
46
- }
47
- .mv#{$num} {
48
- margin-top: 0px + $num;
49
- margin-bottom: 0px + $num;
50
- }
51
- .mh#{$num} {
52
- margin-left: 0px + $num;
53
- margin-right: 0px + $num;
54
- }
55
- }
56
-
57
- @for $j from 12 through 40 {
58
- .fs#{$j} {
59
- font-size: 0px + $j !important;
60
- }
61
- .lh#{$j} {
62
- line-height: 0px + $j;
63
- }
64
- }
65
-
66
- .f {
67
- display: flex;
68
- }
69
-
70
- .f-s-c {
71
- display: flex;
72
- justify-content: space-between;
73
- align-items: center;
74
- }
75
-
76
- .f-s {
77
- display: flex;
78
- justify-content: space-between;
79
- }
80
-
81
- .f-c {
82
- display: flex;
83
- align-items: center;
84
- }
85
-
86
- .f-c-c {
87
- display: flex;
88
- justify-content: center;
89
- align-items: center;
90
- }
91
-
92
- .f-c-e {
93
- display: flex;
94
- justify-content: flex-end;
95
- align-items: center;
96
- }
97
-
98
- .f-c-c-c {
99
- display: flex;
100
- flex-direction: column;
101
- justify-content: center;
102
- align-items: center;
103
- }
104
-
105
- .f600 {
106
- font-weight: 600;
107
- }
108
-
109
- .tl {
110
- text-align: left;
111
- }
112
- .tc {
113
- text-align: center;
114
- }
115
- .tr {
116
- text-align: right;
117
- }
118
-
119
- .cp {
120
- cursor: pointer;
121
- }
122
-
123
- .breadcrumb-enter-active,
124
- .breadcrumb-leave-active {
125
- transition: all 0.5s;
126
- }
127
-
128
- .breadcrumb-enter,
129
- .breadcrumb-leave-active {
130
- opacity: 0;
131
- transform: translateX(20px);
132
- }
133
-
134
- .breadcrumb-move {
135
- transition: all 0.5s;
136
- }
137
-
138
- .breadcrumb-leave-active {
139
- position: absolute;
140
- }
141
-
142
- .fade-enter-from {
143
- opacity: 0;
144
- transform: translateX(-30px);
145
- }
146
-
147
- .fade-leave-to {
148
- opacity: 0;
149
- transform: translateX(30px);
150
- }
151
-
152
- .fade-enter-active {
153
- transition: all 0.5s;
154
- }
155
- .fade-leave-active {
156
- transition: all 0.5s;
157
- }
158
-
159
- ::-webkit-scrollbar {
160
- width: 8px;
161
- height: 8px;
162
- z-index: 9999;
163
- }
164
-
165
- ::-webkit-scrollbar-track {
166
- border-radius: 0;
167
- background-color: transparent;
168
- }
169
-
170
- input:-webkit-autofill,
171
- input:-webkit-autofill:hover,
172
- input:-webkit-autofill:focus,
173
- input:-webkit-autofill:active {
174
- transition-delay: 111111s;
175
- transition: color 11111s ease-out, background-color 111111s ease-out;
1
+ * {
2
+ box-sizing: border-box;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ @for $i from -20 through 20 {
8
+ $num: 5 * $i;
9
+ .p#{$num} {
10
+ padding: 0px + $num;
11
+ }
12
+ .pt#{$num} {
13
+ padding-top: 0px + $num;
14
+ }
15
+ .pr#{$num} {
16
+ padding-right: 0px + $num;
17
+ }
18
+ .pb#{$num} {
19
+ padding-bottom: 0px + $num;
20
+ }
21
+ .pl#{$num} {
22
+ padding-left: 0px + $num;
23
+ }
24
+ .pv#{$num} {
25
+ padding-top: 0px + $num;
26
+ padding-bottom: 0px + $num;
27
+ }
28
+ .ph#{$num} {
29
+ padding-left: 0px + $num;
30
+ padding-right: 0px + $num;
31
+ }
32
+ .m#{$num} {
33
+ margin: 0px + $num;
34
+ }
35
+ .mt#{$num} {
36
+ margin-top: 0px + $num;
37
+ }
38
+ .mr#{$num} {
39
+ margin-right: 0px + $num;
40
+ }
41
+ .mb#{$num} {
42
+ margin-bottom: 0px + $num;
43
+ }
44
+ .ml#{$num} {
45
+ margin-left: 0px + $num;
46
+ }
47
+ .mv#{$num} {
48
+ margin-top: 0px + $num;
49
+ margin-bottom: 0px + $num;
50
+ }
51
+ .mh#{$num} {
52
+ margin-left: 0px + $num;
53
+ margin-right: 0px + $num;
54
+ }
55
+ }
56
+
57
+ @for $j from 12 through 40 {
58
+ .fs#{$j} {
59
+ font-size: 0px + $j !important;
60
+ }
61
+ .lh#{$j} {
62
+ line-height: 0px + $j;
63
+ }
64
+ }
65
+
66
+ .f {
67
+ display: flex;
68
+ }
69
+
70
+ .f-s-c {
71
+ display: flex;
72
+ justify-content: space-between;
73
+ align-items: center;
74
+ }
75
+
76
+ .f-s {
77
+ display: flex;
78
+ justify-content: space-between;
79
+ }
80
+
81
+ .f-c {
82
+ display: flex;
83
+ align-items: center;
84
+ }
85
+
86
+ .f-c-c {
87
+ display: flex;
88
+ justify-content: center;
89
+ align-items: center;
90
+ }
91
+
92
+ .f-c-e {
93
+ display: flex;
94
+ justify-content: flex-end;
95
+ align-items: center;
96
+ }
97
+
98
+ .f-c-c-c {
99
+ display: flex;
100
+ flex-direction: column;
101
+ justify-content: center;
102
+ align-items: center;
103
+ }
104
+
105
+ .f600 {
106
+ font-weight: 600;
107
+ }
108
+
109
+ .tl {
110
+ text-align: left;
111
+ }
112
+ .tc {
113
+ text-align: center;
114
+ }
115
+ .tr {
116
+ text-align: right;
117
+ }
118
+
119
+ .cp {
120
+ cursor: pointer;
121
+ }
122
+
123
+ .breadcrumb-enter-active,
124
+ .breadcrumb-leave-active {
125
+ transition: all 0.5s;
126
+ }
127
+
128
+ .breadcrumb-enter,
129
+ .breadcrumb-leave-active {
130
+ opacity: 0;
131
+ transform: translateX(20px);
132
+ }
133
+
134
+ .breadcrumb-move {
135
+ transition: all 0.5s;
136
+ }
137
+
138
+ .breadcrumb-leave-active {
139
+ position: absolute;
140
+ }
141
+
142
+ .fade-enter-from {
143
+ opacity: 0;
144
+ transform: translateX(-30px);
145
+ }
146
+
147
+ .fade-leave-to {
148
+ opacity: 0;
149
+ transform: translateX(30px);
150
+ }
151
+
152
+ .fade-enter-active {
153
+ transition: all 0.5s;
154
+ }
155
+ .fade-leave-active {
156
+ transition: all 0.5s;
157
+ }
158
+
159
+ ::-webkit-scrollbar {
160
+ width: 8px;
161
+ height: 8px;
162
+ z-index: 9999;
163
+ }
164
+
165
+ ::-webkit-scrollbar-track {
166
+ border-radius: 0;
167
+ background-color: transparent;
168
+ }
169
+
170
+ input:-webkit-autofill,
171
+ input:-webkit-autofill:hover,
172
+ input:-webkit-autofill:focus,
173
+ input:-webkit-autofill:active {
174
+ transition-delay: 111111s;
175
+ transition: color 11111s ease-out, background-color 111111s ease-out;
176
176
  }
package/components.d.ts CHANGED
@@ -11,7 +11,6 @@ declare module 'vue' {
11
11
  ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
12
12
  ElButton: typeof import('element-plus/es')['ElButton']
13
13
  ElCard: typeof import('element-plus/es')['ElCard']
14
- ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
15
14
  ElDialog: typeof import('element-plus/es')['ElDialog']
16
15
  ElDivider: typeof import('element-plus/es')['ElDivider']
17
16
  ElDropdown: typeof import('element-plus/es')['ElDropdown']
@@ -11,27 +11,25 @@ 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 p = (a) => {
14
+ var u = (s) => {
15
15
  try {
16
- d(e.next(a));
16
+ d(e.next(s));
17
17
  } catch (_) {
18
18
  l(_);
19
19
  }
20
- }, g = (a) => {
20
+ }, g = (s) => {
21
21
  try {
22
- d(e.throw(a));
22
+ d(e.throw(s));
23
23
  } catch (_) {
24
24
  l(_);
25
25
  }
26
- }, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(p, g);
26
+ }, d = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(u, g);
27
27
  d((e = e.apply(n, t)).next());
28
28
  });
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 pe, h as ue, v as me, i as _e } from "./index-90369685.js";
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
31
  import "./utils-0eda3e43.js";
32
- import "./lang-f10931f3.js";
33
- import "pinia";
34
- import "./storage-9f2ae3ed.js";
32
+ import "./vuex.esm-bundler-2a047356.js";
35
33
  const fe = te({
36
34
  direction: {
37
35
  type: String,
@@ -47,49 +45,49 @@ const fe = te({
47
45
  type: oe(String),
48
46
  default: "solid"
49
47
  }
50
- }), ve = b({
48
+ }), ve = E({
51
49
  name: "ElDivider"
52
- }), ge = /* @__PURE__ */ b(U(T({}, ve), {
50
+ }), ge = /* @__PURE__ */ E(U(T({}, ve), {
53
51
  props: fe,
54
52
  setup(n) {
55
53
  const t = n, e = ne("divider"), i = k(() => e.cssVar({
56
54
  "border-style": t.borderStyle
57
55
  }));
58
- return (l, p) => (m(), C("div", {
59
- class: E([o(e).b(), o(e).m(l.direction)]),
56
+ return (l, u) => (m(), b("div", {
57
+ class: C([o(e).b(), o(e).m(l.direction)]),
60
58
  style: Q(o(i)),
61
59
  role: "separator"
62
60
  }, [
63
- l.$slots.default && l.direction !== "vertical" ? (m(), C("div", {
61
+ l.$slots.default && l.direction !== "vertical" ? (m(), b("div", {
64
62
  key: 0,
65
- class: E([o(e).e("text"), o(e).is(l.contentPosition)])
63
+ class: C([o(e).e("text"), o(e).is(l.contentPosition)])
66
64
  }, [
67
65
  W(l.$slots, "default")
68
66
  ], 2)) : I("v-if", !0)
69
67
  ], 6));
70
68
  }
71
69
  }));
72
- var he = /* @__PURE__ */ ae(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
73
- const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */ b({
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({
74
72
  __name: "CheckMessageDialog",
75
73
  emits: ["preventHiddenDropdown"],
76
74
  setup(n, { expose: t, emit: e }) {
77
- const i = h(!1), l = $("authBaseUrl"), p = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), a = h({}), _ = {
75
+ const i = h(!1), l = $("authBaseUrl"), u = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), s = h({}), _ = {
78
76
  Authorization: `Bearer ${g}`
79
77
  }, N = k(
80
78
  () => `${l || le.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
81
79
  ), P = (r) => V(this, null, function* () {
82
80
  try {
83
81
  d.value = !0;
84
- const s = yield ie.get(N.value, { headers: _, params: { msgId: r } });
85
- s && s.data && (a.value = s.data);
86
- } catch (s) {
87
- console.log(s);
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);
88
86
  } finally {
89
87
  d.value = !1;
90
88
  }
91
89
  }), x = k(
92
- () => a.value.immAttachments && a.value.immAttachments.length !== 0
90
+ () => s.value.immAttachments && s.value.immAttachments.length !== 0
93
91
  ), z = (r) => {
94
92
  r && window.open(r, "_blank");
95
93
  };
@@ -97,40 +95,40 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
97
95
  open: (r) => {
98
96
  P(r), i.value = !0;
99
97
  }
100
- }), (r, s) => {
101
- const A = we, B = re, H = de, L = ce, F = pe, j = ue, q = me;
98
+ }), (r, a) => {
99
+ const A = we, B = re, H = de, L = ce, F = ue, j = pe, q = me;
102
100
  return m(), w(j, {
103
101
  center: "",
104
- title: o(p).dialogTitleText,
102
+ title: o(u).dialogTitleText,
105
103
  modelValue: o(i),
106
- "onUpdate:modelValue": s[1] || (s[1] = (u) => X(i) ? i.value = u : null),
104
+ "onUpdate:modelValue": a[1] || (a[1] = (p) => X(i) ? i.value = p : null),
107
105
  "append-to-body": "",
108
106
  model: !1,
109
- onClosed: s[2] || (s[2] = () => {
107
+ onClosed: a[2] || (a[2] = () => {
110
108
  r.$emit("preventHiddenDropdown");
111
109
  })
112
110
  }, {
113
111
  default: c(() => [
114
- y("header", ye, f(o(a).title), 1),
112
+ y("header", ye, f(o(s).title), 1),
115
113
  v(A),
116
114
  Y(y("div", {
117
- innerHTML: o(a).content
115
+ innerHTML: o(s).content
118
116
  }, null, 8, De), [
119
117
  [q, o(d)]
120
118
  ]),
121
119
  y("footer", {
122
- class: E(["mt15", [o(x) ? "f-s-c" : "f-c-e"]])
120
+ class: C(["mt15", [o(x) ? "f-s-c" : "f-c-e"]])
123
121
  }, [
124
122
  o(x) ? (m(), w(F, { key: 0 }, {
125
123
  dropdown: c(() => [
126
124
  v(L, null, {
127
125
  default: c(() => [
128
- (m(!0), C(Z, null, ee(o(a).immAttachments, (u) => (m(), w(H, {
129
- key: u.fileDownloadUrl,
130
- onClick: () => z(u.fileDownloadUrl)
126
+ (m(!0), b(Z, null, ee(o(s).immAttachments, (p) => (m(), w(H, {
127
+ key: p.fileDownloadUrl,
128
+ onClick: () => z(p.fileDownloadUrl)
131
129
  }, {
132
130
  default: c(() => [
133
- D(f(u.fileName), 1)
131
+ D(f(p.fileName), 1)
134
132
  ]),
135
133
  _: 2
136
134
  }, 1032, ["onClick"]))), 128))
@@ -141,7 +139,7 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
141
139
  default: c(() => [
142
140
  v(B, null, {
143
141
  default: c(() => [
144
- D(f(o(p).downloadText), 1)
142
+ D(f(o(u).downloadText), 1)
145
143
  ]),
146
144
  _: 1
147
145
  })
@@ -149,10 +147,10 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
149
147
  _: 1
150
148
  })) : I("", !0),
151
149
  v(B, {
152
- onClick: s[0] || (s[0] = (u) => i.value = !1)
150
+ onClick: a[0] || (a[0] = (p) => i.value = !1)
153
151
  }, {
154
152
  default: c(() => [
155
- D(f(o(p).cancelButtonText), 1)
153
+ D(f(o(u).cancelButtonText), 1)
156
154
  ]),
157
155
  _: 1
158
156
  })
@@ -163,7 +161,7 @@ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /*
163
161
  };
164
162
  }
165
163
  });
166
- const Te = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-0003507a"]]);
164
+ const Se = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-b6d5935c"]]);
167
165
  export {
168
- Te as default
166
+ Se as default
169
167
  };
package/dist/ftlOne.js CHANGED
@@ -1,15 +1,13 @@
1
- import { j as e, l as m, n as p, F, m as d, k as b, o as f } from "./index-90369685.js";
1
+ import { j as r, l as e, n as F, F as i, m, k as p, o as d } from "./index-2284be94.js";
2
2
  import "vue";
3
3
  import "./utils-0eda3e43.js";
4
- import "./lang-f10931f3.js";
5
- import "pinia";
6
- import "./storage-9f2ae3ed.js";
4
+ import "./vuex.esm-bundler-2a047356.js";
7
5
  export {
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
6
+ r as FtlEntry,
7
+ e as FtlMessage,
8
+ F as FtlMultipleChoose,
9
+ i as FtlNavbar,
10
+ m as FtlPasswordDialog,
11
+ p as FtlSidebar,
12
+ d as default
15
13
  };