@pisell/private-materials 3.4.77 → 3.4.79
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 +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/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/addons/model.d.ts +1 -10
- 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/forms/model.d.ts +1 -10
- package/es/components/booking/info/model.d.ts +1 -10
- 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/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/ecocup/locales.d.ts +224 -0
- package/es/components/ecocup/locales.js +228 -0
- package/es/components/eftpos/locales.d.ts +64 -0
- package/es/components/eftpos/locales.js +80 -0
- package/es/components/eftposPay/locales.d.ts +242 -0
- package/es/components/eftposPay/locales.js +326 -0
- 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/locales.d.ts +162 -0
- package/es/components/eventBooking/locales.js +186 -0
- package/es/components/kioskSkuDetail/locales.d.ts +16 -0
- package/es/components/kioskSkuDetail/locales.js +16 -0
- package/es/components/login/locales.d.ts +14 -0
- package/es/components/login/locales.js +14 -0
- package/es/components/pay/toC/locales.d.ts +204 -0
- package/es/components/pay/toC/locales.js +244 -0
- package/es/components/pay/toC/model.d.ts +1 -9
- 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/schedules/model.d.ts +1 -9
- 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/plus/clientCard/locales.d.ts +10 -0
- package/es/plus/clientCard/locales.js +10 -0
- package/es/plus/clinetSearch/locales.d.ts +70 -0
- package/es/plus/clinetSearch/locales.js +70 -0
- 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/locales.d.ts +246 -0
- package/es/plus/orderList/locales.js +274 -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/locales.d.ts +273 -0
- package/es/plus/saasAttendance/locales.js +305 -2
- 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.js +9 -3
- package/es/plus/saasAttendance/settings/components/MapField.js +73 -35
- 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/index.js +7 -0
- package/es/plus/saasAttendance/settings/index.less +15 -0
- package/es/plus/saasAttendance/settings/types.d.ts +8 -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/locales.d.ts +126 -0
- package/es/plus/saasRole/locales.js +126 -0
- package/es/plus/saasRole/types.d.ts +2 -0
- package/es/plus/saasTeamMembers/locales.d.ts +216 -0
- package/es/plus/saasTeamMembers/locales.js +216 -0
- package/es/plus/saasTeamMembers/type.d.ts +2 -0
- package/es/plus/selectHolder/locales.d.ts +9 -1
- package/es/plus/selectHolder/locales.js +17 -5
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +3 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -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/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/locales.d.ts +188 -0
- package/es/plus/walletPassGallery/locales.js +192 -0
- 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 +39 -18
- package/es/pro/Cards/components/SKUCard/index.less +21 -0
- 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 +68 -0
- package/es/pro/Cards/components/SKUCard/types.js +1 -0
- package/es/pro/Login2.0/locales.d.ts +360 -0
- package/es/pro/Login2.0/locales.js +360 -0
- package/es/pro/Login2.0/shared/types.d.ts +2 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/Selector/locales.d.ts +22 -0
- package/es/pro/Selector/locales.js +58 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +8 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +8 -0
- package/es/pro/comprehensiveSearch/locales.js +8 -0
- package/es/pro/keyboards/locales.d.ts +14 -0
- package/es/pro/keyboards/locales.js +22 -0
- package/es/pro/numberKeyboard/locales.d.ts +6 -0
- package/es/pro/numberKeyboard/locales.js +6 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +6 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +6 -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/addons/model.d.ts +1 -10
- 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/forms/model.d.ts +1 -10
- package/lib/components/booking/info/model.d.ts +1 -10
- 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/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/ecocup/locales.d.ts +224 -0
- package/lib/components/ecocup/locales.js +224 -0
- package/lib/components/eftpos/locales.d.ts +64 -0
- package/lib/components/eftpos/locales.js +76 -0
- package/lib/components/eftposPay/locales.d.ts +242 -0
- package/lib/components/eftposPay/locales.js +250 -0
- 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/locales.d.ts +162 -0
- package/lib/components/eventBooking/locales.js +162 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +16 -0
- package/lib/components/kioskSkuDetail/locales.js +16 -0
- package/lib/components/login/locales.d.ts +14 -0
- package/lib/components/login/locales.js +14 -0
- package/lib/components/pay/toC/locales.d.ts +204 -0
- package/lib/components/pay/toC/locales.js +204 -0
- package/lib/components/pay/toC/model.d.ts +1 -9
- 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/schedules/model.d.ts +1 -9
- 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/plus/clientCard/locales.d.ts +10 -0
- package/lib/plus/clientCard/locales.js +10 -0
- package/lib/plus/clinetSearch/locales.d.ts +70 -0
- package/lib/plus/clinetSearch/locales.js +70 -0
- 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/locales.d.ts +246 -0
- package/lib/plus/orderList/locales.js +266 -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/locales.d.ts +273 -0
- package/lib/plus/saasAttendance/locales.js +275 -2
- 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.js +2 -1
- package/lib/plus/saasAttendance/settings/components/MapField.js +52 -13
- 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/index.js +12 -0
- package/lib/plus/saasAttendance/settings/index.less +15 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +8 -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/locales.d.ts +126 -0
- package/lib/plus/saasRole/locales.js +126 -0
- package/lib/plus/saasRole/types.d.ts +2 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +216 -0
- package/lib/plus/saasTeamMembers/locales.js +216 -0
- package/lib/plus/saasTeamMembers/type.d.ts +2 -0
- package/lib/plus/selectHolder/locales.d.ts +9 -1
- package/lib/plus/selectHolder/locales.js +13 -5
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +8 -6
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -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/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/locales.d.ts +188 -0
- package/lib/plus/walletPassGallery/locales.js +192 -0
- 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 +53 -14
- package/lib/pro/Cards/components/SKUCard/index.less +21 -0
- 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 +68 -0
- package/lib/pro/Cards/components/SKUCard/types.js +17 -0
- package/lib/pro/Login2.0/locales.d.ts +360 -0
- package/lib/pro/Login2.0/locales.js +360 -0
- package/lib/pro/Login2.0/shared/types.d.ts +2 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/Selector/locales.d.ts +22 -0
- package/lib/pro/Selector/locales.js +50 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +8 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +8 -0
- package/lib/pro/comprehensiveSearch/locales.js +8 -0
- package/lib/pro/keyboards/locales.d.ts +14 -0
- package/lib/pro/keyboards/locales.js +14 -0
- package/lib/pro/numberKeyboard/locales.d.ts +6 -0
- package/lib/pro/numberKeyboard/locales.js +6 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +6 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +6 -0
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/lowcode/sku-options-selection/meta.ts +106 -2
- package/package.json +2 -2
|
@@ -68,7 +68,7 @@ var toMultiLangName = function toMultiLangName(input) {
|
|
|
68
68
|
};
|
|
69
69
|
var getLocationNameText = function getLocationNameText(name) {
|
|
70
70
|
var n = toMultiLangName(name);
|
|
71
|
-
return n.original || n['zh-CN'] || n['zh-HK'] || n.en || '';
|
|
71
|
+
return n.original || n['zh-CN'] || n['zh-HK'] || n.en || n.ja || n.pt || '';
|
|
72
72
|
};
|
|
73
73
|
var createLocationId = function createLocationId() {
|
|
74
74
|
var anyCrypto = typeof crypto !== 'undefined' ? crypto : undefined;
|
|
@@ -470,16 +470,20 @@ var MapField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
470
470
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
471
471
|
editingLocationValue = _useState8[0],
|
|
472
472
|
setEditingLocationValue = _useState8[1];
|
|
473
|
+
var _useState9 = useState(null),
|
|
474
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
475
|
+
editingLocationId = _useState10[0],
|
|
476
|
+
setEditingLocationId = _useState10[1];
|
|
473
477
|
var locationFormMapRef = useRef(null);
|
|
474
478
|
var mapRef = useRef(null);
|
|
475
|
-
var
|
|
476
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
477
|
-
isMapReady = _useState10[0],
|
|
478
|
-
setIsMapReady = _useState10[1];
|
|
479
|
-
var _useState11 = useState(null),
|
|
479
|
+
var _useState11 = useState(false),
|
|
480
480
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
481
|
-
|
|
482
|
-
|
|
481
|
+
isMapReady = _useState12[0],
|
|
482
|
+
setIsMapReady = _useState12[1];
|
|
483
|
+
var _useState13 = useState(null),
|
|
484
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
485
|
+
activeLocationId = _useState14[0],
|
|
486
|
+
setActiveLocationId = _useState14[1];
|
|
483
487
|
var context = useEngineContext();
|
|
484
488
|
useEffect(function () {
|
|
485
489
|
if (!onChange || !Array.isArray(value) || value.length === 0) return;
|
|
@@ -588,28 +592,28 @@ var MapField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
588
592
|
original: '',
|
|
589
593
|
en: '',
|
|
590
594
|
'zh-CN': '',
|
|
591
|
-
'zh-HK': ''
|
|
595
|
+
'zh-HK': '',
|
|
596
|
+
'ja': '',
|
|
597
|
+
'pt': ''
|
|
592
598
|
},
|
|
593
599
|
latitude: '',
|
|
594
600
|
longitude: '',
|
|
595
601
|
validRangeMeters: defaultRadius
|
|
596
602
|
};
|
|
597
603
|
setAddLocationOpen(true);
|
|
604
|
+
setEditingLocationId(null);
|
|
598
605
|
setEditingLocationValue(baseFormValue);
|
|
599
|
-
|
|
600
|
-
// Request geolocation permission and get current position
|
|
601
|
-
_context4.next = 5;
|
|
606
|
+
_context4.next = 6;
|
|
602
607
|
return getCurrentPosition();
|
|
603
|
-
case
|
|
608
|
+
case 6:
|
|
604
609
|
currentPosition = _context4.sent;
|
|
605
610
|
if (currentPosition) {
|
|
606
|
-
// Pre-fill the form with current position
|
|
607
611
|
setEditingLocationValue(_objectSpread(_objectSpread({}, baseFormValue), {}, {
|
|
608
612
|
latitude: currentPosition.lat.toFixed(6),
|
|
609
613
|
longitude: currentPosition.lng.toFixed(6)
|
|
610
614
|
}));
|
|
611
615
|
}
|
|
612
|
-
case
|
|
616
|
+
case 8:
|
|
613
617
|
case "end":
|
|
614
618
|
return _context4.stop();
|
|
615
619
|
}
|
|
@@ -622,9 +626,9 @@ var MapField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
622
626
|
}()
|
|
623
627
|
};
|
|
624
628
|
}, [defaultRadius]);
|
|
625
|
-
var
|
|
629
|
+
var handleSubmitLocation = /*#__PURE__*/function () {
|
|
626
630
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
627
|
-
var _values,
|
|
631
|
+
var _values, nextLocation, nextLocations, _nextLocations;
|
|
628
632
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
629
633
|
while (1) switch (_context5.prev = _context5.next) {
|
|
630
634
|
case 0:
|
|
@@ -639,37 +643,56 @@ var MapField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
639
643
|
return locationFormMapRef.current.validate();
|
|
640
644
|
case 5:
|
|
641
645
|
_values = _context5.sent;
|
|
642
|
-
|
|
643
|
-
id: createLocationId(),
|
|
646
|
+
nextLocation = {
|
|
647
|
+
id: editingLocationId !== null && editingLocationId !== void 0 ? editingLocationId : createLocationId(),
|
|
644
648
|
name: toMultiLangName(_values.name),
|
|
645
649
|
radius: _values.validRangeMeters,
|
|
646
650
|
address: {
|
|
647
651
|
lat: parseFloat(_values.latitude) || 0,
|
|
648
652
|
lng: parseFloat(_values.longitude) || 0
|
|
649
653
|
}
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
654
|
+
};
|
|
655
|
+
if (editingLocationId) {
|
|
656
|
+
nextLocations = locations.map(function (loc) {
|
|
657
|
+
return loc.id === editingLocationId ? nextLocation : loc;
|
|
658
|
+
});
|
|
659
|
+
onChange === null || onChange === void 0 || onChange(nextLocations);
|
|
660
|
+
setActiveLocationId(editingLocationId);
|
|
661
|
+
} else {
|
|
662
|
+
_nextLocations = [nextLocation].concat(_toConsumableArray(locations));
|
|
663
|
+
onChange === null || onChange === void 0 || onChange(_nextLocations);
|
|
664
|
+
setActiveLocationId(nextLocation.id);
|
|
665
|
+
}
|
|
655
666
|
setAddLocationOpen(false);
|
|
656
667
|
setEditingLocationValue(null);
|
|
657
|
-
|
|
668
|
+
setEditingLocationId(null);
|
|
669
|
+
_context5.next = 16;
|
|
658
670
|
break;
|
|
659
|
-
case
|
|
660
|
-
_context5.prev =
|
|
671
|
+
case 13:
|
|
672
|
+
_context5.prev = 13;
|
|
661
673
|
_context5.t0 = _context5["catch"](2);
|
|
662
674
|
console.error('Validation failed:', _context5.t0);
|
|
663
|
-
case
|
|
675
|
+
case 16:
|
|
664
676
|
case "end":
|
|
665
677
|
return _context5.stop();
|
|
666
678
|
}
|
|
667
|
-
}, _callee5, null, [[2,
|
|
679
|
+
}, _callee5, null, [[2, 13]]);
|
|
668
680
|
}));
|
|
669
|
-
return function
|
|
681
|
+
return function handleSubmitLocation() {
|
|
670
682
|
return _ref.apply(this, arguments);
|
|
671
683
|
};
|
|
672
684
|
}();
|
|
685
|
+
var handleEditLocation = useCallback(function (location) {
|
|
686
|
+
var _location$address$lat, _location$address$lng, _location$radius;
|
|
687
|
+
setAddLocationOpen(true);
|
|
688
|
+
setEditingLocationId(location.id);
|
|
689
|
+
setEditingLocationValue({
|
|
690
|
+
name: toMultiLangName(location.name),
|
|
691
|
+
latitude: String((_location$address$lat = location.address.lat) !== null && _location$address$lat !== void 0 ? _location$address$lat : ''),
|
|
692
|
+
longitude: String((_location$address$lng = location.address.lng) !== null && _location$address$lng !== void 0 ? _location$address$lng : ''),
|
|
693
|
+
validRangeMeters: (_location$radius = location.radius) !== null && _location$radius !== void 0 ? _location$radius : defaultRadius
|
|
694
|
+
});
|
|
695
|
+
}, [defaultRadius]);
|
|
673
696
|
var handleRemoveLocation = function handleRemoveLocation(locationId) {
|
|
674
697
|
var nextLocations = locations.filter(function (loc) {
|
|
675
698
|
return loc.id !== locationId;
|
|
@@ -769,7 +792,21 @@ var MapField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
769
792
|
className: "saas-attendance-map-field__location-header"
|
|
770
793
|
}, /*#__PURE__*/React.createElement("div", {
|
|
771
794
|
className: "saas-attendance-group-settings__location-name"
|
|
772
|
-
}, getLocationNameText(location.name)), /*#__PURE__*/React.createElement(
|
|
795
|
+
}, getLocationNameText(location.name)), /*#__PURE__*/React.createElement("div", {
|
|
796
|
+
className: "saas-attendance-map-field__location-actions"
|
|
797
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
798
|
+
type: "text",
|
|
799
|
+
size: "small",
|
|
800
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
801
|
+
type: "pisell2-edit-05",
|
|
802
|
+
size: 16
|
|
803
|
+
}),
|
|
804
|
+
className: "saas-attendance-map-field__edit-btn",
|
|
805
|
+
onClick: function onClick(e) {
|
|
806
|
+
e.stopPropagation();
|
|
807
|
+
handleEditLocation(location);
|
|
808
|
+
}
|
|
809
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
773
810
|
type: "text",
|
|
774
811
|
size: "small",
|
|
775
812
|
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -781,7 +818,7 @@ var MapField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
781
818
|
e.stopPropagation(); // Prevent triggering location item click
|
|
782
819
|
handleRemoveLocation(location.id);
|
|
783
820
|
}
|
|
784
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
821
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
785
822
|
className: "saas-attendance-group-settings__location-meta"
|
|
786
823
|
}, locales.getText('pisell2.attendance.group-settings.clock-in-method.add-location-modal.valid-range.label'), ": ", /*#__PURE__*/React.createElement("span", null, location.radius || defaultRadius)));
|
|
787
824
|
})));
|
|
@@ -790,15 +827,16 @@ var MapField = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
790
827
|
className: "saas-attendance-group-settings__locations-box ".concat(className || '')
|
|
791
828
|
}, locations.length === 0 ? renderEmptyState() : renderLocationsList()), /*#__PURE__*/React.createElement(PisellModal, {
|
|
792
829
|
open: addLocationOpen,
|
|
793
|
-
title: locales.getText('pisell2.attendance.group-settings.clock-in-method.add-location-modal.title'),
|
|
830
|
+
title: locales.getText(editingLocationId ? 'pisell2.attendance.group-settings.clock-in-method.edit-location-modal.title' : 'pisell2.attendance.group-settings.clock-in-method.add-location-modal.title'),
|
|
794
831
|
destroyOnHidden: true,
|
|
795
832
|
onCancel: function onCancel() {
|
|
796
833
|
setAddLocationOpen(false);
|
|
797
834
|
setEditingLocationValue(null);
|
|
835
|
+
setEditingLocationId(null);
|
|
798
836
|
},
|
|
799
|
-
okText: locales.getText('pisell2.attendance.group-settings.actions.add-location-confirm'),
|
|
837
|
+
okText: locales.getText(editingLocationId ? 'pisell2.attendance.group-settings.actions.edit-location-confirm' : 'pisell2.attendance.group-settings.actions.add-location-confirm'),
|
|
800
838
|
cancelText: locales.getText('pisell2.attendance.group-settings.actions.cancel'),
|
|
801
|
-
onOk:
|
|
839
|
+
onOk: handleSubmitLocation
|
|
802
840
|
}, /*#__PURE__*/React.createElement(LocationFormMap, {
|
|
803
841
|
ref: locationFormMapRef,
|
|
804
842
|
value: editingLocationValue,
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import { locales } from '@pisell/utils';
|
|
9
|
+
import "./ShiftPreview.less";
|
|
10
|
+
var WEEKDAYS = [1, 2, 3, 4, 5, 6, 7];
|
|
11
|
+
var getWeekdayText = function getWeekdayText(weekday) {
|
|
12
|
+
return locales.getText("pisell2.attendance.group-settings.shift-schedule.modal.weekday.".concat(weekday));
|
|
13
|
+
};
|
|
14
|
+
var parseMinutes = function parseMinutes(hhmm) {
|
|
15
|
+
var _split$map = (hhmm || '').split(':').map(function (v) {
|
|
16
|
+
return Number(v);
|
|
17
|
+
}),
|
|
18
|
+
_split$map2 = _slicedToArray(_split$map, 2),
|
|
19
|
+
h = _split$map2[0],
|
|
20
|
+
m = _split$map2[1];
|
|
21
|
+
if (!Number.isFinite(h) || !Number.isFinite(m)) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return h * 60 + m;
|
|
25
|
+
};
|
|
26
|
+
var formatClock = function formatClock(hhmm) {
|
|
27
|
+
var totalMinutes = parseMinutes(hhmm);
|
|
28
|
+
if (totalMinutes === null) return '';
|
|
29
|
+
var hours24 = Math.floor(totalMinutes / 60) % 24;
|
|
30
|
+
var minutes = totalMinutes % 60;
|
|
31
|
+
var suffix = hours24 >= 12 ? locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.period.pm') : locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.period.am');
|
|
32
|
+
var hours12 = hours24 % 12 === 0 ? 12 : hours24 % 12;
|
|
33
|
+
return "".concat(hours12, ":").concat(String(minutes).padStart(2, '0'), " ").concat(suffix);
|
|
34
|
+
};
|
|
35
|
+
var formatWeeklyHours = function formatWeeklyHours(totalMinutes) {
|
|
36
|
+
var hours = totalMinutes / 60;
|
|
37
|
+
if (Number.isInteger(hours)) return "".concat(hours);
|
|
38
|
+
return "".concat(hours.toFixed(2)).replace(/\.?0+$/, '');
|
|
39
|
+
};
|
|
40
|
+
var formatDuration = function formatDuration(totalMinutes) {
|
|
41
|
+
var hours = Math.floor(totalMinutes / 60);
|
|
42
|
+
var minutes = totalMinutes % 60;
|
|
43
|
+
return locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.duration')(hours, minutes);
|
|
44
|
+
};
|
|
45
|
+
var ShiftPreview = function ShiftPreview(props) {
|
|
46
|
+
var schedule = Array.isArray(props.value) ? props.value : [];
|
|
47
|
+
var previewDays = useMemo(function () {
|
|
48
|
+
var byWeekday = new Map();
|
|
49
|
+
schedule.forEach(function (item) {
|
|
50
|
+
if (item && typeof item.weekday === 'number') {
|
|
51
|
+
byWeekday.set(item.weekday, item);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return WEEKDAYS.map(function (weekday) {
|
|
55
|
+
var item = byWeekday.get(weekday);
|
|
56
|
+
var times = Array.isArray(item === null || item === void 0 ? void 0 : item.times) ? item.times : [];
|
|
57
|
+
var timeRanges = times.map(function (time) {
|
|
58
|
+
var startText = formatClock(time === null || time === void 0 ? void 0 : time.start);
|
|
59
|
+
var endText = formatClock(time === null || time === void 0 ? void 0 : time.end);
|
|
60
|
+
if (!startText || !endText) return null;
|
|
61
|
+
return {
|
|
62
|
+
startText: startText,
|
|
63
|
+
endText: endText
|
|
64
|
+
};
|
|
65
|
+
}).filter(Boolean);
|
|
66
|
+
var totalMinutes = times.reduce(function (sum, time) {
|
|
67
|
+
var start = parseMinutes(time === null || time === void 0 ? void 0 : time.start);
|
|
68
|
+
var end = parseMinutes(time === null || time === void 0 ? void 0 : time.end);
|
|
69
|
+
if (start === null || end === null || end <= start) {
|
|
70
|
+
return sum;
|
|
71
|
+
}
|
|
72
|
+
return sum + (end - start);
|
|
73
|
+
}, 0);
|
|
74
|
+
return {
|
|
75
|
+
weekday: weekday,
|
|
76
|
+
timeRanges: timeRanges,
|
|
77
|
+
totalMinutes: totalMinutes
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
}, [schedule]);
|
|
81
|
+
var workingDays = previewDays.filter(function (day) {
|
|
82
|
+
return day.totalMinutes > 0;
|
|
83
|
+
}).length;
|
|
84
|
+
var weeklyMinutes = previewDays.reduce(function (sum, day) {
|
|
85
|
+
return sum + day.totalMinutes;
|
|
86
|
+
}, 0);
|
|
87
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
88
|
+
className: "saas-attendance-group-settings__shift-preview"
|
|
89
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: "saas-attendance-group-settings__shift-summary"
|
|
91
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
className: "saas-attendance-group-settings__shift-summary-card"
|
|
93
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
94
|
+
className: "saas-attendance-group-settings__shift-summary-label"
|
|
95
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.working-days')), /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
className: "saas-attendance-group-settings__shift-summary-value"
|
|
97
|
+
}, workingDays), /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "saas-attendance-group-settings__shift-summary-unit"
|
|
99
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.days-per-week'))), /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: "saas-attendance-group-settings__shift-summary-card"
|
|
101
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: "saas-attendance-group-settings__shift-summary-label"
|
|
103
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.weekly-hours')), /*#__PURE__*/React.createElement("div", {
|
|
104
|
+
className: "saas-attendance-group-settings__shift-summary-value"
|
|
105
|
+
}, formatWeeklyHours(weeklyMinutes)), /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: "saas-attendance-group-settings__shift-summary-unit"
|
|
107
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.hours')))), /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
className: "saas-attendance-group-settings__shift-table"
|
|
109
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
className: "saas-attendance-group-settings__shift-table-head"
|
|
111
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
112
|
+
className: "saas-attendance-group-settings__shift-table-cell"
|
|
113
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.table.day')), /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: "saas-attendance-group-settings__shift-table-cell"
|
|
115
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.table.shift-times')), /*#__PURE__*/React.createElement("div", {
|
|
116
|
+
className: "saas-attendance-group-settings__shift-table-cell"
|
|
117
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.table.duration'))), previewDays.map(function (day) {
|
|
118
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
key: day.weekday,
|
|
120
|
+
className: "saas-attendance-group-settings__shift-table-row"
|
|
121
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
122
|
+
className: "saas-attendance-group-settings__shift-table-cell"
|
|
123
|
+
}, getWeekdayText(day.weekday)), /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: "saas-attendance-group-settings__shift-table-cell"
|
|
125
|
+
}, day.timeRanges.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: "saas-attendance-group-settings__shift-times"
|
|
127
|
+
}, day.timeRanges.map(function (range, index) {
|
|
128
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
key: "".concat(day.weekday, "-").concat(index),
|
|
130
|
+
className: "saas-attendance-group-settings__shift-time-tag"
|
|
131
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
132
|
+
className: "saas-attendance-group-settings__shift-time-text"
|
|
133
|
+
}, range.startText), /*#__PURE__*/React.createElement("span", {
|
|
134
|
+
className: "saas-attendance-group-settings__shift-time-arrow"
|
|
135
|
+
}, "\u2192"), /*#__PURE__*/React.createElement("span", {
|
|
136
|
+
className: "saas-attendance-group-settings__shift-time-text"
|
|
137
|
+
}, range.endText));
|
|
138
|
+
})) : /*#__PURE__*/React.createElement("div", {
|
|
139
|
+
className: "saas-attendance-group-settings__shift-empty"
|
|
140
|
+
}, locales.getText('pisell2.attendance.group-settings.shift-schedule.preview.no-shift'))), /*#__PURE__*/React.createElement("div", {
|
|
141
|
+
className: "saas-attendance-group-settings__shift-table-cell"
|
|
142
|
+
}, day.totalMinutes > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: "saas-attendance-group-settings__shift-duration"
|
|
144
|
+
}, formatDuration(day.totalMinutes)) : /*#__PURE__*/React.createElement("div", {
|
|
145
|
+
className: "saas-attendance-group-settings__shift-duration-empty"
|
|
146
|
+
}, formatDuration(0))));
|
|
147
|
+
})));
|
|
148
|
+
};
|
|
149
|
+
export default ShiftPreview;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
.saas-attendance-group-settings__shift-preview {
|
|
2
|
+
margin-top: 12px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.saas-attendance-group-settings__shift-summary {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: 1fr 1fr;
|
|
8
|
+
gap: 12px;
|
|
9
|
+
margin-top: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.saas-attendance-group-settings__shift-summary-card {
|
|
13
|
+
border: 1px solid #e5e7eb;
|
|
14
|
+
border-radius: 10px;
|
|
15
|
+
background: #ffffff;
|
|
16
|
+
padding: 14px 16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.saas-attendance-group-settings__shift-summary-label {
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
line-height: 18px;
|
|
22
|
+
color: #6b7280;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.saas-attendance-group-settings__shift-summary-value {
|
|
26
|
+
margin-top: 8px;
|
|
27
|
+
font-size: 28px;
|
|
28
|
+
line-height: 32px;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
color: #111827;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.saas-attendance-group-settings__shift-summary-unit {
|
|
34
|
+
margin-top: 4px;
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
line-height: 18px;
|
|
37
|
+
color: #6b7280;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.saas-attendance-group-settings__shift-table {
|
|
41
|
+
margin-top: 12px;
|
|
42
|
+
border: 1px solid #e5e7eb;
|
|
43
|
+
border-radius: 10px;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
background: #ffffff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.saas-attendance-group-settings__shift-table-head {
|
|
49
|
+
display: grid;
|
|
50
|
+
grid-template-columns: 1fr 3fr 1fr;
|
|
51
|
+
gap: 0;
|
|
52
|
+
padding: 12px 16px;
|
|
53
|
+
background: #f9fafb;
|
|
54
|
+
border-bottom: 1px solid #e5e7eb;
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
color: #6b7280;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.saas-attendance-group-settings__shift-table-row {
|
|
60
|
+
display: grid;
|
|
61
|
+
grid-template-columns: 1fr 3fr 1fr;
|
|
62
|
+
gap: 0;
|
|
63
|
+
padding: 12px 16px;
|
|
64
|
+
border-bottom: 1px solid #f3f4f6;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.saas-attendance-group-settings__shift-table-row:last-child {
|
|
68
|
+
border-bottom: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.saas-attendance-group-settings__shift-table-cell {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.saas-attendance-group-settings__shift-times {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
gap: 8px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.saas-attendance-group-settings__shift-time-tag {
|
|
83
|
+
padding: 2px 4px;
|
|
84
|
+
border-radius: 6px;
|
|
85
|
+
background: #f3f4f6;
|
|
86
|
+
color: #374151;
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 6px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.saas-attendance-group-settings__shift-time-text {
|
|
95
|
+
color: inherit;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.saas-attendance-group-settings__shift-time-arrow {
|
|
99
|
+
color: #6b7280;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.saas-attendance-group-settings__shift-empty {
|
|
103
|
+
color: #9ca3af;
|
|
104
|
+
font-size: 12px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.saas-attendance-group-settings__shift-duration {
|
|
108
|
+
padding: 2px 4px;
|
|
109
|
+
border-radius: 2px;
|
|
110
|
+
background: #ecfdf5;
|
|
111
|
+
color: #14532d;
|
|
112
|
+
font-size: 10px;
|
|
113
|
+
font-weight: 600;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.saas-attendance-group-settings__shift-duration-empty {
|
|
117
|
+
color: #9ca3af;
|
|
118
|
+
font-size: 12px;
|
|
119
|
+
}
|
|
@@ -23,6 +23,7 @@ import useEngineContext from "../../../hooks/useEngineContext";
|
|
|
23
23
|
import { request } from "../../../utils";
|
|
24
24
|
import localeTexts from "../locales";
|
|
25
25
|
import BasicInfoTab from "./BasicInfoTab";
|
|
26
|
+
import PermissonTab from "./PermissonTab";
|
|
26
27
|
import ShiftScheduleTab from "./ShiftScheduleTab";
|
|
27
28
|
import ClockInMethodTab from "./ClockInMethodTab";
|
|
28
29
|
import CorrectionPolicyTab from "./CorrectionPolicyTab";
|
|
@@ -45,6 +46,10 @@ var TAB_CONFIGS = [{
|
|
|
45
46
|
key: 'correction',
|
|
46
47
|
icon: 'pisell2-clock',
|
|
47
48
|
labelKey: 'pisell2.attendance.group-settings.correction-policy'
|
|
49
|
+
}, {
|
|
50
|
+
key: 'permission',
|
|
51
|
+
icon: 'pisell2-user-01',
|
|
52
|
+
labelKey: 'pisell2.attendance.group-settings.data-permission'
|
|
48
53
|
}];
|
|
49
54
|
|
|
50
55
|
// 生成简单的唯一 ID
|
|
@@ -250,6 +255,8 @@ var Settings = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
250
255
|
}), /*#__PURE__*/React.createElement(CorrectionPolicyTab, {
|
|
251
256
|
form: form,
|
|
252
257
|
id: "saas-attendance-settings-section-".concat(_uniqueId, "-correction")
|
|
258
|
+
}), /*#__PURE__*/React.createElement(PermissonTab, {
|
|
259
|
+
id: "saas-attendance-settings-section-".concat(_uniqueId, "-permission")
|
|
253
260
|
}))));
|
|
254
261
|
});
|
|
255
262
|
export default Settings;
|
|
@@ -485,6 +485,21 @@
|
|
|
485
485
|
gap: 8px;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
+
.saas-attendance-map-field__location-actions {
|
|
489
|
+
display: flex;
|
|
490
|
+
align-items: center;
|
|
491
|
+
gap: 4px;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.saas-attendance-map-field__edit-btn {
|
|
495
|
+
color: #9ca3af;
|
|
496
|
+
transition: color 0.2s ease;
|
|
497
|
+
|
|
498
|
+
&:hover {
|
|
499
|
+
color: #7f56d9;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
488
503
|
.saas-attendance-map-field__delete-btn {
|
|
489
504
|
color: #9ca3af;
|
|
490
505
|
transition: color 0.2s ease;
|
|
@@ -5,6 +5,8 @@ export interface MultiLangName {
|
|
|
5
5
|
en?: string;
|
|
6
6
|
'zh-CN'?: string;
|
|
7
7
|
'zh-HK'?: string;
|
|
8
|
+
'ja'?: string;
|
|
9
|
+
'pt'?: string;
|
|
8
10
|
original?: string;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
@@ -65,6 +67,10 @@ export interface AttendanceCorrection {
|
|
|
65
67
|
period_type: FrequencyType;
|
|
66
68
|
period_custom: number | null;
|
|
67
69
|
}
|
|
70
|
+
export declare type MemberDataViewRange = 'this_week' | 'last_week' | 'this_month';
|
|
71
|
+
export interface AttendancePermission {
|
|
72
|
+
member_data_view_range?: MemberDataViewRange[];
|
|
73
|
+
}
|
|
68
74
|
/**
|
|
69
75
|
* 考勤组设置值 - 完整的API数据结构
|
|
70
76
|
*/
|
|
@@ -76,6 +82,7 @@ export interface AttendanceGroupSettingsValue {
|
|
|
76
82
|
place: AttendancePlace;
|
|
77
83
|
member_ids: number[];
|
|
78
84
|
correction: AttendanceCorrection;
|
|
85
|
+
permission?: AttendancePermission;
|
|
79
86
|
creator_type?: string;
|
|
80
87
|
creator_id?: number;
|
|
81
88
|
editor_type?: string;
|
|
@@ -90,6 +97,7 @@ export interface BasicInfoTabValue {
|
|
|
90
97
|
name: MultiLangName;
|
|
91
98
|
timezone: string;
|
|
92
99
|
member_ids: number[];
|
|
100
|
+
permission?: AttendancePermission;
|
|
93
101
|
}
|
|
94
102
|
/**
|
|
95
103
|
* 排班规则Tab的值
|
|
@@ -11,5 +11,13 @@ declare const _default: {
|
|
|
11
11
|
'pisell-saas-create-org-welcome-message': string;
|
|
12
12
|
'pisell-saas-create-org-title': string;
|
|
13
13
|
};
|
|
14
|
+
ja: {
|
|
15
|
+
'pisell-saas-create-org-welcome-message': string;
|
|
16
|
+
'pisell-saas-create-org-title': string;
|
|
17
|
+
};
|
|
18
|
+
pt: {
|
|
19
|
+
'pisell-saas-create-org-welcome-message': string;
|
|
20
|
+
'pisell-saas-create-org-title': string;
|
|
21
|
+
};
|
|
14
22
|
};
|
|
15
23
|
export default _default;
|
|
@@ -10,5 +10,13 @@ export default {
|
|
|
10
10
|
'zh-TW': {
|
|
11
11
|
'pisell-saas-create-org-welcome-message': '歡迎使用',
|
|
12
12
|
'pisell-saas-create-org-title': '創建您的企業'
|
|
13
|
+
},
|
|
14
|
+
ja: {
|
|
15
|
+
'pisell-saas-create-org-welcome-message': 'ようこそ',
|
|
16
|
+
'pisell-saas-create-org-title': '組織を作成'
|
|
17
|
+
},
|
|
18
|
+
pt: {
|
|
19
|
+
'pisell-saas-create-org-welcome-message': 'Bem-vindo ao',
|
|
20
|
+
'pisell-saas-create-org-title': 'Crie sua organização'
|
|
13
21
|
}
|
|
14
22
|
};
|
|
@@ -47,5 +47,37 @@ declare const _default: {
|
|
|
47
47
|
'pisell-saas-login-register-text': string;
|
|
48
48
|
'pisell-saas-login-register-link': string;
|
|
49
49
|
};
|
|
50
|
+
ja: {
|
|
51
|
+
'pisell-saas-login-welcome-message': string;
|
|
52
|
+
'pisell-saas-login-title': string;
|
|
53
|
+
'pisell-saas-login-subtitle': string;
|
|
54
|
+
'pisell-saas-login-email-label': string;
|
|
55
|
+
'pisell-saas-login-email-placeholder': string;
|
|
56
|
+
'pisell-saas-login-password-label': string;
|
|
57
|
+
'pisell-saas-login-password-placeholder': string;
|
|
58
|
+
'pisell-saas-login-email-error': string;
|
|
59
|
+
'pisell-saas-login-email-error-valid': string;
|
|
60
|
+
'pisell-saas-login-password-required': string;
|
|
61
|
+
'pisell-saas-login-password-error': string;
|
|
62
|
+
'pisell-saas-login-button': string;
|
|
63
|
+
'pisell-saas-login-register-text': string;
|
|
64
|
+
'pisell-saas-login-register-link': string;
|
|
65
|
+
};
|
|
66
|
+
pt: {
|
|
67
|
+
'pisell-saas-login-welcome-message': string;
|
|
68
|
+
'pisell-saas-login-title': string;
|
|
69
|
+
'pisell-saas-login-subtitle': string;
|
|
70
|
+
'pisell-saas-login-email-label': string;
|
|
71
|
+
'pisell-saas-login-email-placeholder': string;
|
|
72
|
+
'pisell-saas-login-password-label': string;
|
|
73
|
+
'pisell-saas-login-password-placeholder': string;
|
|
74
|
+
'pisell-saas-login-email-error': string;
|
|
75
|
+
'pisell-saas-login-email-error-valid': string;
|
|
76
|
+
'pisell-saas-login-password-required': string;
|
|
77
|
+
'pisell-saas-login-password-error': string;
|
|
78
|
+
'pisell-saas-login-button': string;
|
|
79
|
+
'pisell-saas-login-register-text': string;
|
|
80
|
+
'pisell-saas-login-register-link': string;
|
|
81
|
+
};
|
|
50
82
|
};
|
|
51
83
|
export default _default;
|