@licklist/design 0.78.5-dev.16 → 0.78.5-dev.2
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.
- package/dist/auth/Layout/UserNavDropDownToggle.js +0 -3
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +80 -81
- package/dist/modals/dialog/Dialog.d.ts.map +1 -1
- package/dist/modals/dialog/Dialog.js +41 -39
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts +0 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +4 -4
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +1 -2
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +1 -2
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +1 -1
- package/dist/setting/dashboard/payments/payments-modal/PaymentsModal.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +20 -14
- package/package.json +6 -6
- package/src/auth/Layout/UserNavDropDownToggle.tsx +1 -1
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +0 -1
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +0 -1
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +109 -103
- package/src/modals/dialog/Dialog.tsx +36 -35
- package/src/notification/email-template/card/EmailTemplateCard.tsx +2 -0
- package/src/notification/email-template/control/EmailTemplateControl.tsx +5 -7
- package/src/notification/email-template/form/EmailTemplateForm.tsx +0 -3
- package/src/recurrence-input/RecurrenceInput.tsx +3 -4
- package/src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx +0 -1
- package/src/snippet/snippet-template/preview/Preview.tsx +9 -6
- package/yarn.lock +479 -473
- package/dist/CustomDatePicker/CustomDatePicker.d.ts +0 -10
- package/dist/CustomDatePicker/CustomDatePicker.d.ts.map +0 -1
- package/src/CustomDatePicker/CustomDatePicker.tsx +0 -252
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,eAAO,MAAM,gCAAgC;;CAE5C,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,qHAWjC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,eAAO,MAAM,gCAAgC;;CAE5C,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,qHAWjC,4BAA4B,4CAoG9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,4CAiD1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAA;AAQ5D,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAED,eAAO,MAAM,YAAY,oEAKtB,oBAAoB;;;;;IA+KtB,CAAA"}
|
|
@@ -65,52 +65,55 @@ var useTableData = function(param) {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
var renderCategoryItem = function(products) {
|
|
68
|
-
var _products__productCategory
|
|
69
|
-
var _products__productCategory_name
|
|
68
|
+
var _products__productCategory;
|
|
69
|
+
var _products__productCategory_name;
|
|
70
70
|
return {
|
|
71
71
|
key: uniqueId('category-id-'),
|
|
72
|
-
name: wrapLabelContent((_products__productCategory_name = (
|
|
72
|
+
name: wrapLabelContent((_products__productCategory_name = (_products__productCategory = products[0].productCategory) === null || _products__productCategory === void 0 ? void 0 : _products__productCategory.name) !== null && _products__productCategory_name !== void 0 ? _products__productCategory_name : ''),
|
|
73
73
|
quantity: '',
|
|
74
|
-
price: wrapLabelContent("".concat(t('total'), ": ").concat(formatPrice(getTotalSumByCategory(
|
|
74
|
+
price: wrapLabelContent("".concat(t('total'), ": ").concat(formatPrice(getTotalSumByCategory(order.orderProducts, products))))
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
var reworkProductStructure = function(order) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
})) !== null && _map !== void 0 ? _map : []
|
|
105
|
-
};
|
|
106
|
-
});
|
|
78
|
+
return order ? flatMap(order, function(item) {
|
|
79
|
+
if (!item || !Array.isArray(item)) return [];
|
|
80
|
+
return item.map(function(modGroup, idx) {
|
|
81
|
+
var _order_deletedAt, _order_orderId, _order_price, _order_productId, _modGroup_productQuantity, _order_deposit;
|
|
82
|
+
return {
|
|
83
|
+
deletedAt: (_order_deletedAt = order.deletedAt) !== null && _order_deletedAt !== void 0 ? _order_deletedAt : null,
|
|
84
|
+
id: "".concat(order.id, "-").concat(idx + 1),
|
|
85
|
+
orderId: (_order_orderId = order.orderId) !== null && _order_orderId !== void 0 ? _order_orderId : null,
|
|
86
|
+
price: (_order_price = order.price) !== null && _order_price !== void 0 ? _order_price : 0,
|
|
87
|
+
productId: (_order_productId = order.productId) !== null && _order_productId !== void 0 ? _order_productId : '',
|
|
88
|
+
quantity: (_modGroup_productQuantity = modGroup.productQuantity) !== null && _modGroup_productQuantity !== void 0 ? _modGroup_productQuantity : 1,
|
|
89
|
+
deposit: (_order_deposit = order.deposit) !== null && _order_deposit !== void 0 ? _order_deposit : 0,
|
|
90
|
+
orderProductModifiers: modGroup.modifiers.map(function(mod) {
|
|
91
|
+
var _mod_modifierId, _mod_price, _mod_productId, _mod_quantity, _mod_modifierSetId, _mod_modifier;
|
|
92
|
+
return {
|
|
93
|
+
modifierId: (_mod_modifierId = mod.modifierId) !== null && _mod_modifierId !== void 0 ? _mod_modifierId : '',
|
|
94
|
+
price: (_mod_price = mod.price) !== null && _mod_price !== void 0 ? _mod_price : 0,
|
|
95
|
+
productId: (_mod_productId = mod.productId) !== null && _mod_productId !== void 0 ? _mod_productId : '',
|
|
96
|
+
quantity: (_mod_quantity = mod.quantity) !== null && _mod_quantity !== void 0 ? _mod_quantity : 1,
|
|
97
|
+
modifierSetId: (_mod_modifierSetId = mod.modifierSetId) !== null && _mod_modifierSetId !== void 0 ? _mod_modifierSetId : '',
|
|
98
|
+
modifier: (_mod_modifier = mod.modifier) !== null && _mod_modifier !== void 0 ? _mod_modifier : null
|
|
99
|
+
};
|
|
100
|
+
})
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
}) : [];
|
|
107
104
|
};
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
var
|
|
105
|
+
var renderProductItem = function(param) {
|
|
106
|
+
var product = param.product, productsForCategory = param.productsForCategory;
|
|
107
|
+
var _productsForCategory_find, _product_orderProductModifiers;
|
|
108
|
+
if (product.quantity === 0) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
var name = ((_productsForCategory_find = productsForCategory.find(function(item) {
|
|
112
|
+
return item.id === product.productId;
|
|
113
|
+
})) === null || _productsForCategory_find === void 0 ? void 0 : _productsForCategory_find.name) || '';
|
|
111
114
|
return {
|
|
112
|
-
key:
|
|
113
|
-
name:
|
|
115
|
+
key: product.id,
|
|
116
|
+
name: name,
|
|
114
117
|
quantity: /*#__PURE__*/ jsxs("div", {
|
|
115
118
|
className: "quantity",
|
|
116
119
|
children: [
|
|
@@ -118,23 +121,21 @@ var useTableData = function(param) {
|
|
|
118
121
|
className: "multiplier",
|
|
119
122
|
children: "x"
|
|
120
123
|
}),
|
|
121
|
-
quantity
|
|
124
|
+
product.quantity
|
|
122
125
|
]
|
|
123
126
|
}),
|
|
124
|
-
price: formatPrice(price
|
|
127
|
+
price: formatPrice(product.price),
|
|
128
|
+
modifier: (product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.map(renderModifierItem)) || []
|
|
125
129
|
};
|
|
126
130
|
};
|
|
127
|
-
var
|
|
128
|
-
var
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
return item.id === product.productId;
|
|
133
|
-
})) === null || _productsForCategory_find === void 0 ? void 0 : _productsForCategory_find.name) || '';
|
|
134
|
-
var _product_price, _product_orderProductModifiers_map;
|
|
131
|
+
var renderModifierItem = function(orderModifier) {
|
|
132
|
+
var quantity = orderModifier.quantity, modifier = orderModifier.modifier, modifierId = orderModifier.modifierId, price = orderModifier.price;
|
|
133
|
+
if (quantity === 0) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
135
136
|
return {
|
|
136
|
-
key:
|
|
137
|
-
name: name,
|
|
137
|
+
key: modifierId,
|
|
138
|
+
name: " - ".concat((modifier === null || modifier === void 0 ? void 0 : modifier.name) || ''),
|
|
138
139
|
quantity: /*#__PURE__*/ jsxs("div", {
|
|
139
140
|
className: "quantity",
|
|
140
141
|
children: [
|
|
@@ -142,51 +143,47 @@ var useTableData = function(param) {
|
|
|
142
143
|
className: "multiplier",
|
|
143
144
|
children: "x"
|
|
144
145
|
}),
|
|
145
|
-
|
|
146
|
+
quantity
|
|
146
147
|
]
|
|
147
148
|
}),
|
|
148
|
-
price: formatPrice(
|
|
149
|
-
modifier: ((_product_orderProductModifiers_map = product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.map(renderModifierItem)) !== null && _product_orderProductModifiers_map !== void 0 ? _product_orderProductModifiers_map : []).filter(Boolean)
|
|
149
|
+
price: formatPrice(price)
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
var renderProductsContent = function() {
|
|
153
153
|
var productCategories = _to_consumable_array(new Set(order.products.map(function(product) {
|
|
154
154
|
return product.productCategoryId;
|
|
155
155
|
})));
|
|
156
|
-
return productCategories.reduce(function(
|
|
157
|
-
var
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
var products = (_order_orderProducts_filter = order === null || order === void 0 ? void 0 : (_order_orderProducts = order.orderProducts) === null || _order_orderProducts === void 0 ? void 0 : _order_orderProducts.filter(function(el) {
|
|
164
|
-
return productsForCategory.map(function(p) {
|
|
165
|
-
return p.id;
|
|
156
|
+
return productCategories.reduce(function(previousValues, categoryId) {
|
|
157
|
+
var productsForCategory = order === null || order === void 0 ? void 0 : order.products.filter(function(product) {
|
|
158
|
+
return product.productCategoryId === categoryId;
|
|
159
|
+
});
|
|
160
|
+
var products = order.orderProducts.filter(function(el) {
|
|
161
|
+
return productsForCategory.map(function(product) {
|
|
162
|
+
return product.id;
|
|
166
163
|
}).includes(el.productId);
|
|
167
|
-
})
|
|
168
|
-
if (!products.length)
|
|
164
|
+
});
|
|
165
|
+
if (!products.length) {
|
|
166
|
+
return previousValues;
|
|
167
|
+
}
|
|
169
168
|
var productsWithReworkedModifier = products.map(function(product) {
|
|
170
|
-
|
|
171
|
-
if (!(product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.length)) return product;
|
|
169
|
+
if (!product.orderProductModifiers.length) return product;
|
|
172
170
|
return reworkProductStructure(product);
|
|
173
171
|
});
|
|
174
|
-
var filteredProducts = flatten(productsWithReworkedModifier).map(function(
|
|
172
|
+
var filteredProducts = flatten(productsWithReworkedModifier).map(function(product) {
|
|
175
173
|
return renderProductItem({
|
|
176
|
-
product:
|
|
174
|
+
product: product,
|
|
177
175
|
productsForCategory: productsForCategory
|
|
178
176
|
});
|
|
179
|
-
}).filter(function(row) {
|
|
180
|
-
return Boolean(row);
|
|
181
177
|
});
|
|
182
|
-
|
|
183
|
-
var productWithModifier = flatMap(filteredProducts, function(row) {
|
|
184
|
-
var _row_modifier;
|
|
178
|
+
var productWithModifier = flatMap(filteredProducts, function(item) {
|
|
185
179
|
return [
|
|
186
|
-
|
|
187
|
-
].concat(_to_consumable_array(
|
|
180
|
+
item
|
|
181
|
+
].concat(_to_consumable_array(item.modifier));
|
|
188
182
|
});
|
|
189
|
-
|
|
183
|
+
if (!filteredProducts.length) {
|
|
184
|
+
return previousValues;
|
|
185
|
+
}
|
|
186
|
+
return _to_consumable_array(previousValues).concat([
|
|
190
187
|
renderCategoryItem(productsForCategory)
|
|
191
188
|
], _to_consumable_array(productWithModifier));
|
|
192
189
|
}, []);
|
|
@@ -203,18 +200,20 @@ var useTableData = function(param) {
|
|
|
203
200
|
});
|
|
204
201
|
};
|
|
205
202
|
var data = useMemo(function() {
|
|
206
|
-
if (!order)
|
|
203
|
+
if (!order) {
|
|
204
|
+
return [];
|
|
205
|
+
}
|
|
207
206
|
return _to_consumable_array(renderProductsContent()).concat(_to_consumable_array(renderSummaryItems(getOrderSummaryItems({
|
|
208
207
|
order: order,
|
|
209
208
|
paymentDetail: paymentDetail,
|
|
210
209
|
isPaymentProcessed: isPaymentProcessed,
|
|
211
210
|
externalDiscount: externalDiscount
|
|
212
211
|
}))));
|
|
213
|
-
},
|
|
212
|
+
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
213
|
+
[
|
|
214
214
|
order,
|
|
215
215
|
externalDiscount,
|
|
216
|
-
isPaymentProcessed
|
|
217
|
-
paymentDetail
|
|
216
|
+
isPaymentProcessed
|
|
218
217
|
]);
|
|
219
218
|
return data;
|
|
220
219
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,eAAO,MAAM,MAAM,uEAOhB,YAAY,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,eAAO,MAAM,MAAM,uEAOhB,YAAY,4CAqDd,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Modal, Button } from 'react-bootstrap';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
|
|
@@ -15,45 +15,47 @@ var Dialog = function(param) {
|
|
|
15
15
|
onDecline();
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
19
|
+
children: /*#__PURE__*/ jsxs(Modal, {
|
|
20
|
+
show: isActive,
|
|
21
|
+
onHide: onDecline,
|
|
22
|
+
animation: false,
|
|
23
|
+
size: "sm",
|
|
24
|
+
centered: true,
|
|
25
|
+
className: "text-center justify-content-center rounded",
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ jsx(Modal.Header, {
|
|
28
|
+
className: "justify-content-center border-0",
|
|
29
|
+
children: title && /*#__PURE__*/ jsx(Modal.Title, {
|
|
30
|
+
as: "h6",
|
|
31
|
+
children: title
|
|
32
|
+
})
|
|
33
|
+
}),
|
|
34
|
+
content && /*#__PURE__*/ jsx(Modal.Body, {
|
|
35
|
+
className: "justify-content-center",
|
|
36
|
+
children: content
|
|
37
|
+
}),
|
|
38
|
+
/*#__PURE__*/ jsx(Modal.Footer, {
|
|
39
|
+
className: "border-0 justify-content-center",
|
|
40
|
+
children: customButtons || /*#__PURE__*/ jsxs(Fragment, {
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ jsx(Button, {
|
|
43
|
+
variant: "secondary",
|
|
44
|
+
className: "modal-buttons",
|
|
45
|
+
onClick: declineHandler,
|
|
46
|
+
children: t('cancel')
|
|
47
|
+
}),
|
|
48
|
+
/*#__PURE__*/ jsx(Button, {
|
|
49
|
+
variant: "primary",
|
|
50
|
+
className: "modal-buttons",
|
|
51
|
+
onClick: approveHandler,
|
|
52
|
+
children: t('Design:confirm')
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
})
|
|
31
56
|
})
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
className: "justify-content-center",
|
|
35
|
-
children: content
|
|
36
|
-
}),
|
|
37
|
-
/*#__PURE__*/ jsx(Modal.Footer, {
|
|
38
|
-
className: "border-0 justify-content-center",
|
|
39
|
-
children: customButtons || /*#__PURE__*/ jsxs(Fragment, {
|
|
40
|
-
children: [
|
|
41
|
-
/*#__PURE__*/ jsx(Button, {
|
|
42
|
-
variant: "secondary",
|
|
43
|
-
className: "modal-buttons",
|
|
44
|
-
onClick: declineHandler,
|
|
45
|
-
children: t('cancel')
|
|
46
|
-
}),
|
|
47
|
-
/*#__PURE__*/ jsx(Button, {
|
|
48
|
-
variant: "primary",
|
|
49
|
-
className: "modal-buttons",
|
|
50
|
-
onClick: approveHandler,
|
|
51
|
-
children: t('Design:confirm')
|
|
52
|
-
})
|
|
53
|
-
]
|
|
54
|
-
})
|
|
55
|
-
})
|
|
56
|
-
]
|
|
57
|
+
]
|
|
58
|
+
})
|
|
57
59
|
});
|
|
58
60
|
};
|
|
59
61
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/card/EmailTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,aAAoB,EACpB,IAAI,GACL,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"EmailTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/card/EmailTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,aAAoB,EACpB,IAAI,GACL,EAAE,sBAAsB,2CAoDxB"}
|
|
@@ -7,7 +7,6 @@ export interface EmailTemplateControlProps {
|
|
|
7
7
|
meta: string;
|
|
8
8
|
defaultAttachments?: Attachment[];
|
|
9
9
|
notificationTypes?: NotificationType[];
|
|
10
|
-
waiverType?: boolean;
|
|
11
10
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
|
|
12
11
|
}
|
|
13
12
|
export declare const EmailTemplateControl: import("react").ForwardRefExoticComponent<EmailTemplateControlProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,
|
|
1
|
+
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAsahC,CAAA"}
|
|
@@ -234,7 +234,7 @@ function _ts_generator(thisArg, body) {
|
|
|
234
234
|
}
|
|
235
235
|
var EDITOR_DESIGN_UPDATED = 'design:updated';
|
|
236
236
|
var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
237
|
-
var setIsLoading = param.setIsLoading, meta = param.meta, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_defaultAttachments = param.defaultAttachments, defaultAttachments = _param_defaultAttachments === void 0 ? [] : _param_defaultAttachments, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes,
|
|
237
|
+
var setIsLoading = param.setIsLoading, meta = param.meta, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_defaultAttachments = param.defaultAttachments, defaultAttachments = _param_defaultAttachments === void 0 ? [] : _param_defaultAttachments, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType;
|
|
238
238
|
var _errors_type, _errors_name, _errors_subject, _errors_body;
|
|
239
239
|
var t = useTranslation([
|
|
240
240
|
'Design'
|
|
@@ -476,7 +476,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
476
476
|
]
|
|
477
477
|
})
|
|
478
478
|
}),
|
|
479
|
-
|
|
479
|
+
/*#__PURE__*/ jsx(Row, {
|
|
480
480
|
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
481
481
|
as: Col,
|
|
482
482
|
children: [
|
|
@@ -578,7 +578,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
578
578
|
}
|
|
579
579
|
// should show dropdown only if user want to include PDF file
|
|
580
580
|
if (option.type === OPTION_TYPE.files_selector) {
|
|
581
|
-
var fileSelectors =
|
|
581
|
+
var fileSelectors = JSON.parse(option.defaultValue);
|
|
582
582
|
var fileNames = Object.values(fileSelectors);
|
|
583
583
|
var fileKeys = Object.keys(fileSelectors);
|
|
584
584
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -622,7 +622,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
622
622
|
]
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
if (option.type === OPTION_TYPE.days_reminder
|
|
625
|
+
if (option.type === OPTION_TYPE.days_reminder) {
|
|
626
626
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
627
627
|
children: [
|
|
628
628
|
/*#__PURE__*/ jsx(Form.Label, {
|
|
@@ -31,10 +31,9 @@ export interface EmailTemplateProps extends HasPermissionProp {
|
|
|
31
31
|
placeholders?: NotificationPlaceholder[];
|
|
32
32
|
options?: TemplateOption[];
|
|
33
33
|
serverErrors?: ServerError;
|
|
34
|
-
waiverType?: boolean;
|
|
35
34
|
notificationTypes?: NotificationType[];
|
|
36
35
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
|
|
37
36
|
onTypeChange?: (type?: NotificationType | null) => void;
|
|
38
37
|
}
|
|
39
|
-
export declare const EmailTemplateForm: ({ defaultValues, onSubmitSave, onSubmitSaveAndSend, hasPermission, placeholders, options, serverErrors,
|
|
38
|
+
export declare const EmailTemplateForm: ({ defaultValues, onSubmitSave, onSubmitSaveAndSend, hasPermission, placeholders, options, serverErrors, notificationTypes, getDefaultTemplateMetaByType, onTypeChange, }: EmailTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
39
|
//# sourceMappingURL=EmailTemplateForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateForm.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/form/EmailTemplateForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+EAA+E,CAAA;AACvH,OAAO,EAAE,cAAc,EAAE,MAAM,sEAAsE,CAAA;AACrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAC/G,OAAO,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAA;AAC7G,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qEAAqE,CAAA;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAA;IACjE,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC5C,cAAc,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACvC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC3D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,YAAY,CAAC,EAAE,uBAAuB,EAAE,CAAA;IACxC,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,
|
|
1
|
+
{"version":3,"file":"EmailTemplateForm.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/form/EmailTemplateForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+EAA+E,CAAA;AACvH,OAAO,EAAE,cAAc,EAAE,MAAM,sEAAsE,CAAA;AACrG,OAAO,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAC/G,OAAO,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAA;AAC7G,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qEAAqE,CAAA;AAC1G,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAA;IACjE,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC5C,cAAc,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACvC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC3D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,YAAY,CAAC,EAAE,uBAAuB,EAAE,CAAA;IACxC,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;IACzE,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAA;CACxD;AAED,eAAO,MAAM,iBAAiB,6KAW3B,kBAAkB,4CAmEpB,CAAA"}
|
|
@@ -108,7 +108,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
108
108
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
109
109
|
}
|
|
110
110
|
var EmailTemplateForm = function(param) {
|
|
111
|
-
var defaultValues = param.defaultValues, onSubmitSave = param.onSubmitSave, onSubmitSaveAndSend = param.onSubmitSaveAndSend, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, _param_placeholders = param.placeholders, placeholders = _param_placeholders === void 0 ? [] : _param_placeholders, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, serverErrors = param.serverErrors,
|
|
111
|
+
var defaultValues = param.defaultValues, onSubmitSave = param.onSubmitSave, onSubmitSaveAndSend = param.onSubmitSaveAndSend, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, _param_placeholders = param.placeholders, placeholders = _param_placeholders === void 0 ? [] : _param_placeholders, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, serverErrors = param.serverErrors, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType, onTypeChange = param.onTypeChange;
|
|
112
112
|
var t = useTranslation('Design').t;
|
|
113
113
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
114
114
|
var emailEditorRef = useRef(null);
|
|
@@ -143,7 +143,6 @@ var EmailTemplateForm = function(param) {
|
|
|
143
143
|
children: [
|
|
144
144
|
/*#__PURE__*/ jsx(EmailTemplateControl, {
|
|
145
145
|
ref: emailEditorRef,
|
|
146
|
-
waiverType: waiverType,
|
|
147
146
|
setIsLoading: setIsLoading,
|
|
148
147
|
meta: (defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.meta) || null,
|
|
149
148
|
defaultAttachments: (defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.attachments) || [],
|
|
@@ -15,6 +15,7 @@ import 'react-bootstrap/Row';
|
|
|
15
15
|
import 'react-bootstrap/Col';
|
|
16
16
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
17
17
|
import '@licklist/plugins/dist/services/Form/HookFormService';
|
|
18
|
+
import 'react-router-dom';
|
|
18
19
|
import '../../../calendar/Calendar.js';
|
|
19
20
|
import 'clsx';
|
|
20
21
|
import 'luxon';
|
|
@@ -23,7 +24,6 @@ import '../../../tiptap-editor/TipTapEditor.js';
|
|
|
23
24
|
import '@licklist/core/dist/Config';
|
|
24
25
|
import '../../../iframe/event/event-card/IframeEventCardSkeleton.js';
|
|
25
26
|
import 'react-icons/fa';
|
|
26
|
-
import 'react-router-dom';
|
|
27
27
|
import '../../../static/index.js';
|
|
28
28
|
import '../../../iframe/page/Page.js';
|
|
29
29
|
import '../../../iframe/page/components/PageBody/PageBody.js';
|
|
@@ -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,
|
|
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,2CAyEtB"}
|
|
@@ -117,7 +117,7 @@ function RecurrenceInput(param) {
|
|
|
117
117
|
})), 2), state = _useReducer[0], updateState = _useReducer[1];
|
|
118
118
|
useEffect(// TODO: unhardcode timezone
|
|
119
119
|
function() {
|
|
120
|
-
onChange(RRule.optionsToString(_object_spread({
|
|
120
|
+
return onChange(RRule.optionsToString(_object_spread({
|
|
121
121
|
freq: state.freq,
|
|
122
122
|
count: state.count,
|
|
123
123
|
interval: state.interval,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentsModal.d.ts","sourceRoot":"","sources":["../../../../../src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,MAAM,GACP,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"PaymentsModal.d.ts","sourceRoot":"","sources":["../../../../../src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,MAAM,GACP,EAAE,kBAAkB,2CAgCpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"AAkCA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAsB,GACvB,EAAE,YAAY,2CAgWd"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useContext } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { MemoryRouter } from 'react-router-dom';
|
|
4
5
|
import { Button } from 'react-bootstrap';
|
|
5
6
|
import { SNIPPET_TEMPLATE_TYPE_VENUE_MAP, SNIPPET_TEMPLATE_TYPE_EVENT_LIST } from '@licklist/core/dist/DataMapper/Provider/SnippetTemplateDataMapper';
|
|
6
7
|
import { defaultStartDay, Calendar } from '../../../calendar/Calendar.js';
|
|
@@ -18,7 +19,6 @@ import { PageHeader } from '../../../iframe/page/components/PageHeader/PageHeade
|
|
|
18
19
|
import 'react-icons/fa';
|
|
19
20
|
import 'react-swipeable';
|
|
20
21
|
import 'react-bootstrap/Button';
|
|
21
|
-
import 'react-router-dom';
|
|
22
22
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
23
23
|
import '@licklist/plugins/dist/services/Media/MediaService';
|
|
24
24
|
import '../../../tiptap-editor/TipTapEditor.js';
|
|
@@ -154,19 +154,25 @@ function Preview(param) {
|
|
|
154
154
|
/*#__PURE__*/ jsx(Timer, {
|
|
155
155
|
timer: 600
|
|
156
156
|
}),
|
|
157
|
-
/*#__PURE__*/ jsx(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
157
|
+
/*#__PURE__*/ jsx(MemoryRouter, {
|
|
158
|
+
initialEntries: [
|
|
159
|
+
'/step1',
|
|
160
|
+
'/step2'
|
|
161
|
+
],
|
|
162
|
+
children: /*#__PURE__*/ jsx(NavigationSteps, {
|
|
163
|
+
steps: [
|
|
164
|
+
{
|
|
165
|
+
pathname: '/step1',
|
|
166
|
+
key: '/step1',
|
|
167
|
+
name: 'Burger'
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
pathname: '/step2',
|
|
171
|
+
key: '/step2',
|
|
172
|
+
name: 'Cheese'
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
})
|
|
170
176
|
})
|
|
171
177
|
]
|
|
172
178
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-dev.
|
|
3
|
+
"version": "0.78.5-dev.2",
|
|
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.36.1-dev.
|
|
45
|
+
"@licklist/core": "0.36.1-dev.1",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.36.4-dev.
|
|
47
|
+
"@licklist/plugins": "0.36.4-dev.1",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
49
|
"i18next": "25.3.2",
|
|
50
50
|
"lodash": "4.17.21",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@dnd-kit/utilities": "2.0.0",
|
|
65
65
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
66
66
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
67
|
-
"@licklist/core": "0.36.1-dev.
|
|
67
|
+
"@licklist/core": "0.36.1-dev.1",
|
|
68
68
|
"@licklist/eslint-config": "0.5.6",
|
|
69
|
-
"@licklist/plugins": "0.36.4-dev.
|
|
69
|
+
"@licklist/plugins": "0.36.4-dev.1",
|
|
70
70
|
"@mantine/core": "6.0.22",
|
|
71
71
|
"@mantine/hooks": "6.0.22",
|
|
72
72
|
"@mdx-js/react": "1.6.22",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
},
|
|
200
200
|
"resolutions": {
|
|
201
201
|
"@types/react": "18.3.12",
|
|
202
|
-
"@types/react-dom": "
|
|
202
|
+
"@types/react-dom": "17.0.25"
|
|
203
203
|
},
|
|
204
204
|
"lint-staged": {
|
|
205
205
|
"*.{ts,tsx}": [
|