@licklist/design 0.67.1 → 0.67.2-dev.0
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/.storybook/main.cjs +15 -12
- package/dist/auth/Login/LoginComponent.js +2 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +35 -40
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +2 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/layout/DropDown.d.ts +2 -1
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/layout/DropDownToggle.d.ts.map +1 -1
- package/dist/layout/DropDownToggle.js +1 -0
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +1 -0
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +2 -2
- package/dist/product-set/control/ProductSetControl.d.ts +1 -1
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +48 -2
- package/dist/product-set/form/ProductSetForm.d.ts +4 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +60 -2
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +0 -2
- package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +0 -3
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +0 -3
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.d.ts.map +1 -1
- package/dist/product-set/hooks/useSortableTreeFunctions.js +2 -1
- package/dist/provider/location-input/LocationInput.d.ts +4 -1
- package/dist/provider/location-input/LocationInput.d.ts.map +1 -1
- package/dist/provider/location-input/LocationInput.js +46 -2
- package/dist/provider/location-input/index.d.ts +1 -0
- package/dist/provider/location-input/index.d.ts.map +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts +3 -1
- package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
- package/dist/provider/provider-form/ProviderForm.js +26 -5
- package/dist/provider/venue-form/VenueForm.d.ts +3 -1
- package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
- package/dist/provider/venue-form/VenueForm.js +4 -2
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +4 -8
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +3 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +6 -3
- package/dist/recurring-date-picker-input/utils.d.ts +5 -0
- package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/utils.js +75 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +0 -2
- package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
- package/dist/setting/admin/AdminSettingForm.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 +6 -0
- package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +10 -4
- package/dist/styles/auth/AccessDenied.scss +1 -1
- package/dist/styles/back-button/BackButton.scss +25 -24
- package/dist/styles/back-button/_index.scss +1 -1
- package/dist/styles/company-user-form/UserForm.scss +4 -7
- package/dist/styles/company-user-form/_index.scss +1 -1
- package/dist/styles/custom-fields/CreateSortableListItem.scss +2 -1
- package/dist/styles/custom-fields/_index.scss +1 -1
- package/dist/styles/customers/Filter.scss +5 -5
- package/dist/styles/events/EditEventModal.scss +1 -3
- package/dist/styles/events/EventVenueMap.scss +7 -7
- package/dist/styles/form/Input.scss +1 -1
- package/dist/styles/header/Header.scss +1 -1
- package/dist/styles/header/elements/CompanySelector.scss +2 -2
- package/dist/styles/iframe-events/Calendar.scss +0 -1
- package/dist/styles/iframe-events/CalendarSelect.scss +1 -1
- package/dist/styles/iframe-events/CategoryStepsForm.scss +6 -7
- package/dist/styles/iframe-events/Event.scss +2 -4
- package/dist/styles/iframe-events/EventForm.scss +54 -54
- package/dist/styles/iframe-events/EventNavigationFooter.scss +1 -0
- package/dist/styles/iframe-events/TicketDescription.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/iframe-payments/PaymentForm.scss +1 -1
- package/dist/styles/layout/BackgroundVideoContainer.scss +2 -2
- package/dist/styles/notification/Notification.scss +1 -1
- package/dist/styles/order-items-table/OrderItemsTable.scss +1 -2
- package/dist/styles/product-set/CreateProductSetItem.scss +15 -13
- package/dist/styles/product-set/DateAndRecurrenceInput.scss +6 -8
- package/dist/styles/product-set/EditCategoryModal.scss +4 -4
- package/dist/styles/product-set/EditProductModal.scss +3 -3
- package/dist/styles/product-set/EditStepModal.scss +4 -4
- package/dist/styles/product-set/EditVenueMapSetModal.scss +6 -6
- package/dist/styles/product-set/ProductSetForm.scss +25 -2
- package/dist/styles/product-set/TutorialGifCard.scss +1 -1
- package/dist/styles/product-set/_index.scss +2 -2
- package/dist/styles/report/ReportCard.scss +1 -0
- package/dist/styles/report/_index.scss +1 -1
- package/dist/styles/resources-blocking/_index.scss +4 -0
- package/dist/styles/sales/BookingFilter.scss +2 -2
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/sales/BookingTabs.scss +7 -5
- package/dist/styles/sales/Filters.scss +5 -4
- package/dist/styles/sales/GuestProfile.scss +170 -175
- package/dist/styles/sales/LifeTimeSales.scss +1 -1
- package/dist/styles/sales/ManualBooking.scss +4 -2
- package/dist/styles/snippet-templates/_snippetVariables.scss +63 -244
- package/dist/styles/sortable-field/SortableField.scss +16 -16
- package/dist/styles/sortable-field/_index.scss +1 -1
- package/dist/styles/sortable-tree/Item.scss +4 -4
- package/dist/styles/table/Table.scss +1 -1
- package/dist/styles/themes/bookedit/_variables.scss +10 -32
- package/dist/styles/themes/licklist/_variables.scss +1 -1
- package/dist/styles/tiptap-editor/TiptapEditor.scss +9 -10
- package/dist/styles/tiptap-editor/_index.scss +1 -1
- package/dist/styles/venue-map-sets/VenueMapSetForm.scss +5 -4
- package/dist/styles/virtualized/_index.scss +1 -1
- package/dist/styles/zones/ZoneForm.scss +1 -0
- package/dist/styles/zones/ZoneRecurrencesControl.scss +6 -8
- package/dist/zone/form/ZoneForm.d.ts +2 -2
- package/dist/zone/form/ZoneForm.d.ts.map +1 -1
- package/dist/zone/form/ZoneForm.js +3 -2
- package/dist/zone/form/components/ZoneControl.d.ts +2 -2
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.js +4 -2
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +4 -4
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +4 -2
- package/dist/zone/form/utils/dates.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/auth/ChangePassword/ChangePassword.stories.tsx +1 -1
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/auth/ResetPassword/ResetPassword.stories.tsx +1 -1
- package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +31 -28
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/header/elements/Elements.stories.tsx +1 -1
- package/src/help/popover/Popover.stories.tsx +1 -1
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +3 -3
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -0
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
- package/src/layout/DropDown.tsx +2 -1
- package/src/layout/DropDownToggle.tsx +2 -0
- package/src/product-set/card/ProductSetCard.stories.tsx +3 -1
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +2 -1
- package/src/product-set/control/ProductSetControl.tsx +1 -1
- package/src/product-set/control/ProductSetRecurrenceControl.stories.tsx +2 -2
- package/src/product-set/form/ProductCategoriesControl.tsx +38 -2
- package/src/product-set/form/ProductSetForm.tsx +22 -3
- package/src/product-set/form/ProductZonesControl.tsx +4 -7
- package/src/product-set/form/SelectCategoryModal.stories.tsx +1 -1
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/form/VenueMapsControl.tsx +0 -3
- package/src/product-set/hooks/useSortableTreeFunctions.ts +2 -0
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +5 -5
- package/src/product-set/product/booking-management/ProductBookingManagement.stories.tsx +1 -1
- package/src/product-set/product/quantity/ProductQuantity.stories.tsx +1 -1
- package/src/product-set/product-zone/ProductZoneControl.tsx +9 -9
- package/src/provider/location-input/LocationInput.tsx +40 -1
- package/src/provider/location-input/index.ts +1 -0
- package/src/provider/provider-form/ProviderForm.tsx +26 -2
- package/src/provider/venue-form/VenueForm.tsx +4 -1
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +4 -18
- package/src/recurring-date-picker-input/RecurringDatePickerInput.stories.tsx +11 -4
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +12 -1
- package/src/recurring-date-picker-input/utils.ts +91 -1
- package/src/sales/booking/results/components/ResultCard.tsx +0 -2
- package/src/setting/admin/AdminSetting.stories.tsx +1 -0
- package/src/setting/admin/AdminSettingForm.tsx +2 -2
- package/src/setting/system/SystemSetting.stories.tsx +1 -1
- package/src/snippet/snippet-template/preview/Preview.tsx +6 -0
- package/src/sortable-tree/SortableTreeItem.tsx +13 -1
- package/src/styles/auth/AccessDenied.scss +1 -1
- package/src/styles/back-button/BackButton.scss +25 -24
- package/src/styles/back-button/_index.scss +1 -1
- package/src/styles/company-user-form/UserForm.scss +4 -7
- package/src/styles/company-user-form/_index.scss +1 -1
- package/src/styles/custom-fields/CreateSortableListItem.scss +2 -1
- package/src/styles/custom-fields/_index.scss +1 -1
- package/src/styles/customers/Filter.scss +5 -5
- package/src/styles/events/EditEventModal.scss +1 -3
- package/src/styles/events/EventVenueMap.scss +7 -7
- package/src/styles/form/Input.scss +1 -1
- package/src/styles/header/Header.scss +1 -1
- package/src/styles/header/elements/CompanySelector.scss +2 -2
- package/src/styles/iframe-events/Calendar.scss +0 -1
- package/src/styles/iframe-events/CalendarSelect.scss +1 -1
- package/src/styles/iframe-events/CategoryStepsForm.scss +6 -7
- package/src/styles/iframe-events/Event.scss +2 -4
- package/src/styles/iframe-events/EventForm.scss +54 -54
- package/src/styles/iframe-events/EventNavigationFooter.scss +1 -0
- package/src/styles/iframe-events/TicketDescription.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/iframe-payments/PaymentForm.scss +1 -1
- package/src/styles/layout/BackgroundVideoContainer.scss +2 -2
- package/src/styles/notification/Notification.scss +1 -1
- package/src/styles/order-items-table/OrderItemsTable.scss +1 -2
- package/src/styles/product-set/CreateProductSetItem.scss +15 -13
- package/src/styles/product-set/DateAndRecurrenceInput.scss +6 -8
- package/src/styles/product-set/EditCategoryModal.scss +4 -4
- package/src/styles/product-set/EditProductModal.scss +3 -3
- package/src/styles/product-set/EditStepModal.scss +4 -4
- package/src/styles/product-set/EditVenueMapSetModal.scss +6 -6
- package/src/styles/product-set/ProductSetForm.scss +25 -2
- package/src/styles/product-set/TutorialGifCard.scss +1 -1
- package/src/styles/product-set/_index.scss +2 -2
- package/src/styles/report/ReportCard.scss +1 -0
- package/src/styles/report/_index.scss +1 -1
- package/src/styles/resources-blocking/_index.scss +4 -0
- package/src/styles/sales/BookingFilter.scss +2 -2
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/sales/BookingTabs.scss +7 -5
- package/src/styles/sales/Filters.scss +5 -4
- package/src/styles/sales/GuestProfile.scss +170 -175
- package/src/styles/sales/LifeTimeSales.scss +1 -1
- package/src/styles/sales/ManualBooking.scss +4 -2
- package/src/styles/snippet-templates/_snippetVariables.scss +63 -244
- package/src/styles/sortable-field/SortableField.scss +16 -16
- package/src/styles/sortable-field/_index.scss +1 -1
- package/src/styles/sortable-tree/Item.scss +4 -4
- package/src/styles/table/Table.scss +1 -1
- package/src/styles/themes/bookedit/_variables.scss +10 -32
- package/src/styles/themes/licklist/_variables.scss +1 -1
- package/src/styles/tiptap-editor/TiptapEditor.scss +9 -10
- package/src/styles/tiptap-editor/_index.scss +1 -1
- package/src/styles/venue-map-sets/VenueMapSetForm.scss +5 -4
- package/src/styles/virtualized/_index.scss +1 -1
- package/src/styles/zones/ZoneForm.scss +1 -0
- package/src/styles/zones/ZoneRecurrencesControl.scss +6 -8
- package/src/tiptap-editor/TipTapEditor.stories.tsx +6 -4
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.stories.tsx +5 -2
- package/src/zone/form/ZoneForm.tsx +3 -2
- package/src/zone/form/components/ZoneControl.tsx +3 -3
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +7 -5
- package/src/zone/form/utils/dates.ts +9 -10
- package/yarn.lock +103 -116
- package/dist/assets/iframe/selectArrow.svg.js +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SubProductsControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAIxD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAC;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACZ,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"SubProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SubProductsControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAIxD,UAAU,uBAAuB;IAC/B,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAC;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACZ,EAAE,uBAAuB,2CAyDzB"}
|
|
@@ -108,9 +108,6 @@ function SubProductsControl(param) {
|
|
|
108
108
|
images: (_subProducts_index = subProducts[index]) === null || _subProducts_index === void 0 ? void 0 : _subProducts_index.images
|
|
109
109
|
});
|
|
110
110
|
// @ts-expect-error TS2345
|
|
111
|
-
// @TODO fix prod type error
|
|
112
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
|
-
// @ts-ignore
|
|
114
111
|
append(subProductCopy);
|
|
115
112
|
}
|
|
116
113
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAG7F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAG7F,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,4CA6DvB,CAAC"}
|
|
@@ -35,9 +35,6 @@ var VenueMapsControl = function(param) {
|
|
|
35
35
|
url: image.url,
|
|
36
36
|
name: name,
|
|
37
37
|
points: points,
|
|
38
|
-
// @TODO fix prod type error
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
40
|
-
// @ts-ignore
|
|
41
38
|
products: products,
|
|
42
39
|
pointProducts: pointProducts,
|
|
43
40
|
onPointProductsChange: onPointProductsChange
|
|
@@ -3,7 +3,7 @@ interface useSortableTreeFunctionsProps {
|
|
|
3
3
|
remove: (index?: number | number[]) => void;
|
|
4
4
|
isOverrides?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const useSortableTreeFunctions: ({ fieldName, remove, }: useSortableTreeFunctionsProps) => {
|
|
6
|
+
export declare const useSortableTreeFunctions: ({ fieldName, remove, isOverrides, }: useSortableTreeFunctionsProps) => {
|
|
7
7
|
edit: (index: number) => void;
|
|
8
8
|
cancelChanges: (index: number) => void;
|
|
9
9
|
saveValidField: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSortableTreeFunctions.d.ts","sourceRoot":"","sources":["../../../src/product-set/hooks/useSortableTreeFunctions.ts"],"names":[],"mappings":"AAGA,UAAU,6BAA6B;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"useSortableTreeFunctions.d.ts","sourceRoot":"","sources":["../../../src/product-set/hooks/useSortableTreeFunctions.ts"],"names":[],"mappings":"AAGA,UAAU,6BAA6B;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,wBAAwB,wCAIlC,6BAA6B;kBAIT,MAAM;2BAOG,MAAM;;CAkBrC,CAAC"}
|
|
@@ -48,10 +48,11 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
48
48
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
49
49
|
}
|
|
50
50
|
var useSortableTreeFunctions = function(param) {
|
|
51
|
-
var fieldName = param.fieldName, remove = param.remove;
|
|
51
|
+
var fieldName = param.fieldName, remove = param.remove, isOverrides = param.isOverrides;
|
|
52
52
|
var _useFormContext = useFormContext(), getValues = _useFormContext.getValues, setValue = _useFormContext.setValue;
|
|
53
53
|
var _useState = _sliced_to_array(useState(null), 2), previousValue = _useState[0], setEditValue = _useState[1];
|
|
54
54
|
var edit = function(index) {
|
|
55
|
+
if (isOverrides) return;
|
|
55
56
|
var currentCategoryProduct = getValues("".concat(fieldName, ".").concat(index));
|
|
56
57
|
var cloneCategoryProduct = structuredClone(currentCategoryProduct);
|
|
57
58
|
setEditValue(cloneCategoryProduct);
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { TimeZonePath } from "@licklist/plugins";
|
|
2
|
+
export declare function LocationInput({ path }: {
|
|
3
|
+
path: TimeZonePath;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
2
5
|
//# sourceMappingURL=LocationInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationInput.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/LocationInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LocationInput.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/LocationInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AAKjE,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,2CAiF7D"}
|
|
@@ -3,6 +3,7 @@ import { useId } from '@react-aria/utils';
|
|
|
3
3
|
import { Form } from 'react-bootstrap';
|
|
4
4
|
import { useFormContext } from 'react-hook-form';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
+
import { useTimeZoneApi } from '@licklist/plugins';
|
|
6
7
|
import CountryCodeSelect from '../../static/CountryCodeSelect.js';
|
|
7
8
|
import { FormGroupControll } from './components/FormGroupControll.js';
|
|
8
9
|
|
|
@@ -58,11 +59,14 @@ function _object_spread_props(target, source) {
|
|
|
58
59
|
}
|
|
59
60
|
return target;
|
|
60
61
|
}
|
|
61
|
-
function LocationInput() {
|
|
62
|
-
var
|
|
62
|
+
function LocationInput(param) {
|
|
63
|
+
var path = param.path;
|
|
64
|
+
var _errors_location, _errors_location1, _errors_location2, _errors_location3, _errors_location_country, _errors_location4, _errors_location_timeZone, _errors_location5, _errors_location_timeZone1, _errors_location6;
|
|
63
65
|
var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors;
|
|
64
66
|
var t = useTranslation("Design").t;
|
|
67
|
+
var _useTimeZoneApi_useAll = useTimeZoneApi(path).useAll(), data = _useTimeZoneApi_useAll.data, isLoading = _useTimeZoneApi_useAll.isLoading;
|
|
65
68
|
var countryId = useId();
|
|
69
|
+
var timeZoneId = useId();
|
|
66
70
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
67
71
|
children: [
|
|
68
72
|
/*#__PURE__*/ jsx("input", _object_spread_props(_object_spread({}, register("location.latitude")), {
|
|
@@ -103,6 +107,46 @@ function LocationInput() {
|
|
|
103
107
|
error: errors === null || errors === void 0 ? void 0 : (_errors_location4 = errors.location) === null || _errors_location4 === void 0 ? void 0 : (_errors_location_country = _errors_location4.country) === null || _errors_location_country === void 0 ? void 0 : _errors_location_country.message
|
|
104
108
|
})
|
|
105
109
|
]
|
|
110
|
+
}),
|
|
111
|
+
/*#__PURE__*/ jsxs(Form.Group, {
|
|
112
|
+
controlId: timeZoneId,
|
|
113
|
+
children: [
|
|
114
|
+
/*#__PURE__*/ jsx(Form.Label, {
|
|
115
|
+
children: t("locationTimeZone")
|
|
116
|
+
}),
|
|
117
|
+
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({}, register("location.timeZone", {
|
|
118
|
+
required: t("Validation:fieldRequired", {
|
|
119
|
+
attribute: t("locationTimeZone")
|
|
120
|
+
})
|
|
121
|
+
})), {
|
|
122
|
+
as: "select",
|
|
123
|
+
custom: true,
|
|
124
|
+
isInvalid: Boolean(errors === null || errors === void 0 ? void 0 : (_errors_location5 = errors.location) === null || _errors_location5 === void 0 ? void 0 : (_errors_location_timeZone = _errors_location5.timeZone) === null || _errors_location_timeZone === void 0 ? void 0 : _errors_location_timeZone.message),
|
|
125
|
+
children: isLoading ? /*#__PURE__*/ jsx("option", {
|
|
126
|
+
value: "",
|
|
127
|
+
disabled: true,
|
|
128
|
+
children: t("loading")
|
|
129
|
+
}, "") : /*#__PURE__*/ jsxs(Fragment, {
|
|
130
|
+
children: [
|
|
131
|
+
/*#__PURE__*/ jsx("option", {
|
|
132
|
+
value: "",
|
|
133
|
+
disabled: true,
|
|
134
|
+
children: t("chooseTimeZone")
|
|
135
|
+
}, ""),
|
|
136
|
+
data.map(function(zone) {
|
|
137
|
+
return /*#__PURE__*/ jsx("option", {
|
|
138
|
+
value: zone.id,
|
|
139
|
+
children: zone.name
|
|
140
|
+
}, zone.id);
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
})
|
|
144
|
+
})),
|
|
145
|
+
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
146
|
+
type: "invalid",
|
|
147
|
+
children: errors === null || errors === void 0 ? void 0 : (_errors_location6 = errors.location) === null || _errors_location6 === void 0 ? void 0 : (_errors_location_timeZone1 = _errors_location6.timeZone) === null || _errors_location_timeZone1 === void 0 ? void 0 : _errors_location_timeZone1.message
|
|
148
|
+
})
|
|
149
|
+
]
|
|
106
150
|
})
|
|
107
151
|
]
|
|
108
152
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
2
|
+
import { TimeZonePath } from "@licklist/plugins";
|
|
2
3
|
import { CategoriesInputProps, CategoriesInputValues } from "../categories-input";
|
|
3
4
|
import { LocationInputValues } from "../location-input";
|
|
4
5
|
import { ProviderDetailsInputProps, ProviderDetailsInputValues } from "../provider-details-input";
|
|
@@ -11,6 +12,7 @@ export interface ProviderFormProps extends HasPermissionProp {
|
|
|
11
12
|
companiesOptions?: TypeaheadOptions[];
|
|
12
13
|
onSubmit: (values: ProviderFormValues) => void;
|
|
13
14
|
intent?: "create" | "update";
|
|
15
|
+
path: TimeZonePath;
|
|
14
16
|
}
|
|
15
|
-
export declare function ProviderForm({ defaultValues, categories, companiesOptions, linkTypes, onSubmit, intent, hasPermission, }: ProviderFormProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function ProviderForm({ defaultValues, categories, companiesOptions, linkTypes, onSubmit, intent, hasPermission, path, }: ProviderFormProps): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
//# sourceMappingURL=ProviderForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderForm.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-form/ProviderForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,GACzD,mBAAmB,GACnB,qBAAqB,CAAC;AAExB,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"ProviderForm.d.ts","sourceRoot":"","sources":["../../../src/provider/provider-form/ProviderForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,OAAO,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AAGjE,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,GACzD,mBAAmB,GACnB,qBAAqB,CAAC;AAExB,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC7B,IAAI,EAAE,YAAY,CAAC;CACpB;AAOD,wBAAgB,YAAY,CAAC,EAC3B,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,MAAiB,EACjB,aAAoB,EACpB,IAAI,GACL,EAAE,iBAAiB,2CAgInB"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
3
|
import { Form, Accordion, Button, Spinner } from 'react-bootstrap';
|
|
4
4
|
import { useForm, FormProvider } from 'react-hook-form';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { IMAGE_TYPE_MAP, IMAGE_TYPE_IMAGE, IMAGE_TYPE_COVER } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
7
7
|
import { useMultipleImages } from '@licklist/plugins/dist/hooks/Media/useMultipleImages';
|
|
8
|
+
import { ENDPOINTS } from '@licklist/core/dist/Config';
|
|
9
|
+
import { useTimeZoneApi } from '@licklist/plugins';
|
|
10
|
+
import { DateTime } from 'luxon';
|
|
8
11
|
import { CollapsibleInputGroup } from '../../collapsible-input-group/CollapsibleInputGroup.js';
|
|
9
12
|
import { CategoriesInput } from '../categories-input/CategoriesInput.js';
|
|
10
13
|
import { CategoriesInputDescription } from '../categories-input/CategoriesInputDescription.js';
|
|
@@ -116,12 +119,28 @@ var providerImageTypes = {
|
|
|
116
119
|
uploadCover: IMAGE_TYPE_MAP[IMAGE_TYPE_COVER]
|
|
117
120
|
};
|
|
118
121
|
function ProviderForm(param) {
|
|
119
|
-
var defaultValues = param.defaultValues, categories = param.categories, companiesOptions = param.companiesOptions, linkTypes = param.linkTypes, onSubmit = param.onSubmit, _param_intent = param.intent, intent = _param_intent === void 0 ? "update" : _param_intent, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission;
|
|
120
|
-
var _errors_location_country, _errors_location;
|
|
122
|
+
var defaultValues = param.defaultValues, categories = param.categories, companiesOptions = param.companiesOptions, linkTypes = param.linkTypes, onSubmit = param.onSubmit, _param_intent = param.intent, intent = _param_intent === void 0 ? "update" : _param_intent, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, path = param.path;
|
|
123
|
+
var _data_find_id, _data_find, _errors_location_country, _errors_location;
|
|
124
|
+
var data = useTimeZoneApi(ENDPOINTS.TIME_ZONE_ADMIN).useAll().data;
|
|
125
|
+
var defaultTimeZone = data === null || data === void 0 ? void 0 : (_data_find = data.find(function(zone) {
|
|
126
|
+
return zone.name === DateTime.now().zoneName;
|
|
127
|
+
})) === null || _data_find === void 0 ? void 0 : (_data_find_id = _data_find.id) === null || _data_find_id === void 0 ? void 0 : _data_find_id.toString();
|
|
121
128
|
var form = useForm({
|
|
122
|
-
defaultValues: defaultValues
|
|
129
|
+
defaultValues: defaultValues !== null && defaultValues !== void 0 ? defaultValues : {
|
|
130
|
+
location: {
|
|
131
|
+
timeZone: defaultTimeZone
|
|
132
|
+
}
|
|
133
|
+
}
|
|
123
134
|
});
|
|
124
135
|
var setValue = form.setValue, handleSubmit = form.handleSubmit, _form_formState = form.formState, isSubmitting = _form_formState.isSubmitting, errors = _form_formState.errors, getValues = form.getValues;
|
|
136
|
+
useEffect(function() {
|
|
137
|
+
if (!defaultValues.location.timeZone) {
|
|
138
|
+
setValue("location.timeZone", defaultTimeZone);
|
|
139
|
+
}
|
|
140
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
141
|
+
}, [
|
|
142
|
+
defaultTimeZone
|
|
143
|
+
]);
|
|
125
144
|
var t = useTranslation("Design").t;
|
|
126
145
|
var _useState = _sliced_to_array(useState(null), 2), initialImages = _useState[0], setInitialImages = _useState[1];
|
|
127
146
|
var _useMultipleImages = useMultipleImages(initialImages), images = _useMultipleImages.images, handleImageRemove = _useMultipleImages.handleImageRemove, handleImageUploading = _useMultipleImages.handleImageUploading, isImagesLoading = _useMultipleImages.isImagesLoading, isCoverImagesLoading = _useMultipleImages.isCoverImagesLoading;
|
|
@@ -158,7 +177,9 @@ function ProviderForm(param) {
|
|
|
158
177
|
label: t("location"),
|
|
159
178
|
description: /*#__PURE__*/ jsx(LocationInputDescription, {}),
|
|
160
179
|
error: errors === null || errors === void 0 ? void 0 : (_errors_location = errors.location) === null || _errors_location === void 0 ? void 0 : (_errors_location_country = _errors_location.country) === null || _errors_location_country === void 0 ? void 0 : _errors_location_country.message,
|
|
161
|
-
children: /*#__PURE__*/ jsx(LocationInput, {
|
|
180
|
+
children: /*#__PURE__*/ jsx(LocationInput, {
|
|
181
|
+
path: path
|
|
182
|
+
})
|
|
162
183
|
}),
|
|
163
184
|
categories && categories.length > 0 && /*#__PURE__*/ jsx(CollapsibleInputGroup, {
|
|
164
185
|
eventKey: "categories",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
2
|
+
import { TimeZonePath } from "@licklist/plugins";
|
|
2
3
|
import { CategoriesInputProps, CategoriesInputValues } from "../categories-input";
|
|
3
4
|
import { LocationInputValues } from "../location-input";
|
|
4
5
|
import { ProviderDetailsInputProps, ProviderDetailsInputValues } from "../provider-details-input";
|
|
@@ -14,6 +15,7 @@ export interface VenueFormProps extends HasPermissionProp {
|
|
|
14
15
|
intent?: "create" | "update";
|
|
15
16
|
isLoading?: boolean;
|
|
16
17
|
errorResponse?: unknown;
|
|
18
|
+
path: TimeZonePath;
|
|
17
19
|
}
|
|
18
|
-
export declare function VenueForm({ defaultValues, categories, linkTypes, companiesOptions, onSubmit, intent, hasPermission, isLoading, errorResponse, }: VenueFormProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function VenueForm({ defaultValues, categories, linkTypes, companiesOptions, onSubmit, intent, hasPermission, isLoading, errorResponse, path, }: VenueFormProps): import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
//# sourceMappingURL=VenueForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueForm.d.ts","sourceRoot":"","sources":["../../../src/provider/venue-form/VenueForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"VenueForm.d.ts","sourceRoot":"","sources":["../../../src/provider/venue-form/VenueForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,MAAM,MAAM,eAAe,GAAG,0BAA0B,GACtD,mBAAmB,GACnB,uBAAuB,GACvB,qBAAqB,CAAC;AAExB,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,YAAY,CAAC;CACpB;AAOD,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAqB,EACrB,QAAQ,EACR,MAAiB,EACjB,aAAoB,EACpB,SAAS,EACT,aAAa,EACb,IAAI,GACL,EAAE,cAAc,2CAmKhB"}
|
|
@@ -119,7 +119,7 @@ var providerImageTypes = {
|
|
|
119
119
|
uploadCover: IMAGE_TYPE_MAP[IMAGE_TYPE_COVER]
|
|
120
120
|
};
|
|
121
121
|
function VenueForm(param) {
|
|
122
|
-
var defaultValues = param.defaultValues, categories = param.categories, linkTypes = param.linkTypes, _param_companiesOptions = param.companiesOptions, companiesOptions = _param_companiesOptions === void 0 ? [] : _param_companiesOptions, onSubmit = param.onSubmit, _param_intent = param.intent, intent = _param_intent === void 0 ? "update" : _param_intent, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, isLoading = param.isLoading, errorResponse = param.errorResponse;
|
|
122
|
+
var defaultValues = param.defaultValues, categories = param.categories, linkTypes = param.linkTypes, _param_companiesOptions = param.companiesOptions, companiesOptions = _param_companiesOptions === void 0 ? [] : _param_companiesOptions, onSubmit = param.onSubmit, _param_intent = param.intent, intent = _param_intent === void 0 ? "update" : _param_intent, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, isLoading = param.isLoading, errorResponse = param.errorResponse, path = param.path;
|
|
123
123
|
var _errors_location, _errors_workingHours, _errors_categories;
|
|
124
124
|
var form = useForm({
|
|
125
125
|
defaultValues: defaultValues,
|
|
@@ -186,7 +186,9 @@ function VenueForm(param) {
|
|
|
186
186
|
error: (errors === null || errors === void 0 ? void 0 : (_errors_location = errors.location) === null || _errors_location === void 0 ? void 0 : _errors_location.message) || (errors === null || errors === void 0 ? void 0 : errors.location) && t("Validation:isNotValidField", {
|
|
187
187
|
attribute: "The location data"
|
|
188
188
|
}),
|
|
189
|
-
children: /*#__PURE__*/ jsx(LocationInput, {
|
|
189
|
+
children: /*#__PURE__*/ jsx(LocationInput, {
|
|
190
|
+
path: path
|
|
191
|
+
})
|
|
190
192
|
}),
|
|
191
193
|
/*#__PURE__*/ jsx(CollapsibleInputGroup, {
|
|
192
194
|
eventKey: "workingHours",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkingHoursInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/working-hours-input/WorkingHoursInputDescription.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkingHoursInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/working-hours-input/WorkingHoursInputDescription.tsx"],"names":[],"mappings":"AAMA,wBAAgB,4BAA4B,4CA4B3C"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { DateTime } from 'luxon';
|
|
3
2
|
import { Row, Col } from 'react-bootstrap';
|
|
4
3
|
import { useFormContext } from 'react-hook-form';
|
|
5
4
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
7
5
|
import { useWeekdays } from './utils.js';
|
|
8
6
|
|
|
9
7
|
function WorkingHoursInputDescription() {
|
|
@@ -32,12 +30,10 @@ function WorkingHoursInputDescription() {
|
|
|
32
30
|
]
|
|
33
31
|
}),
|
|
34
32
|
/*#__PURE__*/ jsx(Col, {
|
|
35
|
-
children:
|
|
36
|
-
start:
|
|
37
|
-
end:
|
|
38
|
-
})
|
|
39
|
-
start: DateTime.fromISO(weekday.start).toFormat(TIME_FORMAT)
|
|
40
|
-
}) : null
|
|
33
|
+
children: t("timeInterval", {
|
|
34
|
+
start: weekday.start,
|
|
35
|
+
end: weekday.end
|
|
36
|
+
})
|
|
41
37
|
})
|
|
42
38
|
]
|
|
43
39
|
}, i);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { Frequency, Weekday } from "rrule";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
|
+
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
4
5
|
import { SupportedFrequency } from "./utils";
|
|
5
6
|
export interface RecurringDatePickerInputProps {
|
|
6
7
|
disabled?: boolean;
|
|
@@ -10,6 +11,7 @@ export interface RecurringDatePickerInputProps {
|
|
|
10
11
|
initialFrequency?: Frequency;
|
|
11
12
|
setInitialStartDateAfterSelect?: boolean;
|
|
12
13
|
minDate?: string;
|
|
14
|
+
workHours: WorkHour[] | undefined;
|
|
13
15
|
}
|
|
14
16
|
export interface RecurringDatePickerInputValues {
|
|
15
17
|
rrule?: string;
|
|
@@ -24,6 +26,6 @@ export interface RecurringDatePickerInputValues {
|
|
|
24
26
|
count?: number;
|
|
25
27
|
withOutEndDate?: boolean;
|
|
26
28
|
}
|
|
27
|
-
export declare function RecurringDatePickerInput({ disabled, onChange, onDelete, defaultValues, initialFrequency, setInitialStartDateAfterSelect, children, minDate, }: PropsWithChildren<RecurringDatePickerInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function RecurringDatePickerInput({ disabled, onChange, onDelete, defaultValues, initialFrequency, setInitialStartDateAfterSelect, children, minDate, workHours, }: PropsWithChildren<RecurringDatePickerInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
28
30
|
export declare const getDateTimeObject: (date: string, time: string) => DateTime | string;
|
|
29
31
|
//# sourceMappingURL=RecurringDatePickerInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurringDatePickerInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurringDatePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RecurringDatePickerInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurringDatePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAC;AAU3C,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAGtF,OAAO,EAEL,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAIjB,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACxD,QAAQ,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,8BAA8B;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,wBAAwB,CAAC,EACvC,QAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,gBAAkC,EAClC,8BAAsC,EACtC,QAAQ,EACR,OAAO,EACP,SAAS,GACV,EAAE,iBAAiB,CAAC,6BAA6B,CAAC,2CA8LlD;AAmGD,eAAO,MAAM,iBAAiB,SACtB,MAAM,QACN,MAAM,KACX,QAAQ,GAAG,MAiBb,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { useForm, FormProvider } from 'react-hook-form';
|
|
|
11
11
|
import { Form } from 'react-bootstrap';
|
|
12
12
|
import RecurrenceIntervalAndFrequencyInput from './RecurrenceIntervalAndFrequencyInput.js';
|
|
13
13
|
import RecurrenceWeekdaysInput from './RecurrenceWeekdaysInput.js';
|
|
14
|
-
import { parseAndValidateRRule } from './utils.js';
|
|
14
|
+
import { useWorkHoursValidation, parseAndValidateRRule } from './utils.js';
|
|
15
15
|
import { ConfirmModal } from '../modals/confirmation/ConfirmModal.js';
|
|
16
16
|
import { DeleteFieldButton } from '../product-set/elements/DeleteFieldButton.js';
|
|
17
17
|
|
|
@@ -133,7 +133,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
133
133
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
134
134
|
}
|
|
135
135
|
function RecurringDatePickerInput(param) {
|
|
136
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, onChange = param.onChange, onDelete = param.onDelete, defaultValues = param.defaultValues, _param_initialFrequency = param.initialFrequency, initialFrequency = _param_initialFrequency === void 0 ? Frequency.DAILY : _param_initialFrequency, _param_setInitialStartDateAfterSelect = param.setInitialStartDateAfterSelect, setInitialStartDateAfterSelect = _param_setInitialStartDateAfterSelect === void 0 ? false : _param_setInitialStartDateAfterSelect, children = param.children, minDate = param.minDate;
|
|
136
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, onChange = param.onChange, onDelete = param.onDelete, defaultValues = param.defaultValues, _param_initialFrequency = param.initialFrequency, initialFrequency = _param_initialFrequency === void 0 ? Frequency.DAILY : _param_initialFrequency, _param_setInitialStartDateAfterSelect = param.setInitialStartDateAfterSelect, setInitialStartDateAfterSelect = _param_setInitialStartDateAfterSelect === void 0 ? false : _param_setInitialStartDateAfterSelect, children = param.children, minDate = param.minDate, workHours = param.workHours;
|
|
137
137
|
var t = useTranslation([
|
|
138
138
|
"Design"
|
|
139
139
|
]).t;
|
|
@@ -163,6 +163,7 @@ function RecurringDatePickerInput(param) {
|
|
|
163
163
|
endTime: endTime,
|
|
164
164
|
byWeekDay: byWeekDay
|
|
165
165
|
});
|
|
166
|
+
var validator = useWorkHoursValidation(byWeekDay, workHours);
|
|
166
167
|
var onSubmit = function(nextState) {
|
|
167
168
|
var end = getDateTimeObject(endDate, endTime || "23:59:59");
|
|
168
169
|
// Sometimes ge get there an object of Weekday
|
|
@@ -241,7 +242,9 @@ function RecurringDatePickerInput(param) {
|
|
|
241
242
|
}),
|
|
242
243
|
/*#__PURE__*/ jsx(RecurrenceIntervalAndFrequencyInput, {
|
|
243
244
|
disabled: disabled,
|
|
244
|
-
minDate: minDate
|
|
245
|
+
minDate: minDate,
|
|
246
|
+
startTimeRules: validator,
|
|
247
|
+
endTimeRules: validator
|
|
245
248
|
}),
|
|
246
249
|
children,
|
|
247
250
|
/*#__PURE__*/ jsxs("div", {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
2
|
+
import { Validate } from "react-hook-form";
|
|
1
3
|
import { Frequency, Weekday } from "rrule";
|
|
2
4
|
export declare const getWeekdayForFrequency: ({ date, frequency, }: {
|
|
3
5
|
date: string;
|
|
@@ -15,4 +17,7 @@ export declare const parseAndValidateRRule: ({ rrule, date, }: {
|
|
|
15
17
|
rrule: string;
|
|
16
18
|
date: string;
|
|
17
19
|
}) => ParsedRRuleOptions;
|
|
20
|
+
export declare const useWorkHoursValidation: (byWeekDay: Weekday[], workHours: WorkHour[] | undefined) => {
|
|
21
|
+
validate?: Validate<string>;
|
|
22
|
+
};
|
|
18
23
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/utils.ts"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,sBAAsB,yBAGhC;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;CACtB,KAAG,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAGtF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,sBAAsB,yBAGhC;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;CACtB,KAAG,OAWH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,MAAM,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,qBAAqB,qBAG/B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,KAoEM,kBACN,CAAC;AAEF,eAAO,MAAM,sBAAsB,cACtB,OAAO,EAAE,aACT,QAAQ,EAAE,GAAG,SAAS,KAChC;IAED,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CA6E7B,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TIME_FORMAT, TIME_FULL_FORMAT } from '@licklist/core/dist/Config';
|
|
2
|
+
import { fromFormat } from '@licklist/plugins/dist/utils/dateTime';
|
|
3
|
+
import { Interval, DateTime } from 'luxon';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
2
5
|
import RRule, { Frequency, Weekday } from 'rrule';
|
|
3
6
|
|
|
4
7
|
var getWeekdayForFrequency = function(param) {
|
|
5
8
|
var date = param.date, frequency = param.frequency;
|
|
6
9
|
var parsedDate = DateTime.fromISO(date);
|
|
7
|
-
return new Weekday(parsedDate.weekday - 1,
|
|
10
|
+
return new Weekday(parsedDate.weekday - 1, // eslint-disable-next-line no-nested-ternary
|
|
11
|
+
frequency !== Frequency.MONTHLY ? undefined : parsedDate.day + 7 > parsedDate.daysInMonth ? -1 : Math.floor(parsedDate.day / 7) + 1);
|
|
8
12
|
};
|
|
9
13
|
var parseAndValidateRRule = function(param) {
|
|
10
14
|
var rrule = param.rrule, date = param.date;
|
|
@@ -69,5 +73,73 @@ var parseAndValidateRRule = function(param) {
|
|
|
69
73
|
until: options.until
|
|
70
74
|
};
|
|
71
75
|
};
|
|
76
|
+
var useWorkHoursValidation = function() {
|
|
77
|
+
var byWeekDay = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], workHours = arguments.length > 1 ? arguments[1] : void 0;
|
|
78
|
+
var t = useTranslation("Validation").t;
|
|
79
|
+
if (!workHours) return {};
|
|
80
|
+
var fromTimeFormat = fromFormat(TIME_FORMAT);
|
|
81
|
+
var fromTimeFullFormat = fromFormat(TIME_FULL_FORMAT);
|
|
82
|
+
// map every day to array of intervals describing workhours for that day
|
|
83
|
+
var intervalsByDay = workHours.map(function(workhour, index, self) {
|
|
84
|
+
var res = [];
|
|
85
|
+
var startTime = fromTimeFormat(workhour.start);
|
|
86
|
+
var endTime = fromTimeFormat(workhour.end);
|
|
87
|
+
if (endTime > startTime) {
|
|
88
|
+
res.push(Interval.fromDateTimes(startTime, endTime));
|
|
89
|
+
} else {
|
|
90
|
+
// if end is before start, then it means that end is on the next day
|
|
91
|
+
// so count only to the end of current day
|
|
92
|
+
res.push(Interval.fromDateTimes(startTime, startTime.endOf("day")));
|
|
93
|
+
}
|
|
94
|
+
var prevIndex = index === 0 ? self.length - 1 : index - 1;
|
|
95
|
+
var prevStartTime = fromTimeFormat(self[prevIndex].start);
|
|
96
|
+
var prevEndTime = fromTimeFormat(self[prevIndex].end);
|
|
97
|
+
// if prevStartTime > prevEndTime then it means that prevEndTime is on the current day
|
|
98
|
+
// so we need to add interval from start of current day to prevEndTime
|
|
99
|
+
if (prevStartTime > prevEndTime) {
|
|
100
|
+
res.push(Interval.fromDateTimes(prevEndTime.startOf("day"), prevEndTime));
|
|
101
|
+
}
|
|
102
|
+
return res;
|
|
103
|
+
});
|
|
104
|
+
// if length === 0 or length === 7 then all workhours are selected, no need to filter
|
|
105
|
+
if (![
|
|
106
|
+
0,
|
|
107
|
+
7
|
|
108
|
+
].includes(byWeekDay.length)) {
|
|
109
|
+
intervalsByDay = intervalsByDay.filter(function(_, index) {
|
|
110
|
+
return byWeekDay.find(function(param) {
|
|
111
|
+
var weekday = param.weekday;
|
|
112
|
+
return weekday === index;
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
validate: function(_time) {
|
|
118
|
+
// workaround for issue with form values
|
|
119
|
+
// default values and entered values have different formats
|
|
120
|
+
var time = fromTimeFormat(_time).isValid ? fromTimeFormat(_time) : fromTimeFullFormat(_time);
|
|
121
|
+
var notFittingIntervalsByDay = intervalsByDay.reduce(function(acc, intervalsByDay) {
|
|
122
|
+
if (!intervalsByDay.some(function(interval) {
|
|
123
|
+
return interval.contains(time);
|
|
124
|
+
})) {
|
|
125
|
+
acc.push(intervalsByDay);
|
|
126
|
+
}
|
|
127
|
+
return acc;
|
|
128
|
+
}, []);
|
|
129
|
+
var notFittingIntervals = notFittingIntervalsByDay.flat().filter(function(interval) {
|
|
130
|
+
return !interval.contains(time);
|
|
131
|
+
});
|
|
132
|
+
var attribute = notFittingIntervals.map(function(interval) {
|
|
133
|
+
return interval.toFormat("HH:mm");
|
|
134
|
+
}).join(", ");
|
|
135
|
+
if (notFittingIntervalsByDay.length !== 0) {
|
|
136
|
+
return t("outsideWorkingHours", {
|
|
137
|
+
attribute: attribute
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
};
|
|
72
144
|
|
|
73
|
-
export { getWeekdayForFrequency, parseAndValidateRRule };
|
|
145
|
+
export { getWeekdayForFrequency, parseAndValidateRRule, useWorkHoursValidation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAO1E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;
|
|
1
|
+
{"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAO1E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,oDAKpB,eAAe,4CA2FjB,CAAC"}
|
|
@@ -10,8 +10,6 @@ import { formatDateStringForEvent } from '@licklist/plugins/dist/utils/formatDat
|
|
|
10
10
|
import { getOrderSourceTitle } from '@licklist/plugins/dist/utils/sourceTitle';
|
|
11
11
|
import { FaUser } from 'react-icons/fa';
|
|
12
12
|
|
|
13
|
-
// @TODO integrate when API will be available
|
|
14
|
-
// activity and staff keys
|
|
15
13
|
var ResultCard = function(param) {
|
|
16
14
|
var order = param.order, className = param.className, staffMember = param.staffMember, onCardClick = param.onCardClick;
|
|
17
15
|
var _products_map, _user_userDetail, _user_userDetail1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
2
|
-
import {
|
|
2
|
+
import { ProvidableType } from "@licklist/core/dist/DataMapper/Provider/ProvidableDataMapper";
|
|
3
3
|
import { PaymentFeeFormFieldValues } from "./PaymentFeeForm";
|
|
4
4
|
import { Currency } from "../../types/currency";
|
|
5
5
|
export type AdminSettingFormFieldValues = {
|
|
@@ -18,7 +18,7 @@ export interface AdminSettingFormProps extends HasPermissionProp {
|
|
|
18
18
|
providerMetadata: {
|
|
19
19
|
country?: string;
|
|
20
20
|
providableId?: number;
|
|
21
|
-
providerType?:
|
|
21
|
+
providerType?: ProvidableType;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export declare const AdminSettingForm: ({ isLoading, defaultValues, onSubmit, currencies, hasPermission, providerMetadata, }: AdminSettingFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAOvF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAOvF,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAE9F,OAAO,EAAkB,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,MAAM,2BAA2B,GAAG;IACxC,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,IAAI,GAAG,OAAO,CAAC;IAC/B,oBAAoB,EAAE,IAAI,GAAG,OAAO,CAAC;IACrC,+BAA+B,EAAE,IAAI,GAAG,OAAO,CAAC;IAChD,0BAA0B,EAAE,IAAI,GAAG,OAAO,CAAC;CAC5C,GAAG,yBAAyB,CAAC;AAE9B,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7B,gBAAgB,EAAE;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,cAAc,CAAC;KAC/B,CAAC;CACH;AAED,eAAO,MAAM,gBAAgB,yFAO1B,qBAAqB,4CAmJvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAsB,GACvB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAsB,GACvB,EAAE,YAAY,2CAsWd"}
|
|
@@ -466,6 +466,7 @@ function Preview(param) {
|
|
|
466
466
|
productCategoryId: 57,
|
|
467
467
|
productGroupId: null,
|
|
468
468
|
availableQuantity: 980,
|
|
469
|
+
zoneId: null,
|
|
469
470
|
name: "Cofee",
|
|
470
471
|
description: "",
|
|
471
472
|
price: 15,
|
|
@@ -474,6 +475,8 @@ function Preview(param) {
|
|
|
474
475
|
maxQuantity: 15,
|
|
475
476
|
totalQuantity: 980,
|
|
476
477
|
type: "sale",
|
|
478
|
+
capacity: 0,
|
|
479
|
+
duration: 0,
|
|
477
480
|
weight: 0,
|
|
478
481
|
isAvailable: true,
|
|
479
482
|
isSoldOut: false,
|
|
@@ -492,6 +495,7 @@ function Preview(param) {
|
|
|
492
495
|
productCategoryId: 57,
|
|
493
496
|
productGroupId: null,
|
|
494
497
|
availableQuantity: 980,
|
|
498
|
+
zoneId: null,
|
|
495
499
|
name: "Cofee 2",
|
|
496
500
|
description: "",
|
|
497
501
|
price: 15,
|
|
@@ -500,6 +504,8 @@ function Preview(param) {
|
|
|
500
504
|
maxQuantity: 15,
|
|
501
505
|
totalQuantity: 980,
|
|
502
506
|
type: "sale",
|
|
507
|
+
capacity: 0,
|
|
508
|
+
duration: 0,
|
|
503
509
|
weight: 0,
|
|
504
510
|
isAvailable: true,
|
|
505
511
|
isSoldOut: false,
|