lw-cdp-ui 1.4.45 → 1.4.46
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.
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
onMounted(() => {
|
|
98
98
|
let LwTour = $tool.data.get('LwTour') || {}
|
|
99
99
|
const currentRoute = router?.currentRoute?.value
|
|
100
|
-
if (currentRoute
|
|
100
|
+
if (currentRoute) {
|
|
101
101
|
const { path, meta } = currentRoute
|
|
102
102
|
if (!LwTour[`${meta?.title || ''}${path}`]) {
|
|
103
103
|
nextTick(() => {
|
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -22574,7 +22574,7 @@ const ty = {
|
|
|
22574
22574
|
var E;
|
|
22575
22575
|
let f = o.data.get("LwTour") || {};
|
|
22576
22576
|
const A = (E = l == null ? void 0 : l.currentRoute) == null ? void 0 : E.value;
|
|
22577
|
-
if (A
|
|
22577
|
+
if (A) {
|
|
22578
22578
|
const { path: _, meta: x } = A;
|
|
22579
22579
|
f[`${(x == null ? void 0 : x.title) || ""}${_}`] || hu(() => {
|
|
22580
22580
|
d();
|
|
@@ -22800,17 +22800,29 @@ q2["en-us"] = { ...ry, ...iy, ...sy };
|
|
|
22800
22800
|
q2["zh-cn"] = { ...oy, ...ly, ...cy };
|
|
22801
22801
|
localStorage.setItem("langMessageUi", JSON.stringify(q2));
|
|
22802
22802
|
function hy(e) {
|
|
22803
|
-
|
|
22803
|
+
let t;
|
|
22804
|
+
const n = e({
|
|
22804
22805
|
onNeedRefresh() {
|
|
22805
|
-
console.log("
|
|
22806
|
-
const n = document.createElement("div");
|
|
22807
|
-
n.innerHTML = `
|
|
22806
|
+
console.log("发现新版本..."), t = document.createElement("div"), t.innerHTML = `
|
|
22808
22807
|
<div style="position: fixed; top: 0; width: 100%; background: #42b983; color: white; text-align: center; padding: 10px 0; z-index: 1000;">
|
|
22809
|
-
|
|
22808
|
+
<div style="margin-bottom: 8px;">发现新版本!正在下载更新...</div>
|
|
22809
|
+
<div style="width: 80%; margin: 0 auto; background: rgba(255,255,255,0.3); border-radius: 4px; overflow: hidden;">
|
|
22810
|
+
<div id="update-progress" style="width: 0%; height: 4px; background: white; transition: width 0.3s;"></div>
|
|
22811
|
+
</div>
|
|
22812
|
+
<button id="update-button" style="margin-top: 8px; background: white; color: #42b983; border: none; padding: 5px 10px; cursor: pointer; display: none;">立即更新</button>
|
|
22810
22813
|
</div>
|
|
22811
|
-
`, document.body.appendChild(
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
+
`, document.body.appendChild(t);
|
|
22815
|
+
},
|
|
22816
|
+
onDownloadProgress({ progress: r }) {
|
|
22817
|
+
if (t) {
|
|
22818
|
+
const a = t.querySelector("#update-progress");
|
|
22819
|
+
if (a && (a.style.width = `${Math.round(r * 100)}%`), r === 1) {
|
|
22820
|
+
const o = t.querySelector("#update-button");
|
|
22821
|
+
o && (o.style.display = "inline-block", o.addEventListener("click", () => {
|
|
22822
|
+
n(!0);
|
|
22823
|
+
}));
|
|
22824
|
+
}
|
|
22825
|
+
}
|
|
22814
22826
|
},
|
|
22815
22827
|
onOfflineReady() {
|
|
22816
22828
|
console.log("应用已准备好离线工作。");
|
package/dist/lw-cdp-ui.umd.js
CHANGED
|
@@ -25,8 +25,12 @@
|
|
|
25
25
|
* vue-router v4.5.1
|
|
26
26
|
* (c) 2025 Eduardo San Martin Morote
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/var jd;(function(t){t.pop="pop",t.push="push"})(jd||(jd={}));var Zd;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Zd||(Zd={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Yd;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Yd||(Yd={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Wg=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Jg(){return e.inject(Wg)}const Xg={name:"LwTour",props:{steps:{type:Array,required:!0,validator:t=>t.every(n=>n.css&&n.title&&n.description)},autoStart:{type:Boolean,default:!1},currentStep:{type:Number,default:0}},setup(t,{emit:n}){const{proxy:{$api:o,$expression:a,t:r,$tool:l,$bus:i}}=e.getCurrentInstance(),s=Jg();i.$on("lwTourChange",()=>{p()}),e.onUnmounted(()=>{i.$emit("lwTourOpen",!1)});const c=e.ref(!1),h=e.ref([]),p=()=>{var w;if(!s){setTimeout(()=>{p()},100);return}if(!t.steps.every(E=>document.querySelector(E.css))){console.warn("元素未加载完成"),setTimeout(()=>{p()},100);return}h.value=t.steps.map(E=>({target:document.querySelector(E.css)||void 0,title:E.title,description:E.description,placement:"bottom"})),c.value=!0;let C=l.data.get("LwTour")||{};const b=(w=s==null?void 0:s.currentRoute)==null?void 0:w.value;if(b){const{path:E,meta:x}=b;C[`${(x==null?void 0:x.title)||""}${E}`]=!0,l.data.set("LwTour",C)}};return e.onMounted(()=>{var b;let f=l.data.get("LwTour")||{};const C=(b=s==null?void 0:s.currentRoute)==null?void 0:b.value;if(C
|
|
28
|
+
*/var jd;(function(t){t.pop="pop",t.push="push"})(jd||(jd={}));var Zd;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Zd||(Zd={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Yd;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Yd||(Yd={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Wg=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Jg(){return e.inject(Wg)}const Xg={name:"LwTour",props:{steps:{type:Array,required:!0,validator:t=>t.every(n=>n.css&&n.title&&n.description)},autoStart:{type:Boolean,default:!1},currentStep:{type:Number,default:0}},setup(t,{emit:n}){const{proxy:{$api:o,$expression:a,t:r,$tool:l,$bus:i}}=e.getCurrentInstance(),s=Jg();i.$on("lwTourChange",()=>{p()}),e.onUnmounted(()=>{i.$emit("lwTourOpen",!1)});const c=e.ref(!1),h=e.ref([]),p=()=>{var w;if(!s){setTimeout(()=>{p()},100);return}if(!t.steps.every(E=>document.querySelector(E.css))){console.warn("元素未加载完成"),setTimeout(()=>{p()},100);return}h.value=t.steps.map(E=>({target:document.querySelector(E.css)||void 0,title:E.title,description:E.description,placement:"bottom"})),c.value=!0;let C=l.data.get("LwTour")||{};const b=(w=s==null?void 0:s.currentRoute)==null?void 0:w.value;if(b){const{path:E,meta:x}=b;C[`${(x==null?void 0:x.title)||""}${E}`]=!0,l.data.set("LwTour",C)}};return e.onMounted(()=>{var b;let f=l.data.get("LwTour")||{};const C=(b=s==null?void 0:s.currentRoute)==null?void 0:b.value;if(C){const{path:w,meta:E}=C;f[`${(E==null?void 0:E.title)||""}${w}`]||e.nextTick(()=>{p()})}i.$emit("lwTourOpen",!0)}),{formattedSteps:h,isOpen:c,startTour:p}}};function $g(t,n,o,a,r,l){const i=e.resolveComponent("el-tour-step"),s=e.resolveComponent("el-tour");return e.openBlock(),e.createBlock(s,{modelValue:a.isOpen,"onUpdate:modelValue":n[0]||(n[0]=c=>a.isOpen=c),current:o.currentStep},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.formattedSteps,(c,h)=>(e.openBlock(),e.createBlock(i,{key:h,target:c.target,title:c.title,description:c.description},null,8,["target","title","description"]))),128))]),_:1},8,["modelValue","current"])}const Kd=j(Xg,[["render",$g]]),eC={loginPage:{accountLoginNologo:"Marketing Cloud",accountLogin:"Lenwee Marketing Cloud",rememberMe:"Stay logged in",forgetPassword:"Change Password",signIn:"Account Verification",userPlaceholder:"Username / Phone / Email",userError:"Please enter username",PWPlaceholder:"Please enter password",PWError:"Please enter password",mobileError:"Please enter phone number",trialRequest:"Request Trial",passwordRequest:"Change Password",oldPassword:"Old Password",newPassword:"New Password",confirmPassword:"Confirm Password",enteroldPassword:"Please enter old password",enternewPassword:"Please enter new password",enterconfirmPassword:"Please confirm password",confirmPasswordError:"Passwords do not match. Please confirm!",passwordSuccess:"Password changed successfully. Please log in again!",passwordEmail:"Confirm Change",enterTitle:"Please enter your title",enterPhone:"Please enter phone number",enterEmail:"Please enter email",correctPhone:"Please enter a valid phone number",enterCompany:"Please enter your company name",selectPosition:"Please select your position",selectPurpose:"Please select your purpose",noAccount:"No account yet?",applySuccess:"Your trial request has been submitted. Please check your SMS notification.",loginSuccess:"Login successful"},positions:{techStaff:"Technical Staff",businessStaff:"Business Staff",researchStaff:"R&D Staff",marketingStaff:"Marketing Staff",operationStaff:"Operations Staff",otherStaff:"Other Professionals"},purposes:{findSolution:"Looking for suitable products to solve data and marketing issues",compareProducts:"Comparing with other products and want to learn more",other:"Others"}},tC={loginPage:{accountLoginNologo:"营销云",accountLogin:"联蔚营销云",rememberMe:"保持登录状态",forgetPassword:"修改密码",signIn:"账号验证",userPlaceholder:"用户名 / 手机 / 邮箱",userError:"请输入用户名",PWPlaceholder:"请输入密码",PWError:"请输入密码",mobileError:"请输入手机号码",trialRequest:"申请试用",passwordRequest:"修改密码",oldPassword:"旧的密码",newPassword:"新的密码",confirmPassword:"确认密码",enteroldPassword:"请输入旧的密码",enternewPassword:"请输入新的密码",enterconfirmPassword:"请输入确认密码",confirmPasswordError:"两次密码不一致,请确认!",passwordSuccess:"修改成功,请重新登录!",passwordEmail:"确认修改",enterTitle:"请输入您的称谓",enterPhone:"请输入手机号",enterEmail:"请输入邮箱",correctPhone:"请输入正确的手机号格式",enterCompany:"请输入您的公司名称",selectPosition:"请选择您的职位",selectPurpose:"请选择您的用途",noAccount:"还没有账号 ?",applySuccess:"您已申请试用,请注意查收短信提示。",loginSuccess:"登录成功"},positions:{techStaff:"技术人员",businessStaff:"业务人员",researchStaff:"研发人员",marketingStaff:"市场人员",operationStaff:"运营人员",otherStaff:"其他专业人员"},purposes:{findSolution:"寻找合适的产品来解决数据,营销等问题",compareProducts:"正在对比其他产品,想了解",other:"其他"}},nC={lwTable:{tools:{lineHeightName:"row height",lineHeight:{mini:"Compact",small:"Medium",medium:"High",large:"Extra High"},border:"Border",columnsSetting:"Column Settings",allCheck:"Select All",hasChecked:"Selected",cancel:"Cancel",fullScreen:"Full Screen",table_before:"Before the table",column_fixed:"Column fixed",last_column_fixed:"Last column fixed",please_select:"Please select...",total:"total",recordsPage:"records Page",pages:"pages"}}},oC={lwTable:{tools:{lineHeightName:"行高",lineHeight:{mini:"紧凑",small:"中等",medium:"高",large:"较高"},border:"边框",columnsSetting:"列设置",allCheck:"全选",hasChecked:"已选",cancel:"取消",fullScreen:"全屏",table_before:"表格前",column_fixed:"列固定",last_column_fixed:"最后一列固定",please_select:"请选择...",total:"共",recordsPage:"条记录 第",pages:"页"}}},rC={lwLayout:{user:{settings:"Settings",nightmode:"Night Mode",color:"Theme Color",layout:"Layout",menu:"Collapse Menu",tag:"Tag Bar",lang:"Internationalization",nightmode_msg:"Suitable for low-light environments; the current dark mode is in beta.",language:"Language",language_msg:"Translation in progress; only the text of this view has been translated."},layout:{layoutConfiguration:"Layout Configuration",topbar:"Location",userData:"User Center",outLogin:"Logout",clearCache:"Clear Cache"}}},aC={lwLayout:{user:{settings:"设置",nightmode:"黑夜模式",color:"主题颜色",layout:"框架布局",menu:"折叠菜单",tag:"标签栏",lang:"国际化",nightmode_msg:"适合光线较弱的环境,当前黑暗模式为beta版本",language:"语言",language_msg:"翻译进行中,暂翻译了本视图的文本"},layout:{layoutConfiguration:"布局配置",topbar:"所在位置",userData:"个人中心",outLogin:"退出登录",clearCache:"清除缓存"}}};let lC=localStorage.getItem("langMessageUi"),Qt={...JSON.parse(lC)||{}};Qt["en-us"]={...eC,...nC,...rC},Qt["zh-cn"]={...tC,...oC,...aC},localStorage.setItem("langMessageUi",JSON.stringify(Qt));function Wd(t){let n;const o=t({onNeedRefresh(){console.log("发现新版本..."),n=document.createElement("div"),n.innerHTML=`
|
|
29
29
|
<div style="position: fixed; top: 0; width: 100%; background: #42b983; color: white; text-align: center; padding: 10px 0; z-index: 1000;">
|
|
30
|
-
|
|
30
|
+
<div style="margin-bottom: 8px;">发现新版本!正在下载更新...</div>
|
|
31
|
+
<div style="width: 80%; margin: 0 auto; background: rgba(255,255,255,0.3); border-radius: 4px; overflow: hidden;">
|
|
32
|
+
<div id="update-progress" style="width: 0%; height: 4px; background: white; transition: width 0.3s;"></div>
|
|
33
|
+
</div>
|
|
34
|
+
<button id="update-button" style="margin-top: 8px; background: white; color: #42b983; border: none; padding: 5px 10px; cursor: pointer; display: none;">立即更新</button>
|
|
31
35
|
</div>
|
|
32
|
-
`,document.body.appendChild(
|
|
36
|
+
`,document.body.appendChild(n)},onDownloadProgress({progress:a}){if(n){const r=n.querySelector("#update-progress");if(r&&(r.style.width=`${Math.round(a*100)}%`),a===1){const l=n.querySelector("#update-button");l&&(l.style.display="inline-block",l.addEventListener("click",()=>{o(!0)}))}}},onOfflineReady(){console.log("应用已准备好离线工作。")}})}function iC(t,n={}){if(n)for(const o in n)n.hasOwnProperty(o)&&(t.config.globalProperties[`$${o.toUpperCase()}`]=n[o]);t.directive("copy",t4),t.directive("auth",n4),t.component("lwLayout",Ka),t.component("lwLayoutInit",Wa),t.component("lwLogin",$a),t.component("lwSearch",wn),t.component("lwSvgIcon",el),t.component("lwTable",bn),t.component("lwForm",tl),t.component("lwFormMini",ol),t.component("lwUpload",ct),t.component("lwIconSelect",rl),t.component("lwTableSelect",al),t.component("lwTableForm",ll),t.component("lwFormView",sl),t.component("lwFormJson",il),t.component("lwCronSelect",cl),t.component("lwFlow",Ld),t.component("lwBiChart",Nd),t.component("lwBiChartItem",Gd),t.component("lwBiChartPage",Hd),t.component("lwTour",Kd)}const sC={install:iC,uiI18n:Qt,registerServiceWorker:Wd};$.default=sC,$.lwBiChart=Nd,$.lwBiChartItem=Gd,$.lwBiChartPage=Hd,$.lwCronSelect=cl,$.lwFlow=Ld,$.lwForm=tl,$.lwFormJson=il,$.lwFormMini=ol,$.lwFormView=sl,$.lwIconSelect=rl,$.lwLayout=Ka,$.lwLayoutInit=Wa,$.lwLogin=$a,$.lwSearch=wn,$.lwSvgIcon=el,$.lwTable=bn,$.lwTableForm=ll,$.lwTableSelect=al,$.lwTour=Kd,$.lwUpload=ct,$.registerServiceWorker=Wd,$.uiI18n=Qt,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|