@licklist/design 0.71.18-dev.1 → 0.71.18-dev.11

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 (135) hide show
  1. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -0
  2. package/dist/events/event-statistic-modal/utils/index.js +3 -3
  3. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +18 -0
  4. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +1 -0
  5. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +295 -0
  6. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +15 -0
  7. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +1 -0
  8. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +89 -0
  9. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +14 -0
  10. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -0
  11. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +404 -0
  12. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +10 -0
  13. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +1 -0
  14. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +87 -0
  15. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +2 -0
  16. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +1 -0
  17. package/dist/iframe/ProductWithModifierModal/index.d.ts +2 -0
  18. package/dist/iframe/ProductWithModifierModal/index.d.ts.map +1 -0
  19. package/dist/iframe/ProductWithModifierModal/utils.d.ts +5 -0
  20. package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +1 -0
  21. package/dist/iframe/ProductWithModifierModal/utils.js +21 -0
  22. package/dist/iframe/activity-card/ActivityCard.d.ts +1 -2
  23. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
  24. package/dist/iframe/activity-card/ActivityCard.js +1 -7
  25. package/dist/iframe/event/ticket-description/TicketDescription.d.ts +2 -1
  26. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  27. package/dist/iframe/event/ticket-description/TicketDescription.js +4 -3
  28. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  29. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  30. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +2 -1
  31. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  32. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +15 -2
  33. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +1 -0
  34. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  35. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +4 -0
  36. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  37. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +29 -2
  38. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  39. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +106 -2
  40. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +3 -1
  41. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  42. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +95 -1
  43. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +23 -0
  44. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +1 -0
  45. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +62 -0
  46. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +2 -0
  47. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +1 -0
  48. package/dist/iframe/order-process/components/CategoryProduct/constants.js +4 -0
  49. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +6 -0
  50. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +1 -0
  51. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +18 -0
  52. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  53. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +83 -10
  54. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  55. package/dist/iframe/payment/order-items-table/utils/index.js +15 -0
  56. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
  57. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  58. package/dist/iframe/payment/payment-page/PaymentPage.js +4 -1
  59. package/dist/index.js +1 -1
  60. package/dist/product-set/form/ProductSetForm.d.ts +3 -1
  61. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  62. package/dist/product-set/form/ProductSetForm.js +6 -4
  63. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  64. package/dist/product-set/form/ProductsControl.js +24 -5
  65. package/dist/product-set/form/context.d.ts +3 -1
  66. package/dist/product-set/form/context.d.ts.map +1 -1
  67. package/dist/product-set/form/context.js +2 -1
  68. package/dist/product-set/product/ProductControl.d.ts +8 -0
  69. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  70. package/dist/product-set/product/ProductControl.js +25 -1
  71. package/dist/product-set/utils/index.d.ts +88 -0
  72. package/dist/product-set/utils/index.d.ts.map +1 -1
  73. package/dist/product-set/utils/index.js +19 -1
  74. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts +1 -1
  75. package/dist/report/ReportRunnerModal/ReportRunnerModal.d.ts.map +1 -1
  76. package/dist/sales/coupon/utils/index.d.ts +2 -1
  77. package/dist/sales/coupon/utils/index.d.ts.map +1 -1
  78. package/dist/sales/modals/refund-modal/RefundModal.d.ts +6 -2
  79. package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
  80. package/dist/sales/modals/refund-modal/RefundModal.js +8 -4
  81. package/dist/sales/modals/refund-modal/index.d.ts +2 -2
  82. package/dist/sales/modals/refund-modal/index.d.ts.map +1 -1
  83. package/dist/styles/date-time-button/DateTimeButton.scss +8 -1
  84. package/dist/styles/events/EditEventModal.scss +2 -0
  85. package/dist/styles/iframe-page/Page.scss +16 -0
  86. package/dist/styles/iframe-page/PageBody.scss +4 -0
  87. package/dist/styles/modals/Modals.scss +16 -0
  88. package/dist/styles/product-set/EditProductSetElement.scss +1 -0
  89. package/dist/styles/product-set/ProductSetForm.scss +11 -0
  90. package/dist/styles/sales/ManualBooking.scss +6 -0
  91. package/dist/styles/themes/bookedit/index.scss +19 -0
  92. package/package.json +6 -6
  93. package/src/events/event-statistic-modal/utils/index.ts +4 -4
  94. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +212 -0
  95. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +75 -0
  96. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +393 -0
  97. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +98 -0
  98. package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +1 -0
  99. package/src/iframe/ProductWithModifierModal/index.ts +1 -0
  100. package/src/iframe/ProductWithModifierModal/utils.ts +29 -0
  101. package/src/iframe/activity-card/ActivityCard.stories.tsx +0 -2
  102. package/src/iframe/activity-card/ActivityCard.tsx +0 -4
  103. package/src/iframe/event/ticket-description/TicketDescription.tsx +5 -3
  104. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
  105. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +21 -1
  106. package/src/iframe/order-process/components/BookingSummary/types/index.ts +1 -0
  107. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +42 -1
  108. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +155 -75
  109. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +58 -1
  110. package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +86 -0
  111. package/src/iframe/order-process/components/CategoryProduct/constants.ts +1 -0
  112. package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +25 -0
  113. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +84 -14
  114. package/src/iframe/payment/order-items-table/utils/index.ts +23 -0
  115. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
  116. package/src/iframe/payment/payment-page/PaymentPage.tsx +8 -10
  117. package/src/product-set/form/ProductSetForm.tsx +11 -3
  118. package/src/product-set/form/ProductsControl.tsx +33 -15
  119. package/src/product-set/form/context.tsx +5 -0
  120. package/src/product-set/product/ProductControl.tsx +37 -1
  121. package/src/product-set/utils/index.ts +19 -0
  122. package/src/report/ReportRunnerModal/ReportRunnerModal.tsx +2 -2
  123. package/src/sales/coupon/utils/index.ts +5 -3
  124. package/src/sales/modals/refund-modal/RefundModal.tsx +15 -6
  125. package/src/sales/modals/refund-modal/index.ts +7 -2
  126. package/src/styles/date-time-button/DateTimeButton.scss +8 -1
  127. package/src/styles/events/EditEventModal.scss +2 -0
  128. package/src/styles/iframe-page/Page.scss +16 -0
  129. package/src/styles/iframe-page/PageBody.scss +4 -0
  130. package/src/styles/modals/Modals.scss +16 -0
  131. package/src/styles/product-set/EditProductSetElement.scss +1 -0
  132. package/src/styles/product-set/ProductSetForm.scss +11 -0
  133. package/src/styles/sales/ManualBooking.scss +6 -0
  134. package/src/styles/themes/bookedit/index.scss +19 -0
  135. package/yarn.lock +334 -333
