@pisell/private-materials 3.0.12 → 3.0.14
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +12 -12
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/components/booking/components/TabProduct/index.js +8 -10
- package/es/components/booking/components/TabProduct/index.less +8 -8
- package/es/components/booking/components/TabProduct/tabs/index.js +10 -9
- package/es/components/booking/components/TabProduct/tabs/index.less +15 -13
- package/es/components/booking/components/addButton/index.d.ts +8 -8
- package/es/components/booking/components/addButton/index.js +1 -1
- package/es/components/booking/components/customSelect/index.js +1 -1
- package/es/components/booking/components/drawer/index.d.ts +2 -1
- package/es/components/booking/components/drawer/index.js +5 -2
- package/es/components/booking/components/drawer/index.less +6 -0
- package/es/components/booking/components/footer/FooterMenus/index.js +1 -1
- package/es/components/booking/components/footer/index.js +23 -21
- package/es/components/booking/components/footer/utils.js +4 -3
- package/es/components/booking/forms/forms.js +2 -1
- package/es/components/booking/info/client/index.js +0 -1
- package/es/components/booking/info/date/index.less +1 -1
- package/es/components/booking/info/index.js +10 -4
- package/es/components/booking/info/pet/index.js +5 -7
- package/es/components/booking/info/service/addService/index.js +27 -11
- package/es/components/booking/info/service/editService/index.js +8 -7
- package/es/components/booking/info/service/index.js +1 -1
- package/es/components/booking/info/service/index.less +3 -0
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +3 -0
- package/es/components/booking/model.d.ts +11 -0
- package/es/components/booking/utils.js +2 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/productExtension/card/index.d.ts +10 -0
- package/es/components/productExtension/card/index.js +20 -0
- package/es/components/productExtension/card/index.less +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/es/components/productExtension/fields/Actor/Container/index.js +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +94 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/es/components/productExtension/fields/Actor/index.js +23 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/es/components/productExtension/fields/Forms/index.js +184 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +30 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/es/components/productExtension/fields/SelectProducts/index.js +91 -0
- package/es/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/es/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/es/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/es/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +29 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.js +198 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.js +5072 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +49 -0
- package/es/components/productExtension/fields/index.d.ts +1 -0
- package/es/components/productExtension/fields/index.js +33 -0
- package/es/components/productExtension/index.d.ts +7 -0
- package/es/components/productExtension/index.js +77 -0
- package/es/components/productExtension/index.less +0 -0
- package/es/components/productExtension/locales.d.ts +48 -0
- package/es/components/productExtension/locales.js +47 -0
- package/es/components/productExtension/server.d.ts +1 -0
- package/es/components/productExtension/server.js +29 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +11 -0
- package/es/components/schedules/calendar/calendarItem.js +64 -0
- package/es/components/schedules/calendar/index.d.ts +4 -0
- package/es/components/schedules/calendar/index.js +176 -0
- package/es/components/schedules/calendar/index.less +167 -0
- package/es/components/schedules/calendar/serve.d.ts +12 -0
- package/es/components/schedules/calendar/serve.js +24 -0
- package/es/components/schedules/calendar/utils.d.ts +7 -0
- package/es/components/schedules/calendar/utils.js +25 -0
- package/es/components/schedules/components/Card/index.d.ts +6 -0
- package/es/components/schedules/components/Card/index.js +10 -0
- package/es/components/schedules/components/Card/index.less +5 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +8 -0
- package/es/components/schedules/components/CurrentDay/index.js +52 -0
- package/es/components/schedules/components/CurrentDay/index.less +37 -0
- package/es/components/schedules/components/CurrentDay/serve.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/serve.js +26 -0
- package/es/components/schedules/components/CurrentDay/utils.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/utils.js +6 -0
- package/es/components/schedules/components/DropdownSort/index.d.ts +3 -0
- package/es/components/schedules/components/DropdownSort/index.js +43 -0
- package/es/components/schedules/components/ResourceList/index.d.ts +14 -0
- package/es/components/schedules/components/ResourceList/index.js +32 -0
- package/es/components/schedules/components/ResourceList/index.less +21 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +16 -0
- package/es/components/schedules/components/ScheduleDetailList/index.js +87 -0
- package/es/components/schedules/components/ScheduleDetailList/index.less +40 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +20 -0
- package/es/components/schedules/components/ScheduleList/index.js +69 -0
- package/es/components/schedules/components/ScheduleList/index.less +38 -0
- package/es/components/schedules/components/Search/index.d.ts +8 -0
- package/es/components/schedules/components/Search/index.js +33 -0
- package/es/components/schedules/constants.d.ts +1 -0
- package/es/components/schedules/constants.js +1 -0
- package/es/components/schedules/hooks/useSchedulesDataSource.d.ts +10 -0
- package/es/components/schedules/hooks/useSchedulesDataSource.js +41 -0
- package/es/components/schedules/index.d.ts +3 -0
- package/es/components/schedules/index.js +168 -0
- package/es/components/schedules/index.less +50 -0
- package/es/components/schedules/locales.d.ts +84 -0
- package/es/components/schedules/locales.js +83 -0
- package/es/components/schedules/model.d.ts +78 -0
- package/es/components/schedules/model.js +72 -0
- package/es/components/schedules/openHours/index.d.ts +4 -0
- package/es/components/schedules/openHours/index.js +40 -0
- package/es/components/schedules/openHours/index.less +6 -0
- package/es/components/schedules/openHours/serve.d.ts +1 -0
- package/es/components/schedules/openHours/serve.js +24 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +11 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +36 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.less +3 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +5 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +50 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.less +0 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +4 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +85 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +6 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +14 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +124 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.less +3 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +7 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.js +39 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.less +18 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +4 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.js +8 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.less +0 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +4 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +248 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.less +3 -0
- package/es/components/schedules/products/index.d.ts +4 -0
- package/es/components/schedules/products/index.js +77 -0
- package/es/components/schedules/products/index.less +21 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +10 -0
- package/es/components/schedules/products/list/ProductItem/index.js +37 -0
- package/es/components/schedules/products/list/ProductItem/index.less +59 -0
- package/es/components/schedules/products/list/index.d.ts +8 -0
- package/es/components/schedules/products/list/index.js +120 -0
- package/es/components/schedules/products/list/index.less +7 -0
- package/es/components/schedules/products/serve.d.ts +22 -0
- package/es/components/schedules/products/serve.js +145 -0
- package/es/components/schedules/products/utils.d.ts +103 -0
- package/es/components/schedules/products/utils.js +346 -0
- package/es/components/schedules/resources/add/index.d.ts +3 -0
- package/es/components/schedules/resources/add/index.js +61 -0
- package/es/components/schedules/resources/detail/detailContent.d.ts +4 -0
- package/es/components/schedules/resources/detail/detailContent.js +113 -0
- package/es/components/schedules/resources/detail/index.d.ts +4 -0
- package/es/components/schedules/resources/detail/index.js +158 -0
- package/es/components/schedules/resources/detail/index.less +126 -0
- package/es/components/schedules/resources/index.d.ts +4 -0
- package/es/components/schedules/resources/index.js +213 -0
- package/es/components/schedules/resources/index.less +52 -0
- package/es/components/schedules/resources/list/index.d.ts +9 -0
- package/es/components/schedules/resources/list/index.js +30 -0
- package/es/components/schedules/resources/list/index.less +26 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +7 -0
- package/es/components/schedules/resources/relationProduct/index.js +30 -0
- package/es/components/schedules/resources/relationProduct/index.less +0 -0
- package/es/components/schedules/resources/serve.d.ts +5 -0
- package/es/components/schedules/resources/serve.js +106 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +15 -0
- package/es/components/schedules/schedules/AllSchedules/index.js +56 -0
- package/es/components/schedules/schedules/AllSchedules/index.less +17 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +20 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +183 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.less +43 -0
- package/es/components/schedules/schedules/Schedules.d.ts +30 -0
- package/es/components/schedules/schedules/Schedules.js +56 -0
- package/es/components/schedules/schedules/SchedulesForDay/index.d.ts +19 -0
- package/es/components/schedules/schedules/SchedulesForDay/index.js +31 -0
- package/es/components/schedules/schedules/index.d.ts +3 -0
- package/es/components/schedules/schedules/index.js +206 -0
- package/es/components/schedules/schedules/index.less +4 -0
- package/es/components/schedules/schedules/serve.d.ts +9 -0
- package/es/components/schedules/schedules/serve.js +43 -0
- package/es/components/schedules/schedules/utils.d.ts +50 -0
- package/es/components/schedules/schedules/utils.js +658 -0
- package/es/components/schedules/type.d.ts +150 -0
- package/es/components/schedules/type.js +1 -0
- package/es/components/schedules/utils.d.ts +22 -0
- package/es/components/schedules/utils.js +56 -0
- package/es/components/selectModal/index.d.ts +24 -0
- package/es/components/selectModal/index.js +108 -0
- package/es/components/selectModal/index.less +0 -0
- package/es/components/tabProduct/card/index.d.ts +7 -0
- package/es/components/tabProduct/card/index.js +11 -0
- package/es/components/tabProduct/card/index.less +16 -0
- package/es/components/tabProduct/index.d.ts +15 -0
- package/es/components/tabProduct/index.js +141 -0
- package/es/components/tabProduct/index.less +48 -0
- package/es/components/tabProduct/tabs/index.d.ts +21 -0
- package/es/components/tabProduct/tabs/index.js +218 -0
- package/es/components/tabProduct/tabs/index.less +125 -0
- package/es/hooks/useComponents.js +4 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/utils/index.d.ts +22 -0
- package/es/utils/index.js +56 -0
- package/lib/components/booking/components/TabProduct/index.js +24 -17
- package/lib/components/booking/components/TabProduct/index.less +8 -8
- package/lib/components/booking/components/TabProduct/tabs/index.js +19 -9
- package/lib/components/booking/components/TabProduct/tabs/index.less +15 -13
- package/lib/components/booking/components/addButton/index.d.ts +8 -8
- package/lib/components/booking/components/addButton/index.js +1 -1
- package/lib/components/booking/components/customSelect/index.js +1 -1
- package/lib/components/booking/components/drawer/index.d.ts +2 -1
- package/lib/components/booking/components/drawer/index.js +11 -2
- package/lib/components/booking/components/drawer/index.less +6 -0
- package/lib/components/booking/components/footer/FooterMenus/index.js +1 -1
- package/lib/components/booking/components/footer/index.js +3 -1
- package/lib/components/booking/components/footer/utils.js +4 -2
- package/lib/components/booking/forms/forms.js +1 -1
- package/lib/components/booking/info/client/index.js +0 -1
- package/lib/components/booking/info/date/index.less +1 -1
- package/lib/components/booking/info/index.js +7 -1
- package/lib/components/booking/info/pet/index.js +5 -7
- package/lib/components/booking/info/service/addService/index.js +25 -10
- package/lib/components/booking/info/service/editService/index.js +7 -5
- package/lib/components/booking/info/service/index.js +1 -1
- package/lib/components/booking/info/service/index.less +3 -0
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +3 -0
- package/lib/components/booking/model.d.ts +11 -0
- package/lib/components/booking/utils.js +2 -1
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +8 -2
- package/lib/components/productExtension/card/index.d.ts +10 -0
- package/lib/components/productExtension/card/index.js +57 -0
- package/lib/components/productExtension/card/index.less +34 -0
- package/lib/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/lib/components/productExtension/fields/Actor/Container/index.js +64 -0
- package/lib/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.js +128 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/lib/components/productExtension/fields/Actor/index.js +56 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Forms/index.js +108 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +65 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/lib/components/productExtension/fields/SelectProducts/index.js +111 -0
- package/lib/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/lib/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/server.js +33 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.js +179 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.js +12723 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.js +39 -0
- package/lib/components/productExtension/fields/index.d.ts +1 -0
- package/lib/components/productExtension/fields/index.js +69 -0
- package/lib/components/productExtension/index.d.ts +7 -0
- package/lib/components/productExtension/index.js +108 -0
- package/lib/components/productExtension/index.less +0 -0
- package/lib/components/productExtension/locales.d.ts +48 -0
- package/lib/components/productExtension/locales.js +71 -0
- package/lib/components/productExtension/server.d.ts +1 -0
- package/lib/components/productExtension/server.js +33 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +11 -0
- package/lib/components/schedules/calendar/calendarItem.js +91 -0
- package/lib/components/schedules/calendar/index.d.ts +4 -0
- package/lib/components/schedules/calendar/index.js +179 -0
- package/lib/components/schedules/calendar/index.less +167 -0
- package/lib/components/schedules/calendar/serve.d.ts +12 -0
- package/lib/components/schedules/calendar/serve.js +30 -0
- package/lib/components/schedules/calendar/utils.d.ts +7 -0
- package/lib/components/schedules/calendar/utils.js +51 -0
- package/lib/components/schedules/components/Card/index.d.ts +6 -0
- package/lib/components/schedules/components/Card/index.js +41 -0
- package/lib/components/schedules/components/Card/index.less +5 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +8 -0
- package/lib/components/schedules/components/CurrentDay/index.js +80 -0
- package/lib/components/schedules/components/CurrentDay/index.less +37 -0
- package/lib/components/schedules/components/CurrentDay/serve.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/serve.js +30 -0
- package/lib/components/schedules/components/CurrentDay/utils.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/utils.js +44 -0
- package/lib/components/schedules/components/DropdownSort/index.d.ts +3 -0
- package/lib/components/schedules/components/DropdownSort/index.js +74 -0
- package/lib/components/schedules/components/ResourceList/index.d.ts +14 -0
- package/lib/components/schedules/components/ResourceList/index.js +66 -0
- package/lib/components/schedules/components/ResourceList/index.less +21 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +16 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.js +90 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.less +40 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +20 -0
- package/lib/components/schedules/components/ScheduleList/index.js +97 -0
- package/lib/components/schedules/components/ScheduleList/index.less +38 -0
- package/lib/components/schedules/components/Search/index.d.ts +8 -0
- package/lib/components/schedules/components/Search/index.js +56 -0
- package/lib/components/schedules/constants.d.ts +1 -0
- package/lib/components/schedules/constants.js +36 -0
- package/lib/components/schedules/hooks/useSchedulesDataSource.d.ts +10 -0
- package/lib/components/schedules/hooks/useSchedulesDataSource.js +48 -0
- package/lib/components/schedules/index.d.ts +3 -0
- package/lib/components/schedules/index.js +148 -0
- package/lib/components/schedules/index.less +50 -0
- package/lib/components/schedules/locales.d.ts +84 -0
- package/lib/components/schedules/locales.js +107 -0
- package/lib/components/schedules/model.d.ts +78 -0
- package/lib/components/schedules/model.js +85 -0
- package/lib/components/schedules/openHours/index.d.ts +4 -0
- package/lib/components/schedules/openHours/index.js +74 -0
- package/lib/components/schedules/openHours/index.less +6 -0
- package/lib/components/schedules/openHours/serve.d.ts +1 -0
- package/lib/components/schedules/openHours/serve.js +30 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +11 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +62 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.less +3 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +5 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +73 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.less +0 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +4 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +108 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +6 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +14 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +145 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.less +3 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +7 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.js +66 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.less +18 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +4 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.js +40 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.less +0 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +4 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.js +218 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.less +3 -0
- package/lib/components/schedules/products/index.d.ts +4 -0
- package/lib/components/schedules/products/index.js +105 -0
- package/lib/components/schedules/products/index.less +21 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +10 -0
- package/lib/components/schedules/products/list/ProductItem/index.js +73 -0
- package/lib/components/schedules/products/list/ProductItem/index.less +59 -0
- package/lib/components/schedules/products/list/index.d.ts +8 -0
- package/lib/components/schedules/products/list/index.js +139 -0
- package/lib/components/schedules/products/list/index.less +7 -0
- package/lib/components/schedules/products/serve.d.ts +22 -0
- package/lib/components/schedules/products/serve.js +64 -0
- package/lib/components/schedules/products/utils.d.ts +103 -0
- package/lib/components/schedules/products/utils.js +263 -0
- package/lib/components/schedules/resources/add/index.d.ts +3 -0
- package/lib/components/schedules/resources/add/index.js +87 -0
- package/lib/components/schedules/resources/detail/detailContent.d.ts +4 -0
- package/lib/components/schedules/resources/detail/detailContent.js +127 -0
- package/lib/components/schedules/resources/detail/index.d.ts +4 -0
- package/lib/components/schedules/resources/detail/index.js +150 -0
- package/lib/components/schedules/resources/detail/index.less +126 -0
- package/lib/components/schedules/resources/index.d.ts +4 -0
- package/lib/components/schedules/resources/index.js +209 -0
- package/lib/components/schedules/resources/index.less +52 -0
- package/lib/components/schedules/resources/list/index.d.ts +9 -0
- package/lib/components/schedules/resources/list/index.js +68 -0
- package/lib/components/schedules/resources/list/index.less +26 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +7 -0
- package/lib/components/schedules/resources/relationProduct/index.js +56 -0
- package/lib/components/schedules/resources/relationProduct/index.less +0 -0
- package/lib/components/schedules/resources/serve.d.ts +5 -0
- package/lib/components/schedules/resources/serve.js +42 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +15 -0
- package/lib/components/schedules/schedules/AllSchedules/index.js +68 -0
- package/lib/components/schedules/schedules/AllSchedules/index.less +17 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +20 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.js +168 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.less +43 -0
- package/lib/components/schedules/schedules/Schedules.d.ts +30 -0
- package/lib/components/schedules/schedules/Schedules.js +101 -0
- package/lib/components/schedules/schedules/SchedulesForDay/index.d.ts +19 -0
- package/lib/components/schedules/schedules/SchedulesForDay/index.js +64 -0
- package/lib/components/schedules/schedules/index.d.ts +3 -0
- package/lib/components/schedules/schedules/index.js +226 -0
- package/lib/components/schedules/schedules/index.less +4 -0
- package/lib/components/schedules/schedules/serve.d.ts +9 -0
- package/lib/components/schedules/schedules/serve.js +33 -0
- package/lib/components/schedules/schedules/utils.d.ts +50 -0
- package/lib/components/schedules/schedules/utils.js +556 -0
- package/lib/components/schedules/type.d.ts +150 -0
- package/lib/components/schedules/type.js +17 -0
- package/lib/components/schedules/utils.d.ts +22 -0
- package/lib/components/schedules/utils.js +59 -0
- package/lib/components/selectModal/index.d.ts +24 -0
- package/lib/components/selectModal/index.js +133 -0
- package/lib/components/selectModal/index.less +0 -0
- package/lib/components/tabProduct/card/index.d.ts +7 -0
- package/lib/components/tabProduct/card/index.js +53 -0
- package/lib/components/tabProduct/card/index.less +16 -0
- package/lib/components/tabProduct/index.d.ts +15 -0
- package/lib/components/tabProduct/index.js +141 -0
- package/lib/components/tabProduct/index.less +48 -0
- package/lib/components/tabProduct/tabs/index.d.ts +21 -0
- package/lib/components/tabProduct/tabs/index.js +177 -0
- package/lib/components/tabProduct/tabs/index.less +125 -0
- package/lib/hooks/useComponents.js +3 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -2
- package/lib/utils/index.d.ts +22 -0
- package/lib/utils/index.js +59 -0
- package/lowcode/product-extension/meta.ts +120 -0
- package/lowcode/schedules/meta.ts +83 -0
- package/package.json +3 -3
|
@@ -99,6 +99,7 @@ var Tabs = ({ renderTab, rowKey, name = "tabs-", onChange, tab, className, optio
|
|
|
99
99
|
};
|
|
100
100
|
const setTabScroll = (val) => {
|
|
101
101
|
let dom = document.querySelector("#pisell-tabs-content");
|
|
102
|
+
console.log("domdom", dom);
|
|
102
103
|
if (!dom) {
|
|
103
104
|
return;
|
|
104
105
|
}
|
|
@@ -119,20 +120,20 @@ var Tabs = ({ renderTab, rowKey, name = "tabs-", onChange, tab, className, optio
|
|
|
119
120
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
120
121
|
"div",
|
|
121
122
|
{
|
|
122
|
-
className: "pisell-tabs-btn-left",
|
|
123
|
+
className: "booking-pisell-tabs-btn-left",
|
|
123
124
|
style: { width: leftWidth, marginLeft: !leftWidth ? "20px" : 0 },
|
|
124
125
|
onClick: () => {
|
|
125
126
|
onPageChange("left");
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
|
-
/* @__PURE__ */ import_react.default.createElement(import_ChevronRight.default, { className: "pisell-tabs-btn-icon" })
|
|
129
|
+
/* @__PURE__ */ import_react.default.createElement(import_ChevronRight.default, { className: "booking-pisell-tabs-btn-icon" })
|
|
129
130
|
);
|
|
130
131
|
}, [leftWidth]);
|
|
131
132
|
const rightBtn = (0, import_react.useMemo)(() => {
|
|
132
133
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
133
134
|
"div",
|
|
134
135
|
{
|
|
135
|
-
className: "pisell-tabs-btn-right",
|
|
136
|
+
className: "booking-pisell-tabs-btn-right",
|
|
136
137
|
style: { width: rightWidth, marginRight: !rightWidth ? "20px" : 0 },
|
|
137
138
|
onClick: () => {
|
|
138
139
|
onPageChange("right");
|
|
@@ -142,7 +143,7 @@ var Tabs = ({ renderTab, rowKey, name = "tabs-", onChange, tab, className, optio
|
|
|
142
143
|
import_ChevronLeft.default,
|
|
143
144
|
{
|
|
144
145
|
type: "icona-iconArrowsLine",
|
|
145
|
-
className: "pisell-tabs-btn-icon"
|
|
146
|
+
className: "booking-pisell-tabs-btn-icon"
|
|
146
147
|
}
|
|
147
148
|
)
|
|
148
149
|
);
|
|
@@ -151,7 +152,7 @@ var Tabs = ({ renderTab, rowKey, name = "tabs-", onChange, tab, className, optio
|
|
|
151
152
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
152
153
|
"div",
|
|
153
154
|
{
|
|
154
|
-
className: "pisell-tabs-content",
|
|
155
|
+
className: "booking-pisell-tabs-content",
|
|
155
156
|
id: "pisell-tabs-content",
|
|
156
157
|
onScroll
|
|
157
158
|
},
|
|
@@ -160,8 +161,8 @@ var Tabs = ({ renderTab, rowKey, name = "tabs-", onChange, tab, className, optio
|
|
|
160
161
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
161
162
|
"div",
|
|
162
163
|
{
|
|
163
|
-
className: (0, import_classnames.default)("pisell-tabs-tab", {
|
|
164
|
-
"pisell-tabs-tab-active": tab === _key
|
|
164
|
+
className: (0, import_classnames.default)("booking-pisell-tabs-tab", {
|
|
165
|
+
"booking-pisell-tabs-tab-active": tab === _key
|
|
165
166
|
}),
|
|
166
167
|
key: _key,
|
|
167
168
|
id: name + "" + _key,
|
|
@@ -169,11 +170,20 @@ var Tabs = ({ renderTab, rowKey, name = "tabs-", onChange, tab, className, optio
|
|
|
169
170
|
_onChange(_key, d, e);
|
|
170
171
|
}
|
|
171
172
|
},
|
|
172
|
-
renderTab ? renderTab(d) : /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-tabs-tab-content" }, d.name)
|
|
173
|
+
renderTab ? renderTab(d) : /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-pisell-tabs-tab-content" }, d.name)
|
|
173
174
|
);
|
|
174
175
|
})
|
|
175
176
|
);
|
|
176
177
|
}, [_options, rowKey, name, tab]);
|
|
177
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
178
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
179
|
+
"div",
|
|
180
|
+
{
|
|
181
|
+
className: (0, import_classnames.default)("booking-pisell-tabs", className),
|
|
182
|
+
id: "pisell-tabs"
|
|
183
|
+
},
|
|
184
|
+
isShowButton && leftBtn,
|
|
185
|
+
content,
|
|
186
|
+
isShowButton && rightBtn
|
|
187
|
+
);
|
|
178
188
|
};
|
|
179
189
|
var tabs_default = (0, import_react.forwardRef)(Tabs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.pisell-tabs {
|
|
1
|
+
.booking-pisell-tabs {
|
|
2
2
|
display: flex;
|
|
3
3
|
-webkit-box-align: center;
|
|
4
4
|
align-items: center;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
color: #0d1619;
|
|
10
10
|
cursor: default;
|
|
11
11
|
|
|
12
|
-
.pisell-tabs-btn-left,
|
|
13
|
-
.pisell-tabs-btn-right {
|
|
12
|
+
.booking-pisell-tabs-btn-left,
|
|
13
|
+
.booking-pisell-tabs-btn-right {
|
|
14
14
|
-webkit-box-flex: 0;
|
|
15
15
|
flex-grow: 0;
|
|
16
16
|
flex-shrink: 0;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
user-select: none;
|
|
31
31
|
|
|
32
|
-
.pisell-tabs-btn-icon {
|
|
32
|
+
.booking-pisell-tabs-btn-icon {
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
background: #f1f1f1;
|
|
@@ -42,9 +42,11 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.pisell-tabs-btn-left {
|
|
45
|
+
.booking-pisell-tabs-btn-left {
|
|
46
|
+
transform: rotate(180deg);
|
|
47
|
+
}
|
|
46
48
|
|
|
47
|
-
.pisell-tabs-btn-right {
|
|
49
|
+
.booking-pisell-tabs-btn-right {
|
|
48
50
|
/* White */
|
|
49
51
|
|
|
50
52
|
background: #ffffff;
|
|
@@ -52,12 +54,12 @@
|
|
|
52
54
|
|
|
53
55
|
// box-shadow: 0px 6px 15px -3px rgba(0, 0, 0, 0.15);
|
|
54
56
|
|
|
55
|
-
.pisell-tabs-btn-icon {
|
|
57
|
+
.booking-pisell-tabs-btn-icon {
|
|
56
58
|
transform: rotate(180deg);
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
.pisell-tabs-content {
|
|
62
|
+
.booking-pisell-tabs-content {
|
|
61
63
|
width: 100%;
|
|
62
64
|
max-width: none;
|
|
63
65
|
overflow: scroll hidden;
|
|
@@ -80,13 +82,13 @@
|
|
|
80
82
|
display: none;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
.pisell-tabs-tab {
|
|
85
|
+
.booking-pisell-tabs-tab {
|
|
84
86
|
scroll-snap-align: start;
|
|
85
87
|
white-space: initial;
|
|
86
88
|
flex-shrink: 0;
|
|
87
89
|
cursor: pointer;
|
|
88
90
|
|
|
89
|
-
.pisell-tabs-tab-content {
|
|
91
|
+
.booking-pisell-tabs-tab-content {
|
|
90
92
|
display: inline-flex;
|
|
91
93
|
height: 40px;
|
|
92
94
|
padding: 0px 16px;
|
|
@@ -105,13 +107,13 @@
|
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
&:hover {
|
|
108
|
-
.pisell-tabs-tab-content {
|
|
110
|
+
.booking-pisell-tabs-tab-content {
|
|
109
111
|
background-color: #f1f1f1;
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
&.pisell-tabs-tab-active {
|
|
114
|
-
.pisell-tabs-tab-content {
|
|
115
|
+
&.booking-pisell-tabs-tab-active {
|
|
116
|
+
.booking-pisell-tabs-tab-content {
|
|
115
117
|
color: #fff;
|
|
116
118
|
background: var(--primary-600, #7F56D9);
|
|
117
119
|
}
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import React from "react";
|
|
9
9
|
import "./index.less";
|
|
10
|
-
interface AddButtonProps {
|
|
11
|
-
onClick
|
|
12
|
-
title
|
|
13
|
-
subTitle
|
|
14
|
-
showSub
|
|
15
|
-
style
|
|
16
|
-
disabled
|
|
17
|
-
loading
|
|
10
|
+
export interface AddButtonProps {
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
title?: string;
|
|
13
|
+
subTitle?: string;
|
|
14
|
+
showSub?: boolean;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
loading?: boolean;
|
|
18
18
|
}
|
|
19
19
|
declare const AddButton: React.FC<AddButtonProps>;
|
|
20
20
|
export default AddButton;
|
|
@@ -304,7 +304,7 @@ var CustomSelect = (props, ref) => {
|
|
|
304
304
|
import_antd.Checkbox,
|
|
305
305
|
{
|
|
306
306
|
className: "custom-select-checkbox",
|
|
307
|
-
checked: (0, import_utils.getItemByArray)(_value, item,
|
|
307
|
+
checked: (0, import_utils.getItemByArray)(_value, item, rowKey)
|
|
308
308
|
}
|
|
309
309
|
), optionRender(item))
|
|
310
310
|
)
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DrawerProps } from "antd";
|
|
3
3
|
import "./index.less";
|
|
4
|
-
interface PisellDrawerProps extends DrawerProps {
|
|
4
|
+
export interface PisellDrawerProps extends DrawerProps {
|
|
5
5
|
header?: React.ReactNode;
|
|
6
|
+
titleNoWrap?: boolean;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
9
|
* @title: 自定义抽屉
|
|
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_ArrowLeft = __toESM(require("@pisell/icon/es/ArrowLeft"));
|
|
38
38
|
var import_index = require("./index.less");
|
|
39
|
+
var import_classnames = __toESM(require("classnames"));
|
|
39
40
|
var Drawer = (props) => {
|
|
40
41
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
41
42
|
import_antd.Drawer,
|
|
@@ -49,7 +50,7 @@ var Drawer = (props) => {
|
|
|
49
50
|
push: false,
|
|
50
51
|
mask: false
|
|
51
52
|
},
|
|
52
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-drawer-title-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-lowcode__booking-drawer-title-wrap") }, /* @__PURE__ */ import_react.default.createElement(
|
|
53
54
|
import_ArrowLeft.default,
|
|
54
55
|
{
|
|
55
56
|
className: "pisell-lowcode__booking-drawer-back",
|
|
@@ -58,7 +59,15 @@ var Drawer = (props) => {
|
|
|
58
59
|
(_a = props.onClose) == null ? void 0 : _a.call(props, e);
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
62
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: (0, import_classnames.default)("pisell-lowcode__booking-drawer-title", {
|
|
66
|
+
"pisell-lowcode__booking-drawer-title-no-wrap": props.titleNoWrap
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
props.title
|
|
70
|
+
), props.header),
|
|
62
71
|
/* @__PURE__ */ import_react.default.createElement("div", null, props.children)
|
|
63
72
|
);
|
|
64
73
|
};
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
z-index: 2;
|
|
9
9
|
padding: 24px 32px 0 32px;
|
|
10
10
|
|
|
11
|
+
|
|
12
|
+
|
|
11
13
|
.pisell-lowcode__booking-drawer-back {
|
|
12
14
|
font-size: 32px;
|
|
13
15
|
color: #000000;
|
|
@@ -30,4 +32,8 @@
|
|
|
30
32
|
&::-webkit-scrollbar {
|
|
31
33
|
display: block;
|
|
32
34
|
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pisell-lowcode__booking-drawer-title-no-wrap {
|
|
38
|
+
display: inline;
|
|
33
39
|
}
|
|
@@ -39,7 +39,7 @@ var import_utils = require("@pisell/utils");
|
|
|
39
39
|
var FooterMenus = ({ state, dispatch }) => {
|
|
40
40
|
const items = (0, import_react.useMemo)(() => {
|
|
41
41
|
let list = [];
|
|
42
|
-
if (state.bookingId) {
|
|
42
|
+
if (state.bookingId && state.renderType !== "eventBooking") {
|
|
43
43
|
list.push({
|
|
44
44
|
label: import_utils.locales.getText("pisell2.text.rebook"),
|
|
45
45
|
key: "rebook"
|
|
@@ -145,6 +145,8 @@ var Footer = (props) => {
|
|
|
145
145
|
var _a2;
|
|
146
146
|
let _setLoading = type === "checkout" ? setCheckoutLoading : setLoading;
|
|
147
147
|
_setLoading(true);
|
|
148
|
+
const editApi = state.renderType === "eventBooking" ? state.apis.editEventBooking : state.apis.editBooking;
|
|
149
|
+
const createApi = state.renderType === "eventBooking" ? state.apis.createEventBooking : state.apis.createBooking;
|
|
148
150
|
let saveOtherValue = {};
|
|
149
151
|
if (type === "save") {
|
|
150
152
|
saveOtherValue = await ((_a2 = state == null ? void 0 : state.onSave) == null ? void 0 : _a2.call(state, state.client)) || {};
|
|
@@ -152,7 +154,7 @@ var Footer = (props) => {
|
|
|
152
154
|
try {
|
|
153
155
|
let callbackData = null;
|
|
154
156
|
let values = (0, import_utils2.formatValues)({ ...state, ...saveOtherValue });
|
|
155
|
-
const api = state.bookingId ?
|
|
157
|
+
const api = state.bookingId ? editApi : createApi;
|
|
156
158
|
if (addonsEdit) {
|
|
157
159
|
await handleSaveAddons();
|
|
158
160
|
}
|
|
@@ -44,6 +44,7 @@ var formatCustomer = (data) => {
|
|
|
44
44
|
};
|
|
45
45
|
var formatBookings = (data) => {
|
|
46
46
|
const list = data.service.value;
|
|
47
|
+
const eventOtherParams = data.eventOtherParams;
|
|
47
48
|
let bookings = [];
|
|
48
49
|
bookings = list.map((item) => {
|
|
49
50
|
let start_date = item._extend.startDate.format("YYYY-MM-DD");
|
|
@@ -77,7 +78,8 @@ var formatBookings = (data) => {
|
|
|
77
78
|
"end_date": end_date,
|
|
78
79
|
"start_date": start_date,
|
|
79
80
|
"duration": import_utils.flexibleObj.getValue(item._extend.duration),
|
|
80
|
-
"number": item._extend.number || 1
|
|
81
|
+
"number": item._extend.number || 1,
|
|
82
|
+
...eventOtherParams || {}
|
|
81
83
|
};
|
|
82
84
|
});
|
|
83
85
|
return bookings;
|
|
@@ -99,7 +101,7 @@ var formatHolder = (data, values) => {
|
|
|
99
101
|
var formatValues = (state) => {
|
|
100
102
|
var _a;
|
|
101
103
|
let values = {
|
|
102
|
-
type: "appointment_booking",
|
|
104
|
+
type: state.renderType === "eventBooking" ? "event_booking_v2" : "appointment_booking",
|
|
103
105
|
platform: "shop",
|
|
104
106
|
sales_channel: "my_pisel",
|
|
105
107
|
bookings: [],
|
|
@@ -122,7 +122,6 @@ var Info = () => {
|
|
|
122
122
|
[import_utils.locales.localeMap]
|
|
123
123
|
);
|
|
124
124
|
const handleSelectClient = (value) => {
|
|
125
|
-
console.log("valuevalue", value);
|
|
126
125
|
let _value = (value == null ? void 0 : value[value.length - 1]) || import_model.walkInData;
|
|
127
126
|
if (_value.loading) {
|
|
128
127
|
return;
|
|
@@ -96,11 +96,17 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
+
const header = (0, import_react.useMemo)(() => {
|
|
100
|
+
if ((globalState == null ? void 0 : globalState.renderType) === "eventBooking") {
|
|
101
|
+
return import_utils.locales.getText("pisell2.text.enroll");
|
|
102
|
+
}
|
|
103
|
+
return (globalState == null ? void 0 : globalState.bookingId) ? /* @__PURE__ */ import_react.default.createElement(import_header.default, { state: modal.state, dispatch: modal.dispatch }) : import_utils.locales.getText("pisell2.text.new-appointment");
|
|
104
|
+
}, [globalState == null ? void 0 : globalState.bookingId, modal.state, modal.dispatch, globalState == null ? void 0 : globalState.renderType]);
|
|
99
105
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !!modal.state.setGlobalState ? /* @__PURE__ */ import_react.default.createElement(
|
|
100
106
|
import_tabPane.default,
|
|
101
107
|
{
|
|
102
108
|
style,
|
|
103
|
-
header
|
|
109
|
+
header,
|
|
104
110
|
footer: /* @__PURE__ */ import_react.default.createElement(
|
|
105
111
|
import_footer.default,
|
|
106
112
|
{
|
|
@@ -42,7 +42,7 @@ var import_forms = __toESM(require("../../forms/forms"));
|
|
|
42
42
|
var import_format = require("../../forms/format");
|
|
43
43
|
var import_utils2 = require("../../utils");
|
|
44
44
|
var Pet = () => {
|
|
45
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
46
46
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
47
47
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
48
48
|
const [valueLoading, setValueLoading] = (0, import_react.useState)(false);
|
|
@@ -87,7 +87,6 @@ var Pet = () => {
|
|
|
87
87
|
});
|
|
88
88
|
setLoading(false);
|
|
89
89
|
};
|
|
90
|
-
console.log("values", (_d = state.pet) == null ? void 0 : _d.value);
|
|
91
90
|
const getForms = async (isUpdateValue = true) => {
|
|
92
91
|
var _a2, _b2;
|
|
93
92
|
setLoading(true);
|
|
@@ -100,7 +99,7 @@ var Pet = () => {
|
|
|
100
99
|
}
|
|
101
100
|
try {
|
|
102
101
|
let formData = await state.apis.getForms({
|
|
103
|
-
relation_type: "appointment_booking",
|
|
102
|
+
relation_type: state.renderType === "eventBooking" ? "event_booking_v2" : "appointment_booking",
|
|
104
103
|
relation_id: ((_b2 = (_a2 = state.bookingDetail) == null ? void 0 : _a2.bookings) == null ? void 0 : _b2.id) || 0
|
|
105
104
|
// _config: { useCache: true },
|
|
106
105
|
});
|
|
@@ -197,7 +196,7 @@ var Pet = () => {
|
|
|
197
196
|
type: "setPet",
|
|
198
197
|
payload: { value: changeFormValuesData }
|
|
199
198
|
});
|
|
200
|
-
}, [(
|
|
199
|
+
}, [(_d = state.client.value) == null ? void 0 : _d.id]);
|
|
201
200
|
(0, import_react.useEffect)(() => {
|
|
202
201
|
if (state.bookingId) {
|
|
203
202
|
if (!state.bookingDetail) {
|
|
@@ -212,9 +211,8 @@ var Pet = () => {
|
|
|
212
211
|
state.bookingDetail,
|
|
213
212
|
params.form_id,
|
|
214
213
|
params.type,
|
|
215
|
-
(
|
|
214
|
+
(_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.id
|
|
216
215
|
]);
|
|
217
|
-
console.log("state.pet.formData", state.pet.formData);
|
|
218
216
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-wraps" }, /* @__PURE__ */ import_react.default.createElement(
|
|
219
217
|
import_forms.default,
|
|
220
218
|
{
|
|
@@ -229,7 +227,7 @@ var Pet = () => {
|
|
|
229
227
|
modalOpen: state.modalOpen,
|
|
230
228
|
value: state.pet.value,
|
|
231
229
|
onChange: onValueChange,
|
|
232
|
-
client: (
|
|
230
|
+
client: (_g = state.client) == null ? void 0 : _g.value,
|
|
233
231
|
customSelectProps: {
|
|
234
232
|
// loading: loading,
|
|
235
233
|
handleViewItem,
|
|
@@ -47,15 +47,17 @@ var Info = () => {
|
|
|
47
47
|
const [search, setSearch] = (0, import_react.useState)("");
|
|
48
48
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
49
49
|
const getServices = async () => {
|
|
50
|
+
var _a2;
|
|
50
51
|
let data = await state.apis.getServices({
|
|
51
52
|
skip: 1,
|
|
52
53
|
num: 500,
|
|
53
|
-
extension_type: ["product_appointment"],
|
|
54
|
+
extension_type: state.renderType === "eventBooking" ? void 0 : ["product_appointment"],
|
|
54
55
|
with: ["category"],
|
|
55
56
|
// include_formula: "no",
|
|
56
57
|
// include_bundle: "no",
|
|
57
58
|
// include_option: "no",
|
|
58
59
|
// include_variant: "no",
|
|
60
|
+
ids: state.renderType === "eventBooking" ? (_a2 = state.eventOtherParams) == null ? void 0 : _a2.productIds : void 0,
|
|
59
61
|
open_quotation: 1,
|
|
60
62
|
with_schedule: 0
|
|
61
63
|
});
|
|
@@ -113,7 +115,6 @@ var Info = () => {
|
|
|
113
115
|
search ? (item) => isIncludes(item.title) : void 0
|
|
114
116
|
);
|
|
115
117
|
}, [search, (_a = state.service) == null ? void 0 : _a.services]);
|
|
116
|
-
console.log("renderList", renderList);
|
|
117
118
|
const isService = (0, import_react.useMemo)(() => {
|
|
118
119
|
return state.service.value.length > 0;
|
|
119
120
|
}, [state.service.value]);
|
|
@@ -128,15 +129,29 @@ var Info = () => {
|
|
|
128
129
|
const showAddButton = (0, import_react.useMemo)(() => {
|
|
129
130
|
return !state.disabledEdit && !state.channelDisabledEdit;
|
|
130
131
|
}, [state.disabledEdit, state.channelDisabledEdit]);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
const addButton = (0, import_react.useMemo)(() => {
|
|
133
|
+
if (state.renderType === "eventBooking") {
|
|
134
|
+
return isService ? /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } }) : /* @__PURE__ */ import_react.default.createElement(
|
|
135
|
+
import_addButton.default,
|
|
136
|
+
{
|
|
137
|
+
showSub: false,
|
|
138
|
+
title: import_utils2.locales.getText("pisell2.text.add-a-service"),
|
|
139
|
+
subTitle: import_utils2.locales.getText("pisell2.text.add-another-service"),
|
|
140
|
+
onClick: handleSelectService
|
|
141
|
+
}
|
|
142
|
+
);
|
|
138
143
|
}
|
|
139
|
-
|
|
144
|
+
return showAddButton ? /* @__PURE__ */ import_react.default.createElement(
|
|
145
|
+
import_addButton.default,
|
|
146
|
+
{
|
|
147
|
+
showSub: isService,
|
|
148
|
+
title: import_utils2.locales.getText("pisell2.text.add-a-service"),
|
|
149
|
+
subTitle: import_utils2.locales.getText("pisell2.text.add-another-service"),
|
|
150
|
+
onClick: handleSelectService
|
|
151
|
+
}
|
|
152
|
+
) : /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } });
|
|
153
|
+
}, [state.renderType, showAddButton, isService, state.service.value]);
|
|
154
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, addButton, /* @__PURE__ */ import_react.default.createElement(
|
|
140
155
|
import_drawer.default,
|
|
141
156
|
{
|
|
142
157
|
open: state.service.addModal,
|
|
@@ -277,7 +277,9 @@ var Info = () => {
|
|
|
277
277
|
if (state.service.editModal) {
|
|
278
278
|
let cacheItem = state.service.cacheItem;
|
|
279
279
|
form.setFieldsValue((0, import_utils2.getServerItemExtend)(state, cacheItem, timeObj));
|
|
280
|
-
|
|
280
|
+
if (state.renderType !== "eventBooking") {
|
|
281
|
+
getResources();
|
|
282
|
+
}
|
|
281
283
|
} else {
|
|
282
284
|
form.resetFields();
|
|
283
285
|
}
|
|
@@ -292,10 +294,10 @@ var Info = () => {
|
|
|
292
294
|
return (0, import_utils2.getErrorList)(currentResource, getCurrentCacheItem());
|
|
293
295
|
}, [currentResource, useDuration, useStartTime]);
|
|
294
296
|
(0, import_ahooks.useUpdateEffect)(() => {
|
|
295
|
-
if (useStartTime && useDuration) {
|
|
297
|
+
if (useStartTime && useDuration && state.renderType !== "eventBooking") {
|
|
296
298
|
getResources();
|
|
297
299
|
}
|
|
298
|
-
}, [useStartTime, useDuration]);
|
|
300
|
+
}, [useStartTime, useDuration, state.renderType]);
|
|
299
301
|
(0, import_react.useEffect)(() => {
|
|
300
302
|
setEditData();
|
|
301
303
|
}, [state.service.editModal, setEditData]);
|
|
@@ -398,7 +400,7 @@ var Info = () => {
|
|
|
398
400
|
name: "discount_reason"
|
|
399
401
|
},
|
|
400
402
|
/* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
|
|
401
|
-
)) : null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
403
|
+
)) : null, state.renderType !== "eventBooking" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
402
404
|
import_antd.Form.Item,
|
|
403
405
|
{
|
|
404
406
|
label: import_utils.locales.getText("pisell2.text.start_time"),
|
|
@@ -463,7 +465,7 @@ var Info = () => {
|
|
|
463
465
|
)
|
|
464
466
|
)
|
|
465
467
|
))
|
|
466
|
-
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "like_status" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Input, null)))), errorList.map((d, i) => {
|
|
468
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null)), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "like_status" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Input, null))))), state.renderType !== "eventBooking" && errorList.map((d, i) => {
|
|
467
469
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
468
470
|
import_antd.Alert,
|
|
469
471
|
{
|
|
@@ -128,7 +128,7 @@ var Info = () => {
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
d.id ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-title" }, d.title) : null,
|
|
131
|
-
d._extend ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-date" }, (0, import_utils2.getServiceTime)(d, state.date.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-technician" }, d._extend.resource ? /* @__PURE__ */ import_react.default.createElement(
|
|
131
|
+
d._extend ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, state.renderType !== "eventBooking" && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-date" }, (0, import_utils2.getServiceTime)(d, state.date.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-technician" }, d._extend.resource ? /* @__PURE__ */ import_react.default.createElement(
|
|
132
132
|
import_like.default,
|
|
133
133
|
{
|
|
134
134
|
style: { marginRight: 4 },
|
|
@@ -40,6 +40,7 @@ declare const _default: {
|
|
|
40
40
|
'pisell2.text.add-notes': string;
|
|
41
41
|
'pisell2.text.notes': string;
|
|
42
42
|
'pisell2.text.new-appointment': string;
|
|
43
|
+
'pisell2.text.enroll': string;
|
|
43
44
|
'pisell2.text.add-products-successfully': string;
|
|
44
45
|
'pisell2.text.add': string;
|
|
45
46
|
'pisell2.text.created-successfully': string;
|
|
@@ -168,6 +169,7 @@ declare const _default: {
|
|
|
168
169
|
'pisell2.text.add-notes': string;
|
|
169
170
|
'pisell2.text.notes': string;
|
|
170
171
|
'pisell2.text.new-appointment': string;
|
|
172
|
+
'pisell2.text.enroll': string;
|
|
171
173
|
'pisell2.text.add-products-successfully': string;
|
|
172
174
|
'pisell2.text.refund': string;
|
|
173
175
|
'pisell2.text.refund-amount': string;
|
|
@@ -291,6 +293,7 @@ declare const _default: {
|
|
|
291
293
|
'pisell2.text.add-notes': string;
|
|
292
294
|
'pisell2.text.notes': string;
|
|
293
295
|
'pisell2.text.new-appointment': string;
|
|
296
|
+
'pisell2.text.enroll': string;
|
|
294
297
|
'pisell2.text.add-products-successfully': string;
|
|
295
298
|
'pisell2.text.add': string;
|
|
296
299
|
'pisell2.text.created-successfully': string;
|
|
@@ -64,6 +64,7 @@ var locales_default = {
|
|
|
64
64
|
"pisell2.text.add-notes": "Add Notes",
|
|
65
65
|
"pisell2.text.notes": "Notes",
|
|
66
66
|
"pisell2.text.new-appointment": "New appointment",
|
|
67
|
+
"pisell2.text.enroll": "Enroll",
|
|
67
68
|
"pisell2.text.add-products-successfully": "Add products successfully",
|
|
68
69
|
"pisell2.text.add": "Add",
|
|
69
70
|
"pisell2.text.created-successfully": "Appointment created",
|
|
@@ -201,6 +202,7 @@ var locales_default = {
|
|
|
201
202
|
"pisell2.text.add-notes": "添加备注",
|
|
202
203
|
"pisell2.text.notes": "备注",
|
|
203
204
|
"pisell2.text.new-appointment": "新预约",
|
|
205
|
+
"pisell2.text.enroll": "报名",
|
|
204
206
|
"pisell2.text.add-products-successfully": "添加商品成功",
|
|
205
207
|
"pisell2.text.refund": "退款",
|
|
206
208
|
"pisell2.text.refund-amount": "退款金额",
|
|
@@ -338,6 +340,7 @@ var locales_default = {
|
|
|
338
340
|
"pisell2.text.add-notes": "添加備注",
|
|
339
341
|
"pisell2.text.notes": "備注",
|
|
340
342
|
"pisell2.text.new-appointment": "新預約",
|
|
343
|
+
"pisell2.text.enroll": "报名",
|
|
341
344
|
"pisell2.text.add-products-successfully": "添加商品成功",
|
|
342
345
|
//
|
|
343
346
|
"pisell2.text.add": "添加",
|
|
@@ -70,6 +70,17 @@ export interface FormState {
|
|
|
70
70
|
bookingId: string | number;
|
|
71
71
|
bookingDetail: any;
|
|
72
72
|
channelDisabledEdit: boolean;
|
|
73
|
+
renderType?: 'eventBooking';
|
|
74
|
+
eventOtherParams?: {
|
|
75
|
+
relation_id: number;
|
|
76
|
+
number: number;
|
|
77
|
+
registration_type: 'single' | 'all' | 'extra_include';
|
|
78
|
+
start_date: string;
|
|
79
|
+
start_time: string;
|
|
80
|
+
end_date: string;
|
|
81
|
+
end_time: string;
|
|
82
|
+
productIds: number[];
|
|
83
|
+
};
|
|
73
84
|
}
|
|
74
85
|
export declare const walkInData: {
|
|
75
86
|
id: number;
|
|
@@ -368,6 +368,7 @@ var deleteCacheParams = () => {
|
|
|
368
368
|
sessionStorage.removeItem("pisell2.booking.serviceParams");
|
|
369
369
|
};
|
|
370
370
|
var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
371
|
+
var _a;
|
|
371
372
|
if (!cacheItem.new && cacheItem._extend.endDate) {
|
|
372
373
|
return cacheItem._extend;
|
|
373
374
|
}
|
|
@@ -376,7 +377,7 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
|
376
377
|
duration: findNextDuration(
|
|
377
378
|
cacheItem.duration,
|
|
378
379
|
timeObj.durationSlicesBasedOnTime,
|
|
379
|
-
cacheItem.duration.value
|
|
380
|
+
(_a = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _a.value
|
|
380
381
|
)
|
|
381
382
|
};
|
|
382
383
|
if (lastServer) {
|