@licklist/design 0.71.4 → 0.71.5-dev.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 (149) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +2 -1
  3. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +7 -1
  4. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
  5. package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +10 -7
  6. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +3 -1
  7. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
  8. package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
  9. package/dist/events/event-statistic-modal/utils/index.js +7 -1
  10. package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
  11. package/dist/events/event-venue-map/EventVenueMap.js +1 -0
  12. package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
  13. package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
  14. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  15. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
  16. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  17. package/dist/iframe/ryft/RyftPaymentForm.js +1 -1
  18. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  19. package/dist/iframe/ryft/utils/ryft-form.js +4 -5
  20. package/dist/layout/DropDown.d.ts +2 -1
  21. package/dist/layout/DropDown.d.ts.map +1 -1
  22. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  23. package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
  24. package/dist/product-set/control/ProductSetControl.d.ts +2 -0
  25. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  26. package/dist/product-set/control/ProductSetControl.js +5 -0
  27. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  28. package/dist/product-set/form/ProductCategoriesControl.js +49 -2
  29. package/dist/product-set/form/ProductSetForm.d.ts +6 -2
  30. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  31. package/dist/product-set/form/ProductSetForm.js +3 -2
  32. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  33. package/dist/product-set/form/ProductZonesControl.js +0 -2
  34. package/dist/product-set/form/ProductsControl.js +2 -0
  35. package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
  36. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  37. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  38. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  39. package/dist/product-set/form/SubProductsControl.js +0 -3
  40. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  41. package/dist/product-set/form/VenueMapsControl.js +0 -3
  42. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  43. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  44. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
  45. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  46. package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
  47. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  48. package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
  49. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  50. package/dist/product-set/product/price/ProductPriceControl.js +3 -0
  51. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  52. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
  53. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  54. package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
  55. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  56. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
  57. package/dist/product-set/product-category/ProductCategoryControl.d.ts +1 -0
  58. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  59. package/dist/product-set/product-category/ProductCategoryControl.js +19 -1
  60. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  61. package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
  62. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  63. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  64. package/dist/resource/form/components/CapacityControl.js +3 -0
  65. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  66. package/dist/resource/form/components/SortControl.js +3 -0
  67. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  68. package/dist/sales/booking/results/components/ResultCard.js +0 -2
  69. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  70. package/dist/sales/coupon/control/CouponFormControl.js +21 -0
  71. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  72. package/dist/setting/admin/PaymentFeeForm.js +16 -1
  73. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  74. package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
  75. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  76. package/dist/snippet/snippet-template/preview/Preview.js +6 -0
  77. package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
  78. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  79. package/dist/sortable-tree/SortableTreeItem.js +10 -4
  80. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  81. package/dist/static/CurrencyNumberInput.js +3 -0
  82. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  83. package/dist/static/form-number-input/FormNumberInput.js +3 -0
  84. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  85. package/dist/static/number-input/NumberInput.js +3 -0
  86. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +1 -1
  87. package/dist/styles/iframe-events/Calendar.scss +1 -1
  88. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  89. package/dist/styles/product-set/ProductSetForm.scss +22 -0
  90. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
  91. package/dist/styles/sales/BookingResults.scss +1 -1
  92. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  93. package/dist/zone/form/components/GameDurationControl.js +3 -0
  94. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  95. package/dist/zone/form/components/SortControl.js +3 -0
  96. package/package.json +8 -6
  97. package/src/affiliate/form/AffiliateForm.tsx +1 -0
  98. package/src/auth/Login/LoginComponent.tsx +1 -1
  99. package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +42 -16
  100. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
  101. package/src/events/event-statistic-modal/utils/index.ts +11 -1
  102. package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
  103. package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
  104. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
  105. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
  106. package/src/iframe/ryft/RyftPaymentForm.tsx +1 -1
  107. package/src/iframe/ryft/utils/ryft-form.ts +6 -5
  108. package/src/layout/DropDown.tsx +1 -1
  109. package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
  110. package/src/product-set/control/ProductSetControl.tsx +5 -0
  111. package/src/product-set/form/ProductCategoriesControl.tsx +38 -1
  112. package/src/product-set/form/ProductSetForm.tsx +8 -2
  113. package/src/product-set/form/ProductZonesControl.tsx +1 -4
  114. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  115. package/src/product-set/form/SubProductsControl.tsx +0 -3
  116. package/src/product-set/form/VenueMapsControl.tsx +0 -3
  117. package/src/product-set/product/ProductControl.tsx +0 -1
  118. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  119. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
  120. package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
  121. package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
  122. package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
  123. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
  124. package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
  125. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
  126. package/src/product-set/product-category/ProductCategoryControl.tsx +17 -0
  127. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  128. package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
  129. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
  130. package/src/resource/form/components/CapacityControl.tsx +1 -0
  131. package/src/resource/form/components/SortControl.tsx +1 -0
  132. package/src/sales/booking/results/components/ResultCard.tsx +0 -2
  133. package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
  134. package/src/setting/admin/PaymentFeeForm.tsx +5 -0
  135. package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
  136. package/src/snippet/snippet-template/preview/Preview.tsx +6 -0
  137. package/src/sortable-tree/SortableTreeItem.tsx +6 -0
  138. package/src/static/CurrencyNumberInput.tsx +1 -0
  139. package/src/static/form-number-input/FormNumberInput.tsx +1 -0
  140. package/src/static/number-input/NumberInput.tsx +1 -0
  141. package/src/styles/availability-indicator/AvailabilityIndicator.scss +1 -1
  142. package/src/styles/iframe-events/Calendar.scss +1 -1
  143. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  144. package/src/styles/product-set/ProductSetForm.scss +22 -0
  145. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
  146. package/src/styles/sales/BookingResults.scss +1 -1
  147. package/src/zone/form/components/GameDurationControl.tsx +1 -0
  148. package/src/zone/form/components/SortControl.tsx +1 -0
  149. package/yarn.lock +149 -113