@@ -20,6 +20,94 @@ export declare const sortArrayByIndex: <T>(array: T[]) => (T & {
20
20
  sort: number;
21
21
  })[];
22
22
  export declare const getFilteredTemplates: (templates?: EmailTemplate[] | SmsTemplate[], formTemplates?: TemplateItem[]) => TemplateItem[] | undefined;
23
+ export declare const updateModifiersSetAtProductSetForm: (data: ProductSetFormValues) => {
24
+ steps: {
25
+ productCategories: {
26
+ products: {
27
+ modifiersSet: {
28
+ id: number;
29
+ value: string;
30
+ label: string;
31
+ }[];
32
+ id: number;
33
+ name: string;
34
+ productGroupId: number;
35
+ description: string;
36
+ termsAndConditions: string;
37
+ price: number;
38
+ deposit: number;
39
+ minQuantity: number;
40
+ maxQuantity: number;
41
+ totalQuantity: number;
42
+ isAvailable: boolean;
43
+ isSoldOut: boolean;
44
+ originalProductId: number | null;
45
+ isUnlimited: boolean;
46
+ isRequired: boolean;
47
+ quantitySelector: number;
48
+ hasSpecialNotes: boolean;
49
+ minSpend?: number | null;
50
+ type?: import("@licklist/core/dist/DataMapper/Product/ProductDataMapper").ProductType;
51
+ modifiersSetsId?: Array<import("..").ModifiersSet>;
52
+ weight?: number;
53
+ tierId?: number;
54
+ images: import("@licklist/core/dist/DataMapper/Media/ImageDataMapper").Image[] | null;
55
+ uuid: string;
56
+ sort: number | null;
57
+ color?: string;
58
+ productZones?: import("../product-zone").ProductZoneControlValues[];
59
+ subProducts?: import("../types").SubProduct[];
60
+ _id?: number;
61
+ }[];
62
+ id: number;
63
+ uniqueId?: string;
64
+ name: string;
65
+ minSubItems: number | null;
66
+ maxSubItems: number | null;
67
+ overallQuantity?: number | null;
68
+ quantityType: import("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper").QuantityType;
69
+ type: import("@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper").CategoryType;
70
+ isTimeRelated: boolean;
71
+ collectUserInfo: boolean;
72
+ hasTicket: boolean;
73
+ allowDeposits: boolean;
74
+ remainderExpireAfter?: number;
75
+ hasBookingManagement: boolean;
76
+ hasSubEvents?: boolean;
77
+ weight?: number;
78
+ isReusable?: boolean;
79
+ saleDeadlineCategory?: number;
80
+ termsAndConditions?: string;
81
+ sort: number | null;
82
+ _id?: number;
83
+ }[];
84
+ id: number;
85
+ name: string;
86
+ weight?: number;
87
+ termsAndConditions?: string;
88
+ hasMap: boolean;
89
+ venueMapSetId: null | number;
90
+ pointProducts?: Partial<import("@licklist/core/dist/DataMapper/Product/PointProductDataMapper").PointProduct>[];
91
+ _id?: number;
92
+ }[];
93
+ isOverrides?: boolean;
94
+ id?: number;
95
+ name: string;
96
+ description?: string;
97
+ image?: import("@licklist/core/dist/DataMapper/Media/ImageDataMapper").Image;
98
+ type: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").ProductSetType;
99
+ termsAndConditions: string;
100
+ thankYouPageUrl: string;
101
+ operationalCost: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").OperationalCostType;
102
+ productGroups?: import("../../types/generic/SelectItem").SelectItem[];
103
+ relyOnPeopleType?: import("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper").RelyOnPeopleType | null;
104
+ fieldSetId?: number;
105
+ saleDeadline?: number;
106
+ emailTemplates?: TemplateItem[];
107
+ smsTemplates?: TemplateItem[];
108
+ localImageBlobURL?: string;
109
+ menuRecurrences?: Partial<import("@licklist/core/dist/DataMapper/Product/ProductSetRecurrenceDataMapper").ProductSetRecurrence>[];
110
+ };
23
111
  export declare const checkAvailableTimesErrors: ({ values, setError, t, }: CheckAvailableTimesErrors) => boolean;
