@pisell/private-materials 6.5.31 → 6.5.32
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 +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +529 -79
- package/es/components/booking/components/footer/index.js +15 -3
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +160 -61
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +20 -6
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +2 -3
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- 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.d.ts +1 -0
- package/es/components/booking/utils.js +16 -3
- package/es/components/checkout/PaymentModal.d.ts +7 -5
- package/es/components/checkout/PaymentModal.js +44 -108
- package/es/components/checkout/components/AdditionalModule/index.js +2 -0
- package/es/components/checkout/components/AmountSummary/index.less +4 -5
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/payo/config.js +70 -32
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/index.js +7 -4
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
- package/es/components/ticketBooking/utils/index.d.ts +3 -0
- package/es/components/ticketBooking/utils/index.js +36 -13
- package/es/components/wallet/Detail/index.js +34 -2
- package/es/components/wallet/Detail/index.less +11 -0
- package/es/components/wallet/Detail/locales.d.ts +6 -0
- package/es/components/wallet/Detail/locales.js +14 -2
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/index.js +11 -10
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/components/WalletCard.js +5 -1
- package/es/components/wallet/index.js +4 -2
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/wallet/serve.d.ts +7 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/wallet/utils.js +342 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +7 -3
- package/es/plus/walletPassGallery/serve.d.ts +3 -0
- package/es/plus/walletPassGallery/serve.js +4 -2
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +276 -38
- package/lib/components/booking/components/footer/index.js +15 -3
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +109 -33
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +21 -7
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +1 -2
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- 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.d.ts +1 -0
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/PaymentModal.d.ts +7 -5
- package/lib/components/checkout/PaymentModal.js +73 -127
- package/lib/components/checkout/components/AdditionalModule/index.js +2 -0
- package/lib/components/checkout/components/AmountSummary/index.less +4 -5
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/index.js +4 -1
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/index.js +48 -0
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/types.js +17 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/utils/index.d.ts +3 -0
- package/lib/components/ticketBooking/utils/index.js +20 -6
- package/lib/components/wallet/Detail/index.js +31 -3
- package/lib/components/wallet/Detail/index.less +11 -0
- package/lib/components/wallet/Detail/locales.d.ts +6 -0
- package/lib/components/wallet/Detail/locales.js +14 -2
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/components/WalletCard.js +4 -0
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/wallet/serve.d.ts +7 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/wallet/utils.js +287 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +7 -3
- package/lib/plus/walletPassGallery/serve.d.ts +3 -0
- package/lib/plus/walletPassGallery/serve.js +3 -2
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
- package/lowcode/settings-registry/meta.ts +29 -0
- package/lowcode/wallet-pass-detail/meta.ts +89 -0
- package/package.json +1 -1
- package/es/components/checkout/PaymentPlugin.d.ts +0 -2
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
- package/lib/components/checkout/PaymentPlugin.js +0 -181
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
selectedGiftOptionId: string | null;
|
|
4
|
-
cardList: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
price: number;
|
|
8
|
-
}>;
|
|
9
|
-
selectedItem: {
|
|
10
|
-
id?: string;
|
|
11
|
-
gift_price?: number;
|
|
12
|
-
price?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
variant_id?: string;
|
|
15
|
-
};
|
|
16
|
-
productId?: string;
|
|
17
|
-
detailId?: string;
|
|
18
|
-
total: string | number;
|
|
19
|
-
rechargeModalOpen: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
-
state: RechargeState;
|
|
23
|
-
} & {
|
|
24
|
-
dispatch: (params: {
|
|
25
|
-
type: string;
|
|
26
|
-
payload: any;
|
|
27
|
-
}) => void;
|
|
28
|
-
}>;
|
|
29
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -48,6 +48,17 @@ var Voucher = Provider(function (props) {
|
|
|
48
48
|
}
|
|
49
49
|
}, [globalState.setup]);
|
|
50
50
|
|
|
51
|
+
// 添加处理后退按钮的方法
|
|
52
|
+
var handleBack = useCallback(function () {
|
|
53
|
+
if (recordViewRef.current) {
|
|
54
|
+
recordViewRef.current.closeDetailModal();
|
|
55
|
+
}
|
|
56
|
+
// 更新状态
|
|
57
|
+
setGlobalState({
|
|
58
|
+
setup: 'list'
|
|
59
|
+
});
|
|
60
|
+
}, [recordViewRef, setGlobalState]);
|
|
61
|
+
|
|
51
62
|
// 渲染卡片项
|
|
52
63
|
var renderItem = function renderItem(item) {
|
|
53
64
|
return /*#__PURE__*/React.createElement(WalletCard, {
|
|
@@ -67,16 +78,6 @@ var Voucher = Provider(function (props) {
|
|
|
67
78
|
if (isEmpty) {
|
|
68
79
|
return /*#__PURE__*/React.createElement(PisellEmpty, null);
|
|
69
80
|
}
|
|
70
|
-
// 添加处理后退按钮的方法
|
|
71
|
-
var handleBack = useCallback(function () {
|
|
72
|
-
if (recordViewRef.current) {
|
|
73
|
-
recordViewRef.current.closeDetailModal();
|
|
74
|
-
}
|
|
75
|
-
// 更新状态
|
|
76
|
-
setGlobalState({
|
|
77
|
-
setup: 'list'
|
|
78
|
-
});
|
|
79
|
-
}, [recordViewRef, setGlobalState]);
|
|
80
81
|
return /*#__PURE__*/React.createElement(React.Fragment, null, platform !== 'pc' && /*#__PURE__*/React.createElement(Title, {
|
|
81
82
|
className: "wallet-voucher-title"
|
|
82
83
|
}, locales.getText('page.wallet.voucher')), /*#__PURE__*/React.createElement(CardMetricItem, {
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: 0;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages"];
|
|
1
|
+
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages", "custom_schedule_snapshot", "metadata"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -40,6 +40,8 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
40
40
|
par_value = _item$par_value === void 0 ? '' : _item$par_value,
|
|
41
41
|
_item$unified_message = item.unified_messages,
|
|
42
42
|
unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
|
|
43
|
+
custom_schedule_snapshot = item.custom_schedule_snapshot,
|
|
44
|
+
metadata = item.metadata,
|
|
43
45
|
rest = _objectWithoutProperties(item, _excluded);
|
|
44
46
|
|
|
45
47
|
// 获取平台
|
|
@@ -58,6 +60,8 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
58
60
|
// 是否禁用
|
|
59
61
|
var isDisabled = limit_status !== 'enable';
|
|
60
62
|
return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, rest, {
|
|
63
|
+
scheduleList: (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [],
|
|
64
|
+
validDateBySchedule: (metadata === null || metadata === void 0 ? void 0 : metadata.validity_type) === 'custom_schedule_validity',
|
|
61
65
|
balanceTitle: balanceTitle,
|
|
62
66
|
showDetail: false,
|
|
63
67
|
showRedeem: false,
|
|
@@ -72,7 +72,8 @@ var Wallet = Provider(function () {
|
|
|
72
72
|
document.body.id = 'body';
|
|
73
73
|
getList({
|
|
74
74
|
num: 999,
|
|
75
|
-
skip: 1
|
|
75
|
+
skip: 1,
|
|
76
|
+
with: ['customScheduleSnapshot']
|
|
76
77
|
});
|
|
77
78
|
}, []);
|
|
78
79
|
var transformData = function transformData(data) {
|
|
@@ -477,7 +478,8 @@ var Wallet = Provider(function () {
|
|
|
477
478
|
// 重新获取列表
|
|
478
479
|
getList({
|
|
479
480
|
num: 999,
|
|
480
|
-
skip: 1
|
|
481
|
+
skip: 1,
|
|
482
|
+
with: ['customScheduleSnapshot']
|
|
481
483
|
}, code);
|
|
482
484
|
}
|
|
483
485
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IWalletListItemProps } from './serve';
|
|
3
2
|
export interface WalletCardItemProps {
|
|
4
3
|
id: string;
|
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
|
27
26
|
currentSearchListItemCode?: string;
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}
|
|
30
|
-
export declare const Provider:
|
|
31
|
-
global_wallet: WalletListProps;
|
|
32
|
-
} & {
|
|
33
|
-
dispatch: (params: {
|
|
34
|
-
type: string;
|
|
35
|
-
payload: any;
|
|
36
|
-
}) => void;
|
|
37
|
-
}>;
|
|
29
|
+
export declare const Provider: any, Context: any;
|
|
@@ -15,6 +15,7 @@ export interface IWalletListParmsProps {
|
|
|
15
15
|
used_status?: string;
|
|
16
16
|
num?: number;
|
|
17
17
|
skip?: number;
|
|
18
|
+
with?: string[];
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* 钱包列表项属性接口
|
|
@@ -48,6 +49,12 @@ export interface IWalletListItemProps {
|
|
|
48
49
|
machinecode_config?: {
|
|
49
50
|
hide_recharge?: number;
|
|
50
51
|
};
|
|
52
|
+
metadata: {
|
|
53
|
+
validity_type: string;
|
|
54
|
+
};
|
|
55
|
+
custom_schedule_snapshot: {
|
|
56
|
+
data: any[];
|
|
57
|
+
};
|
|
51
58
|
}
|
|
52
59
|
/**
|
|
53
60
|
* 商店信息接口
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
interface ScheduleTextResult {
|
|
2
|
+
validityTexts: string[];
|
|
3
|
+
excluded_date: string[];
|
|
4
|
+
included_date: string[];
|
|
5
|
+
}
|
|
6
|
+
declare type Locale = 'en' | 'zh-CN' | 'zh-HK';
|
|
7
|
+
interface ScheduleItem {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string | {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
type: 'standard' | 'time-slots' | 'designation';
|
|
13
|
+
start_time: string | null;
|
|
14
|
+
end_time: string | null;
|
|
15
|
+
repeat_type: 'none' | 'daily' | 'weekly';
|
|
16
|
+
repeat_rule: {
|
|
17
|
+
end: {
|
|
18
|
+
type: 'never' | 'date' | 'occurrence';
|
|
19
|
+
end_date: string | null;
|
|
20
|
+
occurrence: number | null;
|
|
21
|
+
};
|
|
22
|
+
frequency: number;
|
|
23
|
+
excluded_date: Array<{
|
|
24
|
+
start: string;
|
|
25
|
+
end: string;
|
|
26
|
+
}>;
|
|
27
|
+
included_date: any[];
|
|
28
|
+
frequency_date: number[];
|
|
29
|
+
} | null;
|
|
30
|
+
designation: Array<{
|
|
31
|
+
start_date: string;
|
|
32
|
+
start_time: string;
|
|
33
|
+
end_date: string;
|
|
34
|
+
end_time: string;
|
|
35
|
+
}> | null;
|
|
36
|
+
is_all: number;
|
|
37
|
+
time_slot: Array<{
|
|
38
|
+
start_time: string;
|
|
39
|
+
end_time: string;
|
|
40
|
+
}>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 根据scheduleList格式化文案展示
|
|
44
|
+
* @param scheduleList 日程列表
|
|
45
|
+
* @returns 格式化后的文案结果数组,每个日程对应一个结果
|
|
46
|
+
*/
|
|
47
|
+
export declare function formatScheduleText(scheduleList: ScheduleItem[], locale?: Locale): ScheduleTextResult[];
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
// 日程文案格式化接口
|
|
8
|
+
|
|
9
|
+
// 日程项接口定义
|
|
10
|
+
|
|
11
|
+
// 格式化日期时间函数
|
|
12
|
+
function formatDateTime(dateTime) {
|
|
13
|
+
var isAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
14
|
+
var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'zh-CN';
|
|
15
|
+
var date = new Date(dateTime);
|
|
16
|
+
var year = date.getFullYear();
|
|
17
|
+
var month = String(date.getMonth() + 1).padStart(2, '0');
|
|
18
|
+
var day = String(date.getDate()).padStart(2, '0');
|
|
19
|
+
var hours = date.getHours();
|
|
20
|
+
var minutes = String(date.getMinutes()).padStart(2, '0');
|
|
21
|
+
if (isAll) {
|
|
22
|
+
// 全天情况下的日期格式
|
|
23
|
+
if (locale === 'en') {
|
|
24
|
+
return "".concat(day, "/").concat(month, "/").concat(year);
|
|
25
|
+
} else {
|
|
26
|
+
return "".concat(year, "-").concat(month, "-").concat(day);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// 非全天情况下的日期时间格式
|
|
31
|
+
if (locale === 'en') {
|
|
32
|
+
// DD/MM/YYYY h:mm A 格式
|
|
33
|
+
var period = hours >= 12 ? 'PM' : 'AM';
|
|
34
|
+
var displayHours = hours === 0 ? 12 : hours > 12 ? hours - 12 : hours;
|
|
35
|
+
return "".concat(day, "/").concat(month, "/").concat(year, " ").concat(displayHours, ":").concat(minutes, " ").concat(period);
|
|
36
|
+
} else {
|
|
37
|
+
// YYYY-MM-DD HH:mm 格式
|
|
38
|
+
var _displayHours = String(hours).padStart(2, '0');
|
|
39
|
+
return "".concat(year, "-").concat(month, "-").concat(day, " ").concat(_displayHours, ":").concat(minutes);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 多语言文案配置
|
|
44
|
+
var textConfig = {
|
|
45
|
+
'zh-HK': {
|
|
46
|
+
weekdays: ['日', '一', '二', '三', '四', '五', '六'],
|
|
47
|
+
separator: '、',
|
|
48
|
+
timeSeparator: '–',
|
|
49
|
+
rangeSeparator: ' 至 ',
|
|
50
|
+
periodSeparator: ';',
|
|
51
|
+
timeSlotSeparator: ',',
|
|
52
|
+
every: '每',
|
|
53
|
+
day: '天',
|
|
54
|
+
week: '周',
|
|
55
|
+
month: '月',
|
|
56
|
+
year: '年',
|
|
57
|
+
available: '可用',
|
|
58
|
+
unlimited: '无限期',
|
|
59
|
+
weekPrefix: '周'
|
|
60
|
+
},
|
|
61
|
+
'zh-CN': {
|
|
62
|
+
weekdays: ['日', '一', '二', '三', '四', '五', '六'],
|
|
63
|
+
separator: '、',
|
|
64
|
+
timeSeparator: '–',
|
|
65
|
+
rangeSeparator: ' 至 ',
|
|
66
|
+
periodSeparator: ';',
|
|
67
|
+
timeSlotSeparator: ',',
|
|
68
|
+
every: '每',
|
|
69
|
+
day: '天',
|
|
70
|
+
week: '周',
|
|
71
|
+
month: '月',
|
|
72
|
+
year: '年',
|
|
73
|
+
available: '可用',
|
|
74
|
+
unlimited: '无限期',
|
|
75
|
+
weekPrefix: '周'
|
|
76
|
+
},
|
|
77
|
+
'en': {
|
|
78
|
+
weekdays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
79
|
+
separator: ', ',
|
|
80
|
+
timeSeparator: '–',
|
|
81
|
+
rangeSeparator: ' - ',
|
|
82
|
+
periodSeparator: '; ',
|
|
83
|
+
timeSlotSeparator: ', ',
|
|
84
|
+
every: 'every ',
|
|
85
|
+
day: 'day',
|
|
86
|
+
week: 'week',
|
|
87
|
+
month: 'month',
|
|
88
|
+
year: 'year',
|
|
89
|
+
available: 'available',
|
|
90
|
+
unlimited: 'unlimited',
|
|
91
|
+
weekPrefix: ''
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// 获取星期几的表示
|
|
96
|
+
function getWeekdayText(dayNumbers, locale) {
|
|
97
|
+
var config = textConfig[locale];
|
|
98
|
+
return dayNumbers.map(function (day) {
|
|
99
|
+
return config.weekdays[day];
|
|
100
|
+
}).join(config.separator);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// 获取重复频率文案
|
|
104
|
+
function getRepeatFrequencyText(repeatType, frequency, locale) {
|
|
105
|
+
var config = textConfig[locale];
|
|
106
|
+
var typeMap = {
|
|
107
|
+
'daily': config.day,
|
|
108
|
+
'weekly': config.week,
|
|
109
|
+
'monthly': config.month,
|
|
110
|
+
'yearly': config.year
|
|
111
|
+
};
|
|
112
|
+
if (locale === 'en') {
|
|
113
|
+
if (frequency === 1) {
|
|
114
|
+
return "".concat(config.every).concat(typeMap[repeatType]);
|
|
115
|
+
}
|
|
116
|
+
return "".concat(config.every).concat(frequency, " ").concat(typeMap[repeatType], "s");
|
|
117
|
+
} else {
|
|
118
|
+
if (frequency === 1) {
|
|
119
|
+
return "".concat(config.every).concat(typeMap[repeatType]);
|
|
120
|
+
}
|
|
121
|
+
return "".concat(config.every).concat(frequency).concat(typeMap[repeatType]);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 根据scheduleList格式化文案展示
|
|
127
|
+
* @param scheduleList 日程列表
|
|
128
|
+
* @returns 格式化后的文案结果数组,每个日程对应一个结果
|
|
129
|
+
*/
|
|
130
|
+
export function formatScheduleText(scheduleList) {
|
|
131
|
+
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en';
|
|
132
|
+
var results = [];
|
|
133
|
+
var config = textConfig[locale];
|
|
134
|
+
scheduleList.forEach(function (schedule) {
|
|
135
|
+
var _schedule$repeat_rule, _schedule$repeat_rule2;
|
|
136
|
+
var validityTexts = [];
|
|
137
|
+
var excluded_date = [];
|
|
138
|
+
var included_date = [];
|
|
139
|
+
|
|
140
|
+
// 处理排除日期
|
|
141
|
+
if ((_schedule$repeat_rule = schedule.repeat_rule) !== null && _schedule$repeat_rule !== void 0 && _schedule$repeat_rule.excluded_date) {
|
|
142
|
+
schedule.repeat_rule.excluded_date.forEach(function (excludeItem) {
|
|
143
|
+
var startDate = formatDateTime(excludeItem.start, true, locale);
|
|
144
|
+
var endDate = formatDateTime(excludeItem.end, true, locale);
|
|
145
|
+
if (excludeItem.start === excludeItem.end) {
|
|
146
|
+
// 开始和结束日期相同,只显示开始日期
|
|
147
|
+
excluded_date.push(startDate);
|
|
148
|
+
} else {
|
|
149
|
+
// 开始和结束日期不同,显示范围格式
|
|
150
|
+
excluded_date.push("".concat(startDate).concat(config.rangeSeparator).concat(endDate));
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// 处理包含日期
|
|
156
|
+
if ((_schedule$repeat_rule2 = schedule.repeat_rule) !== null && _schedule$repeat_rule2 !== void 0 && _schedule$repeat_rule2.included_date) {
|
|
157
|
+
schedule.repeat_rule.included_date.forEach(function (includeItem) {
|
|
158
|
+
var startDate = formatDateTime(includeItem.start, true, locale);
|
|
159
|
+
var endDate = formatDateTime(includeItem.end, true, locale);
|
|
160
|
+
if (includeItem.start === includeItem.end) {
|
|
161
|
+
// 开始和结束日期相同,只显示开始日期
|
|
162
|
+
included_date.push(startDate);
|
|
163
|
+
} else {
|
|
164
|
+
// 开始和结束日期不同,显示范围格式
|
|
165
|
+
included_date.push("".concat(startDate).concat(config.rangeSeparator).concat(endDate));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
var isAllDay = schedule.is_all === 1;
|
|
170
|
+
var validityText = '';
|
|
171
|
+
|
|
172
|
+
// 1. 非循环日程处理
|
|
173
|
+
if (schedule.repeat_type === 'none') {
|
|
174
|
+
// 1.1 单个标准日程(单日单段)
|
|
175
|
+
if (schedule.type === 'standard') {
|
|
176
|
+
var startDateTime = formatDateTime(schedule.start_time, isAllDay, locale);
|
|
177
|
+
var endDateTime = formatDateTime(schedule.end_time, isAllDay, locale);
|
|
178
|
+
validityText = "".concat(startDateTime).concat(config.rangeSeparator).concat(endDateTime);
|
|
179
|
+
}
|
|
180
|
+
// 1.2 多时间段日程(单日多段)
|
|
181
|
+
else if (schedule.type === 'time-slots' && schedule.time_slot.length > 0) {
|
|
182
|
+
var baseDate = formatDateTime(schedule.start_time, true, locale);
|
|
183
|
+
if (isAllDay) {
|
|
184
|
+
// 全天情况下,不显示时分
|
|
185
|
+
validityText = "".concat(baseDate);
|
|
186
|
+
} else {
|
|
187
|
+
// 非全天情况下,按新格式显示时间段
|
|
188
|
+
var timeSlots = schedule.time_slot.map(function (slot) {
|
|
189
|
+
return "".concat(slot.start_time).concat(config.timeSeparator).concat(slot.end_time);
|
|
190
|
+
});
|
|
191
|
+
validityText = "".concat(baseDate, " ").concat(timeSlots.join(config.timeSlotSeparator));
|
|
192
|
+
}
|
|
193
|
+
} else if (schedule.type === 'designation' && schedule.designation) {
|
|
194
|
+
var designationTexts = schedule.designation.map(function (item) {
|
|
195
|
+
if (isAllDay || item.start_time === '00:00' && item.end_time === '23:59') {
|
|
196
|
+
// 全天情况:只显示日期
|
|
197
|
+
var startDate = formatDateTime(item.start_date, true, locale);
|
|
198
|
+
var endDate = formatDateTime(item.end_date, true, locale);
|
|
199
|
+
return "".concat(startDate).concat(config.rangeSeparator).concat(endDate);
|
|
200
|
+
} else {
|
|
201
|
+
// 非全天情况:按新格式显示日期时间
|
|
202
|
+
var _startDate = formatDateTime(item.start_date, true, locale);
|
|
203
|
+
return "".concat(_startDate, " ").concat(item.start_time).concat(config.timeSeparator).concat(item.end_time);
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
validityTexts.push.apply(validityTexts, _toConsumableArray(designationTexts));
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// 2. 循环日程处理
|
|
211
|
+
else if (schedule.repeat_rule) {
|
|
212
|
+
var _schedule$repeat_rule3 = schedule.repeat_rule,
|
|
213
|
+
frequency = _schedule$repeat_rule3.frequency,
|
|
214
|
+
frequency_date = _schedule$repeat_rule3.frequency_date;
|
|
215
|
+
|
|
216
|
+
// 根据 is_all 决定是否显示时分
|
|
217
|
+
var startText = isAllDay ? formatDateTime(schedule.start_time, true, locale) : formatDateTime(schedule.start_time, false, locale);
|
|
218
|
+
|
|
219
|
+
// 结束日期处理
|
|
220
|
+
var endDateText = '';
|
|
221
|
+
if (schedule.repeat_rule.end.type === 'never') {
|
|
222
|
+
endDateText = config.unlimited;
|
|
223
|
+
} else if (schedule.repeat_rule.end.end_date) {
|
|
224
|
+
endDateText = formatDateTime(schedule.repeat_rule.end.end_date, true, locale);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// 2.1 标准类型循环日程
|
|
228
|
+
if (schedule.type === 'standard') {
|
|
229
|
+
// 按天循环
|
|
230
|
+
if (schedule.repeat_type === 'daily') {
|
|
231
|
+
if (isAllDay) {
|
|
232
|
+
var frequencyText = getRepeatFrequencyText('daily', frequency, locale);
|
|
233
|
+
if (locale === 'en') {
|
|
234
|
+
validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, ", ").concat(config.available, " ").concat(frequencyText);
|
|
235
|
+
} else {
|
|
236
|
+
validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(frequencyText).concat(config.available);
|
|
237
|
+
}
|
|
238
|
+
} else {
|
|
239
|
+
var startTime = formatDateTime(schedule.start_time, false, locale);
|
|
240
|
+
var endTime = formatDateTime(schedule.end_time, false, locale);
|
|
241
|
+
var timeRange = locale === 'en' ? "".concat(startTime.split(' ')[1], " ").concat(startTime.split(' ')[2]).concat(config.timeSeparator).concat(endTime.split(' ')[1], " ").concat(endTime.split(' ')[2]) : "".concat(startTime.split(' ')[1]).concat(config.timeSeparator).concat(endTime.split(' ')[1]);
|
|
242
|
+
var _frequencyText = getRepeatFrequencyText('daily', frequency, locale);
|
|
243
|
+
var dateRange = locale === 'en' ? "".concat(startTime.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText) : "".concat(startText.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText);
|
|
244
|
+
if (locale === 'en') {
|
|
245
|
+
validityText = "".concat(dateRange, ", ").concat(config.available, " ").concat(_frequencyText, " ").concat(timeRange);
|
|
246
|
+
} else {
|
|
247
|
+
validityText = "".concat(dateRange, "\uFF0C").concat(_frequencyText, " ").concat(timeRange, " ").concat(config.available);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// 按周循环
|
|
253
|
+
else if (schedule.repeat_type === 'weekly') {
|
|
254
|
+
var weekdaysText = getWeekdayText(frequency_date, locale);
|
|
255
|
+
if (isAllDay) {
|
|
256
|
+
if (locale === 'en') {
|
|
257
|
+
var _frequencyText2 = frequency === 1 ? 'every week' : "every ".concat(frequency, " weeks");
|
|
258
|
+
validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, ", ").concat(_frequencyText2, " on ").concat(weekdaysText, " ");
|
|
259
|
+
} else {
|
|
260
|
+
var _frequencyText3 = frequency === 1 ? '每周' : "\u6BCF".concat(frequency, "\u5468\u7684");
|
|
261
|
+
validityText = "".concat(startText).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(_frequencyText3).concat(config.weekPrefix).concat(weekdaysText).concat(config.available);
|
|
262
|
+
}
|
|
263
|
+
} else {
|
|
264
|
+
var _startTime = formatDateTime(schedule.start_time, false, locale);
|
|
265
|
+
var _endTime = formatDateTime(schedule.end_time, false, locale);
|
|
266
|
+
var _timeRange = locale === 'en' ? "".concat(_startTime.split(' ')[1], " ").concat(_startTime.split(' ')[2]).concat(config.timeSeparator).concat(_endTime.split(' ')[1], " ").concat(_endTime.split(' ')[2]) : "".concat(_startTime.split(' ')[1]).concat(config.timeSeparator).concat(_endTime.split(' ')[1]);
|
|
267
|
+
var _dateRange = locale === 'en' ? "".concat(_startTime.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText) : "".concat(startText.split(' ')[0]).concat(config.rangeSeparator).concat(endDateText);
|
|
268
|
+
if (locale === 'en') {
|
|
269
|
+
var _frequencyText4 = frequency === 1 ? 'every week' : "every ".concat(frequency, " weeks");
|
|
270
|
+
validityText = "".concat(_dateRange, ", ").concat(_frequencyText4, " on ").concat(weekdaysText, " ").concat(_timeRange);
|
|
271
|
+
} else {
|
|
272
|
+
var _frequencyText5 = frequency === 1 ? '每周' : "\u6BCF".concat(frequency, "\u5468\u7684");
|
|
273
|
+
validityText = "".concat(_dateRange, "\uFF0C").concat(_frequencyText5).concat(config.weekPrefix).concat(weekdaysText, " ").concat(_timeRange);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// 2.2 多时间段类型循环日程
|
|
280
|
+
else if (schedule.type === 'time-slots' && schedule.time_slot.length > 0) {
|
|
281
|
+
var _baseDate = formatDateTime(schedule.start_time, true, locale);
|
|
282
|
+
|
|
283
|
+
// 格式化时间段
|
|
284
|
+
var _timeSlots = schedule.time_slot.map(function (slot) {
|
|
285
|
+
return "".concat(slot.start_time).concat(config.timeSeparator).concat(slot.end_time);
|
|
286
|
+
});
|
|
287
|
+
var timeSlotsText = _timeSlots.join(config.timeSlotSeparator);
|
|
288
|
+
|
|
289
|
+
// 按天循环
|
|
290
|
+
if (schedule.repeat_type === 'daily') {
|
|
291
|
+
var _frequencyText6 = getRepeatFrequencyText('daily', frequency, locale);
|
|
292
|
+
if (locale === 'en') {
|
|
293
|
+
validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, ", ").concat(config.available, " ").concat(_frequencyText6, " ").concat(timeSlotsText);
|
|
294
|
+
} else {
|
|
295
|
+
validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(_frequencyText6, " ").concat(timeSlotsText, " ").concat(config.available);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// 按周循环
|
|
300
|
+
else if (schedule.repeat_type === 'weekly') {
|
|
301
|
+
var _weekdaysText = getWeekdayText(frequency_date, locale);
|
|
302
|
+
if (locale === 'en') {
|
|
303
|
+
var _frequencyText7 = frequency === 1 ? 'every week' : "every ".concat(frequency, " weeks");
|
|
304
|
+
validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, ", ").concat(_frequencyText7, " on ").concat(_weekdaysText, " ").concat(timeSlotsText);
|
|
305
|
+
} else {
|
|
306
|
+
var _frequencyText8 = frequency === 1 ? '每周' : "\u6BCF".concat(frequency, "\u5468\u7684");
|
|
307
|
+
validityText = "".concat(_baseDate).concat(config.rangeSeparator).concat(endDateText, "\uFF0C").concat(_frequencyText8).concat(config.weekPrefix).concat(_weekdaysText, " ").concat(timeSlotsText, " ").concat(config.available);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// 4. 指定日期日程(多天多段)
|
|
314
|
+
else if (schedule.type === 'designation' && schedule.designation) {
|
|
315
|
+
var _designationTexts = schedule.designation.map(function (item) {
|
|
316
|
+
if (isAllDay || item.start_time === '00:00' && item.end_time === '23:59') {
|
|
317
|
+
// 全天情况:只显示日期
|
|
318
|
+
var startDate = formatDateTime(item.start_date, true, locale);
|
|
319
|
+
var endDate = formatDateTime(item.end_date, true, locale);
|
|
320
|
+
return "".concat(startDate).concat(config.rangeSeparator).concat(endDate);
|
|
321
|
+
} else {
|
|
322
|
+
// 非全天情况:按新格式显示日期时间
|
|
323
|
+
var _startDate2 = formatDateTime(item.start_date, true, locale);
|
|
324
|
+
return "".concat(_startDate2, " ").concat(item.start_time).concat(config.timeSeparator).concat(item.end_time);
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
// 多天多段情况,每个时间段作为独立元素添加到validityTexts中
|
|
328
|
+
validityTexts.push.apply(validityTexts, _toConsumableArray(_designationTexts));
|
|
329
|
+
}
|
|
330
|
+
if (validityText) {
|
|
331
|
+
validityTexts.push(validityText);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// 为每个日程创建一个结果
|
|
335
|
+
results.push({
|
|
336
|
+
validityTexts: validityTexts,
|
|
337
|
+
excluded_date: excluded_date,
|
|
338
|
+
included_date: included_date
|
|
339
|
+
});
|
|
340
|
+
});
|
|
341
|
+
return results;
|
|
342
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { default as EftposPay } from './components/eftposPay';
|
|
|
23
23
|
export { default as ToCPay } from './components/pay/toC';
|
|
24
24
|
export { default as ToBPay } from './components/pay/toB';
|
|
25
25
|
export { default as Eftpos } from './components/eftpos';
|
|
26
|
+
export { default as Wallet } from './components/wallet';
|
|
26
27
|
export { default as WalletList } from './components/walletList';
|
|
27
28
|
export { default as BookingDashboard } from './components/booking/dashboard';
|
|
28
29
|
export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
|
|
@@ -69,3 +70,6 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
|
69
70
|
export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
|
70
71
|
export { default as WalletEditor } from './plus/walletEditor';
|
|
71
72
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
73
|
+
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
74
|
+
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
|
75
|
+
export { default as PaymentModal } from './components/checkout/PaymentModal';
|
package/es/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export { default as EftposPay } from "./components/eftposPay";
|
|
|
27
27
|
export { default as ToCPay } from "./components/pay/toC";
|
|
28
28
|
export { default as ToBPay } from "./components/pay/toB";
|
|
29
29
|
export { default as Eftpos } from "./components/eftpos";
|
|
30
|
+
export { default as Wallet } from "./components/wallet";
|
|
30
31
|
export { default as WalletList } from "./components/walletList";
|
|
31
32
|
export { default as BookingDashboard } from "./components/booking/dashboard";
|
|
32
33
|
export { default as PisellSelectCustomerModal } from "./components/pisellSelectCustomerModal";
|
|
@@ -71,4 +72,7 @@ export { default as ContactInfo } from "./plus/contactInfo";
|
|
|
71
72
|
export { default as ContactInfoModal } from "./plus/contactInfoModal";
|
|
72
73
|
export { Login2, Register2, AuthModal } from "./pro/Login2.0";
|
|
73
74
|
export { default as WalletEditor } from "./plus/walletEditor";
|
|
74
|
-
export { default as WalletPassGallery } from "./plus/walletPassGallery";
|
|
75
|
+
export { default as WalletPassGallery } from "./plus/walletPassGallery";
|
|
76
|
+
export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
|
|
77
|
+
export { default as SettingsRegistry } from "./components/systemSettings/registry";
|
|
78
|
+
export { default as PaymentModal } from "./components/checkout/PaymentModal";
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Capacity: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true |
|
|
5
|
+
}) => string | number | true | JSX.Element | React.ReactFragment | null;
|
|
6
6
|
export default Capacity;
|