@empathyco/x-components 6.3.2 → 7.0.1

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/core/index.js +0 -1
  3. package/core/index.js.map +1 -1
  4. package/docs/API-reference/api/x-adapter-platform.platformnextquery.md +1 -1
  5. package/docs/API-reference/api/x-adapter-platform.platformnextquery.source.md +1 -1
  6. package/docs/API-reference/api/x-adapter-platform.platformrelatedtag.md +1 -1
  7. package/docs/API-reference/api/x-adapter-platform.platformrelatedtag.source.md +1 -1
  8. package/docs/API-reference/api/x-components.basecurrency.md +10 -25
  9. package/docs/API-reference/api/x-components.basepricefilterlabel.md +4 -6
  10. package/docs/API-reference/api/x-components.baseresultcurrentprice.md +9 -3
  11. package/docs/API-reference/api/x-components.baseresultpreviousprice.md +9 -3
  12. package/docs/API-reference/api/x-components.md +0 -15
  13. package/docs/API-reference/components/common/currency/x-components.base-currency.md +47 -140
  14. package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +43 -8
  15. package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +30 -7
  16. package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +33 -7
  17. package/js/components/currency/base-currency.vue.js +5 -8
  18. package/js/components/currency/base-currency.vue.js.map +1 -1
  19. package/js/components/currency/base-currency.vue2.js +21 -63
  20. package/js/components/currency/base-currency.vue2.js.map +1 -1
  21. package/js/components/filters/labels/base-price-filter-label.vue.js +15 -4
  22. package/js/components/filters/labels/base-price-filter-label.vue.js.map +1 -1
  23. package/js/components/result/base-result-current-price.vue.js +2 -1
  24. package/js/components/result/base-result-current-price.vue.js.map +1 -1
  25. package/js/components/result/base-result-current-price.vue2.js +9 -13
  26. package/js/components/result/base-result-current-price.vue2.js.map +1 -1
  27. package/js/components/result/base-result-previous-price.vue.js +2 -1
  28. package/js/components/result/base-result-previous-price.vue.js.map +1 -1
  29. package/js/components/result/base-result-previous-price.vue2.js +9 -12
  30. package/js/components/result/base-result-previous-price.vue2.js.map +1 -1
  31. package/js/index.js +0 -1
  32. package/js/index.js.map +1 -1
  33. package/package.json +3 -3
  34. package/report/x-adapter-platform.api.json +2 -2
  35. package/report/x-components.api.json +294 -85
  36. package/report/x-components.api.md +33 -20
  37. package/types/src/components/currency/base-currency.vue.d.ts +27 -43
  38. package/types/src/components/currency/base-currency.vue.d.ts.map +1 -1
  39. package/types/src/components/filters/labels/base-price-filter-label.vue.d.ts +26 -8
  40. package/types/src/components/filters/labels/base-price-filter-label.vue.d.ts.map +1 -1
  41. package/types/src/components/result/base-result-current-price.vue.d.ts +21 -27
  42. package/types/src/components/result/base-result-current-price.vue.d.ts.map +1 -1
  43. package/types/src/components/result/base-result-previous-price.vue.d.ts +21 -25
  44. package/types/src/components/result/base-result-previous-price.vue.d.ts.map +1 -1
  45. package/types/src/utils/index.d.ts +0 -1
  46. package/types/src/utils/index.d.ts.map +1 -1
  47. package/docs/API-reference/api/x-components.currencyformatter.md +0 -76
  48. package/js/utils/currency-formatter.js +0 -121
  49. package/js/utils/currency-formatter.js.map +0 -1
  50. package/types/src/utils/currency-formatter.d.ts +0 -30
  51. package/types/src/utils/currency-formatter.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-components",
3
- "version": "6.3.2",
3
+ "version": "7.0.1",
4
4
  "description": "Empathy X Components",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@empathyco/x-adapter": "8.1.7",
71
- "@empathyco/x-adapter-platform": "1.4.2",
71
+ "@empathyco/x-adapter-platform": "1.4.3",
72
72
  "@empathyco/x-types": "10.3.2",
73
73
  "@empathyco/x-utils": "1.0.8",
74
74
  "@vue/devtools-api": "~6.6.4",
@@ -117,5 +117,5 @@
117
117
  "access": "public",
118
118
  "directory": "dist"
119
119
  },
120
- "gitHead": "dd8e23bf7d7a0a96931c8244e0cb5843fe8c8f89"
120
+ "gitHead": "bab968ddb9bdd0e4406d37ce4a026cc2fd1922e4"
121
121
  }
