@ubnt/store.core 9.11.0-alpha.0 → 9.11.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +3 -48
  2. package/lib/assets/minus4.svg +8 -8
  3. package/lib/assets/minus5.svg +8 -8
  4. package/lib/assets/ucgMax.jpg +0 -0
  5. package/lib/assets/ucgMax2.jpg +0 -0
  6. package/lib/assets/ucgUltra.jpg +0 -0
  7. package/lib/assets/ucgUltra2.jpg +0 -0
  8. package/lib/components/Header/ProHeader/ProHeader.js +2 -19
  9. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  10. package/lib/components/Header/ProHeader/ProHeader.mjs +2 -19
  11. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  12. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +0 -1
  13. package/lib/components/Header/ProHeader/ProHeader.styles.js +0 -6
  14. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  15. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +0 -6
  16. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  17. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  18. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  19. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  20. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  21. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  22. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  23. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  24. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  25. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  26. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  27. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  28. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  29. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  30. package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
  31. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
  32. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  33. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  34. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
  35. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
  36. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +1 -6
  37. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  38. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +1 -6
  39. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  40. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  41. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  42. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  43. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  44. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  45. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  46. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  47. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  48. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +1 -1
  49. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +1 -1
  50. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  51. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  52. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +1 -1
  53. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +1 -1
  54. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  55. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  56. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  57. package/lib/constants/proStoreCategories/mapping/index.js +8 -13
  58. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  59. package/lib/constants/proStoreCategories/mapping/index.mjs +8 -13
  60. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  61. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
  62. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
  63. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  64. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
  65. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  66. package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
  67. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  68. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
  69. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  70. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  71. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  72. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  73. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  74. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  75. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  76. package/lib/utils/money/constants.d.ts +25 -56
  77. package/lib/utils/money/constants.js +7 -72
  78. package/lib/utils/money/constants.js.map +1 -1
  79. package/lib/utils/money/constants.mjs +7 -70
  80. package/lib/utils/money/constants.mjs.map +1 -1
  81. package/lib/utils/money/format.d.ts +5 -10
  82. package/lib/utils/money/format.js +14 -22
  83. package/lib/utils/money/format.js.map +1 -1
  84. package/lib/utils/money/format.mjs +16 -23
  85. package/lib/utils/money/format.mjs.map +1 -1
  86. package/lib/utils/money/index.d.ts +1 -4
  87. package/lib/utils/money/index.js +8 -26
  88. package/lib/utils/money/index.js.map +1 -1
  89. package/lib/utils/money/index.mjs +4 -8
  90. package/lib/utils/money/index.mjs.map +1 -1
  91. package/lib/utils/money/misc.d.ts +28 -68
  92. package/lib/utils/money/misc.js +64 -35
  93. package/lib/utils/money/misc.js.map +1 -1
  94. package/lib/utils/money/misc.mjs +43 -32
  95. package/lib/utils/money/misc.mjs.map +1 -1
  96. package/lib/utils/money/tax.d.ts +2 -38
  97. package/lib/utils/money/tax.js +10 -46
  98. package/lib/utils/money/tax.js.map +1 -1
  99. package/lib/utils/money/tax.mjs +11 -42
  100. package/lib/utils/money/tax.mjs.map +1 -1
  101. package/lib/utils/money/types.d.ts +3 -78
  102. package/lib/utils/number.d.ts +1 -1
  103. package/lib/utils/number.js +1 -1
  104. package/lib/utils/number.js.map +1 -1
  105. package/lib/utils/number.mjs +1 -1
  106. package/lib/utils/number.mjs.map +1 -1
  107. package/lib/utils/validations.d.ts +15 -0
  108. package/lib/utils/validations.js +23 -0
  109. package/lib/utils/validations.js.map +1 -0
  110. package/lib/utils/validations.mjs +21 -0
  111. package/lib/utils/validations.mjs.map +1 -0
  112. package/package.json +1 -1
  113. package/lib/components/Tooltip/Tooltip.d.ts +0 -2
  114. package/lib/components/Tooltip/Tooltip.js +0 -45
  115. package/lib/components/Tooltip/Tooltip.js.map +0 -1
  116. package/lib/components/Tooltip/Tooltip.mjs +0 -43
  117. package/lib/components/Tooltip/Tooltip.mjs.map +0 -1
  118. package/lib/components/Tooltip/Tooltip.styles.d.ts +0 -32
  119. package/lib/components/Tooltip/Tooltip.styles.js +0 -44
  120. package/lib/components/Tooltip/Tooltip.styles.js.map +0 -1
  121. package/lib/components/Tooltip/Tooltip.styles.mjs +0 -34
  122. package/lib/components/Tooltip/Tooltip.styles.mjs.map +0 -1
  123. package/lib/components/Tooltip/index.d.ts +0 -1
  124. package/lib/components/Tooltip/index.js +0 -6
  125. package/lib/components/Tooltip/index.js.map +0 -1
  126. package/lib/components/Tooltip/index.mjs +0 -3
  127. package/lib/components/Tooltip/index.mjs.map +0 -1
  128. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  129. package/lib/utils/money/allocators/fixedAmount.js +0 -55
  130. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  131. package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
  132. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  133. package/lib/utils/money/allocators/index.d.ts +0 -2
  134. package/lib/utils/money/allocators/index.js +0 -8
  135. package/lib/utils/money/allocators/index.js.map +0 -1
  136. package/lib/utils/money/allocators/index.mjs +0 -4
  137. package/lib/utils/money/allocators/index.mjs.map +0 -1
  138. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  139. package/lib/utils/money/allocators/productAmount.js +0 -110
  140. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  141. package/lib/utils/money/allocators/productAmount.mjs +0 -108
  142. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  143. package/lib/utils/money/exchangeRate.d.ts +0 -31
  144. package/lib/utils/money/exchangeRate.js +0 -27
  145. package/lib/utils/money/exchangeRate.js.map +0 -1
  146. package/lib/utils/money/exchangeRate.mjs +0 -23
  147. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  148. package/lib/utils/money/misc.private.d.ts +0 -23
  149. package/lib/utils/money/misc.private.js +0 -46
  150. package/lib/utils/money/misc.private.js.map +0 -1
  151. package/lib/utils/money/misc.private.mjs +0 -21
  152. package/lib/utils/money/misc.private.mjs.map +0 -1
  153. package/lib/utils/money/shipping.d.ts +0 -5
  154. package/lib/utils/money/shipping.js +0 -8
  155. package/lib/utils/money/shipping.js.map +0 -1
  156. package/lib/utils/money/shipping.mjs +0 -6
  157. package/lib/utils/money/shipping.mjs.map +0 -1
  158. package/lib/utils/money/tax.private.d.ts +0 -17
  159. package/lib/utils/money/tax.private.js +0 -65
  160. package/lib/utils/money/tax.private.js.map +0 -1
  161. package/lib/utils/money/tax.private.mjs +0 -60
  162. package/lib/utils/money/tax.private.mjs.map +0 -1
