@pisell/private-materials 6.8.6 → 6.8.8
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/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.js +16 -0
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +34 -16
- package/es/components/booking/components/footer/amount.js +25 -8
- package/es/components/booking/components/footer/index.js +67 -35
- package/es/components/booking/components/footer/utils.d.ts +7 -0
- package/es/components/booking/components/footer/utils.js +66 -42
- package/es/components/booking/components/voucher/index.js +58 -14
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +69 -21
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/es/components/booking/info/hooks/useHolderConfig.js +9 -2
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.d.ts +1 -1
- package/es/components/booking/info/service/Lists.js +8 -2
- package/es/components/booking/info/service/serve.d.ts +14 -0
- package/es/components/booking/info/service/serve.js +21 -0
- package/es/components/booking/info/service2/Group/utils.js +2 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -33
- package/es/components/booking/info/service2/utils.js +84 -36
- package/es/components/booking/info/utils.js +5 -0
- package/es/components/booking/info2/cartClientCard/index.js +23 -5
- package/es/components/booking/info2/service/addService/index.js +146 -88
- package/es/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/es/components/booking/info2/service/addService/utils.js +78 -9
- package/es/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/es/components/booking/info2/service/editService/Holder/index.js +193 -0
- package/es/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/es/components/booking/info2/service/editService/index.js +332 -76
- package/es/components/booking/info2/utilsByBooking.js +14 -5
- package/es/components/booking/locales.d.ts +30 -0
- package/es/components/booking/locales.js +39 -3
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/es/components/booking/utils/confirmHolderModal.js +318 -0
- package/es/components/booking/utils/confirmHolderModal.less +40 -0
- package/es/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/es/components/booking/utils/selectHolderModal.js +407 -0
- package/es/components/booking/utils.d.ts +11 -3
- package/es/components/booking/utils.js +24 -1
- package/es/components/checkout/PaymentModal.js +15 -10
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/Product.js +6 -3
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/type.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/es/components/{wallet/Detail/serve.js → ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js} +112 -57
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +29 -15
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +14 -11
- package/es/components/ticketBooking/utils/index.d.ts +10 -2
- package/es/components/ticketBooking/utils/index.js +37 -7
- package/es/components/walletList/index.d.ts +0 -24
- package/es/components/walletList/index.js +173 -41
- package/es/components/walletList/locales.d.ts +9 -0
- package/es/components/walletList/locales.js +12 -3
- package/es/components/walletList/serve.d.ts +19 -0
- package/es/components/walletList/serve.js +94 -5
- package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/es/components/walletList/tempHolderSelector/index.js +196 -0
- package/es/components/walletList/tempHolderSelector/index.less +63 -0
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -3
- package/es/plus/productSelect/index.js +1 -4
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/es/plus/selectHolder/components/ErrorTip/index.js +14 -0
- package/es/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/es/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/es/plus/selectHolder/components/HolderItem/index.js +77 -0
- package/es/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/es/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/es/plus/selectHolder/components/HolderList/index.js +43 -0
- package/es/plus/selectHolder/index.d.ts +7 -0
- package/es/plus/selectHolder/index.js +273 -0
- package/es/plus/selectHolder/index.less +137 -0
- package/es/plus/selectHolder/locales.d.ts +24 -0
- package/es/plus/selectHolder/locales.js +29 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/types.js +1 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/selectHolder/utils.js +16 -0
- package/es/plus/walletEditor/WalletEditor.js +60 -2
- package/es/plus/walletEditor/locales.d.ts +9 -0
- package/es/plus/walletEditor/locales.js +12 -3
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.js +17 -5
- package/es/plus/walletPassGallery/index.js +223 -41
- package/es/plus/walletPassGallery/locales.d.ts +15 -0
- package/es/plus/walletPassGallery/locales.js +29 -5
- package/es/plus/walletPassGallery/serve.d.ts +15 -1
- package/es/plus/walletPassGallery/serve.js +59 -2
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/plus/walletPassGallery/utils.js +342 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.js +355 -0
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/es/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/es/pro/multiDayTimeSelect/index.js +1 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/multiDayTimeSelect/types.js +1 -0
- package/es/pro/skuDetailModal/types.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.js +17 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +11 -0
- package/lib/components/booking/components/footer/amount.js +23 -6
- package/lib/components/booking/components/footer/index.js +25 -4
- package/lib/components/booking/components/footer/utils.d.ts +7 -0
- package/lib/components/booking/components/footer/utils.js +41 -29
- package/lib/components/booking/components/voucher/index.js +48 -6
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +45 -13
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +1 -0
- package/lib/components/booking/info/hooks/useHolderConfig.js +8 -3
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.js +4 -2
- package/lib/components/booking/info/service/serve.d.ts +14 -0
- package/lib/components/booking/info/service/serve.js +5 -0
- package/lib/components/booking/info/service2/Group/utils.js +2 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -33
- package/lib/components/booking/info/service2/utils.js +32 -16
- package/lib/components/booking/info/utils.js +4 -0
- package/lib/components/booking/info2/cartClientCard/index.js +11 -0
- package/lib/components/booking/info2/service/addService/index.js +22 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +8 -0
- package/lib/components/booking/info2/service/addService/utils.js +47 -9
- package/lib/components/booking/info2/service/editService/Holder/index.d.ts +12 -0
- package/lib/components/booking/info2/service/editService/Holder/index.js +199 -0
- package/lib/components/booking/info2/service/editService/Holder/index.less +63 -0
- package/lib/components/booking/info2/service/editService/index.js +273 -38
- package/lib/components/booking/info2/utilsByBooking.js +19 -8
- package/lib/components/booking/locales.d.ts +30 -0
- package/lib/components/booking/locales.js +33 -3
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils/confirmHolderModal.d.ts +13 -0
- package/lib/components/booking/utils/confirmHolderModal.js +253 -0
- package/lib/components/booking/utils/confirmHolderModal.less +40 -0
- package/lib/components/booking/utils/selectHolderModal.d.ts +24 -0
- package/lib/components/booking/utils/selectHolderModal.js +319 -0
- package/lib/components/booking/utils.d.ts +11 -3
- package/lib/components/booking/utils.js +15 -0
- package/lib/components/checkout/PaymentModal.js +5 -2
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/Product.js +7 -3
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/type.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +18 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +118 -0
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less +0 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +23 -9
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +4 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +0 -16
- package/lib/components/ticketBooking/utils/index.d.ts +10 -2
- package/lib/components/ticketBooking/utils/index.js +31 -6
- package/lib/components/walletList/index.d.ts +0 -24
- package/lib/components/walletList/index.js +100 -4
- package/lib/components/walletList/locales.d.ts +9 -0
- package/lib/components/walletList/locales.js +12 -3
- package/lib/components/walletList/serve.d.ts +19 -0
- package/lib/components/walletList/serve.js +26 -3
- package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/lib/components/walletList/tempHolderSelector/index.js +166 -0
- package/lib/components/walletList/tempHolderSelector/index.less +63 -0
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -3
- package/lib/plus/productSelect/index.js +1 -2
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +3 -0
- package/lib/{components/wallet/PointCard/model.js → plus/selectHolder/components/ErrorTip/index.js} +10 -23
- package/lib/plus/selectHolder/components/ErrorTip/index.less +51 -0
- package/lib/plus/selectHolder/components/HolderItem/index.d.ts +6 -0
- package/lib/plus/selectHolder/components/HolderItem/index.js +101 -0
- package/lib/plus/selectHolder/components/HolderItem/index.less +105 -0
- package/lib/plus/selectHolder/components/HolderList/index.d.ts +30 -0
- package/lib/{components/wallet/components/WalletBar → plus/selectHolder/components/HolderList}/index.js +29 -15
- package/lib/plus/selectHolder/index.d.ts +7 -0
- package/lib/plus/selectHolder/index.js +223 -0
- package/lib/plus/selectHolder/index.less +137 -0
- package/lib/plus/selectHolder/locales.d.ts +24 -0
- package/lib/{components/wallet/Voucher → plus/selectHolder}/locales.js +17 -14
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/types.js +17 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/{components/wallet/RechargeableCard/serve.js → plus/selectHolder/utils.js} +11 -10
- package/lib/plus/walletEditor/WalletEditor.js +53 -0
- package/lib/plus/walletEditor/locales.d.ts +9 -0
- package/lib/plus/walletEditor/locales.js +12 -3
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
- package/lib/plus/walletPassGallery/index.js +154 -27
- package/lib/plus/walletPassGallery/locales.d.ts +15 -0
- package/lib/plus/walletPassGallery/locales.js +32 -5
- package/lib/plus/walletPassGallery/serve.d.ts +15 -1
- package/lib/plus/walletPassGallery/serve.js +17 -5
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/plus/walletPassGallery/utils.js +287 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +9 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +290 -0
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +8 -0
- package/lib/pro/multiDayTimeSelect/index.d.ts +3 -0
- package/lib/{components/wallet/components → pro/multiDayTimeSelect}/index.js +6 -16
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/multiDayTimeSelect/types.js +17 -0
- package/lib/pro/skuDetailModal/types.d.ts +1 -0
- package/lowcode/event-select-holder/meta.ts +2 -2
- package/lowcode/select-holder/meta.ts +220 -0
- package/lowcode/select-holder/snippets.ts +41 -0
- package/package.json +3 -3
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/index.js +0 -1182
- package/es/components/wallet/Detail/index.less +0 -386
- package/es/components/wallet/Detail/locales.d.ts +0 -153
- package/es/components/wallet/Detail/locales.js +0 -170
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/model.js +0 -22
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DetailContext.js +0 -162
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/index.js +0 -218
- package/es/components/wallet/DiscountCard/index.less +0 -9
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/DiscountCard/model.js +0 -22
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/index.js +0 -169
- package/es/components/wallet/PointCard/index.less +0 -9
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/PointCard/model.js +0 -22
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.js +0 -463
- package/es/components/wallet/RechargeableCard/index.less +0 -108
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/model.js +0 -28
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/RechargeableCard/serve.js +0 -32
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/index.js +0 -131
- package/es/components/wallet/Voucher/index.less +0 -9
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/locales.js +0 -20
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/Voucher/model.js +0 -22
- package/es/components/wallet/carouselArrow.png +0 -0
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/FooterButtons/index.js +0 -81
- package/es/components/wallet/components/FooterButtons/index.less +0 -91
- package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/es/components/wallet/components/UsageRules/index.js +0 -147
- package/es/components/wallet/components/UsageRules/index.less +0 -157
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletBar/index.js +0 -19
- package/es/components/wallet/components/WalletBar/index.less +0 -36
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/WalletCard.js +0 -91
- package/es/components/wallet/components/index.d.ts +0 -3
- package/es/components/wallet/components/index.js +0 -4
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/es/components/wallet/hooks/useWalletCard.js +0 -147
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/index.js +0 -807
- package/es/components/wallet/index.less +0 -151
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/locales.js +0 -139
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/model.js +0 -86
- package/es/components/wallet/serve.d.ts +0 -150
- package/es/components/wallet/serve.js +0 -205
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/wallet/utils/formatUtils.js +0 -73
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/index.js +0 -874
- package/lib/components/wallet/Detail/index.less +0 -386
- package/lib/components/wallet/Detail/locales.d.ts +0 -153
- package/lib/components/wallet/Detail/locales.js +0 -194
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/model.js +0 -43
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/Detail/serve.js +0 -44
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DetailContext.js +0 -118
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/index.js +0 -209
- package/lib/components/wallet/DiscountCard/index.less +0 -9
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/DiscountCard/model.js +0 -43
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/index.js +0 -190
- package/lib/components/wallet/PointCard/index.less +0 -9
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.js +0 -380
- package/lib/components/wallet/RechargeableCard/index.less +0 -108
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/model.js +0 -49
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/index.js +0 -146
- package/lib/components/wallet/Voucher/index.less +0 -9
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/Voucher/model.js +0 -43
- package/lib/components/wallet/carouselArrow.png +0 -0
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/FooterButtons/index.js +0 -109
- package/lib/components/wallet/components/FooterButtons/index.less +0 -91
- package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/lib/components/wallet/components/UsageRules/index.js +0 -113
- package/lib/components/wallet/components/UsageRules/index.less +0 -157
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletBar/index.less +0 -36
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/WalletCard.js +0 -97
- package/lib/components/wallet/components/index.d.ts +0 -3
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/lib/components/wallet/hooks/useWalletCard.js +0 -111
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/index.js +0 -580
- package/lib/components/wallet/index.less +0 -151
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/locales.js +0 -163
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/model.js +0 -91
- package/lib/components/wallet/serve.d.ts +0 -150
- package/lib/components/wallet/serve.js +0 -85
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/wallet/utils/formatUtils.js +0 -73
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/pro/multiDayTimeSelect/MultiDayTimeSelect.tsx
|
|
30
|
+
var MultiDayTimeSelect_exports = {};
|
|
31
|
+
__export(MultiDayTimeSelect_exports, {
|
|
32
|
+
default: () => MultiDayTimeSelect_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(MultiDayTimeSelect_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_icons = require("@ant-design/icons");
|
|
37
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
38
|
+
var import_materials = require("@pisell/materials");
|
|
39
|
+
var import_antd = require("antd");
|
|
40
|
+
var import_utils = require("@pisell/utils");
|
|
41
|
+
var import_dateRange = require("../../components/booking/info/dateRange");
|
|
42
|
+
var import_MultiDayTimeSelect = require("./MultiDayTimeSelect.less");
|
|
43
|
+
var RangePicker = import_materials.DatePicker.RangePicker;
|
|
44
|
+
var MultiDayTimeSelect = (0, import_react.forwardRef)(({
|
|
45
|
+
maxDays = 30,
|
|
46
|
+
defaultStartDate,
|
|
47
|
+
separateStartEnd = false,
|
|
48
|
+
value,
|
|
49
|
+
onChange,
|
|
50
|
+
locale = "en",
|
|
51
|
+
disabled = false,
|
|
52
|
+
startDateLabel,
|
|
53
|
+
endDateLabel,
|
|
54
|
+
durationLabel
|
|
55
|
+
}, ref) => {
|
|
56
|
+
const [form] = import_antd.Form.useForm();
|
|
57
|
+
const [internalValue, setInternalValue] = (0, import_react.useState)(null);
|
|
58
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
59
|
+
validate: async () => {
|
|
60
|
+
await form.validateFields();
|
|
61
|
+
},
|
|
62
|
+
getValue: () => internalValue
|
|
63
|
+
}));
|
|
64
|
+
const formatLocale = (0, import_react.useMemo)(() => {
|
|
65
|
+
const isEn = locale === "en" || locale === "en-US";
|
|
66
|
+
return isEn ? "DD/MM/YYYY" : "YYYY-MM-DD";
|
|
67
|
+
}, [locale]);
|
|
68
|
+
const durationOptions = (0, import_react.useMemo)(() => {
|
|
69
|
+
const options = [];
|
|
70
|
+
for (let i = 1; i <= maxDays; i++) {
|
|
71
|
+
options.push({
|
|
72
|
+
label: `${i} ${i === 1 ? locale === "en" ? "day" : "天" : locale === "en" ? "days" : "天"}`,
|
|
73
|
+
value: i
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
const currentDuration = internalValue == null ? void 0 : internalValue.duration;
|
|
77
|
+
if (currentDuration && currentDuration > maxDays) {
|
|
78
|
+
options.push({
|
|
79
|
+
label: `${currentDuration} ${currentDuration === 1 ? locale === "en" ? "day" : "天" : locale === "en" ? "days" : "天"}`,
|
|
80
|
+
value: currentDuration,
|
|
81
|
+
disabled: true
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return options;
|
|
85
|
+
}, [maxDays, locale, internalValue == null ? void 0 : internalValue.duration]);
|
|
86
|
+
(0, import_react.useEffect)(() => {
|
|
87
|
+
if (value) {
|
|
88
|
+
setInternalValue(value);
|
|
89
|
+
form.setFieldsValue({
|
|
90
|
+
dateRange: separateStartEnd ? void 0 : [value.startDate, value.endDate],
|
|
91
|
+
startDate: separateStartEnd ? value.startDate : void 0,
|
|
92
|
+
endDate: separateStartEnd ? value.endDate : void 0,
|
|
93
|
+
duration: value.duration
|
|
94
|
+
});
|
|
95
|
+
} else {
|
|
96
|
+
const startDate = defaultStartDate || (0, import_dayjs.default)();
|
|
97
|
+
const endDate = startDate.add(1, "day");
|
|
98
|
+
const initialValue = {
|
|
99
|
+
startDate,
|
|
100
|
+
endDate,
|
|
101
|
+
duration: 1
|
|
102
|
+
};
|
|
103
|
+
setInternalValue(initialValue);
|
|
104
|
+
form.setFieldsValue({
|
|
105
|
+
dateRange: separateStartEnd ? void 0 : [startDate, endDate],
|
|
106
|
+
startDate: separateStartEnd ? startDate : void 0,
|
|
107
|
+
endDate: separateStartEnd ? endDate : void 0,
|
|
108
|
+
duration: 1
|
|
109
|
+
});
|
|
110
|
+
onChange == null ? void 0 : onChange(initialValue);
|
|
111
|
+
}
|
|
112
|
+
}, [value, defaultStartDate, separateStartEnd, form, onChange]);
|
|
113
|
+
const updateValue = (newValue) => {
|
|
114
|
+
setInternalValue(newValue);
|
|
115
|
+
onChange == null ? void 0 : onChange(newValue);
|
|
116
|
+
};
|
|
117
|
+
const handleDateRangeChange = (dates) => {
|
|
118
|
+
if (dates && dates[0] && dates[1]) {
|
|
119
|
+
const days = dates[1].diff(dates[0], "day");
|
|
120
|
+
let finalEndDate = dates[1];
|
|
121
|
+
let finalDuration = days;
|
|
122
|
+
if (days > 0) {
|
|
123
|
+
const newValue = {
|
|
124
|
+
startDate: dates[0],
|
|
125
|
+
endDate: finalEndDate,
|
|
126
|
+
duration: finalDuration
|
|
127
|
+
};
|
|
128
|
+
updateValue(newValue);
|
|
129
|
+
form.setFieldsValue({
|
|
130
|
+
dateRange: [dates[0], finalEndDate],
|
|
131
|
+
duration: finalDuration
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const handleStartDateChange = (date) => {
|
|
137
|
+
if (date && internalValue) {
|
|
138
|
+
const currentEndDate = internalValue.endDate;
|
|
139
|
+
const endTime = {
|
|
140
|
+
hour: currentEndDate.hour(),
|
|
141
|
+
minute: currentEndDate.minute(),
|
|
142
|
+
second: currentEndDate.second(),
|
|
143
|
+
millisecond: currentEndDate.millisecond()
|
|
144
|
+
};
|
|
145
|
+
const targetDuration = Math.min(internalValue.duration, maxDays);
|
|
146
|
+
let newEndDate = date.add(targetDuration, "day");
|
|
147
|
+
const finalEndDate = newEndDate.hour(endTime.hour).minute(endTime.minute).second(endTime.second).millisecond(endTime.millisecond);
|
|
148
|
+
const newValue = {
|
|
149
|
+
startDate: date,
|
|
150
|
+
endDate: finalEndDate,
|
|
151
|
+
duration: targetDuration
|
|
152
|
+
};
|
|
153
|
+
updateValue(newValue);
|
|
154
|
+
form.setFieldsValue({
|
|
155
|
+
endDate: finalEndDate,
|
|
156
|
+
duration: targetDuration
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const handleEndDateChange = (date) => {
|
|
161
|
+
if (date && internalValue) {
|
|
162
|
+
const days = date.diff(internalValue.startDate, "day");
|
|
163
|
+
if (days > 0) {
|
|
164
|
+
const newValue = {
|
|
165
|
+
startDate: internalValue.startDate,
|
|
166
|
+
endDate: date,
|
|
167
|
+
duration: days
|
|
168
|
+
};
|
|
169
|
+
updateValue(newValue);
|
|
170
|
+
form.setFieldsValue({
|
|
171
|
+
endDate: date,
|
|
172
|
+
duration: days
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
const handleDurationChange = (durationValue) => {
|
|
178
|
+
if (internalValue) {
|
|
179
|
+
const newEndDate = internalValue.startDate.add(durationValue, "day");
|
|
180
|
+
const newValue = {
|
|
181
|
+
startDate: internalValue.startDate,
|
|
182
|
+
endDate: newEndDate,
|
|
183
|
+
duration: durationValue
|
|
184
|
+
};
|
|
185
|
+
updateValue(newValue);
|
|
186
|
+
if (separateStartEnd) {
|
|
187
|
+
form.setFieldsValue({ endDate: newEndDate });
|
|
188
|
+
} else {
|
|
189
|
+
form.setFieldsValue({ dateRange: [internalValue.startDate, newEndDate] });
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", className: "multi-day-time-select-form" }, separateStartEnd ? /* @__PURE__ */ import_react.default.createElement("div", { className: "multi-day-time-select-row" }, /* @__PURE__ */ import_react.default.createElement(
|
|
194
|
+
import_antd.Form.Item,
|
|
195
|
+
{
|
|
196
|
+
label: startDateLabel || import_utils.locales.getText("pisell2.text.start_date"),
|
|
197
|
+
name: "startDate",
|
|
198
|
+
rules: [{ required: true, message: startDateLabel || import_utils.locales.getText("pisell2.text.start_date") }],
|
|
199
|
+
style: { flex: 1 }
|
|
200
|
+
},
|
|
201
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
202
|
+
import_materials.DatePicker,
|
|
203
|
+
{
|
|
204
|
+
inputReadOnly: true,
|
|
205
|
+
allowClear: false,
|
|
206
|
+
size: "large",
|
|
207
|
+
style: { width: "100%", padding: 0 },
|
|
208
|
+
suffixIcon: /* @__PURE__ */ import_react.default.createElement(import_icons.CalendarOutlined, null),
|
|
209
|
+
value: internalValue == null ? void 0 : internalValue.startDate,
|
|
210
|
+
onChange: handleStartDateChange,
|
|
211
|
+
format: formatLocale,
|
|
212
|
+
isHideCustomSelect: true,
|
|
213
|
+
disabled
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
217
|
+
import_antd.Form.Item,
|
|
218
|
+
{
|
|
219
|
+
label: endDateLabel || import_utils.locales.getText("pisell2.text.end_date"),
|
|
220
|
+
name: "endDate",
|
|
221
|
+
rules: [{ required: true, message: endDateLabel || import_utils.locales.getText("pisell2.text.end_date") }],
|
|
222
|
+
style: { flex: 1 }
|
|
223
|
+
},
|
|
224
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
225
|
+
import_materials.DatePicker,
|
|
226
|
+
{
|
|
227
|
+
inputReadOnly: true,
|
|
228
|
+
allowClear: false,
|
|
229
|
+
size: "large",
|
|
230
|
+
style: { width: "100%", padding: 0 },
|
|
231
|
+
suffixIcon: /* @__PURE__ */ import_react.default.createElement(import_icons.CalendarOutlined, null),
|
|
232
|
+
value: internalValue == null ? void 0 : internalValue.endDate,
|
|
233
|
+
onChange: handleEndDateChange,
|
|
234
|
+
format: formatLocale,
|
|
235
|
+
isHideCustomSelect: true,
|
|
236
|
+
disabled,
|
|
237
|
+
disabledDate: (current) => {
|
|
238
|
+
if (internalValue == null ? void 0 : internalValue.startDate) {
|
|
239
|
+
return current.isSameOrBefore(internalValue.startDate, "day");
|
|
240
|
+
}
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
)) : /* @__PURE__ */ import_react.default.createElement("div", { className: "multi-day-time-select-row" }, /* @__PURE__ */ import_react.default.createElement(
|
|
246
|
+
import_antd.Form.Item,
|
|
247
|
+
{
|
|
248
|
+
label: startDateLabel || import_utils.locales.getText("pisell2.text.start_date"),
|
|
249
|
+
name: "dateRange",
|
|
250
|
+
rules: [{ required: true, message: startDateLabel || import_utils.locales.getText("pisell2.text.start_date") }],
|
|
251
|
+
style: { flex: 1 }
|
|
252
|
+
},
|
|
253
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.Page, { isRenderPisellConfigProvider: false }, /* @__PURE__ */ import_react.default.createElement(
|
|
254
|
+
RangePicker,
|
|
255
|
+
{
|
|
256
|
+
inputReadOnly: true,
|
|
257
|
+
allowClear: false,
|
|
258
|
+
size: "large",
|
|
259
|
+
style: { width: "100%", padding: 0 },
|
|
260
|
+
suffixIcon: /* @__PURE__ */ import_react.default.createElement(import_icons.CalendarOutlined, null),
|
|
261
|
+
value: internalValue ? [internalValue.startDate, internalValue.endDate] : null,
|
|
262
|
+
onChange: handleDateRangeChange,
|
|
263
|
+
format: formatLocale,
|
|
264
|
+
isHideCustomSelect: true,
|
|
265
|
+
endDateDays: 1,
|
|
266
|
+
disabled,
|
|
267
|
+
disabledDate: import_dateRange.disabledDate
|
|
268
|
+
}
|
|
269
|
+
))
|
|
270
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
271
|
+
import_antd.Form.Item,
|
|
272
|
+
{
|
|
273
|
+
label: durationLabel || import_utils.locales.getText("pisell2.text.duration"),
|
|
274
|
+
name: "duration",
|
|
275
|
+
rules: [{ required: true, message: durationLabel || import_utils.locales.getText("pisell2.text.duration") }]
|
|
276
|
+
},
|
|
277
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
278
|
+
import_antd.Select,
|
|
279
|
+
{
|
|
280
|
+
size: "large",
|
|
281
|
+
value: internalValue == null ? void 0 : internalValue.duration,
|
|
282
|
+
onChange: handleDurationChange,
|
|
283
|
+
options: durationOptions,
|
|
284
|
+
disabled
|
|
285
|
+
}
|
|
286
|
+
)
|
|
287
|
+
));
|
|
288
|
+
});
|
|
289
|
+
MultiDayTimeSelect.displayName = "MultiDayTimeSelect";
|
|
290
|
+
var MultiDayTimeSelect_default = MultiDayTimeSelect;
|
|
@@ -26,20 +26,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// src/
|
|
30
|
-
var
|
|
31
|
-
__export(
|
|
32
|
-
|
|
33
|
-
UsageRules: () => import_UsageRules.default,
|
|
34
|
-
WalletBar: () => import_WalletBar.default
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(components_exports);
|
|
37
|
-
var import_WalletBar = __toESM(require("./WalletBar"));
|
|
38
|
-
var import_FooterButtons = __toESM(require("./FooterButtons"));
|
|
39
|
-
var import_UsageRules = __toESM(require("./UsageRules"));
|
|
40
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
-
0 && (module.exports = {
|
|
42
|
-
FooterButtons,
|
|
43
|
-
UsageRules,
|
|
44
|
-
WalletBar
|
|
29
|
+
// src/pro/multiDayTimeSelect/index.tsx
|
|
30
|
+
var multiDayTimeSelect_exports = {};
|
|
31
|
+
__export(multiDayTimeSelect_exports, {
|
|
32
|
+
default: () => import_MultiDayTimeSelect.default
|
|
45
33
|
});
|
|
34
|
+
module.exports = __toCommonJS(multiDayTimeSelect_exports);
|
|
35
|
+
var import_MultiDayTimeSelect = __toESM(require("./MultiDayTimeSelect"));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
export interface MultiDayTimeSelectValue {
|
|
3
|
+
startDate: Dayjs;
|
|
4
|
+
endDate: Dayjs;
|
|
5
|
+
duration: number;
|
|
6
|
+
}
|
|
7
|
+
export interface MultiDayTimeSelectProps {
|
|
8
|
+
/** 最大天数,默认30天 */
|
|
9
|
+
maxDays?: number;
|
|
10
|
+
/** 默认开始时间 */
|
|
11
|
+
defaultStartDate?: Dayjs;
|
|
12
|
+
/** 开始时间和结束时间是否分离,false使用RangePicker,true使用两个独立的DatePicker */
|
|
13
|
+
separateStartEnd?: boolean;
|
|
14
|
+
/** 受控值 */
|
|
15
|
+
value?: MultiDayTimeSelectValue;
|
|
16
|
+
/** 值变化回调 */
|
|
17
|
+
onChange?: (value: MultiDayTimeSelectValue) => void;
|
|
18
|
+
/** 语言环境 */
|
|
19
|
+
locale?: string;
|
|
20
|
+
/** 是否禁用 */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** 开始日期标签 */
|
|
23
|
+
startDateLabel?: string;
|
|
24
|
+
/** 结束日期标签 */
|
|
25
|
+
endDateLabel?: string;
|
|
26
|
+
/** 时长标签 */
|
|
27
|
+
durationLabel?: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/pro/multiDayTimeSelect/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -2,7 +2,7 @@ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode
|
|
|
2
2
|
|
|
3
3
|
const EventSelectHolderMeta: IPublicTypeComponentMetadata = {
|
|
4
4
|
componentName: 'EventSelectHolder',
|
|
5
|
-
title: '选择持有人',
|
|
5
|
+
title: 'Event选择持有人',
|
|
6
6
|
category: '数据展示',
|
|
7
7
|
docUrl: '',
|
|
8
8
|
screenshot: '',
|
|
@@ -65,7 +65,7 @@ const EventSelectHolderMeta: IPublicTypeComponentMetadata = {
|
|
|
65
65
|
|
|
66
66
|
const snippets: IPublicTypeSnippet[] = [
|
|
67
67
|
{
|
|
68
|
-
title: '选择持有人',
|
|
68
|
+
title: 'Event选择持有人',
|
|
69
69
|
screenshot: '',
|
|
70
70
|
schema: {
|
|
71
71
|
componentName: 'EventSelectHolder',
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
import { AntdIconSetter } from '../../../materials/lowcode/_setters';
|
|
3
|
+
import snippets from './snippets';
|
|
4
|
+
|
|
5
|
+
const SelectHolderMeta: ComponentMetadata = {
|
|
6
|
+
componentName: "SelectHolder",
|
|
7
|
+
title: "选择持有人",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
category: "数据展示",
|
|
11
|
+
devMode: "proCode",
|
|
12
|
+
npm: {
|
|
13
|
+
package: "@pisell/private-materials",
|
|
14
|
+
version: "1.0.4",
|
|
15
|
+
exportName: "SelectHolder",
|
|
16
|
+
main: "src/index.ts",
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: ""
|
|
19
|
+
},
|
|
20
|
+
configure: {
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
title: {
|
|
24
|
+
label: {
|
|
25
|
+
type: 'i18n',
|
|
26
|
+
'en-US': 'dataSource',
|
|
27
|
+
'zh-CN': '数据源',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
name: 'dataSource',
|
|
31
|
+
setter: {
|
|
32
|
+
componentName: 'JsonSetter',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: { label: '选中的值', tip: 'Array<any> | 选中的值' },
|
|
37
|
+
name: 'value',
|
|
38
|
+
setter: {
|
|
39
|
+
componentName: 'ObjectSetter',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: '录入方式',
|
|
44
|
+
display: 'block',
|
|
45
|
+
type: 'group',
|
|
46
|
+
items: [
|
|
47
|
+
{
|
|
48
|
+
name: 'modalConfig.title',
|
|
49
|
+
title: '标题文案',
|
|
50
|
+
setter: 'StringSetter',
|
|
51
|
+
defaultValue: 'Who would you like to book this event for?',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'modalConfig.confirmText',
|
|
55
|
+
title: '按钮文案',
|
|
56
|
+
setter: 'StringSetter',
|
|
57
|
+
defaultValue: 'Confirm',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'modalConfig.showClose',
|
|
61
|
+
title: { label: '显示弹窗关闭', tip: 'showClose | 显示弹窗关闭' },
|
|
62
|
+
setter: 'BoolSetter',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: '字段展示',
|
|
68
|
+
display: 'block',
|
|
69
|
+
type: 'group',
|
|
70
|
+
items: [
|
|
71
|
+
{
|
|
72
|
+
name: 'displayConfig.showAvatar',
|
|
73
|
+
title: { label: '显示图像', tip: 'showAvatar | 显示图像' },
|
|
74
|
+
setter: 'BoolSetter',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'displayConfig.showTitle',
|
|
78
|
+
title: { label: '显示名称', tip: 'showTitle | 显示名称' },
|
|
79
|
+
setter: 'BoolSetter',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'displayConfig.showSubtitle',
|
|
83
|
+
title: { label: '显示次级标题', tip: 'showSubtitle | 显示次级标题' },
|
|
84
|
+
setter: 'BoolSetter',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'displayConfig.isSkipable',
|
|
88
|
+
title: { label: '可跳过', tip: 'isSkipable | 可跳过' },
|
|
89
|
+
setter: 'BoolSetter',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'displayConfig.direction',
|
|
93
|
+
title: { label: '展示方向', tip: '展示方向' },
|
|
94
|
+
propType: { type: 'oneOf', value: ['horizontal', 'vertical'] },
|
|
95
|
+
setter: {
|
|
96
|
+
componentName: 'RadioGroupSetter',
|
|
97
|
+
props: {
|
|
98
|
+
options: [
|
|
99
|
+
{ label: '水平', value: 'horizontal' },
|
|
100
|
+
{ label: '垂直', value: 'vertical' },
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'displayConfig.selectType',
|
|
107
|
+
title: { label: '选择类型', tip: '选择类型' },
|
|
108
|
+
propType: { type: 'oneOf', value: ['single', 'multiple'] },
|
|
109
|
+
setter: {
|
|
110
|
+
componentName: 'RadioGroupSetter',
|
|
111
|
+
props: {
|
|
112
|
+
options: [
|
|
113
|
+
{ label: '单选', value: 'single' },
|
|
114
|
+
{ label: '多选', value: 'multiple' },
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'displayConfig.showExtraFields',
|
|
121
|
+
title: { label: '增加字段', tip: 'showExtraFields | 增加字段' },
|
|
122
|
+
setter: 'BoolSetter',
|
|
123
|
+
defaultValue: false,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'displayConfig.extraFields',
|
|
127
|
+
title: { label: '额外字段', tip: 'extraFields | 额外字段' },
|
|
128
|
+
setter: {
|
|
129
|
+
componentName: 'ArraySetter',
|
|
130
|
+
props: {
|
|
131
|
+
itemSetter: {
|
|
132
|
+
componentName: 'ObjectSetter',
|
|
133
|
+
props: {
|
|
134
|
+
config: {
|
|
135
|
+
items: [
|
|
136
|
+
{
|
|
137
|
+
name: 'label',
|
|
138
|
+
title: '标签',
|
|
139
|
+
setter: 'PisellI18nSetter',
|
|
140
|
+
important: true,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'value',
|
|
144
|
+
title: 'key',
|
|
145
|
+
setter: 'StringSetter',
|
|
146
|
+
important: true,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'isShowLabel',
|
|
150
|
+
title: '显示标签',
|
|
151
|
+
setter: 'BoolSetter',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'isShowValue',
|
|
155
|
+
title: '显示key',
|
|
156
|
+
setter: 'BoolSetter',
|
|
157
|
+
},
|
|
158
|
+
// {
|
|
159
|
+
// name: 'icon',
|
|
160
|
+
// title: 'icon选择',
|
|
161
|
+
// setter: AntdIconSetter,
|
|
162
|
+
// },
|
|
163
|
+
// {
|
|
164
|
+
// name: 'iconSize',
|
|
165
|
+
// title: 'icon大小',
|
|
166
|
+
// setter: ['NumberSetter'],
|
|
167
|
+
// },
|
|
168
|
+
// {
|
|
169
|
+
// name: 'iconColor',
|
|
170
|
+
// title: 'icon颜色',
|
|
171
|
+
// setter: 'ColorSetter',
|
|
172
|
+
// },
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
initialValue: {
|
|
177
|
+
isShowLabel: false,
|
|
178
|
+
isShowValue: true
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
condition: (target: any) => target.getProps().getPropValue('displayConfig.showExtraFields'),
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
supports: {
|
|
189
|
+
style: true,
|
|
190
|
+
events: [
|
|
191
|
+
{
|
|
192
|
+
name: 'onAdd',
|
|
193
|
+
template:
|
|
194
|
+
"onAdd(){\n// 创建新的回调函数\nconsole.log('onAdd');}",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'onClose',
|
|
198
|
+
template:
|
|
199
|
+
"onClose(){\n// 关闭弹窗回调函数\nconsole.log('onClose');}",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'onConfirm',
|
|
203
|
+
template:
|
|
204
|
+
"onConfirm(checkedValue,${extParams}){\n// 确认回调函数\nconsole.log('onConfirm');}",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'onSkip',
|
|
208
|
+
template:
|
|
209
|
+
"onSkip(){\n// 跳过回调函数\nconsole.log('onSkip');}",
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
component: {}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
export default {
|
|
218
|
+
...SelectHolderMeta,
|
|
219
|
+
snippets
|
|
220
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const snippets: Snippet[] = [
|
|
4
|
+
{
|
|
5
|
+
title: '选择持有人',
|
|
6
|
+
screenshot: '',
|
|
7
|
+
schema: {
|
|
8
|
+
componentName: 'SelectHolder',
|
|
9
|
+
props: {
|
|
10
|
+
dataSource: [
|
|
11
|
+
{
|
|
12
|
+
value: 1,
|
|
13
|
+
label: 'Olivia',
|
|
14
|
+
subtitle: 'Subtitle',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
value: 2,
|
|
18
|
+
label: 'Ricky Spagehetti',
|
|
19
|
+
subtitle: 'SubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitleSubtitle',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
value: [1],
|
|
23
|
+
modalConfig: {
|
|
24
|
+
title: 'Who would you like to book this event for?',
|
|
25
|
+
confirmText: 'Confirm',
|
|
26
|
+
showClose: true,
|
|
27
|
+
},
|
|
28
|
+
displayConfig: {
|
|
29
|
+
showAvatar: true,
|
|
30
|
+
showTitle: true,
|
|
31
|
+
showSubtitle: true,
|
|
32
|
+
isSkipable: true,
|
|
33
|
+
direction: 'horizontal',
|
|
34
|
+
selectType: 'single',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
export default snippets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.8",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"styled-components": "^6.0.0-rc.3",
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
|
+
"@pisell/utils": "3.0.2",
|
|
64
65
|
"@pisell/icon": "0.0.11",
|
|
65
66
|
"@pisell/materials": "6.8.3",
|
|
66
|
-
"@pisell/date-picker": "3.0.7"
|
|
67
|
-
"@pisell/utils": "3.0.2"
|
|
67
|
+
"@pisell/date-picker": "3.0.7"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|