@licklist/design 0.66.7-dev.9 → 0.66.8-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.
- package/dist/affiliate/card/AffiliateCard.js +7 -9
- package/dist/auth/AccessDenied/AccessDenied.js +3 -6
- package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialFormComponent.js +0 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.js +5 -5
- package/dist/custom-fields/constants.d.ts +2 -2
- package/dist/custom-fields/constants.d.ts.map +1 -1
- package/dist/custom-fields/constants.js +8 -4
- package/dist/custom-fields/field/FieldItem.d.ts +2 -1
- package/dist/custom-fields/field/FieldItem.d.ts.map +1 -1
- package/dist/custom-fields/field/FieldItem.js +1 -6
- package/dist/custom-fields/forms/DropdownForm.js +5 -9
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -4
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +6 -16
- package/dist/events/event-statistic-modal/EventStatisticModal.js +3 -5
- package/dist/events/event-venue-map/components/ZoomButtons/ZoomButtons.js +3 -6
- package/dist/file-upload/FilePreview.js +6 -11
- package/dist/help/popover/HelpPopover.js +3 -6
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.js +6 -9
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +7 -11
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +5 -5
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +2 -5
- package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +2 -5
- package/dist/iframe/order-process/components/NavigationFooter/NavigationFooter.js +3 -8
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.js +2 -5
- package/dist/iframe/order-process/components/Timer/Timer.js +2 -5
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -2
- package/dist/iframe/payment/payment-form/PaymentForm.js +1 -2
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/index.js +1 -1
- package/dist/modals/confirmation/ConfirmModal.js +3 -4
- package/dist/modals/fullscreen/FullscreenModal.js +3 -4
- package/dist/notification/email-template/card/EmailTemplateCard.js +3 -8
- package/dist/notification/sms-template/card/SmsTemplateCard.js +3 -8
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +7 -9
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +3 -5
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +5 -7
- package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceControl.js +5 -8
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +5 -8
- package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
- package/dist/product-set/control/TutorialGifCard.js +6 -10
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.js +3 -4
- package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +59 -1
- package/dist/product-set/form/ProductsControl.js +2 -2
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +30 -23
- package/dist/product-set/form/SubProductsControl.js +1 -1
- package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
- package/dist/product-set/item/CreateProductSetItem.js +3 -6
- package/dist/product-set/popover/ProductSetPopover.js +3 -5
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +3 -4
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +3 -4
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -4
- package/dist/product-set/product/price/ProductPriceControl.js +3 -4
- package/dist/report/card/ReportCard.d.ts +1 -2
- package/dist/report/card/ReportCard.d.ts.map +1 -1
- package/dist/report/card/ReportCard.js +6 -16
- package/dist/sales/booking/results/components/ResultCard.js +4 -5
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +3 -6
- package/dist/sales/modals/payment-modal/PaymentModal.js +3 -4
- package/dist/sales/modals/refund-modal/RefundModal.js +3 -4
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.js +4 -6
- package/dist/sales/notes/NotesTableRow.js +7 -9
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.js +3 -6
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +11 -26
- package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.js +3 -6
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.js +2 -5
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +7 -9
- package/dist/sidebar/elements/ReturnBack.js +2 -5
- package/dist/slide-curtain/SlideCurtain.d.ts.map +1 -1
- package/dist/slide-curtain/SlideCurtain.js +3 -4
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/snippet/snippet-template/settings/SettingButton.js +3 -6
- package/dist/sortable-list/CreateSortableListItem.d.ts.map +1 -1
- package/dist/sortable-list/CreateSortableListItem.js +3 -6
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +6 -10
- package/dist/static/RestrictedAccess.js +3 -4
- package/dist/static/SocialButton.d.ts +0 -1
- package/dist/static/SocialButton.d.ts.map +1 -1
- package/dist/static/SocialButton.js +7 -10
- package/dist/static/UserBadge.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.js +3 -5
- package/dist/static/index.d.ts +0 -1
- package/dist/static/index.d.ts.map +1 -1
- package/dist/static/index.js +1 -1
- package/dist/static/number-input/NumberInput.js +5 -7
- package/dist/striped-static-table/StripedStaticTable.js +1 -2
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +1 -1
- package/dist/table/MenuButton.d.ts +3 -3
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/MenuButton.js +3 -8
- package/dist/table/PaginationHelperComponent.d.ts.map +1 -1
- package/dist/table/PaginationHelperComponent.js +5 -8
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.js +17 -16
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts +3 -3
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.js +2 -8
- package/dist/venue-map-sets/card/VenueMapSetCard.js +7 -9
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.js +5 -8
- package/dist/venue-map-sets/form/components/VenueMapModal.js +3 -4
- package/dist/zone/card/ZoneCard.js +7 -9
- package/dist/zone/form/components/ZoneRecurrenceControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrenceControl.js +5 -8
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +3 -5
- package/package.json +2 -3
- package/src/affiliate/card/AffiliateCard.tsx +4 -4
- package/src/auth/AccessDenied/AccessDenied.tsx +2 -2
- package/src/auth/Social/SocialFormComponent.tsx +0 -1
- package/src/collapsible-input-group/CollapsibleInputGroup.tsx +7 -4
- package/src/custom-fields/{constants.ts → constants.tsx} +3 -2
- package/src/custom-fields/field/FieldItem.tsx +4 -3
- package/src/custom-fields/forms/DropdownForm.tsx +3 -3
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +2 -2
- package/src/events/event-card/EventCard.tsx +13 -6
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +2 -2
- package/src/events/event-venue-map/components/ZoomButtons/ZoomButtons.tsx +2 -2
- package/src/file-upload/FilePreview.tsx +4 -8
- package/src/header/Header.stories.tsx +1 -2
- package/src/help/popover/HelpPopover.tsx +2 -2
- package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +4 -9
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +5 -4
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +6 -9
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
- package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +2 -2
- package/src/iframe/order-process/components/NavigationFooter/NavigationFooter.tsx +3 -3
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +2 -2
- package/src/iframe/order-process/components/Timer/Timer.tsx +2 -2
- package/src/image-radio-input/ImageRadioInput.stories.tsx +3 -3
- package/src/modals/confirmation/ConfirmModal.tsx +2 -2
- package/src/modals/fullscreen/FullscreenModal.tsx +2 -2
- package/src/notification/email-template/card/EmailTemplateCard.tsx +3 -3
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +3 -3
- package/src/product-set/card/ProductSetCard.tsx +4 -5
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +6 -5
- package/src/product-set/control/ProductSetRecurrenceControl.tsx +6 -7
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +5 -8
- package/src/product-set/control/TutorialGifCard.tsx +5 -12
- package/src/product-set/elements/DeleteFieldButton.tsx +2 -2
- package/src/product-set/form/MobileFooter.tsx +6 -36
- package/src/product-set/form/ProductSetForm.tsx +12 -1
- package/src/product-set/form/SelectCategoryModal.tsx +24 -19
- package/src/product-set/item/CreateProductSetItem.tsx +2 -7
- package/src/product-set/popover/ProductSetPopover.tsx +2 -2
- package/src/product-set/product/ProductControl.tsx +2 -5
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +2 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +2 -2
- package/src/report/card/ReportCard.tsx +0 -10
- package/src/sales/booking/results/components/ResultCard.tsx +2 -2
- package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -9
- package/src/sales/modals/payment-modal/PaymentModal.tsx +2 -2
- package/src/sales/modals/refund-modal/RefundModal.tsx +2 -2
- package/src/sales/notes/NotesTable.tsx +2 -2
- package/src/sales/notes/NotesTableRow.tsx +4 -4
- package/src/setting/admin/AdminSettingForm.tsx +2 -7
- package/src/setting/admin/PaymentFeeForm.tsx +7 -32
- package/src/setting/dashboard/FinancialDataForm.tsx +4 -19
- package/src/setting/dashboard/ProviderSettingForm.tsx +2 -7
- package/src/setting/dashboard/components/IpInput.tsx +2 -2
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -2
- package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -4
- package/src/sidebar/elements/ReturnBack.tsx +2 -2
- package/src/slide-curtain/SlideCurtain.tsx +2 -6
- package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
- package/src/sortable-list/CreateSortableListItem.tsx +2 -7
- package/src/sortable-tree/SortableTreeItem.tsx +4 -5
- package/src/static/RestrictedAccess.tsx +2 -2
- package/src/static/SocialButton.tsx +4 -5
- package/src/static/Static.stories.tsx +2 -2
- package/src/static/UserBadge.tsx +2 -6
- package/src/static/date-range-input/DateRangeInput.tsx +2 -6
- package/src/static/index.ts +0 -1
- package/src/static/number-input/NumberInput.tsx +3 -3
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +1 -1
- package/src/table/MenuButton.tsx +4 -8
- package/src/table/PaginationHelperComponent.tsx +3 -4
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +24 -16
- package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +4 -7
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -4
- package/src/venue-map-sets/form/components/VenueMapControl.tsx +3 -8
- package/src/venue-map-sets/form/components/VenueMapModal.tsx +2 -2
- package/src/zone/card/ZoneCard.tsx +4 -4
- package/src/zone/form/components/ZoneRecurrenceControl.tsx +3 -11
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +2 -6
- package/yarn.lock +163 -176
- package/dist/static/Icon.d.ts +0 -13
- package/dist/static/Icon.d.ts.map +0 -1
- package/dist/static/Icon.js +0 -22
- package/src/static/Icon.tsx +0 -37
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useEffect } from 'react';
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
3
|
import { Form, Row, Col, Button } from 'react-bootstrap';
|
|
4
4
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
@@ -10,7 +10,16 @@ import { useDialogContext } from '../../modals/dialog/DialogContext.js';
|
|
|
10
10
|
import { ProductSetControl } from '../control/ProductSetControl.js';
|
|
11
11
|
import { ProductSetContextProvider, ProductSetLoadingContext } from './context.js';
|
|
12
12
|
import { getFilteredTemplates, checkAvailableTimesErrors } from '../utils/index.js';
|
|
13
|
+
import { ErrorModal } from '../../iframe/order-process/components/ErrorModal/ErrorModal.js';
|
|
13
14
|
|
|
15
|
+
function _array_like_to_array(arr, len) {
|
|
16
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
17
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
18
|
+
return arr2;
|
|
19
|
+
}
|
|
20
|
+
function _array_with_holes(arr) {
|
|
21
|
+
if (Array.isArray(arr)) return arr;
|
|
22
|
+
}
|
|
14
23
|
function _define_property(obj, key, value) {
|
|
15
24
|
if (key in obj) {
|
|
16
25
|
Object.defineProperty(obj, key, {
|
|
@@ -24,6 +33,33 @@ function _define_property(obj, key, value) {
|
|
|
24
33
|
}
|
|
25
34
|
return obj;
|
|
26
35
|
}
|
|
36
|
+
function _iterable_to_array_limit(arr, i) {
|
|
37
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
38
|
+
if (_i == null) return;
|
|
39
|
+
var _arr = [];
|
|
40
|
+
var _n = true;
|
|
41
|
+
var _d = false;
|
|
42
|
+
var _s, _e;
|
|
43
|
+
try {
|
|
44
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
45
|
+
_arr.push(_s.value);
|
|
46
|
+
if (i && _arr.length === i) break;
|
|
47
|
+
}
|
|
48
|
+
} catch (err) {
|
|
49
|
+
_d = true;
|
|
50
|
+
_e = err;
|
|
51
|
+
} finally{
|
|
52
|
+
try {
|
|
53
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
54
|
+
} finally{
|
|
55
|
+
if (_d) throw _e;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return _arr;
|
|
59
|
+
}
|
|
60
|
+
function _non_iterable_rest() {
|
|
61
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
62
|
+
}
|
|
27
63
|
function _object_spread(target) {
|
|
28
64
|
for(var i = 1; i < arguments.length; i++){
|
|
29
65
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -90,6 +126,17 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
90
126
|
}
|
|
91
127
|
return target;
|
|
92
128
|
}
|
|
129
|
+
function _sliced_to_array(arr, i) {
|
|
130
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
131
|
+
}
|
|
132
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
133
|
+
if (!o) return;
|
|
134
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
135
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
136
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
137
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
138
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
139
|
+
}
|
|
93
140
|
function ProductSetForm(_param) {
|
|
94
141
|
var companyName = _param.companyName, isLoading = _param.isLoading, defaultValues = _param.defaultValues, onSubmitAndRedirect = _param.onSubmitAndRedirect, onSubmitNoRedirect = _param.onSubmitNoRedirect, productGroupList = _param.productGroupList, serverErrors = _param.serverErrors, _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, isCreateAction = _param.isCreateAction, workHours = _param.workHours, isOverrides = _param.isOverrides, isCreateNewOverrides = _param.isCreateNewOverrides, shared = _object_without_properties(_param, [
|
|
95
142
|
"companyName",
|
|
@@ -110,6 +157,7 @@ function ProductSetForm(_param) {
|
|
|
110
157
|
]);
|
|
111
158
|
var t = useTranslation("Design").t;
|
|
112
159
|
var _useDialogContext = useDialogContext(), isShownDialog = _useDialogContext.isShownDialog, onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState, onApproveDialog = _useDialogContext.onApproveDialog, onDeclineDialog = _useDialogContext.onDeclineDialog;
|
|
160
|
+
var _useState = _sliced_to_array(useState(""), 2), errorMessage = _useState[0], setErrorMessage = _useState[1];
|
|
113
161
|
var form = useForm({
|
|
114
162
|
defaultValues: defaultValues,
|
|
115
163
|
mode: "onChange"
|
|
@@ -141,6 +189,9 @@ function ProductSetForm(_param) {
|
|
|
141
189
|
if (!serverErrors) {
|
|
142
190
|
return;
|
|
143
191
|
}
|
|
192
|
+
if (Array.isArray(serverErrors) && serverErrors[0]) {
|
|
193
|
+
setErrorMessage(serverErrors[0]);
|
|
194
|
+
}
|
|
144
195
|
FormErrorService.handleServerErrors(serverErrors, setError);
|
|
145
196
|
}, [
|
|
146
197
|
serverErrors,
|
|
@@ -170,6 +221,13 @@ function ProductSetForm(_param) {
|
|
|
170
221
|
onApprove: onApproveDialog,
|
|
171
222
|
onDecline: onDeclineDialog
|
|
172
223
|
}),
|
|
224
|
+
/*#__PURE__*/ jsx(ErrorModal, {
|
|
225
|
+
message: errorMessage,
|
|
226
|
+
isOpen: !!errorMessage,
|
|
227
|
+
onClose: function() {
|
|
228
|
+
return setErrorMessage("");
|
|
229
|
+
}
|
|
230
|
+
}),
|
|
173
231
|
/*#__PURE__*/ jsx(FormProvider, _object_spread_props(_object_spread({}, form), {
|
|
174
232
|
children: /*#__PURE__*/ jsx(Form, {
|
|
175
233
|
onSubmit: form.handleSubmit(submitHandler(onSubmitAndRedirect)),
|
|
@@ -12,13 +12,12 @@ import 'rrule';
|
|
|
12
12
|
import 'clsx';
|
|
13
13
|
import '@react-aria/utils';
|
|
14
14
|
import '@licklist/plugins/dist/services/Route/RouteService';
|
|
15
|
+
import 'react-icons/fa';
|
|
15
16
|
import 'react-bootstrap/ModalHeader';
|
|
16
17
|
import 'react-bootstrap/ModalTitle';
|
|
17
18
|
import 'react-bootstrap/ModalBody';
|
|
18
19
|
import 'react-bootstrap/ModalFooter';
|
|
19
20
|
import 'react-bootstrap/Modal';
|
|
20
|
-
import '../../static/Icon.js';
|
|
21
|
-
import '../../static/index.js';
|
|
22
21
|
import '../control/ProductSetControl.js';
|
|
23
22
|
import 'react-bootstrap/Col';
|
|
24
23
|
import 'react-bootstrap/InputGroup';
|
|
@@ -29,6 +28,7 @@ import 'react-bootstrap/OverlayTrigger';
|
|
|
29
28
|
import 'react-bootstrap/Popover';
|
|
30
29
|
import { ProductControl } from '../product/ProductControl.js';
|
|
31
30
|
import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
31
|
+
import '../../static/index.js';
|
|
32
32
|
import 'framer-motion';
|
|
33
33
|
import '../tabs/ProductSetTabs.js';
|
|
34
34
|
import { SortableTree } from '../../sortable-tree/SortableTree.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAML,YAAY,EACb,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAML,YAAY,EACb,MAAM,kEAAkE,CAAC;AAoD1E,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;CACpD;AAED,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,MAAM,EACN,gBAAgB,GACjB,EAAE,wBAAwB,2CAyH1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useState } from 'react';
|
|
3
3
|
import { Modal, Button, ModalBody, Carousel } from 'react-bootstrap';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
@@ -6,7 +6,7 @@ import { CATEGORY_TYPE_MENU_ITEMS, CATEGORY_TYPE_TICKETS, CATEGORY_TYPE_BOOKINGS
|
|
|
6
6
|
import ModalHeader from 'react-bootstrap/ModalHeader';
|
|
7
7
|
import ModalTitle from 'react-bootstrap/ModalTitle';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
9
|
-
import
|
|
9
|
+
import { FaTicketAlt, FaCalendar, FaBars, FaBowlingBall, FaTimes, FaArrowLeft, FaArrowRight } from 'react-icons/fa';
|
|
10
10
|
import { ProductSetLoadingContext } from './context.js';
|
|
11
11
|
|
|
12
12
|
/* eslint-disable jsx-a11y/click-events-have-key-events */ function _array_like_to_array(arr, len) {
|
|
@@ -78,21 +78,36 @@ var CATEGORY_TYPES_NAMES = {
|
|
|
78
78
|
var _obj;
|
|
79
79
|
var MAIN_CATEGORIES = (_obj = {}, _define_property(_obj, CATEGORY_TYPES_NAMES.tickets, {
|
|
80
80
|
label: "tickets",
|
|
81
|
-
icon:
|
|
81
|
+
icon: /*#__PURE__*/ jsx(FaTicketAlt, {
|
|
82
|
+
color: "#0e8ce2",
|
|
83
|
+
size: 32
|
|
84
|
+
})
|
|
82
85
|
}), _define_property(_obj, CATEGORY_TYPES_NAMES.bookings, {
|
|
83
86
|
label: "bookings",
|
|
84
|
-
icon:
|
|
87
|
+
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
88
|
+
color: "#0e8ce2",
|
|
89
|
+
size: 32
|
|
90
|
+
})
|
|
85
91
|
}), _define_property(_obj, CATEGORY_TYPES_NAMES.menuItems, {
|
|
86
92
|
label: "menuItems",
|
|
87
|
-
icon:
|
|
93
|
+
icon: /*#__PURE__*/ jsx(FaBars, {
|
|
94
|
+
color: "#0e8ce2",
|
|
95
|
+
size: 32
|
|
96
|
+
})
|
|
88
97
|
}), _obj);
|
|
89
98
|
var _obj1;
|
|
90
99
|
var BOOKING_SUBCATEGORIES = (_obj1 = {}, _define_property(_obj1, CATEGORY_TYPES_NAMES.game, {
|
|
91
100
|
label: "game",
|
|
92
|
-
icon:
|
|
101
|
+
icon: /*#__PURE__*/ jsx(FaBowlingBall, {
|
|
102
|
+
color: "#0e8ce2",
|
|
103
|
+
size: 32
|
|
104
|
+
})
|
|
93
105
|
}), _define_property(_obj1, CATEGORY_TYPES_NAMES.fixedDuration, {
|
|
94
106
|
label: "fixedDuration",
|
|
95
|
-
icon:
|
|
107
|
+
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
108
|
+
color: "#0e8ce2",
|
|
109
|
+
size: 32
|
|
110
|
+
})
|
|
96
111
|
}), _obj1);
|
|
97
112
|
function SelectCategoryModal(param) {
|
|
98
113
|
var isVisible = param.isVisible, onHide = param.onHide, onCategorySelect = param.onCategorySelect;
|
|
@@ -136,9 +151,8 @@ function SelectCategoryModal(param) {
|
|
|
136
151
|
variant: "danger",
|
|
137
152
|
className: "btn-sm rounded",
|
|
138
153
|
onClick: onHide,
|
|
139
|
-
children: /*#__PURE__*/ jsx(
|
|
140
|
-
|
|
141
|
-
height: "1.2rem"
|
|
154
|
+
children: /*#__PURE__*/ jsx(FaTimes, {
|
|
155
|
+
size: 20
|
|
142
156
|
})
|
|
143
157
|
})
|
|
144
158
|
]
|
|
@@ -168,11 +182,7 @@ function SelectCategoryModal(param) {
|
|
|
168
182
|
},
|
|
169
183
|
active: selectedCategory === categoryType,
|
|
170
184
|
children: [
|
|
171
|
-
|
|
172
|
-
type: icon,
|
|
173
|
-
color: "#0e8ce2",
|
|
174
|
-
height: "2rem"
|
|
175
|
-
}) : icon,
|
|
185
|
+
icon,
|
|
176
186
|
/*#__PURE__*/ jsx("h6", {
|
|
177
187
|
className: "text-dark mt-3",
|
|
178
188
|
children: t(label)
|
|
@@ -199,11 +209,7 @@ function SelectCategoryModal(param) {
|
|
|
199
209
|
},
|
|
200
210
|
active: selectedCategory === categoryType,
|
|
201
211
|
children: [
|
|
202
|
-
|
|
203
|
-
type: icon,
|
|
204
|
-
color: "#0e8ce2",
|
|
205
|
-
height: "2rem"
|
|
206
|
-
}),
|
|
212
|
+
icon,
|
|
207
213
|
/*#__PURE__*/ jsx("h6", {
|
|
208
214
|
className: "text-dark mt-3",
|
|
209
215
|
children: t(label)
|
|
@@ -224,9 +230,10 @@ function SelectCategoryModal(param) {
|
|
|
224
230
|
return prev ? 0 : 1;
|
|
225
231
|
});
|
|
226
232
|
},
|
|
227
|
-
children: /*#__PURE__*/ jsx(
|
|
228
|
-
|
|
229
|
-
|
|
233
|
+
children: activeCarouselIndex ? /*#__PURE__*/ jsx(FaArrowLeft, {
|
|
234
|
+
size: 16
|
|
235
|
+
}) : /*#__PURE__*/ jsx(FaArrowRight, {
|
|
236
|
+
size: 16
|
|
230
237
|
})
|
|
231
238
|
})
|
|
232
239
|
]
|
|
@@ -7,7 +7,7 @@ import '@react-aria/utils';
|
|
|
7
7
|
import 'react-bootstrap';
|
|
8
8
|
import 'react-bootstrap/InputGroup';
|
|
9
9
|
import 'react-i18next';
|
|
10
|
-
import '
|
|
10
|
+
import 'react-icons/fa';
|
|
11
11
|
import 'react-bootstrap/Col';
|
|
12
12
|
import 'react';
|
|
13
13
|
import 'react-bootstrap/Row';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateProductSetItem.d.ts","sourceRoot":"","sources":["../../../src/product-set/item/CreateProductSetItem.tsx"],"names":[],"mappings":"AAGA,UAAU,yBAAyB;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,GACX,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"CreateProductSetItem.d.ts","sourceRoot":"","sources":["../../../src/product-set/item/CreateProductSetItem.tsx"],"names":[],"mappings":"AAGA,UAAU,yBAAyB;IACjC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,GACX,EAAE,yBAAyB,2CAgB3B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import '
|
|
4
|
-
import Icon from '../../static/Icon.js';
|
|
3
|
+
import { FaPlus } from 'react-icons/fa';
|
|
5
4
|
|
|
6
5
|
function CreateProductSetItem(param) {
|
|
7
6
|
var onClick = param.onClick, title = param.title, className = param.className, isOverride = param.isOverride;
|
|
@@ -10,10 +9,8 @@ function CreateProductSetItem(param) {
|
|
|
10
9
|
onClick: onClick,
|
|
11
10
|
type: "button",
|
|
12
11
|
children: [
|
|
13
|
-
/*#__PURE__*/ jsx(
|
|
14
|
-
|
|
15
|
-
height: "1.25rem",
|
|
16
|
-
width: "1.25rem",
|
|
12
|
+
/*#__PURE__*/ jsx(FaPlus, {
|
|
13
|
+
size: 20,
|
|
17
14
|
className: "rounded product-set-item-icon"
|
|
18
15
|
}),
|
|
19
16
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -4,8 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import Button from 'react-bootstrap/Button';
|
|
5
5
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
6
6
|
import Popover from 'react-bootstrap/Popover';
|
|
7
|
-
import '
|
|
8
|
-
import Icon from '../../static/Icon.js';
|
|
7
|
+
import { FaPlus } from 'react-icons/fa';
|
|
9
8
|
|
|
10
9
|
var ProductSetPopover = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
11
10
|
var title = param.title, isVisible = param.isVisible, _param_placement = param.placement, placement = _param_placement === void 0 ? "auto" : _param_placement, _param_trigger = param.trigger, trigger = _param_trigger === void 0 ? "click" : _param_trigger, onClick = param.onClick, children = param.children, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
|
|
@@ -45,9 +44,8 @@ var ProductSetPopover = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
45
44
|
onClick();
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
|
-
children: /*#__PURE__*/ jsx(
|
|
49
|
-
|
|
50
|
-
width: ".7rem"
|
|
47
|
+
children: /*#__PURE__*/ jsx(FaPlus, {
|
|
48
|
+
size: 12
|
|
51
49
|
})
|
|
52
50
|
})
|
|
53
51
|
})
|
|
@@ -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,EAMb,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,WAAW,EAEZ,MAAM,0DAA0D,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAC;AAEtE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAMb,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,WAAW,EAEZ,MAAM,0DAA0D,CAAC;AAGlE,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAC;AAEtE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAC;AAef,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAM9D,OAAO,EAEL,oCAAoC,EACpC,qCAAqC,EACtC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAC;AAQzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQ5C,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,2BAA2B,EAC3B,qCAAqC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,CACpC,SAAQ,gBAAgB,EACtB,mBAAmB,CAAC,CAAC,CAAC,EACtB,oCAAoC,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,UAAU,EAAE,EACnD,SAAiB,EACjB,eAAe,EACf,aAAqB,EACrB,oBAA4B,EAC5B,QAAa,EACb,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,WAAmB,GACpB,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAslBxB"}
|
|
@@ -13,9 +13,9 @@ import { useFormContext, useWatch, Controller } from 'react-hook-form';
|
|
|
13
13
|
import { useTranslation } from 'react-i18next';
|
|
14
14
|
import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages';
|
|
15
15
|
import { IMAGE_TYPE_IMAGE } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
16
|
+
import { FaClipboard } from 'react-icons/fa';
|
|
16
17
|
import { FileUpload } from '../../file-upload/FileUpload.js';
|
|
17
18
|
import '../../static/index.js';
|
|
18
|
-
import Icon from '../../static/Icon.js';
|
|
19
19
|
import { ProductSetLoadingContext } from '../form/context.js';
|
|
20
20
|
import { ProductBookingManagementControl } from './booking-management/ProductBookingManagementControl.js';
|
|
21
21
|
import { ProductDepositControl } from './deposit/ProductDepositControl.js';
|
|
@@ -772,9 +772,8 @@ function ProductControl(param) {
|
|
|
772
772
|
variant: "link",
|
|
773
773
|
className: "d-flex align-items-center",
|
|
774
774
|
children: [
|
|
775
|
-
/*#__PURE__*/ jsx(
|
|
776
|
-
|
|
777
|
-
height: "1rem",
|
|
775
|
+
/*#__PURE__*/ jsx(FaClipboard, {
|
|
776
|
+
size: 16,
|
|
778
777
|
className: "mr-2"
|
|
779
778
|
}),
|
|
780
779
|
" ",
|
|
@@ -5,7 +5,7 @@ import { Form } from 'react-bootstrap';
|
|
|
5
5
|
import InputGroup from 'react-bootstrap/InputGroup';
|
|
6
6
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import
|
|
8
|
+
import { FaSortNumericUpAlt } from 'react-icons/fa';
|
|
9
9
|
|
|
10
10
|
function _define_property(obj, key, value) {
|
|
11
11
|
if (key in obj) {
|
|
@@ -117,9 +117,8 @@ function ProductBookingManagementControl(props) {
|
|
|
117
117
|
children: [
|
|
118
118
|
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
119
119
|
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
120
|
-
children: /*#__PURE__*/ jsx(
|
|
121
|
-
|
|
122
|
-
width: "1rem"
|
|
120
|
+
children: /*#__PURE__*/ jsx(FaSortNumericUpAlt, {
|
|
121
|
+
size: 16
|
|
123
122
|
})
|
|
124
123
|
})
|
|
125
124
|
}),
|
|
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
6
6
|
import InputGroup from 'react-bootstrap/InputGroup';
|
|
7
7
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
9
|
-
import
|
|
9
|
+
import { FaPoundSign } from 'react-icons/fa';
|
|
10
10
|
|
|
11
11
|
function ProductDepositControl(props) {
|
|
12
12
|
var _props_isLoading = props.isLoading, isLoading = _props_isLoading === void 0 ? false : _props_isLoading, fieldNamePrefix = props.fieldNamePrefix;
|
|
@@ -28,9 +28,8 @@ function ProductDepositControl(props) {
|
|
|
28
28
|
children: [
|
|
29
29
|
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
30
30
|
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
31
|
-
children: /*#__PURE__*/ jsx(
|
|
32
|
-
|
|
33
|
-
width: ".6rem",
|
|
31
|
+
children: /*#__PURE__*/ jsx(FaPoundSign, {
|
|
32
|
+
size: 10,
|
|
34
33
|
className: "p-0"
|
|
35
34
|
})
|
|
36
35
|
})
|
|
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
6
6
|
import InputGroup from 'react-bootstrap/InputGroup';
|
|
7
7
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
9
|
-
import
|
|
9
|
+
import { FaPoundSign } from 'react-icons/fa';
|
|
10
10
|
|
|
11
11
|
function ProductPriceControl(param) {
|
|
12
12
|
var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, fieldNamePrefix = param.fieldNamePrefix, title = param.title, allowDeposits = param.allowDeposits, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? true : _param_isRequired, isMoreThanZero = param.isMoreThanZero;
|
|
@@ -29,9 +29,8 @@ function ProductPriceControl(param) {
|
|
|
29
29
|
children: [
|
|
30
30
|
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
31
31
|
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
32
|
-
children: /*#__PURE__*/ jsx(
|
|
33
|
-
|
|
34
|
-
width: ".6rem",
|
|
32
|
+
children: /*#__PURE__*/ jsx(FaPoundSign, {
|
|
33
|
+
size: 10,
|
|
35
34
|
className: "p-0"
|
|
36
35
|
})
|
|
37
36
|
})
|
|
@@ -3,7 +3,6 @@ export interface ReportCardProps extends HasPermissionProp {
|
|
|
3
3
|
name: string;
|
|
4
4
|
onPress: () => void;
|
|
5
5
|
className?: string;
|
|
6
|
-
iconType: string;
|
|
7
6
|
}
|
|
8
|
-
export declare function ReportCard({ name, onPress, className, hasPermission,
|
|
7
|
+
export declare function ReportCard({ name, onPress, className, hasPermission, }: ReportCardProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
//# sourceMappingURL=ReportCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportCard.d.ts","sourceRoot":"","sources":["../../../src/report/card/ReportCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"ReportCard.d.ts","sourceRoot":"","sources":["../../../src/report/card/ReportCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,SAAc,EACd,aAAoB,GACrB,EAAE,eAAe,2CAiBjB"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import '../../static/index.js';
|
|
3
|
-
import Icon from '../../static/Icon.js';
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
2
|
|
|
5
3
|
function ReportCard(param) {
|
|
6
|
-
var name = param.name, onPress = param.onPress, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission
|
|
4
|
+
var name = param.name, onPress = param.onPress, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission;
|
|
7
5
|
var reportCardClasses = "report-card ".concat(className);
|
|
8
6
|
return /*#__PURE__*/ jsx("div", {
|
|
9
7
|
role: "button",
|
|
@@ -12,19 +10,11 @@ function ReportCard(param) {
|
|
|
12
10
|
onClick: hasPermission && onPress,
|
|
13
11
|
children: /*#__PURE__*/ jsx("div", {
|
|
14
12
|
className: "report-card-link text-center",
|
|
15
|
-
children: /*#__PURE__*/
|
|
13
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
16
14
|
className: "d-flex justift-content-center flex-column",
|
|
17
|
-
children:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: "mb-1",
|
|
21
|
-
type: iconType,
|
|
22
|
-
height: "1.5rem"
|
|
23
|
-
}),
|
|
24
|
-
/*#__PURE__*/ jsx("h6", {
|
|
25
|
-
children: name
|
|
26
|
-
})
|
|
27
|
-
]
|
|
15
|
+
children: /*#__PURE__*/ jsx("h6", {
|
|
16
|
+
children: name
|
|
17
|
+
})
|
|
28
18
|
})
|
|
29
19
|
})
|
|
30
20
|
});
|
|
@@ -8,7 +8,7 @@ import * as Config from '@licklist/core/dist/Config';
|
|
|
8
8
|
import { TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
9
9
|
import { formatDateStringForEvent } from '@licklist/plugins/dist/utils/formatDate';
|
|
10
10
|
import { getOrderSourceTitle } from '@licklist/plugins/dist/utils/sourceTitle';
|
|
11
|
-
import
|
|
11
|
+
import { FaUser } from 'react-icons/fa';
|
|
12
12
|
|
|
13
13
|
var ResultCard = function(param) {
|
|
14
14
|
var order = param.order, className = param.className, staffMember = param.staffMember, onCardClick = param.onCardClick;
|
|
@@ -40,10 +40,9 @@ var ResultCard = function(param) {
|
|
|
40
40
|
/*#__PURE__*/ jsxs("div", {
|
|
41
41
|
className: "order-people",
|
|
42
42
|
children: [
|
|
43
|
-
/*#__PURE__*/ jsx(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
height: "11"
|
|
43
|
+
/*#__PURE__*/ jsx(FaUser, {
|
|
44
|
+
size: 10,
|
|
45
|
+
className: "p-0"
|
|
47
46
|
}),
|
|
48
47
|
people
|
|
49
48
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInputHorizontal.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAKnD,KAAK,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;AAE7B,UAAU,0BAA0B;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"NumberInputHorizontal.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAKnD,KAAK,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;AAE7B,UAAU,0BAA0B;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,yHA4GjC,CAAC"}
|
|
@@ -3,8 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { FormControl } from 'react-bootstrap';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import '
|
|
7
|
-
import Icon from '../../../static/Icon.js';
|
|
6
|
+
import { FaMinus, FaPlus } from 'react-icons/fa';
|
|
8
7
|
|
|
9
8
|
var NumberInputHorizontal = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
10
9
|
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, shouldHideButtons = param.shouldHideButtons, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, value = param.value, step = param.step, _param_size = param.size, size = _param_size === void 0 ? "small" : _param_size, hasCurrency = param.hasCurrency, onChange = param.onChange, onPlusClick = param.onPlusClick, onMinusClick = param.onMinusClick, onSelect = param.onSelect, min = param.min, max = param.max, defaultValue = param.defaultValue, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading;
|
|
@@ -47,8 +46,7 @@ var NumberInputHorizontal = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
47
46
|
hasBigSize ? "big-sizes-btn" : "small-sizes-btn"
|
|
48
47
|
].join(" "),
|
|
49
48
|
disabled: disabled || shouldHideButtons,
|
|
50
|
-
children: /*#__PURE__*/ jsx(
|
|
51
|
-
type: "minus",
|
|
49
|
+
children: /*#__PURE__*/ jsx(FaMinus, {
|
|
52
50
|
className: hasBigSize ? "big_icon" : "small_icon"
|
|
53
51
|
})
|
|
54
52
|
}),
|
|
@@ -87,8 +85,7 @@ var NumberInputHorizontal = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
87
85
|
hasBigSize ? "big-sizes-btn" : "small-sizes-btn"
|
|
88
86
|
].join(" "),
|
|
89
87
|
disabled: disabled || shouldHideButtons,
|
|
90
|
-
children: /*#__PURE__*/ jsx(
|
|
91
|
-
type: "plus",
|
|
88
|
+
children: /*#__PURE__*/ jsx(FaPlus, {
|
|
92
89
|
className: hasBigSize ? "big_icon" : "small_icon"
|
|
93
90
|
})
|
|
94
91
|
})
|
|
@@ -6,7 +6,7 @@ import ModalHeader from 'react-bootstrap/ModalHeader';
|
|
|
6
6
|
import ModalTitle from 'react-bootstrap/ModalTitle';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import * as Config from '@licklist/core/dist/Config';
|
|
9
|
-
import
|
|
9
|
+
import { FaTimes } from 'react-icons/fa';
|
|
10
10
|
import { SalePaymentForm } from '../../payment-form/SalePaymentForm.js';
|
|
11
11
|
|
|
12
12
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -289,9 +289,8 @@ var PaymentModal = function(_param) {
|
|
|
289
289
|
variant: "danger",
|
|
290
290
|
className: "btn-sm rounded",
|
|
291
291
|
onClick: onHide,
|
|
292
|
-
children: /*#__PURE__*/ jsx(
|
|
293
|
-
|
|
294
|
-
height: "1.2rem"
|
|
292
|
+
children: /*#__PURE__*/ jsx(FaTimes, {
|
|
293
|
+
size: 20
|
|
295
294
|
})
|
|
296
295
|
})
|
|
297
296
|
]
|
|
@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
5
5
|
import { useForm } from 'react-hook-form';
|
|
6
6
|
import ModalHeader from 'react-bootstrap/ModalHeader';
|
|
7
7
|
import ModalTitle from 'react-bootstrap/ModalTitle';
|
|
8
|
-
import
|
|
8
|
+
import { FaTimes } from 'react-icons/fa';
|
|
9
9
|
import { EXTENDED_PAYMENT_TYPE_TRANSLATION_KEYS } from '../../constants.js';
|
|
10
10
|
import { CurrencyNumberInput } from '../../../static/CurrencyNumberInput.js';
|
|
11
11
|
|
|
@@ -103,9 +103,8 @@ var RefundModal = function(param) {
|
|
|
103
103
|
variant: "danger",
|
|
104
104
|
className: "btn-sm rounded",
|
|
105
105
|
onClick: onHide,
|
|
106
|
-
children: /*#__PURE__*/ jsx(
|
|
107
|
-
|
|
108
|
-
height: "1.2rem"
|
|
106
|
+
children: /*#__PURE__*/ jsx(FaTimes, {
|
|
107
|
+
size: 20
|
|
109
108
|
})
|
|
110
109
|
})
|
|
111
110
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotesTable.d.ts","sourceRoot":"","sources":["../../../src/sales/notes/NotesTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"NotesTable.d.ts","sourceRoot":"","sources":["../../../src/sales/notes/NotesTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAE3E,OAAO,EAAY,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAG1D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,UAAU,kEAMpB,eAAe,4CA4EjB,CAAC"}
|
|
@@ -2,10 +2,9 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
import { Table, Button } from 'react-bootstrap';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { FaPlusCircle } from 'react-icons/fa';
|
|
5
6
|
import { TableRow } from './NotesTableRow.js';
|
|
6
7
|
import { NoteForm } from './note-form/NoteForm.js';
|
|
7
|
-
import '../../static/index.js';
|
|
8
|
-
import Icon from '../../static/Icon.js';
|
|
9
8
|
|
|
10
9
|
function _array_like_to_array(arr, len) {
|
|
11
10
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -154,10 +153,9 @@ var AddNoteButton = function(param) {
|
|
|
154
153
|
children: [
|
|
155
154
|
t("addNew"),
|
|
156
155
|
" ",
|
|
157
|
-
/*#__PURE__*/ jsx(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
width: "1rem"
|
|
156
|
+
/*#__PURE__*/ jsx(FaPlusCircle, {
|
|
157
|
+
size: 16,
|
|
158
|
+
className: "ml-2"
|
|
161
159
|
})
|
|
162
160
|
]
|
|
163
161
|
});
|