@licklist/design 0.71.18-dev.18 → 0.71.18-dev.3

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/IntervalInput.d.ts +1 -3
  2. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  3. package/dist/events/edit-event-modal/IntervalInput.js +4 -11
  4. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -3
  5. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  6. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +3 -14
  7. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
  8. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +1 -5
  9. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
  10. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -5
  11. package/dist/events/event-statistic-modal/utils/index.js +3 -3
  12. package/dist/iframe/event/ticket-description/TicketDescription.d.ts +1 -3
  13. package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
  14. package/dist/iframe/event/ticket-description/TicketDescription.js +7 -10
  15. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  16. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  17. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -2
  18. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -5
  19. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  20. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -12
  21. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
  22. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  23. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +0 -4
  24. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  25. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -29
  26. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  27. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +2 -106
  28. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -3
  29. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  30. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -95
  31. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  32. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +10 -83
  33. package/dist/iframe/payment/order-items-table/utils/index.d.ts.map +1 -1
  34. package/dist/iframe/payment/order-items-table/utils/index.js +0 -15
  35. package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +2 -2
  36. package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
  37. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -4
  38. package/dist/index.js +1 -1
  39. package/dist/product-set/form/ProductSetForm.d.ts +1 -3
  40. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  41. package/dist/product-set/form/ProductSetForm.js +4 -6
  42. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  43. package/dist/product-set/form/ProductsControl.js +5 -24
  44. package/dist/product-set/form/context.d.ts +1 -3
  45. package/dist/product-set/form/context.d.ts.map +1 -1
  46. package/dist/product-set/form/context.js +1 -2
  47. package/dist/product-set/product/ProductControl.d.ts +0 -8
  48. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  49. package/dist/product-set/product/ProductControl.js +1 -25
  50. package/dist/product-set/utils/index.d.ts +0 -88
  51. package/dist/product-set/utils/index.d.ts.map +1 -1
  52. package/dist/product-set/utils/index.js +1 -19
  53. package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
  54. package/dist/sales/coupon/utils/index.d.ts +1 -2
  55. package/dist/sales/coupon/utils/index.d.ts.map +1 -1
  56. package/dist/styles/date-time-button/DateTimeButton.scss +0 -7
  57. package/dist/styles/events/EditEventModal.scss +0 -2
  58. package/dist/styles/iframe-page/Page.scss +0 -16
  59. package/dist/styles/iframe-page/PageBody.scss +0 -4
  60. package/dist/styles/modals/Modals.scss +0 -16
  61. package/dist/styles/product-set/EditProductSetElement.scss +0 -1
  62. package/dist/styles/product-set/ProductSetForm.scss +0 -11
  63. package/dist/styles/sales/ManualBooking.scss +0 -6
  64. package/dist/styles/themes/bookedit/index.scss +0 -19
  65. package/package.json +6 -6
  66. package/src/events/edit-event-modal/IntervalInput.tsx +3 -13
  67. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -16
  68. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -9
  69. package/src/events/event-statistic-modal/utils/index.ts +4 -4
  70. package/src/iframe/event/ticket-description/TicketDescription.tsx +4 -11
  71. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
  72. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -24
  73. package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
  74. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +1 -42
  75. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +75 -155
  76. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -58
  77. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +14 -84
  78. package/src/iframe/payment/order-items-table/utils/index.ts +0 -23
  79. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +2 -2
  80. package/src/iframe/payment/payment-page/PaymentPage.tsx +10 -8
  81. package/src/product-set/form/ProductSetForm.tsx +3 -11
  82. package/src/product-set/form/ProductsControl.tsx +15 -33
  83. package/src/product-set/form/context.tsx +0 -5
  84. package/src/product-set/product/ProductControl.tsx +1 -37
  85. package/src/product-set/utils/index.ts +0 -19
  86. package/src/recurrence-input/RecurrenceInput.tsx +5 -3
  87. package/src/sales/coupon/utils/index.ts +3 -5
  88. package/src/styles/date-time-button/DateTimeButton.scss +0 -7
  89. package/src/styles/events/EditEventModal.scss +0 -2
  90. package/src/styles/iframe-page/Page.scss +0 -16
  91. package/src/styles/iframe-page/PageBody.scss +0 -4
  92. package/src/styles/modals/Modals.scss +0 -16
  93. package/src/styles/product-set/EditProductSetElement.scss +0 -1
  94. package/src/styles/product-set/ProductSetForm.scss +0 -11
  95. package/src/styles/sales/ManualBooking.scss +0 -6
  96. package/src/styles/themes/bookedit/index.scss +0 -19
  97. package/yarn.lock +376 -377
  98. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +0 -18
  99. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +0 -1
  100. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +0 -295
  101. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts +0 -15
  102. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +0 -1
  103. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +0 -90
  104. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts +0 -14
  105. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +0 -1
  106. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +0 -404
  107. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts +0 -10
  108. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +0 -1
  109. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.js +0 -87
  110. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts +0 -2
  111. package/dist/iframe/ProductWithModifierModal/ModifierSetModal/index.d.ts.map +0 -1
  112. package/dist/iframe/ProductWithModifierModal/index.d.ts +0 -2
  113. package/dist/iframe/ProductWithModifierModal/index.d.ts.map +0 -1
  114. package/dist/iframe/ProductWithModifierModal/utils.d.ts +0 -5
  115. package/dist/iframe/ProductWithModifierModal/utils.d.ts.map +0 -1
  116. package/dist/iframe/ProductWithModifierModal/utils.js +0 -21
  117. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts +0 -23
  118. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.d.ts.map +0 -1
  119. package/dist/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.js +0 -62
  120. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts +0 -2
  121. package/dist/iframe/order-process/components/CategoryProduct/constants.d.ts.map +0 -1
  122. package/dist/iframe/order-process/components/CategoryProduct/constants.js +0 -4
  123. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts +0 -6
  124. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.d.ts.map +0 -1
  125. package/dist/iframe/order-process/components/utils/useOnWindowUnmount.js +0 -18
  126. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +0 -212
  127. package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +0 -76
  128. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +0 -393
  129. package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +0 -98
  130. package/src/iframe/ProductWithModifierModal/ModifierSetModal/index.ts +0 -1
  131. package/src/iframe/ProductWithModifierModal/index.ts +0 -1
  132. package/src/iframe/ProductWithModifierModal/utils.ts +0 -29
  133. package/src/iframe/order-process/components/CategoryProduct/components/ProductWithModifier/ProductWithModifier.tsx +0 -86
  134. package/src/iframe/order-process/components/CategoryProduct/constants.ts +0 -1
  135. package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +0 -25