24
112
  export declare const getTypeHeadItemsFromMenus: (menus?: (ProductSet | ProductSetFormValues)[]) => MenuTypeheadItem[];
25
113
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAC/F,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,QAAQ,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAA;IAC/C,CAAC,EAAE,SAAS,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AACD,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAC1B,CAAC,EAAE,aACC,MAAM,aACN,MAAM,QAQlB,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,CAAC,EAAE;;IACmB,CAAA;AAEjE,eAAO,MAAM,oBAAoB,eACnB,aAAa,EAAE,GAAG,WAAW,EAAE,kBAC3B,YAAY,EAAE,KAC7B,YAAY,EAAE,GAAG,SAmBnB,CAAA;AAED,eAAO,MAAM,yBAAyB,6BAInC,yBAAyB,YA0B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,CAAC,UAAU,GAAG,oBAAoB,CAAC,EAAE,KAC5C,gBAAgB,EACwD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAG/F,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,QAAQ,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAA;IAC/C,CAAC,EAAE,SAAS,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AACD,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAC1B,CAAC,EAAE,aACC,MAAM,aACN,MAAM,QAQlB,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,CAAC,EAAE;;IACmB,CAAA;AAEjE,eAAO,MAAM,oBAAoB,eACnB,aAAa,EAAE,GAAG,WAAW,EAAE,kBAC3B,YAAY,EAAE,KAC7B,YAAY,EAAE,GAAG,SAmBnB,CAAA;AAED,eAAQ,MAAM,kCAAkC,SAAU,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc5E,CAAC;AAEH,eAAO,MAAM,yBAAyB,6BAInC,yBAAyB,YA0B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,CAAC,UAAU,GAAG,oBAAoB,CAAC,EAAE,KAC5C,gBAAgB,EACwD,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { convertToTypeaheadOptions } from '../../sales/coupon/utils/index.js';
1
2
  import { checkIfZoneCategory } from '@licklist/plugins';
