@ecan-bi/datav 1.0.1 → 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.
- package/dist/_utils/props.d.ts +17 -0
- package/dist/{utils → _utils}/withInstall.d.ts +0 -0
- package/dist/components.d.ts +2 -0
- package/dist/control/index.d.ts +1 -0
- package/dist/{components/text/text/Text.vue.d.ts → control/input/Input.vue.d.ts} +1 -1
- package/dist/control/input/index.d.ts +2 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/{components/text → text}/index.d.ts +0 -0
- package/dist/{components/text → text}/scroll-text/ScrollText.vue.d.ts +0 -0
- package/dist/text/scroll-text/index.d.ts +2 -0
- package/dist/text/text/Text.vue.d.ts +4 -0
- package/dist/text/text/index.d.ts +3 -0
- package/dist/text/text/props.d.ts +10 -0
- package/package.json +35 -12
- package/dist/components/index.d.ts +0 -1
- package/dist/components/text/scroll-text/index.d.ts +0 -2
- package/dist/components/text/text/index.d.ts +0 -2
- package/dist/utils/util.d.ts +0 -1
|
@@ -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;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
|
|
2
|
+
valueRef: import("vue").Ref<string>;
|
|
3
3
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
|
4
4
|
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
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,7 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { App } from 'vue';
|
|
2
2
|
export * from './components';
|
|
3
|
-
export declare const install: (app: App) => App;
|
|
4
3
|
declare const _default: {
|
|
5
|
-
install: (app: App<any>) =>
|
|
4
|
+
install: (app: App<any>) => void;
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
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
|
|
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})}));
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,4 @@
|
|
|
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;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
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.
|
|
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,30 +16,39 @@
|
|
|
14
16
|
},
|
|
15
17
|
"license": "ISC",
|
|
16
18
|
"scripts": {
|
|
17
|
-
"build": "
|
|
18
|
-
"
|
|
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
|
-
"lint:fix": "eslint --fix ./
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
+
"lint:fix": "eslint --fix ./src --ext .vue,.js,.ts,.jsx,.tsx",
|
|
24
|
+
"clean": "rimraf ./dist",
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"test": "jest"
|
|
23
27
|
},
|
|
24
28
|
"devDependencies": {
|
|
25
29
|
"@babel/core": "^7.16.0",
|
|
26
30
|
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
27
31
|
"@babel/preset-env": "^7.16.4",
|
|
28
32
|
"@babel/preset-typescript": "^7.16.0",
|
|
29
|
-
"@rollup/plugin-alias": "^3.1.8",
|
|
30
33
|
"@rollup/plugin-babel": "^5.3.0",
|
|
31
34
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
32
35
|
"@rollup/plugin-json": "^4.1.0",
|
|
33
36
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
34
37
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
38
|
+
"@sucrase/jest-plugin": "^2.2.0",
|
|
39
|
+
"@types/gulp": "^4.0.9",
|
|
40
|
+
"@types/jest": "^26.0.23",
|
|
41
|
+
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
|
|
35
42
|
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
36
|
-
"@typescript-eslint/parser": "^5.
|
|
43
|
+
"@typescript-eslint/parser": "^5.6.0",
|
|
37
44
|
"@vue/compiler-sfc": "^3.2.22",
|
|
38
45
|
"@vue/eslint-config-standard": "^6.1.0",
|
|
46
|
+
"@vue/test-utils": "^2.0.0-rc.17",
|
|
47
|
+
"ant-design-vue": "^3.0.0-alpha.14",
|
|
39
48
|
"autoprefixer": "^10.4.0",
|
|
40
|
-
"babel-
|
|
49
|
+
"babel-jest": "^26.6.3",
|
|
50
|
+
"babel-plugin-import": "^1.13.3",
|
|
51
|
+
"chalk": "^4.1.2",
|
|
41
52
|
"cssnano": "^5.0.11",
|
|
42
53
|
"eslint": "^7.32.0",
|
|
43
54
|
"eslint-config-standard": "^16.0.3",
|
|
@@ -45,23 +56,35 @@
|
|
|
45
56
|
"eslint-plugin-node": "^11.1.0",
|
|
46
57
|
"eslint-plugin-promise": "^5.1.1",
|
|
47
58
|
"eslint-plugin-standard": "^5.0.0",
|
|
48
|
-
"eslint-plugin-vue": "^
|
|
59
|
+
"eslint-plugin-vue": "^7.20.0",
|
|
60
|
+
"gulp": "^4.0.2",
|
|
61
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
62
|
+
"jest": "^26.6.3",
|
|
49
63
|
"less": "^4.1.2",
|
|
50
64
|
"npm": "^8.1.4",
|
|
65
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
51
66
|
"rimraf": "^2.7.1",
|
|
52
67
|
"rollup": "^2.60.1",
|
|
53
68
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
54
69
|
"rollup-plugin-css-only": "^3.1.0",
|
|
70
|
+
"rollup-plugin-filesize": "^9.1.1",
|
|
71
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
55
72
|
"rollup-plugin-postcss": "^4.0.2",
|
|
56
73
|
"rollup-plugin-terser": "^7.0.2",
|
|
57
74
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
58
75
|
"rollup-plugin-vue": "^6.0.0",
|
|
76
|
+
"ts-jest": "^26.5.6",
|
|
59
77
|
"tslib": "^2.3.1",
|
|
60
78
|
"typescript": "^4.3.5",
|
|
61
|
-
"vue-
|
|
79
|
+
"unplugin-vue-components": "^0.17.2",
|
|
80
|
+
"vue-eslint-parser": "^8.0.1",
|
|
81
|
+
"vue-jest": "^5.0.0-alpha.10"
|
|
62
82
|
},
|
|
63
83
|
"peerDependencies": {
|
|
84
|
+
"ant-design-vue": "^3.0.0-alpha.14",
|
|
85
|
+
"lodash-es": "^4.17.21",
|
|
64
86
|
"vue": "^3.2.22"
|
|
65
87
|
},
|
|
66
|
-
"
|
|
88
|
+
"dependencies": {
|
|
89
|
+
}
|
|
67
90
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './text';
|
|
@@ -1,2 +0,0 @@
|
|
|
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,2 +0,0 @@
|
|
|
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;
|
package/dist/utils/util.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setComponentName(name: string): string;
|