@techui/scifi 0.0.3-alpha.1 → 0.0.5-alpha.1
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/UPDATE.md +71 -1
- package/core/core_bg.wasm +0 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1 -3
- package/dist/modules/echartsTheme.js +1 -1
- package/dist/modules/tuiEcharts.js +1 -1
- package/dist/modules/tuiEchartsMap.js +1 -1
- package/index.js +2 -4
- package/package.json +8 -8
- package/build.js +0 -141
- package/core/package.json +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as N from"echarts";import{$c as y}from"@techui/colors";const O=o=>{const{chart:e,common:r,font:l,scifi:t}=o,{bg:i,bd:s}=r,{line:{weak:a,base:c,strong:h},bubble:{fc:d,bg:b,hlite:n},map:{fc:S,fc_hov:m,fc_act:w,bg:x,bd:p,bg_hov:C,bd_hov:g,bg_act:W,bd_act:f,glow:L,shadow:u},palette:k,visual:T}=e,{hlite:A,focus:B}=t,{weaker:v,weak:z,base:_,strong:N,stronger:O}=l;let J=y.scale(k,6,"lch"),E=y.scale(T,4,"lch");return JSON.stringify({color:J,textStyle:{},title:{textStyle:{color:_},subtextStyle:{color:z}},line:{label:{color:"inherit",textBorderColor:i,textBorderWidth:5},itemStyle:{borderWidth:"2"},lineStyle:{width:"3"},symbolSize:"7",symbol:"emptyCircle",smooth:!0},radar:{splitLine:{lineStyle:{show:!0,color:c,type:"dashed"}},axisLine:{show:!0,lineStyle:{color:c,type:"dashed"}},axisName:{show:!0,color:_},splitArea:{areaStyle:{color:[a,i]}},symbolSize:"7",symbol:"emptyCircle",markLine:{label:{color:"inherit",textBorderColor:i,textBorderWidth:5}},smooth:!0},bar:{itemStyle:{barBorderWidth:0,barBorderColor:a},markLine:{label:{color:"inherit",textBorderColor:i,textBorderWidth:5}}},pie:{itemStyle:{borderWidth:0,borderColor:i}},scatter:{label:{show:!0,color:d},emphasis:{labele:{fontWeight:"bold"}},itemStyle:{color:{type:"radial",x:.3,y:.3,r:.5,colorStops:[{offset:0,color:n},{offset:1,color:b}],global:!1},borderWidth:0,borderColor:a}},boxplot:{itemStyle:{borderWidth:0,borderColor:a}},parallel:{itemStyle:{borderWidth:0,borderColor:a}},sankey:{itemStyle:{borderWidth:0,borderColor:a}},funnel:{itemStyle:{borderWidth:0,borderColor:a}},gauge:{itemStyle:{borderWidth:0,borderColor:h},axisLine:{show:!0,lineStyle:{color:[[1,a]]}},axisTick:{show:!0,lineStyle:{color:h}},axisLabel:{show:!0,color:_},splitLine:{show:!0,lineStyle:{color:h}},detail:{color:"inherit"}},graph:{itemStyle:{borderWidth:0,borderColor:a},lineStyle:{width:1,color:c},symbolSize:"7",symbol:"circle",smooth:!0,color:J,label:{color:_}},map:{itemStyle:{areaColor:x,borderColor:p,borderWidth:.5},label:{color:_},emphasis:{itemStyle:{areaColor:C,borderColor:p,borderWidth:1},label:{color:_}}},geo:{scaleLimit:{min:.5,max:7},itemStyle:{areaColor:x,borderColor:p,shadowColor:u,shadowOffsetY:0,shadowBlur:5,borderWidth:.5},label:{show:!0,fontSize:12,color:S},emphasis:{itemStyle:{areaColor:C,borderColor:g,borderWidth:1},label:{fontSize:14,color:m}},select:{itemStyle:{areaColor:W,borderColor:f,borderWidth:1},label:{fontSize:14,color:w}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:c}},splitLine:{show:!1,lineStyle:{color:a}},axisTick:{show:!1,lineStyle:{color:a}},axisLabel:{show:!0,color:_},splitArea:{show:!1}},valueAxis:{axisLine:{show:!0,lineStyle:{color:c}},axisTick:{show:!1,lineStyle:{color:a}},axisLabel:{show:!0,color:_},splitLine:{show:!0,lineStyle:{color:a}},splitArea:{show:!1}},logAxis:{axisLine:{show:!0,lineStyle:{color:c}},axisTick:{show:!1,lineStyle:{color:a}},axisLabel:{show:!0,color:_},splitLine:{show:!1,lineStyle:{color:a}},splitArea:{show:!1}},timeAxis:{axisLine:{show:!0,lineStyle:{color:c}},axisTick:{show:!1,lineStyle:{color:a}},axisLabel:{show:!0,color:_},splitLine:{show:!1,lineStyle:{color:a}},splitArea:{show:!1}},toolbox:{iconStyle:{borderColor:_},emphasis:{iconStyle:{borderColor:N}}},legend:{y:"bottom",x:"center",textStyle:{color:_},itemStyle:{borderColor:"transparent",borderWidth:1,opacity:1}},tooltip:{backgroundColor:i,textStyle:{color:_},axisPointer:{lineStyle:{color:_,width:1},crossStyle:{color:_,width:1}}},timeline:{symbol:"circle",progress:{itemStyle:{color:A,borderColor:"white",borderWidth:0},lineStyle:{color:A,shadowColor:"rgba(0, 0, 0, 0)"}},lineStyle:{color:B,width:1,shadowColor:"rgba(0, 0, 0, 0)"},itemStyle:{color:B,borderColor:"white",borderWidth:0},controlStyle:{color:v,borderColor:"white",borderWidth:0},checkpointStyle:{symbol:"circle",color:A,borderColor:"white",borderWidth:0,shadowColor:"rgba(0, 0, 0, 0)"},label:{color:_},emphasis:{itemStyle:{color:B},controlStyle:{color:_,borderWidth:0},label:{color:N}}},visualMap:{color:E,textStyle:{color:_},zlevel:10}})};let J=null;function $(o){if(o)try{const e=JSON.parse(O(o));N.registerTheme("eTheme",e),J=o}catch(o){console.error("registerEchartsTheme: Failed to register theme",o)}else console.warn("registerEchartsTheme: themePalette is required!")}export{$ as registerEchartsTheme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{inject as D,ref as
|
|
1
|
+
import{inject as D,ref as U,shallowRef as q,reactive as L,computed as B,watch as v,nextTick as h,onMounted as W,onBeforeUnmount as F,resolveComponent as V,resolveDirective as H,createBlock as Q,openBlock as J,withCtx as K,withDirectives as X,renderSlot as Y,createElementVNode as Z,normalizeStyle as ee,normalizeClass as te,unref as P}from"vue";import{cidGen as ie,cssVarGen as ae}from"@techui/scifi";import{tQuery as z,tClass as R,tStr as re,tType as _}from"@techui/utils";import*as ne from"echarts";import{$c as oe}from"@techui/colors";const se=(e,t,a="358")=>{const i=z.get1stParent(e,".tui-3d-panel");if(!i)return;if(R.has(i,"is-3doff"))return;if(!(e&&e instanceof HTMLElement&&"string"==typeof t&&""!==t.trim()))return;const r=e.querySelector("svg");if(!r)return;const l="pathG"+t,n=r.querySelector(`g#${CSS.escape(l)}`);n&&r.removeChild(n);const s=r.querySelectorAll("path"),o=[];if(s.forEach((e=>{const t=e.getAttribute("stroke-width");null!=t&&""!==t.trim()&&String(t).includes(a)&&o.push(e)})),o.length>0){const e=document.createElementNS("http://www.w3.org/2000/svg","g");e.setAttribute("id",l),o.forEach((t=>{const a=t.getAttribute("fill"),i=t.getAttribute("stroke");t.setAttribute("class","ori-svg-item");const r=t.cloneNode(!0);r.setAttribute("class","t3d-shadow-item"),r.setAttribute("style",`--tui-t3d-thickcolor:${oe.darken("none"!=a?a:i,2.5)}`),e.appendChild(r)})),r.insertBefore(e,r.firstChild)}},le=e=>{const t="pathG"+e,a=z.el(`#${t}`);a&&a.remove()},E="TuiEcharts",fe=Object.assign({name:E},{__name:"tuiEcharts",props:{width:[Number,String],height:[Number,String],chartOption:{type:Object,required:!0},initOptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:null},initT3DShadow:{type:Boolean,default:!1},t3DShadowUpdate:{type:String,default:"finished",validator:e=>["rendered","finished"].includes(e)},renderer:{type:String,default:"canvas",validator:e=>["svg","canvas"].includes(e)},ready:{type:Boolean,default:!1},dataOpacity:Number,dataBlur:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["chartClick","chartDblClick","chartMouseDown","chartMouseUp","chartMouseOver","chartGlobalOut","chartInit","chartReady","chartRendered","chartFinished","update:loading"],setup(e,{expose:t,emit:a}){const{$gT3D:i,$gTheme:r,$optResizeCounter:l,initResizeBy:n}=D("$global",null),s=n(),o=ie(E),u="echart_"+re.rdm(),c=e,d=a,p=U(null),f=q(null),g=L({loading:!0,inited:!1,resizing:!0}),m=B({get:()=>c.loading??g.loading,set:e=>{null!==c.loading?d("update:loading",e):g.loading=e}}),b=async()=>{if(p.value)try{if(S(),f.value)return;await h(),f.value=ne.init(p.value,"eTheme",{...c.initOptions,renderer:c.initT3DShadow?"svg":c.renderer}),d("chartInit",f.value),f.value.setOption(c.chartOption),y(),await h(),f.value&&(d("chartReady",f.value),m.value=!1)}catch(e){console.error("ECharts initialization failed:",e)}},y=()=>{if(!f.value)return;const e=(e,t)=>{f.value&&f.value.on(e,t)};e("click",(e=>d("chartClick",e))),e("dblclick",(e=>d("chartDblClick",e))),e("mousedown",(e=>d("chartMouseDown",e))),e("mouseup",(e=>d("chartMouseUp",e))),e("mouseover",(e=>d("chartMouseOver",e))),e("globalout",(e=>d("chartGlobalOut",e))),e("rendered",(()=>{f.value&&"rendered"==c.t3DShadowUpdate&&w(),d("chartRendered")})),e("finished",(function(){f.value&&("finished"==c.t3DShadowUpdate&&w(),d("chartFinished"),m.value=!1,g.inited=!1)}))},w=()=>{if(!p.value)return;let e=!0;const t=z.get1stParent(p.value,".tui-3d-panel");(!t||t&&R.has(t,"is-3doff"))&&(e=!1),c.initT3DShadow&&e?se(p.value,u):le(u)},O=D("TuiT3DPanel",null);v((()=>[i.value,c.initT3DShadow,O?.view3d?.value]),(([e,t,a])=>{w()})),v((()=>r.value),(async e=>{f.value&&(await h(),f.value.setTheme("eTheme"))}));const S=()=>{f.value&&(f.value.dispose(),f.value=null)},T=()=>{f.value&&f.value.resize()};v((()=>c.ready),(e=>{e&&b()})),v((()=>c.chartOption),(()=>{f.value&&h((()=>{f.value&&(f.value.setOption(c.chartOption),m.value=!1)}))}),{deep:!0});const C=B((()=>ae("cpt-echart",{...c.width&&{width:_.join("number",c.width,"px")},...c.height&&{height:_.join("number",c.height,"px")},...c.dataOpacity&&{opa:c.dataOpacity},...c.dataBlur&&{blur:c.dataBlur+"px"}})));v((()=>l.value),((e,t)=>{"root"==s.value(c.resizeObserver)&&e>t&&k()}));const k=async()=>{g.resizing=!0,T(),await h(),setTimeout((()=>{g?.resizing&&(g.resizing=!1)}),500)};return W((()=>{c.ready&&h((()=>{b()}))})),F((()=>{S()})),t({resize:T,getChart:()=>f.value,setOption:(e,t)=>{f.value&&f.value.setOption(e,t)},clear:()=>{f.value&&f.value.clear()},initChart:b,dispose:S}),(t,a)=>{const i=V("TuiLoaderPanel"),r=H("tui-resize");return J(),Q(i,{loading:m.value,inited:g.inited},{default:K((()=>[X(Z("div",{ref_key:"chartRef",ref:p,class:te(["tui-echarts",{"is-resizing":g.resizing}]),style:ee(C.value)},null,6),[[r,{callback:k,uid:u,cid:P(o),disabled:"self"!=P(s)(e.resizeObserver)}]]),Y(t.$slots,"default")])),_:3},8,["loading","inited"])}}});export{fe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{nextTick as
|
|
1
|
+
import{nextTick as m,markRaw as K,inject as Q,ref as W,shallowRef as Z,reactive as I,computed as C,watch as y,onMounted as ee,onBeforeUnmount as te,resolveComponent as ae,resolveDirective as re,createBlock as ie,openBlock as k,withCtx as oe,withDirectives as ne,createElementBlock as B,createCommentVNode as le,renderSlot as ce,createElementVNode as M,normalizeStyle as x,normalizeClass as ue,unref as N,Fragment as se,renderList as de,toDisplayString as pe}from"vue";import{cidGen as fe,cssVarGen as ve}from"@techui/scifi";import{tEvent as ge,tStr as me,tType as S}from"@techui/utils";import*as E from"echarts";const be=(e,a,t,i,r)=>{if(!e.value)return;const o=(a,t)=>{e.value&&e.value.on(a,t)};o("click",ge.debounce((t=>{let r,o=t;if(t.value&&!a.chartOption.geo3D)r=e.value.convertToPixel("geo",[t.value[0],t.value[1]]),o.domPosition=r;else if("geo"==t.componentType&&t.event?.offsetX){const{offsetX:a,offsetY:i}=t.event;r=e.value.convertFromPixel("geo",[a,i]),o.coordPosition=r}i("chartClick",o,t)}),500,!0)),o("dblclick",(e=>i("chartDblClick",e))),o("mousedown",(e=>i("chartMouseDown",e))),o("mouseup",(e=>i("chartMouseUp",e))),o("mouseover",(e=>i("chartMouseOver",e))),o("globalout",(e=>i("chartGlobalOut",e))),o("geoRoam",(e=>i("chartGeoRoam",e))),o("timelinechanged",(t=>{const{allAreaCodes:r,chartOption:{timeline:o}}=a;let l=t;if("geoTitle"==o.titleType){let a=o.data[t.currentIndex],i=r.find((e=>e.name.includes(a))),n=e.value.convertToPixel("geo",[i.lng,i.lat]);l.domPosition=n,l.current=i}i("chartTimelinechanged",l)})),o("rendered",(()=>{i("chartRendered")})),o("finished",(()=>{e.value&&(i("chartFinished"),t.inited=!0)}))},he=e=>{e.value&&e.value.resize()},ye=e=>e.value,Oe=(e,a,t)=>{e.value&&e.value.setOption(a,t)},Ce=e=>{e.value&&e.value.clear()},ke=e=>{if(e.value)try{const a=e.value.getOption();a.geo&&a.geo[0]&&(a.geo[0].roam=!0,a.geo[0].zoom=1,a.geo[0].center=null,e.value.setOption(a,!1))}catch(e){console.error("Failed to reset map view:",e)}},G=(e,a)=>{try{return a?(E.registerMap(e,a),!0):(console.warn("GeoJSON data is missing"),!1)}catch(e){return console.error("Failed to register map:",e),!1}},ze=async(e,a,t,i,r,o)=>{if(e.value)try{if(F(a),a.value)return;if(!G(t.mapName,t.geoJsonData))return void console.error("Map registration failed, aborting chart initialization");await m(),a.value=K(E.init(e.value,"eTheme",{...t.initOptions,notMerge:!1,renderer:t.renderer})),r("chartInit",a.value),a.value.setOption(t.chartOption),o(),await m(),a.value&&(r("chartReady",a.value),i.value=!1)}catch(e){console.error("ECharts Map initialization failed:",e)}},we=(e,a,t,i,r=!1)=>{e.value&&(e.value.setOption(a,r),t.value=!1,i("chartUpdate"))},F=e=>{e.value&&(e.value.dispose(),e.value=null)},Te=["onClick"],Be={class:"breadcrumb-text"},P="TuiEchartsMap",_e=Object.assign({name:P},{__name:"tuiEchartsMap",props:{width:[Number,String],height:[Number,String],chartOption:{type:Object,required:!0},geoJsonData:{type:Object,required:!0},allAreaCodes:Object,mapName:{type:String,required:!0},initOptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:null},renderer:{type:String,default:"canvas",validator:e=>["svg","canvas"].includes(e)},ready:{type:Boolean,default:!1},dataOpacity:Number,dataBlur:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},updateReplace:{type:Boolean,default:!0},enableBreadcrumb:{type:Boolean,default:!1},breadcrumbConfig:{type:Object,default:()=>({data:[{code:1e5,name:"全国"}],position:{top:"5%",left:"5%"}})}},emits:["chartClick","chartDblClick","chartMouseDown","chartMouseUp","chartMouseOver","chartGlobalOut","chartInit","chartReady","chartRendered","chartFinished","chartGeoRoam","chartUpdate","chartTimelinechanged","breadcrumbClick","update:loading"],setup(e,{expose:a,emit:t}){const{$gT3D:i,$gTheme:r,$optResizeCounter:o,initResizeBy:l}=Q("$global",null),n=l(),s=fe(P),c="echart_map_"+me.rdm(),u=W(null),d=Z(null),p=e,v=t,h=I({loading:!0,inited:!1,resizing:!0}),g=C({get:()=>p.loading??h.loading,set:e=>{null!==p.loading?v("update:loading",e):h.loading=e}}),b=C((()=>p.breadcrumbConfig?.data||[])),f=C((()=>{let e=p.breadcrumbConfig?.position||{},a={};for(let t in e)"number"==typeof e[t]?a[t]=e[t]+"px":a[t]=e[t];return a})),O=async()=>{await ze(u,d,p,g,v,z,p.updateReplace)},w=()=>{we(d,p.chartOption,g,v,p.updateReplace)},z=()=>{be(d,p,h,v)},T=()=>{F(d)},R=()=>{he(d)},D=C((()=>ve("cpt-echart-map",{...p.width&&{width:S.join("number",p.width,"px")},...p.height&&{height:S.join("number",p.height,"px")},...p.dataOpacity&&{opa:p.dataOpacity},...p.dataBlur&&{blur:p.dataBlur+"px"}})));y((()=>p.geoJsonData),(()=>{d.value&&(G(p.mapName,p.geoJsonData),m((()=>{w()})))}),{deep:!0}),y((()=>p.ready),(e=>{e&&O()})),y((()=>p.chartOption),(()=>{d.value&&m((()=>{w()}))}),{deep:!0}),y((()=>r.value),(e=>{d.value&&m((()=>{d.value.setTheme("eTheme")}))})),y((()=>o.value),((e,a)=>{"root"==n.value(p.resizeObserver)&&e>a&&j()}));const j=async()=>{h.resizing=!0,R(),await m(),setTimeout((()=>{h?.resizing&&(h.resizing=!1)}),500)};return ee((()=>{p.ready&&m((()=>{O()}))})),te((()=>{T()})),a({resize:R,getChart:()=>ye(d),setOption:(e,a)=>{Oe(d,e,a)},initChart:O,clear:()=>{Ce(d)},resetMapView:()=>{ke(d)},dispose:T}),(a,t)=>{const i=ae("TuiLoaderPanel"),r=re("tui-resize");return k(),ie(i,{loading:g.value,inited:h.inited},{default:oe((()=>[ne(M("div",{ref_key:"mapRef",ref:u,class:ue(["tui-echarts-map",{"is-resizing":h.resizing}]),style:x(D.value)},null,6),[[r,{callback:j,uid:c,cid:N(s),disabled:"self"!=N(n)(e.resizeObserver)}]]),e.enableBreadcrumb&&b.value.length>0?(k(),B("div",{key:0,class:"tui-map-breadcrumb",style:x(f.value)},[(k(!0),B(se,null,de(b.value,((e,a)=>(k(),B("div",{key:`${e.code}-${a}`,class:"breadcrumb-item",onClick:t=>((e,a)=>{const t=b.value.slice(0,a+1);v("breadcrumbClick",{item:e,index:a,breadcrumb:t,chart:d.value})})(e,a)},[M("span",Be,pe(e.name),1)],8,Te)))),128)),t[0]||(t[0]=M("i",{class:"tui-icon ti-map breadcrumb-icon"},null,-1))],4)):le("",!0),ce(a.$slots,"default")])),_:3},8,["loading","inited"])}}});export{_e as default};
|
package/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "@techui/icons";
|
|
2
|
-
import tuiLocales from "@techui/locales";
|
|
3
2
|
import "./dist/index.css";
|
|
4
3
|
import { dynamicEcharts, toComps, toDirective, toGlobal, toRoot } from "./dist/index.js";
|
|
5
4
|
|
|
@@ -11,7 +10,6 @@ const initComps=(app,license,features,debug=false)=>{
|
|
|
11
10
|
app.directive('tuiDrag', toDirective.$dDrag)
|
|
12
11
|
app.directive('tuiVcid', toDirective.$dVcid)
|
|
13
12
|
const tService=toRoot.tuiService(advanced,debug)
|
|
14
|
-
app.config.globalProperties.$tStoreLocales = tuiLocales
|
|
15
13
|
app.config.globalProperties.$tBus = toRoot.tuiBus
|
|
16
14
|
app.config.globalProperties.$tService = tService
|
|
17
15
|
app.config.globalProperties.$tState = tService.state
|
|
@@ -41,7 +39,7 @@ const initComps=(app,license,features,debug=false)=>{
|
|
|
41
39
|
});
|
|
42
40
|
};
|
|
43
41
|
|
|
44
|
-
import {
|
|
42
|
+
import { initLang } from "@techui/utils";
|
|
45
43
|
|
|
46
44
|
import init, {
|
|
47
45
|
coreInfo,
|
|
@@ -147,7 +145,7 @@ const coreEnt=async ({
|
|
|
147
145
|
features={},
|
|
148
146
|
debug=false
|
|
149
147
|
})=>{
|
|
150
|
-
|
|
148
|
+
initLang();
|
|
151
149
|
await init();
|
|
152
150
|
window.tuiCoreInfo=coreInfo
|
|
153
151
|
techuiCoreInit(license,subLicense,coreEnt.toString());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techui/scifi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5-alpha.1",
|
|
4
4
|
"description": "TechUI Scifi is a sci-fi SVG component library developed based on Vue3. It uses dynamically calculated SVG elements to generate a variety of cool, futuristic, and technological components.",
|
|
5
5
|
"author": "aYin <ayin86cn@gmail.com> <wechat:jay1986cn>",
|
|
6
6
|
"homepage": "https://techui.net",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
],
|
|
42
42
|
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@techui/icons": "
|
|
45
|
-
"@techui/colors": "
|
|
46
|
-
"@techui/lessmixins": "
|
|
47
|
-
"@techui/
|
|
48
|
-
"@techui/
|
|
49
|
-
"@techui/
|
|
50
|
-
"@techui/utils": "
|
|
44
|
+
"@techui/icons": "1.0.2",
|
|
45
|
+
"@techui/colors": "1.0.1",
|
|
46
|
+
"@techui/lessmixins": "0.0.5",
|
|
47
|
+
"@techui/libs": "0.0.5",
|
|
48
|
+
"@techui/locales": "0.0.5",
|
|
49
|
+
"@techui/themes": "0.0.5",
|
|
50
|
+
"@techui/utils": "0.0.5",
|
|
51
51
|
"vue": "^3.4.27",
|
|
52
52
|
"vue-router": "^4.3.2"
|
|
53
53
|
},
|
package/build.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import "@source/components/assets/css/font.less"
|
|
2
|
-
import "@source/components/assets/css/icon.less"
|
|
3
|
-
import "@source/components/assets/css/main.less"
|
|
4
|
-
import "@source/components/assets/css/scifi.less"
|
|
5
|
-
import "@source/components/assets/css/viewTrans.less"
|
|
6
|
-
|
|
7
|
-
//root
|
|
8
|
-
import tuiBus from "@source/components/kernel/bus/index.js"
|
|
9
|
-
import tuiService from "@source/components/kernel/service/index-scifi.js"
|
|
10
|
-
|
|
11
|
-
//directive
|
|
12
|
-
import $dDrag from "@source/components/kernel/directive/drag.js"
|
|
13
|
-
import $dResize from "@source/components/kernel/directive/resize.js"
|
|
14
|
-
import $dVcid from "@source/components/kernel/directive/vcid.js"
|
|
15
|
-
|
|
16
|
-
//global
|
|
17
|
-
import $gLoading from "@source/components/base/loading/index.js"
|
|
18
|
-
import $gMask from "@source/components/base/mask/index.js"
|
|
19
|
-
|
|
20
|
-
//advance
|
|
21
|
-
import AdptDragTip from "@source/components/advance/adaptive/adptScifi_dragTip.vue"
|
|
22
|
-
import AdptLowResTip from "@source/components/advance/adaptive/adptScifi_lowResTip.vue"
|
|
23
|
-
import Adaptive from "@source/components/advance/adaptive/index.vue"
|
|
24
|
-
import Bar3DGroup from "@source/components/advance/bar3D/group.vue"
|
|
25
|
-
import Bar3D from "@source/components/advance/bar3D/index.vue"
|
|
26
|
-
import Echarts from "@source/components/advance/echarts/index.vue"
|
|
27
|
-
import EchartsMap from "@source/components/advance/echarts/map.vue"
|
|
28
|
-
import PanicAlert from "@source/components/advance/panicAlert/index.vue"
|
|
29
|
-
import Pie from "@source/components/advance/pie/index.vue"
|
|
30
|
-
import T3DPanel from "@source/components/advance/t3DPanel/index.vue"
|
|
31
|
-
|
|
32
|
-
//base
|
|
33
|
-
import LoaderPanel from "@source/components/base/loaderPanel/index.vue"
|
|
34
|
-
import LoadingArea from "@source/components/base/loading/LoadingArea.vue"
|
|
35
|
-
import LoadingFull from "@source/components/base/loading/LoadingFull.vue"
|
|
36
|
-
import Mask from "@source/components/base/mask/index.vue"
|
|
37
|
-
import Provider from "@source/components/kernel/provider/index-scifi.vue"
|
|
38
|
-
|
|
39
|
-
//Scifi Button
|
|
40
|
-
import ScifiButtonA1 from "@source/components/scifi/button/A1.vue"
|
|
41
|
-
import ScifiButtonA2 from "@source/components/scifi/button/A2.vue"
|
|
42
|
-
import ScifiButtonA3 from "@source/components/scifi/button/A3.vue"
|
|
43
|
-
import ScifiButtonA4 from "@source/components/scifi/button/A4.vue"
|
|
44
|
-
import ScifiButtonA5 from "@source/components/scifi/button/A5.vue"
|
|
45
|
-
|
|
46
|
-
//Scifi Geometry
|
|
47
|
-
import ScifiGHexagon from "@source/components/scifi/geometry/Hexagon.vue"
|
|
48
|
-
import ScifiGParallelogram from "@source/components/scifi/geometry/Parallelogram.vue"
|
|
49
|
-
import ScifiGRectangle from "@source/components/scifi/geometry/Rectangle.vue"
|
|
50
|
-
import ScifiGTrapezoid from "@source/components/scifi/geometry/Trapezoid.vue"
|
|
51
|
-
import ScifiGTriangle from "@source/components/scifi/geometry/Triangle.vue"
|
|
52
|
-
|
|
53
|
-
//Scifi Deco
|
|
54
|
-
import ScifiDecoA1 from "@source/components/scifi/deco/A1.vue"
|
|
55
|
-
import ScifiDecoB1 from "@source/components/scifi/deco/B1.vue"
|
|
56
|
-
import ScifiDecoB2 from "@source/components/scifi/deco/B2.vue"
|
|
57
|
-
import ScifiDecoB3 from "@source/components/scifi/deco/B3.vue"
|
|
58
|
-
import ScifiDecoC1 from "@source/components/scifi/deco/C1.vue"
|
|
59
|
-
|
|
60
|
-
//Scifi Header
|
|
61
|
-
import ScifiHeaderA1 from "@source/components/scifi/header/A1.vue"
|
|
62
|
-
import ScifiHeaderA2 from "@source/components/scifi/header/A2.vue"
|
|
63
|
-
import ScifiHeaderA3 from "@source/components/scifi/header/A3.vue"
|
|
64
|
-
import ScifiHeaderA4 from "@source/components/scifi/header/A4.vue"
|
|
65
|
-
|
|
66
|
-
//Scifi Panel
|
|
67
|
-
import ScifiPanelA1 from "@source/components/scifi/panel/A1.vue"
|
|
68
|
-
import ScifiPanelA2 from "@source/components/scifi/panel/A2.vue"
|
|
69
|
-
import ScifiPanelA3 from "@source/components/scifi/panel/A3.vue"
|
|
70
|
-
import ScifiPanelB1 from "@source/components/scifi/panel/B1.vue"
|
|
71
|
-
import ScifiPanelB2 from "@source/components/scifi/panel/B2.vue"
|
|
72
|
-
import ScifiPanelB3 from "@source/components/scifi/panel/B3.vue"
|
|
73
|
-
import ScifiPanelB4 from "@source/components/scifi/panel/B4.vue"
|
|
74
|
-
import ScifiPanelDV1 from "@source/components/scifi/panel/DV1.vue"
|
|
75
|
-
import ScifiPanelDV2 from "@source/components/scifi/panel/DV2.vue"
|
|
76
|
-
import ScifiPanelDV3 from "@source/components/scifi/panel/DV3.vue"
|
|
77
|
-
import ScifiPanelDV4 from "@source/components/scifi/panel/DV4.vue"
|
|
78
|
-
import ScifiPanelDV5 from "@source/components/scifi/panel/DV5.vue"
|
|
79
|
-
import ScifiPanelDV6 from "@source/components/scifi/panel/DV6.vue"
|
|
80
|
-
import ScifiPanelDV7 from "@source/components/scifi/panel/DV7.vue"
|
|
81
|
-
import ScifiPanelDV8 from "@source/components/scifi/panel/DV8.vue"
|
|
82
|
-
import ScifiPanelDV9 from "@source/components/scifi/panel/DV9.vue"
|
|
83
|
-
import TuiPanelA1 from "@source/components/scifi/tui/panel/A1.vue"
|
|
84
|
-
|
|
85
|
-
//Scifi Panel Title
|
|
86
|
-
import ScifiPanelTitleA1 from "@source/components/scifi/panelTitle/A1.vue"
|
|
87
|
-
import ScifiPanelTitleA2 from "@source/components/scifi/panelTitle/A2.vue"
|
|
88
|
-
import ScifiPanelTitleA3 from "@source/components/scifi/panelTitle/A3.vue"
|
|
89
|
-
|
|
90
|
-
//Tui
|
|
91
|
-
import TuiThemeToggle from "@source/components/base/themeToggle/index.vue"
|
|
92
|
-
import TuiPanelTitleA1 from "@source/components/scifi/tui/panelTitle/A1.vue"
|
|
93
|
-
import TuiPanelTitleA2 from "@source/components/scifi/tui/panelTitle/A2.vue"
|
|
94
|
-
|
|
95
|
-
export const toDirective={
|
|
96
|
-
$dDrag,
|
|
97
|
-
$dResize,
|
|
98
|
-
$dVcid
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export const toRoot={
|
|
102
|
-
tuiService,
|
|
103
|
-
tuiBus,
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export const toGlobal={
|
|
107
|
-
$gMask,
|
|
108
|
-
$gLoading,
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export const toComps=[
|
|
112
|
-
Adaptive,AdptDragTip,AdptLowResTip, Bar3DGroup, Bar3D, Echarts, EchartsMap, Pie, T3DPanel,
|
|
113
|
-
Provider,Mask, LoadingFull, LoadingArea, LoaderPanel, TuiThemeToggle,PanicAlert,
|
|
114
|
-
|
|
115
|
-
//button
|
|
116
|
-
ScifiButtonA1,ScifiButtonA2,ScifiButtonA3,ScifiButtonA4,ScifiButtonA5,
|
|
117
|
-
|
|
118
|
-
//Geometry
|
|
119
|
-
ScifiGHexagon,ScifiGParallelogram,ScifiGRectangle,ScifiGTrapezoid,ScifiGTriangle,
|
|
120
|
-
|
|
121
|
-
//deco
|
|
122
|
-
ScifiDecoA1,ScifiDecoB1,ScifiDecoB2,ScifiDecoB3,ScifiDecoC1,
|
|
123
|
-
|
|
124
|
-
//header
|
|
125
|
-
ScifiHeaderA1,ScifiHeaderA2,ScifiHeaderA3,ScifiHeaderA4,
|
|
126
|
-
|
|
127
|
-
//panel
|
|
128
|
-
ScifiPanelA1, ScifiPanelA2, ScifiPanelA3,
|
|
129
|
-
ScifiPanelB1, ScifiPanelB2, ScifiPanelB3, ScifiPanelB4,
|
|
130
|
-
ScifiPanelDV1, ScifiPanelDV2, ScifiPanelDV3, ScifiPanelDV4, ScifiPanelDV5,
|
|
131
|
-
ScifiPanelDV6, ScifiPanelDV7, ScifiPanelDV8, ScifiPanelDV9,
|
|
132
|
-
TuiPanelA1,
|
|
133
|
-
|
|
134
|
-
//panelTitle
|
|
135
|
-
ScifiPanelTitleA1, ScifiPanelTitleA2, ScifiPanelTitleA3, TuiPanelTitleA1, TuiPanelTitleA2,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
];
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
package/core/package.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "core",
|
|
3
|
-
"collaborators": [
|
|
4
|
-
"ayin86 <ayin86cn@gmail.com>"
|
|
5
|
-
],
|
|
6
|
-
"description": "It's a private project.",
|
|
7
|
-
"version": "0.3.0",
|
|
8
|
-
"license": "none",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/jason86cn"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"core_bg.wasm",
|
|
15
|
-
"core.js",
|
|
16
|
-
"core.d.ts",
|
|
17
|
-
"LICENSE_APACHE",
|
|
18
|
-
"LICENSE_MIT"
|
|
19
|
-
],
|
|
20
|
-
"module": "core.js",
|
|
21
|
-
"types": "core.d.ts",
|
|
22
|
-
"sideEffects": [
|
|
23
|
-
"./snippets/*"
|
|
24
|
-
]
|
|
25
|
-
}
|