@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
|
@@ -70,7 +70,7 @@ var toMultiLangName = (input) => {
|
|
|
70
70
|
};
|
|
71
71
|
var getLocationNameText = (name) => {
|
|
72
72
|
const n = toMultiLangName(name);
|
|
73
|
-
return n.original || n["zh-CN"] || n["zh-HK"] || n.en || "";
|
|
73
|
+
return n.original || n["zh-CN"] || n["zh-HK"] || n.en || n.ja || n.pt || "";
|
|
74
74
|
};
|
|
75
75
|
var createLocationId = () => {
|
|
76
76
|
const anyCrypto = typeof crypto !== "undefined" ? crypto : void 0;
|
|
@@ -401,6 +401,9 @@ var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
|
401
401
|
const locations = (0, import_react.useMemo)(() => normalizeLocations(value), [value]);
|
|
402
402
|
const [addLocationOpen, setAddLocationOpen] = (0, import_react.useState)(false);
|
|
403
403
|
const [editingLocationValue, setEditingLocationValue] = (0, import_react.useState)(null);
|
|
404
|
+
const [editingLocationId, setEditingLocationId] = (0, import_react.useState)(
|
|
405
|
+
null
|
|
406
|
+
);
|
|
404
407
|
const locationFormMapRef = (0, import_react.useRef)(null);
|
|
405
408
|
const mapRef = (0, import_react.useRef)(null);
|
|
406
409
|
const [isMapReady, setIsMapReady] = (0, import_react.useState)(false);
|
|
@@ -466,12 +469,13 @@ var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
|
466
469
|
() => ({
|
|
467
470
|
onAddLocation: async () => {
|
|
468
471
|
const baseFormValue = {
|
|
469
|
-
name: { original: "", en: "", "zh-CN": "", "zh-HK": "" },
|
|
472
|
+
name: { original: "", en: "", "zh-CN": "", "zh-HK": "", "ja": "", "pt": "" },
|
|
470
473
|
latitude: "",
|
|
471
474
|
longitude: "",
|
|
472
475
|
validRangeMeters: defaultRadius
|
|
473
476
|
};
|
|
474
477
|
setAddLocationOpen(true);
|
|
478
|
+
setEditingLocationId(null);
|
|
475
479
|
setEditingLocationValue(baseFormValue);
|
|
476
480
|
const currentPosition = await getCurrentPosition();
|
|
477
481
|
if (currentPosition) {
|
|
@@ -485,12 +489,12 @@ var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
|
485
489
|
}),
|
|
486
490
|
[defaultRadius]
|
|
487
491
|
);
|
|
488
|
-
const
|
|
492
|
+
const handleSubmitLocation = async () => {
|
|
489
493
|
if (!locationFormMapRef.current) return;
|
|
490
494
|
try {
|
|
491
495
|
const values = await locationFormMapRef.current.validate();
|
|
492
|
-
const
|
|
493
|
-
id: createLocationId(),
|
|
496
|
+
const nextLocation = {
|
|
497
|
+
id: editingLocationId ?? createLocationId(),
|
|
494
498
|
name: toMultiLangName(values.name),
|
|
495
499
|
radius: values.validRangeMeters,
|
|
496
500
|
address: {
|
|
@@ -498,15 +502,37 @@ var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
|
498
502
|
lng: parseFloat(values.longitude) || 0
|
|
499
503
|
}
|
|
500
504
|
};
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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
|
+
}
|
|
504
516
|
setAddLocationOpen(false);
|
|
505
517
|
setEditingLocationValue(null);
|
|
518
|
+
setEditingLocationId(null);
|
|
506
519
|
} catch (error) {
|
|
507
520
|
console.error("Validation failed:", error);
|
|
508
521
|
}
|
|
509
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
|
+
);
|
|
510
536
|
const handleRemoveLocation = (locationId) => {
|
|
511
537
|
const nextLocations = locations.filter((loc) => loc.id !== locationId);
|
|
512
538
|
onChange == null ? void 0 : onChange(nextLocations);
|
|
@@ -573,7 +599,19 @@ var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
|
573
599
|
onClick: () => handleLocationItemClick(location),
|
|
574
600
|
style: { cursor: "pointer" }
|
|
575
601
|
},
|
|
576
|
-
/* @__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(
|
|
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(
|
|
577
615
|
import_antd.Button,
|
|
578
616
|
{
|
|
579
617
|
type: "text",
|
|
@@ -585,7 +623,7 @@ var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
|
585
623
|
handleRemoveLocation(location.id);
|
|
586
624
|
}
|
|
587
625
|
}
|
|
588
|
-
)),
|
|
626
|
+
))),
|
|
589
627
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__location-meta" }, import_utils.locales.getText(
|
|
590
628
|
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.valid-range.label"
|
|
591
629
|
), ": ", /* @__PURE__ */ import_react.default.createElement("span", null, location.radius || defaultRadius))
|
|
@@ -601,20 +639,21 @@ var MapField = (0, import_react.forwardRef)((props, ref) => {
|
|
|
601
639
|
{
|
|
602
640
|
open: addLocationOpen,
|
|
603
641
|
title: import_utils.locales.getText(
|
|
604
|
-
"pisell2.attendance.group-settings.clock-in-method.add-location-modal.title"
|
|
642
|
+
editingLocationId ? "pisell2.attendance.group-settings.clock-in-method.edit-location-modal.title" : "pisell2.attendance.group-settings.clock-in-method.add-location-modal.title"
|
|
605
643
|
),
|
|
606
644
|
destroyOnHidden: true,
|
|
607
645
|
onCancel: () => {
|
|
608
646
|
setAddLocationOpen(false);
|
|
609
647
|
setEditingLocationValue(null);
|
|
648
|
+
setEditingLocationId(null);
|
|
610
649
|
},
|
|
611
650
|
okText: import_utils.locales.getText(
|
|
612
|
-
"pisell2.attendance.group-settings.actions.add-location-confirm"
|
|
651
|
+
editingLocationId ? "pisell2.attendance.group-settings.actions.edit-location-confirm" : "pisell2.attendance.group-settings.actions.add-location-confirm"
|
|
613
652
|
),
|
|
614
653
|
cancelText: import_utils.locales.getText(
|
|
615
654
|
"pisell2.attendance.group-settings.actions.cancel"
|
|
616
655
|
),
|
|
617
|
-
onOk:
|
|
656
|
+
onOk: handleSubmitLocation
|
|
618
657
|
},
|
|
619
658
|
/* @__PURE__ */ import_react.default.createElement(
|
|
620
659
|
LocationFormMap,
|
|
@@ -0,0 +1,150 @@
|
|
|
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/shiftModal/ShiftPreview.tsx
|
|
30
|
+
var ShiftPreview_exports = {};
|
|
31
|
+
__export(ShiftPreview_exports, {
|
|
32
|
+
default: () => ShiftPreview_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ShiftPreview_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_ShiftPreview = require("./ShiftPreview.less");
|
|
38
|
+
var WEEKDAYS = [1, 2, 3, 4, 5, 6, 7];
|
|
39
|
+
var getWeekdayText = (weekday) => {
|
|
40
|
+
return import_utils.locales.getText(
|
|
41
|
+
`pisell2.attendance.group-settings.shift-schedule.modal.weekday.${weekday}`
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
var parseMinutes = (hhmm) => {
|
|
45
|
+
const [h, m] = (hhmm || "").split(":").map((v) => Number(v));
|
|
46
|
+
if (!Number.isFinite(h) || !Number.isFinite(m)) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return h * 60 + m;
|
|
50
|
+
};
|
|
51
|
+
var formatClock = (hhmm) => {
|
|
52
|
+
const totalMinutes = parseMinutes(hhmm);
|
|
53
|
+
if (totalMinutes === null) return "";
|
|
54
|
+
const hours24 = Math.floor(totalMinutes / 60) % 24;
|
|
55
|
+
const minutes = totalMinutes % 60;
|
|
56
|
+
const suffix = hours24 >= 12 ? import_utils.locales.getText(
|
|
57
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.period.pm"
|
|
58
|
+
) : import_utils.locales.getText(
|
|
59
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.period.am"
|
|
60
|
+
);
|
|
61
|
+
const hours12 = hours24 % 12 === 0 ? 12 : hours24 % 12;
|
|
62
|
+
return `${hours12}:${String(minutes).padStart(2, "0")} ${suffix}`;
|
|
63
|
+
};
|
|
64
|
+
var formatWeeklyHours = (totalMinutes) => {
|
|
65
|
+
const hours = totalMinutes / 60;
|
|
66
|
+
if (Number.isInteger(hours)) return `${hours}`;
|
|
67
|
+
return `${hours.toFixed(2)}`.replace(/\.?0+$/, "");
|
|
68
|
+
};
|
|
69
|
+
var formatDuration = (totalMinutes) => {
|
|
70
|
+
const hours = Math.floor(totalMinutes / 60);
|
|
71
|
+
const minutes = totalMinutes % 60;
|
|
72
|
+
return import_utils.locales.getText(
|
|
73
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.duration"
|
|
74
|
+
)(hours, minutes);
|
|
75
|
+
};
|
|
76
|
+
var ShiftPreview = (props) => {
|
|
77
|
+
const schedule = Array.isArray(props.value) ? props.value : [];
|
|
78
|
+
const previewDays = (0, import_react.useMemo)(() => {
|
|
79
|
+
const byWeekday = /* @__PURE__ */ new Map();
|
|
80
|
+
schedule.forEach((item) => {
|
|
81
|
+
if (item && typeof item.weekday === "number") {
|
|
82
|
+
byWeekday.set(item.weekday, item);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
return WEEKDAYS.map((weekday) => {
|
|
86
|
+
const item = byWeekday.get(weekday);
|
|
87
|
+
const times = Array.isArray(item == null ? void 0 : item.times) ? item.times : [];
|
|
88
|
+
const timeRanges = times.map((time) => {
|
|
89
|
+
const startText = formatClock(time == null ? void 0 : time.start);
|
|
90
|
+
const endText = formatClock(time == null ? void 0 : time.end);
|
|
91
|
+
if (!startText || !endText) return null;
|
|
92
|
+
return { startText, endText };
|
|
93
|
+
}).filter(Boolean);
|
|
94
|
+
const totalMinutes = times.reduce((sum, time) => {
|
|
95
|
+
const start = parseMinutes(time == null ? void 0 : time.start);
|
|
96
|
+
const end = parseMinutes(time == null ? void 0 : time.end);
|
|
97
|
+
if (start === null || end === null || end <= start) {
|
|
98
|
+
return sum;
|
|
99
|
+
}
|
|
100
|
+
return sum + (end - start);
|
|
101
|
+
}, 0);
|
|
102
|
+
return {
|
|
103
|
+
weekday,
|
|
104
|
+
timeRanges,
|
|
105
|
+
totalMinutes
|
|
106
|
+
};
|
|
107
|
+
});
|
|
108
|
+
}, [schedule]);
|
|
109
|
+
const workingDays = previewDays.filter((day) => day.totalMinutes > 0).length;
|
|
110
|
+
const weeklyMinutes = previewDays.reduce(
|
|
111
|
+
(sum, day) => sum + day.totalMinutes,
|
|
112
|
+
0
|
|
113
|
+
);
|
|
114
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-preview" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-card" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-label" }, import_utils.locales.getText(
|
|
115
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.working-days"
|
|
116
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-value" }, workingDays), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-unit" }, import_utils.locales.getText(
|
|
117
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.days-per-week"
|
|
118
|
+
))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-card" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-label" }, import_utils.locales.getText(
|
|
119
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.weekly-hours"
|
|
120
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-value" }, formatWeeklyHours(weeklyMinutes)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-summary-unit" }, import_utils.locales.getText(
|
|
121
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.hours"
|
|
122
|
+
)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table-head" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table-cell" }, import_utils.locales.getText(
|
|
123
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.table.day"
|
|
124
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table-cell" }, import_utils.locales.getText(
|
|
125
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.table.shift-times"
|
|
126
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table-cell" }, import_utils.locales.getText(
|
|
127
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.table.duration"
|
|
128
|
+
))), previewDays.map((day) => /* @__PURE__ */ import_react.default.createElement(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
key: day.weekday,
|
|
132
|
+
className: "saas-attendance-group-settings__shift-table-row"
|
|
133
|
+
},
|
|
134
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table-cell" }, getWeekdayText(day.weekday)),
|
|
135
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table-cell" }, day.timeRanges.length > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-times" }, day.timeRanges.map((range, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
key: `${day.weekday}-${index}`,
|
|
139
|
+
className: "saas-attendance-group-settings__shift-time-tag"
|
|
140
|
+
},
|
|
141
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "saas-attendance-group-settings__shift-time-text" }, range.startText),
|
|
142
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "saas-attendance-group-settings__shift-time-arrow" }, "→"),
|
|
143
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "saas-attendance-group-settings__shift-time-text" }, range.endText)
|
|
144
|
+
))) : /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-empty" }, import_utils.locales.getText(
|
|
145
|
+
"pisell2.attendance.group-settings.shift-schedule.preview.no-shift"
|
|
146
|
+
))),
|
|
147
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-table-cell" }, day.totalMinutes > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-duration" }, formatDuration(day.totalMinutes)) : /* @__PURE__ */ import_react.default.createElement("div", { className: "saas-attendance-group-settings__shift-duration-empty" }, formatDuration(0)))
|
|
148
|
+
))));
|
|
149
|
+
};
|
|
150
|
+
var ShiftPreview_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
|
+
}
|
|
@@ -43,6 +43,7 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
43
43
|
var import_utils2 = require("../../../utils");
|
|
44
44
|
var import_locales = __toESM(require("../locales"));
|
|
45
45
|
var import_BasicInfoTab = __toESM(require("./BasicInfoTab"));
|
|
46
|
+
var import_PermissonTab = __toESM(require("./PermissonTab"));
|
|
46
47
|
var import_ShiftScheduleTab = __toESM(require("./ShiftScheduleTab"));
|
|
47
48
|
var import_ClockInMethodTab = __toESM(require("./ClockInMethodTab"));
|
|
48
49
|
var import_CorrectionPolicyTab = __toESM(require("./CorrectionPolicyTab"));
|
|
@@ -68,6 +69,11 @@ var TAB_CONFIGS = [
|
|
|
68
69
|
key: "correction",
|
|
69
70
|
icon: "pisell2-clock",
|
|
70
71
|
labelKey: "pisell2.attendance.group-settings.correction-policy"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
key: "permission",
|
|
75
|
+
icon: "pisell2-user-01",
|
|
76
|
+
labelKey: "pisell2.attendance.group-settings.data-permission"
|
|
71
77
|
}
|
|
72
78
|
];
|
|
73
79
|
var generateSimpleUUID = () => {
|
|
@@ -272,6 +278,12 @@ var Settings = (0, import_react.forwardRef)((props, ref) => {
|
|
|
272
278
|
form,
|
|
273
279
|
id: `saas-attendance-settings-section-${_uniqueId}-correction`
|
|
274
280
|
}
|
|
281
|
+
),
|
|
282
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
283
|
+
import_PermissonTab.default,
|
|
284
|
+
{
|
|
285
|
+
id: `saas-attendance-settings-section-${_uniqueId}-permission`
|
|
286
|
+
}
|
|
275
287
|
)
|
|
276
288
|
)
|
|
277
289
|
));
|
|
@@ -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;
|
|
@@ -34,5 +34,13 @@ var locales_default = {
|
|
|
34
34
|
"zh-TW": {
|
|
35
35
|
"pisell-saas-create-org-welcome-message": "歡迎使用",
|
|
36
36
|
"pisell-saas-create-org-title": "創建您的企業"
|
|
37
|
+
},
|
|
38
|
+
ja: {
|
|
39
|
+
"pisell-saas-create-org-welcome-message": "ようこそ",
|
|
40
|
+
"pisell-saas-create-org-title": "組織を作成"
|
|
41
|
+
},
|
|
42
|
+
pt: {
|
|
43
|
+
"pisell-saas-create-org-welcome-message": "Bem-vindo ao",
|
|
44
|
+
"pisell-saas-create-org-title": "Crie sua organização"
|
|
37
45
|
}
|
|
38
46
|
};
|
|
@@ -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;
|
|
@@ -70,5 +70,37 @@ var locales_default = {
|
|
|
70
70
|
"pisell-saas-login-button": "登錄",
|
|
71
71
|
"pisell-saas-login-register-text": "還沒有帳號?",
|
|
72
72
|
"pisell-saas-login-register-link": "創建帳號"
|
|
73
|
+
},
|
|
74
|
+
ja: {
|
|
75
|
+
"pisell-saas-login-welcome-message": "ようこそ",
|
|
76
|
+
"pisell-saas-login-title": "アカウントにログイン",
|
|
77
|
+
"pisell-saas-login-subtitle": "おかえりなさい!詳細を入力してください。",
|
|
78
|
+
"pisell-saas-login-email-label": "メール",
|
|
79
|
+
"pisell-saas-login-email-placeholder": "メールを入力",
|
|
80
|
+
"pisell-saas-login-password-label": "パスワード",
|
|
81
|
+
"pisell-saas-login-password-placeholder": "パスワードを入力",
|
|
82
|
+
"pisell-saas-login-email-error": "メールを入力してください!",
|
|
83
|
+
"pisell-saas-login-email-error-valid": "有効なメールを入力してください!",
|
|
84
|
+
"pisell-saas-login-password-required": "パスワードを入力してください!",
|
|
85
|
+
"pisell-saas-login-password-error": "正しいパスワードを入力してください",
|
|
86
|
+
"pisell-saas-login-button": "ログイン",
|
|
87
|
+
"pisell-saas-login-register-text": "アカウントをお持ちでないですか?",
|
|
88
|
+
"pisell-saas-login-register-link": "アカウントを作成"
|
|
89
|
+
},
|
|
90
|
+
pt: {
|
|
91
|
+
"pisell-saas-login-welcome-message": "Bem-vindo ao",
|
|
92
|
+
"pisell-saas-login-title": "Faça login na sua conta",
|
|
93
|
+
"pisell-saas-login-subtitle": "Bem-vindo de volta! Por favor, insira seus detalhes.",
|
|
94
|
+
"pisell-saas-login-email-label": "E-mail",
|
|
95
|
+
"pisell-saas-login-email-placeholder": "Digite seu e-mail",
|
|
96
|
+
"pisell-saas-login-password-label": "Senha",
|
|
97
|
+
"pisell-saas-login-password-placeholder": "Digite sua senha",
|
|
98
|
+
"pisell-saas-login-email-error": "Por favor, insira seu e-mail!",
|
|
99
|
+
"pisell-saas-login-email-error-valid": "Por favor, insira um e-mail válido!",
|
|
100
|
+
"pisell-saas-login-password-required": "Por favor, insira sua senha!",
|
|
101
|
+
"pisell-saas-login-password-error": "Por favor, insira a senha correta",
|
|
102
|
+
"pisell-saas-login-button": "Entrar",
|
|
103
|
+
"pisell-saas-login-register-text": "Não tem uma conta?",
|
|
104
|
+
"pisell-saas-login-register-link": "Criar conta"
|
|
73
105
|
}
|
|
74
106
|
};
|