@pisell/private-materials 6.3.113 → 6.3.114
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 +152 -152
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -18
- package/es/components/appointmentBooking/components/Date/state.js +1 -3
- package/es/components/appointmentBooking/locales.d.ts +0 -240
- package/es/components/appointmentBooking/locales.js +0 -276
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -164
- package/es/components/authentication/admin/AuthMethods/locales.js +0 -164
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +9 -27
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -54
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +0 -54
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -2
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +0 -2
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -46
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +0 -46
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -2
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +9 -17
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -16
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +0 -16
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +2 -10
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -42
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +0 -42
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -2
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +9 -17
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -24
- package/es/components/authentication/admin/ChannelAuthSetting/locales.js +0 -24
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -42
- package/es/components/authentication/admin/CustomerAuth/locales.js +0 -42
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -70
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +0 -70
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -36
- package/es/components/authentication/admin/DeviceAuth/locales.js +0 -36
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -58
- package/es/components/authentication/admin/OAuthConfig/locales.js +0 -58
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -34
- package/es/components/authentication/admin/OrgAdminAuth/locales.js +0 -34
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -30
- package/es/components/authentication/admin/POSOperatorAuth/locales.js +0 -30
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -34
- package/es/components/authentication/admin/SaaSAdminAuth/locales.js +0 -34
- package/es/components/booking/components/footer/index.js +20 -26
- package/es/components/booking/components/footer/utils.js +4 -4
- package/es/components/booking/editBookingModal/locales.d.ts +0 -12
- package/es/components/booking/editBookingModal/locales.js +0 -12
- package/es/components/booking/editBookingModal/mock.d.ts +2 -186
- package/es/components/booking/editBookingModal/mock.js +0 -22
- package/es/components/booking/hooks/useClearCart.d.ts +1 -1
- package/es/components/booking/hooks/useClearCart.js +9 -39
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/header/index.js +7 -7
- package/es/components/booking/info/header/index.less +5 -5
- package/es/components/booking/info/service/index.less +2 -4
- package/es/components/booking/info2/service/addService/mock.d.ts +0 -2
- package/es/components/booking/info2/service/addService/mock.js +0 -4
- package/es/components/booking/info2/service/editService/index.js +6 -36
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -15
- package/es/components/booking/info2/service/editService/utils.js +0 -76
- package/es/components/booking/locales.d.ts +0 -648
- package/es/components/booking/locales.js +0 -742
- package/es/components/booking/notes/NoteBlock/index.js +2 -3
- package/es/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/es/components/eftpos/PairModal/hooks.js +67 -0
- package/es/components/eftpos/PairModal/index.d.ts +11 -0
- package/es/components/{ecocup/components/AddCustomerModal → eftpos/PairModal}/index.js +189 -159
- package/es/components/eftpos/PairModal/index.less +70 -0
- package/es/components/eftpos/SettlementModal/Action.d.ts +8 -0
- package/es/components/eftpos/SettlementModal/Action.js +141 -0
- package/es/components/eftpos/SettlementModal/index.d.ts +8 -0
- package/es/components/eftpos/SettlementModal/index.js +135 -0
- package/es/components/eftpos/SettlementModal/index.less +33 -0
- package/es/components/eftpos/SettlementModal/serve.d.ts +8 -0
- package/es/components/eftpos/SettlementModal/serve.js +171 -0
- package/es/components/eftpos/SettlementModal/types.d.ts +138 -0
- package/es/components/eftpos/SettlementModal/types.js +35 -0
- package/es/components/eftpos/SettlementModal/utils.d.ts +18 -0
- package/es/components/eftpos/SettlementModal/utils.js +351 -0
- package/es/components/eftpos/assets/mx51SCI.svg +15 -0
- package/es/components/eftpos/const.d.ts +3 -1
- package/es/components/eftpos/const.js +2 -0
- package/es/components/eftpos/device.d.ts +3 -1
- package/es/components/eftpos/device.js +5 -3
- package/es/components/eftpos/hooks.d.ts +13 -0
- package/es/components/eftpos/hooks.js +35 -0
- package/es/components/eftpos/index.js +184 -25
- package/es/components/eftpos/index.less +26 -1
- package/es/components/eftpos/locales.d.ts +39 -64
- package/es/components/eftpos/locales.js +104 -85
- package/es/components/eftpos/table.js +47 -3
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +125 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +70 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +101 -0
- package/es/components/eftposPay/aggregatePayment/types.js +61 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +385 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1140 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.js +12 -17
- package/es/components/eftposPay/component/fail/index.js +4 -5
- package/es/components/eftposPay/const.d.ts +7 -2
- package/es/components/eftposPay/const.js +2 -0
- package/es/components/eftposPay/device.js +36 -208
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.js +1 -5
- package/es/components/eftposPay/linkly/const.js +1 -1
- package/es/components/eftposPay/linkly/index.js +1 -0
- package/es/components/eftposPay/locales.d.ts +3 -242
- package/es/components/eftposPay/locales.js +5 -328
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/mx51/Action.d.ts +7 -0
- package/es/components/eftposPay/mx51/Action.js +139 -0
- package/es/components/eftposPay/mx51/Result.d.ts +5 -0
- package/es/components/eftposPay/mx51/Result.js +46 -0
- package/es/components/eftposPay/mx51/const.d.ts +5 -0
- package/es/components/eftposPay/mx51/const.js +69 -0
- package/es/components/eftposPay/mx51/index.d.ts +6 -0
- package/es/components/eftposPay/mx51/index.js +401 -0
- package/es/components/eftposPay/mx51/types.d.ts +138 -0
- package/es/components/eftposPay/mx51/types.js +30 -0
- package/es/components/eftposPay/mx51/utils.d.ts +10 -0
- package/es/components/eftposPay/mx51/utils.js +121 -0
- package/es/components/eftposPay/pay.js +7 -2
- package/es/components/eftposPay/payo/config.js +0 -1
- package/es/components/eftposPay/payo/const.js +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -5
- package/es/components/eftposPay/tyro/const.js +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/const.js +1 -1
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -22
- package/es/components/eventBooking/components/Voucher/components/locales.js +0 -22
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/locales.d.ts +0 -162
- package/es/components/eventBooking/locales.js +0 -186
- package/es/components/kioskSkuDetail/index.js +10 -39
- package/es/components/kioskSkuDetail/locales.d.ts +0 -21
- package/es/components/kioskSkuDetail/locales.js +3 -24
- package/es/components/login/locales.d.ts +0 -14
- package/es/components/login/locales.js +0 -14
- package/es/components/pay/toC/PaymentList/serve.js +2 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +21 -65
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +9 -110
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +18 -46
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -20
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +1 -14
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +0 -20
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +1 -7
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +56 -167
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -47
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +1 -9
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +33 -260
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +3 -23
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +126 -309
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -18
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +145 -167
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/PaymentMethods/index.js +2 -12
- package/es/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/es/components/pay/toC/index.js +48 -117
- package/es/components/pay/toC/locales.d.ts +0 -319
- package/es/components/pay/toC/locales.js +12 -381
- package/es/components/pay/toC/model.d.ts +0 -1
- package/es/components/pay/toC/serve.d.ts +0 -30
- package/es/components/pay/toC/serve.js +3 -69
- package/es/components/pay/toC/utils.d.ts +2 -7
- package/es/components/pay/toC/utils.js +0 -14
- package/es/components/pinModal/locales.d.ts +0 -16
- package/es/components/pinModal/locales.js +0 -16
- package/es/components/pinVerifyModal/locales.d.ts +0 -14
- package/es/components/pinVerifyModal/locales.js +0 -14
- package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -52
- package/es/components/pisellSelectCustomerModal/locales.js +0 -52
- package/es/components/productExtension/locales.d.ts +0 -30
- package/es/components/productExtension/locales.js +0 -30
- package/es/components/productSelect/components/pisellPriceText/index.js +4 -8
- package/es/components/productSelect/locales.d.ts +0 -20
- package/es/components/productSelect/locales.js +3 -23
- package/es/components/ruleSetting/locales.d.ts +0 -30
- package/es/components/ruleSetting/locales.js +0 -30
- package/es/components/schedules/locales.d.ts +0 -56
- package/es/components/schedules/locales.js +0 -56
- package/es/components/shoppingCart/components/Cart/index.less +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/es/components/shoppingCart/hooks/useClearCart.js +11 -41
- package/es/components/shoppingCart/locales.d.ts +0 -20
- package/es/components/shoppingCart/locales.js +0 -24
- package/es/components/stepController/locales.d.ts +0 -16
- package/es/components/stepController/locales.js +0 -20
- package/es/components/subTotal/locales.d.ts +0 -26
- package/es/components/subTotal/locales.js +0 -26
- package/es/components/systemSettings/registry/components/ItemModal.js +47 -251
- package/es/components/systemSettings/registry/index.js +16 -20
- package/es/components/systemSettings/registry/index.less +7 -6
- package/es/components/systemSettings/registry/locales.d.ts +0 -262
- package/es/components/systemSettings/registry/locales.js +3 -274
- package/es/components/systemSettings/registry/services.d.ts +0 -20
- package/es/components/systemSettings/registry/types.d.ts +2 -16
- package/es/components/taxSelect/locales.d.ts +0 -14
- package/es/components/taxSelect/locales.js +0 -14
- package/es/components/ticketBooking/locales.d.ts +0 -130
- package/es/components/ticketBooking/locales.js +0 -156
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatTime.js +2 -8
- package/es/components/wallet/utils.d.ts +1 -1
- package/es/components/walletList/index.js +0 -10
- package/es/components/walletList/locales.d.ts +0 -16
- package/es/components/walletList/locales.js +0 -16
- package/es/components/walletList/types/index.d.ts +0 -2
- package/es/hooks/useEngineContext.d.ts +0 -1
- package/es/hooks/useEngineContext.js +0 -7
- package/es/hooks/useLocale.js +1 -8
- package/es/index.d.ts +3 -16
- package/es/index.js +1 -13
- package/es/plus/contactInfo/components/SwipeAction/index.js +1 -1
- package/es/plus/contactInfo/locales.d.ts +0 -8
- package/es/plus/contactInfo/locales.js +0 -8
- package/es/plus/contactInfoModal/locales.d.ts +0 -42
- package/es/plus/contactInfoModal/locales.js +0 -42
- package/es/plus/productSelect/components/pisellPriceText/index.js +4 -8
- package/es/plus/productSelect/locales.d.ts +0 -20
- package/es/plus/productSelect/locales.js +3 -23
- package/es/plus/saasCreateOrganization/locales.d.ts +0 -8
- package/es/plus/saasCreateOrganization/locales.js +0 -8
- package/es/plus/saasLogin/locales.d.ts +0 -32
- package/es/plus/saasLogin/locales.js +0 -32
- package/es/plus/saasRegister/locales.d.ts +0 -76
- package/es/plus/saasRegister/locales.js +0 -76
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/selectHolder/locales.d.ts +0 -14
- package/es/plus/selectHolder/locales.js +0 -18
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +5 -6
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +2 -3
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -20
- package/es/plus/skuOptionsSelection/locales.js +0 -20
- package/es/plus/skuOptionsSelection/store/store.js +1 -2
- package/es/plus/skuOptionsSelection/types.d.ts +0 -14
- package/es/plus/skuOptionsSelection/types.js +0 -4
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -10
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -10
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +4 -8
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +2 -8
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +0 -2
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +4 -12
- package/es/plus/walletEditor/locales.d.ts +0 -88
- package/es/plus/walletEditor/locales.js +0 -100
- package/es/plus/walletEditor/types.d.ts +0 -2
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passDetail/index.js +39 -80
- package/es/plus/walletPassGallery/components/passList/index.js +4 -12
- package/es/plus/walletPassGallery/components/recharge/index.js +5 -13
- package/es/plus/walletPassGallery/components/recharge/index.less +1 -70
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/es/plus/walletPassGallery/components/timelineSection/index.js +2 -19
- package/es/plus/walletPassGallery/index.d.ts +0 -4
- package/es/plus/walletPassGallery/index.js +46 -95
- package/es/plus/walletPassGallery/locales.d.ts +0 -198
- package/es/plus/walletPassGallery/locales.js +3 -216
- package/es/plus/walletPassGallery/serve.d.ts +1 -3
- package/es/plus/walletPassGallery/serve.js +13 -13
- package/es/plus/walletPassGallery/utils.d.ts +1 -1
- package/es/pro/Cards/components/SKUCard/index.d.ts +56 -1
- package/es/pro/Cards/components/SKUCard/index.js +20 -50
- package/es/pro/Cards/components/SKUCard/index.less +2 -23
- package/es/pro/Login2.0/Login2.js +8 -8
- package/es/pro/Login2.0/locales.d.ts +0 -365
- package/es/pro/Login2.0/locales.js +0 -365
- package/es/pro/Login2.0/shared/types.d.ts +0 -2
- package/es/pro/NumericStepper/index.d.ts +3 -33
- package/es/pro/NumericStepper/index.js +107 -181
- package/es/pro/NumericStepper/index.less +143 -287
- package/es/pro/Selector/BatchSelectorDemo.js +12 -2
- package/es/pro/Selector/Selector.js +30 -39
- package/es/pro/Selector/SelectorGroup.d.ts +1 -1
- package/es/pro/Selector/SelectorGroup.js +1 -5
- package/es/pro/Selector/components/Card/index.js +10 -11
- package/es/pro/Selector/components/Card/index.less +14 -30
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/es/pro/Selector/components/Indicator/index.js +2 -3
- package/es/pro/Selector/components/Indicator/index.less +13 -16
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/es/pro/Selector/components/LayoutContainer/index.js +9 -226
- package/es/pro/Selector/components/Media/index.d.ts +1 -1
- package/es/pro/Selector/components/Media/index.less +1 -1
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/es/pro/Selector/hooks/usePresetProps.js +6 -60
- package/es/pro/Selector/locales.d.ts +0 -22
- package/es/pro/Selector/locales.js +0 -58
- package/es/pro/Selector/selector.less +64 -0
- package/es/pro/Selector/selectorGroup.less +1 -9
- package/es/pro/Selector/types.d.ts +0 -50
- package/es/pro/numberKeyboard/locales.d.ts +0 -6
- package/es/pro/numberKeyboard/locales.js +0 -6
- package/lib/components/appointmentBooking/components/Date/state.js +1 -3
- package/lib/components/appointmentBooking/locales.d.ts +0 -240
- package/lib/components/appointmentBooking/locales.js +0 -240
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -164
- package/lib/components/authentication/admin/AuthMethods/locales.js +0 -164
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +9 -17
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -54
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +0 -54
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -2
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +0 -2
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -46
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +0 -46
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -2
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +6 -14
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -16
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +0 -16
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +2 -10
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -42
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +0 -42
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -2
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +6 -14
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -24
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +0 -24
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -42
- package/lib/components/authentication/admin/CustomerAuth/locales.js +0 -42
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -70
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +0 -70
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -36
- package/lib/components/authentication/admin/DeviceAuth/locales.js +0 -36
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -58
- package/lib/components/authentication/admin/OAuthConfig/locales.js +0 -58
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -34
- package/lib/components/authentication/admin/OrgAdminAuth/locales.js +0 -34
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -30
- package/lib/components/authentication/admin/POSOperatorAuth/locales.js +0 -30
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -34
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +0 -34
- package/lib/components/booking/components/footer/index.js +0 -5
- package/lib/components/booking/components/footer/utils.js +2 -2
- package/lib/components/booking/editBookingModal/locales.d.ts +0 -12
- package/lib/components/booking/editBookingModal/locales.js +0 -12
- package/lib/components/booking/editBookingModal/mock.d.ts +2 -186
- package/lib/components/booking/editBookingModal/mock.js +0 -22
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -1
- package/lib/components/booking/hooks/useClearCart.js +6 -28
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/header/index.js +7 -7
- package/lib/components/booking/info/header/index.less +5 -5
- package/lib/components/booking/info/service/index.less +2 -4
- package/lib/components/booking/info2/service/addService/mock.d.ts +0 -2
- package/lib/components/booking/info2/service/addService/mock.js +0 -4
- package/lib/components/booking/info2/service/editService/index.js +1 -24
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -15
- package/lib/components/booking/info2/service/editService/utils.js +2 -38
- package/lib/components/booking/locales.d.ts +0 -648
- package/lib/components/booking/locales.js +0 -700
- package/lib/components/booking/notes/NoteBlock/index.js +1 -2
- package/lib/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/lib/components/eftpos/PairModal/hooks.js +70 -0
- package/lib/components/eftpos/PairModal/index.d.ts +11 -0
- package/lib/components/eftpos/PairModal/index.js +197 -0
- package/lib/components/eftpos/PairModal/index.less +70 -0
- package/lib/components/eftpos/SettlementModal/Action.d.ts +8 -0
- package/lib/components/eftpos/SettlementModal/Action.js +153 -0
- package/lib/components/eftpos/SettlementModal/index.d.ts +8 -0
- package/lib/components/eftpos/SettlementModal/index.js +170 -0
- package/lib/components/eftpos/SettlementModal/index.less +33 -0
- package/lib/components/eftpos/SettlementModal/serve.d.ts +8 -0
- package/lib/{plus/saasAttendance/settings → components/eftpos/SettlementModal}/serve.js +16 -25
- package/lib/components/eftpos/SettlementModal/types.d.ts +138 -0
- package/lib/components/eftpos/SettlementModal/types.js +43 -0
- package/lib/components/eftpos/SettlementModal/utils.d.ts +18 -0
- package/lib/components/eftpos/SettlementModal/utils.js +248 -0
- package/lib/components/eftpos/assets/mx51SCI.svg +15 -0
- package/lib/components/eftpos/const.d.ts +3 -1
- package/lib/components/eftpos/const.js +2 -0
- package/lib/components/eftpos/device.d.ts +3 -1
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/hooks.d.ts +13 -0
- package/lib/components/eftpos/hooks.js +30 -0
- package/lib/components/eftpos/index.js +106 -8
- package/lib/components/eftpos/index.less +26 -1
- package/lib/components/eftpos/locales.d.ts +39 -64
- package/lib/components/eftpos/locales.js +101 -78
- package/lib/components/eftpos/table.js +30 -2
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +6 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +152 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/{plus/clinetSearch/serve.js → components/eftposPay/aggregatePayment/index.js} +10 -11
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +101 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +302 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +132 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +755 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.js +9 -15
- package/lib/components/eftposPay/component/fail/index.js +1 -4
- package/lib/components/eftposPay/const.d.ts +7 -2
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/device.js +23 -108
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.js +1 -5
- package/lib/components/eftposPay/linkly/const.js +1 -1
- package/lib/components/eftposPay/linkly/index.js +1 -0
- package/lib/components/eftposPay/locales.d.ts +3 -242
- package/lib/components/eftposPay/locales.js +5 -252
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/mx51/Action.d.ts +7 -0
- package/lib/components/eftposPay/mx51/Action.js +152 -0
- package/lib/components/eftposPay/mx51/Result.d.ts +5 -0
- package/lib/components/{ecocup/components/MoreDropdown/index.js → eftposPay/mx51/Result.js} +43 -31
- package/lib/components/eftposPay/mx51/const.d.ts +5 -0
- package/lib/components/eftposPay/mx51/const.js +85 -0
- package/lib/components/eftposPay/mx51/index.d.ts +6 -0
- package/lib/components/eftposPay/mx51/index.js +360 -0
- package/lib/components/eftposPay/mx51/types.d.ts +138 -0
- package/lib/components/{ecocup/customerList/hooks/index.js → eftposPay/mx51/types.js} +18 -10
- package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
- package/lib/components/eftposPay/mx51/utils.js +115 -0
- package/lib/components/eftposPay/pay.js +4 -2
- package/lib/components/eftposPay/payo/config.js +0 -1
- package/lib/components/eftposPay/payo/const.js +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -5
- package/lib/components/eftposPay/tyro/const.js +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/const.js +1 -1
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -22
- package/lib/components/eventBooking/components/Voucher/components/locales.js +0 -22
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/locales.d.ts +0 -162
- package/lib/components/eventBooking/locales.js +0 -162
- package/lib/components/kioskSkuDetail/index.js +3 -27
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -21
- package/lib/components/kioskSkuDetail/locales.js +3 -24
- package/lib/components/login/locales.d.ts +0 -14
- package/lib/components/login/locales.js +0 -14
- package/lib/components/pay/toC/PaymentList/serve.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +17 -40
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +9 -110
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +12 -32
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -20
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -8
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +0 -20
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +1 -7
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +24 -98
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -47
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +1 -9
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +5 -149
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +3 -23
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +39 -121
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +1 -7
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +103 -92
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/index.js +12 -17
- package/lib/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/lib/components/pay/toC/index.js +22 -86
- package/lib/components/pay/toC/locales.d.ts +0 -319
- package/lib/components/pay/toC/locales.js +12 -331
- package/lib/components/pay/toC/model.d.ts +0 -1
- package/lib/components/pay/toC/serve.d.ts +0 -30
- package/lib/components/pay/toC/serve.js +1 -17
- package/lib/components/pay/toC/utils.d.ts +2 -7
- package/lib/components/pay/toC/utils.js +0 -21
- package/lib/components/pinModal/locales.d.ts +0 -16
- package/lib/components/pinModal/locales.js +0 -16
- package/lib/components/pinVerifyModal/locales.d.ts +0 -14
- package/lib/components/pinVerifyModal/locales.js +0 -14
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -52
- package/lib/components/pisellSelectCustomerModal/locales.js +0 -52
- package/lib/components/productExtension/locales.d.ts +0 -30
- package/lib/components/productExtension/locales.js +0 -30
- package/lib/components/productSelect/components/pisellPriceText/index.js +4 -6
- package/lib/components/productSelect/locales.d.ts +0 -20
- package/lib/components/productSelect/locales.js +3 -23
- package/lib/components/ruleSetting/locales.d.ts +0 -30
- package/lib/components/ruleSetting/locales.js +0 -30
- package/lib/components/schedules/locales.d.ts +0 -56
- package/lib/components/schedules/locales.js +0 -56
- package/lib/components/shoppingCart/components/Cart/index.less +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/lib/components/shoppingCart/hooks/useClearCart.js +11 -42
- package/lib/components/shoppingCart/locales.d.ts +0 -20
- package/lib/components/shoppingCart/locales.js +0 -20
- package/lib/components/stepController/locales.d.ts +0 -16
- package/lib/components/stepController/locales.js +0 -16
- package/lib/components/subTotal/locales.d.ts +0 -26
- package/lib/components/subTotal/locales.js +0 -26
- package/lib/components/systemSettings/registry/components/ItemModal.js +224 -347
- package/lib/components/systemSettings/registry/index.js +16 -20
- package/lib/components/systemSettings/registry/index.less +7 -6
- package/lib/components/systemSettings/registry/locales.d.ts +0 -262
- package/lib/components/systemSettings/registry/locales.js +3 -274
- package/lib/components/systemSettings/registry/services.d.ts +0 -20
- package/lib/components/systemSettings/registry/types.d.ts +2 -16
- package/lib/components/taxSelect/locales.d.ts +0 -14
- package/lib/components/taxSelect/locales.js +0 -14
- package/lib/components/ticketBooking/locales.d.ts +0 -130
- package/lib/components/ticketBooking/locales.js +0 -136
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatTime.js +2 -8
- package/lib/components/wallet/utils.d.ts +1 -1
- package/lib/components/walletList/index.js +0 -10
- package/lib/components/walletList/locales.d.ts +0 -16
- package/lib/components/walletList/locales.js +0 -16
- package/lib/components/walletList/types/index.d.ts +0 -2
- package/lib/hooks/useEngineContext.d.ts +0 -1
- package/lib/hooks/useEngineContext.js +2 -10
- package/lib/hooks/useLocale.js +2 -7
- package/lib/index.d.ts +3 -16
- package/lib/index.js +3 -39
- package/lib/plus/contactInfo/components/SwipeAction/index.js +23 -23
- package/lib/plus/contactInfo/locales.d.ts +0 -8
- package/lib/plus/contactInfo/locales.js +0 -8
- package/lib/plus/contactInfoModal/locales.d.ts +0 -42
- package/lib/plus/contactInfoModal/locales.js +0 -42
- package/lib/plus/productSelect/components/pisellPriceText/index.js +4 -6
- package/lib/plus/productSelect/locales.d.ts +0 -20
- package/lib/plus/productSelect/locales.js +3 -23
- package/lib/plus/saasCreateOrganization/locales.d.ts +0 -8
- package/lib/plus/saasCreateOrganization/locales.js +0 -8
- package/lib/plus/saasLogin/locales.d.ts +0 -32
- package/lib/plus/saasLogin/locales.js +0 -32
- package/lib/plus/saasRegister/locales.d.ts +0 -76
- package/lib/plus/saasRegister/locales.js +0 -76
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/selectHolder/locales.d.ts +0 -14
- package/lib/plus/selectHolder/locales.js +0 -14
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +10 -11
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +2 -3
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +0 -2
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -20
- package/lib/plus/skuOptionsSelection/locales.js +0 -20
- package/lib/plus/skuOptionsSelection/store/store.js +1 -2
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -14
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +9 -15
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +6 -9
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +2 -9
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +3 -7
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +7 -8
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +0 -2
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +4 -12
- package/lib/plus/walletEditor/locales.d.ts +0 -88
- package/lib/plus/walletEditor/locales.js +0 -100
- package/lib/plus/walletEditor/types.d.ts +0 -2
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.js +5 -42
- package/lib/plus/walletPassGallery/components/passList/index.js +5 -12
- package/lib/plus/walletPassGallery/components/recharge/index.js +5 -7
- package/lib/plus/walletPassGallery/components/recharge/index.less +1 -70
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -2
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +2 -17
- package/lib/plus/walletPassGallery/index.d.ts +0 -4
- package/lib/plus/walletPassGallery/index.js +45 -116
- package/lib/plus/walletPassGallery/locales.d.ts +0 -198
- package/lib/plus/walletPassGallery/locales.js +3 -210
- package/lib/plus/walletPassGallery/serve.d.ts +1 -3
- package/lib/plus/walletPassGallery/serve.js +2 -2
- package/lib/plus/walletPassGallery/utils.d.ts +1 -1
- package/lib/pro/Cards/components/SKUCard/index.d.ts +56 -1
- package/lib/pro/Cards/components/SKUCard/index.js +15 -59
- package/lib/pro/Cards/components/SKUCard/index.less +2 -23
- package/lib/pro/Login2.0/Login2.js +8 -8
- package/lib/pro/Login2.0/locales.d.ts +0 -365
- package/lib/pro/Login2.0/locales.js +0 -365
- package/lib/pro/Login2.0/shared/types.d.ts +0 -2
- package/lib/pro/NumericStepper/index.d.ts +3 -33
- package/lib/pro/NumericStepper/index.js +88 -184
- package/lib/pro/NumericStepper/index.less +143 -287
- package/lib/pro/Selector/BatchSelectorDemo.js +19 -13
- package/lib/pro/Selector/Selector.js +17 -34
- package/lib/pro/Selector/SelectorGroup.d.ts +1 -1
- package/lib/pro/Selector/SelectorGroup.js +1 -7
- package/lib/pro/Selector/components/Card/index.js +8 -19
- package/lib/pro/Selector/components/Card/index.less +14 -30
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -1
- package/lib/pro/Selector/components/Indicator/index.js +2 -2
- package/lib/pro/Selector/components/Indicator/index.less +13 -16
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +3 -5
- package/lib/pro/Selector/components/LayoutContainer/index.js +2 -130
- package/lib/pro/Selector/components/Media/index.d.ts +1 -1
- package/lib/pro/Selector/components/Media/index.js +4 -7
- package/lib/pro/Selector/components/Media/index.less +1 -1
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +0 -2
- package/lib/pro/Selector/hooks/usePresetProps.js +6 -28
- package/lib/pro/Selector/locales.d.ts +0 -22
- package/lib/pro/Selector/locales.js +0 -50
- package/lib/pro/Selector/selector.less +64 -0
- package/lib/pro/Selector/selectorGroup.less +1 -9
- package/lib/pro/Selector/types.d.ts +0 -50
- package/lib/pro/numberKeyboard/locales.d.ts +0 -6
- package/lib/pro/numberKeyboard/locales.js +0 -6
- package/lowcode/selector/meta.ts +2 -15
- package/lowcode/selector.group/meta.ts +2 -15
- package/lowcode/sku-options-selection/meta.ts +2 -106
- package/lowcode/wallet-pass-gallery/meta.ts +1 -66
- package/package.json +6 -6
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -10
- package/es/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -14
- package/es/components/ecocup/components/CupActionList/index.js +0 -91
- package/es/components/ecocup/components/CupActionList/index.less +0 -102
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupActionModal/hooks.js +0 -68
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -15
- package/es/components/ecocup/components/CupActionModal/index.js +0 -92
- package/es/components/ecocup/components/CupActionModal/index.less +0 -38
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +0 -10
- package/es/components/ecocup/components/CupInfoCard/index.js +0 -14
- package/es/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
- package/es/components/ecocup/components/CupStatusModal/hooks.js +0 -176
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -14
- package/es/components/ecocup/components/CupStatusModal/index.js +0 -281
- package/es/components/ecocup/components/CupStatusModal/index.less +0 -73
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -133
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -20
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +0 -227
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/es/components/ecocup/components/CustomerCard/index.d.ts +0 -9
- package/es/components/ecocup/components/CustomerCard/index.js +0 -37
- package/es/components/ecocup/components/CustomerCard/index.less +0 -50
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/es/components/ecocup/components/MoreDropdown/index.js +0 -33
- package/es/components/ecocup/components/PageHeader/index.d.ts +0 -9
- package/es/components/ecocup/components/PageHeader/index.js +0 -47
- package/es/components/ecocup/components/PageHeader/index.less +0 -31
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SearchBar/const.js +0 -16
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/es/components/ecocup/components/SearchBar/hooks.js +0 -184
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -14
- package/es/components/ecocup/components/SearchBar/index.js +0 -248
- package/es/components/ecocup/components/SearchBar/index.less +0 -88
- package/es/components/ecocup/components/SettingModal/const.d.ts +0 -6
- package/es/components/ecocup/components/SettingModal/const.js +0 -17
- package/es/components/ecocup/components/SettingModal/index.d.ts +0 -9
- package/es/components/ecocup/components/SettingModal/index.js +0 -253
- package/es/components/ecocup/components/SettingModal/index.less +0 -9
- package/es/components/ecocup/cupList/const.d.ts +0 -140
- package/es/components/ecocup/cupList/const.js +0 -319
- package/es/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/es/components/ecocup/cupList/hooks/index.js +0 -4
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -45
- package/es/components/ecocup/cupList/hooks/useColumns.js +0 -166
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -41
- package/es/components/ecocup/cupList/hooks/useCupApi.js +0 -312
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/es/components/ecocup/cupList/hooks/useSummary.js +0 -42
- package/es/components/ecocup/cupList/index.d.ts +0 -7
- package/es/components/ecocup/cupList/index.js +0 -268
- package/es/components/ecocup/cupList/index.less +0 -159
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/cupProject/const.js +0 -33
- package/es/components/ecocup/cupProject/index.d.ts +0 -3
- package/es/components/ecocup/cupProject/index.js +0 -112
- package/es/components/ecocup/cupProject/index.less +0 -41
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/const.js +0 -67
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/index.js +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useColumns.js +0 -44
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +0 -70
- package/es/components/ecocup/customerList/index.d.ts +0 -7
- package/es/components/ecocup/customerList/index.js +0 -127
- package/es/components/ecocup/customerList/index.less +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -57
- package/es/components/ecocup/hooks.js +0 -168
- package/es/components/ecocup/locales.d.ts +0 -653
- package/es/components/ecocup/locales.js +0 -699
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/types.js +0 -36
- package/es/components/ecocup/utils/download.d.ts +0 -7
- package/es/components/ecocup/utils/download.js +0 -34
- package/es/components/ecocup/utils/index.d.ts +0 -2
- package/es/components/ecocup/utils/index.js +0 -2
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/ecocup/utils/scanListener.js +0 -107
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +0 -34
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +0 -83
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +0 -52
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +0 -59
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +0 -390
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +0 -70
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +0 -367
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +0 -8
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +0 -163
- package/es/components/systemSettings/registry/components/OptionDataSource/index.d.ts +0 -10
- package/es/components/systemSettings/registry/components/OptionDataSource/index.js +0 -127
- package/es/components/systemSettings/registry/components/OptionDataSource/index.less +0 -37
- package/es/hooks/useThemeTokens.d.ts +0 -7
- package/es/hooks/useThemeTokens.js +0 -20
- package/es/hooks/useTranslationOriginal.d.ts +0 -1
- package/es/hooks/useTranslationOriginal.js +0 -10
- package/es/plus/clientCard/index.d.ts +0 -7
- package/es/plus/clientCard/index.js +0 -462
- package/es/plus/clientCard/index.less +0 -515
- package/es/plus/clientCard/line/index.d.ts +0 -9
- package/es/plus/clientCard/line/index.js +0 -157
- package/es/plus/clientCard/line/index.less +0 -142
- package/es/plus/clientCard/locales.d.ts +0 -28
- package/es/plus/clientCard/locales.js +0 -27
- package/es/plus/clientCard/types.d.ts +0 -135
- package/es/plus/clientCard/types.js +0 -1
- package/es/plus/clientCard/utils.d.ts +0 -8
- package/es/plus/clientCard/utils.js +0 -59
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +0 -277
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
- package/es/plus/clinetSearch/Add/GenderField/index.js +0 -18
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -3
- package/es/plus/clinetSearch/Add/PhoneField/index.js +0 -52
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +0 -166
- package/es/plus/clinetSearch/Add/index.d.ts +0 -18
- package/es/plus/clinetSearch/Add/index.js +0 -213
- package/es/plus/clinetSearch/Add/index.less +0 -30
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -265
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/index.js +0 -1
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/es/plus/clinetSearch/InfiniteScroll/types.js +0 -1
- package/es/plus/clinetSearch/index.d.ts +0 -18
- package/es/plus/clinetSearch/index.js +0 -234
- package/es/plus/clinetSearch/index.less +0 -95
- package/es/plus/clinetSearch/locales.d.ts +0 -178
- package/es/plus/clinetSearch/locales.js +0 -177
- package/es/plus/clinetSearch/serve.d.ts +0 -1
- package/es/plus/clinetSearch/serve.js +0 -31
- package/es/plus/clinetSearch/types.d.ts +0 -70
- package/es/plus/clinetSearch/types.js +0 -1
- package/es/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/es/plus/orderList/components/BatchActionBar.js +0 -835
- package/es/plus/orderList/components/FilterList.d.ts +0 -8
- package/es/plus/orderList/components/FilterList.js +0 -78
- package/es/plus/orderList/components/HandleActions.d.ts +0 -6
- package/es/plus/orderList/components/HandleActions.js +0 -27
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/es/plus/orderList/components/QuickFilter.js +0 -14
- package/es/plus/orderList/components/Reset.d.ts +0 -7
- package/es/plus/orderList/components/Reset.js +0 -23
- package/es/plus/orderList/components/Toolbar.d.ts +0 -7
- package/es/plus/orderList/components/Toolbar.js +0 -59
- package/es/plus/orderList/config.d.ts +0 -155
- package/es/plus/orderList/config.js +0 -786
- package/es/plus/orderList/index.d.ts +0 -10
- package/es/plus/orderList/index.js +0 -133
- package/es/plus/orderList/index.less +0 -125
- package/es/plus/orderList/locales.d.ts +0 -618
- package/es/plus/orderList/locales.js +0 -733
- package/es/plus/orderList/serve.d.ts +0 -42
- package/es/plus/orderList/serve.js +0 -351
- package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
- package/es/plus/pisellSalesGrid/PisellSalesGrid.js +0 -363
- package/es/plus/pisellSalesGrid/PisellSalesGrid.less +0 -16
- package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +0 -14
- package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.js +0 -559
- package/es/plus/pisellSalesGrid/hooks/useActions.d.ts +0 -19
- package/es/plus/pisellSalesGrid/hooks/useActions.js +0 -723
- package/es/plus/pisellSalesGrid/index.d.ts +0 -4
- package/es/plus/pisellSalesGrid/index.js +0 -3
- package/es/plus/pisellSalesGrid/locales.d.ts +0 -9
- package/es/plus/pisellSalesGrid/locales.js +0 -8
- package/es/plus/pisellSalesGrid/serve.d.ts +0 -19
- package/es/plus/pisellSalesGrid/serve.js +0 -151
- package/es/plus/pisellSalesGrid/types.d.ts +0 -170
- package/es/plus/pisellSalesGrid/types.js +0 -1
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -15
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +0 -221
- package/es/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +0 -19
- package/es/plus/pisellSalesManagement/components/BookingNotesPreview.js +0 -167
- package/es/plus/pisellSalesManagement/components/ResourceSelector.d.ts +0 -9
- package/es/plus/pisellSalesManagement/components/ResourceSelector.js +0 -102
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -185
- package/es/plus/pisellSalesManagement/config/booking.js +0 -380
- package/es/plus/pisellSalesManagement/config/index.d.ts +0 -2
- package/es/plus/pisellSalesManagement/config/index.js +0 -11
- package/es/plus/pisellSalesManagement/config/order.d.ts +0 -172
- package/es/plus/pisellSalesManagement/config/order.js +0 -460
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.js +0 -66
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +0 -651
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.js +0 -656
- package/es/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +0 -5
- package/es/plus/pisellSalesManagement/hooks/usePerspectives.js +0 -12
- package/es/plus/pisellSalesManagement/index.d.ts +0 -10
- package/es/plus/pisellSalesManagement/index.js +0 -84
- package/es/plus/pisellSalesManagement/locales.d.ts +0 -303
- package/es/plus/pisellSalesManagement/locales.js +0 -302
- package/es/plus/pisellSalesManagement/serve.d.ts +0 -26
- package/es/plus/pisellSalesManagement/serve.js +0 -222
- package/es/plus/saasAttendance/index.d.ts +0 -6
- package/es/plus/saasAttendance/index.js +0 -5
- package/es/plus/saasAttendance/locales.d.ts +0 -591
- package/es/plus/saasAttendance/locales.js +0 -657
- package/es/plus/saasAttendance/settings/BasicInfoTab.d.ts +0 -5
- package/es/plus/saasAttendance/settings/BasicInfoTab.js +0 -96
- package/es/plus/saasAttendance/settings/ClockInMethodTab.d.ts +0 -8
- package/es/plus/saasAttendance/settings/ClockInMethodTab.js +0 -81
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +0 -8
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.js +0 -293
- package/es/plus/saasAttendance/settings/PermissonTab.d.ts +0 -5
- package/es/plus/saasAttendance/settings/PermissonTab.js +0 -79
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +0 -5
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +0 -115
- package/es/plus/saasAttendance/settings/components/MapField.d.ts +0 -78
- package/es/plus/saasAttendance/settings/components/MapField.js +0 -848
- package/es/plus/saasAttendance/settings/components/index.d.ts +0 -3
- package/es/plus/saasAttendance/settings/components/index.js +0 -2
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -8
- package/es/plus/saasAttendance/settings/components/membersField/index.js +0 -216
- package/es/plus/saasAttendance/settings/components/membersField/index.less +0 -70
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +0 -7
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +0 -149
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +0 -119
- package/es/plus/saasAttendance/settings/components/shiftModal/index.d.ts +0 -18
- package/es/plus/saasAttendance/settings/components/shiftModal/index.js +0 -438
- package/es/plus/saasAttendance/settings/index.d.ts +0 -18
- package/es/plus/saasAttendance/settings/index.js +0 -262
- package/es/plus/saasAttendance/settings/index.less +0 -510
- package/es/plus/saasAttendance/settings/serve.d.ts +0 -27
- package/es/plus/saasAttendance/settings/serve.js +0 -83
- package/es/plus/saasAttendance/settings/types.d.ts +0 -136
- package/es/plus/saasAttendance/settings/types.js +0 -1
- package/es/plus/saasRole/components/PermissionManager/index.d.ts +0 -19
- package/es/plus/saasRole/components/PermissionManager/index.js +0 -211
- package/es/plus/saasRole/components/PermissionManager/index.less +0 -71
- package/es/plus/saasRole/index.d.ts +0 -14
- package/es/plus/saasRole/index.js +0 -1036
- package/es/plus/saasRole/index.less +0 -196
- package/es/plus/saasRole/locales.d.ts +0 -319
- package/es/plus/saasRole/locales.js +0 -319
- package/es/plus/saasRole/serve.d.ts +0 -72
- package/es/plus/saasRole/serve.js +0 -304
- package/es/plus/saasRole/types.d.ts +0 -177
- package/es/plus/saasRole/types.js +0 -1
- package/es/plus/saasRole/utils.d.ts +0 -0
- package/es/plus/saasRole/utils.js +0 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +0 -31
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +0 -503
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +0 -23
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.js +0 -634
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.less +0 -178
- package/es/plus/saasTeamMembers/index.d.ts +0 -5
- package/es/plus/saasTeamMembers/index.js +0 -529
- package/es/plus/saasTeamMembers/index.less +0 -87
- package/es/plus/saasTeamMembers/locales.d.ts +0 -546
- package/es/plus/saasTeamMembers/locales.js +0 -591
- package/es/plus/saasTeamMembers/serve.d.ts +0 -95
- package/es/plus/saasTeamMembers/serve.js +0 -374
- package/es/plus/saasTeamMembers/type.d.ts +0 -158
- package/es/plus/saasTeamMembers/type.js +0 -1
- package/es/pro/Cards/components/SKUCard/locales.d.ts +0 -12
- package/es/pro/Cards/components/SKUCard/locales.js +0 -11
- package/es/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/es/pro/Cards/components/SKUCard/types.js +0 -1
- package/es/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -54
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/es/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/es/pro/comprehensiveSearch/components/index.js +0 -2
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +0 -141
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -23
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +0 -22
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
- package/es/pro/comprehensiveSearch/index.d.ts +0 -7
- package/es/pro/comprehensiveSearch/index.js +0 -207
- package/es/pro/comprehensiveSearch/index.less +0 -196
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -23
- package/es/pro/comprehensiveSearch/locales.js +0 -22
- package/es/pro/comprehensiveSearch/types.d.ts +0 -32
- package/es/pro/comprehensiveSearch/types.js +0 -1
- package/es/pro/keyboards/index.d.ts +0 -2
- package/es/pro/keyboards/index.js +0 -1
- package/es/pro/keyboards/locales.d.ts +0 -38
- package/es/pro/keyboards/locales.js +0 -57
- package/es/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/es/pro/keyboards/numberKeyboard/index.js +0 -523
- package/es/pro/keyboards/numberKeyboard/index.less +0 -59
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/keyboards/numberKeyboard/types.js +0 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -13
- package/es/pro/pisellPhoneKeyboard/index.js +0 -210
- package/es/pro/pisellPhoneKeyboard/index.less +0 -157
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -18
- package/es/pro/pisellPhoneKeyboard/locales.js +0 -17
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -10
- package/lib/components/ecocup/components/AddCustomerModal/index.js +0 -212
- package/lib/components/ecocup/components/AddCustomerModal/index.less +0 -9
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupActionList/index.js +0 -116
- package/lib/components/ecocup/components/CupActionList/index.less +0 -102
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupActionModal/hooks.js +0 -55
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -15
- package/lib/components/ecocup/components/CupActionModal/index.js +0 -125
- package/lib/components/ecocup/components/CupActionModal/index.less +0 -38
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +0 -10
- package/lib/components/ecocup/components/CupInfoCard/index.js +0 -43
- package/lib/components/ecocup/components/CupInfoCard/index.less +0 -11
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +0 -115
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -14
- package/lib/components/ecocup/components/CupStatusModal/index.js +0 -221
- package/lib/components/ecocup/components/CupStatusModal/index.less +0 -73
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +0 -89
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -20
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +0 -178
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +0 -68
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +0 -9
- package/lib/components/ecocup/components/CustomerCard/index.js +0 -58
- package/lib/components/ecocup/components/CustomerCard/index.less +0 -50
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -9
- package/lib/components/ecocup/components/PageHeader/index.d.ts +0 -9
- package/lib/components/ecocup/components/PageHeader/index.js +0 -66
- package/lib/components/ecocup/components/PageHeader/index.less +0 -31
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SearchBar/const.js +0 -50
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +0 -44
- package/lib/components/ecocup/components/SearchBar/hooks.js +0 -135
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -14
- package/lib/components/ecocup/components/SearchBar/index.js +0 -226
- package/lib/components/ecocup/components/SearchBar/index.less +0 -88
- package/lib/components/ecocup/components/SettingModal/const.d.ts +0 -6
- package/lib/components/ecocup/components/SettingModal/const.js +0 -48
- package/lib/components/ecocup/components/SettingModal/index.d.ts +0 -9
- package/lib/components/ecocup/components/SettingModal/index.js +0 -199
- package/lib/components/ecocup/components/SettingModal/index.less +0 -9
- package/lib/components/ecocup/cupList/const.d.ts +0 -140
- package/lib/components/ecocup/cupList/const.js +0 -344
- package/lib/components/ecocup/cupList/hooks/index.d.ts +0 -4
- package/lib/components/ecocup/cupList/hooks/index.js +0 -43
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -45
- package/lib/components/ecocup/cupList/hooks/useColumns.js +0 -200
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +0 -41
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +0 -227
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -3
- package/lib/components/ecocup/cupList/hooks/useSummary.js +0 -83
- package/lib/components/ecocup/cupList/index.d.ts +0 -7
- package/lib/components/ecocup/cupList/index.js +0 -262
- package/lib/components/ecocup/cupList/index.less +0 -159
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/cupProject/const.js +0 -65
- package/lib/components/ecocup/cupProject/index.d.ts +0 -3
- package/lib/components/ecocup/cupProject/index.js +0 -135
- package/lib/components/ecocup/cupProject/index.less +0 -41
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/const.js +0 -93
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useColumns.js +0 -89
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +0 -56
- package/lib/components/ecocup/customerList/index.d.ts +0 -7
- package/lib/components/ecocup/customerList/index.js +0 -138
- package/lib/components/ecocup/customerList/index.less +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -57
- package/lib/components/ecocup/hooks.js +0 -169
- package/lib/components/ecocup/locales.d.ts +0 -653
- package/lib/components/ecocup/locales.js +0 -706
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/types.js +0 -57
- package/lib/components/ecocup/utils/download.d.ts +0 -7
- package/lib/components/ecocup/utils/download.js +0 -47
- package/lib/components/ecocup/utils/index.d.ts +0 -2
- package/lib/components/ecocup/utils/index.js +0 -42
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/ecocup/utils/scanListener.js +0 -90
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +0 -34
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +0 -107
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +0 -52
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +0 -59
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +0 -228
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +0 -70
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +0 -195
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +0 -8
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +0 -166
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.d.ts +0 -10
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.js +0 -210
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.less +0 -37
- package/lib/hooks/useThemeTokens.d.ts +0 -7
- package/lib/hooks/useThemeTokens.js +0 -40
- package/lib/hooks/useTranslationOriginal.d.ts +0 -1
- package/lib/hooks/useTranslationOriginal.js +0 -42
- package/lib/plus/clientCard/index.d.ts +0 -7
- package/lib/plus/clientCard/index.js +0 -457
- package/lib/plus/clientCard/index.less +0 -515
- package/lib/plus/clientCard/line/index.d.ts +0 -9
- package/lib/plus/clientCard/line/index.js +0 -153
- package/lib/plus/clientCard/line/index.less +0 -142
- package/lib/plus/clientCard/locales.d.ts +0 -28
- package/lib/plus/clientCard/locales.js +0 -51
- package/lib/plus/clientCard/types.d.ts +0 -135
- package/lib/plus/clientCard/types.js +0 -17
- package/lib/plus/clientCard/utils.d.ts +0 -8
- package/lib/plus/clientCard/utils.js +0 -75
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -3
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +0 -256
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -3
- package/lib/plus/clinetSearch/Add/GenderField/index.js +0 -52
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -3
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +0 -78
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +0 -193
- package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
- package/lib/plus/clinetSearch/Add/index.js +0 -244
- package/lib/plus/clinetSearch/Add/index.less +0 -30
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -235
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +0 -35
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +0 -17
- package/lib/plus/clinetSearch/index.d.ts +0 -18
- package/lib/plus/clinetSearch/index.js +0 -237
- package/lib/plus/clinetSearch/index.less +0 -95
- package/lib/plus/clinetSearch/locales.d.ts +0 -178
- package/lib/plus/clinetSearch/locales.js +0 -201
- package/lib/plus/clinetSearch/serve.d.ts +0 -1
- package/lib/plus/clinetSearch/types.d.ts +0 -70
- package/lib/plus/clinetSearch/types.js +0 -17
- package/lib/plus/orderList/components/BatchActionBar.d.ts +0 -9
- package/lib/plus/orderList/components/BatchActionBar.js +0 -567
- package/lib/plus/orderList/components/FilterList.d.ts +0 -8
- package/lib/plus/orderList/components/FilterList.js +0 -121
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -6
- package/lib/plus/orderList/components/HandleActions.js +0 -52
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -5
- package/lib/plus/orderList/components/QuickFilter.js +0 -43
- package/lib/plus/orderList/components/Reset.d.ts +0 -7
- package/lib/plus/orderList/components/Reset.js +0 -58
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -7
- package/lib/plus/orderList/components/Toolbar.js +0 -68
- package/lib/plus/orderList/config.d.ts +0 -155
- package/lib/plus/orderList/config.js +0 -764
- package/lib/plus/orderList/index.d.ts +0 -10
- package/lib/plus/orderList/index.js +0 -132
- package/lib/plus/orderList/index.less +0 -125
- package/lib/plus/orderList/locales.d.ts +0 -618
- package/lib/plus/orderList/locales.js +0 -737
- package/lib/plus/orderList/serve.d.ts +0 -42
- package/lib/plus/orderList/serve.js +0 -177
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.js +0 -339
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.less +0 -16
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +0 -14
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.js +0 -455
- package/lib/plus/pisellSalesGrid/hooks/useActions.d.ts +0 -19
- package/lib/plus/pisellSalesGrid/hooks/useActions.js +0 -545
- package/lib/plus/pisellSalesGrid/index.d.ts +0 -4
- package/lib/plus/pisellSalesGrid/index.js +0 -42
- package/lib/plus/pisellSalesGrid/locales.d.ts +0 -9
- package/lib/plus/pisellSalesGrid/locales.js +0 -29
- package/lib/plus/pisellSalesGrid/serve.d.ts +0 -19
- package/lib/plus/pisellSalesGrid/serve.js +0 -142
- package/lib/plus/pisellSalesGrid/types.d.ts +0 -170
- package/lib/plus/pisellSalesGrid/types.js +0 -17
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -15
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +0 -253
- package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +0 -19
- package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.js +0 -193
- package/lib/plus/pisellSalesManagement/components/ResourceSelector.d.ts +0 -9
- package/lib/plus/pisellSalesManagement/components/ResourceSelector.js +0 -106
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -185
- package/lib/plus/pisellSalesManagement/config/booking.js +0 -500
- package/lib/plus/pisellSalesManagement/config/index.d.ts +0 -2
- package/lib/plus/pisellSalesManagement/config/index.js +0 -43
- package/lib/plus/pisellSalesManagement/config/order.d.ts +0 -172
- package/lib/plus/pisellSalesManagement/config/order.js +0 -492
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.js +0 -113
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +0 -699
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.js +0 -700
- package/lib/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +0 -5
- package/lib/plus/pisellSalesManagement/hooks/usePerspectives.js +0 -42
- package/lib/plus/pisellSalesManagement/index.d.ts +0 -10
- package/lib/plus/pisellSalesManagement/index.js +0 -113
- package/lib/plus/pisellSalesManagement/locales.d.ts +0 -303
- package/lib/plus/pisellSalesManagement/locales.js +0 -326
- package/lib/plus/pisellSalesManagement/serve.d.ts +0 -26
- package/lib/plus/pisellSalesManagement/serve.js +0 -120
- package/lib/plus/saasAttendance/index.d.ts +0 -6
- package/lib/plus/saasAttendance/index.js +0 -39
- package/lib/plus/saasAttendance/locales.d.ts +0 -591
- package/lib/plus/saasAttendance/locales.js +0 -615
- package/lib/plus/saasAttendance/settings/BasicInfoTab.d.ts +0 -5
- package/lib/plus/saasAttendance/settings/BasicInfoTab.js +0 -152
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.d.ts +0 -8
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.js +0 -88
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +0 -8
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.js +0 -369
- package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +0 -5
- package/lib/plus/saasAttendance/settings/PermissonTab.js +0 -128
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +0 -5
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +0 -107
- package/lib/plus/saasAttendance/settings/components/MapField.d.ts +0 -78
- package/lib/plus/saasAttendance/settings/components/MapField.js +0 -670
- package/lib/plus/saasAttendance/settings/components/index.d.ts +0 -3
- package/lib/plus/saasAttendance/settings/components/index.js +0 -42
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -8
- package/lib/plus/saasAttendance/settings/components/membersField/index.js +0 -247
- package/lib/plus/saasAttendance/settings/components/membersField/index.less +0 -70
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +0 -7
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +0 -150
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +0 -119
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.d.ts +0 -18
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.js +0 -447
- package/lib/plus/saasAttendance/settings/index.d.ts +0 -18
- package/lib/plus/saasAttendance/settings/index.js +0 -295
- package/lib/plus/saasAttendance/settings/index.less +0 -510
- package/lib/plus/saasAttendance/settings/serve.d.ts +0 -27
- package/lib/plus/saasAttendance/settings/types.d.ts +0 -136
- package/lib/plus/saasAttendance/settings/types.js +0 -17
- package/lib/plus/saasRole/components/PermissionManager/index.d.ts +0 -19
- package/lib/plus/saasRole/components/PermissionManager/index.js +0 -159
- package/lib/plus/saasRole/components/PermissionManager/index.less +0 -71
- package/lib/plus/saasRole/index.d.ts +0 -14
- package/lib/plus/saasRole/index.js +0 -780
- package/lib/plus/saasRole/index.less +0 -196
- package/lib/plus/saasRole/locales.d.ts +0 -319
- package/lib/plus/saasRole/locales.js +0 -345
- package/lib/plus/saasRole/serve.d.ts +0 -72
- package/lib/plus/saasRole/serve.js +0 -100
- package/lib/plus/saasRole/types.d.ts +0 -177
- package/lib/plus/saasRole/types.js +0 -17
- package/lib/plus/saasRole/utils.d.ts +0 -0
- package/lib/plus/saasRole/utils.js +0 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +0 -31
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +0 -393
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +0 -23
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.js +0 -672
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.less +0 -178
- package/lib/plus/saasTeamMembers/index.d.ts +0 -5
- package/lib/plus/saasTeamMembers/index.js +0 -448
- package/lib/plus/saasTeamMembers/index.less +0 -87
- package/lib/plus/saasTeamMembers/locales.d.ts +0 -546
- package/lib/plus/saasTeamMembers/locales.js +0 -617
- package/lib/plus/saasTeamMembers/serve.d.ts +0 -95
- package/lib/plus/saasTeamMembers/serve.js +0 -132
- package/lib/plus/saasTeamMembers/type.d.ts +0 -158
- package/lib/plus/saasTeamMembers/type.js +0 -17
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +0 -12
- package/lib/pro/Cards/components/SKUCard/locales.js +0 -35
- package/lib/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/lib/pro/Cards/components/SKUCard/types.js +0 -17
- package/lib/pro/Selector/components/LayoutContainer/index.less +0 -19
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +0 -11
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +0 -64
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +0 -28
- package/lib/pro/comprehensiveSearch/components/index.d.ts +0 -2
- package/lib/pro/comprehensiveSearch/components/index.js +0 -42
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +0 -24
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +0 -154
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +0 -100
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -23
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +0 -46
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -7
- package/lib/pro/comprehensiveSearch/index.js +0 -190
- package/lib/pro/comprehensiveSearch/index.less +0 -196
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -23
- package/lib/pro/comprehensiveSearch/locales.js +0 -46
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
- package/lib/pro/comprehensiveSearch/types.js +0 -17
- package/lib/pro/keyboards/index.d.ts +0 -2
- package/lib/pro/keyboards/index.js +0 -39
- package/lib/pro/keyboards/locales.d.ts +0 -38
- package/lib/pro/keyboards/locales.js +0 -61
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +0 -16
- package/lib/pro/keyboards/numberKeyboard/index.js +0 -400
- package/lib/pro/keyboards/numberKeyboard/index.less +0 -59
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/keyboards/numberKeyboard/types.js +0 -17
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -13
- package/lib/pro/pisellPhoneKeyboard/index.js +0 -219
- package/lib/pro/pisellPhoneKeyboard/index.less +0 -157
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -18
- package/lib/pro/pisellPhoneKeyboard/locales.js +0 -41
- package/lowcode/client-card/fragments/cardStyle.ts +0 -63
- package/lowcode/client-card/fragments/nameStyle.ts +0 -34
- package/lowcode/client-card/fragments/pisellAvatar.ts +0 -87
- package/lowcode/client-card/fragments/tagConfig.ts +0 -88
- package/lowcode/client-card/meta.ts +0 -343
- package/lowcode/client-search/meta.ts +0 -316
- package/lowcode/eco-cup-list/meta.ts +0 -27
- package/lowcode/eco-customer-list/meta.ts +0 -27
- package/lowcode/ecocup-cup-list/meta.ts +0 -38
- package/lowcode/ecocup-cup-project/meta.ts +0 -35
- package/lowcode/ecocup-customer-list/meta.ts +0 -38
- package/lowcode/order-list/meta.ts +0 -87
- package/lowcode/pisell-sales-management/meta.ts +0 -88
- package/lowcode/saas-attendance-settings/meta.ts +0 -56
- package/lowcode/saas-role/meta.ts +0 -35
- package/lowcode/saas-team-members/meta.ts +0 -35
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/systemSettings/registry/components/DataSourceTreeSelect/index.tsx
|
|
30
|
-
var DataSourceTreeSelect_exports = {};
|
|
31
|
-
__export(DataSourceTreeSelect_exports, {
|
|
32
|
-
default: () => DataSourceTreeSelect_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(DataSourceTreeSelect_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_react2 = require("react");
|
|
38
|
-
var import_serve = require("./serve");
|
|
39
|
-
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
40
|
-
var import_utils = require("../../../../../utils");
|
|
41
|
-
var isString = (value) => {
|
|
42
|
-
return typeof value === "string";
|
|
43
|
-
};
|
|
44
|
-
var defaultArr = [];
|
|
45
|
-
var DataSourceTreeSelect = (props) => {
|
|
46
|
-
var _a, _b, _c;
|
|
47
|
-
const {
|
|
48
|
-
value,
|
|
49
|
-
onChange,
|
|
50
|
-
disabled,
|
|
51
|
-
mode,
|
|
52
|
-
variables = defaultArr,
|
|
53
|
-
isShowOriginalDataSource = true,
|
|
54
|
-
filters,
|
|
55
|
-
dataSource = []
|
|
56
|
-
// 从 props 中获取数据源,默认为空数组
|
|
57
|
-
} = props;
|
|
58
|
-
console.log("dataSource>>>>", dataSource);
|
|
59
|
-
console.log("value>>>", value);
|
|
60
|
-
const context = (0, import_useEngineContext.default)();
|
|
61
|
-
const { request: apiRequest } = ((_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b)) || {};
|
|
62
|
-
import_utils.request.setRequest(apiRequest);
|
|
63
|
-
const valueRef = (0, import_react2.useRef)(value);
|
|
64
|
-
valueRef.current = value;
|
|
65
|
-
const [treeData, setTreeData] = (0, import_react2.useState)([]);
|
|
66
|
-
const getTableDataSource = async () => {
|
|
67
|
-
if (!isShowOriginalDataSource) {
|
|
68
|
-
return [];
|
|
69
|
-
}
|
|
70
|
-
return dataSource.map((item) => {
|
|
71
|
-
let collections = item.collections;
|
|
72
|
-
if (item.type === "custom-api") {
|
|
73
|
-
if (mode === "add") {
|
|
74
|
-
collections = item.collections.filter(
|
|
75
|
-
(collection) => {
|
|
76
|
-
var _a2;
|
|
77
|
-
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("create");
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
} else if (mode === "edit") {
|
|
81
|
-
collections = item.collections.filter(
|
|
82
|
-
(collection) => {
|
|
83
|
-
var _a2;
|
|
84
|
-
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("update");
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
} else if (mode === "view") {
|
|
88
|
-
collections = item.collections.filter(
|
|
89
|
-
(collection) => {
|
|
90
|
-
var _a2;
|
|
91
|
-
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("get");
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
} else if (mode === "list") {
|
|
95
|
-
collections = item.collections.filter(
|
|
96
|
-
(collection) => {
|
|
97
|
-
var _a2;
|
|
98
|
-
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("list");
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
const children = collections == null ? void 0 : collections.map((collection) => {
|
|
104
|
-
var _a2;
|
|
105
|
-
return {
|
|
106
|
-
title: collection.title,
|
|
107
|
-
value: collection.key || collection.tableName,
|
|
108
|
-
item: {
|
|
109
|
-
...collection,
|
|
110
|
-
headerDataSource: item.key,
|
|
111
|
-
options: item.type === "mysql" ? {} : (_a2 = item == null ? void 0 : item.options) == null ? void 0 : _a2.options
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
});
|
|
115
|
-
return {
|
|
116
|
-
title: item.displayName,
|
|
117
|
-
value: item.key,
|
|
118
|
-
selectable: false,
|
|
119
|
-
children
|
|
120
|
-
};
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
const getVariablesDataSource = async (filterItem) => {
|
|
124
|
-
if (filterItem !== "all") {
|
|
125
|
-
if (filterItem) {
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return {
|
|
129
|
-
title: "变量",
|
|
130
|
-
value: "variables",
|
|
131
|
-
selectable: false,
|
|
132
|
-
children: variables.map((item) => {
|
|
133
|
-
const treeNode = {
|
|
134
|
-
title: item.label,
|
|
135
|
-
value: item.value,
|
|
136
|
-
item: item.item,
|
|
137
|
-
isVariable: true
|
|
138
|
-
};
|
|
139
|
-
if (item.children) {
|
|
140
|
-
treeNode.children = item.children.map((child) => ({
|
|
141
|
-
title: child.label,
|
|
142
|
-
value: child.value,
|
|
143
|
-
item: child.item,
|
|
144
|
-
isVariable: true
|
|
145
|
-
}));
|
|
146
|
-
}
|
|
147
|
-
return treeNode;
|
|
148
|
-
})
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
const dataSources = {
|
|
152
|
-
tables: getTableDataSource
|
|
153
|
-
// variables: getVariablesDataSource,
|
|
154
|
-
};
|
|
155
|
-
const getMenuDataSource = async (_treeData) => {
|
|
156
|
-
if ((filters == null ? void 0 : filters.variables) && typeof filters.variables !== "string") {
|
|
157
|
-
if (filters.variables.menu !== "all") {
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
const res = await (0, import_serve.getNocobaseMenuDataSource)();
|
|
162
|
-
setTreeData(
|
|
163
|
-
_treeData.map((d) => {
|
|
164
|
-
if (d.value === "variables") {
|
|
165
|
-
d.children = d.children || [];
|
|
166
|
-
d.children.push(res);
|
|
167
|
-
}
|
|
168
|
-
return d;
|
|
169
|
-
})
|
|
170
|
-
);
|
|
171
|
-
};
|
|
172
|
-
const initDataSource = async () => {
|
|
173
|
-
let _treeData = [];
|
|
174
|
-
for (const key in dataSources) {
|
|
175
|
-
const fn = dataSources[key];
|
|
176
|
-
const filterKey = key;
|
|
177
|
-
if (!filters || filters[filterKey]) {
|
|
178
|
-
const res = await fn(filters ? filters[filterKey] : "all");
|
|
179
|
-
_treeData = _treeData.concat(res);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
setTreeData(_treeData);
|
|
183
|
-
getMenuDataSource(_treeData);
|
|
184
|
-
};
|
|
185
|
-
const _onChange = async (value2) => {
|
|
186
|
-
onChange((value2 == null ? void 0 : value2.item) || null);
|
|
187
|
-
};
|
|
188
|
-
const handleSelect = async (val, option) => {
|
|
189
|
-
_onChange({
|
|
190
|
-
value: val,
|
|
191
|
-
title: option.title,
|
|
192
|
-
item: option.item,
|
|
193
|
-
isSelect: true,
|
|
194
|
-
isVariable: option.isVariable
|
|
195
|
-
});
|
|
196
|
-
};
|
|
197
|
-
const handleChange = async (val, option) => {
|
|
198
|
-
if (!val) {
|
|
199
|
-
_onChange({ value: "", item: null, title: "" });
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
const currentValue = (0, import_react2.useMemo)(() => {
|
|
203
|
-
if (isString(value)) {
|
|
204
|
-
return value;
|
|
205
|
-
}
|
|
206
|
-
return (value == null ? void 0 : value.key) || (value == null ? void 0 : value.tableName);
|
|
207
|
-
}, [JSON.stringify(value)]);
|
|
208
|
-
(0, import_react2.useEffect)(() => {
|
|
209
|
-
initDataSource();
|
|
210
|
-
}, [dataSource, variables]);
|
|
211
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
212
|
-
import_materials.TreeSelect,
|
|
213
|
-
{
|
|
214
|
-
treeExpandAction: "click",
|
|
215
|
-
disabled,
|
|
216
|
-
showSearch: true,
|
|
217
|
-
popupMatchSelectWidth: false,
|
|
218
|
-
treeNodeFilterProp: "title",
|
|
219
|
-
style: { width: "100%" },
|
|
220
|
-
value: currentValue,
|
|
221
|
-
allowClear: true,
|
|
222
|
-
onChange: handleChange,
|
|
223
|
-
treeData,
|
|
224
|
-
onSelect: handleSelect
|
|
225
|
-
}
|
|
226
|
-
));
|
|
227
|
-
};
|
|
228
|
-
var DataSourceTreeSelect_default = DataSourceTreeSelect;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 集合/表类型定义
|
|
3
|
-
*/
|
|
4
|
-
export interface Collection {
|
|
5
|
-
title: string;
|
|
6
|
-
tableName: string;
|
|
7
|
-
key?: string;
|
|
8
|
-
types?: string[];
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 数据源类型定义
|
|
13
|
-
*/
|
|
14
|
-
export interface DataSourceType {
|
|
15
|
-
key: string;
|
|
16
|
-
type: string;
|
|
17
|
-
displayName: string;
|
|
18
|
-
collections: Collection[];
|
|
19
|
-
options?: {
|
|
20
|
-
options?: Record<string, any>;
|
|
21
|
-
};
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 数据源配置选项类型
|
|
26
|
-
*/
|
|
27
|
-
export interface DataSourceOption {
|
|
28
|
-
key: string;
|
|
29
|
-
options?: Record<string, any>;
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* 获取 Nocobase 自定义数据源
|
|
34
|
-
* @returns 自定义数据源列表(如 API 数据源等)
|
|
35
|
-
*/
|
|
36
|
-
export declare const getNocobaseDataSource: () => Promise<DataSourceType[]>;
|
|
37
|
-
/**
|
|
38
|
-
* 获取 Nocobase 主数据源(集合列表)
|
|
39
|
-
* @returns 主数据源的集合列表
|
|
40
|
-
*/
|
|
41
|
-
export declare const getNocobaseMainDataSource: () => Promise<Collection[]>;
|
|
42
|
-
/**
|
|
43
|
-
* 获取 Nocobase 数据源配置选项
|
|
44
|
-
* @returns 数据源配置选项列表
|
|
45
|
-
*/
|
|
46
|
-
export declare const getNocobaseDataSourceOptions: () => Promise<DataSourceOption[]>;
|
|
47
|
-
/**
|
|
48
|
-
* 合并主数据源和其他数据源
|
|
49
|
-
* @param main - 主数据源集合列表
|
|
50
|
-
* @param other - 其他数据源列表
|
|
51
|
-
* @param options - 数据源配置选项
|
|
52
|
-
* @returns 合并后的数据源列表
|
|
53
|
-
*/
|
|
54
|
-
export declare const mergeDataSources: (main: Collection[], other: DataSourceType[], options: DataSourceOption[]) => DataSourceType[];
|
|
55
|
-
/**
|
|
56
|
-
* 获取所有数据源(主数据源 + 其他数据源)
|
|
57
|
-
* 自动调用三个接口并合并数据
|
|
58
|
-
* @returns 合并后的数据源列表
|
|
59
|
-
*/
|
|
60
|
-
export declare const getAllDataSources: () => Promise<DataSourceType[]>;
|
|
61
|
-
/**
|
|
62
|
-
* 获取菜单数据源
|
|
63
|
-
* @returns 菜单树节点数据
|
|
64
|
-
*/
|
|
65
|
-
export declare const getNocobaseMenuDataSource: () => Promise<{
|
|
66
|
-
title: string;
|
|
67
|
-
value: string;
|
|
68
|
-
selectable: boolean;
|
|
69
|
-
children: any;
|
|
70
|
-
}>;
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/systemSettings/registry/components/DataSourceTreeSelect/serve.ts
|
|
20
|
-
var serve_exports = {};
|
|
21
|
-
__export(serve_exports, {
|
|
22
|
-
getAllDataSources: () => getAllDataSources,
|
|
23
|
-
getNocobaseDataSource: () => getNocobaseDataSource,
|
|
24
|
-
getNocobaseDataSourceOptions: () => getNocobaseDataSourceOptions,
|
|
25
|
-
getNocobaseMainDataSource: () => getNocobaseMainDataSource,
|
|
26
|
-
getNocobaseMenuDataSource: () => getNocobaseMenuDataSource,
|
|
27
|
-
mergeDataSources: () => mergeDataSources
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(serve_exports);
|
|
30
|
-
var import_utils = require("../../../../../utils");
|
|
31
|
-
var get = async (url, params = {}, config = {}) => {
|
|
32
|
-
try {
|
|
33
|
-
const req = import_utils.request.getRequest();
|
|
34
|
-
const response = await req.get(url, params, config);
|
|
35
|
-
return response;
|
|
36
|
-
} catch (error) {
|
|
37
|
-
console.error("GET request failed:", error);
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var post = async (url, data = {}, config = {}) => {
|
|
42
|
-
try {
|
|
43
|
-
const req = import_utils.request.getRequest();
|
|
44
|
-
const response = await req.post(url, data, config);
|
|
45
|
-
return response;
|
|
46
|
-
} catch (error) {
|
|
47
|
-
console.error("POST request failed:", error);
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
var getNocobaseDataSource = async () => {
|
|
52
|
-
try {
|
|
53
|
-
const res = await post(
|
|
54
|
-
"/dataSources:listEnabled?paginate=false&appends%5B%5D=collections",
|
|
55
|
-
{},
|
|
56
|
-
{
|
|
57
|
-
isNocobase: true
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const data = Array.isArray(res) ? res : (res == null ? void 0 : res.data) || [];
|
|
61
|
-
return data;
|
|
62
|
-
} catch (error) {
|
|
63
|
-
console.error("Failed to fetch nocobase data sources:", error);
|
|
64
|
-
return [];
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
var getNocobaseMainDataSource = async () => {
|
|
68
|
-
try {
|
|
69
|
-
const res = await post(
|
|
70
|
-
"/collections:list?paginate=false&appends%5B%5D=fields&sort%5B%5D=sort&filter=%7B%7D",
|
|
71
|
-
{},
|
|
72
|
-
{
|
|
73
|
-
isNocobase: true
|
|
74
|
-
}
|
|
75
|
-
);
|
|
76
|
-
const data = Array.isArray(res) ? res : (res == null ? void 0 : res.data) || [];
|
|
77
|
-
return data;
|
|
78
|
-
} catch (error) {
|
|
79
|
-
console.error("Failed to fetch nocobase main data source:", error);
|
|
80
|
-
return [];
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
var getNocobaseDataSourceOptions = async () => {
|
|
84
|
-
try {
|
|
85
|
-
const res = await post(
|
|
86
|
-
"/dataSources:list?appends=collections",
|
|
87
|
-
{},
|
|
88
|
-
{
|
|
89
|
-
isNocobase: true
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
const data = Array.isArray(res) ? res : (res == null ? void 0 : res.data) || [];
|
|
93
|
-
return data;
|
|
94
|
-
} catch (error) {
|
|
95
|
-
console.error("Failed to fetch nocobase data source options:", error);
|
|
96
|
-
return [];
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
var mergeDataSources = (main, other, options) => {
|
|
100
|
-
const safeMain = Array.isArray(main) ? main : [];
|
|
101
|
-
const safeOther = Array.isArray(other) ? other : [];
|
|
102
|
-
const safeOptions = Array.isArray(options) ? options : [];
|
|
103
|
-
const optionsMap = safeOptions.reduce((acc, item) => {
|
|
104
|
-
if (item && item.key) {
|
|
105
|
-
acc[item.key] = item;
|
|
106
|
-
}
|
|
107
|
-
return acc;
|
|
108
|
-
}, {});
|
|
109
|
-
const otherDataSource = safeOther.map((item) => ({
|
|
110
|
-
...item,
|
|
111
|
-
options: optionsMap[item.key]
|
|
112
|
-
}));
|
|
113
|
-
return [
|
|
114
|
-
{
|
|
115
|
-
displayName: "主数据源",
|
|
116
|
-
key: "main",
|
|
117
|
-
type: "main",
|
|
118
|
-
collections: safeMain
|
|
119
|
-
},
|
|
120
|
-
...otherDataSource
|
|
121
|
-
];
|
|
122
|
-
};
|
|
123
|
-
var getAllDataSources = async () => {
|
|
124
|
-
try {
|
|
125
|
-
const [other, main, options] = await Promise.all([
|
|
126
|
-
getNocobaseDataSource(),
|
|
127
|
-
getNocobaseMainDataSource(),
|
|
128
|
-
getNocobaseDataSourceOptions()
|
|
129
|
-
]);
|
|
130
|
-
console.log("Data sources fetched:", {
|
|
131
|
-
other: Array.isArray(other) ? `${other.length} items` : typeof other,
|
|
132
|
-
main: Array.isArray(main) ? `${main.length} items` : typeof main,
|
|
133
|
-
options: Array.isArray(options) ? `${options.length} items` : typeof options
|
|
134
|
-
});
|
|
135
|
-
const merged = mergeDataSources(main, other, options);
|
|
136
|
-
console.log("Merged data sources:", merged.length, "items");
|
|
137
|
-
return merged;
|
|
138
|
-
} catch (error) {
|
|
139
|
-
console.error("Failed to fetch all data sources:", error);
|
|
140
|
-
return [];
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
var getNocobaseMenuDataSource = async () => {
|
|
144
|
-
try {
|
|
145
|
-
const res = await get(
|
|
146
|
-
"/navigation_menu:list",
|
|
147
|
-
{
|
|
148
|
-
page: 1,
|
|
149
|
-
pageSize: 100,
|
|
150
|
-
filter: {}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
isNocobase: true,
|
|
154
|
-
headers: {
|
|
155
|
-
"x-data-source": "pisell2"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
const data = Array.isArray(res) ? res : (res == null ? void 0 : res.data) || [];
|
|
160
|
-
console.log("Menu data source fetched:", {
|
|
161
|
-
type: typeof res,
|
|
162
|
-
isArray: Array.isArray(res),
|
|
163
|
-
dataLength: data.length
|
|
164
|
-
});
|
|
165
|
-
return {
|
|
166
|
-
title: "菜单",
|
|
167
|
-
value: "menu",
|
|
168
|
-
selectable: false,
|
|
169
|
-
children: data.map((item) => {
|
|
170
|
-
var _a;
|
|
171
|
-
return {
|
|
172
|
-
title: ((_a = item.name) == null ? void 0 : _a["original"]) || item.name || "Untitled",
|
|
173
|
-
value: `{{global.value.menu.${item.code}}}`
|
|
174
|
-
};
|
|
175
|
-
})
|
|
176
|
-
};
|
|
177
|
-
} catch (error) {
|
|
178
|
-
console.error("Failed to fetch menu data source:", error);
|
|
179
|
-
return {
|
|
180
|
-
title: "菜单",
|
|
181
|
-
value: "menu",
|
|
182
|
-
selectable: false,
|
|
183
|
-
children: []
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
188
|
-
0 && (module.exports = {
|
|
189
|
-
getAllDataSources,
|
|
190
|
-
getNocobaseDataSource,
|
|
191
|
-
getNocobaseDataSourceOptions,
|
|
192
|
-
getNocobaseMainDataSource,
|
|
193
|
-
getNocobaseMenuDataSource,
|
|
194
|
-
mergeDataSources
|
|
195
|
-
});
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/systemSettings/registry/components/OptionDataSource/OptionTable.tsx
|
|
30
|
-
var OptionTable_exports = {};
|
|
31
|
-
__export(OptionTable_exports, {
|
|
32
|
-
default: () => OptionTable_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(OptionTable_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_materials = require("@pisell/materials");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_icons = require("@ant-design/icons");
|
|
39
|
-
var import_ahooks = require("ahooks");
|
|
40
|
-
var import__ = require("../../index.less");
|
|
41
|
-
var OptionsTable = (props) => {
|
|
42
|
-
const [value, onChange] = (0, import_ahooks.useControllableValue)(props);
|
|
43
|
-
const updateOptionField = (index, field, fieldValue) => {
|
|
44
|
-
onChange == null ? void 0 : onChange((prev) => {
|
|
45
|
-
const newOptions = [...prev];
|
|
46
|
-
newOptions[index] = {
|
|
47
|
-
...(newOptions == null ? void 0 : newOptions[index]) || {},
|
|
48
|
-
[field]: fieldValue
|
|
49
|
-
};
|
|
50
|
-
return newOptions;
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
const handleAdd = () => {
|
|
54
|
-
onChange == null ? void 0 : onChange((prev) => {
|
|
55
|
-
return [
|
|
56
|
-
...prev || [],
|
|
57
|
-
{
|
|
58
|
-
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
59
|
-
label: "",
|
|
60
|
-
value: "",
|
|
61
|
-
color: "default"
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
const handleRemove = (index) => {
|
|
67
|
-
onChange == null ? void 0 : onChange((prev) => {
|
|
68
|
-
return (prev || []).filter((_, i) => i !== index);
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
const handleSortChange = (detail) => {
|
|
72
|
-
const { dataSource: newDataSource } = detail;
|
|
73
|
-
const newOptions = newDataSource.map((item) => ({
|
|
74
|
-
id: item.id,
|
|
75
|
-
label: item.label,
|
|
76
|
-
value: item.value,
|
|
77
|
-
color: item.color
|
|
78
|
-
}));
|
|
79
|
-
onChange == null ? void 0 : onChange(newOptions);
|
|
80
|
-
return false;
|
|
81
|
-
};
|
|
82
|
-
const columns = [
|
|
83
|
-
{
|
|
84
|
-
title: import_utils.locales.getText("registry.optionDataSource.options.label-field"),
|
|
85
|
-
dataIndex: "label",
|
|
86
|
-
key: "label",
|
|
87
|
-
render: (_, record, index) => {
|
|
88
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
89
|
-
import_materials.BaseTranslation,
|
|
90
|
-
{
|
|
91
|
-
renderMode: "edit",
|
|
92
|
-
type: "text",
|
|
93
|
-
value: record.label,
|
|
94
|
-
onChange: (value2) => updateOptionField(index, "label", value2),
|
|
95
|
-
placeholder: import_utils.locales.getText(
|
|
96
|
-
"registry.optionDataSource.options.label-placeholder"
|
|
97
|
-
),
|
|
98
|
-
inputStyle: record.label ? { borderColor: "#D0D5DD" } : {}
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
title: import_utils.locales.getText("registry.optionDataSource.options.value-field"),
|
|
105
|
-
dataIndex: "value",
|
|
106
|
-
key: "value",
|
|
107
|
-
render: (_, record, index) => {
|
|
108
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
109
|
-
import_materials.Input,
|
|
110
|
-
{
|
|
111
|
-
value: record.value,
|
|
112
|
-
onChange: (e) => updateOptionField(index, "value", e.target.value),
|
|
113
|
-
placeholder: import_utils.locales.getText(
|
|
114
|
-
"registry.optionDataSource.options.value-placeholder"
|
|
115
|
-
),
|
|
116
|
-
style: record.value ? { borderColor: "#D0D5DD" } : {}
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
title: "",
|
|
123
|
-
key: "action",
|
|
124
|
-
width: 80,
|
|
125
|
-
align: "center",
|
|
126
|
-
render: (_, record, index) => {
|
|
127
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
128
|
-
import_materials.Button,
|
|
129
|
-
{
|
|
130
|
-
type: "text",
|
|
131
|
-
danger: true,
|
|
132
|
-
size: "small",
|
|
133
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.DeleteOutlined, null),
|
|
134
|
-
onClick: () => handleRemove(index)
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
];
|
|
140
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
141
|
-
import_materials.Button,
|
|
142
|
-
{
|
|
143
|
-
type: "text",
|
|
144
|
-
onClick: handleAdd,
|
|
145
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.PlusOutlined, null),
|
|
146
|
-
style: { position: "absolute", right: 0, top: "-36px", zIndex: 9 }
|
|
147
|
-
},
|
|
148
|
-
import_utils.locales.getText("registry.optionDataSource.options.add")
|
|
149
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
-
import_materials.Table,
|
|
151
|
-
{
|
|
152
|
-
rowKey: "id",
|
|
153
|
-
columns,
|
|
154
|
-
dataSource: value || [],
|
|
155
|
-
pagination: false,
|
|
156
|
-
dragSort: true,
|
|
157
|
-
virtual: false,
|
|
158
|
-
tableLayout: "",
|
|
159
|
-
onSortChange: handleSortChange,
|
|
160
|
-
locale: {
|
|
161
|
-
emptyText: import_utils.locales.getText("registry.optionDataSource.options.empty")
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
));
|
|
165
|
-
};
|
|
166
|
-
var OptionTable_default = OptionsTable;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
import { DataSourceType } from '../DataSourceTreeSelect/serve';
|
|
5
|
-
interface OptionDataSourceProps {
|
|
6
|
-
form: FormInstance<any>;
|
|
7
|
-
treeDataSource: DataSourceType[];
|
|
8
|
-
}
|
|
9
|
-
declare const OptionDataSource: React.FC<OptionDataSourceProps>;
|
|
10
|
-
export default OptionDataSource;
|