@mozaic-ds/vue 0.18.0 → 0.19.0
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 +2 -2
- package/dist/demo.html +1 -10
- package/dist/fonts/{LeroyMerlinSans-Web-Italic.3f4e3fc6.woff2 → LeroyMerlinSans-Web-Italic.1b652c01.woff2} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-Italic.d826f8b3.woff → LeroyMerlinSans-Web-Italic.e1daa96d.woff} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-Light.1847746a.woff → LeroyMerlinSans-Web-Light.abc49f3e.woff} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-Light.c3d8a284.woff2 → LeroyMerlinSans-Web-Light.fbea6009.woff2} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-LightItalic.343f7e0c.woff → LeroyMerlinSans-Web-LightItalic.01eca0b6.woff} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-LightItalic.f4bc7b4c.woff2 → LeroyMerlinSans-Web-LightItalic.b0c55b75.woff2} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-Regular.1631e1d1.woff → LeroyMerlinSans-Web-Regular.ad6adbe4.woff} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-Regular.f1fa0f56.woff2 → LeroyMerlinSans-Web-Regular.fbf22a5a.woff2} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-SemiBold.44f32155.woff → LeroyMerlinSans-Web-SemiBold.a1cbb92f.woff} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-SemiBold.c1061939.woff2 → LeroyMerlinSans-Web-SemiBold.a6ab3422.woff2} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-SemiBoldItalic.cce10920.woff2 → LeroyMerlinSans-Web-SemiBoldItalic.6bdb2efc.woff2} +0 -0
- package/dist/fonts/{LeroyMerlinSans-Web-SemiBoldItalic.083f0cc1.woff → LeroyMerlinSans-Web-SemiBoldItalic.93f14f9f.woff} +0 -0
- package/dist/mozaic-vue.adeo.css +44 -1
- package/dist/mozaic-vue.adeo.umd.js +7585 -27114
- package/dist/mozaic-vue.common.js +7601 -27131
- package/dist/mozaic-vue.common.js.map +1 -1
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.umd.js +7585 -27114
- package/dist/mozaic-vue.umd.js.map +1 -1
- package/dist/mozaic-vue.umd.min.js +1 -1
- package/dist/mozaic-vue.umd.min.js.map +1 -1
- package/package.json +25 -25
- package/src/components/accordion/MAccordion.vue +1 -1
- package/src/components/autocomplete/MAutocomplete.vue +3 -3
- package/src/components/breadcrumb/MBreadcrumb.vue +1 -1
- package/src/components/button/MButton.vue +1 -1
- package/src/components/datatable/MDataTable.vue +1 -1
- package/src/components/fileuploader/MFileUploader.vue +1 -1
- package/src/components/icon/MIcon.vue +42 -19
- package/src/components/icon/icons.js +18887 -0
- package/src/components/layer/MLayer.vue +1 -1
- package/src/components/link/MLink.vue +1 -1
- package/src/components/listbox/MListBox.vue +1 -1
- package/src/components/notification/MNotification.vue +1 -1
- package/src/components/pagination/MPagination.vue +2 -2
- package/src/components/quantityselector/MQuantitySelector.vue +2 -2
- package/src/components/select/MSelect.vue +10 -0
- package/src/components/stepper/MStepper.vue +1 -1
- package/src/components/tabs/MTab.vue +1 -1
- package/src/components/textinput/MTextInput.vue +2 -2
- package/src/components/textinput/MTextInputIcon.vue +1 -1
package/package.json
CHANGED
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mozaic-ds/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
|
+
"description": "Vue.js implementation of Mozaic Design System",
|
|
5
|
+
"author": "Adeo - Mozaic Design System",
|
|
4
6
|
"scripts": {
|
|
5
7
|
"serve": "vue-cli-service serve",
|
|
6
8
|
"build": "vue-cli-service build ./src/index.js",
|
|
9
|
+
"lint": "vue-cli-service lint",
|
|
7
10
|
"build:bundle": "vue-cli-service build --target lib --name mozaic-vue ./src/index.js",
|
|
8
11
|
"build:bundleAdeo": "vue-cli-service build --target lib --formats umd --mode adeo --filename mozaic-vue.adeo ./src/index.js --no-clean",
|
|
9
|
-
"
|
|
12
|
+
"postinstall": "node postinstall.js",
|
|
10
13
|
"prepublishOnly": "npm run-script build:bundle && npm run-script build:bundleAdeo",
|
|
11
14
|
"publish:beta": "npm publish --access public --tag alpha",
|
|
12
|
-
"tokens:build": "mozaic-tokens-build"
|
|
13
|
-
"postinstall": "node postinstall.js"
|
|
15
|
+
"tokens:build": "mozaic-tokens-build"
|
|
14
16
|
},
|
|
17
|
+
"main": "./dist/mozaic-vue.umd.min.js",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/*",
|
|
20
|
+
"src/*",
|
|
21
|
+
"types/*",
|
|
22
|
+
"*.d.ts",
|
|
23
|
+
"postinstall.js"
|
|
24
|
+
],
|
|
15
25
|
"dependencies": {
|
|
16
|
-
"@mozaic-ds/css-dev-tools": "1.29.1",
|
|
17
|
-
"@mozaic-ds/icons": "^1.
|
|
18
|
-
"@mozaic-ds/styles": "1.
|
|
19
|
-
"@mozaic-ds/web-fonts": "1.22.0",
|
|
26
|
+
"@mozaic-ds/css-dev-tools": "^1.29.1",
|
|
27
|
+
"@mozaic-ds/icons": "^1.30.0",
|
|
28
|
+
"@mozaic-ds/styles": "^1.30.0",
|
|
29
|
+
"@mozaic-ds/web-fonts": "^1.22.0",
|
|
20
30
|
"core-js": "^3.18.3",
|
|
21
31
|
"libphonenumber-js": "1.9.50",
|
|
22
32
|
"postcss-scss": "^4.0.1",
|
|
@@ -26,8 +36,8 @@
|
|
|
26
36
|
"devDependencies": {
|
|
27
37
|
"@babel/core": "^7.15.8",
|
|
28
38
|
"@babel/eslint-parser": "^7.15.8",
|
|
29
|
-
"@vue/cli-plugin-babel": "
|
|
30
|
-
"@vue/cli-service": "
|
|
39
|
+
"@vue/cli-plugin-babel": "~5.0.4",
|
|
40
|
+
"@vue/cli-service": "~5.0.4",
|
|
31
41
|
"@vue/compiler-sfc": "^3.2.20",
|
|
32
42
|
"@vue/eslint-config-prettier": "^6.0.0",
|
|
33
43
|
"babel-eslint": "^10.1.0",
|
|
@@ -41,7 +51,10 @@
|
|
|
41
51
|
"sass-loader": "^10.2.0",
|
|
42
52
|
"vue-template-compiler": "^2.6.14"
|
|
43
53
|
},
|
|
44
|
-
"
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/adeo/mozaic-vue/issues"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/adeo/mozaic-vue#readme",
|
|
45
58
|
"keywords": [
|
|
46
59
|
"design system",
|
|
47
60
|
"mozaic design system",
|
|
@@ -51,23 +64,10 @@
|
|
|
51
64
|
"scss",
|
|
52
65
|
"adeo"
|
|
53
66
|
],
|
|
54
|
-
"author": "Adeo - Mozaic Design System",
|
|
55
|
-
"homepage": "https://github.com/adeo/mozaic-vue#readme",
|
|
56
67
|
"license": "ISC",
|
|
57
|
-
"main": "./dist/mozaic-vue.umd.min.js",
|
|
58
|
-
"files": [
|
|
59
|
-
"dist/*",
|
|
60
|
-
"src/*",
|
|
61
|
-
"types/*",
|
|
62
|
-
"*.d.ts",
|
|
63
|
-
"postinstall.js"
|
|
64
|
-
],
|
|
65
|
-
"types": "./types/index.d.ts",
|
|
66
68
|
"repository": {
|
|
67
69
|
"type": "git",
|
|
68
70
|
"url": "git+https://github.com/adeo/mozaic-vue.git"
|
|
69
71
|
},
|
|
70
|
-
"
|
|
71
|
-
"url": "https://github.com/adeo/mozaic-vue/issues"
|
|
72
|
-
}
|
|
72
|
+
"types": "./types/index.d.ts"
|
|
73
73
|
}
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script>
|
|
46
|
-
import MTextInput from '../textinput/MTextInput';
|
|
47
|
-
import MTag from '../tags/MTag';
|
|
48
|
-
import MListBox from '../listbox/MListBox';
|
|
46
|
+
import MTextInput from '../textinput/MTextInput.vue';
|
|
47
|
+
import MTag from '../tags/MTag.vue';
|
|
48
|
+
import MListBox from '../listbox/MListBox.vue';
|
|
49
49
|
|
|
50
50
|
export default {
|
|
51
51
|
name: 'MAutocomplete',
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
:id="`icon-${id}`"
|
|
4
|
-
:viewBox="viewbox"
|
|
5
|
-
:height="size"
|
|
6
|
-
:width="size"
|
|
7
|
-
:fill="color"
|
|
8
|
-
aria-hidden="true"
|
|
9
|
-
>
|
|
10
|
-
<component
|
|
11
|
-
:is="path.tagName"
|
|
12
|
-
v-for="(path, index) in paths"
|
|
13
|
-
:key="index"
|
|
14
|
-
v-bind="path.attrs"
|
|
15
|
-
/>
|
|
16
|
-
</svg>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
1
|
<script>
|
|
20
2
|
export default {
|
|
21
3
|
name: 'MIcon',
|
|
22
4
|
|
|
23
5
|
props: {
|
|
6
|
+
/**
|
|
7
|
+
* Icon name
|
|
8
|
+
*/
|
|
24
9
|
name: {
|
|
25
10
|
type: String,
|
|
26
11
|
required: true,
|
|
27
12
|
},
|
|
13
|
+
/**
|
|
14
|
+
* Icon color
|
|
15
|
+
*/
|
|
28
16
|
color: {
|
|
29
17
|
type: String,
|
|
30
18
|
default: 'currentColor',
|
|
@@ -49,7 +37,8 @@ export default {
|
|
|
49
37
|
return () =>
|
|
50
38
|
import(
|
|
51
39
|
/* webpackMode: 'eager' */
|
|
52
|
-
'@mozaic-ds/icons/js/icons.js'
|
|
40
|
+
// '@mozaic-ds/icons/js/icons.js'
|
|
41
|
+
'./icons.js' // <= example file
|
|
53
42
|
);
|
|
54
43
|
},
|
|
55
44
|
|
|
@@ -94,5 +83,39 @@ export default {
|
|
|
94
83
|
});
|
|
95
84
|
},
|
|
96
85
|
},
|
|
86
|
+
|
|
87
|
+
render: function (createElement) {
|
|
88
|
+
const paths = this.paths;
|
|
89
|
+
const svgAttrs = {
|
|
90
|
+
id: `MIcon-${this.name}-${this.id}`,
|
|
91
|
+
viewBox: this.viewbox,
|
|
92
|
+
height: this.size,
|
|
93
|
+
width: this.size,
|
|
94
|
+
fill: this.color,
|
|
95
|
+
'aria-hidden': 'true',
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
function generatePaths(paths) {
|
|
99
|
+
return paths.map(function (path) {
|
|
100
|
+
const children = path.children;
|
|
101
|
+
|
|
102
|
+
if (children) {
|
|
103
|
+
return createElement(
|
|
104
|
+
path.tagName,
|
|
105
|
+
{ attrs: path.attrs },
|
|
106
|
+
generatePaths(children)
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return createElement(path.tagName, { attrs: path.attrs });
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (paths) {
|
|
115
|
+
return createElement('svg', { attrs: svgAttrs }, generatePaths(paths));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return createElement('svg', { attrs: svgAttrs });
|
|
119
|
+
},
|
|
97
120
|
};
|
|
98
121
|
</script>
|