base6-ui 2.0.23 → 2.0.24

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 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-952f1733"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-ed111a71"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("naive-ui"),e=require("vue"),C=require("../nav-icon/index.vue.js"),A=require("../../hooks/useLocale.js"),V=require("../../hooks/useNaiveConfigProvideContext.js"),R=require("../../assets/cover/base-ads.png.js"),L=require("../../assets/cover/base-studio.png.js"),T=require("../../assets/cover/base-multimodal.png.js"),w=require("../../assets/cover/robo.png.js"),x=require("../../assets/cover/ps.png.js"),F=require("../../assets/cover/blink.png.js"),p=require("./cssVar.js"),i=require("./interface.js"),U={class:"header"},q={class:"content-wrapper"},I={class:"platform-type-item-header"},z={class:"title"},G={class:"description"},K=["src"],$={class:"platform-card_content"},j={class:"title"},H={class:"description"},J={key:0,class:"navigation"},Q={class:"boden-platform-navigation-panel-mask"},W=e.defineComponent({__name:"index",props:{platformCode:{default:()=>[]},triggerDisabled:{type:Boolean,default:!1},x:{default:0},y:{default:0}},emits:["togglePlatform"],setup(s,{emit:u}){const f=s,v=u,N=V.default(),{t}=A.useLocale(),d=e.ref(null),r=e.ref(!1),m=e.computed(()=>{const{name:l="light"}=N?.mergedThemeRef.value||{};return l!=="light"}),g=[{key:"bric",title:t("boden.platformNavigation.BricPlatform"),description:t("boden.platformNavigation.BricPlatformDescription"),svgIcon:"logo-base",children:[{id:i.BODEN_PLATFORM_ENUM.VLA,key:i.BODEN_PLATFORM_NAME_ENUM.ROBO,title:t("boden.platformNavigation.RoboPlatform"),description:t("boden.platformNavigation.RoboPlatformDescription"),imageSrc:w.default},{id:i.BODEN_PLATFORM_ENUM.PS,key:i.BODEN_PLATFORM_NAME_ENUM.PS,title:t("boden.platformNavigation.PsPlatform"),description:t("boden.platformNavigation.PsPlatformDescription"),imageSrc:x.default}]},{key:"base",title:t("boden.platformNavigation.BasePlatform"),description:t("boden.platformNavigation.BasePlatformDescription"),svgIcon:"logo-base",children:[{id:i.BODEN_PLATFORM_ENUM.BASE,key:i.BODEN_PLATFORM_NAME_ENUM.ADS,title:t("boden.platformNavigation.AdsPlatform"),description:t("boden.platformNavigation.AdsPlatformDescription"),imageSrc:R.default},{id:i.BODEN_PLATFORM_ENUM.BASE,key:i.BODEN_PLATFORM_NAME_ENUM.BASE,title:t("boden.platformNavigation.StudioPlatform"),description:t("boden.platformNavigation.StudioPlatformDescription"),imageSrc:L.default},{id:i.BODEN_PLATFORM_ENUM.BASE,key:i.BODEN_PLATFORM_NAME_ENUM.OMNI,title:t("boden.platformNavigation.OmniPlatform"),description:t("boden.platformNavigation.OmniPlatformDescription"),imageSrc:T.default}]},{key:"blink",title:t("boden.platformNavigation.BlinkPlatform"),description:t("boden.platformNavigation.BlinkPlatformDescription"),svgIcon:"logo-base",children:[{id:i.BODEN_PLATFORM_ENUM.BLINK,key:i.BODEN_PLATFORM_NAME_ENUM.BLINK,title:t("boden.platformNavigation.BlinkPlatformSpecific"),description:t("boden.platformNavigation.BlinkPlatformSpecificDescription"),imageSrc:F.default}]}],_=e.computed(()=>p.createCardThemeOverrides(m.value)),E=e.computed(()=>p.createHorizontalCardThemeOverrides(m.value)),h=e.computed(()=>p.createPopoverCssVar(m.value)),k=()=>{f.triggerDisabled||(r.value=!r.value)},b=(l,n)=>{v("togglePlatform",l,n)},B=l=>{d.value&&d.value.instRef&&d.value.instRef.contains(l.target)||(r.value=!1)};return(l,n)=>{const P=e.resolveComponent("svg-icon"),y=c.NButton,M=c.NCard,O=c.NGi,D=c.NGrid,S=c.NPopover;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(C.default,{ref_key:"triggerInstRef",ref:d,active:r.value,disabled:s.triggerDisabled,onClick:e.withModifiers(k,["stop"])},null,8,["active","disabled"]),e.createVNode(S,{"content-class":"boden-platform-navigation-panel-popover",trigger:"manual",show:r.value,"onUpdate:show":n[2]||(n[2]=o=>r.value=o),style:e.normalizeStyle(h.value),"show-arrow":!1,width:1058,scrollable:"",x:s.x,y:s.y,"theme-overrides":{padding:"0",space:"0",borderRadius:"3px"},onClickoutside:B},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"boden-platform-navigation-panel",onClick:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",U,[e.createElementVNode("div",null,e.toDisplayString(e.unref(t)("boden.platformNavigation.allProducts")),1),e.createVNode(P,{icon:"operate-close",size:"16",onClick:n[0]||(n[0]=o=>r.value=!1)})]),e.createElementVNode("div",q,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,o=>e.createElementVNode("div",{key:o.key,class:"platform-type-item"},[e.createElementVNode("div",I,[e.createElementVNode("div",z,e.toDisplayString(o.title),1),e.createElementVNode("div",G,e.toDisplayString(o.description),1)]),o.children&&o.children.length?(e.openBlock(),e.createBlock(D,{key:0,"x-gap":"12",cols:o.children.length===1?1:3,style:{"margin-top":"12px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,a=>(e.openBlock(),e.createBlock(O,{key:a.key},{default:e.withCtx(()=>[e.createVNode(M,{class:e.normalizeClass(["platform-card",{"is-horizontal":o.children.length===1}]),"theme-overrides":o.children.length===1?E.value:_.value},{cover:e.withCtx(()=>[e.createElementVNode("img",{src:a.imageSrc,alt:""},null,8,K)]),default:e.withCtx(()=>[e.createElementVNode("div",$,[e.createElementVNode("div",j,e.toDisplayString(a.title),1),e.createElementVNode("div",H,e.toDisplayString(a.description),1)]),s.platformCode?.includes(a.id)?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(y,{round:"",size:"tiny",type:"primary",onClick:X=>b(a.id,a.key)},{default:e.withCtx(()=>[...n[3]||(n[3]=[e.createTextVNode("开始使用",-1)])]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)]),_:2},1032,["class","theme-overrides"])]),_:2},1024))),128))]),_:2},1032,["cols"])):e.createCommentVNode("",!0)])),64))])])]),_:1},8,["show","style","x","y"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",Q,null,512),[[e.vShow,r.value]])]))])}}});exports.default=W;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("naive-ui"),e=require("vue"),C=require("../nav-icon/index.vue.js"),A=require("../../hooks/useLocale.js"),V=require("../../hooks/useNaiveConfigProvideContext.js"),R=require("../../assets/cover/base-ads.png.js"),T=require("../../assets/cover/base-studio.png.js"),L=require("../../assets/cover/base-multimodal.png.js"),w=require("../../assets/cover/robo.png.js"),x=require("../../assets/cover/ps.png.js"),U=require("../../assets/cover/blink.png.js"),p=require("./cssVar.js"),i=require("./interface.js"),F={class:"header"},q={class:"content-wrapper"},I={class:"platform-type-item-header"},z={class:"title"},G={class:"description"},K=["src"],$={class:"platform-card_content"},j={class:"title"},H={class:"description"},J={key:0,class:"navigation"},Q={class:"boden-platform-navigation-panel-mask"},W=e.defineComponent({__name:"index",props:{platformCode:{default:()=>[]},triggerDisabled:{type:Boolean,default:!1},x:{default:0},y:{default:0}},emits:["togglePlatform"],setup(s,{emit:u}){const f=s,v=u,N=V.default(),{t}=A.useLocale(),d=e.ref(null),r=e.ref(!1),m=e.computed(()=>{const{name:l="light"}=N?.mergedThemeRef.value||{};return l!=="light"}),g=[{key:"bric",title:t("boden.platformNavigation.BricPlatform"),description:t("boden.platformNavigation.BricPlatformDescription"),svgIcon:"logo-base",children:[{id:i.BODEN_PLATFORM_ENUM.VLA,key:i.BODEN_PLATFORM_NAME_ENUM.ROBO,title:t("boden.platformNavigation.RoboPlatform"),description:t("boden.platformNavigation.RoboPlatformDescription"),imageSrc:w.default},{id:i.BODEN_PLATFORM_ENUM.PS,key:i.BODEN_PLATFORM_NAME_ENUM.PS,title:t("boden.platformNavigation.PsPlatform"),description:t("boden.platformNavigation.PsPlatformDescription"),imageSrc:x.default}]},{key:"base",title:t("boden.platformNavigation.BasePlatform"),description:t("boden.platformNavigation.BasePlatformDescription"),svgIcon:"logo-base",children:[{id:i.BODEN_PLATFORM_ENUM.BASE,key:i.BODEN_PLATFORM_NAME_ENUM.ADS,title:t("boden.platformNavigation.AdsPlatform"),description:t("boden.platformNavigation.AdsPlatformDescription"),imageSrc:R.default},{id:i.BODEN_PLATFORM_ENUM.BASE,key:i.BODEN_PLATFORM_NAME_ENUM.STUDIO,title:t("boden.platformNavigation.StudioPlatform"),description:t("boden.platformNavigation.StudioPlatformDescription"),imageSrc:T.default},{id:i.BODEN_PLATFORM_ENUM.BASE,key:i.BODEN_PLATFORM_NAME_ENUM.OMNI,title:t("boden.platformNavigation.OmniPlatform"),description:t("boden.platformNavigation.OmniPlatformDescription"),imageSrc:L.default}]},{key:"blink",title:t("boden.platformNavigation.BlinkPlatform"),description:t("boden.platformNavigation.BlinkPlatformDescription"),svgIcon:"logo-base",children:[{id:i.BODEN_PLATFORM_ENUM.BLINK,key:i.BODEN_PLATFORM_NAME_ENUM.BLINK,title:t("boden.platformNavigation.BlinkPlatformSpecific"),description:t("boden.platformNavigation.BlinkPlatformSpecificDescription"),imageSrc:U.default}]}],_=e.computed(()=>p.createCardThemeOverrides(m.value)),h=e.computed(()=>p.createHorizontalCardThemeOverrides(m.value)),E=e.computed(()=>p.createPopoverCssVar(m.value)),k=()=>{f.triggerDisabled||(r.value=!r.value)},b=(l,n)=>{v("togglePlatform",l,n)},P=l=>{d.value&&d.value.instRef&&d.value.instRef.contains(l.target)||(r.value=!1)};return(l,n)=>{const B=e.resolveComponent("svg-icon"),y=c.NButton,M=c.NCard,O=c.NGi,D=c.NGrid,S=c.NPopover;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(C.default,{ref_key:"triggerInstRef",ref:d,active:r.value,disabled:s.triggerDisabled,onClick:e.withModifiers(k,["stop"])},null,8,["active","disabled"]),e.createVNode(S,{"content-class":"boden-platform-navigation-panel-popover",trigger:"manual",show:r.value,"onUpdate:show":n[2]||(n[2]=o=>r.value=o),style:e.normalizeStyle(E.value),"show-arrow":!1,width:1058,scrollable:"",x:s.x,y:s.y,"theme-overrides":{padding:"0",space:"0",borderRadius:"3px"},onClickoutside:P},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"boden-platform-navigation-panel",onClick:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",F,[e.createElementVNode("div",null,e.toDisplayString(e.unref(t)("boden.platformNavigation.allProducts")),1),e.createVNode(B,{icon:"operate-close",size:"16",onClick:n[0]||(n[0]=o=>r.value=!1)})]),e.createElementVNode("div",q,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,o=>e.createElementVNode("div",{key:o.key,class:"platform-type-item"},[e.createElementVNode("div",I,[e.createElementVNode("div",z,e.toDisplayString(o.title),1),e.createElementVNode("div",G,e.toDisplayString(o.description),1)]),o.children&&o.children.length?(e.openBlock(),e.createBlock(D,{key:0,"x-gap":"12",cols:o.children.length===1?1:3,style:{"margin-top":"12px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,a=>(e.openBlock(),e.createBlock(O,{key:a.key},{default:e.withCtx(()=>[e.createVNode(M,{class:e.normalizeClass(["platform-card",{"is-horizontal":o.children.length===1}]),"theme-overrides":o.children.length===1?h.value:_.value},{cover:e.withCtx(()=>[e.createElementVNode("img",{src:a.imageSrc,alt:""},null,8,K)]),default:e.withCtx(()=>[e.createElementVNode("div",$,[e.createElementVNode("div",j,e.toDisplayString(a.title),1),e.createElementVNode("div",H,e.toDisplayString(a.description),1)]),s.platformCode?.includes(a.id)?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(y,{round:"",size:"tiny",type:"primary",onClick:X=>b(a.id,a.key)},{default:e.withCtx(()=>[...n[3]||(n[3]=[e.createTextVNode("开始使用",-1)])]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)]),_:2},1032,["class","theme-overrides"])]),_:2},1024))),128))]),_:2},1032,["cols"])):e.createCommentVNode("",!0)])),64))])])]),_:1},8,["show","style","x","y"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.withDirectives(e.createElementVNode("div",Q,null,512),[[e.vShow,r.value]])]))])}}});exports.default=W;
@@ -7,7 +7,6 @@ export declare const enum BODEN_PLATFORM_ENUM {
7
7
  PS = 5
8
8
  }
9
9
  export declare const enum BODEN_PLATFORM_NAME_ENUM {
10
- BASE = "BASE",// 标注
11
10
  ADS = "ADS",
12
11
  STUDIO = "STUDIO",
13
12
  OMNI = "OMNI",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(S=>(S[S.BASE=1]="BASE",S[S.BLINK=2]="BLINK",S[S.ACCOUNT=3]="ACCOUNT",S[S.VLA=4]="VLA",S[S.PS=5]="PS",S))(r||{}),e=(S=>(S.BASE="BASE",S.ADS="ADS",S.STUDIO="STUDIO",S.OMNI="OMNI",S.BLINK="BLINK",S.ACCOUNT="ACCOUNT",S.ROBO="ROBO",S.PS="PS",S))(e||{});exports.BODEN_PLATFORM_ENUM=r;exports.BODEN_PLATFORM_NAME_ENUM=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(S=>(S[S.BASE=1]="BASE",S[S.BLINK=2]="BLINK",S[S.ACCOUNT=3]="ACCOUNT",S[S.VLA=4]="VLA",S[S.PS=5]="PS",S))(r||{}),e=(S=>(S.ADS="ADS",S.STUDIO="STUDIO",S.OMNI="OMNI",S.BLINK="BLINK",S.ACCOUNT="ACCOUNT",S.ROBO="ROBO",S.PS="PS",S))(e||{});exports.BODEN_PLATFORM_ENUM=r;exports.BODEN_PLATFORM_NAME_ENUM=e;