2
3
 
3
4
  function _array_like_to_array(arr, len) {
@@ -109,6 +110,23 @@ var getFilteredTemplates = function(templates, formTemplates) {
109
110
  };
110
111
  });
111
112
  };
113
+ var updateModifiersSetAtProductSetForm = function(data) {
114
+ return _object_spread_props(_object_spread({}, data), {
115
+ steps: data.steps.map(function(step) {
116
+ return _object_spread_props(_object_spread({}, step), {
117
+ productCategories: step.productCategories.map(function(category) {
118
+ return _object_spread_props(_object_spread({}, category), {
119
+ products: category.products.map(function(product) {
120
+ return _object_spread_props(_object_spread({}, product), {
121
+ modifiersSet: (product === null || product === void 0 ? void 0 : product.modifiersSet) ? convertToTypeaheadOptions(product.modifiersSet) : []
122
+ });
123
+ })
124
+ });
125
+ })
126
+ });
127
+ })
128
+ });
129
+ };
112
130
  var checkAvailableTimesErrors = function(param) {
113
131
  var values = param.values, setError = param.setError, t = param.t;
114
132
  var _values_steps, _values_menuRecurrences;
@@ -146,4 +164,4 @@ var getTypeHeadItemsFromMenus = function(menus) {
146
164
  });
147
165
  };
148
166
 
149
- export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex };
167
+ export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex, updateModifiersSetAtProductSetForm };
@@ -17,6 +17,6 @@ export type ReportRunnerModalProps = {
17
17
  reports?: Report[] | null;
18
18
  providerId?: number;
19
19
  };