@@ -4270,7 +4270,7 @@
4270
4270
  },
4271
4271
  {
4272
4272
  "kind": "Content",
4273
- "text": "'ORGANIC' | 'CURATED'"
4273
+ "text": "'ORGANIC' | 'CURATED' | 'SYNTHETIC'"
4274
4274
  },
4275
4275
  {
4276
4276
  "kind": "Content",
@@ -5563,7 +5563,7 @@
5563
5563
  },
5564
5564
  {
5565
5565
  "kind": "Content",
5566
- "text": "'ORGANIC' | 'CURATED'"
5566
+ "text": "'ORGANIC' | 'CURATED' | 'SYNTHETIC'"
5567
5567
  },
5568
5568
  {
5569
5569
  "kind": "Content",
@@ -5587,7 +5587,7 @@
5587
5587
  {
5588
5588
  "kind": "Variable",
5589
5589
  "canonicalReference": "@empathyco/x-components!BaseCurrency:var",
5590
- "docComment": "/**\n * Renders the value received as a property which always must be a JavaScript number, with the proper format provided as a string property or by injection. The rendered tag is a span in order to render a default inline HTML element.\n *\n * Regarding the format or mask to be defined as string: - Use 'i' to define integer numbers. - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the format doesn't include decimals, it is filled with zeros until reach the length defined with 'd's. - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group. - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more than one character. - If you want to hide the decimal part if it's zero, you can add the `?` symbol after the decimal characters (e.g. 'i.iii,dd?', for `1234` you would get `1.234` instead of `1.234,00`). - Set whatever you need around the integers and decimals marks. - Default mask: 'i.iii,dd' which returns '1.345,67'.\n *\n * @remarks\n *\n * The number of 'd', which is the maximum decimal length, MUST matches with the length of decimals provided from the adapter. Otherwise, when the component truncate the decimal part, it deletes significant digits.\n *\n * Basic example:\n * ```vue\n * <BaseCurrency\n * :value=\"123456.789\"\n * format=\"i.iiii,dddd €\"\n * />\n * ```\n *\n * It will render: `123.456,7890 €`.\n *\n * See docs below for more examples.\n *\n * @public\n */\n",
5590
+ "docComment": "",
5591
5591
  "excerptTokens": [
5592
5592
  {
5593
5593
  "kind": "Content",
@@ -5622,7 +5622,7 @@
5622
5622
  },
5623
5623
  {
5624
5624
  "kind": "Content",
5625
- "text": ";\n required: true;\n };\n format: {\n type: "
5625
+ "text": ";\n required: true;\n };\n currency: "
5626
5626
  },
5627
5627
  {
5628
5628
  "kind": "Reference",
@@ -5631,7 +5631,34 @@
5631
5631
  },
5632
5632
  {
5633
5633
  "kind": "Content",
5634
- "text": ";\n };\n}>, {\n currency: import(\"vue\")."
5634
+ "text": ";\n format: {\n type: "
5635
+ },
5636
+ {
5637
+ "kind": "Reference",
5638
+ "text": "PropType",
5639
+ "canonicalReference": "@vue/runtime-core!PropType:type"
5640
+ },
5641
+ {
5642
+ "kind": "Content",
5643
+ "text": "<"
5644
+ },
5645
+ {
5646
+ "kind": "Reference",
5647
+ "text": "Omit",
5648
+ "canonicalReference": "!Omit:type"
5649
+ },
5650
+ {
5651
+ "kind": "Content",
5652
+ "text": "<"
5653
+ },
5654
+ {
5655
+ "kind": "Reference",
5656
+ "text": "Intl.NumberFormatOptions",
5657
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
5658
+ },
5659
+ {
5660
+ "kind": "Content",
5661
+ "text": ", \"currency\" | \"style\">>;\n default: () => {};\n };\n}>, {\n currencyText: import(\"vue\")."
5635
5662
  },
5636
5663
  {
5637
5664
  "kind": "Reference",
@@ -5694,7 +5721,7 @@
5694
5721
  },
5695
5722
  {
5696
5723
  "kind": "Content",
5697
- "text": ";\n required: true;\n };\n format: {\n type: "
5724
+ "text": ";\n required: true;\n };\n currency: "
5698
5725
  },
5699
5726
  {
5700
5727
  "kind": "Reference",
@@ -5703,7 +5730,34 @@
5703
5730
  },
5704
5731
  {
5705
5732
  "kind": "Content",
5706
- "text": ";\n };\n}>> & "
5733
+ "text": ";\n format: {\n type: "
5734
+ },
5735
+ {
5736
+ "kind": "Reference",
5737
+ "text": "PropType",
5738
+ "canonicalReference": "@vue/runtime-core!PropType:type"
5739
+ },
5740
+ {
5741
+ "kind": "Content",
5742
+ "text": "<"
5743
+ },
5744
+ {
5745
+ "kind": "Reference",
5746
+ "text": "Omit",
5747
+ "canonicalReference": "!Omit:type"
5748
+ },
5749
+ {
5750
+ "kind": "Content",
5751
+ "text": "<"
5752
+ },
5753
+ {
5754
+ "kind": "Reference",
5755
+ "text": "Intl.NumberFormatOptions",
5756
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
5757
+ },
5758
+ {
5759
+ "kind": "Content",
5760
+ "text": ", \"currency\" | \"style\">>;\n default: () => {};\n };\n}>> & "
5707
5761
  },
5708
5762
  {
5709
5763
  "kind": "Reference",
@@ -5712,7 +5766,25 @@
5712
5766
  },
5713
5767
  {
5714
5768
  "kind": "Content",
5715
- "text": "<{}>, {}, {}, {}, {}, string, import(\"vue\")."
5769
+ "text": "<{}>, {\n format: "
5770
+ },
5771
+ {
5772
+ "kind": "Reference",
5773
+ "text": "Omit",
5774
+ "canonicalReference": "!Omit:type"
5775
+ },
5776
+ {
5777
+ "kind": "Content",
5778
+ "text": "<"
5779
+ },
5780
+ {
5781
+ "kind": "Reference",
5782
+ "text": "Intl.NumberFormatOptions",
5783
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
5784
+ },
5785
+ {
5786
+ "kind": "Content",
5787
+ "text": ", \"currency\" | \"style\">;\n}, {}, {}, {}, string, import(\"vue\")."
5716
5788
  },
5717
5789
  {
5718
5790
  "kind": "Reference",
@@ -5730,7 +5802,7 @@
5730
5802
  "name": "BaseCurrency",
5731
5803
  "variableTypeTokenRange": {
5732
5804
  "startIndex": 1,
5733
- "endIndex": 30
5805
+ "endIndex": 46
5734
5806
  }
5735
5807
  },
5736
5808
  {
@@ -9486,7 +9558,7 @@
9486
9558
  },
9487
9559
  {
9488
9560
  "kind": "Content",
9489
- "text": ";\n }>;\n required: true;\n };\n format: {\n type: "
9561
+ "text": ";\n }>;\n required: true;\n };\n currency: "
9490
9562
  },
9491
9563
  {
9492
9564
  "kind": "Reference",
@@ -9495,7 +9567,34 @@
9495
9567
  },
9496
9568
  {
9497
9569
  "kind": "Content",
9498
- "text": ";\n };\n lessThan: {\n type: "
9570
+ "text": ";\n format: "
9571
+ },
9572
+ {
9573
+ "kind": "Reference",
9574
+ "text": "PropType",
9575
+ "canonicalReference": "@vue/runtime-core!PropType:type"
9576
+ },
9577
+ {
9578
+ "kind": "Content",
9579
+ "text": "<"
9580
+ },
9581
+ {
9582
+ "kind": "Reference",
9583
+ "text": "Omit",
9584
+ "canonicalReference": "!Omit:type"
9585
+ },
9586
+ {
9587
+ "kind": "Content",
9588
+ "text": "<"
9589
+ },
9590
+ {
9591
+ "kind": "Reference",
9592
+ "text": "Intl.NumberFormatOptions",
9593
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
9594
+ },
9595
+ {
9596
+ "kind": "Content",
9597
+ "text": ", \"currency\" | \"style\">>;\n lessThan: {\n type: "
9499
9598
  },
9500
9599
  {
9501
9600
  "kind": "Reference",
@@ -9612,7 +9711,7 @@
9612
9711
  },
9613
9712
  {
9614
9713
  "kind": "Content",
9615
- "text": ";\n }>;\n required: true;\n };\n format: {\n type: "
9714
+ "text": ";\n }>;\n required: true;\n };\n currency: "
9616
9715
  },
9617
9716
  {
9618
9717
  "kind": "Reference",
@@ -9621,7 +9720,34 @@
9621
9720
  },
9622
9721
  {
9623
9722
  "kind": "Content",
9624
- "text": ";\n };\n lessThan: {\n type: "
9723
+ "text": ";\n format: "
9724
+ },
9725
+ {
9726
+ "kind": "Reference",
9727
+ "text": "PropType",
9728
+ "canonicalReference": "@vue/runtime-core!PropType:type"
9729
+ },
9730
+ {
9731
+ "kind": "Content",
9732
+ "text": "<"
9733
+ },
9734
+ {
9735
+ "kind": "Reference",
9736
+ "text": "Omit",
9737
+ "canonicalReference": "!Omit:type"
9738
+ },
9739
+ {
9740
+ "kind": "Content",
9741
+ "text": "<"
9742
+ },
9743
+ {
9744
+ "kind": "Reference",
9745
+ "text": "Intl.NumberFormatOptions",
9746
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
9747
+ },
9748
+ {
9749
+ "kind": "Content",
9750
+ "text": ", \"currency\" | \"style\">>;\n lessThan: {\n type: "
9625
9751
  },
9626
9752
  {
9627
9753
  "kind": "Reference",
@@ -9684,7 +9810,7 @@
9684
9810
  "name": "BasePriceFilterLabel",
9685
9811
  "variableTypeTokenRange": {
9686
9812
  "startIndex": 1,
9687
- "endIndex": 52
9813
+ "endIndex": 64
9688
9814
  }
9689
9815
  },
9690
9816
  {
@@ -10077,7 +10203,7 @@
10077
10203
  },
10078
10204
  {
10079
10205
  "kind": "Content",
10080
- "text": ">;\n required: true;\n };\n format: {\n type: "
10206
+ "text": ">;\n required: true;\n };\n currency: "
10081
10207
  },
10082
10208
  {
10083
10209
  "kind": "Reference",
@@ -10086,7 +10212,34 @@
10086
10212
  },
10087
10213
  {
10088
10214
  "kind": "Content",
10089
- "text": ";\n };\n}>, {\n dynamicClasses: import(\"vue\")."
10215
+ "text": ";\n format: {\n type: "
10216
+ },
10217
+ {
10218
+ "kind": "Reference",
10219
+ "text": "PropType",
10220
+ "canonicalReference": "@vue/runtime-core!PropType:type"
10221
+ },
10222
+ {
10223
+ "kind": "Content",
10224
+ "text": "<"
10225
+ },
10226
+ {
10227
+ "kind": "Reference",
10228
+ "text": "Omit",
10229
+ "canonicalReference": "!Omit:type"
10230
+ },
10231
+ {
10232
+ "kind": "Content",
10233
+ "text": "<"
10234
+ },
10235
+ {
10236
+ "kind": "Reference",
10237
+ "text": "Intl.NumberFormatOptions",
10238
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
10239
+ },
10240
+ {
10241
+ "kind": "Content",
10242
+ "text": ", \"currency\" | \"style\">>;\n default: () => {};\n };\n}>, {\n dynamicClasses: import(\"vue\")."
10090
10243
  },
10091
10244
  {
10092
10245
  "kind": "Reference",
@@ -10167,7 +10320,7 @@
10167
10320
  },
10168
10321
  {
10169
10322
  "kind": "Content",
10170
- "text": ">;\n required: true;\n };\n format: {\n type: "
10323
+ "text": ">;\n required: true;\n };\n currency: "
10171
10324
  },
10172
10325
  {
10173
10326
  "kind": "Reference",
@@ -10176,7 +10329,34 @@
10176
10329
  },
10177
10330
  {
10178
10331
  "kind": "Content",
10179
- "text": ";\n };\n}>> & "
10332
+ "text": ";\n format: {\n type: "
10333
+ },
10334
+ {
10335
+ "kind": "Reference",
10336
+ "text": "PropType",
10337
+ "canonicalReference": "@vue/runtime-core!PropType:type"
10338
+ },
10339
+ {
10340
+ "kind": "Content",
10341
+ "text": "<"
10342
+ },
10343
+ {
10344
+ "kind": "Reference",
10345
+ "text": "Omit",
10346
+ "canonicalReference": "!Omit:type"
10347
+ },
10348
+ {
10349
+ "kind": "Content",
10350
+ "text": "<"
10351
+ },
10352
+ {
10353
+ "kind": "Reference",
10354
+ "text": "Intl.NumberFormatOptions",
10355
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
10356
+ },
10357
+ {
10358
+ "kind": "Content",
10359
+ "text": ", \"currency\" | \"style\">>;\n default: () => {};\n };\n}>> & "
10180
10360
  },
10181
10361
  {
10182
10362
  "kind": "Reference",
@@ -10185,7 +10365,25 @@
10185
10365
  },
10186
10366
  {
10187
10367
  "kind": "Content",
10188
- "text": "<{}>, {}, {}, {\n BaseCurrency: import(\"vue\")."
10368
+ "text": "<{}>, {\n format: "
10369
+ },
10370
+ {
10371
+ "kind": "Reference",
10372
+ "text": "Omit",
10373
+ "canonicalReference": "!Omit:type"
10374
+ },
10375
+ {
10376
+ "kind": "Content",
10377
+ "text": "<"
10378
+ },
10379
+ {
10380
+ "kind": "Reference",
10381
+ "text": "Intl.NumberFormatOptions",
10382
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
10383
+ },
10384
+ {
10385
+ "kind": "Content",
10386
+ "text": ", \"currency\" | \"style\">;\n}, {}, {\n BaseCurrency: import(\"vue\")."
10189
10387
  },
10190
10388
  {
10191
10389
  "kind": "Reference",
@@ -10212,7 +10410,7 @@
10212
10410
  "name": "BaseResultCurrentPrice",
10213
10411
  "variableTypeTokenRange": {
10214
10412
  "startIndex": 1,
10215
- "endIndex": 38
10413
+ "endIndex": 54
10216
10414
  }
10217
10415
  },
10218
10416
  {
@@ -10803,7 +11001,7 @@
10803
11001
  },
10804
11002
  {
10805
11003
  "kind": "Content",
10806
- "text": ">;\n required: true;\n };\n format: {\n type: "
11004
+ "text": ">;\n required: true;\n };\n currency: "
10807
11005
  },
10808
11006
  {
10809
11007
  "kind": "Reference",
@@ -10812,7 +11010,34 @@
10812
11010
  },
10813
11011
  {
10814
11012
  "kind": "Content",
10815
- "text": ";\n };\n}>, {}, {}, {}, {}, import(\"vue\")."
11013
+ "text": ";\n format: {\n type: "
11014
+ },
11015
+ {
11016
+ "kind": "Reference",
11017
+ "text": "PropType",
11018
+ "canonicalReference": "@vue/runtime-core!PropType:type"
11019
+ },
11020
+ {
11021
+ "kind": "Content",
11022
+ "text": "<"
11023
+ },
11024
+ {
11025
+ "kind": "Reference",
11026
+ "text": "Omit",
11027
+ "canonicalReference": "!Omit:type"
11028
+ },
11029
+ {
11030
+ "kind": "Content",
11031
+ "text": "<"
11032
+ },
11033
+ {
11034
+ "kind": "Reference",
11035
+ "text": "Intl.NumberFormatOptions",
11036
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
11037
+ },
11038
+ {
11039
+ "kind": "Content",
11040
+ "text": ", \"currency\" | \"style\">>;\n default: () => {};\n };\n}>, {}, {}, {}, {}, import(\"vue\")."
10816
11041
  },
10817
11042
  {
10818
11043
  "kind": "Reference",
@@ -10875,7 +11100,7 @@
10875
11100
  },
10876
11101
  {
10877
11102
  "kind": "Content",
10878
- "text": ">;\n required: true;\n };\n format: {\n type: "
11103
+ "text": ">;\n required: true;\n };\n currency: "
10879
11104
  },
10880
11105
  {
10881
11106
  "kind": "Reference",
@@ -10884,7 +11109,34 @@
10884
11109
  },
10885
11110
  {
10886
11111
  "kind": "Content",
10887
- "text": ";\n };\n}>> & "
11112
+ "text": ";\n format: {\n type: "
11113
+ },
11114
+ {
11115
+ "kind": "Reference",
11116
+ "text": "PropType",
11117
+ "canonicalReference": "@vue/runtime-core!PropType:type"
11118
+ },
11119
+ {
11120
+ "kind": "Content",
11121
+ "text": "<"
11122
+ },
11123
+ {
11124
+ "kind": "Reference",
11125
+ "text": "Omit",
11126
+ "canonicalReference": "!Omit:type"
11127
+ },
11128
+ {
11129
+ "kind": "Content",
11130
+ "text": "<"
11131
+ },
11132
+ {
11133
+ "kind": "Reference",
11134
+ "text": "Intl.NumberFormatOptions",
11135
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
11136
+ },
11137
+ {
11138
+ "kind": "Content",
11139
+ "text": ", \"currency\" | \"style\">>;\n default: () => {};\n };\n}>> & "
10888
11140
  },
10889
11141
  {
10890
11142
  "kind": "Reference",
@@ -10893,7 +11145,25 @@
10893
11145
  },
10894
11146
  {
10895
11147
  "kind": "Content",
10896
- "text": "<{}>, {}, {}, {\n BaseCurrency: import(\"vue\")."
11148
+ "text": "<{}>, {\n format: "
11149
+ },
11150
+ {
11151
+ "kind": "Reference",
11152
+ "text": "Omit",
11153
+ "canonicalReference": "!Omit:type"
11154
+ },
11155
+ {
11156
+ "kind": "Content",
11157
+ "text": "<"
11158
+ },
11159
+ {
11160
+ "kind": "Reference",
11161
+ "text": "Intl.NumberFormatOptions",
11162
+ "canonicalReference": "!Intl.NumberFormatOptions:interface"
11163
+ },
11164
+ {
11165
+ "kind": "Content",
11166
+ "text": ", \"currency\" | \"style\">;\n}, {}, {\n BaseCurrency: import(\"vue\")."
10897
11167
  },
10898
11168
  {
10899
11169
  "kind": "Reference",
@@ -10920,7 +11190,7 @@
10920
11190
  "name": "BaseResultPreviousPrice",
10921
11191
  "variableTypeTokenRange": {
10922
11192
  "startIndex": 1,
10923
- "endIndex": 34
11193
+ "endIndex": 50
10924
11194
  }
10925
11195
  },
10926
11196
  {
@@ -17750,67 +18020,6 @@
17750
18020
  "endIndex": 24
17751
18021
  }
17752
18022
  },
17753
- {
17754
- "kind": "Function",
17755
- "canonicalReference": "@empathyco/x-components!currencyFormatter:function(1)",
17756
- "docComment": "/**\n * Format a value with a given format.\n *\n * @remarks\n *\n * Format: - Use 'i' to define integer numbers. - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the doesn't include decimals, it is filled with zeros until reach the length defined with 'd's. - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group. - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more than one character. - Set whatever you need around the integers and decimals marks. - Default mask: 'i.iii,dd' which returns '1.345,67'. - If you want to hide the decimal part if it's zero (non significant), you can add the `?` symbol after the decimal characters (e.g. 'i.iii,dd?', for `1234` you would get `1.234` instead of `1.234,00`). It defines the value of `hideIntegerDecimals`: - If true (exists) and the value is an integer without decimals, the decimal non significant zeroes are hidden. - If false, the default behaviour will fill with zeros the remaining length until getting the one defined with the 'd's.\n *\n * @param value - Numeric value to be formatted.\n *\n * @param format - Format or mask to be defined as string.\n *\n * @returns Formatted number.\n *\n * @public\n */\n",
17757
- "excerptTokens": [
17758
- {
17759
- "kind": "Content",
17760
- "text": "export declare function currencyFormatter(value: "
17761
- },
17762
- {
17763
- "kind": "Content",
17764
- "text": "number"
17765
- },
17766
- {
17767
- "kind": "Content",
17768
- "text": ", format?: "
17769
- },
17770
- {
17771
- "kind": "Content",
17772
- "text": "string"
17773
- },
17774
- {
17775
- "kind": "Content",
17776
- "text": "): "
17777
- },
17778
- {
17779
- "kind": "Content",
17780
- "text": "string"
17781
- },
17782
- {
17783
- "kind": "Content",
17784
- "text": ";"
17785
- }
17786
- ],
17787
- "fileUrlPath": "src/utils/currency-formatter.ts",
17788
- "returnTypeTokenRange": {
17789
- "startIndex": 5,
17790
- "endIndex": 6
17791
- },
17792
- "releaseTag": "Public",
17793
- "overloadIndex": 1,
17794
- "parameters": [
17795
- {
17796
- "parameterName": "value",
17797
- "parameterTypeTokenRange": {
17798
- "startIndex": 1,
17799
- "endIndex": 2
17800
- },
17801
- "isOptional": false
17802
- },
17803
- {
17804
- "parameterName": "format",
17805
- "parameterTypeTokenRange": {
17806
- "startIndex": 3,
17807
- "endIndex": 4
17808
- },
17809
- "isOptional": true
17810
- }
17811
- ],
17812
- "name": "currencyFormatter"
17813
- },
17814
18023
  {
17815
18024
  "kind": "Function",
17816
18025
  "canonicalReference": "@empathyco/x-components!debounce:function(1)",