@pisell/private-materials 6.7.8 → 6.8.1
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 +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- 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 +10 -1
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +548 -84
- package/es/components/booking/components/footer/index.js +77 -56
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +194 -73
- package/es/components/booking/components/voucher/index.js +23 -7
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/hooks/useQuotation.js +4 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +30 -6
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +2 -3
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +16 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +66 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +16 -3
- package/es/components/checkout/PaymentModal.d.ts +13 -5
- package/es/components/checkout/PaymentModal.js +304 -252
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +52 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +5 -6
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
- package/es/components/checkout/hooks/useWalletPass.js +1 -1
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +6 -0
- package/es/components/checkout/locales.js +6 -0
- package/es/components/checkout/plugin.d.ts +2 -0
- package/es/components/checkout/plugin.js +303 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- 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/tyro/index.js +12 -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/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/list/List.js +99 -56
- package/es/components/list/hooks/useListState.d.ts +5 -3
- package/es/components/list/hooks/useListState.js +10 -2
- package/es/components/list/styles/base.less +4 -0
- package/es/components/list/styles/content.less +1 -1
- package/es/components/list/styles/header.less +4 -4
- package/es/components/list/types.d.ts +1 -0
- package/es/components/list/utils/index.d.ts +13 -1
- package/es/components/list/utils/index.js +43 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
- 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 +9 -1
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/schedules/model.d.ts +9 -1
- 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/ProductDisplayAdapter/ProductDisplayAdapter.js +58 -11
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +149 -36
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
- package/es/components/ticketBooking/locales.d.ts +9 -0
- package/es/components/ticketBooking/locales.js +12 -3
- 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 +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/index.js +11 -10
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/components/WalletCard.js +5 -1
- package/es/components/wallet/index.js +4 -2
- package/es/components/wallet/model.d.ts +9 -1
- 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/index.d.ts +5 -0
- package/es/index.js +6 -1
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +1 -0
- package/es/plus/productSelect/CategoryTabs/index.js +2 -1
- 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/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/BatchSelectorDemo.js +470 -0
- package/es/pro/Selector/Selector.d.ts +5 -0
- package/es/pro/Selector/Selector.js +283 -0
- package/es/pro/Selector/SelectorGroup.d.ts +11 -0
- package/es/pro/Selector/SelectorGroup.js +537 -0
- package/es/pro/Selector/components/Card/index.d.ts +27 -0
- package/es/pro/Selector/components/Card/index.js +96 -0
- package/es/pro/Selector/components/Card/index.less +132 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/IntersectionObserver.js +384 -0
- package/es/pro/Selector/components/NumericStepper/index.d.ts +41 -0
- package/es/pro/Selector/components/NumericStepper/index.js +198 -0
- package/es/pro/Selector/components/NumericStepper/index.less +221 -0
- package/es/pro/Selector/components/index.d.ts +2 -0
- package/es/pro/Selector/components/index.js +2 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/demo.js +158 -0
- package/es/pro/Selector/hooks/useSelectionController.d.ts +42 -0
- package/es/pro/Selector/hooks/useSelectionController.js +414 -0
- package/es/pro/Selector/index.d.ts +8 -0
- package/es/pro/Selector/index.js +5 -0
- package/es/pro/Selector/locales.d.ts +42 -0
- package/es/pro/Selector/locales.js +80 -0
- package/es/pro/Selector/selector.less +3 -0
- package/es/pro/Selector/selectorGroup.less +8 -0
- package/es/pro/Selector/types.d.ts +114 -0
- package/es/pro/Selector/types.js +1 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/Selector/utils/index.js +229 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- 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 +10 -1
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +293 -41
- package/lib/components/booking/components/footer/index.js +30 -11
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +138 -41
- package/lib/components/booking/components/voucher/index.js +25 -9
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/hooks/useQuotation.js +2 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +25 -5
- package/lib/components/booking/info2/index.js +7 -2
- package/lib/components/booking/info2/service/addService/index.js +1 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +12 -3
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +40 -3
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/PaymentModal.d.ts +13 -5
- package/lib/components/checkout/PaymentModal.js +190 -147
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +5 -6
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
- package/lib/components/checkout/hooks/useWalletPass.js +1 -1
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +6 -0
- package/lib/components/checkout/locales.js +6 -0
- package/lib/components/checkout/plugin.d.ts +2 -0
- package/lib/components/checkout/plugin.js +263 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- 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/tyro/index.js +12 -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/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/list/List.js +58 -36
- package/lib/components/list/hooks/useListState.d.ts +5 -3
- package/lib/components/list/hooks/useListState.js +9 -1
- package/lib/components/list/styles/base.less +4 -0
- package/lib/components/list/styles/content.less +1 -1
- package/lib/components/list/styles/header.less +4 -4
- package/lib/components/list/types.d.ts +1 -0
- package/lib/components/list/utils/index.d.ts +13 -1
- package/lib/components/list/utils/index.js +27 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
- 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 +9 -1
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/schedules/model.d.ts +9 -1
- 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/components/ProductDisplayAdapter/ProductDisplayAdapter.js +40 -5
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +93 -24
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
- package/lib/components/ticketBooking/locales.d.ts +9 -0
- package/lib/components/ticketBooking/locales.js +12 -3
- 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 +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/components/WalletCard.js +4 -0
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/model.d.ts +9 -1
- 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/index.d.ts +5 -0
- package/lib/index.js +15 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +1 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +2 -1
- 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/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/BatchSelectorDemo.js +376 -0
- package/lib/pro/Selector/Selector.d.ts +5 -0
- package/lib/pro/Selector/Selector.js +264 -0
- package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
- package/lib/pro/Selector/SelectorGroup.js +463 -0
- package/lib/pro/Selector/components/Card/index.d.ts +27 -0
- package/lib/pro/Selector/components/Card/index.js +114 -0
- package/lib/pro/Selector/components/Card/index.less +132 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/IntersectionObserver.js +281 -0
- package/lib/pro/Selector/components/NumericStepper/index.d.ts +41 -0
- package/lib/pro/Selector/components/NumericStepper/index.js +221 -0
- package/lib/pro/Selector/components/NumericStepper/index.less +221 -0
- package/lib/pro/Selector/components/index.d.ts +2 -0
- package/lib/pro/Selector/components/index.js +42 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/demo.js +102 -0
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +42 -0
- package/lib/pro/Selector/hooks/useSelectionController.js +338 -0
- package/lib/pro/Selector/index.d.ts +8 -0
- package/lib/pro/Selector/index.js +39 -0
- package/lib/pro/Selector/locales.d.ts +42 -0
- package/lib/pro/Selector/locales.js +80 -0
- package/lib/pro/Selector/selector.less +3 -0
- package/lib/pro/Selector/selectorGroup.less +8 -0
- package/lib/pro/Selector/types.d.ts +114 -0
- package/lib/pro/Selector/types.js +17 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/Selector/utils/index.js +221 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lowcode/payment-modal/meta.ts +135 -0
- package/lowcode/selector/meta.ts +352 -0
- package/lowcode/selector.group/meta.ts +200 -0
- package/lowcode/settings-registry/meta.ts +29 -0
- package/lowcode/wallet-pass-detail/meta.ts +89 -0
- package/package.json +3 -3
- package/es/components/checkout/PaymentPlugin.d.ts +0 -3
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -3
- package/lib/components/checkout/PaymentPlugin.js +0 -181
|
@@ -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,4 +70,8 @@ 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 Selector } from './pro/Selector';
|
|
72
76
|
export { default as WebPosLogin } from './plus/webPosLogin';
|
|
77
|
+
export { default as PaymentModal } from './components/checkout/plugin';
|
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";
|
|
@@ -72,4 +73,8 @@ 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
75
|
export { default as WalletPassGallery } from "./plus/walletPassGallery";
|
|
75
|
-
export { default as
|
|
76
|
+
export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
|
|
77
|
+
export { default as SettingsRegistry } from "./components/systemSettings/registry";
|
|
78
|
+
export { default as Selector } from "./pro/Selector";
|
|
79
|
+
export { default as WebPosLogin } from "./plus/webPosLogin";
|
|
80
|
+
export { default as PaymentModal } from "./components/checkout/plugin";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
en: {
|
|
3
|
-
'pisell2.text.add-client': 'Add
|
|
4
|
-
'pisell2.text.change-client': 'Change
|
|
5
|
-
'pisell2.text.remove-client': ' Remove
|
|
3
|
+
'pisell2.text.add-client': 'Add Customer',
|
|
4
|
+
'pisell2.text.change-client': 'Change Customer',
|
|
5
|
+
'pisell2.text.remove-client': ' Remove Customer'
|
|
6
6
|
},
|
|
7
7
|
'zh-CN': {
|
|
8
8
|
'pisell2.text.add-client': '添加客户',
|
|
@@ -55,7 +55,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
55
55
|
}, /*#__PURE__*/React.createElement("div", {
|
|
56
56
|
className: "header-item",
|
|
57
57
|
style: {
|
|
58
|
-
width:
|
|
58
|
+
width: 180
|
|
59
59
|
}
|
|
60
60
|
}, locales.getText('pisell2.text.client-search.name')), /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
className: "header-item",
|
|
@@ -65,19 +65,14 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
65
65
|
}, locales.getText('pisell2.text.client-search.register-time')), /*#__PURE__*/React.createElement("div", {
|
|
66
66
|
className: "header-item",
|
|
67
67
|
style: {
|
|
68
|
-
width:
|
|
69
|
-
}
|
|
70
|
-
}, locales.getText('pisell2.text.client-search.phone')), /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: "header-item",
|
|
72
|
-
style: {
|
|
73
|
-
width: 135
|
|
68
|
+
width: 125
|
|
74
69
|
}
|
|
75
|
-
}, locales.getText('pisell2.text.client-search.
|
|
70
|
+
}, locales.getText('pisell2.text.client-search.membership')), /*#__PURE__*/React.createElement("div", {
|
|
76
71
|
className: "header-item",
|
|
77
72
|
style: {
|
|
78
|
-
width:
|
|
73
|
+
width: 180
|
|
79
74
|
}
|
|
80
|
-
}, locales.getText('pisell2.text.client-search.
|
|
75
|
+
}, locales.getText('pisell2.text.client-search.contact-info')));
|
|
81
76
|
};
|
|
82
77
|
|
|
83
78
|
// 自定义结果展示组件
|
|
@@ -119,7 +114,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
119
114
|
}, /*#__PURE__*/React.createElement(List, {
|
|
120
115
|
dataSource: searchResults,
|
|
121
116
|
renderItem: function renderItem(item, index) {
|
|
122
|
-
var _latest_wallet_detail;
|
|
117
|
+
var _latest_wallet_detail, _item$contacts_info, _item$contacts_info2, _item$contacts_info3;
|
|
123
118
|
var membershipText = (_latest_wallet_detail = item.latest_wallet_detail) === null || _latest_wallet_detail === void 0 || (_latest_wallet_detail = _latest_wallet_detail.wallet) === null || _latest_wallet_detail === void 0 ? void 0 : _latest_wallet_detail.name;
|
|
124
119
|
return /*#__PURE__*/React.createElement(List.Item, {
|
|
125
120
|
key: item.id,
|
|
@@ -135,26 +130,11 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
135
130
|
}, /*#__PURE__*/React.createElement("div", {
|
|
136
131
|
className: "item-cell",
|
|
137
132
|
style: {
|
|
138
|
-
width:
|
|
133
|
+
width: 180
|
|
139
134
|
}
|
|
140
135
|
}, /*#__PURE__*/React.createElement(ClientName, {
|
|
141
136
|
dataSource: item
|
|
142
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
143
|
-
className: "item-cell",
|
|
144
|
-
style: {
|
|
145
|
-
width: 110
|
|
146
|
-
}
|
|
147
|
-
}, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
|
|
148
|
-
className: "item-cell",
|
|
149
|
-
style: {
|
|
150
|
-
width: 120
|
|
151
|
-
}
|
|
152
|
-
}, item.phone || '-'), /*#__PURE__*/React.createElement("div", {
|
|
153
|
-
className: "item-cell",
|
|
154
|
-
style: {
|
|
155
|
-
width: 135
|
|
156
|
-
}
|
|
157
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
137
|
+
}), /*#__PURE__*/React.createElement("div", null, item.phone || '-'), /*#__PURE__*/React.createElement("div", {
|
|
158
138
|
style: {
|
|
159
139
|
overflow: 'hidden',
|
|
160
140
|
textOverflow: 'ellipsis',
|
|
@@ -163,7 +143,12 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
163
143
|
}, item.email || '-')), /*#__PURE__*/React.createElement("div", {
|
|
164
144
|
className: "item-cell",
|
|
165
145
|
style: {
|
|
166
|
-
width:
|
|
146
|
+
width: 110
|
|
147
|
+
}
|
|
148
|
+
}, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
|
|
149
|
+
className: "item-cell",
|
|
150
|
+
style: {
|
|
151
|
+
width: 125
|
|
167
152
|
}
|
|
168
153
|
}, membershipText && translationOriginal !== null && translationOriginal !== void 0 && translationOriginal(membershipText) ? /*#__PURE__*/React.createElement(Tag, {
|
|
169
154
|
color: "gold",
|
|
@@ -177,7 +162,20 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
177
162
|
borderRadius: 16,
|
|
178
163
|
marginRight: 0
|
|
179
164
|
}
|
|
180
|
-
}, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-')
|
|
165
|
+
}, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-'), /*#__PURE__*/React.createElement("div", {
|
|
166
|
+
className: "item-cell",
|
|
167
|
+
style: {
|
|
168
|
+
width: 180
|
|
169
|
+
}
|
|
170
|
+
}, /*#__PURE__*/React.createElement(ClientName, {
|
|
171
|
+
dataSource: item === null || item === void 0 || (_item$contacts_info = item.contacts_info) === null || _item$contacts_info === void 0 ? void 0 : _item$contacts_info.value
|
|
172
|
+
}), (item === null || item === void 0 || (_item$contacts_info2 = item.contacts_info) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.value) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.phone) === null || _item$contacts_info2 === void 0 ? void 0 : _item$contacts_info2.phone) || '-', /*#__PURE__*/React.createElement("div", {
|
|
173
|
+
style: {
|
|
174
|
+
overflow: 'hidden',
|
|
175
|
+
textOverflow: 'ellipsis',
|
|
176
|
+
whiteSpace: 'nowrap'
|
|
177
|
+
}
|
|
178
|
+
}, (item === null || item === void 0 || (_item$contacts_info3 = item.contacts_info) === null || _item$contacts_info3 === void 0 || (_item$contacts_info3 = _item$contacts_info3.value) === null || _item$contacts_info3 === void 0 ? void 0 : _item$contacts_info3.email) || '-'))));
|
|
181
179
|
}
|
|
182
180
|
}))));
|
|
183
181
|
};
|
|
@@ -31,6 +31,7 @@ declare const _default: {
|
|
|
31
31
|
'pisell2.text.client-search.phone': string;
|
|
32
32
|
'pisell2.text.client-search.email': string;
|
|
33
33
|
'pisell2.text.client-search.membership': string;
|
|
34
|
+
'pisell2.text.client-search.contact-info': string;
|
|
34
35
|
};
|
|
35
36
|
'zh-CN': {
|
|
36
37
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
'pisell2.text.client-search.phone': string;
|
|
65
66
|
'pisell2.text.client-search.email': string;
|
|
66
67
|
'pisell2.text.client-search.membership': string;
|
|
68
|
+
'pisell2.text.client-search.contact-info': string;
|
|
67
69
|
};
|
|
68
70
|
'zh-HK': {
|
|
69
71
|
'pisell2.text.leave-empty-for-walk-in': string;
|
|
@@ -97,6 +99,7 @@ declare const _default: {
|
|
|
97
99
|
'pisell2.text.client-search.phone': string;
|
|
98
100
|
'pisell2.text.client-search.email': string;
|
|
99
101
|
'pisell2.text.client-search.membership': string;
|
|
102
|
+
'pisell2.text.client-search.contact-info': string;
|
|
100
103
|
};
|
|
101
104
|
};
|
|
102
105
|
export default _default;
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
'pisell2.text.save': 'Save',
|
|
18
18
|
'pisell2.text.save-and-select': 'Save and select',
|
|
19
19
|
'pisell2.text.no-results-found': 'No results found.',
|
|
20
|
-
'pisell2.text.create-new-client': 'Create new
|
|
20
|
+
'pisell2.text.create-new-client': 'Create new customer',
|
|
21
21
|
'pisell2.text.result-found': 'Result found',
|
|
22
22
|
'pisell2.text.personnel-list': 'Personnel list',
|
|
23
23
|
'pisell2.text.load-more': 'Load more',
|
|
@@ -30,7 +30,8 @@ export default {
|
|
|
30
30
|
'pisell2.text.client-search.register-time': 'Registration Time',
|
|
31
31
|
'pisell2.text.client-search.phone': 'Phone Number',
|
|
32
32
|
'pisell2.text.client-search.email': 'Email Address',
|
|
33
|
-
'pisell2.text.client-search.membership': 'Membership'
|
|
33
|
+
'pisell2.text.client-search.membership': 'Membership',
|
|
34
|
+
'pisell2.text.client-search.contact-info': 'Contact info'
|
|
34
35
|
},
|
|
35
36
|
'zh-CN': {
|
|
36
37
|
'pisell2.text.leave-empty-for-walk-in': '如未注册游客则留空',
|
|
@@ -63,7 +64,8 @@ export default {
|
|
|
63
64
|
'pisell2.text.client-search.register-time': '注册时间',
|
|
64
65
|
'pisell2.text.client-search.phone': '电话号码',
|
|
65
66
|
'pisell2.text.client-search.email': '邮箱',
|
|
66
|
-
'pisell2.text.client-search.membership': '会员'
|
|
67
|
+
'pisell2.text.client-search.membership': '会员',
|
|
68
|
+
'pisell2.text.client-search.contact-info': '联系信息'
|
|
67
69
|
},
|
|
68
70
|
'zh-HK': {
|
|
69
71
|
'pisell2.text.leave-empty-for-walk-in': '如未註冊遊客則留空',
|
|
@@ -96,6 +98,7 @@ export default {
|
|
|
96
98
|
'pisell2.text.client-search.register-time': '註冊時間',
|
|
97
99
|
'pisell2.text.client-search.phone': '電話號碼',
|
|
98
100
|
'pisell2.text.client-search.email': '電郵地址',
|
|
99
|
-
'pisell2.text.client-search.membership': '會員'
|
|
101
|
+
'pisell2.text.client-search.membership': '會員',
|
|
102
|
+
'pisell2.text.client-search.contact-info': '聯繫信息'
|
|
100
103
|
}
|
|
101
104
|
};
|
|
@@ -10,6 +10,18 @@ export interface ClientData {
|
|
|
10
10
|
nickname: string;
|
|
11
11
|
shop_id: number;
|
|
12
12
|
updated_at: string;
|
|
13
|
+
contacts_info: {
|
|
14
|
+
value: {
|
|
15
|
+
first_name?: string;
|
|
16
|
+
last_name?: string;
|
|
17
|
+
phone?: {
|
|
18
|
+
phone?: string;
|
|
19
|
+
country_calling_code?: string;
|
|
20
|
+
country_code?: string;
|
|
21
|
+
};
|
|
22
|
+
email?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
13
25
|
}
|
|
14
26
|
export interface ClientSearchProps {
|
|
15
27
|
dataSource?: any;
|
|
@@ -105,7 +105,8 @@ var CategoryTabs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
105
105
|
}
|
|
106
106
|
return /*#__PURE__*/React.createElement(IntersectionObserverProvider, null, items.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
107
107
|
className: "".concat(PREFIX, "__tabs-wrapper ").concat(className || ''),
|
|
108
|
-
style: style
|
|
108
|
+
style: style,
|
|
109
|
+
id: props.id || ''
|
|
109
110
|
}, /*#__PURE__*/React.createElement(TabsStructure, {
|
|
110
111
|
variant: "pill",
|
|
111
112
|
backgroundVariant: "onPage",
|
|
@@ -212,10 +212,7 @@ var FooterButtons = function FooterButtons(_ref) {
|
|
|
212
212
|
className: "pisell-wallet-pass-gallery_footer-buttons-item pisell-wallet-pass-gallery_footer-buttons-item-primary"
|
|
213
213
|
}, locales.getText('wallet-pass-gallery.recharge')));
|
|
214
214
|
}
|
|
215
|
-
|
|
216
|
-
// 根据按钮数量设置不同的类名
|
|
217
|
-
var buttonCount = buttons.length;
|
|
218
|
-
var className = "pisell-wallet-pass-gallery_footer-buttons pisell-wallet-pass-gallery_footer-buttons-count-".concat(buttonCount);
|
|
215
|
+
var className = "pisell-wallet-pass-gallery_footer-buttons";
|
|
219
216
|
return buttons.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
220
217
|
className: className
|
|
221
218
|
}, buttons) : null;
|
|
@@ -223,6 +220,7 @@ var FooterButtons = function FooterButtons(_ref) {
|
|
|
223
220
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
224
221
|
className: "pisell-wallet-pass-gallery_footer"
|
|
225
222
|
}, renderButtons()), /*#__PURE__*/React.createElement(PisellModal, {
|
|
223
|
+
destroyOnClose: true,
|
|
226
224
|
platform: platform,
|
|
227
225
|
mobileModalHeight: "auto",
|
|
228
226
|
headerDivider: false,
|