@ecan-bi/datav 1.0.4 → 1.0.5

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.
@@ -0,0 +1,17 @@
1
+ export interface CommonProps {
2
+ id: string;
3
+ name: string;
4
+ type: string;
5
+ width: string;
6
+ height: string;
7
+ x: string;
8
+ y: string;
9
+ zIndex: number;
10
+ rotate: string;
11
+ isShow: boolean;
12
+ isRender: boolean;
13
+ imgUrl: string;
14
+ }
15
+ export declare const transformToComponentProps: <T extends {
16
+ [key: string]: any;
17
+ }>(props: T) => any;
@@ -0,0 +1,2 @@
1
+ export * from './text';
2
+ export * from './control';
@@ -0,0 +1 @@
1
+ export * from './input';
@@ -0,0 +1,4 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ valueRef: import("vue").Ref<string>;
3
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
4
+ export default _default;
@@ -1,2 +1,2 @@
1
- export declare const EInput: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
- export default EInput;
1
+ export declare const EcanInput: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
+ export default EcanInput;
package/dist/index.d.ts CHANGED
@@ -1 +1,6 @@
1
- export * from './text';
1
+ import { App } from 'vue';
2
+ export * from './components';
3
+ declare const _default: {
4
+ install: (app: App<any>) => void;
5
+ };
6
+ export default _default;
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{defineComponent as e,openBlock as t,createElementBlock as n,toDisplayString as r,ref as o}from"vue";"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);const c=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e};var s=e({name:"EText",props:{text:{type:String,default:""}}});s.render=function(e,o,c,s,d,l){return t(),n("div",null,r(e.text),1)},s.__file="src/text/text/Text.vue";const d=c(s);var l=e({name:"EScrollText",setup:()=>({text:o("基础文本")})});const i={class:"red"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".red[data-v-0cbdffb5]{color:red}"),l.render=function(e,o,c,s,d,l){return t(),n("div",i,r(e.text),1)},l.__scopeId="data-v-0cbdffb5",l.__file="src/text/scroll-text/ScrollText.vue";const f=c(l);export{f as EScrollText,d as EText};
1
+ import{defineComponent as t,openBlock as e,createElementBlock as n,toDisplayString as r,ref as o,createBlock as a,withCtx as i,createTextVNode as u}from"vue";import{mapValues as l}from"lodash-es";import{Button as c}from"ant-design-vue/es";import"ant-design-vue/es/button/style/css";function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a=[],i=!0,u=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){u=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(u)throw o}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var m=function(t,e){if(t.install=function(n){for(var r=0,o=[t].concat(p(Object.values(null!=e?e:{})));r<o.length;r++){var a=o[r];n.component(a.name,a)}},e)for(var n=0,r=Object.entries(e);n<r.length;n++){var o=d(r[n],2),a=o[0],i=o[1];t[a]=i}return t},y={color:"#333333",fontFamily:"",fontSize:"14px",fontWeight:400,height:"40px",id:"",isRender:!0,isShow:!0,name:"基础文本",rotate:"0deg",text:"文字",type:"ecan-text",width:"100px",x:"0px",y:"0px",zIndex:0,imgUrl:""},v=l(y,(function(t){return{type:t.constructor,default:t}})),h=t({name:"EcanText",props:v,setup:function(t){console.log(t)}});h.render=function(t,o,a,i,u,l){return e(),n("div",null,r(t.text),1)},h.__file="src/text/text/Text.vue";var x=m(h),b=t({name:"EcanScrollText",setup:function(){return{text:o("基础文本")}}}),g={class:"red"};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".red[data-v-0cbdffb5]{color:red}"),b.render=function(t,o,a,i,u,l){return e(),n("div",g,r(t.text),1)},b.__scopeId="data-v-0cbdffb5",b.__file="src/text/scroll-text/ScrollText.vue";var E=m(b),S=t({name:"EcanInput",setup:function(){return{valueRef:o("")}}}),_=u("测试");S.render=function(t,n,r,o,u,l){var f=c;return e(),a(f,null,{default:i((function(){return[_]})),_:1})},S.__file="src/control/input/Input.vue";var T=m(S),j=Object.freeze({__proto__:null,textProps:y,textComponentProps:v,EcanText:x,EcanScrollText:E,EcanInput:T}),A={install:function(t){Object.keys(j).forEach((function(e){var n=j[e];n.install&&t.use(n)}))}};export{T as EcanInput,E as EcanScrollText,x as EcanText,A as default,v as textComponentProps,y as textProps};
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue)}(this,(function(e,t){"use strict";"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);const n=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(null!=t?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e};var o=t.defineComponent({name:"EText",props:{text:{type:String,default:""}}});o.render=function(e,n,o,r,c,d){return t.openBlock(),t.createElementBlock("div",null,t.toDisplayString(e.text),1)},o.__file="src/text/text/Text.vue";const r=n(o);var c=t.defineComponent({name:"EScrollText",setup:()=>({text:t.ref("基础文本")})});const d={class:"red"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".red[data-v-0cbdffb5]{color:red}"),c.render=function(e,n,o,r,c,i){return t.openBlock(),t.createElementBlock("div",d,t.toDisplayString(e.text),1)},c.__scopeId="data-v-0cbdffb5",c.__file="src/text/scroll-text/ScrollText.vue";const i=n(c);e.EScrollText=i,e.EText=r,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("lodash-es"),require("ant-design-vue/es"),require("ant-design-vue/es/button/style/css")):"function"==typeof define&&define.amd?define(["exports","vue","lodash-es","ant-design-vue/es","ant-design-vue/es/button/style/css"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue,e["lodash-es"],e["ant-design-vue/es"])}(this,(function(e,t,n,r){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var u,c=function(e,t){if(e.install=function(n){for(var r=0,o=[e].concat(l(Object.values(null!=t?t:{})));r<o.length;r++){var i=o[r];n.component(i.name,i)}},t)for(var n=0,r=Object.entries(t);n<r.length;n++){var o=a(r[n],2),i=o[0],u=o[1];e[i]=u}return e},s={color:"#333333",fontFamily:"",fontSize:"14px",fontWeight:400,height:"40px",id:"",isRender:!0,isShow:!0,name:"基础文本",rotate:"0deg",text:"文字",type:"ecan-text",width:"100px",x:"0px",y:"0px",zIndex:0,imgUrl:""},f=(u=s,n.mapValues(u,(function(e){return{type:e.constructor,default:e}}))),d=t.defineComponent({name:"EcanText",props:f,setup:function(e){console.log(e)}});d.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",null,t.toDisplayString(e.text),1)},d.__file="src/text/text/Text.vue";var p=c(d),y=t.defineComponent({name:"EcanScrollText",setup:function(){return{text:t.ref("基础文本")}}}),m={class:"red"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".red[data-v-0cbdffb5]{color:red}"),y.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",m,t.toDisplayString(e.text),1)},y.__scopeId="data-v-0cbdffb5",y.__file="src/text/scroll-text/ScrollText.vue";var v=c(y),x=t.defineComponent({name:"EcanInput",setup:function(){return{valueRef:t.ref("")}}}),h=t.createTextVNode("测试");x.render=function(e,n,o,i,a,l){var u=r.Button;return t.openBlock(),t.createBlock(u,null,{default:t.withCtx((function(){return[h]})),_:1})},x.__file="src/control/input/Input.vue";var b=c(x),g=Object.freeze({__proto__:null,textProps:s,textComponentProps:f,EcanText:p,EcanScrollText:v,EcanInput:b}),E={install:function(e){Object.keys(g).forEach((function(t){var n=g[t];n.install&&e.use(n)}))}};e.EcanInput=b,e.EcanScrollText=v,e.EcanText=p,e.default=E,e.textComponentProps=f,e.textProps=s,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,2 +1,2 @@
1
- export declare const EScrollText: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
- export default EScrollText;
1
+ export declare const EcanScrollText: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
+ export default EcanScrollText;
@@ -1,13 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- text: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
7
- text?: unknown;
8
- } & {
9
- text: string;
10
- } & {}>, {
11
- text: string;
1
+ declare const _default: import("vue").DefineComponent<any, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
2
+ [x: string]: any;
12
3
  }>;
13
4
  export default _default;
@@ -1,2 +1,3 @@
1
- export declare const EText: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
- export default EText;
1
+ export { textProps, textComponentProps } from './props';
2
+ export declare const EcanText: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
3
+ export default EcanText;
@@ -0,0 +1,10 @@
1
+ import { CommonProps } from '../../_utils/props';
2
+ export interface TextProps extends CommonProps {
3
+ text: string;
4
+ color: string;
5
+ fontSize: string;
6
+ fontFamily: string;
7
+ fontWeight: number;
8
+ }
9
+ export declare const textProps: TextProps;
10
+ export declare const textComponentProps: any;
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@ecan-bi/datav",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
+ "typings": "dist/index.d.ts",
6
7
  "types": "dist/index.d.ts",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
11
+ "description": "",
10
12
  "keywords": [],
11
13
  "author": "ayuan",
12
14
  "publishConfig": {
@@ -14,21 +16,20 @@
14
16
  },
15
17
  "license": "ISC",
16
18
  "scripts": {
17
- "build": "npm run clean && npm run lint && rollup -c ./build/rollup.config.ts",
18
- "dev": "npm run clean && npm run lint && rollup -wc ./build/rollup.config.ts",
19
+ "build": "gulp -f ./build/gulpfile.ts",
20
+ "rollup": "rollup -c ./build/rollup.config.ts",
21
+ "rollup:dev": "rollup -wc ./build/rollup.config.ts",
19
22
  "lint": "eslint ./src --ext .vue,.js,.ts,.jsx,.tsx",
20
23
  "lint:fix": "eslint --fix ./src --ext .vue,.js,.ts,.jsx,.tsx",
21
24
  "clean": "rimraf ./dist",
22
25
  "prepublishOnly": "npm run build",
23
- "test": "jest",
24
- "gulp": "gulp -f ./build/gulpfile.ts"
26
+ "test": "jest"
25
27
  },
26
28
  "devDependencies": {
27
29
  "@babel/core": "^7.16.0",
28
30
  "@babel/plugin-transform-runtime": "^7.16.4",
29
31
  "@babel/preset-env": "^7.16.4",
30
32
  "@babel/preset-typescript": "^7.16.0",
31
- "@rollup/plugin-alias": "^3.1.8",
32
33
  "@rollup/plugin-babel": "^5.3.0",
33
34
  "@rollup/plugin-commonjs": "^21.0.1",
34
35
  "@rollup/plugin-json": "^4.1.0",
@@ -37,14 +38,16 @@
37
38
  "@sucrase/jest-plugin": "^2.2.0",
38
39
  "@types/gulp": "^4.0.9",
39
40
  "@types/jest": "^26.0.23",
41
+ "@types/rollup-plugin-peer-deps-external": "^2.2.1",
40
42
  "@typescript-eslint/eslint-plugin": "^5.4.0",
41
- "@typescript-eslint/parser": "^5.4.0",
43
+ "@typescript-eslint/parser": "^5.6.0",
42
44
  "@vue/compiler-sfc": "^3.2.22",
43
45
  "@vue/eslint-config-standard": "^6.1.0",
44
46
  "@vue/test-utils": "^2.0.0-rc.17",
47
+ "ant-design-vue": "^3.0.0-alpha.14",
45
48
  "autoprefixer": "^10.4.0",
46
- "babel-eslint": "^10.1.0",
47
49
  "babel-jest": "^26.6.3",
50
+ "babel-plugin-import": "^1.13.3",
48
51
  "chalk": "^4.1.2",
49
52
  "cssnano": "^5.0.11",
50
53
  "eslint": "^7.32.0",
@@ -64,20 +67,24 @@
64
67
  "rollup": "^2.60.1",
65
68
  "rollup-plugin-commonjs": "^10.1.0",
66
69
  "rollup-plugin-css-only": "^3.1.0",
70
+ "rollup-plugin-filesize": "^9.1.1",
71
+ "rollup-plugin-peer-deps-external": "^2.2.4",
67
72
  "rollup-plugin-postcss": "^4.0.2",
68
73
  "rollup-plugin-terser": "^7.0.2",
69
74
  "rollup-plugin-typescript2": "^0.31.1",
70
75
  "rollup-plugin-vue": "^6.0.0",
71
76
  "ts-jest": "^26.5.6",
72
- "ts-morph": "^13.0.2",
73
77
  "tslib": "^2.3.1",
74
78
  "typescript": "^4.3.5",
79
+ "unplugin-vue-components": "^0.17.2",
75
80
  "vue-eslint-parser": "^8.0.1",
76
81
  "vue-jest": "^5.0.0-alpha.10"
77
82
  },
78
83
  "peerDependencies": {
79
- "vue": "^3.2.22",
80
- "ant-design-vue": "^3.0.0-alpha.13"
84
+ "ant-design-vue": "^3.0.0-alpha.14",
85
+ "lodash-es": "^4.17.21",
86
+ "vue": "^3.2.22"
81
87
  },
82
- "description": ""
88
+ "dependencies": {
89
+ }
83
90
  }