20
- export declare const ReportRunnerModal: ({ reportId, show, onHide, useShowReportFields, reports, generate, download, onEdit, providerId }: ReportRunnerModalProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const ReportRunnerModal: ({ reportId, show, onHide, useShowReportFields, reports, generate, download, onEdit, providerId, }: ReportRunnerModalProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export {};
22
22
  //# sourceMappingURL=ReportRunnerModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReportRunnerModal.d.ts","sourceRoot":"","sources":["../../../src/report/ReportRunnerModal/ReportRunnerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,MAAM,EAEN,UAAU,EACX,MAAM,uCAAuC,CAAA;AAM9C,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAA;AAG7F,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB,EAAE,CACnB,UAAU,CAAC,EAAE,UAAU,KACpB,uBAAuB,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AASD,eAAO,MAAM,iBAAiB,qGAU3B,sBAAsB,4CA8KxB,CAAA"}
1
+ {"version":3,"file":"ReportRunnerModal.d.ts","sourceRoot":"","sources":["../../../src/report/ReportRunnerModal/ReportRunnerModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,MAAM,EAEN,UAAU,EACX,MAAM,uCAAuC,CAAA;AAM9C,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAA;AAG7F,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC7B,IAAI,EAAE,OAAO,CAAA;IACb,mBAAmB,EAAE,CACnB,UAAU,CAAC,EAAE,UAAU,KACpB,uBAAuB,CAAC,WAAW,EAAE,EAAE,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AASD,eAAO,MAAM,iBAAiB,sGAU3B,sBAAsB,4CA8KxB,CAAA"}
@@ -1,5 +1,6 @@
1
+ import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
1
2
  import { ProductGroup } from '@licklist/core/dist/DataMapper/Product/ProductGroupDataMapper';
2
- export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[]) => {
3
+ export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[] | ModifierSet[]) => {
3
4
  id: number;
4
5
  value: string;
5
6
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAE5F,eAAO,MAAM,yBAAyB,mBAAoB,YAAY,EAAE;;;;GAUvE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAE5F,eAAO,MAAM,yBAAyB,mBAAoB,YAAY,EAAE,GAAG,WAAW,EAAE;;;;GAUvF,CAAA"}
@@ -1,7 +1,11 @@
1
1
  import { OrderPaymentType } from '@licklist/core/dist/DataMapper/Order/OrderPaymentDataMapper';
2
+ export declare const FULL_REFUND_TYPE = "fullRefund";
3
+ export declare const PARTIAL_REFUND_TYPE = "partialRefund";
4
+ export declare const NET_REFUND_TYPE = "netRefund";
5
+ export type RefundType = typeof FULL_REFUND_TYPE | typeof PARTIAL_REFUND_TYPE | typeof NET_REFUND_TYPE;
2
6
  export interface RefundModalProps {
3
7
  isVisible: boolean;
4
- isFullRefund?: boolean;
8
+ refundType?: RefundType;
5
9
  onHide: () => void;
6
10
  onSubmit: (amount?: number) => void;
7
11
  isLoading?: boolean;
@@ -9,5 +13,5 @@ export interface RefundModalProps {
9
13
  defaultValue?: number;
10
14
  maxValue?: number;
11
15
  }
12
- export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading, isFullRefund, paymentType, defaultValue, maxValue, }: RefundModalProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const RefundModal: ({ isVisible, onHide, onSubmit, isLoading, refundType, paymentType, defaultValue, maxValue, }: RefundModalProps) => import("react/jsx-runtime").JSX.Element;
13
17
  //# sourceMappingURL=RefundModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RefundModal.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/RefundModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAA;AAK9F,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,gBAAgB,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAMD,eAAO,MAAM,WAAW,mGASrB,gBAAgB,4CAoGlB,CAAA"}
1
+ {"version":3,"file":"RefundModal.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/RefundModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAA;AAK9F,eAAO,MAAM,gBAAgB,eAAe,CAAA;AAC5C,eAAO,MAAM,mBAAmB,kBAAkB,CAAA;AAClD,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,MAAM,MAAM,UAAU,GAClB,OAAO,gBAAgB,GACvB,OAAO,mBAAmB,GAC1B,OAAO,eAAe,CAAA;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,gBAAgB,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAMD,eAAO,MAAM,WAAW,iGASrB,gBAAgB,4CAoGlB,CAAA"}
@@ -61,13 +61,17 @@ function _object_spread_props(target, source) {
61
61
  }
62
62
  return target;
63
63
  }
64
+ var FULL_REFUND_TYPE = 'fullRefund';
65
+ var PARTIAL_REFUND_TYPE = 'partialRefund';
66
+ var NET_REFUND_TYPE = 'netRefund';
64
67
  var RefundModal = function(param) {
65
- var isVisible = param.isVisible, onHide = param.onHide, onSubmit = param.onSubmit, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFullRefund = param.isFullRefund, isFullRefund = _param_isFullRefund === void 0 ? false : _param_isFullRefund, paymentType = param.paymentType, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? 0 : _param_defaultValue, maxValue = param.maxValue;
68
+ var isVisible = param.isVisible, onHide = param.onHide, onSubmit = param.onSubmit, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_refundType = param.refundType, refundType = _param_refundType === void 0 ? PARTIAL_REFUND_TYPE : _param_refundType, paymentType = param.paymentType, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? 0 : _param_defaultValue, maxValue = param.maxValue;
66
69
  var _errors_amount;
67
70
  var t = useTranslation([
68
71
  'Design',
69
72
  'Validation'
70
73
  ]).t;
74
+ var isInputDisabled = isLoading || refundType === 'fullRefund' || refundType === 'netRefund';
71
75
  var _useForm = useForm(), handleSubmit = _useForm.handleSubmit, register = _useForm.register, errors = _useForm.formState.errors, reset = _useForm.reset;
72
76
  var onModalSubmit = function(param) {
73
77
  var amount = param.amount;
@@ -97,7 +101,7 @@ var RefundModal = function(param) {
97
101
  children: [
98
102
  /*#__PURE__*/ jsx(ModalTitle, {
99
103
  as: "h5",
100
- children: t(isFullRefund ? 'Design:fullRefund' : 'Design:partialRefund')
104
+ children: t("Design:".concat(refundType))
101
105
  }),
102
106
  /*#__PURE__*/ jsx(Button, {
103
107
  variant: "danger",
@@ -150,7 +154,7 @@ var RefundModal = function(param) {
150
154
  }
151
155
  })), {
152
156
  step: 0.01,
153
- disabled: isLoading || isFullRefund,
157
+ disabled: isInputDisabled,
154
158
  isInvalid: !!errors.amount,
155
159
  min: 0
156
160
  })),
@@ -186,4 +190,4 @@ var RefundModal = function(param) {
186
190
  });
187
191
  };
188
192
 
189
- export { RefundModal };
193
+ export { FULL_REFUND_TYPE, NET_REFUND_TYPE, PARTIAL_REFUND_TYPE, RefundModal };
@@ -1,3 +1,3 @@
1
- export { RefundModal } from './RefundModal';
2
- export type { RefundModalProps } from './RefundModal';
1
+ export { RefundModal, FULL_REFUND_TYPE, NET_REFUND_TYPE, PARTIAL_REFUND_TYPE, } from './RefundModal';
2
+ export type { RefundModalProps, RefundType } from './RefundModal';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sales/modals/refund-modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,eAAe,CAAA;AACtB,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA"}
@@ -33,7 +33,7 @@
33
33
 
34
34
  &.disabled {
35
35
  border: 2px solid $snippet-calendar-disabled-button-border-color;
36
- background-color:transparent;
36
+ background-color: transparent;
37
37
  border: none;
38
38
  color: $snippet-calendar-disabled-button-font-color;
39
39
  cursor: not-allowed;
@@ -105,3 +105,10 @@
105
105
  font-weight: 300;
106
106
  color: $snippet-calendar-button-font-color;
107
107
  }
108
+
109
+ .modifier-price {
110
+ font-size: 1rem;
111
+ line-height: 1.03rem;
112
+ font-weight: 500;
113
+ color: $snippet-calendar-button-font-color;
114
+ }
@@ -37,6 +37,8 @@
37
37
  .edit-step-dialog {
38
38
  .custom-checkbox {
39
39
  align-items: unset;
40
+ position: relative;
41
+ z-index: 0;
40
42
  .form-check-label {
41
43
  margin-top: 1rem;
42
44
  }
@@ -24,6 +24,22 @@
24
24
  min-width: auto;
25
25
  }
26
26
 
27
+ .manual-booking-form-modal {
28
+ width: 40vw !important;
29
+ left: 60vh;
30
+
31
+ .modal-content {
32
+ height: 96vh;
33
+ margin-left: auto;
34
+ }
35
+
36
+ @include media-breakpoint-down(sm) {
37
+ width: 100vw !important;
38
+ left: 0;
39
+ top: 10% !important;
40
+ }
41
+ }
42
+
27
43
  .header-block {
28
44
  margin-bottom: 1rem;
29
45
  }
@@ -10,6 +10,8 @@
10
10
  height: calc(100svh - 5.5rem);
11
11
  }
12
12
 
13
+
14
+
13
15
  .left-block {
14
16
  flex: 1;
15
17
  align-items: stretch;
@@ -25,6 +27,8 @@
25
27
  min-height: calc(100svh - 6.5rem);
26
28
  }
27
29
 
30
+
31
+
28
32
  .navigation {
29
33
  font-size: 1.125rem;
30
34
  font-weight: 500;
@@ -6,6 +6,22 @@
6
6
  z-index: 1080;
7
7
  }
8
8
 
9
+ .manual-booking-form-modal {
10
+ width: 40vw !important;
11
+ left: 66vw;
12
+
13
+ .modal-content {
14
+ min-height: 95vh;
15
+ margin-left: auto;
16
+ }
17
+
18
+ @include media-breakpoint-down(sm) {
19
+ width: 100vw !important;
20
+ left: 0;
21
+ top: 10% !important;
22
+ }
23
+ }
24
+
9
25
  .confirm-modal {
10
26
  z-index: 1081;
11
27
  }
@@ -90,6 +90,7 @@
90
90
  }