@@ -14,6 +14,7 @@ export interface SortableTreeItemProps {
14
14
  body: ReactNode;
15
15
  children?: ReactNode;
16
16
  preItem?: ReactNode;
17
+ itemButton?: ReactNode;
17
18
  postItem?: ReactNode;
18
19
  sortableItems?: string[];
19
20
  isExpanded?: boolean;
@@ -36,5 +37,5 @@ export interface SortableTreeItemProps {
36
37
  setIsExpanded?: () => void;
37
38
  isOverride?: boolean;
38
39
  }
39
- export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, itemButton, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
40
41
  //# sourceMappingURL=SortableTreeItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AAiBnE,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAA;AAEV,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEtE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,CAAC,EAAE,0BAA0B,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAkB,EAClB,YAAmB,EACnB,SAAiB,EACjB,cAAqB,EACrB,iBAAsB,EACtB,UAAe,EACf,UAAU,EACV,UAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,cAAc,EACd,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,GACX,EAAE,qBAAqB,2CA2TvB"}
1
+ {"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AAiBnE,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAA;AAEV,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEtE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,CAAC,EAAE,0BAA0B,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAkB,EAClB,YAAmB,EACnB,SAAiB,EACjB,cAAqB,EACrB,iBAAsB,EACtB,UAAe,EACf,UAAU,EACV,UAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,cAAc,EACd,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,UAAU,GACX,EAAE,qBAAqB,2CA+TvB"}
@@ -240,7 +240,7 @@ var ProductSetModalClasses = {
240
240
  productZones: 'edit-product-zone'
241
241
  };
242
242
  function SortableTreeItem(param) {
243
- var id = param.id, title = param.title, badge = param.badge, subTitle = param.subTitle, body = param.body, children = param.children, preItem = param.preItem, postItem = param.postItem, sortableItems = param.sortableItems, _param_isExpanded = param.isExpanded, isExpanded = _param_isExpanded === void 0 ? false : _param_isExpanded, _param_shouldExpand = param.shouldExpand, shouldExpand = _param_shouldExpand === void 0 ? true : _param_shouldExpand, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isIconInHeader = param.isIconInHeader, isIconInHeader = _param_isIconInHeader === void 0 ? true : _param_isIconInHeader, _param_treeLineIconColor = param.treeLineIconColor, treeLineIconColor = _param_treeLineIconColor === void 0 ? '' : _param_treeLineIconColor, _param_modalLabel = param.modalLabel, modalLabel = _param_modalLabel === void 0 ? '' : _param_modalLabel, modalClass = param.modalClass, _param_isNewAdded = param.isNewAdded, isNewAdded = _param_isNewAdded === void 0 ? false : _param_isNewAdded, onDelete = param.onDelete, validate = param.validate, cancelChanges = param.cancelChanges, saveValidField = param.saveValidField, edit = param.edit, secondaryBadge = param.secondaryBadge, setIsExpanded = param.setIsExpanded, isOverride = param.isOverride;
243
+ var id = param.id, title = param.title, badge = param.badge, subTitle = param.subTitle, body = param.body, children = param.children, preItem = param.preItem, postItem = param.postItem, sortableItems = param.sortableItems, _param_isExpanded = param.isExpanded, isExpanded = _param_isExpanded === void 0 ? false : _param_isExpanded, _param_shouldExpand = param.shouldExpand, shouldExpand = _param_shouldExpand === void 0 ? true : _param_shouldExpand, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isIconInHeader = param.isIconInHeader, isIconInHeader = _param_isIconInHeader === void 0 ? true : _param_isIconInHeader, _param_treeLineIconColor = param.treeLineIconColor, treeLineIconColor = _param_treeLineIconColor === void 0 ? '' : _param_treeLineIconColor, _param_modalLabel = param.modalLabel, modalLabel = _param_modalLabel === void 0 ? '' : _param_modalLabel, modalClass = param.modalClass, _param_isNewAdded = param.isNewAdded, isNewAdded = _param_isNewAdded === void 0 ? false : _param_isNewAdded, onDelete = param.onDelete, validate = param.validate, cancelChanges = param.cancelChanges, saveValidField = param.saveValidField, edit = param.edit, secondaryBadge = param.secondaryBadge, setIsExpanded = param.setIsExpanded, isOverride = param.isOverride, itemButton = param.itemButton;
244
244
  var _useState = _sliced_to_array(useState(isExpanded), 2), expanded = _useState[0], setExpanded = _useState[1];
245
245
  var _useState1 = _sliced_to_array(useState(isNewAdded), 2), isModalVisible = _useState1[0], setIsModalVisible = _useState1[1];
246
246
  var t = useTranslation('Design').t;
@@ -433,9 +433,15 @@ function SortableTreeItem(param) {
433
433
  /*#__PURE__*/ jsxs("div", {
434
434
  className: clsx(modalLabel ? 'sortable-tree-product-set-title-container' : 'sortable-tree-title-container'),
435
435
  children: [
436
- /*#__PURE__*/ jsx("span", {
437
- className: clsx('sortable-tree-item-title', modalLabel && 'sortable-tree-product-set-element-title'),
438
- children: title
436
+ /*#__PURE__*/ jsxs("span", {
437
+ className: clsx('sortable-tree-item-title', modalLabel && 'sortable-tree-product-set-element-title', 'd-flex justify-content-between'),
438
+ children: [
439
+ title,
440
+ /*#__PURE__*/ jsx("div", {
441
+ className: "sortable-tree-item-subtitle",
442
+ children: itemButton
443
+ })
444
+ ]
439
445
  }),
440
446
  !expanded && /*#__PURE__*/ jsx("span", {
441
447
  className: "sortable-tree-item-subtitle",
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyNumberInput.d.ts","sourceRoot":"","sources":["../../src/static/CurrencyNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAQ,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,uHAoC/B,CAAA"}
1
+ {"version":3,"file":"CurrencyNumberInput.d.ts","sourceRoot":"","sources":["../../src/static/CurrencyNumberInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAQ,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,uHAqC/B,CAAA"}
@@ -88,6 +88,9 @@ var CurrencyNumberInput = /*#__PURE__*/ forwardRef(function(_param, ref) {
88
88
  disabled: disabled,
89
89
  value: value,
90
90
  onChange: onChange,
91
+ onWheel: function(event) {
92
+ return event.currentTarget.blur();
93
+ },
91
94
  ref: ref
92
95
  }, props)),
93
96
  /*#__PURE__*/ jsx(Form.Control.Feedback, {
@@ -1 +1 @@
1
- {"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAiEtB,CAAA"}
1
+ {"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAkEtB,CAAA"}
@@ -106,6 +106,9 @@ var FormNumberInput = function(param) {
106
106
  type: "number",
107
107
  step: step,
108
108
  disabled: disabled,
109
+ onWheel: function(event) {
110
+ return event.currentTarget.blur();
111
+ },
109
112
  isInvalid: HookFormService.isInvalid(fieldName, errors)
110
113
  }, field), {
111
114
  onChange: function(event) {
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAmDlB"}
1
+ {"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAoDlB"}
@@ -27,6 +27,9 @@ function NumberInput(param) {
27
27
  children: [
28
28
  /*#__PURE__*/ jsx(FormControl, {
29
29
  type: "number",
30
+ onWheel: function(event) {
31
+ return event.currentTarget.blur();
32
+ },
30
33
  onChange: function(e) {
31
34
  return onChange(Number(e.target.value));
32
35
  },
@@ -4,7 +4,7 @@
4
4
  align-items: center;
5
5
  gap: 0.5rem;
6
6
  font-weight: 300;
7
- max-width: 100%;
7
+ width: 100%;
8
8
 
9
9
 
10
10
  .indicator-label {
@@ -74,7 +74,7 @@
74
74
  .calendar-dates-wrapper {
75
75
  .calendar-dates {
76
76
  display: grid;
77
- grid-template-columns: repeat(7, 1fr);
77
+ grid-template-columns: repeat(7, auto);
78
78
  grid-gap: 0.5rem 1rem;
79
79
  overflow-x: auto;
80
80
  }
@@ -15,7 +15,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
15
15
  left: 0;
16
16
  width: 100%;
17
17
  height: 100%;
18
- z-index: 1000000;
18
+ z-index: 2147483646;
19
19
  background-color: rgba(0, 0, 0, 0.5);
20
20
  display: none;
21
21
  }
@@ -24,7 +24,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
24
24
  position: fixed;
25
25
  top: 0;
26
26
  left: 0;
27
- z-index: 1000001;
27
+ z-index: 2147483647;
28
28
  display: none;
29
29
  width: 100%;
30
30
  height: 100%;
@@ -15,10 +15,12 @@
15
15
  height: 2.5rem;
16
16
  border-width: 2px;
17
17
  padding: 2px;
18
+
18
19
  label,
19
20
  .btn-switch-indicator {
20
21
  border-radius: 0.375rem !important;
21
22
  }
23
+
22
24
  label {
23
25
  height: 2rem;
24
26
  }
@@ -34,6 +36,7 @@
34
36
  margin-top: 1.5rem;
35
37
  margin-bottom: 1.5rem;
36
38
  }
39
+
37
40
  @include media-breakpoint-down(sm) {
38
41
  padding: 1.5rem 1rem;
39
42
  margin-top: 0.5rem;
@@ -59,10 +62,21 @@
59
62
  background-color: #ffdbdb;
60
63
  color: #d52902;
61
64
  }
65
+
62
66
  .category-badge {
63
67
  background-color: #e8f4f6;
64
68
  color: #1a93aa;
65
69
  }
70
+
71
+ .item-icon {
72
+ display: flex;
73
+ justify-items: center;
74
+ align-items: center;
75
+ font-size: 0.65rem;
76
+ padding: 0.2rem;
77
+ margin-right: 1rem;
78
+ }
79
+
66
80
  .product-badge {
67
81
  background-color: #e9f5ea;
68
82
  color: #269b36;
@@ -75,10 +89,12 @@
75
89
 
76
90
  .product-set-mobile-modal {
77
91
  margin: 0;
92
+
78
93
  .modal-content {
79
94
  border-radius: 1rem 1rem 0 0;
80
95
  border-width: 0;
81
96
  margin: 0;
97
+
82
98
  .modal-body {
83
99
  padding: 1rem 0;
84
100
  }
@@ -100,18 +116,22 @@
100
116
  font-weight: 600;
101
117
  font-size: 0.625rem;
102
118
  }
119
+
103
120
  .product-set-subtitle-dot {
104
121
  margin-right: 0.375rem;
105
122
  width: 0.375rem;
106
123
  height: 0.375rem;
107
124
  border-radius: 3px;
108
125
  }
126
+
109
127
  .product-set-subtitle-category-dot {
110
128
  background-color: #269b36;
111
129
  }
130
+
112
131
  .product-set-subtitle-step-dot {
113
132
  background-color: #1a93aa;
114
133
  }
134
+
115
135
  .product-set-subtitle-product-dot {
116
136
  background-color: #269b36;
117
137
  }
@@ -156,6 +176,7 @@
156
176
  justify-self: flex-end;
157
177
  align-items: flex-end;
158
178
  }
179
+
159
180
  .small-badge {
160
181
  font-size: 0.5rem;
161
182
  height: 1rem;
@@ -163,6 +184,7 @@
163
184
  padding: 0 0.2rem;
164
185
  margin-bottom: 0.2rem;
165
186
  }
187
+
166
188
  .product-set-save-btn-wrapper {
167
189
  padding-left: 0 !important;
168
190
  display: flex;
@@ -102,7 +102,6 @@
102
102
  }
103
103
 
104
104
  .ryft-payment-form {
105
-
106
105
  .form-disable-box {
107
106
  display: none;
108
107
  position: absolute;
@@ -184,7 +183,6 @@
184
183
  }
185
184
 
186
185
  @include media-breakpoint-up(md) {
187
-
188
186
  .ryft-payment-form,
189
187
  .form-disable-box {
190
188
  height: 50%;
@@ -213,4 +211,4 @@
213
211
  .divider {
214
212
  display: none !important;
215
213
  }
216
- }
214
+ }
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14.25rem;
8
+ height: 14rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);
@@ -1 +1 @@
1
- {"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CA+B1B,CAAA"}
1
+ {"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CAgC1B,CAAA"}
@@ -77,6 +77,9 @@ var GameDurationControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
+ onWheel: function(event) {
81
+ return event.currentTarget.blur();
82
+ },
80
83
  placeholder: t('Design:duration'),
81
84
  isInvalid: Boolean(errors.defaultDuration),
82
85
  disabled: isLoading
@@ -1 +1 @@
1
- {"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAmC1D,CAAA"}
1
+ {"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAoC1D,CAAA"}
@@ -77,6 +77,9 @@ var SortControl = function(param) {
77
77
  required: false,
78
78
  min: 1
79
79
  })), {
80
+ onWheel: function(event) {
81
+ return event.currentTarget.blur();
82
+ },
80
83
  placeholder: t('Design:ordering'),
81
84
  isInvalid: Boolean(errors.sort),
82
85
  disabled: isLoading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.71.4",
3
+ "version": "0.71.5-dev.1",
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.32.1",
45
+ "@licklist/core": "0.31.1-dev.4",
46
46
  "@licklist/eslint-config": "0.5.6",
47
- "@licklist/plugins": "0.34.0",
47
+ "@licklist/plugins": "0.34.0-dev.4",
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.32.0",
64
+ "@licklist/core": "0.31.2-dev.1",
65
65
  "@licklist/eslint-config": "0.5.6",
66
- "@licklist/plugins": "0.35.0",
66
+ "@licklist/plugins": "0.34.0-dev.4",
67
67
  "@mantine/core": "6.0.22",
68
68
  "@mantine/hooks": "6.0.22",
69
69
  "@mdx-js/react": "1.6.22",
@@ -202,8 +202,10 @@
202
202
  "yarn tsc"
203
203
  ]
204
204
  },
205
+ "packageManager": "yarn@4.4.0",
205
206
  "volta": {
206
207
  "node": "20.9.0",
207
208
  "yarn": "4.4.0"
208
- }
209
+ },
210
+ "stableVersion": "0.71.4-dev.1"
209
211
  }
@@ -76,6 +76,7 @@ export const AffiliateForm = ({
76
76
  const copyToClipboard = () =>
77
77
  // eslint-disable-next-line consistent-return
78
78
  window.navigator.clipboard.writeText(formValues.link)
79
+
79
80
  return (
80
81
  <FormProvider {...form}>
81
82
  <Form onSubmit={form.handleSubmit(handleSubmit)}>
@@ -44,7 +44,7 @@ const LoginComponent = ({
44
44
  const handleError = (error: any) => {
45
45
  notification.danger({
46
46
  title: 'Error',
47
- message: error.message,
47
+ message: error?.response?.data?.message || error.message,
48
48
  })
49
49
  }
50
50
 
@@ -9,6 +9,9 @@ import { Switch, NumberInput } from '../../../../static'
9
9
  const SALE_DEADLINE_BEFORE_TYPE = 'before'
10
10
  const SALE_DEADLINE_AFTER_TYPE = 'after'
11
11
 
12
+ export const SALE_DEADLINE_NAME_CATEGORY = 'saleDeadlineCategory'
13
+ export const SALE_DEADLINE_NAME = 'saleDeadline'
14
+
12
15
  const SALE_DEADLINES_EVENT_START_TYPES = [
13
16
  { type: SALE_DEADLINE_BEFORE_TYPE },
14
17
  { type: SALE_DEADLINE_AFTER_TYPE },
@@ -18,11 +21,28 @@ type DeadlineType =
18
21
  | typeof SALE_DEADLINE_BEFORE_TYPE
19
22
  | typeof SALE_DEADLINE_AFTER_TYPE
20
23
 
24
+ export const DEADLINE_NAME = [
25
+ SALE_DEADLINE_NAME_CATEGORY,
26
+ SALE_DEADLINE_NAME,
27
+ ] as const
28
+
29
+ export type DeadLineNameType = (typeof DEADLINE_NAME)[number]
30
+
21
31
  type SaleDeadlineType = {
22
32
  saleDeadline: null | number
33
+ } | {
34
+ [key: string] : null | number
23
35
  }
24
36
 
25
- export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
37
+ export const SaleDeadline = ({
38
+ disabled = false,
39
+ onlyBefore = false,
40
+ deadLineCategory,
41
+ }: {
42
+ disabled?: boolean
43
+ onlyBefore?: boolean
44
+ deadLineCategory?: string
45
+ }) => {
26
46
  const { t } = useTranslation(['Design'])
27
47
  const {
28
48
  control,
@@ -32,9 +52,11 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
32
52
  const [deadlineType, setDeadlineType] = useState<DeadlineType>(
33
53
  SALE_DEADLINE_BEFORE_TYPE,
34
54
  )
35
- const saleDeadline = watch('saleDeadline')
55
+
56
+ const saleDeadline = watch(deadLineCategory || SALE_DEADLINE_NAME)
36
57
 
37
58
  useEffect(() => {
59
+ if (onlyBefore) return
38
60
  if (saleDeadline > 0) {
39
61
  setDeadlineType(SALE_DEADLINE_AFTER_TYPE)
40
62
  }
@@ -45,11 +67,11 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
45
67
  <Form.Group className='sales-deadline'>
46
68
  <Form.Label>{t('Design:salesDeadline')}</Form.Label>
47
69
  <Form.Control.Feedback type='invalid'>
48
- {errors.saleDeadline?.message}
70
+ {errors.root?.message}
49
71
  </Form.Control.Feedback>
50
72
  <Controller
51
73
  control={control}
52
- name='saleDeadline'
74
+ name={deadLineCategory || SALE_DEADLINE_NAME}
53
75
  render={({
54
76
  field: { value, onChange },
55
77
  fieldState: { invalid, error },
@@ -111,18 +133,22 @@ export const SaleDeadline = ({ disabled = false }: { disabled?: boolean }) => {
111
133
 
112
134
  return (
113
135
  <>
114
- <Form.Group className='d-flex flex-column flex-grow-1 align-items-start'>
115
- <Switch
116
- name='sale-deadline'
117
- options={SALE_DEADLINES_EVENT_START_TYPES.map(({ type }) => ({
118
- id: type,
119
- value: t(`Design:${type}`),
120
- }))}
121
- value={deadlineType}
122
- onChange={changeValueByType}
123
- disabled={disabled}
124
- />
125
- </Form.Group>
136
+ {!onlyBefore && (
137
+ <Form.Group className='d-flex flex-column flex-grow-1 align-items-start'>
138
+ <Switch
139
+ name='sale-deadline'
140
+ options={SALE_DEADLINES_EVENT_START_TYPES.map(
141
+ ({ type }) => ({
142
+ id: type,
143
+ value: t(`Design:${type}`),
144
+ }),
145
+ )}
146
+ value={deadlineType}
147
+ onChange={changeValueByType}
148
+ disabled={disabled}
149
+ />
150
+ </Form.Group>
151
+ )}
126
152
  <div className='d-flex'>
127
153
  <Form.Group className='d-flex flex-column col-4 pl-0'>
128
154
  <Form.Label>{t('Design:saleDays')}</Form.Label>
@@ -20,6 +20,7 @@ export const getDefaultValues = (
20
20
  relyOnPeopleType: productSet?.relyOnPeopleType ?? null,
21
21
  thankYouPageUrl: productSet?.thankYouPageUrl ?? '',
22
22
  fieldSetId: productSet?.fieldSetId,
23
+ saleDeadline: productSet?.saleDeadline,
23
24
  emailTemplates:
24
25
  productSet?.mailTemplates && productSet?.mailTemplates?.length > 0
25
26
  ? getFilteredTemplates(productSet?.mailTemplates)
@@ -39,7 +40,6 @@ export const getDefaultValues = (
39
40
  ...product,
40
41
  subProducts: subProducts?.map(({ ...subProducts }) => ({
41
42
  ...subProducts,
42
- originalProductId: null,
43
43
  productCategoryId: undefined,
44
44
  })),
45
45
  productCategoryId: undefined,
@@ -1,6 +1,7 @@
1
1
  import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper'
2
2
  import { DateTime } from 'luxon'
3
3
  import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config'
4
+ import { values } from 'lodash'
4
5
 
5
6
  export const TRANSLATION_KEYS = {
6
7
  shortQuantity: 'shortQuantity',
@@ -46,6 +47,15 @@ export const convertEventStatisticToTableData = (
46
47
 
47
48
  const summaryMap = new Map<string, TableDataRecord>()
48
49
 
50
+ const maxTotalQuantity = values(eventStatistic?.productCategorySummary)
51
+ .flat()
52
+ .flatMap((categorySummary) => categorySummary.productsSummary)
53
+ .reduce(
54
+ (acc, productSummary) =>
55
+ productSummary.totalQuantity > acc ? productSummary.totalQuantity : acc,
56
+ 0,
57
+ )
58
+
49
59
  summaryDays
50
60
  .map((day) => eventStatistic?.productCategorySummary[day])
51
61
  .flat()
@@ -92,7 +102,7 @@ export const convertEventStatisticToTableData = (
92
102
  quantity: totalQuantity
93
103
  ? `${
94
104
  existingProduct.metadata._productsSold + productsSold
95
- } / ${totalQuantity}`
105
+ } / ${maxTotalQuantity}`
96
106
  : String(existingProduct.metadata._productsSold + productsSold),
97
107
  total: String(existingProduct.metadata._total + total),
98
108
  metadata: {
@@ -49,6 +49,7 @@ export const EventVenueMap = forwardRef<VenueMapRef, EventVenueMapProps>(
49
49
  },
50
50
  ref,
51
51
  ) => {
52
+ // TODO fix often updating of canvasSizes, which leads to flashing poingts
52
53
  const canvasSizes = useCanvasSize({ width, height })
53
54
 
54
55
  return (
@@ -10,13 +10,17 @@ export const useCanvasSize = ({
10
10
  width: componentWidth,
11
11
  height: componentHeight,
12
12
  }: CanvasSizeProps) => {
13
+ // TODO Fix often updating of width and height
13
14
  const { width, height } = useWindowDimensions()
14
15
 
16
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17
+ const memoizedDimensions = useMemo(() => ({ width, height }), [width])
18
+
15
19
  const memoedComponentParameters = useMemo(() => {
16
20
  if (!componentWidth && !componentHeight) return null
17
21
 
18
22
  return { width: componentWidth, height: componentHeight }
19
23
  }, [componentWidth, componentHeight])
20
24
 
21
- return memoedComponentParameters || { width, height }
25
+ return memoedComponentParameters || memoizedDimensions
22
26
  }
@@ -89,6 +89,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
89
89
  <FormControl
90
90
  type='number'
91
91
  onChange={(e) => handleChangeValue(Number(e.target.value))}
92
+ onWheel={(event) => event.currentTarget.blur()}
92
93
  value={value}
93
94
  min={0}
94
95
  max={max}
@@ -101,6 +102,14 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
101
102
  <button
102
103
  type='button'
103
104
  onClick={handleArrowUpClick}
105
+ onWheel={(event) => event.currentTarget.blur()}
106
+ onFocus={(event) =>
107
+ event.target.addEventListener(
108
+ 'wheel',
109
+ (event) => event.preventDefault(),
110
+ { passive: false },
111
+ )
112
+ }
104
113
  className={`payment-number-input__btn-up ${
105
114
  plusButtonGreyedOut && 'disabled-number-input-button'
106
115
  }`}
@@ -61,6 +61,7 @@ const processedPaymentSummary = ({
61
61
  const total = calculateTotalPrice(order, externalPaymentDetail)
62
62
 
63
63
  const totalDiscount = calculateTotalDiscount(order.payments)
64
+
64
65
  let summaryItems: SummaryItem[] = [
65
66
  {
66
67
  translateKey: AMOUNT_TOTAL,
@@ -90,7 +90,7 @@ export const RyftPaymentForm = ({
90
90
 
91
91
  // Handle there cases when orderStatus - Captured, Approved,
92
92
  // or when no redirect URL and orderStatus - PendingAction
93
- window.location.href = `${paymentSession.returnUrl}&paymentSessionId=${paymentSession.id}`
93
+ window.location.href = `${paymentSession.returnUrl}&ps=${paymentSession.id}`
94
94
  setReferrerBeforePayment()
95
95
  }
96
96
 
@@ -61,20 +61,22 @@ export const injectComponentsInRyftForm = ({
61
61
  divider.id = 'mobile-pay-divider'
62
62
  container.id = 'mobile-pay-divider-container'
63
63
  container.append(dividerText, divider)
64
- const payIframe = document.getElementById("ryft-pay-iframe");
64
+ const payIframe = document.getElementById('ryft-pay-iframe')
65
65
  if (payIframe) {
66
66
  const formBox = document.getElementById('form-disable-box')
67
67
  if (formBox) {
68
- formBox.style.display = isDisableButton ? "block" : "none"
68
+ formBox.style.display = isDisableButton ? 'block' : 'none'
69
69
  }
70
70
 
71
71
  const googleButton = document.getElementById(
72
72
  'gpay-button-online-api-id',
73
73
  ) as HTMLButtonElement
74
- const appleButton =document.getElementById("ryft-pay-apple-pay-button") as HTMLButtonElement
74
+ const appleButton = document.getElementById(
75
+ 'ryft-pay-apple-pay-button',
76
+ ) as HTMLButtonElement
75
77
  if (googleButton) {
76
78
  googleButton.disabled = isDisableButton
77
- googleButton.style.opacity = isDisableButton ? '1' : '0.6'
79
+ googleButton.style.opacity = !isDisableButton ? '1' : '0.6'
78
80
  }
79
81
  if (appleButton) {
80
82
  appleButton.disabled = isDisableButton
@@ -86,7 +88,6 @@ export const injectComponentsInRyftForm = ({
86
88
  const applePayButton = document.createElement('button')
87
89
  applePayButton.id = 'apple-pay'
88
90
  applePayButton.type = 'button'
89
- applePayButton.style.opacity = !isDisableButton ? '1' : '0.6'
90
91
  applePayButton.className = 'bg-dark btn btn-primary apple-pay-button'
91
92
  applePayButton.textContent = t('Events:payWithApple')
92
93
  applePayButton.onclick = onApplePayButtonClick
@@ -1,4 +1,4 @@
1
- import { forwardRef } from 'react'
1
+ import React, { forwardRef } from 'react'
2
2
 
3
3
  interface Props {
4
4
  children?: React.ReactNode | React.ReactNode[]
@@ -434,6 +434,7 @@ export const EmailTemplateControl = forwardRef(
434
434
  `templateOptionValues.${option?.id}.value`,
435
435
  )}
436
436
  type='number'
437
+ onWheel={(event) => event.currentTarget.blur()}
437
438
  placeholder={t(`Design:${option.name}`)}
438
439
  id={option.name + option.id}
439
440
  defaultValue={option.selectedValue || ''}