@@ -1,60 +0,0 @@
1
- import { add, subtract, allocate } from 'dinero.js';
2
- import { assert } from '../errors.mjs';
3
- import { FixedAmountAllocator } from './allocators/fixedAmount.mjs';
4
- import { getDinero, amount } from './misc.mjs';
5
- "use strict";
6
- const taxRateToDineroAllocation = taxRate => {
7
- if (taxRate <= 0 || taxRate >= 1) {
8
- throw new RangeError("Unsupported rate, expected in range of 0>rate<1");
9
- }
10
- const rateScale = String(taxRate).split(".")[1]?.length;
11
- assert(rateScale !== void 0, "rateScale is undefined");
12
- const rateInt = Math.round(taxRate * Math.pow(10, rateScale));
13
- return [rateInt, Math.pow(10, rateScale) - rateInt];
14
- };
15
- const allocatePerItemTaxableAmount = itemSummary => {
16
- if (itemSummary.quantity === 1) {
17
- return [itemSummary];
18
- }
19
- const preDiscountAmount = add(getDinero(itemSummary.taxableAmount, itemSummary.currency), getDinero(itemSummary.discountAmount, itemSummary.currency));
20
- const allocator = new FixedAmountAllocator({
21
- initialAllocateAmount: itemSummary.discountAmount,
22
- initialTotalAmount: amount(preDiscountAmount),
23
- currency: itemSummary.currency
24
- });
25
- return Array.from({
26
- length: itemSummary.quantity
27
- }, () => {
28
- const discountAllocatedAmount = allocator.allocate(itemSummary.itemPrice, itemSummary.currency);
29
- const taxableAmount = subtract(getDinero(itemSummary.itemPrice, itemSummary.currency), discountAllocatedAmount);
30
- return {
31
- itemPrice: itemSummary.itemPrice,
32
- taxableAmount: amount(taxableAmount),
33
- discountAmount: amount(discountAllocatedAmount),
34
- currency: itemSummary.currency,
35
- quantity: 1
36
- };
37
- });
38
- };
39
- const calculateWholeQtyLineItemTax = (itemSummary, taxRate) => {
40
- if (taxRate === 0) {
41
- return getDinero(0, itemSummary.currency);
42
- }
43
- const [taxAmount] = allocate(getDinero(itemSummary.taxableAmount, itemSummary.currency), taxRateToDineroAllocation(taxRate));
44
- assert(taxAmount !== void 0, "taxAmount is undefined");
45
- return taxAmount;
46
- };
47
- const calculatePerQtyLineItemTax = (itemSummary, taxRate) => {
48
- if (taxRate === 0) {
49
- return getDinero(0, itemSummary.currency);
50
- }
51
- const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);
52
- let totalTaxAmount = getDinero(0, itemSummary.currency);
53
- singleItemSummaries.forEach(itemSummary2 => {
54
- const taxAmount = calculateWholeQtyLineItemTax(itemSummary2, taxRate);
55
- totalTaxAmount = add(totalTaxAmount, taxAmount);
56
- });
57
- return totalTaxAmount;
58
- };
59
- export { allocatePerItemTaxableAmount, calculatePerQtyLineItemTax, calculateWholeQtyLineItemTax, taxRateToDineroAllocation };
60
- //# sourceMappingURL=tax.private.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tax.private.mjs","sources":["../../../src/utils/money/tax.private.ts"],"sourcesContent":["// #############################################################################\n// Internal helper functions not for consumption outside of store.core!\n// Wrote as separate files so that they can be easily unit tested without exposing them\n// #############################################################################\nimport type { Dinero } from \"dinero.js\";\nimport { add, allocate, subtract } from \"dinero.js\";\n\nimport { assert } from \"../errors\";\nimport { FixedAmountAllocator } from \"./allocators/fixedAmount\";\nimport { amount, getDinero } from \"./misc\";\nimport type {\n Cents,\n LineItemSummary,\n SingleLineItemSummary,\n TaxRate,\n} from \"./types\";\n\n/**\n * Private helper to convert a floating number to a dinero friendly allocation integer pair\n * @see https://v2.dinerojs.com/docs/api/mutations/allocate\n * @example\n * taxRateToDineroAllocation(0.1) // [1, 9]\n * taxRateToDineroAllocation(0.5) // [5, 5]\n */\nexport const taxRateToDineroAllocation = (\n taxRate: TaxRate,\n): [number, number] => {\n if (taxRate <= 0 || taxRate >= 1) {\n throw new RangeError(\"Unsupported rate, expected in range of 0>rate<1\");\n }\n\n // Get the scale of the rate\n const rateScale = String(taxRate).split(\".\")[1]?.length;\n assert(rateScale !== undefined, \"rateScale is undefined\");\n\n // Convert to integers\n const rateInt = Math.round(taxRate * Math.pow(10, rateScale));\n return [rateInt, Math.pow(10, rateScale) - rateInt];\n};\n\n/**\n * Reverse engineer the taxable amount from \"whole item\" taxable amount into \"per item\" taxable amount for custom tax\n * rate calculations\n */\nexport const allocatePerItemTaxableAmount = (\n itemSummary: LineItemSummary,\n): SingleLineItemSummary[] => {\n /**\n * If the item quantity is 1, we can just return the item summary as is\n */\n if (itemSummary.quantity === 1) {\n return [itemSummary as SingleLineItemSummary];\n }\n\n // Reverse engineer price before discount\n const preDiscountAmount = add(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n getDinero(itemSummary.discountAmount, itemSummary.currency),\n );\n\n const allocator = new FixedAmountAllocator({\n initialAllocateAmount: itemSummary.discountAmount,\n initialTotalAmount: amount(preDiscountAmount),\n currency: itemSummary.currency,\n });\n\n // Iterate over the amount of qty to reverse engineer the discount price\n return Array.from({ length: itemSummary.quantity }, () => {\n const discountAllocatedAmount = allocator.allocate(\n itemSummary.itemPrice,\n itemSummary.currency,\n );\n\n const taxableAmount = subtract(\n getDinero(itemSummary.itemPrice, itemSummary.currency),\n discountAllocatedAmount,\n );\n\n return {\n itemPrice: itemSummary.itemPrice,\n taxableAmount: amount(taxableAmount),\n discountAmount: amount(discountAllocatedAmount),\n currency: itemSummary.currency,\n quantity: 1,\n } as SingleLineItemSummary;\n });\n};\n\nexport const calculateWholeQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n /**\n * FIXME: look into approach with multiply and different scale for control over rounding, currently we just inherit\n * what dinero gives us which cause unexpected rounding issue\n */\n const [taxAmount] = allocate(\n getDinero(itemSummary.taxableAmount, itemSummary.currency),\n taxRateToDineroAllocation(taxRate),\n );\n\n assert(taxAmount !== undefined, \"taxAmount is undefined\");\n return taxAmount;\n};\n\nexport const calculatePerQtyLineItemTax = (\n itemSummary: LineItemSummary,\n taxRate: TaxRate,\n): Dinero<Cents> => {\n // Nothing to calculate\n if (taxRate === 0) {\n return getDinero(0, itemSummary.currency);\n }\n\n // Split the item summary into per individual item qty summaries\n const singleItemSummaries = allocatePerItemTaxableAmount(itemSummary);\n\n // Calculate individual item qty tax and sum them up\n let totalTaxAmount = getDinero(0, itemSummary.currency);\n\n singleItemSummaries.forEach((itemSummary) => {\n // Probably a bit confusing at first, but calling the whole qty tax calculation function here as we can safely use\n // it as item summary is always a single item summary here\n const taxAmount = calculateWholeQtyLineItemTax(itemSummary, taxRate);\n totalTaxAmount = add(totalTaxAmount, taxAmount);\n });\n\n return totalTaxAmount;\n};\n"],"names":["taxRateToDineroAllocation","taxRate","RangeError","rateScale","String","split","length","assert","rateInt","Math","round","pow","allocatePerItemTaxableAmount","itemSummary","quantity","preDiscountAmount","add","getDinero","taxableAmount","currency","discountAmount","allocator","FixedAmountAllocator","initialAllocateAmount","initialTotalAmount","amount","Array","from","discountAllocatedAmount","allocate","itemPrice","subtract","calculateWholeQtyLineItemTax","taxAmount","calculatePerQtyLineItemTax","single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