91
91
  label.btn-link {
92
92
  width: 4.5rem;
93
+ z-index: 0;
93
94
  display: flex;
94
95
  justify-content: center;
95
96
  span {
@@ -58,6 +58,11 @@
58
58
  font-weight: 600;
59
59
  }
60
60
 
61
+ .modifier-badge {
62
+ font-size: 0.5rem;
63
+ font-weight: 400;
64
+ }
65
+
61
66
  .step-badge {
62
67
  background-color: #ffdbdb;
63
68
  color: #d52902;
@@ -81,6 +86,12 @@
81
86
  background-color: #e9f5ea;
82
87
  color: #269b36;
83
88
  }
89
+
90
+ .modifier-badge {
91
+ background-color: #e9f5ea;
92
+ color: #269b36;
93
+ height: 1rem;
94
+ }
84
95
  }
85
96
 
86
97
  .product-set-mobile-footer {
@@ -234,6 +234,12 @@
234
234
  margin-bottom: 2rem;
235
235
  }
236
236
 
237
+ .quantity-container-product {
238
+ display: flex;
239
+ justify-content: center;
240
+ margin: 1rem;
241
+ }
242
+
237
243
  .save-btn:disabled {
238
244
  background-color: #fafafa;
239
245
  border: none;
@@ -51,6 +51,25 @@
51
51
  border-bottom: 1px solid #f0f0f0;
52
52
  }
