delivapp-ordering 0.0.166 → 0.0.168

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 (177) hide show
  1. package/README.md +26 -26
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/types/components/BagesPaymentsOrderSummary/BagesPaymentsOrderSummary.d.ts +10 -10
  4. package/dist/cjs/types/components/BagesPaymentsOrderSummary/index.d.ts +1 -1
  5. package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +8 -8
  6. package/dist/cjs/types/components/Checkbox/index.d.ts +1 -1
  7. package/dist/cjs/types/components/CheckoutFormItem/CheckoutFormItem.d.ts +10 -10
  8. package/dist/cjs/types/components/CheckoutFormItem/index.d.ts +1 -1
  9. package/dist/cjs/types/components/CounterButton/CounterButton.d.ts +12 -12
  10. package/dist/cjs/types/components/CounterButton/index.d.ts +1 -1
  11. package/dist/cjs/types/components/CutleryButton/CutleryButton.d.ts +8 -8
  12. package/dist/cjs/types/components/CutleryButton/index.d.ts +1 -1
  13. package/dist/cjs/types/components/DeliveryControl/DeliveryControl.d.ts +15 -15
  14. package/dist/cjs/types/components/DeliveryControl/index.d.ts +1 -1
  15. package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +12 -12
  16. package/dist/cjs/types/components/GiftControl/GiftControl.d.ts +12 -12
  17. package/dist/cjs/types/components/GiftControl/index.d.ts +1 -1
  18. package/dist/cjs/types/components/HeaderCartButton/HeaderCartButton.d.ts +9 -9
  19. package/dist/cjs/types/components/HeaderCartButton/index.d.ts +1 -1
  20. package/dist/cjs/types/components/Icons/IconsPreview.d.ts +3 -3
  21. package/dist/cjs/types/components/Icons/index.d.ts +173 -173
  22. package/dist/cjs/types/components/IngredientsSelector/IngredientsSelector.d.ts +12 -12
  23. package/dist/cjs/types/components/IngredientsSelector/index.d.ts +1 -1
  24. package/dist/cjs/types/components/Input/Input.d.ts +9 -9
  25. package/dist/cjs/types/components/Input/index.d.ts +1 -1
  26. package/dist/cjs/types/components/Loader/Loader.d.ts +3 -3
  27. package/dist/cjs/types/components/Loader/index.d.ts +1 -1
  28. package/dist/cjs/types/components/Media/Image.d.ts +12 -12
  29. package/dist/cjs/types/components/Media/Media.d.ts +21 -21
  30. package/dist/cjs/types/components/Media/Video.d.ts +16 -16
  31. package/dist/cjs/types/components/Media/index.d.ts +1 -1
  32. package/dist/cjs/types/components/OrderSummary/OrderSummary.d.ts +59 -59
  33. package/dist/cjs/types/components/OrderSummary/index.d.ts +1 -1
  34. package/dist/cjs/types/components/OrderSummaryWithProducts/OrderSummaryWithProducts.d.ts +36 -36
  35. package/dist/cjs/types/components/OrderSummaryWithProducts/index.d.ts +1 -1
  36. package/dist/cjs/types/components/ProductCommentsSection/ProductCommentsSection.d.ts +9 -9
  37. package/dist/cjs/types/components/ProductCommentsSection/index.d.ts +1 -1
  38. package/dist/cjs/types/components/ProductConstructor/ProductConstructor.d.ts +47 -47
  39. package/dist/cjs/types/components/ProductConstructor/index.d.ts +1 -1
  40. package/dist/cjs/types/components/ProductConstructorFooter/ProductConstructorFooter.d.ts +16 -16
  41. package/dist/cjs/types/components/ProductConstructorFooter/index.d.ts +1 -1
  42. package/dist/cjs/types/components/ProductPreview/ProductPreview.d.ts +20 -20
  43. package/dist/cjs/types/components/ProductPreview/index.d.ts +1 -1
  44. package/dist/cjs/types/components/ProductPreviewList/ProductPreviewList.d.ts +12 -12
  45. package/dist/cjs/types/components/ProductPreviewList/index.d.ts +1 -1
  46. package/dist/cjs/types/components/ProductSummary/ProductSummary.d.ts +13 -13
  47. package/dist/cjs/types/components/ProductSummary/index.d.ts +1 -1
  48. package/dist/cjs/types/components/ProductTags/ProductTags.d.ts +10 -10
  49. package/dist/cjs/types/components/ProductTags/index.d.ts +1 -1
  50. package/dist/cjs/types/components/QuantityDescription/QuantityDescription.d.ts +7 -7
  51. package/dist/cjs/types/components/QuantityDescription/index.d.ts +1 -1
  52. package/dist/cjs/types/components/RestaurantBenefits/RestaurantBenefits.d.ts +17 -17
  53. package/dist/cjs/types/components/RestaurantBenefits/index.d.ts +1 -1
  54. package/dist/cjs/types/components/RestaurantHeader/RestaurantHeader.d.ts +16 -16
  55. package/dist/cjs/types/components/RestaurantHeader/index.d.ts +1 -1
  56. package/dist/cjs/types/components/RestaurantTags/RestaurantTags.d.ts +8 -8
  57. package/dist/cjs/types/components/RestaurantTags/index.d.ts +1 -1
  58. package/dist/cjs/types/components/Stepper/Stepper.d.ts +14 -14
  59. package/dist/cjs/types/components/Stepper/index.d.ts +1 -1
  60. package/dist/cjs/types/components/SuboptionPrice/SuboptionPrice.d.ts +9 -9
  61. package/dist/cjs/types/components/SuboptionPrice/index.d.ts +1 -1
  62. package/dist/cjs/types/components/SuboptionSelector/IOption.d.ts +25 -25
  63. package/dist/cjs/types/components/SuboptionSelector/ISuboption.d.ts +16 -16
  64. package/dist/cjs/types/components/SuboptionSelector/SuboptionCheckboxSelector/SuboptionCheckboxSelector.d.ts +14 -14
  65. package/dist/cjs/types/components/SuboptionSelector/SuboptionCheckboxSelector/index.d.ts +1 -1
  66. package/dist/cjs/types/components/SuboptionSelector/SuboptionMultiSelector/SuboptionMultiSelector.d.ts +14 -14
  67. package/dist/cjs/types/components/SuboptionSelector/SuboptionMultiSelector/index.d.ts +1 -1
  68. package/dist/cjs/types/components/SuboptionSelector/SuboptionPizzaSelector/SuboptionPizzaSelector.d.ts +12 -12
  69. package/dist/cjs/types/components/SuboptionSelector/SuboptionPizzaSelector/index.d.ts +1 -1
  70. package/dist/cjs/types/components/SuboptionSelector/SuboptionRadioSelector/SuboptionRadioSelector.d.ts +13 -13
  71. package/dist/cjs/types/components/SuboptionSelector/SuboptionRadioSelector/index.d.ts +1 -1
  72. package/dist/cjs/types/components/SuboptionSelector/index.d.ts +4 -4
  73. package/dist/cjs/types/components/SuboptionSummary/SuboptionSummary.d.ts +4 -4
  74. package/dist/cjs/types/components/SuboptionSummary/index.d.ts +1 -1
  75. package/dist/cjs/types/components/TabsControl/TabsControl.d.ts +14 -14
  76. package/dist/cjs/types/components/TabsControl/index.d.ts +1 -1
  77. package/dist/cjs/types/components/Tag/Tag.d.ts +8 -8
  78. package/dist/cjs/types/components/Tag/index.d.ts +1 -1
  79. package/dist/cjs/types/components/Warning/Warning.d.ts +6 -6
  80. package/dist/cjs/types/components/Warning/index.d.ts +1 -1
  81. package/dist/cjs/types/components/index.d.ts +24 -24
  82. package/dist/cjs/types/enums/enums.d.ts +58 -58
  83. package/dist/cjs/types/helpers/context.d.ts +11 -11
  84. package/dist/cjs/types/helpers/defaultTranslation.d.ts +97 -97
  85. package/dist/cjs/types/helpers/index.d.ts +1 -1
  86. package/dist/cjs/types/helpers/productConstructor.d.ts +86 -86
  87. package/dist/cjs/types/helpers/utils.d.ts +3 -3
  88. package/dist/cjs/types/index.d.ts +5 -5
  89. package/dist/esm/index.js +1 -1
  90. package/dist/esm/types/components/BagesPaymentsOrderSummary/BagesPaymentsOrderSummary.d.ts +10 -10
  91. package/dist/esm/types/components/BagesPaymentsOrderSummary/index.d.ts +1 -1
  92. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +8 -8
  93. package/dist/esm/types/components/Checkbox/index.d.ts +1 -1
  94. package/dist/esm/types/components/CheckoutFormItem/CheckoutFormItem.d.ts +10 -10
  95. package/dist/esm/types/components/CheckoutFormItem/index.d.ts +1 -1
  96. package/dist/esm/types/components/CounterButton/CounterButton.d.ts +12 -12
  97. package/dist/esm/types/components/CounterButton/index.d.ts +1 -1
  98. package/dist/esm/types/components/CutleryButton/CutleryButton.d.ts +8 -8
  99. package/dist/esm/types/components/CutleryButton/index.d.ts +1 -1
  100. package/dist/esm/types/components/DeliveryControl/DeliveryControl.d.ts +15 -15
  101. package/dist/esm/types/components/DeliveryControl/index.d.ts +1 -1
  102. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +12 -12
  103. package/dist/esm/types/components/GiftControl/GiftControl.d.ts +12 -12
  104. package/dist/esm/types/components/GiftControl/index.d.ts +1 -1
  105. package/dist/esm/types/components/HeaderCartButton/HeaderCartButton.d.ts +9 -9
  106. package/dist/esm/types/components/HeaderCartButton/index.d.ts +1 -1
  107. package/dist/esm/types/components/Icons/IconsPreview.d.ts +3 -3
  108. package/dist/esm/types/components/Icons/index.d.ts +173 -173
  109. package/dist/esm/types/components/IngredientsSelector/IngredientsSelector.d.ts +12 -12
  110. package/dist/esm/types/components/IngredientsSelector/index.d.ts +1 -1
  111. package/dist/esm/types/components/Input/Input.d.ts +9 -9
  112. package/dist/esm/types/components/Input/index.d.ts +1 -1
  113. package/dist/esm/types/components/Loader/Loader.d.ts +3 -3
  114. package/dist/esm/types/components/Loader/index.d.ts +1 -1
  115. package/dist/esm/types/components/Media/Image.d.ts +12 -12
  116. package/dist/esm/types/components/Media/Media.d.ts +21 -21
  117. package/dist/esm/types/components/Media/Video.d.ts +16 -16
  118. package/dist/esm/types/components/Media/index.d.ts +1 -1
  119. package/dist/esm/types/components/OrderSummary/OrderSummary.d.ts +59 -59
  120. package/dist/esm/types/components/OrderSummary/index.d.ts +1 -1
  121. package/dist/esm/types/components/OrderSummaryWithProducts/OrderSummaryWithProducts.d.ts +36 -36
  122. package/dist/esm/types/components/OrderSummaryWithProducts/index.d.ts +1 -1
  123. package/dist/esm/types/components/ProductCommentsSection/ProductCommentsSection.d.ts +9 -9
  124. package/dist/esm/types/components/ProductCommentsSection/index.d.ts +1 -1
  125. package/dist/esm/types/components/ProductConstructor/ProductConstructor.d.ts +47 -47
  126. package/dist/esm/types/components/ProductConstructor/index.d.ts +1 -1
  127. package/dist/esm/types/components/ProductConstructorFooter/ProductConstructorFooter.d.ts +16 -16
  128. package/dist/esm/types/components/ProductConstructorFooter/index.d.ts +1 -1
  129. package/dist/esm/types/components/ProductPreview/ProductPreview.d.ts +20 -20
  130. package/dist/esm/types/components/ProductPreview/index.d.ts +1 -1
  131. package/dist/esm/types/components/ProductPreviewList/ProductPreviewList.d.ts +12 -12
  132. package/dist/esm/types/components/ProductPreviewList/index.d.ts +1 -1
  133. package/dist/esm/types/components/ProductSummary/ProductSummary.d.ts +13 -13
  134. package/dist/esm/types/components/ProductSummary/index.d.ts +1 -1
  135. package/dist/esm/types/components/ProductTags/ProductTags.d.ts +10 -10
  136. package/dist/esm/types/components/ProductTags/index.d.ts +1 -1
  137. package/dist/esm/types/components/QuantityDescription/QuantityDescription.d.ts +7 -7
  138. package/dist/esm/types/components/QuantityDescription/index.d.ts +1 -1
  139. package/dist/esm/types/components/RestaurantBenefits/RestaurantBenefits.d.ts +17 -17
  140. package/dist/esm/types/components/RestaurantBenefits/index.d.ts +1 -1
  141. package/dist/esm/types/components/RestaurantHeader/RestaurantHeader.d.ts +16 -16
  142. package/dist/esm/types/components/RestaurantHeader/index.d.ts +1 -1
  143. package/dist/esm/types/components/RestaurantTags/RestaurantTags.d.ts +8 -8
  144. package/dist/esm/types/components/RestaurantTags/index.d.ts +1 -1
  145. package/dist/esm/types/components/Stepper/Stepper.d.ts +14 -14
  146. package/dist/esm/types/components/Stepper/index.d.ts +1 -1
  147. package/dist/esm/types/components/SuboptionPrice/SuboptionPrice.d.ts +9 -9
  148. package/dist/esm/types/components/SuboptionPrice/index.d.ts +1 -1
  149. package/dist/esm/types/components/SuboptionSelector/IOption.d.ts +25 -25
  150. package/dist/esm/types/components/SuboptionSelector/ISuboption.d.ts +16 -16
  151. package/dist/esm/types/components/SuboptionSelector/SuboptionCheckboxSelector/SuboptionCheckboxSelector.d.ts +14 -14
  152. package/dist/esm/types/components/SuboptionSelector/SuboptionCheckboxSelector/index.d.ts +1 -1
  153. package/dist/esm/types/components/SuboptionSelector/SuboptionMultiSelector/SuboptionMultiSelector.d.ts +14 -14
  154. package/dist/esm/types/components/SuboptionSelector/SuboptionMultiSelector/index.d.ts +1 -1
  155. package/dist/esm/types/components/SuboptionSelector/SuboptionPizzaSelector/SuboptionPizzaSelector.d.ts +12 -12
  156. package/dist/esm/types/components/SuboptionSelector/SuboptionPizzaSelector/index.d.ts +1 -1
  157. package/dist/esm/types/components/SuboptionSelector/SuboptionRadioSelector/SuboptionRadioSelector.d.ts +13 -13
  158. package/dist/esm/types/components/SuboptionSelector/SuboptionRadioSelector/index.d.ts +1 -1
  159. package/dist/esm/types/components/SuboptionSelector/index.d.ts +4 -4
  160. package/dist/esm/types/components/SuboptionSummary/SuboptionSummary.d.ts +4 -4
  161. package/dist/esm/types/components/SuboptionSummary/index.d.ts +1 -1
  162. package/dist/esm/types/components/TabsControl/TabsControl.d.ts +14 -14
  163. package/dist/esm/types/components/TabsControl/index.d.ts +1 -1
  164. package/dist/esm/types/components/Tag/Tag.d.ts +8 -8
  165. package/dist/esm/types/components/Tag/index.d.ts +1 -1
  166. package/dist/esm/types/components/Warning/Warning.d.ts +6 -6
  167. package/dist/esm/types/components/Warning/index.d.ts +1 -1
  168. package/dist/esm/types/components/index.d.ts +24 -24
  169. package/dist/esm/types/enums/enums.d.ts +58 -58
  170. package/dist/esm/types/helpers/context.d.ts +11 -11
  171. package/dist/esm/types/helpers/defaultTranslation.d.ts +97 -97
  172. package/dist/esm/types/helpers/index.d.ts +1 -1
  173. package/dist/esm/types/helpers/productConstructor.d.ts +86 -86
  174. package/dist/esm/types/helpers/utils.d.ts +3 -3
  175. package/dist/esm/types/index.d.ts +5 -5
  176. package/dist/index.d.ts +641 -641
  177. package/package.json +79 -79
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
- export declare const TranslationUIContext: import("react").Context<{
3
- [key: string]: ITranslation;
4
- }>;
5
- export declare const TranslationUIProvider: import("react").Provider<{
6
- [key: string]: ITranslation;
7
- }>;
8
- export interface ITranslation {
9
- [key: string]: string;
10
- }
11
- export declare const useUITranslationContext: (key: string) => ITranslation;
1
+ /// <reference types="react" />
2
+ export declare const TranslationUIContext: import("react").Context<{
3
+ [key: string]: ITranslation;
4
+ }>;
5
+ export declare const TranslationUIProvider: import("react").Provider<{
6
+ [key: string]: ITranslation;
7
+ }>;
8
+ export interface ITranslation {
9
+ [key: string]: string;
10
+ }
11
+ export declare const useUITranslationContext: (key: string) => ITranslation;
@@ -1,97 +1,97 @@
1
- declare const _default: {
2
- cutlery: {
3
- addCutlery: string;
4
- cutlery: string;
5
- };
6
- checkoutFormItem: {
7
- change: string;
8
- };
9
- gift: {
10
- itsGift: string;
11
- name: string;
12
- namePlaceholder: string;
13
- greeting: string;
14
- greetingPlaceholder: string;
15
- phone: string;
16
- phonePlaceholder: string;
17
- };
18
- bagesPaymentsOrderSummary: {
19
- discount: string;
20
- freeDelivery: string;
21
- bonuses: string;
22
- };
23
- tag: {
24
- vegan: string;
25
- vegetarian: string;
26
- spicy: string;
27
- freeGluten: string;
28
- };
29
- errorConstructor: {
30
- selectOneOf: string;
31
- selectAtLeast: string;
32
- for: string;
33
- maximumAvailable: string;
34
- minimumOption: string;
35
- };
36
- productConstructor: {
37
- ingredients: string;
38
- comments: string;
39
- addName: string;
40
- addComment: string;
41
- addCommentPlaceholder: string;
42
- addNamePlaceholder: string;
43
- summary: string;
44
- toppings: string;
45
- half: string;
46
- full: string;
47
- addToCart: string;
48
- back: string;
49
- next: string;
50
- left: string;
51
- right: string;
52
- change: string;
53
- free: string;
54
- upToOption: string;
55
- freeOptions: string;
56
- portionSizeLabel: string;
57
- portionSizeLabelWeighed: string;
58
- selected: string;
59
- notSelected: string;
60
- gr: string;
61
- weightProductAcceptable: string;
62
- weightAdditionalPayment: string;
63
- };
64
- summary: {
65
- editProduct: string;
66
- addRemovedOffer: string;
67
- removedOffer: string;
68
- bonus: string;
69
- discount: string;
70
- coupon: string;
71
- removeCoupon: string;
72
- summary: string;
73
- subtotal: string;
74
- deliveryCost: string;
75
- deliveryCostBase: string;
76
- deliveryCostFinal: string;
77
- serviceFee: string;
78
- minimumOrderCharge: string;
79
- driverTip: string;
80
- invalidPromocode: string;
81
- placeholderPromocode: string;
82
- paymentBalance: string;
83
- weightAdjustment: string;
84
- weightAdjustmentTooltip: string;
85
- total: string;
86
- confirm: string;
87
- bonusCardExpiration: string;
88
- bonusCardTooltip: string;
89
- };
90
- deliveryControl: {
91
- pickUp: string;
92
- delivery: string;
93
- dinein: string;
94
- virtualVenue: string;
95
- };
96
- };
97
- export default _default;
1
+ declare const _default: {
2
+ cutlery: {
3
+ addCutlery: string;
4
+ cutlery: string;
5
+ };
6
+ checkoutFormItem: {
7
+ change: string;
8
+ };
9
+ gift: {
10
+ itsGift: string;
11
+ name: string;
12
+ namePlaceholder: string;
13
+ greeting: string;
14
+ greetingPlaceholder: string;
15
+ phone: string;
16
+ phonePlaceholder: string;
17
+ };
18
+ bagesPaymentsOrderSummary: {
19
+ discount: string;
20
+ freeDelivery: string;
21
+ bonuses: string;
22
+ };
23
+ tag: {
24
+ vegan: string;
25
+ vegetarian: string;
26
+ spicy: string;
27
+ freeGluten: string;
28
+ };
29
+ errorConstructor: {
30
+ selectOneOf: string;
31
+ selectAtLeast: string;
32
+ for: string;
33
+ maximumAvailable: string;
34
+ minimumOption: string;
35
+ };
36
+ productConstructor: {
37
+ ingredients: string;
38
+ comments: string;
39
+ addName: string;
40
+ addComment: string;
41
+ addCommentPlaceholder: string;
42
+ addNamePlaceholder: string;
43
+ summary: string;
44
+ toppings: string;
45
+ half: string;
46
+ full: string;
47
+ addToCart: string;
48
+ back: string;
49
+ next: string;
50
+ left: string;
51
+ right: string;
52
+ change: string;
53
+ free: string;
54
+ upToOption: string;
55
+ freeOptions: string;
56
+ portionSizeLabel: string;
57
+ portionSizeLabelWeighed: string;
58
+ selected: string;
59
+ notSelected: string;
60
+ gr: string;
61
+ weightProductAcceptable: string;
62
+ weightAdditionalPayment: string;
63
+ };
64
+ summary: {
65
+ editProduct: string;
66
+ addRemovedOffer: string;
67
+ removedOffer: string;
68
+ bonus: string;
69
+ discount: string;
70
+ coupon: string;
71
+ removeCoupon: string;
72
+ summary: string;
73
+ subtotal: string;
74
+ deliveryCost: string;
75
+ deliveryCostBase: string;
76
+ deliveryCostFinal: string;
77
+ serviceFee: string;
78
+ minimumOrderCharge: string;
79
+ driverTip: string;
80
+ invalidPromocode: string;
81
+ placeholderPromocode: string;
82
+ paymentBalance: string;
83
+ weightAdjustment: string;
84
+ weightAdjustmentTooltip: string;
85
+ total: string;
86
+ confirm: string;
87
+ bonusCardExpiration: string;
88
+ bonusCardTooltip: string;
89
+ };
90
+ deliveryControl: {
91
+ pickUp: string;
92
+ delivery: string;
93
+ dinein: string;
94
+ virtualVenue: string;
95
+ };
96
+ };
97
+ export default _default;
@@ -1 +1 @@
1
- export { INGREDIENTS, HALF_OPTION, type IProductSaved, prepareHalfOptions, convertToServerModelOptions, checkRespectTo, mergeProduct, mergeOption, } from './productConstructor';
1
+ export { INGREDIENTS, HALF_OPTION, type IProductSaved, prepareHalfOptions, convertToServerModelOptions, checkRespectTo, mergeProduct, mergeOption, } from './productConstructor';
@@ -1,86 +1,86 @@
1
- import { IOption, ISuboption } from '../components';
2
- import { Ingredient } from '../components/IngredientsSelector/IngredientsSelector';
3
- import { ITranslation } from './context';
4
- import { CURRENCY } from '../enums/enums';
5
- export declare const INGREDIENTS = "#INGREDIENTS";
6
- export declare const HALF_SELECTOR = "#HALF_SELECTOR";
7
- export declare const HALF_SELECTOR_FULL = "#HALF_SELECTOR_FULL";
8
- export declare const HALF_SELECTOR_HALF = "#HALF_SELECTOR_HALF";
9
- export declare enum HALF_OPTION {
10
- none = 0,
11
- left = 1,
12
- right = 2
13
- }
14
- export declare const prepeareIngredients: (ingredients: any, translations: ITranslation) => IOption;
15
- export declare const prepeareOptions: (opt: IOption[], optHalf: IOption[], isHalf: any, translations: ITranslation) => any[];
16
- export declare const getErrorContsructor: (option: any, errorTranslations: ITranslation) => string;
17
- export declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
18
- export declare const isHalfOption: (id: string) => boolean;
19
- export declare const isHalfOptionSelected: (id: string) => boolean;
20
- export declare const getSummaryProduct: (ingredient: IOption, options: IOption[], optionsHalf: IOption[], comments: string | null, wighthOptions: {
21
- weighed: boolean;
22
- unit_weight: number;
23
- weight_range: number;
24
- quantity: number;
25
- amountDiff: number;
26
- currency: CURRENCY;
27
- }, currency: CURRENCY, translations: ITranslation) => {
28
- name: string;
29
- value: string | any;
30
- index: number;
31
- weightProduct?: boolean;
32
- tooltip?: string;
33
- }[];
34
- export declare const getSidesName: (option: IOption, translations: ITranslation) => string;
35
- export declare const convertToServerModelOptions: (options: IOption[]) => {
36
- id: string;
37
- name: string;
38
- suboptions: {
39
- id: string;
40
- name: string;
41
- price: number;
42
- quantity: number;
43
- half_option: HALF_OPTION;
44
- }[];
45
- }[];
46
- export declare const checkRespectTo: (option: IOption, options: IOption[]) => boolean;
47
- export interface IProductSaved {
48
- product: {
49
- id: string;
50
- name: string;
51
- quantity: number;
52
- ingredients: string[];
53
- options: {
54
- id: string;
55
- name: string;
56
- suboptions: {
57
- id: string;
58
- name: string;
59
- price: number;
60
- quantity: number;
61
- half_option: HALF_OPTION;
62
- }[];
63
- }[];
64
- price: number;
65
- full_price: number;
66
- name_on_box: string;
67
- comment: string;
68
- };
69
- full_price: number;
70
- }
71
- export declare const mergeProduct: (product: IProductSaved, allOptionsTemplate: IOption[], ingredients: Ingredient[]) => {
72
- comments: string;
73
- nameOnBox: string;
74
- finalPrice: number;
75
- quantity: number;
76
- ingredients: any[];
77
- options: any[];
78
- optionsHalf: any[];
79
- isHalf: boolean;
80
- };
81
- export declare const mergeOption: (option: IOption, productToCart: IProductSaved) => IOption;
82
- export declare const getSuboptionPrice: (freeBudget: number, suboption: ISuboption) => {
83
- free: boolean;
84
- amount: number | null;
85
- };
86
- export declare const getMinMaxQuantity: (min: number, max: number, freeBudget: number, freeLabel: string) => string;
1
+ import { IOption, ISuboption } from '../components';
2
+ import { Ingredient } from '../components/IngredientsSelector/IngredientsSelector';
3
+ import { ITranslation } from './context';
4
+ import { CURRENCY } from '../enums/enums';
5
+ export declare const INGREDIENTS = "#INGREDIENTS";
6
+ export declare const HALF_SELECTOR = "#HALF_SELECTOR";
7
+ export declare const HALF_SELECTOR_FULL = "#HALF_SELECTOR_FULL";
8
+ export declare const HALF_SELECTOR_HALF = "#HALF_SELECTOR_HALF";
9
+ export declare enum HALF_OPTION {
10
+ none = 0,
11
+ left = 1,
12
+ right = 2
13
+ }
14
+ export declare const prepeareIngredients: (ingredients: any, translations: ITranslation) => IOption;
15
+ export declare const prepeareOptions: (opt: IOption[], optHalf: IOption[], isHalf: any, translations: ITranslation) => any[];
16
+ export declare const getErrorContsructor: (option: any, errorTranslations: ITranslation) => string;
17
+ export declare const prepareHalfOptions: (halfOptions: IOption[], isHalf: boolean) => IOption[];
18
+ export declare const isHalfOption: (id: string) => boolean;
19
+ export declare const isHalfOptionSelected: (id: string) => boolean;
20
+ export declare const getSummaryProduct: (ingredient: IOption, options: IOption[], optionsHalf: IOption[], comments: string | null, wighthOptions: {
21
+ weighed: boolean;
22
+ unit_weight: number;
23
+ weight_range: number;
24
+ quantity: number;
25
+ amountDiff: number;
26
+ currency: CURRENCY;
27
+ }, currency: CURRENCY, translations: ITranslation) => {
28
+ name: string;
29
+ value: string | any;
30
+ index: number;
31
+ weightProduct?: boolean;
32
+ tooltip?: string;
33
+ }[];
34
+ export declare const getSidesName: (option: IOption, translations: ITranslation) => string;
35
+ export declare const convertToServerModelOptions: (options: IOption[]) => {
36
+ id: string;
37
+ name: string;
38
+ suboptions: {
39
+ id: string;
40
+ name: string;
41
+ price: number;
42
+ quantity: number;
43
+ half_option: HALF_OPTION;
44
+ }[];
45
+ }[];
46
+ export declare const checkRespectTo: (option: IOption, options: IOption[]) => boolean;
47
+ export interface IProductSaved {
48
+ product: {
49
+ id: string;
50
+ name: string;
51
+ quantity: number;
52
+ ingredients: string[];
53
+ options: {
54
+ id: string;
55
+ name: string;
56
+ suboptions: {
57
+ id: string;
58
+ name: string;
59
+ price: number;
60
+ quantity: number;
61
+ half_option: HALF_OPTION;
62
+ }[];
63
+ }[];
64
+ price: number;
65
+ full_price: number;
66
+ name_on_box: string;
67
+ comment: string;
68
+ };
69
+ full_price: number;
70
+ }
71
+ export declare const mergeProduct: (product: IProductSaved, allOptionsTemplate: IOption[], ingredients: Ingredient[]) => {
72
+ comments: string;
73
+ nameOnBox: string;
74
+ finalPrice: number;
75
+ quantity: number;
76
+ ingredients: any[];
77
+ options: any[];
78
+ optionsHalf: any[];
79
+ isHalf: boolean;
80
+ };
81
+ export declare const mergeOption: (option: IOption, productToCart: IProductSaved) => IOption;
82
+ export declare const getSuboptionPrice: (freeBudget: number, suboption: ISuboption) => {
83
+ free: boolean;
84
+ amount: number | null;
85
+ };
86
+ export declare const getMinMaxQuantity: (min: number, max: number, freeBudget: number, freeLabel: string) => string;
@@ -1,3 +1,3 @@
1
- import { CURRENCY } from '../enums/enums';
2
- export declare const getKeyByValue: (object: any, value: string | number) => any;
3
- export declare const getCurrencyIcon: (currency: CURRENCY, amount?: number) => string;
1
+ import { CURRENCY } from '../enums/enums';
2
+ export declare const getKeyByValue: (object: any, value: string | number) => any;
3
+ export declare const getCurrencyIcon: (currency: CURRENCY, amount?: number) => string;
@@ -1,5 +1,5 @@
1
- import './core/styles/global.scss';
2
- export * from './components';
3
- export * from './helpers';
4
- export * from './enums/enums';
5
- export { TranslationUIProvider } from './helpers/context';
1
+ import './core/styles/global.scss';
2
+ export * from './components';
3
+ export * from './helpers';
4
+ export * from './enums/enums';
5
+ export { TranslationUIProvider } from './helpers/context';