mediacube-ui 0.1.18 → 0.1.20
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/package.json +19 -24
- package/src/helpers/delayedAction.js +26 -0
- package/src/main.js +14 -0
- package/src/patterns/McTable/McTable/McTable.vue +0 -2
- package/src/utils/load-icons.js +1 -1
- package/dist/demo.html +0 -8
- package/dist/img/logo.b58e4e05.png +0 -0
- package/dist/mediacube-ui.js +0 -8942
- package/dist/mediacube-ui.js.map +0 -1
- package/dist/mediacube-ui.min.js +0 -8
- package/dist/mediacube-ui.min.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediacube-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Design system for MediaCube services",
|
|
5
5
|
"author": "MediaCube",
|
|
6
6
|
"private": false,
|
|
7
7
|
"homepage": "https://mediacube.co",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"main": "dist/
|
|
10
|
-
"browser": {
|
|
11
|
-
"./sfc": "src/my-component.vue"
|
|
12
|
-
},
|
|
9
|
+
"main": "dist/mcui.common.js",
|
|
13
10
|
"files": [
|
|
14
|
-
"
|
|
15
|
-
"src/
|
|
16
|
-
"src/
|
|
17
|
-
"src/tokens
|
|
11
|
+
"src/assets",
|
|
12
|
+
"src/helpers",
|
|
13
|
+
"src/styles",
|
|
14
|
+
"src/tokens",
|
|
15
|
+
"src/utils",
|
|
18
16
|
"src/elements/**/*.vue",
|
|
19
17
|
"src/patterns/**/*.vue",
|
|
20
18
|
"src/templates/**/*.vue",
|
|
21
|
-
"src/
|
|
19
|
+
"src/main.js"
|
|
22
20
|
],
|
|
23
21
|
"scripts": {
|
|
24
22
|
"start": "yarn scss-export && start-storybook -p 6006 -s public",
|
|
25
23
|
"build-storybook": "build-storybook",
|
|
26
|
-
"build-library": "vue-cli-service build --target lib --name mediacube-ui ./src/install.js",
|
|
27
24
|
"serve": "yarn scss-export && vue-cli-service serve",
|
|
28
|
-
"build": "yarn scss-export && vue-cli-service build --target
|
|
25
|
+
"build": "yarn scss-export && vue-cli-service build --target lib --inline-vue",
|
|
29
26
|
"test:unit": "vue-cli-service test:unit",
|
|
30
27
|
"lint": "vue-cli-service lint",
|
|
31
28
|
"scss-export": "sass-export src/tokens/*.scss -o src/assets/tokens/tokens.json",
|
|
@@ -48,7 +45,6 @@
|
|
|
48
45
|
"dependencies": {
|
|
49
46
|
"bourbon": "^7.0.0",
|
|
50
47
|
"core-js": "^3.6.5",
|
|
51
|
-
"cross-env": "^7.0.3",
|
|
52
48
|
"lodash": "^4.17.15",
|
|
53
49
|
"moment-timezone": "^0.5.34",
|
|
54
50
|
"normalize.css": "^8.0.1",
|
|
@@ -61,7 +57,7 @@
|
|
|
61
57
|
"vue": "^2.6.11",
|
|
62
58
|
"vue-bus": "^1.2.1",
|
|
63
59
|
"vue-click-outside": "^1.1.0",
|
|
64
|
-
"vue-cropperjs": "
|
|
60
|
+
"vue-cropperjs": "3.0.0",
|
|
65
61
|
"vue-imask": "6.2.2",
|
|
66
62
|
"vue-js-modal": "^2.0.0-rc.6",
|
|
67
63
|
"vue-masked-input": "^0.5.2",
|
|
@@ -97,10 +93,10 @@
|
|
|
97
93
|
"@vue/cli-service": "~4.4.0",
|
|
98
94
|
"@vue/composition-api": "^1.6.1",
|
|
99
95
|
"@vue/test-utils": "^1.0.3",
|
|
100
|
-
"add": "^2.0.6",
|
|
101
96
|
"babel-eslint": "^10.1.0",
|
|
102
|
-
"babel-loader": "^
|
|
97
|
+
"babel-loader": "^8.2.2",
|
|
103
98
|
"babel-preset-vue": "^2.0.2",
|
|
99
|
+
"css-loader": "^3.6.0",
|
|
104
100
|
"eslint": "^6.7.2",
|
|
105
101
|
"eslint-config-prettier": "^6.15.0",
|
|
106
102
|
"eslint-friendly-formatter": "^4.0.1",
|
|
@@ -110,22 +106,21 @@
|
|
|
110
106
|
"husky": "^4.3.0",
|
|
111
107
|
"jest-vue-preprocessor": "^1.7.1",
|
|
112
108
|
"lint-staged": "^10.5.1",
|
|
109
|
+
"node-sass": "^4.14.1",
|
|
113
110
|
"numeral": "^2.0.6",
|
|
114
111
|
"prettier": "^1.19.1",
|
|
115
|
-
"sass": "^1.60.0",
|
|
116
112
|
"sass-export": "^1.0.6",
|
|
117
|
-
"sass-loader": "
|
|
118
|
-
"sass-resources-loader": "^2.
|
|
113
|
+
"sass-loader": "^8.0.2",
|
|
114
|
+
"sass-resources-loader": "^2.0.3",
|
|
119
115
|
"standard-version": "^8.0.0",
|
|
120
116
|
"storybook-addon-designs": "^5.4.0",
|
|
121
117
|
"storybook-design-token": "^0.7.7",
|
|
118
|
+
"style-loader": "^1.2.1",
|
|
122
119
|
"vue-lazyload": "^1.3.3",
|
|
123
|
-
"vue-loader": "^
|
|
120
|
+
"vue-loader": "^15.9.5",
|
|
124
121
|
"vue-slider-component": "^3.2.2",
|
|
122
|
+
"vue-style-loader": "^4.1.2",
|
|
125
123
|
"vue-template-compiler": "^2.6.11",
|
|
126
|
-
"
|
|
127
|
-
"webpack-cli": "^5.0.1",
|
|
128
|
-
"xe-clipboard": "^1.9.0",
|
|
129
|
-
"yarn": "^1.22.19"
|
|
124
|
+
"xe-clipboard": "^1.9.0"
|
|
130
125
|
}
|
|
131
126
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
export const handleConfirmAction = (handler, cancelCallback, text = null, btnText = null) => {
|
|
3
|
+
Vue.prototype.$toasted.show(text || 'Случайно удалили?', {
|
|
4
|
+
position: 'bottom-center',
|
|
5
|
+
duration: 3000,
|
|
6
|
+
fullWidth: false,
|
|
7
|
+
keepOnHover: true,
|
|
8
|
+
className: ['mc-toast', 'mc-toast--primary'],
|
|
9
|
+
theme: 'toasted-primary',
|
|
10
|
+
iconPack: 'custom-class',
|
|
11
|
+
icon: 'las la-info-circle',
|
|
12
|
+
action: [
|
|
13
|
+
{
|
|
14
|
+
text: btnText || 'Cancel',
|
|
15
|
+
class: 'mc-toast__action mc-toast__action--outline',
|
|
16
|
+
onClick: (e, toastObject) => {
|
|
17
|
+
if (typeof cancelCallback === 'function') cancelCallback()
|
|
18
|
+
toastObject.goAway(0)
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
onComplete() {
|
|
23
|
+
handler()
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
}
|
package/src/main.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App.vue'
|
|
3
|
+
import WebFontLoader from '../src/utils/webFontLoader' // eslint-disable-line no-unused-vars
|
|
4
|
+
import VueLazyload from 'vue-lazyload'
|
|
5
|
+
Vue.use(VueLazyload)
|
|
6
|
+
|
|
7
|
+
Vue.config.productionTip = false
|
|
8
|
+
Vue.prototype.toJSON = function() {
|
|
9
|
+
return this
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
new Vue({
|
|
13
|
+
render: h => h(App),
|
|
14
|
+
}).$mount('#app')
|
|
@@ -56,7 +56,6 @@ import noTableDataIcon from '../../../assets/img/no_table_data.png'
|
|
|
56
56
|
import _throttle from 'lodash/throttle'
|
|
57
57
|
import _isEmpty from 'lodash/isEmpty'
|
|
58
58
|
|
|
59
|
-
import VxeTable from 'vxe-table'
|
|
60
59
|
import McTitle from '../../../elements/McTitle/McTitle'
|
|
61
60
|
import McSvgIcon from '../../../elements/McSvgIcon/McSvgIcon'
|
|
62
61
|
import McTableCol from '../McTableCol/McTableCol'
|
|
@@ -67,7 +66,6 @@ import McTableCol from '../McTableCol/McTableCol'
|
|
|
67
66
|
export default {
|
|
68
67
|
name: 'McTable',
|
|
69
68
|
components: {
|
|
70
|
-
VxeTable,
|
|
71
69
|
McTitle,
|
|
72
70
|
McSvgIcon,
|
|
73
71
|
McTableCol,
|
package/src/utils/load-icons.js
CHANGED
package/dist/demo.html
DELETED
|
Binary file
|