@pisell/private-materials 6.3.104 → 6.3.105
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 +18 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -10
- package/es/components/appointmentBooking/components/Date/state.js +3 -1
- package/es/components/appointmentBooking/locales.d.ts +240 -0
- package/es/components/appointmentBooking/locales.js +276 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +164 -0
- package/es/components/authentication/admin/AuthMethods/locales.js +164 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +27 -9
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +54 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +2 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +46 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +2 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +17 -9
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +16 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +42 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +2 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +17 -9
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +24 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +42 -0
- package/es/components/authentication/admin/CustomerAuth/locales.js +42 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +70 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +36 -0
- package/es/components/authentication/admin/DeviceAuth/locales.js +36 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +58 -0
- package/es/components/authentication/admin/OAuthConfig/locales.js +58 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +34 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +30 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +34 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
- package/es/components/booking/components/footer/index.js +26 -20
- package/es/components/booking/editBookingModal/locales.d.ts +12 -0
- package/es/components/booking/editBookingModal/locales.js +12 -0
- package/es/components/booking/editBookingModal/mock.d.ts +186 -2
- package/es/components/booking/editBookingModal/mock.js +22 -0
- 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/info2/service/addService/mock.d.ts +2 -0
- package/es/components/booking/info2/service/addService/mock.js +4 -0
- package/es/components/booking/locales.d.ts +628 -0
- package/es/components/booking/locales.js +722 -0
- package/es/components/booking/notes/NoteBlock/index.js +3 -2
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
- package/es/components/{eftpos/PairModal → ecocup/components/AddCustomerModal}/index.js +159 -189
- package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +14 -0
- package/es/components/ecocup/components/CupActionList/index.js +91 -0
- package/es/components/ecocup/components/CupActionList/index.less +102 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +15 -0
- package/es/components/ecocup/components/CupActionModal/index.js +92 -0
- package/es/components/ecocup/components/CupActionModal/index.less +38 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +10 -0
- package/es/components/ecocup/components/CupInfoCard/index.js +14 -0
- package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.js +176 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
- package/es/components/ecocup/components/CupStatusModal/index.js +281 -0
- package/es/components/ecocup/components/CupStatusModal/index.less +73 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +20 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +9 -0
- package/es/components/ecocup/components/CustomerCard/index.js +37 -0
- package/es/components/ecocup/components/CustomerCard/index.less +50 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +9 -0
- package/es/components/ecocup/components/PageHeader/index.js +47 -0
- package/es/components/ecocup/components/PageHeader/index.less +31 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SearchBar/const.js +16 -0
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/index.js +248 -0
- package/es/components/ecocup/components/SearchBar/index.less +88 -0
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/components/SettingModal/const.js +17 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/es/components/ecocup/components/SettingModal/index.js +253 -0
- package/es/components/ecocup/components/SettingModal/index.less +9 -0
- package/es/components/ecocup/cupList/const.d.ts +140 -0
- package/es/components/ecocup/cupList/const.js +319 -0
- package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/es/components/ecocup/cupList/hooks/index.js +4 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +45 -0
- package/es/components/ecocup/cupList/hooks/useColumns.js +166 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +41 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.js +312 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +42 -0
- package/es/components/ecocup/cupList/index.d.ts +7 -0
- package/es/components/ecocup/cupList/index.js +268 -0
- package/es/components/ecocup/cupList/index.less +159 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/cupProject/const.js +33 -0
- package/es/components/ecocup/cupProject/index.d.ts +3 -0
- package/es/components/ecocup/cupProject/index.js +112 -0
- package/es/components/ecocup/cupProject/index.less +41 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/const.js +67 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/index.js +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
- package/es/components/ecocup/customerList/index.d.ts +7 -0
- package/es/components/ecocup/customerList/index.js +127 -0
- package/es/components/ecocup/customerList/index.less +15 -0
- package/es/components/ecocup/hooks.d.ts +57 -0
- package/es/components/ecocup/hooks.js +168 -0
- package/es/components/ecocup/locales.d.ts +653 -0
- package/es/components/ecocup/locales.js +699 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/types.js +36 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/download.js +34 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/index.js +2 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/ecocup/utils/scanListener.js +107 -0
- package/es/components/eftpos/const.d.ts +1 -3
- package/es/components/eftpos/const.js +0 -2
- package/es/components/eftpos/device.d.ts +1 -3
- package/es/components/eftpos/device.js +3 -5
- package/es/components/eftpos/hooks.d.ts +1 -13
- package/es/components/eftpos/hooks.js +0 -35
- package/es/components/eftpos/index.js +25 -178
- package/es/components/eftpos/index.less +1 -26
- package/es/components/eftpos/locales.d.ts +64 -27
- package/es/components/eftpos/locales.js +85 -92
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +2 -9
- package/es/components/eftposPay/const.js +0 -3
- package/es/components/eftposPay/device.js +208 -36
- package/es/components/eftposPay/hooks.d.ts +1 -2
- package/es/components/eftposPay/hooks.js +0 -12
- package/es/components/eftposPay/linkly/index.js +0 -1
- package/es/components/eftposPay/locales.d.ts +242 -0
- package/es/components/eftposPay/locales.js +326 -0
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -4
- package/es/components/eftposPay/pay.js +2 -7
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
- package/es/components/eventBooking/components/Voucher/components/locales.js +22 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/locales.d.ts +162 -0
- package/es/components/eventBooking/locales.js +186 -0
- package/es/components/kioskSkuDetail/index.js +39 -10
- package/es/components/kioskSkuDetail/locales.d.ts +21 -0
- package/es/components/kioskSkuDetail/locales.js +24 -3
- package/es/components/login/locales.d.ts +14 -0
- package/es/components/login/locales.js +14 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +32 -16
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +17 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +18 -7
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +3 -4
- package/es/components/pay/toC/locales.d.ts +204 -0
- package/es/components/pay/toC/locales.js +244 -0
- package/es/components/pay/toC/serve.d.ts +2 -0
- package/es/components/pinModal/locales.d.ts +16 -0
- package/es/components/pinModal/locales.js +16 -0
- package/es/components/pinVerifyModal/locales.d.ts +14 -0
- package/es/components/pinVerifyModal/locales.js +14 -0
- package/es/components/pisellSelectCustomerModal/locales.d.ts +52 -0
- package/es/components/pisellSelectCustomerModal/locales.js +52 -0
- package/es/components/productExtension/locales.d.ts +30 -0
- package/es/components/productExtension/locales.js +30 -0
- package/es/components/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/components/productSelect/locales.d.ts +20 -0
- package/es/components/productSelect/locales.js +23 -3
- package/es/components/ruleSetting/locales.d.ts +30 -0
- package/es/components/ruleSetting/locales.js +30 -0
- package/es/components/schedules/locales.d.ts +56 -0
- package/es/components/schedules/locales.js +56 -0
- package/es/components/shoppingCart/locales.d.ts +20 -0
- package/es/components/shoppingCart/locales.js +24 -0
- package/es/components/stepController/locales.d.ts +16 -0
- package/es/components/stepController/locales.js +20 -0
- package/es/components/subTotal/locales.d.ts +26 -0
- package/es/components/subTotal/locales.js +26 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +390 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +367 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +169 -35
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +163 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.js +127 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
- package/es/components/systemSettings/registry/index.js +20 -16
- package/es/components/systemSettings/registry/index.less +6 -7
- package/es/components/systemSettings/registry/locales.d.ts +253 -0
- package/es/components/systemSettings/registry/locales.js +262 -3
- package/es/components/systemSettings/registry/services.d.ts +20 -0
- package/es/components/systemSettings/registry/types.d.ts +15 -2
- package/es/components/taxSelect/locales.d.ts +14 -0
- package/es/components/taxSelect/locales.js +14 -0
- package/es/components/ticketBooking/locales.d.ts +130 -0
- package/es/components/ticketBooking/locales.js +156 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatTime.js +8 -2
- package/es/components/wallet/utils.d.ts +1 -1
- package/es/components/walletList/index.js +10 -0
- package/es/components/walletList/locales.d.ts +16 -0
- package/es/components/walletList/locales.js +16 -0
- package/es/components/walletList/types/index.d.ts +2 -0
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/hooks/useLocale.js +8 -1
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useThemeTokens.js +20 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +16 -3
- package/es/index.js +13 -1
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/index.js +462 -0
- package/es/plus/clientCard/index.less +515 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.d.ts +28 -0
- package/es/plus/clientCard/locales.js +27 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/Add/index.js +213 -0
- package/es/plus/clinetSearch/Add/index.less +30 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/index.js +234 -0
- package/es/plus/clinetSearch/index.less +95 -0
- package/es/plus/clinetSearch/locales.d.ts +178 -0
- package/es/plus/clinetSearch/locales.js +177 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.d.ts +70 -0
- package/es/plus/clinetSearch/types.js +1 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +1 -1
- package/es/plus/contactInfo/locales.d.ts +8 -0
- package/es/plus/contactInfo/locales.js +8 -0
- package/es/plus/contactInfoModal/locales.d.ts +42 -0
- package/es/plus/contactInfoModal/locales.js +42 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +835 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +6 -0
- package/es/plus/orderList/components/HandleActions.js +27 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +7 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +7 -0
- package/es/plus/orderList/components/Toolbar.js +59 -0
- package/es/plus/orderList/config.d.ts +155 -0
- package/es/plus/orderList/config.js +786 -0
- package/es/plus/orderList/index.d.ts +10 -0
- package/es/plus/orderList/index.js +133 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/orderList/locales.js +733 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +5 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.js +363 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.less +16 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +14 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.js +559 -0
- package/es/plus/pisellSalesGrid/hooks/useActions.d.ts +19 -0
- package/es/plus/pisellSalesGrid/hooks/useActions.js +723 -0
- package/es/plus/pisellSalesGrid/index.d.ts +4 -0
- package/es/plus/pisellSalesGrid/index.js +3 -0
- package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/es/plus/pisellSalesGrid/locales.js +8 -0
- package/es/plus/pisellSalesGrid/serve.d.ts +19 -0
- package/es/plus/pisellSalesGrid/serve.js +151 -0
- package/es/plus/pisellSalesGrid/types.d.ts +170 -0
- package/es/plus/pisellSalesGrid/types.js +1 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +15 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +211 -0
- package/es/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +19 -0
- package/es/plus/pisellSalesManagement/components/BookingNotesPreview.js +167 -0
- package/es/plus/pisellSalesManagement/components/ResourceSelector.d.ts +9 -0
- package/es/plus/pisellSalesManagement/components/ResourceSelector.js +102 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +186 -0
- package/es/plus/pisellSalesManagement/config/booking.js +380 -0
- package/es/plus/pisellSalesManagement/config/index.d.ts +2 -0
- package/es/plus/pisellSalesManagement/config/index.js +11 -0
- package/es/plus/pisellSalesManagement/config/order.d.ts +172 -0
- package/es/plus/pisellSalesManagement/config/order.js +460 -0
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.js +66 -0
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +2 -0
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +651 -0
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +2 -0
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.js +656 -0
- package/es/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +5 -0
- package/es/plus/pisellSalesManagement/hooks/usePerspectives.js +12 -0
- package/es/plus/pisellSalesManagement/index.d.ts +10 -0
- package/es/plus/pisellSalesManagement/index.js +84 -0
- package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/es/plus/pisellSalesManagement/locales.js +302 -0
- package/es/plus/pisellSalesManagement/serve.d.ts +26 -0
- package/es/plus/pisellSalesManagement/serve.js +222 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/plus/productSelect/locales.d.ts +20 -0
- package/es/plus/productSelect/locales.js +23 -3
- package/es/plus/saasAttendance/index.d.ts +6 -0
- package/es/plus/saasAttendance/index.js +5 -0
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/locales.js +657 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.js +96 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.js +81 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.js +293 -0
- package/es/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/PermissonTab.js +79 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +115 -0
- package/es/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/es/plus/saasAttendance/settings/components/MapField.js +848 -0
- package/es/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/es/plus/saasAttendance/settings/components/index.js +2 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +8 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.js +216 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +149 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.js +438 -0
- package/es/plus/saasAttendance/settings/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/index.js +262 -0
- package/es/plus/saasAttendance/settings/index.less +510 -0
- package/es/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/es/plus/saasAttendance/settings/serve.js +83 -0
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasAttendance/settings/types.js +1 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +8 -0
- package/es/plus/saasCreateOrganization/locales.js +8 -0
- package/es/plus/saasLogin/locales.d.ts +32 -0
- package/es/plus/saasLogin/locales.js +32 -0
- package/es/plus/saasRegister/locales.d.ts +76 -0
- package/es/plus/saasRegister/locales.js +76 -0
- package/es/plus/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/es/plus/saasRole/components/PermissionManager/index.js +211 -0
- package/es/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/es/plus/saasRole/index.d.ts +14 -0
- package/es/plus/saasRole/index.js +1036 -0
- package/es/plus/saasRole/index.less +196 -0
- package/es/plus/saasRole/locales.d.ts +319 -0
- package/es/plus/saasRole/locales.js +319 -0
- package/es/plus/saasRole/serve.d.ts +72 -0
- package/es/plus/saasRole/serve.js +304 -0
- package/es/plus/saasRole/types.d.ts +177 -0
- package/es/plus/saasRole/types.js +1 -0
- 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 +31 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +503 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.js +634 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/es/plus/saasTeamMembers/index.d.ts +5 -0
- package/es/plus/saasTeamMembers/index.js +529 -0
- package/es/plus/saasTeamMembers/index.less +87 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/saasTeamMembers/locales.js +591 -0
- package/es/plus/saasTeamMembers/serve.d.ts +95 -0
- package/es/plus/saasTeamMembers/serve.js +374 -0
- package/es/plus/saasTeamMembers/type.d.ts +158 -0
- package/es/plus/saasTeamMembers/type.js +1 -0
- package/es/plus/selectHolder/locales.d.ts +14 -0
- package/es/plus/selectHolder/locales.js +18 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +6 -5
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/locales.d.ts +20 -0
- package/es/plus/skuOptionsSelection/locales.js +20 -0
- package/es/plus/skuOptionsSelection/store/store.js +2 -1
- package/es/plus/skuOptionsSelection/types.d.ts +14 -0
- package/es/plus/skuOptionsSelection/types.js +4 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +8 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -2
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
- package/es/plus/walletEditor/locales.d.ts +88 -0
- package/es/plus/walletEditor/locales.js +100 -0
- package/es/plus/walletEditor/types.d.ts +2 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +80 -39
- package/es/plus/walletPassGallery/components/passList/index.js +12 -4
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +19 -2
- package/es/plus/walletPassGallery/index.d.ts +4 -0
- package/es/plus/walletPassGallery/index.js +95 -46
- package/es/plus/walletPassGallery/locales.d.ts +188 -0
- package/es/plus/walletPassGallery/locales.js +192 -0
- package/es/plus/walletPassGallery/serve.d.ts +3 -1
- 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 +1 -56
- package/es/pro/Cards/components/SKUCard/index.js +50 -20
- package/es/pro/Cards/components/SKUCard/index.less +23 -2
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/locales.js +11 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Cards/components/SKUCard/types.js +1 -0
- package/es/pro/Login2.0/Login2.js +8 -8
- package/es/pro/Login2.0/locales.d.ts +365 -0
- package/es/pro/Login2.0/locales.js +365 -0
- package/es/pro/Login2.0/shared/types.d.ts +2 -0
- package/es/pro/NumericStepper/index.d.ts +33 -3
- package/es/pro/NumericStepper/index.js +181 -107
- package/es/pro/NumericStepper/index.less +287 -143
- package/es/pro/Selector/BatchSelectorDemo.js +2 -12
- package/es/pro/Selector/Selector.js +39 -30
- package/es/pro/Selector/SelectorGroup.d.ts +1 -1
- package/es/pro/Selector/SelectorGroup.js +5 -1
- package/es/pro/Selector/components/Card/index.js +11 -10
- package/es/pro/Selector/components/Card/index.less +30 -14
- package/es/pro/Selector/components/Indicator/index.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.js +3 -2
- package/es/pro/Selector/components/Indicator/index.less +16 -13
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +5 -3
- package/es/pro/Selector/components/LayoutContainer/index.js +226 -9
- package/es/pro/Selector/components/LayoutContainer/index.less +19 -0
- 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 +2 -0
- package/es/pro/Selector/hooks/usePresetProps.js +60 -6
- package/es/pro/Selector/locales.d.ts +22 -0
- package/es/pro/Selector/locales.js +58 -0
- package/es/pro/Selector/selector.less +0 -64
- package/es/pro/Selector/selectorGroup.less +9 -1
- package/es/pro/Selector/types.d.ts +50 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +54 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/es/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/es/pro/comprehensiveSearch/components/index.js +2 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +141 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +22 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.d.ts +7 -0
- package/es/pro/comprehensiveSearch/index.js +207 -0
- package/es/pro/comprehensiveSearch/index.less +196 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +23 -0
- package/es/pro/comprehensiveSearch/locales.js +22 -0
- package/es/pro/comprehensiveSearch/types.d.ts +32 -0
- package/es/pro/comprehensiveSearch/types.js +1 -0
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/locales.js +57 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/numberKeyboard/locales.d.ts +6 -0
- package/es/pro/numberKeyboard/locales.js +6 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +13 -0
- package/es/pro/pisellPhoneKeyboard/index.js +210 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +17 -0
- package/lib/components/appointmentBooking/components/Date/state.js +3 -1
- package/lib/components/appointmentBooking/locales.d.ts +240 -0
- package/lib/components/appointmentBooking/locales.js +240 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +164 -0
- package/lib/components/authentication/admin/AuthMethods/locales.js +164 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +17 -9
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +54 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +2 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +46 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +2 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +14 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +16 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +42 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +2 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +14 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +24 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +42 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.js +42 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +70 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +36 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.js +36 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +58 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.js +58 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +34 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +30 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +34 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
- package/lib/components/booking/components/footer/index.js +5 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +12 -0
- package/lib/components/booking/editBookingModal/locales.js +12 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +186 -2
- package/lib/components/booking/editBookingModal/mock.js +22 -0
- 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/info2/service/addService/mock.d.ts +2 -0
- package/lib/components/booking/info2/service/addService/mock.js +4 -0
- package/lib/components/booking/locales.d.ts +628 -0
- package/lib/components/booking/locales.js +680 -0
- package/lib/components/booking/notes/NoteBlock/index.js +2 -1
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupActionList/index.js +116 -0
- package/lib/components/ecocup/components/CupActionList/index.less +102 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +15 -0
- package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
- package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +10 -0
- package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
- package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +115 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupStatusModal/index.js +221 -0
- package/lib/components/ecocup/components/CupStatusModal/index.less +73 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +20 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +9 -0
- package/lib/components/ecocup/components/CustomerCard/index.js +58 -0
- package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
- package/lib/components/{eftposPay/mx51/Result.js → ecocup/components/MoreDropdown/index.js} +31 -43
- package/lib/components/ecocup/components/PageHeader/index.d.ts +9 -0
- package/lib/components/ecocup/components/PageHeader/index.js +66 -0
- package/lib/components/ecocup/components/PageHeader/index.less +31 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/{eftposPay/mx51/types.js → ecocup/components/SearchBar/const.js} +28 -18
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/index.js +226 -0
- package/lib/components/ecocup/components/SearchBar/index.less +88 -0
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/components/SettingModal/const.js +48 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/SettingModal/index.js +199 -0
- package/lib/components/ecocup/components/SettingModal/index.less +9 -0
- package/lib/components/ecocup/cupList/const.d.ts +140 -0
- package/lib/components/ecocup/cupList/const.js +344 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/lib/components/ecocup/cupList/hooks/index.js +43 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +45 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.js +200 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +41 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +227 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +83 -0
- package/lib/components/ecocup/cupList/index.d.ts +7 -0
- package/lib/components/ecocup/cupList/index.js +262 -0
- package/lib/components/ecocup/cupList/index.less +159 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/cupProject/const.js +65 -0
- package/lib/components/ecocup/cupProject/index.d.ts +3 -0
- package/lib/components/ecocup/cupProject/index.js +135 -0
- package/lib/components/ecocup/cupProject/index.less +41 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/const.js +93 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/index.js +32 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
- package/lib/components/ecocup/customerList/index.d.ts +7 -0
- package/lib/components/ecocup/customerList/index.js +138 -0
- package/lib/components/ecocup/customerList/index.less +15 -0
- package/lib/components/ecocup/hooks.d.ts +57 -0
- package/lib/components/ecocup/hooks.js +169 -0
- package/lib/components/ecocup/locales.d.ts +653 -0
- package/lib/components/ecocup/locales.js +706 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/types.js +57 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/download.js +47 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/index.js +42 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/ecocup/utils/scanListener.js +90 -0
- package/lib/components/eftpos/const.d.ts +1 -3
- package/lib/components/eftpos/const.js +0 -2
- package/lib/components/eftpos/device.d.ts +1 -3
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/hooks.d.ts +1 -13
- package/lib/components/eftpos/hooks.js +0 -30
- package/lib/components/eftpos/index.js +8 -101
- package/lib/components/eftpos/index.less +1 -26
- package/lib/components/eftpos/locales.d.ts +64 -27
- package/lib/components/eftpos/locales.js +78 -89
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +2 -9
- package/lib/components/eftposPay/const.js +0 -3
- package/lib/components/eftposPay/device.js +108 -23
- package/lib/components/eftposPay/hooks.d.ts +1 -2
- package/lib/components/eftposPay/hooks.js +0 -16
- package/lib/components/eftposPay/linkly/index.js +0 -1
- package/lib/components/eftposPay/locales.d.ts +242 -0
- package/lib/components/eftposPay/locales.js +250 -0
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -6
- package/lib/components/eftposPay/pay.js +2 -4
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.js +22 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/locales.d.ts +162 -0
- package/lib/components/eventBooking/locales.js +162 -0
- package/lib/components/kioskSkuDetail/index.js +27 -3
- package/lib/components/kioskSkuDetail/locales.d.ts +21 -0
- package/lib/components/kioskSkuDetail/locales.js +24 -3
- package/lib/components/login/locales.d.ts +14 -0
- package/lib/components/login/locales.js +14 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +19 -11
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +22 -23
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +3 -4
- package/lib/components/pay/toC/locales.d.ts +204 -0
- package/lib/components/pay/toC/locales.js +204 -0
- package/lib/components/pay/toC/serve.d.ts +2 -0
- package/lib/components/pinModal/locales.d.ts +16 -0
- package/lib/components/pinModal/locales.js +16 -0
- package/lib/components/pinVerifyModal/locales.d.ts +14 -0
- package/lib/components/pinVerifyModal/locales.js +14 -0
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +52 -0
- package/lib/components/pisellSelectCustomerModal/locales.js +52 -0
- package/lib/components/productExtension/locales.d.ts +30 -0
- package/lib/components/productExtension/locales.js +30 -0
- package/lib/components/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/components/productSelect/locales.d.ts +20 -0
- package/lib/components/productSelect/locales.js +23 -3
- package/lib/components/ruleSetting/locales.d.ts +30 -0
- package/lib/components/ruleSetting/locales.js +30 -0
- package/lib/components/schedules/locales.d.ts +56 -0
- package/lib/components/schedules/locales.js +56 -0
- package/lib/components/shoppingCart/locales.d.ts +20 -0
- package/lib/components/shoppingCart/locales.js +20 -0
- package/lib/components/stepController/locales.d.ts +16 -0
- package/lib/components/stepController/locales.js +16 -0
- package/lib/components/subTotal/locales.d.ts +26 -0
- package/lib/components/subTotal/locales.js +26 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +228 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +195 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +294 -225
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +166 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.js +210 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
- package/lib/components/systemSettings/registry/index.js +20 -16
- package/lib/components/systemSettings/registry/index.less +6 -7
- package/lib/components/systemSettings/registry/locales.d.ts +253 -0
- package/lib/components/systemSettings/registry/locales.js +262 -3
- package/lib/components/systemSettings/registry/services.d.ts +20 -0
- package/lib/components/systemSettings/registry/types.d.ts +15 -2
- package/lib/components/taxSelect/locales.d.ts +14 -0
- package/lib/components/taxSelect/locales.js +14 -0
- package/lib/components/ticketBooking/locales.d.ts +130 -0
- package/lib/components/ticketBooking/locales.js +136 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatTime.js +8 -2
- package/lib/components/wallet/utils.d.ts +1 -1
- package/lib/components/walletList/index.js +10 -0
- package/lib/components/walletList/locales.d.ts +16 -0
- package/lib/components/walletList/locales.js +16 -0
- package/lib/components/walletList/types/index.d.ts +2 -0
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +10 -2
- package/lib/hooks/useLocale.js +7 -2
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useThemeTokens.js +40 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +16 -3
- package/lib/index.js +39 -3
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/index.js +457 -0
- package/lib/plus/clientCard/index.less +515 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.d.ts +28 -0
- package/lib/plus/clientCard/locales.js +51 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/Add/index.js +244 -0
- package/lib/plus/clinetSearch/Add/index.less +30 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/index.js +237 -0
- package/lib/plus/clinetSearch/index.less +95 -0
- package/lib/plus/clinetSearch/locales.d.ts +178 -0
- package/lib/plus/clinetSearch/locales.js +201 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/{components/eftposPay/aggregatePayment/index.js → plus/clinetSearch/serve.js} +11 -10
- package/lib/plus/clinetSearch/types.d.ts +70 -0
- package/lib/plus/clinetSearch/types.js +17 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +23 -23
- package/lib/plus/contactInfo/locales.d.ts +8 -0
- package/lib/plus/contactInfo/locales.js +8 -0
- package/lib/plus/contactInfoModal/locales.d.ts +42 -0
- package/lib/plus/contactInfoModal/locales.js +42 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +567 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +6 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +7 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +7 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +155 -0
- package/lib/plus/orderList/config.js +764 -0
- package/lib/plus/orderList/index.d.ts +10 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/orderList/locales.js +737 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +5 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.js +339 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.less +16 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +14 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.js +455 -0
- package/lib/plus/pisellSalesGrid/hooks/useActions.d.ts +19 -0
- package/lib/plus/pisellSalesGrid/hooks/useActions.js +545 -0
- package/lib/plus/pisellSalesGrid/index.d.ts +4 -0
- package/lib/plus/pisellSalesGrid/index.js +42 -0
- package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/lib/plus/pisellSalesGrid/locales.js +29 -0
- package/lib/plus/pisellSalesGrid/serve.d.ts +19 -0
- package/lib/plus/pisellSalesGrid/serve.js +142 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
- package/lib/plus/pisellSalesGrid/types.js +17 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +250 -0
- package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +19 -0
- package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.js +193 -0
- package/lib/plus/pisellSalesManagement/components/ResourceSelector.d.ts +9 -0
- package/lib/plus/pisellSalesManagement/components/ResourceSelector.js +106 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +186 -0
- package/lib/plus/pisellSalesManagement/config/booking.js +500 -0
- package/lib/plus/pisellSalesManagement/config/index.d.ts +2 -0
- package/lib/plus/pisellSalesManagement/config/index.js +43 -0
- package/lib/plus/pisellSalesManagement/config/order.d.ts +172 -0
- package/lib/plus/pisellSalesManagement/config/order.js +492 -0
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.js +113 -0
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +2 -0
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +699 -0
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +2 -0
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.js +700 -0
- package/lib/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +5 -0
- package/lib/plus/pisellSalesManagement/hooks/usePerspectives.js +42 -0
- package/lib/plus/pisellSalesManagement/index.d.ts +10 -0
- package/lib/plus/pisellSalesManagement/index.js +113 -0
- package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/lib/plus/pisellSalesManagement/locales.js +326 -0
- package/lib/plus/pisellSalesManagement/serve.d.ts +26 -0
- package/lib/plus/pisellSalesManagement/serve.js +120 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/plus/productSelect/locales.d.ts +20 -0
- package/lib/plus/productSelect/locales.js +23 -3
- package/lib/plus/saasAttendance/index.d.ts +6 -0
- package/lib/plus/saasAttendance/index.js +39 -0
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/locales.js +615 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.js +152 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.js +88 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.js +369 -0
- package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/PermissonTab.js +128 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +107 -0
- package/lib/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/lib/plus/saasAttendance/settings/components/MapField.js +670 -0
- package/lib/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/lib/plus/saasAttendance/settings/components/index.js +42 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.js +247 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +150 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.js +447 -0
- package/lib/plus/saasAttendance/settings/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/index.js +295 -0
- package/lib/plus/saasAttendance/settings/index.less +510 -0
- package/lib/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/lib/plus/saasAttendance/settings/serve.js +54 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasAttendance/settings/types.js +17 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +8 -0
- package/lib/plus/saasCreateOrganization/locales.js +8 -0
- package/lib/plus/saasLogin/locales.d.ts +32 -0
- package/lib/plus/saasLogin/locales.js +32 -0
- package/lib/plus/saasRegister/locales.d.ts +76 -0
- package/lib/plus/saasRegister/locales.js +76 -0
- package/lib/plus/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/lib/plus/saasRole/components/PermissionManager/index.js +159 -0
- package/lib/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/lib/plus/saasRole/index.d.ts +14 -0
- package/lib/plus/saasRole/index.js +780 -0
- package/lib/plus/saasRole/index.less +196 -0
- package/lib/plus/saasRole/locales.d.ts +319 -0
- package/lib/plus/saasRole/locales.js +345 -0
- package/lib/plus/saasRole/serve.d.ts +72 -0
- package/lib/plus/saasRole/serve.js +100 -0
- package/lib/plus/saasRole/types.d.ts +177 -0
- package/lib/plus/saasRole/types.js +17 -0
- 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 +31 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +393 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.js +672 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/lib/plus/saasTeamMembers/index.d.ts +5 -0
- package/lib/plus/saasTeamMembers/index.js +448 -0
- package/lib/plus/saasTeamMembers/index.less +87 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/saasTeamMembers/locales.js +617 -0
- package/lib/plus/saasTeamMembers/serve.d.ts +95 -0
- package/lib/plus/saasTeamMembers/serve.js +132 -0
- package/lib/plus/saasTeamMembers/type.d.ts +158 -0
- package/lib/plus/saasTeamMembers/type.js +17 -0
- package/lib/plus/selectHolder/locales.d.ts +14 -0
- package/lib/plus/selectHolder/locales.js +14 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +11 -10
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/locales.d.ts +20 -0
- package/lib/plus/skuOptionsSelection/locales.js +20 -0
- package/lib/plus/skuOptionsSelection/store/store.js +2 -1
- package/lib/plus/skuOptionsSelection/types.d.ts +14 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +15 -9
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +9 -6
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +7 -3
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -7
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
- package/lib/plus/walletEditor/locales.d.ts +88 -0
- package/lib/plus/walletEditor/locales.js +100 -0
- package/lib/plus/walletEditor/types.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +42 -5
- package/lib/plus/walletPassGallery/components/passList/index.js +12 -5
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
- package/lib/plus/walletPassGallery/index.d.ts +4 -0
- package/lib/plus/walletPassGallery/index.js +116 -45
- package/lib/plus/walletPassGallery/locales.d.ts +188 -0
- package/lib/plus/walletPassGallery/locales.js +192 -0
- package/lib/plus/walletPassGallery/serve.d.ts +3 -1
- 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 +1 -56
- package/lib/pro/Cards/components/SKUCard/index.js +59 -15
- package/lib/pro/Cards/components/SKUCard/index.less +23 -2
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/locales.js +35 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Cards/components/SKUCard/types.js +17 -0
- package/lib/pro/Login2.0/Login2.js +8 -8
- package/lib/pro/Login2.0/locales.d.ts +365 -0
- package/lib/pro/Login2.0/locales.js +365 -0
- package/lib/pro/Login2.0/shared/types.d.ts +2 -0
- package/lib/pro/NumericStepper/index.d.ts +33 -3
- package/lib/pro/NumericStepper/index.js +184 -88
- package/lib/pro/NumericStepper/index.less +287 -143
- package/lib/pro/Selector/BatchSelectorDemo.js +13 -19
- package/lib/pro/Selector/Selector.js +34 -17
- package/lib/pro/Selector/SelectorGroup.d.ts +1 -1
- package/lib/pro/Selector/SelectorGroup.js +7 -1
- package/lib/pro/Selector/components/Card/index.js +19 -8
- package/lib/pro/Selector/components/Card/index.less +30 -14
- package/lib/pro/Selector/components/Indicator/index.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.js +2 -2
- package/lib/pro/Selector/components/Indicator/index.less +16 -13
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +5 -3
- package/lib/pro/Selector/components/LayoutContainer/index.js +130 -2
- package/lib/pro/Selector/components/LayoutContainer/index.less +19 -0
- package/lib/pro/Selector/components/Media/index.d.ts +1 -1
- package/lib/pro/Selector/components/Media/index.js +7 -4
- 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 +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +28 -6
- package/lib/pro/Selector/locales.d.ts +22 -0
- package/lib/pro/Selector/locales.js +50 -0
- package/lib/pro/Selector/selector.less +0 -64
- package/lib/pro/Selector/selectorGroup.less +9 -1
- package/lib/pro/Selector/types.d.ts +50 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +64 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/lib/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/lib/pro/comprehensiveSearch/components/index.js +42 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +154 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +46 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +7 -0
- package/lib/pro/comprehensiveSearch/index.js +190 -0
- package/lib/pro/comprehensiveSearch/index.less +196 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +23 -0
- package/lib/pro/comprehensiveSearch/locales.js +46 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -0
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/locales.js +61 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/numberKeyboard/locales.d.ts +6 -0
- package/lib/pro/numberKeyboard/locales.js +6 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +13 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +219 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +41 -0
- package/lowcode/client-card/fragments/cardStyle.ts +63 -0
- package/lowcode/client-card/fragments/nameStyle.ts +34 -0
- package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
- package/lowcode/client-card/fragments/tagConfig.ts +88 -0
- package/lowcode/client-card/meta.ts +343 -0
- package/lowcode/client-search/meta.ts +316 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/lowcode/ecocup-cup-list/meta.ts +38 -0
- package/lowcode/ecocup-cup-project/meta.ts +35 -0
- package/lowcode/ecocup-customer-list/meta.ts +38 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/lowcode/pisell-sales-management/meta.ts +88 -0
- package/lowcode/saas-attendance-settings/meta.ts +56 -0
- package/lowcode/saas-role/meta.ts +35 -0
- package/lowcode/saas-team-members/meta.ts +35 -0
- package/lowcode/selector/meta.ts +15 -2
- package/lowcode/selector.group/meta.ts +15 -2
- package/lowcode/sku-options-selection/meta.ts +106 -2
- package/lowcode/wallet-pass-gallery/meta.ts +66 -1
- package/package.json +6 -6
- package/es/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/es/components/eftpos/PairModal/hooks.js +0 -67
- package/es/components/eftpos/PairModal/index.d.ts +0 -11
- package/es/components/eftpos/PairModal/index.less +0 -70
- package/es/components/eftpos/assets/mx51SCI.svg +0 -15
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -125
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/index.js +0 -3
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/es/components/eftposPay/aggregatePayment/mock.js +0 -567
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/service.js +0 -70
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -101
- package/es/components/eftposPay/aggregatePayment/types.js +0 -61
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -385
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1140
- package/es/components/eftposPay/mx51/Action.d.ts +0 -7
- package/es/components/eftposPay/mx51/Action.js +0 -139
- package/es/components/eftposPay/mx51/Result.d.ts +0 -5
- package/es/components/eftposPay/mx51/Result.js +0 -46
- package/es/components/eftposPay/mx51/const.d.ts +0 -5
- package/es/components/eftposPay/mx51/const.js +0 -69
- package/es/components/eftposPay/mx51/index.d.ts +0 -6
- package/es/components/eftposPay/mx51/index.js +0 -401
- package/es/components/eftposPay/mx51/types.d.ts +0 -138
- package/es/components/eftposPay/mx51/types.js +0 -30
- package/es/components/eftposPay/mx51/utils.d.ts +0 -10
- package/es/components/eftposPay/mx51/utils.js +0 -121
- package/lib/components/eftpos/PairModal/hooks.d.ts +0 -27
- package/lib/components/eftpos/PairModal/hooks.js +0 -70
- package/lib/components/eftpos/PairModal/index.d.ts +0 -11
- package/lib/components/eftpos/PairModal/index.js +0 -197
- package/lib/components/eftpos/PairModal/index.less +0 -70
- package/lib/components/eftpos/assets/mx51SCI.svg +0 -15
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -152
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +0 -495
- package/lib/components/eftposPay/aggregatePayment/mock.js +0 -679
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -101
- package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -302
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -755
- package/lib/components/eftposPay/mx51/Action.d.ts +0 -7
- package/lib/components/eftposPay/mx51/Action.js +0 -152
- package/lib/components/eftposPay/mx51/Result.d.ts +0 -5
- package/lib/components/eftposPay/mx51/const.d.ts +0 -5
- package/lib/components/eftposPay/mx51/const.js +0 -85
- package/lib/components/eftposPay/mx51/index.d.ts +0 -6
- package/lib/components/eftposPay/mx51/index.js +0 -355
- package/lib/components/eftposPay/mx51/types.d.ts +0 -138
- package/lib/components/eftposPay/mx51/utils.d.ts +0 -10
- package/lib/components/eftposPay/mx51/utils.js +0 -115
|
@@ -0,0 +1,670 @@
|
|
|
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/plus/saasAttendance/settings/components/MapField.tsx
|
|
30
|
+
var MapField_exports = {};
|
|
31
|
+
__export(MapField_exports, {
|
|
32
|
+
default: () => MapField_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(MapField_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
40
|
+
var DEFAULT_CENTER = { lat: -37.8136, lng: 144.9631 };
|
|
41
|
+
var DEFAULT_ZOOM = 14;
|
|
42
|
+
var CIRCLE_STROKE_COLOR = "#5d3f9f";
|
|
43
|
+
var CIRCLE_FILL_COLOR = "#5d3f9f";
|
|
44
|
+
var COORDINATE_NUMBER_PATTERN = /^-?\d+(\.\d+)?$/;
|
|
45
|
+
var getCurrentPosition = () => {
|
|
46
|
+
return new Promise((resolve) => {
|
|
47
|
+
if (!navigator.geolocation) {
|
|
48
|
+
resolve(null);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
navigator.geolocation.getCurrentPosition(
|
|
52
|
+
(position) => {
|
|
53
|
+
resolve({
|
|
54
|
+
lat: position.coords.latitude,
|
|
55
|
+
lng: position.coords.longitude
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
() => {
|
|
59
|
+
resolve(null);
|
|
60
|
+
},
|
|
61
|
+
{ enableHighAccuracy: true, timeout: 1e4, maximumAge: 0 }
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
var toMultiLangName = (input) => {
|
|
66
|
+
if (!input) return { original: "" };
|
|
67
|
+
if (typeof input === "string") return { original: input };
|
|
68
|
+
if (typeof input === "object") return input;
|
|
69
|
+
return { original: String(input) };
|
|
70
|
+
};
|
|
71
|
+
var getLocationNameText = (name) => {
|
|
72
|
+
const n = toMultiLangName(name);
|
|
73
|
+
return n.original || n["zh-CN"] || n["zh-HK"] || n.en || n.ja || n.pt || "";
|
|
74
|
+
};
|
|
75
|
+
var createLocationId = () => {
|
|
76
|
+
const anyCrypto = typeof crypto !== "undefined" ? crypto : void 0;
|
|
77
|
+
if (anyCrypto == null ? void 0 : anyCrypto.randomUUID) return anyCrypto.randomUUID();
|
|
78
|
+
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
79
|
+
};
|
|
80
|
+
var normalizeLocations = (input) => {
|
|
81
|
+
if (!Array.isArray(input)) return [];
|
|
82
|
+
return input.map((item) => {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
if ((item == null ? void 0 : item.address) && ((_a = item.address) == null ? void 0 : _a.lat) != null && ((_b = item.address) == null ? void 0 : _b.lng) != null) {
|
|
85
|
+
const lat2 = typeof item.address.lat === "number" ? item.address.lat : parseFloat(item.address.lat) || 0;
|
|
86
|
+
const lng2 = typeof item.address.lng === "number" ? item.address.lng : parseFloat(item.address.lng) || 0;
|
|
87
|
+
return {
|
|
88
|
+
id: String((item == null ? void 0 : item.id) ?? createLocationId()),
|
|
89
|
+
name: toMultiLangName(item.name),
|
|
90
|
+
radius: item == null ? void 0 : item.radius,
|
|
91
|
+
address: { lat: lat2, lng: lng2 }
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
const lat = typeof (item == null ? void 0 : item.lat) === "number" ? item.lat : parseFloat(item == null ? void 0 : item.lat) || 0;
|
|
95
|
+
const lng = typeof (item == null ? void 0 : item.lng) === "number" ? item.lng : parseFloat(item == null ? void 0 : item.lng) || 0;
|
|
96
|
+
return {
|
|
97
|
+
id: String((item == null ? void 0 : item.id) ?? createLocationId()),
|
|
98
|
+
name: toMultiLangName(item == null ? void 0 : item.name),
|
|
99
|
+
radius: item == null ? void 0 : item.radius,
|
|
100
|
+
address: { lat, lng }
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
var LocationFormMap = (0, import_react.forwardRef)(
|
|
105
|
+
(props, ref) => {
|
|
106
|
+
const { value, onChange, defaultRadius = 100 } = props;
|
|
107
|
+
const [form] = import_antd.Form.useForm();
|
|
108
|
+
const modalMapRef = (0, import_react.useRef)(null);
|
|
109
|
+
const [isModalMapReady, setIsModalMapReady] = (0, import_react.useState)(false);
|
|
110
|
+
const context = (0, import_useEngineContext.default)();
|
|
111
|
+
const GoogleMapComponent = (0, import_react.useMemo)(() => {
|
|
112
|
+
var _a, _b, _c;
|
|
113
|
+
const app = (_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);
|
|
114
|
+
if (!app) return null;
|
|
115
|
+
return app.getPlugin("google-map") || null;
|
|
116
|
+
}, [context]);
|
|
117
|
+
const lat = import_antd.Form.useWatch("latitude", form);
|
|
118
|
+
const lng = import_antd.Form.useWatch("longitude", form);
|
|
119
|
+
const validRangeMeters = import_antd.Form.useWatch("validRangeMeters", form) ?? defaultRadius;
|
|
120
|
+
const [debouncedValidRangeMeters, setDebouncedValidRangeMeters] = (0, import_react.useState)(validRangeMeters);
|
|
121
|
+
(0, import_react.useEffect)(() => {
|
|
122
|
+
setDebouncedValidRangeMeters(validRangeMeters);
|
|
123
|
+
}, []);
|
|
124
|
+
(0, import_react.useEffect)(() => {
|
|
125
|
+
const timer = setTimeout(() => {
|
|
126
|
+
setDebouncedValidRangeMeters(validRangeMeters);
|
|
127
|
+
}, 200);
|
|
128
|
+
return () => clearTimeout(timer);
|
|
129
|
+
}, [validRangeMeters]);
|
|
130
|
+
(0, import_react.useEffect)(() => {
|
|
131
|
+
if (value) {
|
|
132
|
+
form.setFieldsValue(value);
|
|
133
|
+
if (value.latitude && value.longitude && modalMapRef.current) {
|
|
134
|
+
const center = {
|
|
135
|
+
lat: parseFloat(value.latitude),
|
|
136
|
+
lng: parseFloat(value.longitude)
|
|
137
|
+
};
|
|
138
|
+
modalMapRef.current.setCamera({
|
|
139
|
+
coordinate: center,
|
|
140
|
+
zoom: DEFAULT_ZOOM,
|
|
141
|
+
animate: true
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
form.resetFields();
|
|
146
|
+
form.setFieldsValue({ validRangeMeters: defaultRadius });
|
|
147
|
+
}
|
|
148
|
+
}, [value, form, defaultRadius]);
|
|
149
|
+
(0, import_react.useEffect)(() => {
|
|
150
|
+
if (!isModalMapReady || !modalMapRef.current) return;
|
|
151
|
+
const latNum = parseFloat(lat);
|
|
152
|
+
const lngNum = parseFloat(lng);
|
|
153
|
+
if (isNaN(latNum) || isNaN(lngNum)) return;
|
|
154
|
+
modalMapRef.current.setCamera({
|
|
155
|
+
coordinate: { lat: latNum, lng: lngNum },
|
|
156
|
+
zoom: DEFAULT_ZOOM,
|
|
157
|
+
animate: true
|
|
158
|
+
});
|
|
159
|
+
}, [isModalMapReady, lat, lng]);
|
|
160
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
161
|
+
validate: () => form.validateFields()
|
|
162
|
+
}));
|
|
163
|
+
const handleMapClick = (0, import_react.useCallback)(
|
|
164
|
+
(coordinate) => {
|
|
165
|
+
const newValues = {
|
|
166
|
+
latitude: coordinate.lat.toFixed(6),
|
|
167
|
+
longitude: coordinate.lng.toFixed(6)
|
|
168
|
+
};
|
|
169
|
+
form.setFieldsValue(newValues);
|
|
170
|
+
const currentValues = form.getFieldsValue();
|
|
171
|
+
onChange == null ? void 0 : onChange({ ...currentValues, ...newValues });
|
|
172
|
+
},
|
|
173
|
+
[form, onChange]
|
|
174
|
+
);
|
|
175
|
+
const handleValuesChange = (changedValues, allValues) => {
|
|
176
|
+
onChange == null ? void 0 : onChange(allValues);
|
|
177
|
+
};
|
|
178
|
+
const mapVisualization = (0, import_react.useMemo)(() => {
|
|
179
|
+
const latNum = parseFloat(lat);
|
|
180
|
+
const lngNum = parseFloat(lng);
|
|
181
|
+
if (isNaN(latNum) || isNaN(lngNum)) {
|
|
182
|
+
return { markers: [], circles: [], center: DEFAULT_CENTER };
|
|
183
|
+
}
|
|
184
|
+
const coordinate = { lat: latNum, lng: lngNum };
|
|
185
|
+
const markers = [
|
|
186
|
+
{
|
|
187
|
+
id: "current-location",
|
|
188
|
+
coordinate,
|
|
189
|
+
draggable: false
|
|
190
|
+
}
|
|
191
|
+
];
|
|
192
|
+
const circles = [
|
|
193
|
+
{
|
|
194
|
+
id: "current-range",
|
|
195
|
+
center: coordinate,
|
|
196
|
+
radius: debouncedValidRangeMeters,
|
|
197
|
+
strokeColor: CIRCLE_STROKE_COLOR,
|
|
198
|
+
strokeOpacity: 0.8,
|
|
199
|
+
strokeWeight: 2,
|
|
200
|
+
fillColor: CIRCLE_FILL_COLOR,
|
|
201
|
+
fillOpacity: 0.2
|
|
202
|
+
}
|
|
203
|
+
];
|
|
204
|
+
return { markers, circles, center: coordinate };
|
|
205
|
+
}, [lat, lng, debouncedValidRangeMeters]);
|
|
206
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
207
|
+
import_antd.Form,
|
|
208
|
+
{
|
|
209
|
+
form,
|
|
210
|
+
layout: "vertical",
|
|
211
|
+
className: "saas-attendance-group-settings__modal-form",
|
|
212
|
+
onValuesChange: handleValuesChange,
|
|
213
|
+
initialValues: { validRangeMeters: defaultRadius }
|
|
214
|
+
},
|
|
215
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
216
|
+
import_antd.Form.Item,
|
|
217
|
+
{
|
|
218
|
+
label: import_utils.locales.getText(
|
|
219
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.label"
|
|
220
|
+
),
|
|
221
|
+
name: "name",
|
|
222
|
+
required: true,
|
|
223
|
+
rules: [
|
|
224
|
+
{
|
|
225
|
+
validator: async (_rule, value2) => {
|
|
226
|
+
if (!value2) {
|
|
227
|
+
throw new Error(
|
|
228
|
+
import_utils.locales.getText(
|
|
229
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.validation"
|
|
230
|
+
)
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
if (typeof value2 === "string") {
|
|
234
|
+
if (value2.trim()) return Promise.resolve();
|
|
235
|
+
} else if (typeof value2 === "object") {
|
|
236
|
+
const texts = Object.values(value2).filter(
|
|
237
|
+
(item) => typeof item === "string" && item.trim()
|
|
238
|
+
);
|
|
239
|
+
if (texts.length > 0) return Promise.resolve();
|
|
240
|
+
}
|
|
241
|
+
throw new Error(
|
|
242
|
+
import_utils.locales.getText(
|
|
243
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.validation"
|
|
244
|
+
)
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
251
|
+
import_materials.BaseTranslation,
|
|
252
|
+
{
|
|
253
|
+
placeholder: import_utils.locales.getText(
|
|
254
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.placeholder"
|
|
255
|
+
)
|
|
256
|
+
}
|
|
257
|
+
)
|
|
258
|
+
),
|
|
259
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__modal-grid" }, /* @__PURE__ */ import_react.default.createElement(
|
|
260
|
+
import_antd.Form.Item,
|
|
261
|
+
{
|
|
262
|
+
label: import_utils.locales.getText(
|
|
263
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.latitude.label"
|
|
264
|
+
),
|
|
265
|
+
name: "latitude",
|
|
266
|
+
required: true,
|
|
267
|
+
rules: [
|
|
268
|
+
{ required: true },
|
|
269
|
+
{
|
|
270
|
+
validator: async (_rule, value2) => {
|
|
271
|
+
const text = String(value2 ?? "").trim();
|
|
272
|
+
if (!text) return Promise.resolve();
|
|
273
|
+
if (!COORDINATE_NUMBER_PATTERN.test(text)) {
|
|
274
|
+
throw new Error(
|
|
275
|
+
import_utils.locales.getText(
|
|
276
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.latitude.validation"
|
|
277
|
+
)
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
const latValue = parseFloat(text);
|
|
281
|
+
if (latValue < -90 || latValue > 90) {
|
|
282
|
+
throw new Error(
|
|
283
|
+
import_utils.locales.getText(
|
|
284
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.latitude.validation"
|
|
285
|
+
)
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
return Promise.resolve();
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
294
|
+
import_antd.Input,
|
|
295
|
+
{
|
|
296
|
+
placeholder: import_utils.locales.getText(
|
|
297
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.latitude.placeholder"
|
|
298
|
+
)
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
302
|
+
import_antd.Form.Item,
|
|
303
|
+
{
|
|
304
|
+
label: import_utils.locales.getText(
|
|
305
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.longitude.label"
|
|
306
|
+
),
|
|
307
|
+
name: "longitude",
|
|
308
|
+
required: true,
|
|
309
|
+
rules: [
|
|
310
|
+
{ required: true },
|
|
311
|
+
{
|
|
312
|
+
validator: async (_rule, value2) => {
|
|
313
|
+
const text = String(value2 ?? "").trim();
|
|
314
|
+
if (!text) return Promise.resolve();
|
|
315
|
+
if (!COORDINATE_NUMBER_PATTERN.test(text)) {
|
|
316
|
+
throw new Error(
|
|
317
|
+
import_utils.locales.getText(
|
|
318
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.longitude.validation"
|
|
319
|
+
)
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
const lngValue = parseFloat(text);
|
|
323
|
+
if (lngValue < -180 || lngValue > 180) {
|
|
324
|
+
throw new Error(
|
|
325
|
+
import_utils.locales.getText(
|
|
326
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.longitude.validation"
|
|
327
|
+
)
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
return Promise.resolve();
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
336
|
+
import_antd.Input,
|
|
337
|
+
{
|
|
338
|
+
placeholder: import_utils.locales.getText(
|
|
339
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.longitude.placeholder"
|
|
340
|
+
)
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
)),
|
|
344
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
345
|
+
import_antd.Form.Item,
|
|
346
|
+
{
|
|
347
|
+
label: import_utils.locales.getText(
|
|
348
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.valid-range.label"
|
|
349
|
+
),
|
|
350
|
+
required: true
|
|
351
|
+
},
|
|
352
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__modal-slider-row" }, /* @__PURE__ */ import_react.default.createElement(
|
|
353
|
+
import_antd.Form.Item,
|
|
354
|
+
{
|
|
355
|
+
name: "validRangeMeters",
|
|
356
|
+
noStyle: true,
|
|
357
|
+
rules: [{ required: true }]
|
|
358
|
+
},
|
|
359
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Slider, { min: 0, max: 1e3 })
|
|
360
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__slider-value" }, import_utils.locales.getText(
|
|
361
|
+
"pisell2.attendance.group-settings.clock-in-method.meters"
|
|
362
|
+
)(validRangeMeters)))
|
|
363
|
+
),
|
|
364
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
365
|
+
import_antd.Alert,
|
|
366
|
+
{
|
|
367
|
+
message: import_utils.locales.getText(
|
|
368
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.tip.google-maps"
|
|
369
|
+
),
|
|
370
|
+
type: "info",
|
|
371
|
+
showIcon: true
|
|
372
|
+
}
|
|
373
|
+
),
|
|
374
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
375
|
+
"div",
|
|
376
|
+
{
|
|
377
|
+
className: "saas-attendance-group-settings__map-placeholder saas-attendance-map-field__modal-map",
|
|
378
|
+
style: { marginTop: "10px" }
|
|
379
|
+
},
|
|
380
|
+
GoogleMapComponent && /* @__PURE__ */ import_react.default.createElement(
|
|
381
|
+
GoogleMapComponent,
|
|
382
|
+
{
|
|
383
|
+
ref: modalMapRef,
|
|
384
|
+
config: {
|
|
385
|
+
center: mapVisualization.center,
|
|
386
|
+
zoom: DEFAULT_ZOOM
|
|
387
|
+
},
|
|
388
|
+
markers: mapVisualization.markers,
|
|
389
|
+
circles: mapVisualization.circles,
|
|
390
|
+
onReady: () => setIsModalMapReady(true),
|
|
391
|
+
onMapClick: handleMapClick,
|
|
392
|
+
onError: (err) => console.error("Map Error:", err)
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
)
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
);
|
|
399
|
+
var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
400
|
+
const { value = [], onChange, defaultRadius = 100, className } = props;
|
|
401
|
+
const locations = (0, import_react.useMemo)(() => normalizeLocations(value), [value]);
|
|
402
|
+
const [addLocationOpen, setAddLocationOpen] = (0, import_react.useState)(false);
|
|
403
|
+
const [editingLocationValue, setEditingLocationValue] = (0, import_react.useState)(null);
|
|
404
|
+
const [editingLocationId, setEditingLocationId] = (0, import_react.useState)(
|
|
405
|
+
null
|
|
406
|
+
);
|
|
407
|
+
const locationFormMapRef = (0, import_react.useRef)(null);
|
|
408
|
+
const mapRef = (0, import_react.useRef)(null);
|
|
409
|
+
const [isMapReady, setIsMapReady] = (0, import_react.useState)(false);
|
|
410
|
+
const [activeLocationId, setActiveLocationId] = (0, import_react.useState)(null);
|
|
411
|
+
const context = (0, import_useEngineContext.default)();
|
|
412
|
+
(0, import_react.useEffect)(() => {
|
|
413
|
+
if (!onChange || !Array.isArray(value) || value.length === 0) return;
|
|
414
|
+
const needsNormalize = value.some(
|
|
415
|
+
(item) => !(item == null ? void 0 : item.address) || (item == null ? void 0 : item.lat) != null || (item == null ? void 0 : item.lng) != null || typeof (item == null ? void 0 : item.name) === "string" || (item == null ? void 0 : item.address) && typeof item.address === "object" && Object.keys(item.address).some((k) => k !== "lat" && k !== "lng")
|
|
416
|
+
);
|
|
417
|
+
if (!needsNormalize) return;
|
|
418
|
+
onChange(normalizeLocations(value));
|
|
419
|
+
}, [onChange, value]);
|
|
420
|
+
const GoogleMapComponent = (0, import_react.useMemo)(() => {
|
|
421
|
+
var _a, _b, _c;
|
|
422
|
+
const app = (_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);
|
|
423
|
+
if (!app) return null;
|
|
424
|
+
return app.getPlugin("google-map") || null;
|
|
425
|
+
}, [context]);
|
|
426
|
+
(0, import_react.useEffect)(() => {
|
|
427
|
+
if (locations.length === 0) {
|
|
428
|
+
setActiveLocationId(null);
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
if (activeLocationId && locations.some((loc) => loc.id === activeLocationId)) {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
setActiveLocationId(locations[0].id);
|
|
435
|
+
}, [locations, activeLocationId]);
|
|
436
|
+
const mapCenter = (0, import_react.useMemo)(() => {
|
|
437
|
+
if (locations.length === 0) return DEFAULT_CENTER;
|
|
438
|
+
const activeLocation = activeLocationId ? locations.find((loc) => loc.id === activeLocationId) : null;
|
|
439
|
+
if (activeLocation) {
|
|
440
|
+
return {
|
|
441
|
+
lat: activeLocation.address.lat,
|
|
442
|
+
lng: activeLocation.address.lng
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
return { lat: locations[0].address.lat, lng: locations[0].address.lng };
|
|
446
|
+
}, [locations, activeLocationId]);
|
|
447
|
+
const markers = (0, import_react.useMemo)(() => {
|
|
448
|
+
return locations.map((loc) => ({
|
|
449
|
+
id: loc.id,
|
|
450
|
+
coordinate: { lat: loc.address.lat, lng: loc.address.lng },
|
|
451
|
+
title: getLocationNameText(loc.name),
|
|
452
|
+
draggable: false
|
|
453
|
+
}));
|
|
454
|
+
}, [locations]);
|
|
455
|
+
const circles = (0, import_react.useMemo)(() => {
|
|
456
|
+
return locations.map((loc) => ({
|
|
457
|
+
id: `circle-${loc.id}`,
|
|
458
|
+
center: { lat: loc.address.lat, lng: loc.address.lng },
|
|
459
|
+
radius: loc.radius || defaultRadius,
|
|
460
|
+
strokeColor: CIRCLE_STROKE_COLOR,
|
|
461
|
+
strokeOpacity: 0.8,
|
|
462
|
+
strokeWeight: 2,
|
|
463
|
+
fillColor: CIRCLE_FILL_COLOR,
|
|
464
|
+
fillOpacity: 0.2
|
|
465
|
+
}));
|
|
466
|
+
}, [locations, defaultRadius]);
|
|
467
|
+
(0, import_react.useImperativeHandle)(
|
|
468
|
+
ref,
|
|
469
|
+
() => ({
|
|
470
|
+
onAddLocation: async () => {
|
|
471
|
+
const baseFormValue = {
|
|
472
|
+
name: { original: "", en: "", "zh-CN": "", "zh-HK": "", "ja": "", "pt": "" },
|
|
473
|
+
latitude: "",
|
|
474
|
+
longitude: "",
|
|
475
|
+
validRangeMeters: defaultRadius
|
|
476
|
+
};
|
|
477
|
+
setAddLocationOpen(true);
|
|
478
|
+
setEditingLocationId(null);
|
|
479
|
+
setEditingLocationValue(baseFormValue);
|
|
480
|
+
const currentPosition = await getCurrentPosition();
|
|
481
|
+
if (currentPosition) {
|
|
482
|
+
setEditingLocationValue({
|
|
483
|
+
...baseFormValue,
|
|
484
|
+
latitude: currentPosition.lat.toFixed(6),
|
|
485
|
+
longitude: currentPosition.lng.toFixed(6)
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}),
|
|
490
|
+
[defaultRadius]
|
|
491
|
+
);
|
|
492
|
+
const handleSubmitLocation = async () => {
|
|
493
|
+
if (!locationFormMapRef.current) return;
|
|
494
|
+
try {
|
|
495
|
+
const values = await locationFormMapRef.current.validate();
|
|
496
|
+
const nextLocation = {
|
|
497
|
+
id: editingLocationId ?? createLocationId(),
|
|
498
|
+
name: toMultiLangName(values.name),
|
|
499
|
+
radius: values.validRangeMeters,
|
|
500
|
+
address: {
|
|
501
|
+
lat: parseFloat(values.latitude) || 0,
|
|
502
|
+
lng: parseFloat(values.longitude) || 0
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
if (editingLocationId) {
|
|
506
|
+
const nextLocations = locations.map(
|
|
507
|
+
(loc) => loc.id === editingLocationId ? nextLocation : loc
|
|
508
|
+
);
|
|
509
|
+
onChange == null ? void 0 : onChange(nextLocations);
|
|
510
|
+
setActiveLocationId(editingLocationId);
|
|
511
|
+
} else {
|
|
512
|
+
const nextLocations = [nextLocation, ...locations];
|
|
513
|
+
onChange == null ? void 0 : onChange(nextLocations);
|
|
514
|
+
setActiveLocationId(nextLocation.id);
|
|
515
|
+
}
|
|
516
|
+
setAddLocationOpen(false);
|
|
517
|
+
setEditingLocationValue(null);
|
|
518
|
+
setEditingLocationId(null);
|
|
519
|
+
} catch (error) {
|
|
520
|
+
console.error("Validation failed:", error);
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
const handleEditLocation = (0, import_react.useCallback)(
|
|
524
|
+
(location) => {
|
|
525
|
+
setAddLocationOpen(true);
|
|
526
|
+
setEditingLocationId(location.id);
|
|
527
|
+
setEditingLocationValue({
|
|
528
|
+
name: toMultiLangName(location.name),
|
|
529
|
+
latitude: String(location.address.lat ?? ""),
|
|
530
|
+
longitude: String(location.address.lng ?? ""),
|
|
531
|
+
validRangeMeters: location.radius ?? defaultRadius
|
|
532
|
+
});
|
|
533
|
+
},
|
|
534
|
+
[defaultRadius]
|
|
535
|
+
);
|
|
536
|
+
const handleRemoveLocation = (locationId) => {
|
|
537
|
+
const nextLocations = locations.filter((loc) => loc.id !== locationId);
|
|
538
|
+
onChange == null ? void 0 : onChange(nextLocations);
|
|
539
|
+
};
|
|
540
|
+
const handleLocationItemClick = (0, import_react.useCallback)(
|
|
541
|
+
(location) => {
|
|
542
|
+
var _a;
|
|
543
|
+
setActiveLocationId(location.id);
|
|
544
|
+
(_a = mapRef.current) == null ? void 0 : _a.setCamera({
|
|
545
|
+
coordinate: { lat: location.address.lat, lng: location.address.lng },
|
|
546
|
+
zoom: DEFAULT_ZOOM,
|
|
547
|
+
animate: true
|
|
548
|
+
});
|
|
549
|
+
},
|
|
550
|
+
[]
|
|
551
|
+
);
|
|
552
|
+
const handleMapReady = (0, import_react.useCallback)(() => {
|
|
553
|
+
setIsMapReady(true);
|
|
554
|
+
}, []);
|
|
555
|
+
const handleMarkerClick = (0, import_react.useCallback)(
|
|
556
|
+
(markerId, marker) => {
|
|
557
|
+
console.log("Marker clicked:", markerId, marker);
|
|
558
|
+
},
|
|
559
|
+
[]
|
|
560
|
+
);
|
|
561
|
+
(0, import_react.useEffect)(() => {
|
|
562
|
+
if (!isMapReady || !mapRef.current || locations.length === 0) return;
|
|
563
|
+
const targetLocation = activeLocationId ? locations.find((loc) => loc.id === activeLocationId) : locations[0];
|
|
564
|
+
if (targetLocation) {
|
|
565
|
+
mapRef.current.setCamera({
|
|
566
|
+
coordinate: {
|
|
567
|
+
lat: targetLocation.address.lat,
|
|
568
|
+
lng: targetLocation.address.lng
|
|
569
|
+
},
|
|
570
|
+
zoom: DEFAULT_ZOOM,
|
|
571
|
+
animate: true
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
}, [isMapReady, activeLocationId, locations]);
|
|
575
|
+
const renderEmptyState = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__locations-empty" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__locations-empty-icon" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-marker-pin-01", size: 48 })), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__locations-empty-title" }, import_utils.locales.getText(
|
|
576
|
+
"pisell2.attendance.group-settings.clock-in-method.approved-locations.empty.title"
|
|
577
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__locations-empty-desc" }, import_utils.locales.getText(
|
|
578
|
+
"pisell2.attendance.group-settings.clock-in-method.approved-locations.empty.desc"
|
|
579
|
+
)));
|
|
580
|
+
const renderLocationsList = () => /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__locations-list" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-map-field__map-container" }, /* @__PURE__ */ import_react.default.createElement(
|
|
581
|
+
GoogleMapComponent,
|
|
582
|
+
{
|
|
583
|
+
ref: mapRef,
|
|
584
|
+
config: {
|
|
585
|
+
center: mapCenter,
|
|
586
|
+
zoom: DEFAULT_ZOOM
|
|
587
|
+
},
|
|
588
|
+
markers,
|
|
589
|
+
circles,
|
|
590
|
+
onReady: handleMapReady,
|
|
591
|
+
onMarkerClick: handleMarkerClick,
|
|
592
|
+
onError: (err) => console.error("Map Error:", err)
|
|
593
|
+
}
|
|
594
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-map-field__locations" }, locations.map((location) => /* @__PURE__ */ import_react.default.createElement(
|
|
595
|
+
"div",
|
|
596
|
+
{
|
|
597
|
+
key: location.id,
|
|
598
|
+
className: `saas-attendance-group-settings__location-item${activeLocationId === location.id ? " saas-attendance-group-settings__location-item--active" : ""}`,
|
|
599
|
+
onClick: () => handleLocationItemClick(location),
|
|
600
|
+
style: { cursor: "pointer" }
|
|
601
|
+
},
|
|
602
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-map-field__location-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__location-name" }, getLocationNameText(location.name)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-map-field__location-actions" }, /* @__PURE__ */ import_react.default.createElement(
|
|
603
|
+
import_antd.Button,
|
|
604
|
+
{
|
|
605
|
+
type: "text",
|
|
606
|
+
size: "small",
|
|
607
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-edit-05", size: 16 }),
|
|
608
|
+
className: "saas-attendance-map-field__edit-btn",
|
|
609
|
+
onClick: (e) => {
|
|
610
|
+
e.stopPropagation();
|
|
611
|
+
handleEditLocation(location);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
615
|
+
import_antd.Button,
|
|
616
|
+
{
|
|
617
|
+
type: "text",
|
|
618
|
+
size: "small",
|
|
619
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-trash-01", size: 16 }),
|
|
620
|
+
className: "saas-attendance-map-field__delete-btn",
|
|
621
|
+
onClick: (e) => {
|
|
622
|
+
e.stopPropagation();
|
|
623
|
+
handleRemoveLocation(location.id);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
))),
|
|
627
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__location-meta" }, import_utils.locales.getText(
|
|
628
|
+
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.valid-range.label"
|
|
629
|
+
), ": ", /* @__PURE__ */ import_react.default.createElement("span", null, location.radius || defaultRadius))
|
|
630
|
+
))));
|
|
631
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
632
|
+
"div",
|
|
633
|
+
{
|
|
634
|
+
className: `saas-attendance-group-settings__locations-box ${className || ""}`
|
|
635
|
+
},
|
|
636
|
+
locations.length === 0 ? renderEmptyState() : renderLocationsList()
|
|
637
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
638
|
+
import_materials.PisellModal,
|
|
639
|
+
{
|
|
640
|
+
open: addLocationOpen,
|
|
641
|
+
title: import_utils.locales.getText(
|
|
642
|
+
editingLocationId ? "pisell2.attendance.group-settings.clock-in-method.edit-location-modal.title" : "pisell2.attendance.group-settings.clock-in-method.add-location-modal.title"
|
|
643
|
+
),
|
|
644
|
+
destroyOnHidden: true,
|
|
645
|
+
onCancel: () => {
|
|
646
|
+
setAddLocationOpen(false);
|
|
647
|
+
setEditingLocationValue(null);
|
|
648
|
+
setEditingLocationId(null);
|
|
649
|
+
},
|
|
650
|
+
okText: import_utils.locales.getText(
|
|
651
|
+
editingLocationId ? "pisell2.attendance.group-settings.actions.edit-location-confirm" : "pisell2.attendance.group-settings.actions.add-location-confirm"
|
|
652
|
+
),
|
|
653
|
+
cancelText: import_utils.locales.getText(
|
|
654
|
+
"pisell2.attendance.group-settings.actions.cancel"
|
|
655
|
+
),
|
|
656
|
+
onOk: handleSubmitLocation
|
|
657
|
+
},
|
|
658
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
659
|
+
LocationFormMap,
|
|
660
|
+
{
|
|
661
|
+
ref: locationFormMapRef,
|
|
662
|
+
value: editingLocationValue,
|
|
663
|
+
onChange: setEditingLocationValue,
|
|
664
|
+
defaultRadius
|
|
665
|
+
}
|
|
666
|
+
)
|
|
667
|
+
));
|
|
668
|
+
});
|
|
669
|
+
MapField.displayName = "MapField";
|
|
670
|
+
var MapField_default = MapField;
|