@ftlab/one-vue3 0.2.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,96 +1,102 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9
-
10
- ## [v0.2.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.0...v0.2.1)
11
-
12
- ### Commits
13
-
14
- - feat: detail change [`79e1942`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/79e1942cf40561940eb6de31a17da0432aa2bf75)
15
-
16
- ## [v0.2.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.5...v0.2.0) - 2023-11-28
17
-
18
- ### Commits
19
-
20
- - feat: ftlPasswordDialog add [`c7910c6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c7910c6e0c911fcd8d3a279602c3d40420f76e50)
21
- - feat: add message center [`ec3bcf5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ec3bcf5e744cb0606cb6d10af0200b7dec39604b)
22
-
23
- ## [v0.1.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.4...v0.1.5) - 2023-08-30
24
-
25
- ### Commits
26
-
27
- - feat: detail change [`75529d3`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/75529d3f95c457851eb39e0ae4dc67ada5380d49)
28
-
29
- ## [v0.1.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.3...v0.1.4) - 2023-08-11
30
-
31
- ### Commits
32
-
33
- - feat: detail add [`7a5d7b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7a5d7b719facc65bb81c75b2f9f25a04820fb674)
34
-
35
- ## [v0.1.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.2...v0.1.3) - 2023-08-10
36
-
37
- ### Commits
38
-
39
- - feat: detail feat [`72c432d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/72c432d0b98e222d65de842433a3d44d39ab9249)
40
-
41
- ## [v0.1.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.1...v0.1.2) - 2023-08-09
42
-
43
- ### Commits
44
-
45
- - feat: build to es2015 [`ef0cf82`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ef0cf829dd80a2b0044622e162609cbb5be05960)
46
- - doc:refactor README.md [`6b266e7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6b266e7c39be7b8a18bdaf7127fba89c6249dcd5)
47
-
48
- ## [v0.1.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.0...v0.1.1) - 2023-07-07
49
-
50
- ### Commits
51
-
52
- - feat: theme color var add [`60ab46c`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/60ab46c30e17c7e72796e20c3eb66c71a359b7a9)
53
-
54
- ## [v0.1.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.7...v0.1.0) - 2023-07-05
55
-
56
- ### Commits
57
-
58
- - feat: 0.1.0 [`20f34b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/20f34b7c45139ae50bc15a5b37bb8b206b0d6e88)
59
-
60
- ## [v0.0.7](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.6...v0.0.7) - 2023-07-05
61
-
62
- ### Commits
63
-
64
- - feat: vite build external element-plus [`1415398`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1415398585f7184eb1a7b5fd9db41337e6d011e3)
65
-
66
- ## [v0.0.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.5...v0.0.6) - 2023-07-05
67
-
68
- ### Commits
69
-
70
- - feat: vite build external pinia [`2525081`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2525081c259f7875d19fd3c86fe5eac2f903bc1d)
71
-
72
- ## [v0.0.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.4...v0.0.5) - 2023-07-05
73
-
74
- ### Commits
75
-
76
- - fix: pinia bug fix [`7701ea2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7701ea21231b549791f0f2ec23eab2f8544a39f0)
77
-
78
- ## [v0.0.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.3...v0.0.4) - 2023-07-04
79
-
80
- ### Commits
81
-
82
- - fix: style fix [`930b480`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/930b480c34ef7b0f743590aacab4125674a77d38)
83
-
84
- ## [v0.0.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.2...v0.0.3) - 2023-07-04
85
-
86
- ### Commits
87
-
88
- - feat: some common function and components add [`ca3198e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ca3198e22a6748620c6017482b42bb8bcaef51f7)
89
- - feat: pinia and style add [`34b30f5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34b30f560a58a74be9db88fcade6775c29769c7c)
90
-
91
- ## v0.0.2 - 2023-06-30
92
-
93
- ### Commits
94
-
95
- - feat: project init [`8924bba`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/8924bbad81f97fa7130f9bf571920509acd2474e)
96
- - Initial commit [`1d50e56`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d50e561512abf2733a397ebf5f29109a3584953)
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9
+
10
+ ## [v0.2.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.1...v0.2.2)
11
+
12
+ ### Commits
13
+
14
+ - fix: scroll bug fix [`2cd68f6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2cd68f6c534af2cd8b8069180d3ad20c1a9d223a)
15
+
16
+ ## [v0.2.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.0...v0.2.1) - 2023-11-28
17
+
18
+ ### Commits
19
+
20
+ - feat: detail change [`79e1942`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/79e1942cf40561940eb6de31a17da0432aa2bf75)
21
+
22
+ ## [v0.2.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.5...v0.2.0) - 2023-11-28
23
+
24
+ ### Commits
25
+
26
+ - feat: ftlPasswordDialog add [`c7910c6`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c7910c6e0c911fcd8d3a279602c3d40420f76e50)
27
+ - feat: add message center [`ec3bcf5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ec3bcf5e744cb0606cb6d10af0200b7dec39604b)
28
+
29
+ ## [v0.1.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.4...v0.1.5) - 2023-08-30
30
+
31
+ ### Commits
32
+
33
+ - feat: detail change [`75529d3`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/75529d3f95c457851eb39e0ae4dc67ada5380d49)
34
+
35
+ ## [v0.1.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.3...v0.1.4) - 2023-08-11
36
+
37
+ ### Commits
38
+
39
+ - feat: detail add [`7a5d7b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7a5d7b719facc65bb81c75b2f9f25a04820fb674)
40
+
41
+ ## [v0.1.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.2...v0.1.3) - 2023-08-10
42
+
43
+ ### Commits
44
+
45
+ - feat: detail feat [`72c432d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/72c432d0b98e222d65de842433a3d44d39ab9249)
46
+
47
+ ## [v0.1.2](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.1...v0.1.2) - 2023-08-09
48
+
49
+ ### Commits
50
+
51
+ - feat: build to es2015 [`ef0cf82`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ef0cf829dd80a2b0044622e162609cbb5be05960)
52
+ - doc:refactor README.md [`6b266e7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/6b266e7c39be7b8a18bdaf7127fba89c6249dcd5)
53
+
54
+ ## [v0.1.1](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.1.0...v0.1.1) - 2023-07-07
55
+
56
+ ### Commits
57
+
58
+ - feat: theme color var add [`60ab46c`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/60ab46c30e17c7e72796e20c3eb66c71a359b7a9)
59
+
60
+ ## [v0.1.0](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.7...v0.1.0) - 2023-07-05
61
+
62
+ ### Commits
63
+
64
+ - feat: 0.1.0 [`20f34b7`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/20f34b7c45139ae50bc15a5b37bb8b206b0d6e88)
65
+
66
+ ## [v0.0.7](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.6...v0.0.7) - 2023-07-05
67
+
68
+ ### Commits
69
+
70
+ - feat: vite build external element-plus [`1415398`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1415398585f7184eb1a7b5fd9db41337e6d011e3)
71
+
72
+ ## [v0.0.6](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.5...v0.0.6) - 2023-07-05
73
+
74
+ ### Commits
75
+
76
+ - feat: vite build external pinia [`2525081`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/2525081c259f7875d19fd3c86fe5eac2f903bc1d)
77
+
78
+ ## [v0.0.5](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.4...v0.0.5) - 2023-07-05
79
+
80
+ ### Commits
81
+
82
+ - fix: pinia bug fix [`7701ea2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/7701ea21231b549791f0f2ec23eab2f8544a39f0)
83
+
84
+ ## [v0.0.4](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.3...v0.0.4) - 2023-07-04
85
+
86
+ ### Commits
87
+
88
+ - fix: style fix [`930b480`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/930b480c34ef7b0f743590aacab4125674a77d38)
89
+
90
+ ## [v0.0.3](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.0.2...v0.0.3) - 2023-07-04
91
+
92
+ ### Commits
93
+
94
+ - feat: some common function and components add [`ca3198e`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/ca3198e22a6748620c6017482b42bb8bcaef51f7)
95
+ - feat: pinia and style add [`34b30f5`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/34b30f560a58a74be9db88fcade6775c29769c7c)
96
+
97
+ ## v0.0.2 - 2023-06-30
98
+
99
+ ### Commits
100
+
101
+ - feat: project init [`8924bba`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/8924bbad81f97fa7130f9bf571920509acd2474e)
102
+ - Initial commit [`1d50e56`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d50e561512abf2733a397ebf5f29109a3584953)
@@ -1 +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((s,i)=>{var u=l=>{try{c(t.next(l))}catch(m){i(m)}},f=l=>{try{c(t.throw(l))}catch(m){i(m)}},c=l=>l.done?s(l.value):Promise.resolve(l.value).then(u,f);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-335e8241.cjs"),e=require("vue");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"),s=e.computed(()=>t.cssVar({"border-style":o.borderStyle}));return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).b(),e.unref(t).m(i.direction)]),style:e.normalizeStyle(e.unref(s)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t).e("text"),e.unref(t).is(i.contentPosition)])},[e.renderSlot(i.$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);const L={class:"dialog__title"},j=["innerHTML"],F=e.defineComponent({__name:"CheckMessageDialog",emits:["preventHiddenDropdown"],setup(n,{expose:o,emit:t}){const s=e.ref(!1),i=e.inject("authBaseUrl"),u=e.inject("dialogI18n"),f=localStorage.getItem("token")||"",c=e.ref(!1),l=e.ref({}),m={Authorization:`Bearer ${f}`},D=e.computed(()=>`${i||r.configProxy.authBaseUrl||"https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`),C=d=>k(this,null,function*(){try{c.value=!0;const a=yield r.axios.get(D.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=>{C(d),s.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(s),"onUpdate:modelValue":a[1]||(a[1]=p=>e.isRef(s)?s.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=>s.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-b6d5935c"]]);exports.default=O;
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((s,i)=>{var u=l=>{try{c(t.next(l))}catch(m){i(m)}},f=l=>{try{c(t.throw(l))}catch(m){i(m)}},c=l=>l.done?s(l.value):Promise.resolve(l.value).then(u,f);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-832db9d9.cjs"),e=require("vue");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"),s=e.computed(()=>t.cssVar({"border-style":o.borderStyle}));return(i,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(t).b(),e.unref(t).m(i.direction)]),style:e.normalizeStyle(e.unref(s)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(t).e("text"),e.unref(t).is(i.contentPosition)])},[e.renderSlot(i.$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);const L={class:"dialog__title"},j=["innerHTML"],F=e.defineComponent({__name:"CheckMessageDialog",emits:["preventHiddenDropdown"],setup(n,{expose:o,emit:t}){const s=e.ref(!1),i=e.inject("authBaseUrl"),u=e.inject("dialogI18n"),f=localStorage.getItem("token")||"",c=e.ref(!1),l=e.ref({}),m={Authorization:`Bearer ${f}`},D=e.computed(()=>`${i||r.configProxy.authBaseUrl||"https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`),C=d=>k(this,null,function*(){try{c.value=!0;const a=yield r.axios.get(D.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=>{C(d),s.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(s),"onUpdate:modelValue":a[1]||(a[1]=p=>e.isRef(s)?s.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=>s.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;
@@ -1,167 +1,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 = (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-74bfbd8e.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 { 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 ae, g as se, h as le, v as ie, i as re } from "./index-dc538f9c.js";
30
+ import { defineComponent as b, computed as k, openBlock as m, createElementBlock as C, normalizeClass as E, 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 = b({
48
+ name: "ElDivider"
49
+ }), ge = /* @__PURE__ */ b(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(), C("div", {
56
+ class: E([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(), C("div", {
61
+ key: 0,
62
+ class: E([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__ */ b({
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), a = 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 s = yield te.get(N.value, { headers: _, params: { msgId: r } });
83
+ s && s.data && (a.value = s.data);
84
+ } catch (s) {
85
+ console.log(s);
86
+ } finally {
87
+ d.value = !1;
88
+ }
89
+ }), x = k(
90
+ () => a.value.immAttachments && a.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, s) => {
99
+ const A = we, B = oe, H = ne, L = ae, F = se, j = le, q = ie;
100
+ return m(), w(j, {
101
+ center: "",
102
+ title: o(u).dialogTitleText,
103
+ modelValue: o(i),
104
+ "onUpdate:modelValue": s[1] || (s[1] = (p) => ue(i) ? i.value = p : null),
105
+ "append-to-body": "",
106
+ model: !1,
107
+ onClosed: s[2] || (s[2] = () => {
108
+ r.$emit("preventHiddenDropdown");
109
+ })
110
+ }, {
111
+ default: c(() => [
112
+ y("header", ye, f(o(a).title), 1),
113
+ v(A),
114
+ pe(y("div", {
115
+ innerHTML: o(a).content
116
+ }, null, 8, De), [
117
+ [q, o(d)]
118
+ ]),
119
+ y("footer", {
120
+ class: E(["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), C(me, null, _e(o(a).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: s[0] || (s[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-0003507a"]]);
165
+ export {
166
+ Be as default
167
+ };
package/dist/ftlOne.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-335e8241.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-832db9d9.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,11 +1,11 @@
1
- import { j as r, l as o, F, m as e, k as i, n as m } from "./index-74bfbd8e.js";
2
- import "vue";
3
- import "pinia";
4
- export {
5
- r as FtlEntry,
6
- o as FtlMessage,
7
- F as FtlNavbar,
8
- e as FtlPasswordDialog,
9
- i as FtlSidebar,
10
- m as default
11
- };
1
+ import { j as r, l as o, F, m as e, k as i, n as m } from "./index-dc538f9c.js";
2
+ import "vue";
3
+ import "pinia";
4
+ export {
5
+ r as FtlEntry,
6
+ o as FtlMessage,
7
+ F as FtlNavbar,
8
+ e as FtlPasswordDialog,
9
+ i as FtlSidebar,
10
+ m as default
11
+ };