evui 2.0.9 → 2.0.10
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/README.md +27 -27
- package/{src/webfonts/fa-regular-400.svg → dist/82f60bd0b94a1ed68b1e6e309ce2e8c3.svg} +366 -366
- package/{src/webfonts/EVUI.svg → dist/91c6092c0a9164541a69045d746b9e78.svg} +183 -183
- package/{src/webfonts/fa-solid-900.svg → dist/962a1bf31c081691065fe333d9fa8105.svg} +1518 -1518
- package/{src/webfonts/fa-brands-400.svg → dist/a1a749e89f578a49306ec2b055c073da.svg} +1008 -1008
- package/dist/evui.min.js +304 -0
- package/dist/evui.min.js.gz +0 -0
- package/dist/evui.min.js.map +1 -0
- package/dist/main.css +5161 -0
- package/dist/main.css.gz +0 -0
- package/dist/main.css.map +1 -0
- package/package.json +125 -125
- package/src/code/checkbox.js +0 -12
- package/src/common/utils.js +0 -95
- package/src/common/utils.table.js +0 -78
- package/src/components/button/button.vue +0 -318
- package/src/components/button/index.js +0 -3
- package/src/components/chart/chart.core.js +0 -406
- package/src/components/chart/chart.vue +0 -332
- package/src/components/chart/charts/chart.bar.js +0 -334
- package/src/components/chart/charts/chart.base.js +0 -1075
- package/src/components/chart/charts/chart.line.js +0 -262
- package/src/components/chart/charts/chart.pie.js +0 -383
- package/src/components/chart/charts/chart.scatter.js +0 -349
- package/src/components/chart/charts/chart.sunburst.js +0 -193
- package/src/components/chart/core/axis/axis.js +0 -217
- package/src/components/chart/core/axis/axis.scale.auto.js +0 -69
- package/src/components/chart/core/axis/axis.scale.fixed.js +0 -65
- package/src/components/chart/core/axis/axis.scale.steps.js +0 -149
- package/src/components/chart/core/core.constant.js +0 -116
- package/src/components/chart/core/core.legend.js +0 -473
- package/src/components/chart/core/core.util.js +0 -66
- package/src/components/chart/core/data/data.js +0 -412
- package/src/components/chart/core/data/data.pie.js +0 -70
- package/src/components/chart/core/data/data.stack.js +0 -222
- package/src/components/chart/core/data/data.sunburst.js +0 -172
- package/src/components/chart/element/element.bar.js +0 -117
- package/src/components/chart/element/element.line.js +0 -137
- package/src/components/chart/element/element.scatter.js +0 -76
- package/src/components/chart/helpers/helpers.canvas.js +0 -143
- package/src/components/chart/helpers/helpers.constant.js +0 -119
- package/src/components/chart/helpers/helpers.util.js +0 -109
- package/src/components/chart/index.js +0 -4
- package/src/components/chart/model/index.js +0 -4
- package/src/components/chart/model/model.series.js +0 -57
- package/src/components/chart/model/model.store.js +0 -165
- package/src/components/chart/plugins/plugins.legend.js +0 -447
- package/src/components/chart/plugins/plugins.title.js +0 -33
- package/src/components/chart/scale/scale.js +0 -210
- package/src/components/chart/scale/scale.linear.js +0 -18
- package/src/components/chart/scale/scale.logarithmic.js +0 -95
- package/src/components/chart/scale/scale.step.js +0 -160
- package/src/components/chart/scale/scale.time.js +0 -22
- package/src/components/checkbox/checkbox-group.vue +0 -72
- package/src/components/checkbox/checkbox.vue +0 -276
- package/src/components/checkbox/index.js +0 -3
- package/src/components/checkbox-group/index.js +0 -3
- package/src/components/codeview/code.vue +0 -242
- package/src/components/datepicker/calendar.core.js +0 -1827
- package/src/components/datepicker/calendar.vue +0 -86
- package/src/components/datepicker/datepicker.vue +0 -630
- package/src/components/datepicker/index.js +0 -3
- package/src/components/icon/icon.vue +0 -31
- package/src/components/icon/index.js +0 -3
- package/src/components/input/index.js +0 -3
- package/src/components/input/input.number.vue +0 -440
- package/src/components/label/index.js +0 -3
- package/src/components/label/label.vue +0 -86
- package/src/components/loadingmask/index.js +0 -3
- package/src/components/loadingmask/loadingmask.vue +0 -138
- package/src/components/loginfield/index.js +0 -3
- package/src/components/loginfield/loginfield.vue +0 -330
- package/src/components/menu/index.js +0 -5
- package/src/components/menu/menu.context.children.vue +0 -201
- package/src/components/menu/menu.context.vue +0 -144
- package/src/components/menu/menu.nav.vue +0 -123
- package/src/components/radio/index.js +0 -3
- package/src/components/radio/radio-group.vue +0 -54
- package/src/components/radio/radio.vue +0 -176
- package/src/components/radio-group/index.js +0 -3
- package/src/components/selectbox/dropdown.vue +0 -185
- package/src/components/selectbox/index.js +0 -3
- package/src/components/selectbox/listbox.vue +0 -116
- package/src/components/selectbox/option.vue +0 -11
- package/src/components/selectbox/selectbox.vue +0 -677
- package/src/components/slider/index.js +0 -3
- package/src/components/slider/slider-tooltip.vue +0 -119
- package/src/components/slider/slider.vue +0 -483
- package/src/components/splitter/index.js +0 -3
- package/src/components/splitter/splitter.vue +0 -284
- package/src/components/summary/index.js +0 -3
- package/src/components/summary/summary.vue +0 -138
- package/src/components/table/data.json +0 -1000
- package/src/components/table/data2.json +0 -1000
- package/src/components/table/index.js +0 -3
- package/src/components/table/table.black.css +0 -547
- package/src/components/table/table.filter.lite.vue +0 -170
- package/src/components/table/table.filter.vue +0 -112
- package/src/components/table/table.grey.css +0 -539
- package/src/components/table/table.navy.css +0 -536
- package/src/components/table/table.vue +0 -1380
- package/src/components/tabs/index.js +0 -14
- package/src/components/tabs/jun/tab.vue +0 -123
- package/src/components/tabs/jun/tabs.vue +0 -484
- package/src/components/tabs/tab-panel.vue +0 -39
- package/src/components/tabs/tabs.vue +0 -446
- package/src/components/textfield/index.js +0 -3
- package/src/components/textfield/textfield.vue +0 -418
- package/src/components/timepicker/index.js +0 -3
- package/src/components/timepicker/spinner.vue +0 -205
- package/src/components/timepicker/timepicker.vue +0 -492
- package/src/components/toggle/index.js +0 -3
- package/src/components/toggle/toggle.vue +0 -364
- package/src/components/tree/index.js +0 -7
- package/src/components/tree/tree.table.black.css +0 -680
- package/src/components/tree/tree.table.grey.css +0 -675
- package/src/components/tree/tree.table.vue +0 -795
- package/src/components/tree/tree.util.js +0 -119
- package/src/components/window/index.js +0 -3
- package/src/components/window/window.vue +0 -614
- package/src/index.js +0 -82
- package/src/styles/all.css +0 -5
- package/src/styles/codemirror.css +0 -346
- package/src/styles/evui.css +0 -386
- package/src/styles/icon.css +0 -557
- package/src/webfonts/NanumGothicBold.ttf +0 -0
- /package/{src/webfonts/fa-solid-900.woff2 → dist/0ab54153eeeca0ce03978cc463b257f7.woff2} +0 -0
- /package/{src/webfonts/fa-brands-400.eot → dist/13db00b7a34fee4d819ab7f9838cc428.eot} +0 -0
- /package/{src/webfonts/EVUI.ttf → dist/3c9453211570a4ede66a4b4954a32bbb.ttf} +0 -0
- /package/{src/webfonts/fa-regular-400.eot → dist/701ae6abd4719e9c2ada3535a497b341.eot} +0 -0
- /package/{src/webfonts/NanumGothic.ttf → dist/7583da5c07275cd5eb364507616f998f.ttf} +0 -0
- /package/{src/webfonts/fa-solid-900.eot → dist/8e3c7f5520f5ae906c6cf6d7f3ddcd19.eot} +0 -0
- /package/{src/webfonts/fa-brands-400.woff → dist/a046592bac8f2fd96e994733faf3858c.woff} +0 -0
- /package/{src/webfonts/fa-regular-400.ttf → dist/ad97afd3337e8cda302d10ff5a4026b8.ttf} +0 -0
- /package/{src/images/evui_icon.png → dist/adac9fa4f723f9d2cb5b6640517114a9.png} +0 -0
- /package/{src/webfonts/fa-solid-900.ttf → dist/b87b9ba532ace76ae9f6edfe9f72ded2.ttf} +0 -0
- /package/{src/webfonts/EVUI.eot → dist/b9e64d9b5fa6b500eb5df6fa980d3e5b.eot} +0 -0
- /package/{src/webfonts/fa-brands-400.ttf → dist/c5ebe0b32dc1b5cc449a76c4204d13bb.ttf} +0 -0
- /package/{src/webfonts/fa-regular-400.woff2 → dist/cd6c777f1945164224dee082abaea03a.woff2} +0 -0
- /package/{src/webfonts/fa-brands-400.woff2 → dist/e8c322de9658cbeb8a774b6624167c2c.woff2} +0 -0
- /package/{src/webfonts/fa-regular-400.woff → dist/ef60a4f6c25ef7f39f2d25a748dbecfe.woff} +0 -0
- /package/{src/webfonts/EVUI.woff → dist/f0ac0c8b3c9cd3ef9002749985ae546f.woff} +0 -0
- /package/{src/webfonts/fa-solid-900.woff → dist/faff92145777a3cbaf8e7367b4807987.woff} +0 -0
package/package.json
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "evui",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "A EXEM Library project",
|
|
5
|
-
"author": "exem <dev_client@ex-em.com>",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "webpack-dev-server --progress --config build/webpack.dev.conf.js",
|
|
9
|
-
"start": "npm run dev",
|
|
10
|
-
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
|
|
11
|
-
"test": "npm run unit",
|
|
12
|
-
"lint": "eslint --ext .js,.vue src test/unit",
|
|
13
|
-
"build": "webpack --config build/webpack.prod.conf.js",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"maxgauge": "webpack-dev-server --progress --config build/webpack.maxgauge.conf.js",
|
|
17
|
-
"liteplus": "webpack-dev-server --progress --config build/webpack.liteplus.conf.js",
|
|
18
|
-
"liteplus_build": "webpack --config build/webpack.liteplus.conf.js --mode=production"
|
|
19
|
-
},
|
|
20
|
-
"main": "dist/evui.min.js",
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"lodash": "^4.17.11",
|
|
44
|
-
"
|
|
45
|
-
"vue": "^2.6.9",
|
|
46
|
-
"vue-resize-directive": "^1.2.0",
|
|
47
|
-
"vue-router": "^3.0.2",
|
|
48
|
-
"vuex": "^3.1.0"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"acorn": "^6.1.1",
|
|
52
|
-
"babel-core": "^6.26.3",
|
|
53
|
-
"babel-eslint": "^8.2.6",
|
|
54
|
-
"babel-helper-vue-jsx-merge-props": "^2.0.3",
|
|
55
|
-
"babel-loader": "^7.1.5",
|
|
56
|
-
"babel-plugin-istanbul": "^5.1.1",
|
|
57
|
-
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
|
58
|
-
"babel-plugin-syntax-jsx": "^6.18.0",
|
|
59
|
-
"babel-plugin-transform-runtime": "^6.22.0",
|
|
60
|
-
"babel-plugin-transform-vue-jsx": "^3.7.0",
|
|
61
|
-
"babel-polyfill": "^6.26.0",
|
|
62
|
-
"babel-preset-env": "^1.7.0",
|
|
63
|
-
"babel-preset-stage-2": "^6.22.0",
|
|
64
|
-
"chai": "^3.5.0",
|
|
65
|
-
"clean-webpack-plugin": "^2.0.1",
|
|
66
|
-
"compression-webpack-plugin": "^2.0.0",
|
|
67
|
-
"copy-webpack-plugin": "^5.0.1",
|
|
68
|
-
"cross-env": "^5.2.0",
|
|
69
|
-
"css-loader": "^2.1.1",
|
|
70
|
-
"eslint": "4.16.0",
|
|
71
|
-
"eslint-config-airbnb-base": "^11.3.0",
|
|
72
|
-
"eslint-friendly-formatter": "^3.0.0",
|
|
73
|
-
"eslint-import-resolver-webpack": "^0.8.3",
|
|
74
|
-
"eslint-loader": "^2.1.2",
|
|
75
|
-
"eslint-plugin-html": "^4.0.6",
|
|
76
|
-
"eslint-plugin-import": "^2.16.0",
|
|
77
|
-
"eslint-plugin-vue": "^4.7.1",
|
|
78
|
-
"file-loader": "^3.0.1",
|
|
79
|
-
"friendly-errors-webpack-plugin": "^1.7.0",
|
|
80
|
-
"html-loader": "^0.5.5",
|
|
81
|
-
"html-webpack-plugin": "^3.2.0",
|
|
82
|
-
"karma": "^4.0.1",
|
|
83
|
-
"karma-coverage": "^1.1.2",
|
|
84
|
-
"karma-mocha": "^1.3.0",
|
|
85
|
-
"karma-phantomjs-launcher": "^1.0.2",
|
|
86
|
-
"karma-phantomjs-shim": "^1.4.0",
|
|
87
|
-
"karma-sinon-chai": "^1.3.4",
|
|
88
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
89
|
-
"karma-spec-reporter": "0.0.31",
|
|
90
|
-
"karma-webpack": "^3.0.5",
|
|
91
|
-
"mini-css-extract-plugin": "^0.5.0",
|
|
92
|
-
"mocha": "^5.2.0",
|
|
93
|
-
"moment": "^2.24.0",
|
|
94
|
-
"ora": "^1.4.0",
|
|
95
|
-
"postcss-import": "^11.1.0",
|
|
96
|
-
"postcss-loader": "^2.1.6",
|
|
97
|
-
"postcss-url": "^7.3.2",
|
|
98
|
-
"shelljs": "^0.7.6",
|
|
99
|
-
"sinon": "^4.5.0",
|
|
100
|
-
"sinon-chai": "^2.9.0",
|
|
101
|
-
"style-loader": "^0.21.0",
|
|
102
|
-
"url-loader": "^1.1.2",
|
|
103
|
-
"vue-codemirror-lite": "^1.0.4",
|
|
104
|
-
"vue-loader": "^15.7.0",
|
|
105
|
-
"vue-style-loader": "^3.1.2",
|
|
106
|
-
"vue-template-compiler": "^2.6.9",
|
|
107
|
-
"vue-test-utils": "^1.0.0-beta.11",
|
|
108
|
-
"webpack": "^4.29.6",
|
|
109
|
-
"webpack-bundle-analyzer": "^2.13.1",
|
|
110
|
-
"webpack-cli": "^3.3.0",
|
|
111
|
-
"webpack-dev-server": "^3.2.1",
|
|
112
|
-
"webpack-merge": "^4.2.1",
|
|
113
|
-
"worker-loader": "^2.0.0"
|
|
114
|
-
},
|
|
115
|
-
"engines": {
|
|
116
|
-
"node": ">= 6.0.0",
|
|
117
|
-
"npm": ">= 3.0.0",
|
|
118
|
-
"webpack": ">=4.0.0"
|
|
119
|
-
},
|
|
120
|
-
"browserslist": [
|
|
121
|
-
"> 1%",
|
|
122
|
-
"last 2 versions",
|
|
123
|
-
"not ie <= 8"
|
|
124
|
-
]
|
|
125
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "evui",
|
|
3
|
+
"version": "2.0.10",
|
|
4
|
+
"description": "A EXEM Library project",
|
|
5
|
+
"author": "exem <dev_client@ex-em.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "webpack-dev-server --progress --config build/webpack.dev.conf.js",
|
|
9
|
+
"start": "npm run dev",
|
|
10
|
+
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
|
|
11
|
+
"test": "npm run unit",
|
|
12
|
+
"lint": "eslint --ext .js,.vue src test/unit",
|
|
13
|
+
"build": "cross-env NODE_ENV=production webpack --config build/webpack.prod.conf.js",
|
|
14
|
+
"docs": "webpack-dev-server --progress --config build/webpack.docs.conf.js --mode=development",
|
|
15
|
+
"docs_build": "webpack --config build/webpack.docs.conf.js --mode=production",
|
|
16
|
+
"maxgauge": "webpack-dev-server --progress --config build/webpack.maxgauge.conf.js",
|
|
17
|
+
"liteplus": "webpack-dev-server --progress --config build/webpack.liteplus.conf.js",
|
|
18
|
+
"liteplus_build": "webpack --config build/webpack.liteplus.conf.js --mode=production"
|
|
19
|
+
},
|
|
20
|
+
"main": "dist/evui.min.js",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/ex-em/EVUI.git"
|
|
27
|
+
},
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/ex-em/EVUI/issues"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"Vue",
|
|
33
|
+
"Visualisation",
|
|
34
|
+
"Charts",
|
|
35
|
+
"Grid",
|
|
36
|
+
"Tree",
|
|
37
|
+
"EVUI"
|
|
38
|
+
],
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"axios": "^0.18.0",
|
|
41
|
+
"highlight.js": "^9.15.6",
|
|
42
|
+
"lodash": "^4.17.11",
|
|
43
|
+
"lodash-es": "^4.17.11",
|
|
44
|
+
"marked": "^0.6.2",
|
|
45
|
+
"vue": "^2.6.9",
|
|
46
|
+
"vue-resize-directive": "^1.2.0",
|
|
47
|
+
"vue-router": "^3.0.2",
|
|
48
|
+
"vuex": "^3.1.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"acorn": "^6.1.1",
|
|
52
|
+
"babel-core": "^6.26.3",
|
|
53
|
+
"babel-eslint": "^8.2.6",
|
|
54
|
+
"babel-helper-vue-jsx-merge-props": "^2.0.3",
|
|
55
|
+
"babel-loader": "^7.1.5",
|
|
56
|
+
"babel-plugin-istanbul": "^5.1.1",
|
|
57
|
+
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
|
58
|
+
"babel-plugin-syntax-jsx": "^6.18.0",
|
|
59
|
+
"babel-plugin-transform-runtime": "^6.22.0",
|
|
60
|
+
"babel-plugin-transform-vue-jsx": "^3.7.0",
|
|
61
|
+
"babel-polyfill": "^6.26.0",
|
|
62
|
+
"babel-preset-env": "^1.7.0",
|
|
63
|
+
"babel-preset-stage-2": "^6.22.0",
|
|
64
|
+
"chai": "^3.5.0",
|
|
65
|
+
"clean-webpack-plugin": "^2.0.1",
|
|
66
|
+
"compression-webpack-plugin": "^2.0.0",
|
|
67
|
+
"copy-webpack-plugin": "^5.0.1",
|
|
68
|
+
"cross-env": "^5.2.0",
|
|
69
|
+
"css-loader": "^2.1.1",
|
|
70
|
+
"eslint": "4.16.0",
|
|
71
|
+
"eslint-config-airbnb-base": "^11.3.0",
|
|
72
|
+
"eslint-friendly-formatter": "^3.0.0",
|
|
73
|
+
"eslint-import-resolver-webpack": "^0.8.3",
|
|
74
|
+
"eslint-loader": "^2.1.2",
|
|
75
|
+
"eslint-plugin-html": "^4.0.6",
|
|
76
|
+
"eslint-plugin-import": "^2.16.0",
|
|
77
|
+
"eslint-plugin-vue": "^4.7.1",
|
|
78
|
+
"file-loader": "^3.0.1",
|
|
79
|
+
"friendly-errors-webpack-plugin": "^1.7.0",
|
|
80
|
+
"html-loader": "^0.5.5",
|
|
81
|
+
"html-webpack-plugin": "^3.2.0",
|
|
82
|
+
"karma": "^4.0.1",
|
|
83
|
+
"karma-coverage": "^1.1.2",
|
|
84
|
+
"karma-mocha": "^1.3.0",
|
|
85
|
+
"karma-phantomjs-launcher": "^1.0.2",
|
|
86
|
+
"karma-phantomjs-shim": "^1.4.0",
|
|
87
|
+
"karma-sinon-chai": "^1.3.4",
|
|
88
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
89
|
+
"karma-spec-reporter": "0.0.31",
|
|
90
|
+
"karma-webpack": "^3.0.5",
|
|
91
|
+
"mini-css-extract-plugin": "^0.5.0",
|
|
92
|
+
"mocha": "^5.2.0",
|
|
93
|
+
"moment": "^2.24.0",
|
|
94
|
+
"ora": "^1.4.0",
|
|
95
|
+
"postcss-import": "^11.1.0",
|
|
96
|
+
"postcss-loader": "^2.1.6",
|
|
97
|
+
"postcss-url": "^7.3.2",
|
|
98
|
+
"shelljs": "^0.7.6",
|
|
99
|
+
"sinon": "^4.5.0",
|
|
100
|
+
"sinon-chai": "^2.9.0",
|
|
101
|
+
"style-loader": "^0.21.0",
|
|
102
|
+
"url-loader": "^1.1.2",
|
|
103
|
+
"vue-codemirror-lite": "^1.0.4",
|
|
104
|
+
"vue-loader": "^15.7.0",
|
|
105
|
+
"vue-style-loader": "^3.1.2",
|
|
106
|
+
"vue-template-compiler": "^2.6.9",
|
|
107
|
+
"vue-test-utils": "^1.0.0-beta.11",
|
|
108
|
+
"webpack": "^4.29.6",
|
|
109
|
+
"webpack-bundle-analyzer": "^2.13.1",
|
|
110
|
+
"webpack-cli": "^3.3.0",
|
|
111
|
+
"webpack-dev-server": "^3.2.1",
|
|
112
|
+
"webpack-merge": "^4.2.1",
|
|
113
|
+
"worker-loader": "^2.0.0"
|
|
114
|
+
},
|
|
115
|
+
"engines": {
|
|
116
|
+
"node": ">= 6.0.0",
|
|
117
|
+
"npm": ">= 3.0.0",
|
|
118
|
+
"webpack": ">=4.0.0"
|
|
119
|
+
},
|
|
120
|
+
"browserslist": [
|
|
121
|
+
"> 1%",
|
|
122
|
+
"last 2 versions",
|
|
123
|
+
"not ie <= 8"
|
|
124
|
+
]
|
|
125
|
+
}
|
package/src/code/checkbox.js
DELETED
package/src/common/utils.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
const windowConsole = window.console;
|
|
2
|
-
export const Console = {
|
|
3
|
-
log(...data) {
|
|
4
|
-
windowConsole.log(...data);
|
|
5
|
-
},
|
|
6
|
-
warn(...data) {
|
|
7
|
-
windowConsole.warn(...data);
|
|
8
|
-
},
|
|
9
|
-
info(...data) {
|
|
10
|
-
windowConsole.info(...data);
|
|
11
|
-
},
|
|
12
|
-
error(...data) {
|
|
13
|
-
windowConsole.error(...data);
|
|
14
|
-
},
|
|
15
|
-
debug(...data) {
|
|
16
|
-
windowConsole.debug(...data);
|
|
17
|
-
},
|
|
18
|
-
dir(item, options) {
|
|
19
|
-
windowConsole.dir(item, options);
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export function getQuantity(input) {
|
|
24
|
-
let output;
|
|
25
|
-
if (typeof input === 'string' || typeof input === 'number') {
|
|
26
|
-
const match = (/^(normal|(-*\d+(?:\.\d+)?)(px|%)?)$/).exec(input);
|
|
27
|
-
output = match ? { value: +match[2], unit: match[3] || undefined } : null;
|
|
28
|
-
} else {
|
|
29
|
-
output = null;
|
|
30
|
-
}
|
|
31
|
-
return output;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function getSize(size) {
|
|
35
|
-
let sizeValue;
|
|
36
|
-
|
|
37
|
-
if (size) {
|
|
38
|
-
sizeValue = size.unit ? size.value + size.unit : `${size.value}px`;
|
|
39
|
-
} else {
|
|
40
|
-
sizeValue = '100%';
|
|
41
|
-
}
|
|
42
|
-
return sizeValue;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function getMatchedComponentsDownward(context, componentName) {
|
|
46
|
-
const children = context.$children;
|
|
47
|
-
const result = [];
|
|
48
|
-
if (!children) {
|
|
49
|
-
return [];
|
|
50
|
-
}
|
|
51
|
-
for (let i = 0; i < children.length; i++) {
|
|
52
|
-
const v = children[i];
|
|
53
|
-
const name = v.$options.name;
|
|
54
|
-
if (name === componentName) {
|
|
55
|
-
result.push(v);
|
|
56
|
-
} else {
|
|
57
|
-
result.concat(getMatchedComponentsDownward(v, componentName));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return result;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function getMatchedComponentUpward(context, componentName) {
|
|
64
|
-
let parent = context.$parent;
|
|
65
|
-
let name = parent.$options.name;
|
|
66
|
-
|
|
67
|
-
while (parent && (!name || componentName !== name)) {
|
|
68
|
-
parent = parent.$parent;
|
|
69
|
-
if (parent) {
|
|
70
|
-
name = parent.$options.name;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return parent;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function convertToPercent(value, totalValue) {
|
|
78
|
-
if (!value || !totalValue) {
|
|
79
|
-
return 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return +((value / totalValue) * 100).toFixed(2);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function convertToValue(value, totalValue) {
|
|
86
|
-
let result = 0;
|
|
87
|
-
|
|
88
|
-
if (!value || !totalValue) {
|
|
89
|
-
return result;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
result = (value / 100) * totalValue;
|
|
93
|
-
|
|
94
|
-
return +result.toFixed(2);
|
|
95
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
quantity(input) {
|
|
3
|
-
let output;
|
|
4
|
-
|
|
5
|
-
if (typeof input === 'string' || typeof input === 'number') {
|
|
6
|
-
const match = (/^(normal|(\d+(?:\.\d+)?)(px|%)?)$/).exec(input);
|
|
7
|
-
output = match ? { value: +match[2], unit: match[3] || undefined } : undefined;
|
|
8
|
-
} else {
|
|
9
|
-
output = undefined;
|
|
10
|
-
}
|
|
11
|
-
return output;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* % 는 퍼센트로 숫자 및 문자 숫자는 px로 이상한값은 0px로 반환
|
|
16
|
-
* @param input
|
|
17
|
-
* @returns px | % | undefiend
|
|
18
|
-
*/
|
|
19
|
-
numberToPixel(input) {
|
|
20
|
-
let output;
|
|
21
|
-
let result;
|
|
22
|
-
|
|
23
|
-
if (typeof input === 'string' || typeof input === 'number') {
|
|
24
|
-
const match = (/^(normal|(\d+(?:\.\d+)?)(px|%)?)$/).exec(input);
|
|
25
|
-
output = match ? { value: +match[2], unit: match[3] || undefined } : undefined;
|
|
26
|
-
} else {
|
|
27
|
-
output = undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (output === null || output === undefined) {
|
|
31
|
-
result = undefined;
|
|
32
|
-
} else if (output.unit === '%') {
|
|
33
|
-
result = `${output.value}%`;
|
|
34
|
-
} else {
|
|
35
|
-
result = `${output.value}px`;
|
|
36
|
-
}
|
|
37
|
-
return result;
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* % 값인지 확인 하기
|
|
42
|
-
* @param val
|
|
43
|
-
* @returns true | false
|
|
44
|
-
*/
|
|
45
|
-
isPercentValue(val) {
|
|
46
|
-
let result;
|
|
47
|
-
if (typeof val !== 'string') {
|
|
48
|
-
result = false;
|
|
49
|
-
} else if (val.indexOf('%') === (val.length - 1)) {
|
|
50
|
-
result = true;
|
|
51
|
-
} else {
|
|
52
|
-
result = false;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return result;
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* 컬럼 min max 체크하기
|
|
60
|
-
* @param val
|
|
61
|
-
* @param min
|
|
62
|
-
* @param max
|
|
63
|
-
* @returns {*}
|
|
64
|
-
*/
|
|
65
|
-
checkColSize(val, min, max) {
|
|
66
|
-
let result;
|
|
67
|
-
|
|
68
|
-
if (min && val < min) {
|
|
69
|
-
result = min;
|
|
70
|
-
} else if (max && val > max) {
|
|
71
|
-
result = max;
|
|
72
|
-
} else {
|
|
73
|
-
result = val;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return result;
|
|
77
|
-
},
|
|
78
|
-
};
|