@ftlab/one-vue3 0.2.12 → 0.2.13

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,167 +1,166 @@
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 { b as Q, d as W, u as X, _ as Y, w as Z, c as ee, a as te, E as oe, e as ne, f as se, g as ae, h as le, v as ie, i as re } from "./index-0c7e1f50.js";
30
- import { defineComponent as E, computed as k, openBlock as m, createElementBlock as b, normalizeClass as C, unref as o, normalizeStyle as de, renderSlot as ce, createCommentVNode as I, ref as h, inject as $, createBlock as w, isRef as ue, withCtx as c, createElementVNode as y, toDisplayString as f, createVNode as v, withDirectives as pe, Fragment as me, renderList as _e, createTextVNode as D } from "vue";
31
- import "pinia";
32
- const fe = Q({
33
- direction: {
34
- type: String,
35
- values: ["horizontal", "vertical"],
36
- default: "horizontal"
37
- },
38
- contentPosition: {
39
- type: String,
40
- values: ["left", "center", "right"],
41
- default: "center"
42
- },
43
- borderStyle: {
44
- type: W(String),
45
- default: "solid"
46
- }
47
- }), ve = E({
48
- name: "ElDivider"
49
- }), ge = /* @__PURE__ */ E(U(T({}, ve), {
50
- props: fe,
51
- setup(n) {
52
- const t = n, e = X("divider"), i = k(() => e.cssVar({
53
- "border-style": t.borderStyle
54
- }));
55
- return (l, u) => (m(), b("div", {
56
- class: C([o(e).b(), o(e).m(l.direction)]),
57
- style: de(o(i)),
58
- role: "separator"
59
- }, [
60
- l.$slots.default && l.direction !== "vertical" ? (m(), b("div", {
61
- key: 0,
62
- class: C([o(e).e("text"), o(e).is(l.contentPosition)])
63
- }, [
64
- ce(l.$slots, "default")
65
- ], 2)) : I("v-if", !0)
66
- ], 6));
67
- }
68
- }));
69
- var he = /* @__PURE__ */ Y(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
70
- const we = Z(he);
71
- const 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 || ee.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 te.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 = oe, H = ne, L = se, F = ae, j = le, q = ie;
100
- return m(), w(j, {
101
- center: "",
102
- title: o(u).dialogTitleText,
103
- modelValue: o(i),
104
- "onUpdate:modelValue": a[1] || (a[1] = (p) => ue(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
- pe(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(me, null, _e(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 Be = /* @__PURE__ */ re(ke, [["__scopeId", "data-v-b6d5935c"]]);
165
- export {
166
- Be as default
167
- };
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 = (a) => {
15
+ try {
16
+ d(e.next(a));
17
+ } catch (_) {
18
+ l(_);
19
+ }
20
+ }, g = (a) => {
21
+ try {
22
+ d(e.throw(a));
23
+ } catch (_) {
24
+ l(_);
25
+ }
26
+ }, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(u, g);
27
+ d((e = e.apply(n, t)).next());
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 ue, h as pe, v as me, i as _e } from "./index-2eef72ec.js";
31
+ import "pinia";
32
+ const fe = te({
33
+ direction: {
34
+ type: String,
35
+ values: ["horizontal", "vertical"],
36
+ default: "horizontal"
37
+ },
38
+ contentPosition: {
39
+ type: String,
40
+ values: ["left", "center", "right"],
41
+ default: "center"
42
+ },
43
+ borderStyle: {
44
+ type: oe(String),
45
+ default: "solid"
46
+ }
47
+ }), ve = b({
48
+ name: "ElDivider"
49
+ }), ge = /* @__PURE__ */ b(U(T({}, ve), {
50
+ props: fe,
51
+ setup(n) {
52
+ const t = n, e = ne("divider"), i = k(() => e.cssVar({
53
+ "border-style": t.borderStyle
54
+ }));
55
+ return (l, u) => (m(), C("div", {
56
+ class: E([o(e).b(), o(e).m(l.direction)]),
57
+ style: Q(o(i)),
58
+ role: "separator"
59
+ }, [
60
+ l.$slots.default && l.direction !== "vertical" ? (m(), C("div", {
61
+ key: 0,
62
+ class: E([o(e).e("text"), o(e).is(l.contentPosition)])
63
+ }, [
64
+ W(l.$slots, "default")
65
+ ], 2)) : I("v-if", !0)
66
+ ], 6));
67
+ }
68
+ }));
69
+ var he = /* @__PURE__ */ ae(ge, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
70
+ const we = se(he), ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */ b({
71
+ __name: "CheckMessageDialog",
72
+ emits: ["preventHiddenDropdown"],
73
+ setup(n, { expose: t, emit: e }) {
74
+ const i = h(!1), l = $("authBaseUrl"), u = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), a = h({}), _ = {
75
+ Authorization: `Bearer ${g}`
76
+ }, N = k(
77
+ () => `${l || le.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
78
+ ), P = (r) => V(this, null, function* () {
79
+ try {
80
+ d.value = !0;
81
+ const s = yield ie.get(N.value, { headers: _, params: { msgId: r } });
82
+ s && s.data && (a.value = s.data);
83
+ } catch (s) {
84
+ console.log(s);
85
+ } finally {
86
+ d.value = !1;
87
+ }
88
+ }), x = k(
89
+ () => a.value.immAttachments && a.value.immAttachments.length !== 0
90
+ ), z = (r) => {
91
+ r && window.open(r, "_blank");
92
+ };
93
+ return t({
94
+ open: (r) => {
95
+ P(r), i.value = !0;
96
+ }
97
+ }), (r, s) => {
98
+ const A = we, B = re, H = de, L = ce, F = ue, j = pe, q = me;
99
+ return m(), w(j, {
100
+ center: "",
101
+ title: o(u).dialogTitleText,
102
+ modelValue: o(i),
103
+ "onUpdate:modelValue": s[1] || (s[1] = (p) => X(i) ? i.value = p : null),
104
+ "append-to-body": "",
105
+ model: !1,
106
+ onClosed: s[2] || (s[2] = () => {
107
+ r.$emit("preventHiddenDropdown");
108
+ })
109
+ }, {
110
+ default: c(() => [
111
+ y("header", ye, f(o(a).title), 1),
112
+ v(A),
113
+ Y(y("div", {
114
+ innerHTML: o(a).content
115
+ }, null, 8, De), [
116
+ [q, o(d)]
117
+ ]),
118
+ y("footer", {
119
+ class: E(["mt15", [o(x) ? "f-s-c" : "f-c-e"]])
120
+ }, [
121
+ o(x) ? (m(), w(F, { key: 0 }, {
122
+ dropdown: c(() => [
123
+ v(L, null, {
124
+ default: c(() => [
125
+ (m(!0), C(Z, null, ee(o(a).immAttachments, (p) => (m(), w(H, {
126
+ key: p.fileDownloadUrl,
127
+ onClick: () => z(p.fileDownloadUrl)
128
+ }, {
129
+ default: c(() => [
130
+ D(f(p.fileName), 1)
131
+ ]),
132
+ _: 2
133
+ }, 1032, ["onClick"]))), 128))
134
+ ]),
135
+ _: 1
136
+ })
137
+ ]),
138
+ default: c(() => [
139
+ v(B, null, {
140
+ default: c(() => [
141
+ D(f(o(u).downloadText), 1)
142
+ ]),
143
+ _: 1
144
+ })
145
+ ]),
146
+ _: 1
147
+ })) : I("", !0),
148
+ v(B, {
149
+ onClick: s[0] || (s[0] = (p) => i.value = !1)
150
+ }, {
151
+ default: c(() => [
152
+ D(f(o(u).cancelButtonText), 1)
153
+ ]),
154
+ _: 1
155
+ })
156
+ ], 2)
157
+ ]),
158
+ _: 1
159
+ }, 8, ["title", "modelValue"]);
160
+ };
161
+ }
162
+ });
163
+ const Be = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-0003507a"]]);
164
+ export {
165
+ Be as default
166
+ };
@@ -0,0 +1 @@
1
+ "use strict";var T=Object.defineProperty,M=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var h=(n,o,t)=>o in n?T(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,w=(n,o)=>{for(var t in o||(o={}))$.call(o,t)&&h(n,t,o[t]);if(v)for(var t of v(o))z.call(o,t)&&h(n,t,o[t]);return n},y=(n,o)=>M(n,U(o));var k=(n,o,t)=>new Promise((i,s)=>{var u=l=>{try{c(t.next(l))}catch(m){s(m)}},f=l=>{try{c(t.throw(l))}catch(m){s(m)}},c=l=>l.done?i(l.value):Promise.resolve(l.value).then(u,f);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-eaafe232.cjs");require("pinia");const P=r.buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:r.definePropType(String),default:"solid"}}),I=e.defineComponent({name:"ElDivider"}),A=e.defineComponent(y(w({},I),{props:P,setup(n){const o=n,t=r.useNamespace("divider"),i=e.computed(()=>t.cssVar({"border-style":o.borderStyle}));return(s,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).b(),e.unref(t).m(s.direction)]),style:e.normalizeStyle(e.unref(i)),role:"separator"},[s.$slots.default&&s.direction!=="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t).e("text"),e.unref(t).is(s.contentPosition)])},[e.renderSlot(s.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],6))}}));var H=r._export_sfc(A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const q=r.withInstall(H),L={class:"dialog__title"},j=["innerHTML"],F=e.defineComponent({__name:"CheckMessageDialog",emits:["preventHiddenDropdown"],setup(n,{expose:o,emit:t}){const i=e.ref(!1),s=e.inject("authBaseUrl"),u=e.inject("dialogI18n"),f=localStorage.getItem("token")||"",c=e.ref(!1),l=e.ref({}),m={Authorization:`Bearer ${f}`},C=e.computed(()=>`${s||r.configProxy.authBaseUrl||"https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`),D=d=>k(this,null,function*(){try{c.value=!0;const a=yield r.axios.get(C.value,{headers:m,params:{msgId:d}});a&&a.data&&(l.value=a.data)}catch(a){console.log(a)}finally{c.value=!1}}),_=e.computed(()=>l.value.immAttachments&&l.value.immAttachments.length!==0),B=d=>{d&&window.open(d,"_blank")};return o({open:d=>{D(d),i.value=!0}}),(d,a)=>{const x=q,g=r.ElButton,V=r.ElDropdownItem,S=r.ElDropdownMenu,E=r.ElDropdown,N=r.ElDialog,b=r.vLoading;return e.openBlock(),e.createBlock(N,{center:"",title:e.unref(u).dialogTitleText,modelValue:e.unref(i),"onUpdate:modelValue":a[1]||(a[1]=p=>e.isRef(i)?i.value=p:null),"append-to-body":"",model:!1,onClosed:a[2]||(a[2]=()=>{d.$emit("preventHiddenDropdown")})},{default:e.withCtx(()=>[e.createElementVNode("header",L,e.toDisplayString(e.unref(l).title),1),e.createVNode(x),e.withDirectives(e.createElementVNode("div",{innerHTML:e.unref(l).content},null,8,j),[[b,e.unref(c)]]),e.createElementVNode("footer",{class:e.normalizeClass(["mt15",[e.unref(_)?"f-s-c":"f-c-e"]])},[e.unref(_)?(e.openBlock(),e.createBlock(E,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).immAttachments,p=>(e.openBlock(),e.createBlock(V,{key:p.fileDownloadUrl,onClick:()=>B(p.fileDownloadUrl)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.fileName),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).downloadText),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(g,{onClick:a[0]||(a[0]=p=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).cancelButtonText),1)]),_:1})],2)]),_:1},8,["title","modelValue"])}}});const O=r._export_sfc$1(F,[["__scopeId","data-v-0003507a"]]);exports.default=O;
package/dist/ftlOne.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-e5e2a9ce.cjs");require("vue");require("pinia");exports.FtlEntry=e.FtlEntry;exports.FtlMessage=e.index;exports.FtlNavbar=e.FtlNavbar;exports.FtlPasswordDialog=e.FtlPasswordDialog;exports.FtlSidebar=e.FtlSidebar;exports.default=e.FtlOne;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-eaafe232.cjs");require("vue");require("pinia");exports.FtlEntry=e.FtlEntry;exports.FtlMessage=e.index;exports.FtlNavbar=e.FtlNavbar;exports.FtlPasswordDialog=e.FtlPasswordDialog;exports.FtlSidebar=e.FtlSidebar;exports.default=e.FtlOne;
package/dist/ftlOne.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as r, l as o, F, m as e, k as i, n as m } from "./index-0c7e1f50.js";
1
+ import { j as r, l as o, F, m as e, k as i, n as m } from "./index-2eef72ec.js";
2
2
  import "vue";
3
3
  import "pinia";
4
4
  export {