@pisell/private-materials 6.4.59 → 6.4.60
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/booking/components/actionButtons/index.js +7 -15
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/voucher/index.js +19 -23
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/index.js +3 -7
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +12 -17
- package/es/components/checkout/hooks/useWalletPass.js +21 -36
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/pay/toB/store/hooks.js +5 -19
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.js +2 -4
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -5
- package/es/components/ticketBooking/components/menuBar/index.js +21 -45
- package/es/components/ticketBooking/components/menuBar/index.less +1 -32
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
- package/es/components/ticketBooking/components/ticketBooking/index.js +23 -66
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.less +0 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -13
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/index.js +1 -2
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +4 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +10 -52
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -7
- package/es/components/ticketBooking/index.d.ts +0 -6
- package/es/components/ticketBooking/index.js +11 -86
- package/es/components/ticketBooking/utils/index.d.ts +2 -30
- package/es/components/ticketBooking/utils/index.js +1 -50
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
- package/es/plus/productSelect/components/pisellPriceText/index.js +5 -7
- package/lib/components/booking/components/actionButtons/index.js +15 -22
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/voucher/index.js +40 -33
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/index.js +3 -7
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +12 -15
- package/lib/components/checkout/hooks/useWalletPass.js +45 -57
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/pay/toB/store/hooks.js +8 -16
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +2 -3
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -5
- package/lib/components/ticketBooking/components/menuBar/index.js +22 -29
- package/lib/components/ticketBooking/components/menuBar/index.less +1 -32
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +25 -56
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.less +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -5
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.js +1 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +10 -17
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +5 -35
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -6
- package/lib/components/ticketBooking/index.d.ts +0 -6
- package/lib/components/ticketBooking/index.js +8 -64
- package/lib/components/ticketBooking/utils/index.d.ts +2 -30
- package/lib/components/ticketBooking/utils/index.js +2 -70
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
- package/lib/plus/productSelect/components/pisellPriceText/index.js +5 -6
- package/package.json +1 -1
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/List.js +0 -957
- package/es/components/list/List.less +0 -2
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/ResponsiveWrapper.js +0 -130
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/TestResponsiveWrapper.js +0 -816
- package/es/components/list/TestResponsiveWrapper.less +0 -968
- package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/es/components/list/components/EmptyState/EmptyState.js +0 -75
- package/es/components/list/components/EmptyState/EmptyState.less +0 -121
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/EmptyState/index.js +0 -1
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -39
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/index.js +0 -2
- package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/es/components/list/components/Pagination/Pagination.js +0 -240
- package/es/components/list/components/Pagination/Pagination.less +0 -439
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/Pagination/index.js +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +0 -18
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/index.js +0 -1
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/Tab.js +0 -43
- package/es/components/list/components/Tab/Tab.less +0 -139
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/index.js +0 -1
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/Tab/types.js +0 -1
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +0 -28
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/TabSkeleton/index.js +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/WaterfallList.js +0 -191
- package/es/components/list/components/WaterfallList/WaterfallList.less +0 -201
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/index.js +0 -1
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/examples/GroupedListExample.js +0 -207
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/index.js +0 -3
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useDevice.js +0 -102
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useListState.js +0 -176
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/hooks/useWaterfall.js +0 -161
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/index.js +0 -7
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/locales.js +0 -107
- package/es/components/list/styles/base.less +0 -39
- package/es/components/list/styles/content.less +0 -416
- package/es/components/list/styles/floatButton.less +0 -107
- package/es/components/list/styles/footer.less +0 -49
- package/es/components/list/styles/header.less +0 -69
- package/es/components/list/styles/responsive.less +0 -166
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/types.js +0 -1
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/getText.js +0 -150
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/list/utils/index.js +0 -5
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -143
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -273
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -130
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/IsActiveContext.js +0 -37
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.js +0 -37
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/context/index.js +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -50
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -17
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/ticketBooking/utils/productCache.js +0 -184
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -100
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -32
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -239
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -33
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -75
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -39
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -53
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -58
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -85
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -121
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -95
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -47
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -95
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -39
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -20
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -55
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +0 -38
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +0 -41
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +0 -481
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +0 -21
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/List.js +0 -771
- package/lib/components/list/List.less +0 -2
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/ResponsiveWrapper.js +0 -145
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/TestResponsiveWrapper.js +0 -493
- package/lib/components/list/TestResponsiveWrapper.less +0 -968
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/lib/components/list/components/EmptyState/EmptyState.js +0 -75
- package/lib/components/list/components/EmptyState/EmptyState.less +0 -121
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/EmptyState/index.js +0 -35
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -75
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/index.js +0 -41
- package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/lib/components/list/components/Pagination/Pagination.js +0 -205
- package/lib/components/list/components/Pagination/Pagination.less +0 -439
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/Pagination/index.js +0 -35
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +0 -37
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/index.js +0 -35
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/Tab.js +0 -72
- package/lib/components/list/components/Tab/Tab.less +0 -139
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/index.js +0 -35
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/Tab/types.js +0 -17
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +0 -61
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/TabSkeleton/index.js +0 -41
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/WaterfallList.js +0 -178
- package/lib/components/list/components/WaterfallList/WaterfallList.less +0 -201
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/index.js +0 -35
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/examples/GroupedListExample.js +0 -210
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/index.js +0 -47
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useDevice.js +0 -96
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useListState.js +0 -149
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/hooks/useWaterfall.js +0 -124
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/index.js +0 -60
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/locales.js +0 -113
- package/lib/components/list/styles/base.less +0 -39
- package/lib/components/list/styles/content.less +0 -416
- package/lib/components/list/styles/floatButton.less +0 -107
- package/lib/components/list/styles/footer.less +0 -49
- package/lib/components/list/styles/header.less +0 -69
- package/lib/components/list/styles/responsive.less +0 -166
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/types.js +0 -17
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/getText.js +0 -95
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/list/utils/index.js +0 -43
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -165
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -45
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -247
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -100
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/IsActiveContext.js +0 -56
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.js +0 -56
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/context/index.js +0 -44
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -47
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -37
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/ticketBooking/utils/productCache.js +0 -144
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -129
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -52
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -178
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -52
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -63
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -131
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -62
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -78
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -94
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -115
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -139
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -97
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -58
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -56
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -97
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -56
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -58
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -49
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -83
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +0 -68
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +0 -65
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +0 -501
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +0 -37
- package/lowcode/sku-card/meta.ts +0 -1812
- package/lowcode/sku-card/snippets.ts +0 -372
- package/lowcode/sku-list/meta.ts +0 -410
|
@@ -27,15 +27,13 @@ var import_utils = require("@pisell/utils");
|
|
|
27
27
|
var import_bookingTicket = require("./bookingTicket");
|
|
28
28
|
var import_utils2 = require("../../utils");
|
|
29
29
|
var import_materials = require("@pisell/materials");
|
|
30
|
-
var import_useActiveExecute = require("./useActiveExecute");
|
|
31
30
|
var useScanCustomer = () => {
|
|
32
31
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
33
32
|
const scanRef = (0, import_react.useRef)(null);
|
|
34
33
|
const Toast = (0, import_materials.useToast)();
|
|
35
|
-
const { executeIfActive } = (0, import_useActiveExecute.useActiveExecute)();
|
|
36
34
|
const handleScanCustomer = (callback) => {
|
|
37
35
|
console.log("handleScanCustomer>>>>>>>", callback);
|
|
38
|
-
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanCustomerListener(
|
|
36
|
+
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanCustomerListener((data) => {
|
|
39
37
|
console.log("scanCustomerListener>>>>>>>", data);
|
|
40
38
|
if (data.status === "failed") {
|
|
41
39
|
Toast.fail(import_utils.locales.getText("pisell2.text.scan-global-failed"));
|
|
@@ -43,7 +41,7 @@ var useScanCustomer = () => {
|
|
|
43
41
|
}
|
|
44
42
|
const customer = (0, import_utils2.formatScanCustomer)(data);
|
|
45
43
|
callback(customer);
|
|
46
|
-
})
|
|
44
|
+
});
|
|
47
45
|
};
|
|
48
46
|
return {
|
|
49
47
|
openScan: handleScanCustomer,
|
|
@@ -27,17 +27,13 @@ var import_bookingTicket = require("./bookingTicket");
|
|
|
27
27
|
var import_utils = require("../../utils");
|
|
28
28
|
var import_materials = require("@pisell/materials");
|
|
29
29
|
var import_utils2 = require("@pisell/utils");
|
|
30
|
-
var import_useActiveExecute = require("./useActiveExecute");
|
|
31
30
|
var useScanGlobal = () => {
|
|
32
31
|
const bookingTicket = (0, import_bookingTicket.useBookingTicket)();
|
|
33
32
|
const scanRef = (0, import_react.useRef)(null);
|
|
34
33
|
const Toast = (0, import_materials.useToast)();
|
|
35
|
-
const { executeIfActive } = (0, import_useActiveExecute.useActiveExecute)();
|
|
36
34
|
const handleScanGlobal = (callback) => {
|
|
37
|
-
var _a;
|
|
38
|
-
(_a = bookingTicket == null ? void 0 : bookingTicket.initPeripheralsListener) == null ? void 0 : _a.call(bookingTicket);
|
|
39
35
|
scanRef.current = bookingTicket == null ? void 0 : bookingTicket.scanGlobalListener(
|
|
40
|
-
|
|
36
|
+
(data) => {
|
|
41
37
|
console.log("scanGlobalListener>>>>>>>", data);
|
|
42
38
|
if (data.status === "failed") {
|
|
43
39
|
Toast.fail(import_utils2.locales.getText("pisell2.text.scan-global-failed"));
|
|
@@ -45,7 +41,7 @@ var useScanGlobal = () => {
|
|
|
45
41
|
}
|
|
46
42
|
const result = (0, import_utils.formatScanGlobal)(data);
|
|
47
43
|
callback(result);
|
|
48
|
-
}
|
|
44
|
+
}
|
|
49
45
|
);
|
|
50
46
|
};
|
|
51
47
|
return {
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
|
|
2
1
|
import './index.less';
|
|
3
2
|
interface TicketBookingProps {
|
|
4
3
|
productExtensionType: string[];
|
|
5
4
|
bookingConfigParams: Record<string, any>;
|
|
6
5
|
isShowMenuBar?: boolean;
|
|
7
|
-
isShowTimeBar?: boolean;
|
|
8
|
-
isShowFloatButtons?: boolean;
|
|
9
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
10
|
-
isActive?: boolean;
|
|
11
|
-
rulesHooks?: any;
|
|
12
6
|
}
|
|
13
7
|
declare const _default: (props: TicketBookingProps) => JSX.Element;
|
|
14
8
|
export default _default;
|
|
@@ -43,9 +43,6 @@ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
|
43
43
|
var import_utils3 = require("./utils");
|
|
44
44
|
var import_locales = __toESM(require("./locales"));
|
|
45
45
|
var import_menuBar = __toESM(require("./components/menuBar"));
|
|
46
|
-
var import_ahooks = require("ahooks");
|
|
47
|
-
var import_OsKeyContext = require("./context/OsKeyContext");
|
|
48
|
-
var import_IsActiveContext = require("./context/IsActiveContext");
|
|
49
46
|
var import_index = require("./index.less");
|
|
50
47
|
var initialState = {
|
|
51
48
|
amountSymbol: "$",
|
|
@@ -192,49 +189,13 @@ var ticketBooking_default = (props) => {
|
|
|
192
189
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
193
190
|
const {
|
|
194
191
|
productExtensionType,
|
|
195
|
-
bookingConfigParams
|
|
196
|
-
isShowMenuBar = true
|
|
197
|
-
isShowTimeBar: propsIsShowTimeBar = true,
|
|
198
|
-
isShowFloatButtons: propsIsShowFloatButtons = true,
|
|
199
|
-
productDisplayConfig: propsProductDisplayConfig,
|
|
200
|
-
isActive = true,
|
|
201
|
-
rulesHooks: propsRulesHooks
|
|
192
|
+
bookingConfigParams,
|
|
193
|
+
isShowMenuBar = true
|
|
202
194
|
} = props;
|
|
203
|
-
const [activeNavKey, setActiveNavKey] = (0, import_ahooks.useLocalStorageState)(
|
|
204
|
-
"pisell-ticket-booking-nav-key",
|
|
205
|
-
{
|
|
206
|
-
defaultValue: "ticket"
|
|
207
|
-
}
|
|
208
|
-
);
|
|
209
|
-
const bookingConfigParams = (0, import_react.useMemo)(() => {
|
|
210
|
-
if (isShowMenuBar && activeNavKey === "food") {
|
|
211
|
-
return {
|
|
212
|
-
...propsBookingConfigParams,
|
|
213
|
-
sub_type: "food",
|
|
214
|
-
source_type: "pos"
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
return propsBookingConfigParams;
|
|
218
|
-
}, [isShowMenuBar, activeNavKey, propsBookingConfigParams]);
|
|
219
|
-
const isShowTimeBar = (0, import_react.useMemo)(() => {
|
|
220
|
-
return isShowMenuBar && activeNavKey === "food" ? false : propsIsShowTimeBar;
|
|
221
|
-
}, [isShowMenuBar, activeNavKey, propsIsShowTimeBar]);
|
|
222
|
-
const isShowFloatButtons = (0, import_react.useMemo)(() => {
|
|
223
|
-
return isShowMenuBar && activeNavKey === "food" ? false : propsIsShowFloatButtons;
|
|
224
|
-
}, [isShowMenuBar, activeNavKey, propsIsShowFloatButtons]);
|
|
225
|
-
const osKey = (0, import_react.useMemo)(() => {
|
|
226
|
-
return bookingConfigParams == null ? void 0 : bookingConfigParams.sub_type;
|
|
227
|
-
}, [bookingConfigParams]);
|
|
228
|
-
const productDisplayConfig = (0, import_react.useMemo)(() => {
|
|
229
|
-
if (isShowMenuBar && activeNavKey === "food") {
|
|
230
|
-
return "sku-list-a5";
|
|
231
|
-
}
|
|
232
|
-
return propsProductDisplayConfig;
|
|
233
|
-
}, [isShowMenuBar, activeNavKey, propsProductDisplayConfig]);
|
|
234
195
|
const storeRef = (0, import_react.useRef)(null);
|
|
235
196
|
const context = (0, import_useEngineContext.default)();
|
|
236
197
|
const { pisellos, pisellosAllModule } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
237
|
-
const { BookingTicket
|
|
198
|
+
const { BookingTicket } = pisellosAllModule || {};
|
|
238
199
|
import_utils.locales.init(
|
|
239
200
|
import_locales.default,
|
|
240
201
|
((_f = (_e = (_d = (_c = (_b = context.appHelper.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b)) == null ? void 0 : _d.locales) == null ? void 0 : _e.getLocale) == null ? void 0 : _f.call(_e)) || ((_h = (_g = context.appHelper.utils) == null ? void 0 : _g.storage) == null ? void 0 : _h.get("umi_locale")) || "en"
|
|
@@ -249,34 +210,17 @@ var ticketBooking_default = (props) => {
|
|
|
249
210
|
productExtensionType
|
|
250
211
|
});
|
|
251
212
|
storeRef.current = store;
|
|
252
|
-
}, [
|
|
213
|
+
}, []);
|
|
253
214
|
(0, import_react.useMemo)(() => {
|
|
254
215
|
if (BookingTicket) {
|
|
255
|
-
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket(
|
|
216
|
+
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket("bookingTicket"), {
|
|
256
217
|
initialState: {},
|
|
257
218
|
otherParams: {
|
|
258
|
-
cacheId:
|
|
219
|
+
cacheId: "test-cache",
|
|
259
220
|
platform: "shop"
|
|
260
221
|
}
|
|
261
222
|
});
|
|
262
223
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
otherParams: {
|
|
266
|
-
platform: "shop",
|
|
267
|
-
rules: {
|
|
268
|
-
hooks: propsRulesHooks || import_utils3.rulesHooks
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
}, [osKey]);
|
|
274
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, isShowMenuBar && /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, { activeNavKey, onNavChange: setActiveNavKey }), /* @__PURE__ */ import_react.default.createElement(import_IsActiveContext.IsActiveProvider, { isActive }, /* @__PURE__ */ import_react.default.createElement(import_OsKeyContext.OsKeyProvider, { osKey }, /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current, key: activeNavKey }, /* @__PURE__ */ import_react.default.createElement(
|
|
275
|
-
import_ticketBooking.default,
|
|
276
|
-
{
|
|
277
|
-
productDisplayConfig,
|
|
278
|
-
isShowTimeBar,
|
|
279
|
-
isShowFloatButtons
|
|
280
|
-
}
|
|
281
|
-
)))));
|
|
224
|
+
}, []);
|
|
225
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-wrapper" }, isShowMenuBar && /* @__PURE__ */ import_react.default.createElement(import_menuBar.default, null), /* @__PURE__ */ import_react.default.createElement(import_miniRedux.Provider, { store: storeRef.current }, /* @__PURE__ */ import_react.default.createElement(import_ticketBooking.default, null)));
|
|
282
226
|
};
|
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
44
|
-
searchType: "
|
|
44
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
|
45
45
|
data: any;
|
|
46
46
|
scanCode: string;
|
|
47
47
|
} | null;
|
|
@@ -59,32 +59,4 @@ export declare const formatScanGlobal: (data: ScanData) => {
|
|
|
59
59
|
scanCode: string;
|
|
60
60
|
} | null | undefined;
|
|
61
61
|
export declare const createSimpleCacheItem: (item: any, e: any, state: any) => any;
|
|
62
|
-
export
|
|
63
|
-
export declare const getShopDiscountKey: (osKey: string) => string;
|
|
64
|
-
export declare const rulesHooks: {
|
|
65
|
-
getProduct(product: Record<string, any>): {
|
|
66
|
-
booking_id: any;
|
|
67
|
-
id: any;
|
|
68
|
-
_id: any;
|
|
69
|
-
price: any;
|
|
70
|
-
total: any;
|
|
71
|
-
discount_list: any;
|
|
72
|
-
origin_total: any;
|
|
73
|
-
num: any;
|
|
74
|
-
quantity: any;
|
|
75
|
-
vouchersApplicable: any;
|
|
76
|
-
};
|
|
77
|
-
setProduct(product: Record<string, any>, values: {
|
|
78
|
-
total: number;
|
|
79
|
-
discount_list: any[];
|
|
80
|
-
price: number;
|
|
81
|
-
quantity: number;
|
|
82
|
-
_id?: string;
|
|
83
|
-
}): {
|
|
84
|
-
_id: any;
|
|
85
|
-
discount_list: any[];
|
|
86
|
-
_extend: any;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export { getCache, setCache, clearCache, clearAllCache, clearAllCacheByOsKey, getProductCache, setProductCache, clearProductCache, clearAllProductCache, getBoardConfigCache, setBoardConfigCache, clearBoardConfigCache, } from './productCache';
|
|
90
|
-
export type { CacheType } from './productCache';
|
|
62
|
+
export {};
|
|
@@ -31,12 +31,6 @@ var utils_exports = {};
|
|
|
31
31
|
__export(utils_exports, {
|
|
32
32
|
addService: () => addService,
|
|
33
33
|
addServiceScroll: () => addServiceScroll,
|
|
34
|
-
clearAllCache: () => import_productCache.clearAllCache,
|
|
35
|
-
clearAllCacheByOsKey: () => import_productCache.clearAllCacheByOsKey,
|
|
36
|
-
clearAllProductCache: () => import_productCache.clearAllProductCache,
|
|
37
|
-
clearBoardConfigCache: () => import_productCache.clearBoardConfigCache,
|
|
38
|
-
clearCache: () => import_productCache.clearCache,
|
|
39
|
-
clearProductCache: () => import_productCache.clearProductCache,
|
|
40
34
|
createSimpleCacheItem: () => createSimpleCacheItem,
|
|
41
35
|
formatBookingList: () => formatBookingList,
|
|
42
36
|
formatDateToStr: () => formatDateToStr,
|
|
@@ -45,9 +39,6 @@ __export(utils_exports, {
|
|
|
45
39
|
formatScanCustomer: () => formatScanCustomer,
|
|
46
40
|
formatScanGlobal: () => formatScanGlobal,
|
|
47
41
|
genServiceKey: () => genServiceKey,
|
|
48
|
-
getBoardConfigCache: () => import_productCache.getBoardConfigCache,
|
|
49
|
-
getBookingTicketKey: () => getBookingTicketKey,
|
|
50
|
-
getCache: () => import_productCache.getCache,
|
|
51
42
|
getCartProductOverlay: () => getCartProductOverlay,
|
|
52
43
|
getDefaultStartParam: () => getDefaultStartParam,
|
|
53
44
|
getDisabledEdit: () => getDisabledEdit,
|
|
@@ -55,20 +46,13 @@ __export(utils_exports, {
|
|
|
55
46
|
getIsParallelResourcesBooking: () => getIsParallelResourcesBooking,
|
|
56
47
|
getIsShowNumber: () => getIsShowNumber,
|
|
57
48
|
getNextTimeSlice: () => getNextTimeSlice,
|
|
58
|
-
getProductCache: () => import_productCache.getProductCache,
|
|
59
|
-
getShopDiscountKey: () => getShopDiscountKey,
|
|
60
49
|
isSameProduct: () => isSameProduct,
|
|
61
|
-
restoreProductOtherData: () => restoreProductOtherData
|
|
62
|
-
rulesHooks: () => rulesHooks,
|
|
63
|
-
setBoardConfigCache: () => import_productCache.setBoardConfigCache,
|
|
64
|
-
setCache: () => import_productCache.setCache,
|
|
65
|
-
setProductCache: () => import_productCache.setProductCache
|
|
50
|
+
restoreProductOtherData: () => restoreProductOtherData
|
|
66
51
|
});
|
|
67
52
|
module.exports = __toCommonJS(utils_exports);
|
|
68
53
|
var import_dayjs = __toESM(require("dayjs"));
|
|
69
54
|
var import_utils = require("../../booking/info/service2/utils");
|
|
70
55
|
var import_utils2 = require("@pisell/utils");
|
|
71
|
-
var import_productCache = require("./productCache");
|
|
72
56
|
var formatDateToStr = (date) => {
|
|
73
57
|
const format = (val) => {
|
|
74
58
|
return (0, import_dayjs.default)(val).format("YYYY-MM-DD HH:mm:ss");
|
|
@@ -315,53 +299,10 @@ var createSimpleCacheItem = (item, e, state) => {
|
|
|
315
299
|
};
|
|
316
300
|
return cacheItem;
|
|
317
301
|
};
|
|
318
|
-
var getBookingTicketKey = (osKey) => {
|
|
319
|
-
return `bookingTicket-${osKey}`;
|
|
320
|
-
};
|
|
321
|
-
var getShopDiscountKey = (osKey) => {
|
|
322
|
-
return `shopDiscount-${osKey}`;
|
|
323
|
-
};
|
|
324
|
-
var rulesHooks = {
|
|
325
|
-
// 获取商品关键信息
|
|
326
|
-
getProduct(product) {
|
|
327
|
-
const detail = {
|
|
328
|
-
booking_id: product.booking_id,
|
|
329
|
-
id: product.id,
|
|
330
|
-
_id: product._id,
|
|
331
|
-
price: product.price,
|
|
332
|
-
total: product._extend.total,
|
|
333
|
-
discount_list: product.discount_list,
|
|
334
|
-
origin_total: product._extend.origin_total,
|
|
335
|
-
num: product._extend.quantity,
|
|
336
|
-
quantity: product._extend.quantity || 1,
|
|
337
|
-
vouchersApplicable: product.vouchersApplicable
|
|
338
|
-
};
|
|
339
|
-
return detail;
|
|
340
|
-
},
|
|
341
|
-
setProduct(product, values) {
|
|
342
|
-
const detail = {
|
|
343
|
-
...product,
|
|
344
|
-
_id: values._id || product._id,
|
|
345
|
-
discount_list: values.discount_list,
|
|
346
|
-
_extend: {
|
|
347
|
-
...product._extend,
|
|
348
|
-
..."total" in values ? { total: values.total } : {},
|
|
349
|
-
..."quantity" in values ? { quantity: values.quantity } : {}
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
return detail;
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
302
|
// Annotate the CommonJS export names for ESM import in node:
|
|
356
303
|
0 && (module.exports = {
|
|
357
304
|
addService,
|
|
358
305
|
addServiceScroll,
|
|
359
|
-
clearAllCache,
|
|
360
|
-
clearAllCacheByOsKey,
|
|
361
|
-
clearAllProductCache,
|
|
362
|
-
clearBoardConfigCache,
|
|
363
|
-
clearCache,
|
|
364
|
-
clearProductCache,
|
|
365
306
|
createSimpleCacheItem,
|
|
366
307
|
formatBookingList,
|
|
367
308
|
formatDateToStr,
|
|
@@ -370,9 +311,6 @@ var rulesHooks = {
|
|
|
370
311
|
formatScanCustomer,
|
|
371
312
|
formatScanGlobal,
|
|
372
313
|
genServiceKey,
|
|
373
|
-
getBoardConfigCache,
|
|
374
|
-
getBookingTicketKey,
|
|
375
|
-
getCache,
|
|
376
314
|
getCartProductOverlay,
|
|
377
315
|
getDefaultStartParam,
|
|
378
316
|
getDisabledEdit,
|
|
@@ -380,12 +318,6 @@ var rulesHooks = {
|
|
|
380
318
|
getIsParallelResourcesBooking,
|
|
381
319
|
getIsShowNumber,
|
|
382
320
|
getNextTimeSlice,
|
|
383
|
-
getProductCache,
|
|
384
|
-
getShopDiscountKey,
|
|
385
321
|
isSameProduct,
|
|
386
|
-
restoreProductOtherData
|
|
387
|
-
rulesHooks,
|
|
388
|
-
setBoardConfigCache,
|
|
389
|
-
setCache,
|
|
390
|
-
setProductCache
|
|
322
|
+
restoreProductOtherData
|
|
391
323
|
});
|
package/lib/index.d.ts
CHANGED
|
@@ -59,7 +59,5 @@ export { default as ProSkuDetailModal } from './pro/skuDetailModal';
|
|
|
59
59
|
export { default as SaasLogin } from './plus/saasLogin';
|
|
60
60
|
export { default as SaasRegister } from './plus/saasRegister';
|
|
61
61
|
export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
|
|
62
|
-
export { default as SkuCard } from './plus/productSelect/ProductCard/SkuCard';
|
|
63
62
|
export { default as PinModal } from './components/pinModal';
|
|
64
63
|
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
|
65
|
-
export { ResponsiveList as SkuList } from './components/list';
|
package/lib/index.js
CHANGED
|
@@ -79,8 +79,6 @@ __export(src_exports, {
|
|
|
79
79
|
SaasRegister: () => import_saasRegister.default,
|
|
80
80
|
Schedules: () => import_schedules.default,
|
|
81
81
|
ShoppingCart: () => import_shoppingCart.default,
|
|
82
|
-
SkuCard: () => import_SkuCard.default,
|
|
83
|
-
SkuList: () => import_list.ResponsiveList,
|
|
84
82
|
StepController: () => import_stepController.default,
|
|
85
83
|
SubTotal: () => import_subTotal.default,
|
|
86
84
|
TaxSelect: () => import_taxSelect.default,
|
|
@@ -158,10 +156,8 @@ var import_skuDetailModal = __toESM(require("./pro/skuDetailModal"));
|
|
|
158
156
|
var import_saasLogin = __toESM(require("./plus/saasLogin"));
|
|
159
157
|
var import_saasRegister = __toESM(require("./plus/saasRegister"));
|
|
160
158
|
var import_saasCreateOrganization = __toESM(require("./plus/saasCreateOrganization"));
|
|
161
|
-
var import_SkuCard = __toESM(require("./plus/productSelect/ProductCard/SkuCard"));
|
|
162
159
|
var import_pinModal = __toESM(require("./components/pinModal"));
|
|
163
160
|
var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
|
|
164
|
-
var import_list = require("./components/list");
|
|
165
161
|
import_dayjs.default.extend(import_weekday.default);
|
|
166
162
|
import_dayjs.default.extend(import_localeData.default);
|
|
167
163
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -216,8 +212,6 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
216
212
|
SaasRegister,
|
|
217
213
|
Schedules,
|
|
218
214
|
ShoppingCart,
|
|
219
|
-
SkuCard,
|
|
220
|
-
SkuList,
|
|
221
215
|
StepController,
|
|
222
216
|
SubTotal,
|
|
223
217
|
TaxSelect,
|
|
@@ -40,15 +40,14 @@ var import_index = require("./index.less");
|
|
|
40
40
|
var index = (props) => {
|
|
41
41
|
var _a, _b;
|
|
42
42
|
const context = (0, import_useEngineContext.default)();
|
|
43
|
-
const { value
|
|
43
|
+
const { value } = props;
|
|
44
44
|
const locale = ((_b = (_a = context.appHelper.utils) == null ? void 0 : _a.storage) == null ? void 0 : _b.get("umi_locale")) || "en";
|
|
45
45
|
const [_prefix, _suffix] = (0, import_react.useMemo)(() => {
|
|
46
46
|
if (!props.isMini) return ["", ""];
|
|
47
|
-
if (!locale) return [
|
|
48
|
-
if (locale.toLowerCase().includes("zh"))
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, [locale, props.isMini, customPrefixText, customSuffixText]);
|
|
47
|
+
if (!locale) return ["From", ""];
|
|
48
|
+
if (locale.toLowerCase().includes("zh")) return ["", "起"];
|
|
49
|
+
return ["From", ""];
|
|
50
|
+
}, [locale, props.isMini]);
|
|
52
51
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-price-text", props.className) }, props.prefix, _prefix ? /* @__PURE__ */ import_react.default.createElement(
|
|
53
52
|
"span",
|
|
54
53
|
{
|
package/package.json
CHANGED