53
53
 
54
+ .modifier-header {
55
+ background-color: color('white');
56
+ padding: 0 2.5rem;
57
+ z-index: 2;
58
+ margin-top: 1rem;
59
+ min-height: 2rem;
60
+ }
61
+
62
+ .modifier-container {
63
+ background-color: color('white');
64
+ padding-bottom: 1rem;
65
+ }
66
+
67
+ .modifier-set-container {
68
+ background-color: color('white');
69
+ border-bottom: 2px solid #f0f0f0;
70
+ padding-bottom: 1rem;
71
+ }
72
+
54
73
  .header-user-image {
55
74
  width: 3rem;
56
75
  height: 3rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.71.18-dev.1",
3
+ "version": "0.71.18-dev.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -42,9 +42,9 @@
42
42
  ]
43
43
  },
44
44
  "peerDependencies": {
45
- "@licklist/core": "0.31.2-dev.5",
45
+ "@licklist/core": "0.31.2-dev.12",
46
46
  "@licklist/eslint-config": "0.5.6",
47
- "@licklist/plugins": "0.35.1-dev.5",
47
+ "@licklist/plugins": "0.35.1-dev.8",
48
48
  "lodash": "4.17.21",
49
49
  "luxon": "3.5.0",
50
50
  "react": "17.0.2",
@@ -61,9 +61,9 @@
61
61
  "@dnd-kit/utilities": "2.0.0",
62
62
  "@fortawesome/fontawesome-svg-core": "1.2.34",
63
63
  "@fortawesome/free-solid-svg-icons": "5.15.2",
64
- "@licklist/core": "0.31.2-dev.5",
64
+ "@licklist/core": "0.31.2-dev.12",
65
65
  "@licklist/eslint-config": "0.5.6",
66
- "@licklist/plugins": "0.35.1-dev.5",
66
+ "@licklist/plugins": "0.35.1-dev.8",
67
67
  "@mantine/core": "6.0.22",
68
68
  "@mantine/hooks": "6.0.22",
69
69
  "@mdx-js/react": "1.6.22",
@@ -208,4 +208,4 @@
208
208
  "yarn": "4.4.0"
209
209
  },
210
210
  "stableVersion": "0.71.4-dev.1"
211
- }
211
+ }
@@ -33,15 +33,15 @@ export const convertEventStatisticToTableData = (
33
33
  return []
34
34
  }
35
35
 
36
- const summaryFormattedDate = DateTime.fromISO(date)
37
- .toUTC()
38
- .toFormat(DATE_FORMAT)
36
+ const summaryFormattedDate = DateTime.fromISO(date).toFormat(
37
+ DATE_TIME_FULL_FORMAT,
38
+ )
39
39
 
40
40
  const summaryDays =
41
41
  Object.keys(eventStatistic?.productCategorySummary)?.filter(
42
42
  (date) =>
43
43
  DateTime.fromFormat(date, DATE_TIME_FULL_FORMAT).toFormat(
44
- DATE_FORMAT,
44
+ DATE_TIME_FULL_FORMAT,
45
45
  ) === summaryFormattedDate,
46
46
  ) ?? []
47
47