@@ -112,8 +112,6 @@ var getDefaultProductValue = function(sort) {
112
112
  maxQuantity: null,
113
113
  totalQuantity: 0,
114
114
  isAvailable: true,
115
- modifiersSet: [],
116
- modifiersSetsId: [],
117
115
  isSoldOut: false,
118
116
  isRequired: false,
119
117
  isUnlimited: false,
@@ -168,12 +166,6 @@ function ProductsControl(param) {
168
166
  return "".concat(productControlFieldName, ".").concat(index, ".isUnlimited");
169
167
  }))
170
168
  });
171
- var modifierSets = useWatch({
172
- control: control,
173
- name: _to_consumable_array(fields.map(function(_, index) {
174
- return "".concat(productControlFieldName, ".").concat(index, ".modifiersSet");
175
- }))
176
- });
177
169
  var categoryProductErrors = errors === null || errors === void 0 ? void 0 : (_errors_steps = errors.steps) === null || _errors_steps === void 0 ? void 0 : (_errors_steps_stepIndex = _errors_steps[stepIndex]) === null || _errors_steps_stepIndex === void 0 ? void 0 : (_errors_steps_stepIndex_productCategories = _errors_steps_stepIndex.productCategories) === null || _errors_steps_stepIndex_productCategories === void 0 ? void 0 : (_errors_steps_stepIndex_productCategories_productCategoryIndex = _errors_steps_stepIndex_productCategories[productCategoryIndex]) === null || _errors_steps_stepIndex_productCategories_productCategoryIndex === void 0 ? void 0 : _errors_steps_stepIndex_productCategories_productCategoryIndex.products;
