@weni/unnnic-system 2.0.8 → 2.0.9
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/.vscode/extensions.json +3 -0
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +9 -7
- package/dist/unnnic.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/StarRating/StarRating.vue +4 -4
- package/src/components/Switch/Switch.vue +2 -0
- package/src/locales/en.json +15 -15
- package/src/locales/es.json +15 -15
- package/src/locales/pt_br.json +15 -15
- package/src/stories/StarRating.stories.js +9 -2
package/package.json
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
v-if="showValue"
|
|
13
13
|
class="rating-title"
|
|
14
14
|
>
|
|
15
|
-
<span class="highlight">{{
|
|
16
|
-
|
|
15
|
+
<span class="highlight"> {{ modelValue.toFixed(1) }} </span>
|
|
16
|
+
/5.0
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</template>
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
},
|
|
28
28
|
|
|
29
29
|
props: {
|
|
30
|
-
|
|
30
|
+
modelValue: {
|
|
31
31
|
type: Number,
|
|
32
32
|
},
|
|
33
33
|
|
|
@@ -46,7 +46,7 @@ export default {
|
|
|
46
46
|
|
|
47
47
|
methods: {
|
|
48
48
|
starScheme(star) {
|
|
49
|
-
return star <= this.
|
|
49
|
+
return star <= this.modelValue ? 'feedback-yellow' : 'neutral-clean';
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
};
|
package/src/locales/en.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"upload_area": {
|
|
3
|
-
"title": {
|
|
4
|
-
"text": "Drag your file here or",
|
|
5
|
-
"highlight": "search it"
|
|
6
|
-
},
|
|
7
|
-
"invalid": {
|
|
8
|
-
"subtitle": "File not supported, select supported formats:"
|
|
9
|
-
},
|
|
10
|
-
"subtitle": "Supported formats:"
|
|
11
|
-
},
|
|
12
|
-
"import_card": {
|
|
13
|
-
"importing": "Importing"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"upload_area": {
|
|
3
|
+
"title": {
|
|
4
|
+
"text": "Drag your file here or",
|
|
5
|
+
"highlight": "search it"
|
|
6
|
+
},
|
|
7
|
+
"invalid": {
|
|
8
|
+
"subtitle": "File not supported, select supported formats:"
|
|
9
|
+
},
|
|
10
|
+
"subtitle": "Supported formats:"
|
|
11
|
+
},
|
|
12
|
+
"import_card": {
|
|
13
|
+
"importing": "Importing"
|
|
14
|
+
}
|
|
15
|
+
}
|
package/src/locales/es.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"upload_area": {
|
|
3
|
-
"title": {
|
|
4
|
-
"text": "Arrastra tu archivo aquí o",
|
|
5
|
-
"highlight": "búscalo"
|
|
6
|
-
},
|
|
7
|
-
"invalid": {
|
|
8
|
-
"subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
|
|
9
|
-
},
|
|
10
|
-
"subtitle": "Formatos compatibles:"
|
|
11
|
-
},
|
|
12
|
-
"import_card": {
|
|
13
|
-
"importing": "Importando"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"upload_area": {
|
|
3
|
+
"title": {
|
|
4
|
+
"text": "Arrastra tu archivo aquí o",
|
|
5
|
+
"highlight": "búscalo"
|
|
6
|
+
},
|
|
7
|
+
"invalid": {
|
|
8
|
+
"subtitle": "Archivo no compatible, seleccione los formatos compatibles:"
|
|
9
|
+
},
|
|
10
|
+
"subtitle": "Formatos compatibles:"
|
|
11
|
+
},
|
|
12
|
+
"import_card": {
|
|
13
|
+
"importing": "Importando"
|
|
14
|
+
}
|
|
15
|
+
}
|
package/src/locales/pt_br.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"upload_area": {
|
|
3
|
-
"title": {
|
|
4
|
-
"text": "Arraste seu arquivo aqui, ou",
|
|
5
|
-
"highlight": "procure-o"
|
|
6
|
-
},
|
|
7
|
-
"invalid": {
|
|
8
|
-
"subtitle": "Arquivo não compatível, selecione formatos suportados:"
|
|
9
|
-
},
|
|
10
|
-
"subtitle": "Formatos suportados:"
|
|
11
|
-
},
|
|
12
|
-
"import_card": {
|
|
13
|
-
"importing": "Importando"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"upload_area": {
|
|
3
|
+
"title": {
|
|
4
|
+
"text": "Arraste seu arquivo aqui, ou",
|
|
5
|
+
"highlight": "procure-o"
|
|
6
|
+
},
|
|
7
|
+
"invalid": {
|
|
8
|
+
"subtitle": "Arquivo não compatível, selecione formatos suportados:"
|
|
9
|
+
},
|
|
10
|
+
"subtitle": "Formatos suportados:"
|
|
11
|
+
},
|
|
12
|
+
"import_card": {
|
|
13
|
+
"importing": "Importando"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -4,7 +4,8 @@ export default {
|
|
|
4
4
|
title: 'Rating/StarRating',
|
|
5
5
|
component: unnnicStarRating,
|
|
6
6
|
argTypes: {
|
|
7
|
-
|
|
7
|
+
showValue: { control: { type: 'boolean' } },
|
|
8
|
+
readonly: { control: { type: 'boolean' } },
|
|
8
9
|
},
|
|
9
10
|
};
|
|
10
11
|
|
|
@@ -15,10 +16,16 @@ const Template = (args, { argTypes }) => ({
|
|
|
15
16
|
unnnicStarRating,
|
|
16
17
|
},
|
|
17
18
|
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
value: 4,
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
|
|
18
25
|
template: `
|
|
19
26
|
<div>
|
|
20
27
|
<pre>v-model: {{ value }}</pre>
|
|
21
|
-
<unnnic-star-rating v-
|
|
28
|
+
<unnnic-star-rating v-model="value" showValue readonly>
|
|
22
29
|
</unnnic-star-rating>
|
|
23
30
|
</div>
|
|
24
31
|
`,
|