@empathyco/x-components 6.2.2 → 6.3.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/CHANGELOG.md +14 -0
- package/docs/API-reference/api/x-adapter-platform.platformresult.__prices.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.platformresult.md +1 -1
- package/docs/API-reference/api/x-types.resultprice.md +6 -6
- package/docs/API-reference/api/x-types.resultprice.originalvalue.md +1 -1
- package/docs/API-reference/api/x-types.resultprice.value.md +1 -1
- package/js/components/icons/ai-spinner-icon.vue.js +9 -2429
- package/js/components/icons/ai-spinner-icon.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue.js +1 -1
- package/js/components/result/base-result-current-price.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue2.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue.js +4 -3
- package/js/components/result/base-result-previous-price.vue.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue2.js.map +1 -1
- package/package.json +4 -4
- package/report/x-adapter-platform.api.json +1 -1
- package/report/x-types.api.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-previous-price.vue2.js","sources":["../../../../src/components/result/base-result-previous-price.vue"],"sourcesContent":["<template>\n <div\n v-if=\"result.price?.hasDiscount\"\n class=\"x-result-previous-price\"\n data-test=\"result-previous-price\"\n >\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency
|
|
1
|
+
{"version":3,"file":"base-result-previous-price.vue2.js","sources":["../../../../src/components/result/base-result-previous-price.vue"],"sourcesContent":["<template>\n <div\n v-if=\"result.price?.hasDiscount\"\n class=\"x-result-previous-price\"\n data-test=\"result-previous-price\"\n >\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency\n v-if=\"result.price?.originalValue\"\n :value=\"result.price.originalValue\"\n :format=\"format\"\n />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport type { Result } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport { defineComponent } from 'vue'\nimport BaseCurrency from '../currency/base-currency.vue'\n\n/**\n * Component that renders the {@link @empathyco/x-types#Result} previous price.\n *\n * @public\n */\nexport default defineComponent({\n components: { BaseCurrency },\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true,\n },\n /**\n * Format or mask to be defined as string.\n * - Use 'i' to define integer numbers.\n * - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the\n * doesn't include decimals, it is filled with zeros until reach the length defined with 'd's.\n * - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group.\n * - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more\n * than one character.\n * - Set whatever you need around the integers and decimals marks.\n *\n * @remarks The number of 'd', which is the maximum decimal length, MUST match with the length\n * of decimals provided from the adapter. Otherwise, when the component truncate the decimal\n * part, delete significant digits.\n *\n * @public\n */\n format: {\n type: String,\n },\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\n### Basic example\n\nThis component shows the previous price formatted if it has discount. The component has an optional\n`format` prop to select the currency format to be applied.\n\n```vue\n<template>\n <BaseResultPreviousPrice :result=\"result\" :format=\"'i.iii,ddd €'\" />\n</template>\n\n<script setup>\nimport { BaseResultPreviousPrice } from '@empathyco/x-components'\nconst result = {\n price: { originalValue: 199.99, hasDiscount: true },\n // ...other result properties\n}\n</script>\n```\n\n### Overriding default slot\n\n```vue\n<template>\n <BaseResultPreviousPrice :result=\"result\">\n <span class=\"custom-base-result-previous-price\">{{ result.price.originalValue }}</span>\n </BaseResultPreviousPrice>\n</template>\n\n<script setup>\nimport { BaseResultPreviousPrice } from '@empathyco/x-components'\nconst result = {\n price: { originalValue: 199.99, hasDiscount: true },\n // ...other result properties\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;AA0BA;;;;AAIE;AACF,gBAAe,eAAe,CAAC;IAC7B,UAAU,EAAE,EAAE,YAAW,EAAG;AAC5B,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAA0B;AAChC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;;;;;;;;;;;;AAeE;AACF,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAAM;AACb,SAAA;AACF,KAAA;AACF,CAAA,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@empathyco/x-adapter": "8.1.6",
|
|
71
|
-
"@empathyco/x-adapter-platform": "1.
|
|
72
|
-
"@empathyco/x-types": "10.
|
|
71
|
+
"@empathyco/x-adapter-platform": "1.4.0",
|
|
72
|
+
"@empathyco/x-types": "10.3.0",
|
|
73
73
|
"@empathyco/x-utils": "1.0.7",
|
|
74
74
|
"@vue/devtools-api": "~6.6.4",
|
|
75
75
|
"@vueuse/core": "~12.8.2",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"access": "public",
|
|
118
118
|
"directory": "dist"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "0707a73f5c7a80d3110d78bab73704f66bdb15d9"
|
|
121
121
|
}
|
|
@@ -6829,7 +6829,7 @@
|
|
|
6829
6829
|
},
|
|
6830
6830
|
{
|
|
6831
6831
|
"kind": "Content",
|
|
6832
|
-
"text": "{\n current
|
|
6832
|
+
"text": "{\n current?: {\n value: number;\n };\n previous?: {\n value: number;\n };\n future?: {\n value: number;\n };\n }"
|
|
6833
6833
|
},
|
|
6834
6834
|
{
|
|
6835
6835
|
"kind": "Content",
|
package/report/x-types.api.json
CHANGED
|
@@ -7111,11 +7111,11 @@
|
|
|
7111
7111
|
"excerptTokens": [
|
|
7112
7112
|
{
|
|
7113
7113
|
"kind": "Content",
|
|
7114
|
-
"text": "originalValue
|
|
7114
|
+
"text": "originalValue?: "
|
|
7115
7115
|
},
|
|
7116
7116
|
{
|
|
7117
7117
|
"kind": "Content",
|
|
7118
|
-
"text": "number"
|
|
7118
|
+
"text": "number | undefined"
|
|
7119
7119
|
},
|
|
7120
7120
|
{
|
|
7121
7121
|
"kind": "Content",
|
|
@@ -7123,7 +7123,7 @@
|
|
|
7123
7123
|
}
|
|
7124
7124
|
],
|
|
7125
7125
|
"isReadonly": false,
|
|
7126
|
-
"isOptional":
|
|
7126
|
+
"isOptional": true,
|
|
7127
7127
|
"releaseTag": "Public",
|
|
7128
7128
|
"name": "originalValue",
|
|
7129
7129
|
"propertyTypeTokenRange": {
|
|
@@ -7138,11 +7138,11 @@
|
|
|
7138
7138
|
"excerptTokens": [
|
|
7139
7139
|
{
|
|
7140
7140
|
"kind": "Content",
|
|
7141
|
-
"text": "value
|
|
7141
|
+
"text": "value?: "
|
|
7142
7142
|
},
|
|
7143
7143
|
{
|
|
7144
7144
|
"kind": "Content",
|
|
7145
|
-
"text": "number"
|
|
7145
|
+
"text": "number | undefined"
|
|
7146
7146
|
},
|
|
7147
7147
|
{
|
|
7148
7148
|
"kind": "Content",
|
|
@@ -7150,7 +7150,7 @@
|
|
|
7150
7150
|
}
|
|
7151
7151
|
],
|
|
7152
7152
|
"isReadonly": false,
|
|
7153
|
-
"isOptional":
|
|
7153
|
+
"isOptional": true,
|
|
7154
7154
|
"releaseTag": "Public",
|
|
7155
7155
|
"name": "value",
|
|
7156
7156
|
"propertyTypeTokenRange": {
|