178
170
  var isFirstProductAdded = fields.length === 1;
179
171
  var mouseSensor = useSensor(MouseSensor, {
@@ -217,10 +209,8 @@ function ProductsControl(param) {
217
209
  mouseSensor
218
210
  ],
219
211
  children: fields.map(function(product, index) {
220
- var _modifierSets_index;
221
212
  var isOverridesProductSet = isEventEditProductSet ? !!product.id : isOverrides && !!product.originalProductId;
222
213
  var isNewProductOverrides = isCreateNewOverrides && !!product.id;
223
- var modifiersSets = ((_modifierSets_index = modifierSets[index]) === null || _modifierSets_index === void 0 ? void 0 : _modifierSets_index.length) || 0;
224
214
  return /*#__PURE__*/ jsx(Controller, {
225
215
  control: control,
226
216
  name: "".concat(productControlFieldName, ".").concat(index, ".name"),
@@ -250,22 +240,13 @@ function ProductsControl(param) {
250
240
  },
251
241
  secondaryBadge: getBadgeConfig(categoryType, t(categoryType)),
252
242
  subTitle: /*#__PURE__*/ jsxs("div", {
253
- className: "d-flex justify-content-between",
243
+ className: "product-set-badges-container",
254
244
  children: [
255
- /*#__PURE__*/ jsxs("div", {
256
- className: "product-set-badges-container",
257
- children: [
258
- /*#__PURE__*/ jsx("div", {
259
- className: "product-set-subtitle-dot product-set-subtitle-product-dot"
260
- }),
261
- /*#__PURE__*/ jsx("span", {
262
- children: "\xa3".concat(prices[index], " ").concat(t('each'), " - ").concat(t('qty'), ":").concat(!isUnlimitedQuantities[index] ? " ".concat(quantities[index]) : t(' unlimited'), " ").concat(!isUnlimitedQuantities[index] ? " - ".concat(t('possibleRevenue'), " \xa3").concat(prices[index] * quantities[index]) : '', " ")
263
- })
264
- ]
245
+ /*#__PURE__*/ jsx("div", {
246
+ className: "product-set-subtitle-dot product-set-subtitle-product-dot"
265
247
  }),
266
- !!modifiersSets && /*#__PURE__*/ jsx(Badge, {
267
- className: "modifier-badge",
268
- children: "".concat(modifiersSets, " ").concat(t('modifiersSets'))
248
+ /*#__PURE__*/ jsx("span", {
249
+ children: "\xa3".concat(prices[index], " ").concat(t('each'), " - ").concat(t('qty'), ":").concat(!isUnlimitedQuantities[index] ? " ".concat(quantities[index]) : t(' unlimited'), " ").concat(!isUnlimitedQuantities[index] ? " - ".concat(t('possibleRevenue'), " \xa3").concat(prices[index] * quantities[index]) : '', " ")
269
250
  })
270
251
  ]
271
252
  }),
@@ -1,6 +1,5 @@
1
1
  import { PropsWithChildren, SetStateAction, Dispatch } from 'react';
2
2
  import { VenueMapSet } from '@licklist/core/dist/DataMapper/Product/VenueMapSetDataMapper';
3
- import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
4
3
  import { ProviderBookingManagementSetting } from '@licklist/core/dist/DataMapper/Provider/ProviderBookingManagementSettingDataMapper';
5
4
  import { Zone } from '@licklist/core/dist/DataMapper/Provider/ZoneDataMapper';
6
5
  import { SelectItem } from '../../types/generic/SelectItem';
@@ -8,7 +7,6 @@ interface LoadingContext {
8
7
  isLoading: boolean;
9
8
  setLoading: (loading: boolean) => void;
10
9
  productGroupList?: SelectItem[];
11
- modifiersSetList?: ModifierSet[] | null;
12
10
  providerHasMap?: boolean | null;
13
11
  venueMapSets?: VenueMapSet[];
14
12
  providerHasBookingManagement?: ProviderBookingManagementSetting['hasBookingManagement'];
@@ -18,6 +16,6 @@ interface LoadingContext {
18
16
  }
19
17
  export declare const ProductSetLoadingContext: import("react").Context<LoadingContext>;
20
18
  type ProductSetContextProviderProps = PropsWithChildren<Omit<LoadingContext, 'isLoading' | 'setLoading' | 'expandedProductCategories' | 'setExpandedProductCategories'>>;
21
- export declare function ProductSetContextProvider({ children, productGroupList, modifiersSetList, providerHasMap, venueMapSets, providerHasBookingManagement, zones, }: ProductSetContextProviderProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function ProductSetContextProvider({ children, productGroupList, providerHasMap, venueMapSets, providerHasBookingManagement, zones, }: ProductSetContextProviderProps): import("react/jsx-runtime").JSX.Element;
22
20
  export {};
23
21
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EAId,QAAQ,EACT,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAE1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,oFAAoF,CA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AAgC,EAAE,MAAM,oFAAoF,CAAA;AACrI,OAAO,EAAE,IAAI,EAAE,MAAM,wDAAwD,CAAA;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAE3D,UAAU,cAAc;IACtB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC/B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,4BAA4B,CAAC,EAAE,gCAAgC,CAAC,sBAAsB,CAAC,CAAA;IACvF,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAA;IACrB,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClD,4BAA4B,EAAE,QAAQ,CACpC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CACxC,CAAA;CACF;AAED,eAAO,MAAM,wBAAwB,yCAEpC,CAAA;AAED,KAAK,8BAA8B,GAAG,iBAAiB,CACrD,IAAI,CACF,cAAc,EACZ,WAAW,GACX,YAAY,GACZ,2BAA2B,GAC3B,8BAA8B,CACjC,CACF,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,gBAAqB,EACrB,cAAsB,EACtB,YAAiB,EACjB,4BAA4B,EAC5B,KAAK,GACN,EAAE,8BAA8B,2CA0BhC"}
@@ -49,7 +49,7 @@ function _unsupported_iterable_to_array(o, minLen) {
49
49
  }
50
50
  var ProductSetLoadingContext = /*#__PURE__*/ createContext(null);
51
51
  function ProductSetContextProvider(param) {
52
- var children = param.children, _param_productGroupList = param.productGroupList, productGroupList = _param_productGroupList === void 0 ? [] : _param_productGroupList, _param_modifiersSetList = param.modifiersSetList, modifiersSetList = _param_modifiersSetList === void 0 ? [] : _param_modifiersSetList, _param_providerHasMap = param.providerHasMap, providerHasMap = _param_providerHasMap === void 0 ? false : _param_providerHasMap, _param_venueMapSets = param.venueMapSets, venueMapSets = _param_venueMapSets === void 0 ? [] : _param_venueMapSets, providerHasBookingManagement = param.providerHasBookingManagement, zones = param.zones;
52
+ var children = param.children, _param_productGroupList = param.productGroupList, productGroupList = _param_productGroupList === void 0 ? [] : _param_productGroupList, _param_providerHasMap = param.providerHasMap, providerHasMap = _param_providerHasMap === void 0 ? false : _param_providerHasMap, _param_venueMapSets = param.venueMapSets, venueMapSets = _param_venueMapSets === void 0 ? [] : _param_venueMapSets, providerHasBookingManagement = param.providerHasBookingManagement, zones = param.zones;
53
53
  var _useState = _sliced_to_array(useState(undefined), 2), zonesState = _useState[0], setZonesState = _useState[1];
54
54
  var _useState1 = _sliced_to_array(useState(false), 2), loading = _useState1[0], setLoading = _useState1[1];
55
55
  var _useState2 = _sliced_to_array(useState({}), 2), expandedProductCategories = _useState2[0], setExpandedProductCategories = _useState2[1];
@@ -63,7 +63,6 @@ function ProductSetContextProvider(param) {
63
63
  isLoading: loading,
64
64
  setLoading: setLoading,
65
65
  productGroupList: productGroupList,
66
- modifiersSetList: modifiersSetList,
67
66
  providerHasMap: providerHasMap,
68
67
  venueMapSets: venueMapSets,
69
68
  providerHasBookingManagement: providerHasBookingManagement,
@@ -7,12 +7,6 @@ import { ProductBookingManagementControlProps } from './booking-management/Produ
7
7
  import { ProductDepositControlValues } from './deposit/ProductDepositControl';
8
8
  import { IsDeletableEvent } from '../types';
9
9
  import { ProductZoneControlValues } from '../product-zone';
10
- export interface ModifiersSet {
11
- id: number;
12
- value?: string;
13
- name?: string;
14
- label?: string;
15
- }
16
10
  export interface ProductControlValues extends FormValues, ProductDepositControlValues {
17
11
  name: string;
18
12
  productGroupId: number;
@@ -32,8 +26,6 @@ export interface ProductControlValues extends FormValues, ProductDepositControlV
32
26
  hasSpecialNotes: boolean;
33
27
  minSpend?: number | null;
34
28
  type?: ProductType;
35
- modifiersSetsId?: Array<ModifiersSet>;
36
- modifiersSet?: Array<ModifiersSet>;
37
29
  weight?: number;
38
30
  tierId?: number;
39
31
  images: Image[] | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAed,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAS7D,OAAO,EAEL,oCAAoC,EACrC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAOxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAK1D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,2BAA2B;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,OAA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ACjB,eAAe,EACf,aAAqB,EACrB,oBAA4B,EAC5B,QAAa,EACb,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CA+XxB"}
1
+ {"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAed,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAO7D,OAAO,EAEL,oCAAoC,EACrC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAOxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAM1D,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,2BAA2B;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CA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import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages';
14
14
  import { IMAGE_TYPE_IMAGE } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
15
15
  import { FaClipboard } from 'react-icons/fa';
16
- import { Typeahead } from '../../typeahead/Typeahead.js';
17
- import { convertToTypeaheadOptions } from '../../sales/coupon/utils/index.js';
18
16
  import { checkIfZoneCategory } from '@licklist/plugins';
19
17
  import { FileUpload } from '../../file-upload/FileUpload.js';
20
18
  import '../../static/index.js';
@@ -132,7 +130,7 @@ function _unsupported_iterable_to_array(o, minLen) {
132
130
  function ProductControl(param) {
133
131
  var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, fieldNamePrefix = param.fieldNamePrefix, _param_allowDeposits = param.allowDeposits, allowDeposits = _param_allowDeposits === void 0 ? false : _param_allowDeposits, _param_hasBookingManagement = param.hasBookingManagement, hasBookingManagement = _param_hasBookingManagement === void 0 ? false : _param_hasBookingManagement, _param_zoneList = param.zoneList, zoneList = _param_zoneList === void 0 ? [] : _param_zoneList, onCopy = param.onCopy, onProductNameChange = param.onProductNameChange, productName = param.productName, hasTicket = param.hasTicket, categoryType = param.categoryType, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides;
134
132
  var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, getValues = _useFormContext.getValues, watch = _useFormContext.watch;
135
- var _useContext = useContext(ProductSetLoadingContext), setLoading = _useContext.setLoading, modifiersSetList = _useContext.modifiersSetList;
133
+ var setLoading = useContext(ProductSetLoadingContext).setLoading;
136
134
  var t = useTranslation([
137
135
  'Design',
138
136
  'Validation',
@@ -208,7 +206,6 @@ function ProductControl(param) {
208
206
  ]);
209
207
  var quantitySelector = quantityValue !== null && quantityValue !== void 0 ? quantityValue : '1';
210
208
  var quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector];
211
- var modifierList = convertToTypeaheadOptions(modifiersSetList);
212
209
  return /*#__PURE__*/ jsxs(Fragment, {
213
210
  children: [
214
211
  /*#__PURE__*/ jsx(Row, {
@@ -352,27 +349,6 @@ function ProductControl(param) {
352
349
  ]
353
350
  })
354
351
  }),
355
- /*#__PURE__*/ jsx(Row, {
356
- children: /*#__PURE__*/ jsx(Col, {
357
- children: /*#__PURE__*/ jsxs(Form.Group, {
358
- className: "mb-3",
359
- children: [
360
- /*#__PURE__*/ jsx(Form.Label, {
361
- children: t('Design:addModifierSet')
362
- }),
363
- /*#__PURE__*/ jsx(Typeahead, _object_spread_props(_object_spread({
364
- name: "modifierList",
365
- options: modifierList
366
- }, register("".concat(fieldNamePrefix, ".modifiersSet"))), {
367
- isMultipleChoise: true,
368
- isCouponForm: true,
369
- placeholder: t('Design:choose'),
370
- noOptionsMessage: t('Design:noSelectedModifier')
371
- }))
372
- ]
373
- })
374
- })
375
- }),
376
352
  /*#__PURE__*/ jsxs(Row, {
377
353
  className: "my-4 mx-0 d-flex flex-column",
378
354
  children: [
@@ -20,94 +20,6 @@ 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
- };
111
23
  export declare const checkAvailableTimesErrors: ({ values, setError, t, }: CheckAvailableTimesErrors) => boolean;
112
24
  export declare const getTypeHeadItemsFromMenus: (menus?: (ProductSet | ProductSetFormValues)[]) => MenuTypeheadItem[];
113
25
  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;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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AAC,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,4 +1,3 @@
1
- import { convertToTypeaheadOptions } from '../../sales/coupon/utils/index.js';
2
1
  import { checkIfZoneCategory } from '@licklist/plugins';
3
2
 
4
3
  function _array_like_to_array(arr, len) {
@@ -110,23 +109,6 @@ var getFilteredTemplates = function(templates, formTemplates) {
110
109
  };
111
110
  });
112
111
  };
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
- };
130
112
  var checkAvailableTimesErrors = function(param) {
131
113
  var values = param.values, setError = param.setError, t = param.t;
132
114
  var _values_steps, _values_menuRecurrences;
@@ -164,4 +146,4 @@ var getTypeHeadItemsFromMenus = function(menus) {
164
146
  });
165
147
  };
166
148
 
167
- export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex, updateModifiersSetAtProductSetForm };
149
+ export { checkAvailableTimesErrors, getFilteredTemplates, getTypeHeadItemsFromMenus, moveArrayElements, sortArrayByIndex };
@@ -1 +1 @@
1
- {"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,2CAmEtB"}
1
+ {"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,2CAqEtB"}
@@ -1,6 +1,5 @@
1
- import { ModifierSet } from '@licklist/core/dist/DataMapper/Product/ModifierSetDataMapper';
2
1
  import { ProductGroup } from '@licklist/core/dist/DataMapper/Product/ProductGroupDataMapper';
3
- export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[] | ModifierSet[]) => {
2
+ export declare const convertToTypeaheadOptions: (productGroups?: ProductGroup[]) => {
4
3
  id: number;
5
4
  value: string;
6
5
  label: string;
@@ -1 +1 @@
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
+ {"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"}
@@ -105,10 +105,3 @@
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,8 +37,6 @@
37
37
  .edit-step-dialog {
38
38
  .custom-checkbox {
39
39
  align-items: unset;
40
- position: relative;
41
- z-index: 0;
42
40
  .form-check-label {
43
41
  margin-top: 1rem;
44
42
  }
@@ -24,22 +24,6 @@
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
-
43
27
  .header-block {
44
28
  margin-bottom: 1rem;
45
29
  }
@@ -10,8 +10,6 @@
10
10
  height: calc(100svh - 5.5rem);
11
11
  }
12
12
 
13
-
14
-
15
13
  .left-block {
16
14
  flex: 1;
17
15
  align-items: stretch;
@@ -27,8 +25,6 @@
27
25
  min-height: calc(100svh - 6.5rem);
28
26
  }
29
27
 
30
-
31
-
32
28
  .navigation {
33
29
  font-size: 1.125rem;
34
30
  font-weight: 500;
@@ -6,22 +6,6 @@
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
-
25
9
  .confirm-modal {
26
10
  z-index: 1081;
27
11
  }
@@ -90,7 +90,6 @@
90
90
  }
91
91
  label.btn-link {
92
92
  width: 4.5rem;
93
- z-index: 0;
94
93
  display: flex;
95
94
  justify-content: center;
96
95
  span {
@@ -58,11 +58,6 @@
58
58
  font-weight: 600;
59
59
  }
60
60
 
61
- .modifier-badge {
62
- font-size: 0.5rem;
63
- font-weight: 400;
64
- }
65
-
66
61
  .step-badge {
67
62
  background-color: #ffdbdb;
68
63
  color: #d52902;
@@ -86,12 +81,6 @@
86
81
  background-color: #e9f5ea;
87
82
  color: #269b36;
88
83
  }
89
-
90
- .modifier-badge {
91
- background-color: #e9f5ea;
92
- color: #269b36;
93
- height: 1rem;
94
- }
95
84
  }
96
85
 
97
86
  .product-set-mobile-footer {
@@ -234,12 +234,6 @@
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
-
243
237
  .save-btn:disabled {
244
238
  background-color: #fafafa;
245
239
  border: none;
@@ -51,25 +51,6 @@
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
-
73
54
  .header-user-image {
74
55
  width: 3rem;
75
56
  height: 3rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.71.18-dev.18",
3
+ "version": "0.71.18-dev.3",
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.14",
45
+ "@licklist/core": "0.31.2-dev.5",
46
46
  "@licklist/eslint-config": "0.5.6",
47
- "@licklist/plugins": "0.35.1-dev.8",
47
+ "@licklist/plugins": "0.35.1-dev.5",
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.14",
64
+ "@licklist/core": "0.31.2-dev.5",
65
65
  "@licklist/eslint-config": "0.5.6",
66
- "@licklist/plugins": "0.35.1-dev.8",
66
+ "@licklist/plugins": "0.35.1-dev.5",
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
+ }
@@ -17,8 +17,6 @@ interface IntervalInputProps {
17
17
  productSets?: ProductSet[]
18
18
  productSetId?: number
19
19
  disabled?: boolean
20
- disabledRecurrent?: boolean
21
- isCopyCreate?: boolean
22
20
  }
23
21
 
24
22
  export interface IntervalInputValues {
@@ -32,8 +30,6 @@ export function IntervalInput({
32
30
  editedProductSet,
33
31
  productSetId,
34
32
  productSets,
35
- disabledRecurrent = false,
36
- isCopyCreate = false
37
33
  }: IntervalInputProps) {
38
34
  const { t } = useTranslation(['Design', 'Validation'])
39
35
  const {
@@ -58,6 +54,7 @@ export function IntervalInput({
58
54
  const endDateInput = useRef<HTMLInputDateElement | null>(null)
59
55
 
60
56
  const updateEndDate = ({ target: { value: nextStartDate } }) => {
57
+ setRecurrent(false)
61
58
  setValue('start', nextStartDate)
62
59
 
63
60
  if (
@@ -75,13 +72,6 @@ export function IntervalInput({
75
72
  // eslint-disable-next-line react-hooks/exhaustive-deps
76
73
  }, [editedProductSet])
77
74
 
78
- useEffect(() => {
79
- if (!isCopyCreate) return
80
- setRecurrent(false)
81
- setValue('rrule', null)
82
- // eslint-disable-next-line react-hooks/exhaustive-deps
83
- }, [isCopyCreate])
84
-
85
75
  useEffect(() => {
86
76
  if (!productSets) return
87
77
 
@@ -163,7 +153,7 @@ export function IntervalInput({
163
153
  onChange={({ target: { checked } }) => {
164
154
  onChangeRecurrent(checked)
165
155
  }}
166
- disabled={disabled || Boolean(editedProductSet) || disabledRecurrent}
156
+ disabled={disabled || Boolean(editedProductSet)}
167
157
  />
168
158
  {!recurrent && (
169
159
  <Form.Text muted>
@@ -188,7 +178,7 @@ export function IntervalInput({
188
178
  minDate={DateTime.fromISO(start)
189
179
  .plus({ day: 1 })
190
180
  .toFormat('yyyy-MM-dd')}
191
- disabled={disabled || disabledRecurrent}
181
+ disabled={disabled}
192
182
  />
193
183
  )}
194
184
  />