@ftlab/one-vue3 0.2.11 → 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.
package/CHANGELOG.md CHANGED
@@ -7,13 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9
9
 
10
- ## [v0.2.11](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.2...v0.2.11)
10
+ ## [v0.2.13](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/compare/v0.2.2...v0.2.13)
11
11
 
12
12
  ### Commits
13
13
 
14
14
  - feat: add date methods [`c41c7a2`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/c41c7a26509d85073c815f87ed3bb03062654985)
15
15
  - fix: build bug fix [`d49527d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/d49527d29060ddd1a040a366ca4808e827b5f4df)
16
16
  - feat: support iconfont [`5268467`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/526846752ca3de05e7e78a665a7b1c1ff1b40b9f)
17
+ - feat: remove element-plus origin style [`a0c4fa1`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/a0c4fa1b195c3ee570a093c103ea28a3fbb64ac1)
18
+ - hotfix: emit changeLanguage [`98f7a12`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/98f7a12b06c16af4aedf4f1bf89442dcf727694c)
17
19
  - feat: menu style detail change [`93c3abb`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/93c3abba52a689bf6e0e265e4ad2c4aad38605fd)
18
20
  - fix: fix collapse style error [`54e9525`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/54e9525a99b216a9f7bb1b29ec578a768b49cb93)
19
21
  - charge storage to js [`1d1368d`](https://gitlab.ftlapp.cn/ftl/ftlab/one-vue3/commit/1d1368ddb5d1ce8ecbc5754530b46f705146013f)
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']
@@ -26,10 +26,10 @@ var V = (n, t, e) => new Promise((i, l) => {
26
26
  }, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(u, g);
27
27
  d((e = e.apply(n, t)).next());
28
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-20c01953.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";
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
31
  import "pinia";
32
- const fe = Q({
32
+ const fe = te({
33
33
  direction: {
34
34
  type: String,
35
35
  values: ["horizontal", "vertical"],
@@ -41,7 +41,7 @@ const fe = Q({
41
41
  default: "center"
42
42
  },
43
43
  borderStyle: {
44
- type: W(String),
44
+ type: oe(String),
45
45
  default: "solid"
46
46
  }
47
47
  }), ve = b({
@@ -49,37 +49,36 @@ const fe = Q({
49
49
  }), ge = /* @__PURE__ */ b(U(T({}, ve), {
50
50
  props: fe,
51
51
  setup(n) {
52
- const t = n, e = X("divider"), i = k(() => e.cssVar({
52
+ const t = n, e = ne("divider"), i = k(() => e.cssVar({
53
53
  "border-style": t.borderStyle
54
54
  }));
55
55
  return (l, u) => (m(), C("div", {
56
56
  class: E([o(e).b(), o(e).m(l.direction)]),
57
- style: de(o(i)),
57
+ style: Q(o(i)),
58
58
  role: "separator"
59
59
  }, [
60
60
  l.$slots.default && l.direction !== "vertical" ? (m(), C("div", {
61
61
  key: 0,
62
62
  class: E([o(e).e("text"), o(e).is(l.contentPosition)])
63
63
  }, [
64
- ce(l.$slots, "default")
64
+ W(l.$slots, "default")
65
65
  ], 2)) : I("v-if", !0)
66
66
  ], 6));
67
67
  }
68
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({
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({
72
71
  __name: "CheckMessageDialog",
73
72
  emits: ["preventHiddenDropdown"],
74
73
  setup(n, { expose: t, emit: e }) {
75
74
  const i = h(!1), l = $("authBaseUrl"), u = $("dialogI18n"), g = localStorage.getItem("token") || "", d = h(!1), a = h({}), _ = {
76
75
  Authorization: `Bearer ${g}`
77
76
  }, N = k(
78
- () => `${l || ee.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
77
+ () => `${l || le.authBaseUrl || "https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`
79
78
  ), P = (r) => V(this, null, function* () {
80
79
  try {
81
80
  d.value = !0;
82
- const s = yield te.get(N.value, { headers: _, params: { msgId: r } });
81
+ const s = yield ie.get(N.value, { headers: _, params: { msgId: r } });
83
82
  s && s.data && (a.value = s.data);
84
83
  } catch (s) {
85
84
  console.log(s);
@@ -96,12 +95,12 @@ const ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */
96
95
  P(r), i.value = !0;
97
96
  }
98
97
  }), (r, s) => {
99
- const A = we, B = oe, H = ne, L = ae, F = se, j = le, q = ie;
98
+ const A = we, B = re, H = de, L = ce, F = ue, j = pe, q = me;
100
99
  return m(), w(j, {
101
100
  center: "",
102
101
  title: o(u).dialogTitleText,
103
102
  modelValue: o(i),
104
- "onUpdate:modelValue": s[1] || (s[1] = (p) => ue(i) ? i.value = p : null),
103
+ "onUpdate:modelValue": s[1] || (s[1] = (p) => X(i) ? i.value = p : null),
105
104
  "append-to-body": "",
106
105
  model: !1,
107
106
  onClosed: s[2] || (s[2] = () => {
@@ -111,7 +110,7 @@ const ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */
111
110
  default: c(() => [
112
111
  y("header", ye, f(o(a).title), 1),
113
112
  v(A),
114
- pe(y("div", {
113
+ Y(y("div", {
115
114
  innerHTML: o(a).content
116
115
  }, null, 8, De), [
117
116
  [q, o(d)]
@@ -123,7 +122,7 @@ const ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */
123
122
  dropdown: c(() => [
124
123
  v(L, null, {
125
124
  default: c(() => [
126
- (m(!0), C(me, null, _e(o(a).immAttachments, (p) => (m(), w(H, {
125
+ (m(!0), C(Z, null, ee(o(a).immAttachments, (p) => (m(), w(H, {
127
126
  key: p.fileDownloadUrl,
128
127
  onClick: () => z(p.fileDownloadUrl)
129
128
  }, {
@@ -161,7 +160,7 @@ const ye = { class: "dialog__title" }, De = ["innerHTML"], ke = /* @__PURE__ */
161
160
  };
162
161
  }
163
162
  });
164
- const Be = /* @__PURE__ */ re(ke, [["__scopeId", "data-v-0003507a"]]);
163
+ const Be = /* @__PURE__ */ _e(ke, [["__scopeId", "data-v-0003507a"]]);
165
164
  export {
166
165
  Be as default
167
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-0a777adb.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-20c01953.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 {