@pisell/private-materials 6.3.95 → 6.3.97

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.
Files changed (273) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +2 -2
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  14. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  15. package/es/components/booking/info/model.d.ts +1 -10
  16. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  17. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  18. package/es/components/booking/model.d.ts +1 -9
  19. package/es/components/booking/notes/model.d.ts +1 -10
  20. package/es/components/booking/payments/model.d.ts +1 -10
  21. package/es/components/booking/utils.d.ts +2 -2
  22. package/es/components/eftposPay/amount.d.ts +1 -1
  23. package/es/components/eftposPay/device.d.ts +1 -1
  24. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  25. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  26. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  27. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  28. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  29. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +18 -7
  30. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
  31. package/es/plus/saasAttendance/locales.js +71 -2
  32. package/es/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
  33. package/es/plus/saasAttendance/settings/PermissonTab.js +79 -0
  34. package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +9 -3
  35. package/es/plus/saasAttendance/settings/components/MapField.js +69 -33
  36. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
  37. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +149 -0
  38. package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
  39. package/es/plus/saasAttendance/settings/index.js +7 -0
  40. package/es/plus/saasAttendance/settings/index.less +15 -0
  41. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  42. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  43. package/es/pro/Selector/Selector.d.ts +1 -1
  44. package/lib/components/booking/addons/model.d.ts +1 -10
  45. package/lib/components/booking/forms/model.d.ts +1 -10
  46. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  47. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  48. package/lib/components/booking/info/model.d.ts +1 -10
  49. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  50. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  51. package/lib/components/booking/model.d.ts +1 -9
  52. package/lib/components/booking/notes/model.d.ts +1 -10
  53. package/lib/components/booking/payments/model.d.ts +1 -10
  54. package/lib/components/booking/utils.d.ts +2 -2
  55. package/lib/components/eftposPay/amount.d.ts +1 -1
  56. package/lib/components/eftposPay/device.d.ts +1 -1
  57. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  58. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  59. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  60. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  61. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
  62. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -1
  63. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -1
  64. package/lib/plus/saasAttendance/locales.js +65 -2
  65. package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
  66. package/lib/plus/saasAttendance/settings/PermissonTab.js +128 -0
  67. package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +2 -1
  68. package/lib/plus/saasAttendance/settings/components/MapField.js +50 -11
  69. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
  70. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +150 -0
  71. package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
  72. package/lib/plus/saasAttendance/settings/index.js +12 -0
  73. package/lib/plus/saasAttendance/settings/index.less +15 -0
  74. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  75. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  76. package/lib/pro/Selector/Selector.d.ts +1 -1
  77. package/lowcode/eco-cup-list/meta.ts +1 -1
  78. package/lowcode/eco-customer-list/meta.ts +1 -1
  79. package/package.json +2 -2
  80. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  81. package/es/components/appointmentBooking/locales.d.ts +0 -366
  82. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  83. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  84. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  85. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  86. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  87. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  88. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  89. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  90. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  91. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  92. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  93. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  94. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  95. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  96. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  97. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  98. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  99. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  100. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  101. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  102. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  103. package/es/components/booking/info2/service/addService/mock.d.ts +0 -214
  104. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  105. package/es/components/booking/notes/addNote/index.d.ts +0 -4
  106. package/es/components/ecocup/cupList/const.d.ts +0 -133
  107. package/es/components/ecocup/hooks.d.ts +0 -49
  108. package/es/components/ecocup/locales.d.ts +0 -339
  109. package/es/components/eftpos/index.d.ts +0 -47
  110. package/es/components/eftpos/locales.d.ts +0 -99
  111. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
  112. package/es/components/eftposPay/const.d.ts +0 -184
  113. package/es/components/eftposPay/hooks.d.ts +0 -35
  114. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  115. package/es/components/eftposPay/locales.d.ts +0 -330
  116. package/es/components/eftposPay/payo/config.d.ts +0 -13
  117. package/es/components/eftposPay/payo/const.d.ts +0 -26
  118. package/es/components/eftposPay/store/index.d.ts +0 -355
  119. package/es/components/eftposPay/tyro/const.d.ts +0 -17
  120. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  121. package/es/components/eftposPay/windcave/const.d.ts +0 -119
  122. package/es/components/eftposPay/windcave/helper.d.ts +0 -23
  123. package/es/components/eventBooking/locales.d.ts +0 -246
  124. package/es/components/login/locales.d.ts +0 -24
  125. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  126. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  127. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  128. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  129. package/es/components/pay/toC/locales.d.ts +0 -307
  130. package/es/components/pay/toC/model.d.ts +0 -40
  131. package/es/components/pinModal/locales.d.ts +0 -27
  132. package/es/components/pinVerifyModal/locales.d.ts +0 -24
  133. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  134. package/es/components/productExtension/locales.d.ts +0 -48
  135. package/es/components/productSelect/locales.d.ts +0 -18
  136. package/es/components/schedules/locales.d.ts +0 -87
  137. package/es/components/shoppingCart/locales.d.ts +0 -33
  138. package/es/components/shoppingCart/type.d.ts +0 -48
  139. package/es/components/stepController/locales.d.ts +0 -27
  140. package/es/components/subTotal/locales.d.ts +0 -42
  141. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  142. package/es/components/systemSettings/registry/services.d.ts +0 -77
  143. package/es/components/systemSettings/registry/types.d.ts +0 -126
  144. package/es/components/taxSelect/locales.d.ts +0 -24
  145. package/es/components/ticketBooking/locales.d.ts +0 -174
  146. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  147. package/es/components/wallet/utils.d.ts +0 -48
  148. package/es/components/walletList/locales.d.ts +0 -27
  149. package/es/components/walletList/types/index.d.ts +0 -194
  150. package/es/hooks/useEngineContext.d.ts +0 -11
  151. package/es/hooks/useWindowSize.d.ts +0 -5
  152. package/es/plus/clientCard/locales.d.ts +0 -18
  153. package/es/plus/clinetSearch/locales.d.ts +0 -108
  154. package/es/plus/contactInfo/locales.d.ts +0 -15
  155. package/es/plus/contactInfoModal/locales.d.ts +0 -66
  156. package/es/plus/productSelect/locales.d.ts +0 -18
  157. package/es/plus/saasAttendance/locales.d.ts +0 -318
  158. package/es/plus/saasAttendance/settings/types.d.ts +0 -128
  159. package/es/plus/saasCreateOrganization/locales.d.ts +0 -15
  160. package/es/plus/saasLogin/locales.d.ts +0 -51
  161. package/es/plus/saasRegister/locales.d.ts +0 -117
  162. package/es/plus/saasRole/locales.d.ts +0 -193
  163. package/es/plus/saasRole/types.d.ts +0 -175
  164. package/es/plus/saasTeamMembers/locales.d.ts +0 -330
  165. package/es/plus/saasTeamMembers/type.d.ts +0 -156
  166. package/es/plus/selectHolder/locales.d.ts +0 -27
  167. package/es/plus/walletEditor/locales.d.ts +0 -135
  168. package/es/plus/walletEditor/types.d.ts +0 -52
  169. package/es/plus/walletPassGallery/locales.d.ts +0 -285
  170. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  171. package/es/pro/Login2.0/locales.d.ts +0 -543
  172. package/es/pro/Login2.0/shared/types.d.ts +0 -232
  173. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  174. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  175. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  176. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  177. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  178. package/lib/components/appointmentBooking/locales.d.ts +0 -366
  179. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -249
  180. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -84
  181. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -41
  182. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  183. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -72
  184. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -33
  185. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -27
  186. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -66
  187. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -26
  188. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -39
  189. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -66
  190. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -108
  191. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -57
  192. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -90
  193. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -54
  194. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -48
  195. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -54
  196. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  197. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  198. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  199. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  200. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -214
  201. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  202. package/lib/components/booking/notes/addNote/index.d.ts +0 -4
  203. package/lib/components/ecocup/cupList/const.d.ts +0 -133
  204. package/lib/components/ecocup/hooks.d.ts +0 -49
  205. package/lib/components/ecocup/locales.d.ts +0 -339
  206. package/lib/components/eftpos/index.d.ts +0 -47
  207. package/lib/components/eftpos/locales.d.ts +0 -99
  208. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
  209. package/lib/components/eftposPay/const.d.ts +0 -184
  210. package/lib/components/eftposPay/hooks.d.ts +0 -35
  211. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  212. package/lib/components/eftposPay/locales.d.ts +0 -330
  213. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  214. package/lib/components/eftposPay/payo/const.d.ts +0 -26
  215. package/lib/components/eftposPay/store/index.d.ts +0 -355
  216. package/lib/components/eftposPay/tyro/const.d.ts +0 -17
  217. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  218. package/lib/components/eftposPay/windcave/const.d.ts +0 -119
  219. package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
  220. package/lib/components/eventBooking/locales.d.ts +0 -246
  221. package/lib/components/login/locales.d.ts +0 -24
  222. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  223. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  224. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  225. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
  226. package/lib/components/pay/toC/locales.d.ts +0 -307
  227. package/lib/components/pay/toC/model.d.ts +0 -40
  228. package/lib/components/pinModal/locales.d.ts +0 -27
  229. package/lib/components/pinVerifyModal/locales.d.ts +0 -24
  230. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -81
  231. package/lib/components/productExtension/locales.d.ts +0 -48
  232. package/lib/components/productSelect/locales.d.ts +0 -18
  233. package/lib/components/schedules/locales.d.ts +0 -87
  234. package/lib/components/shoppingCart/locales.d.ts +0 -33
  235. package/lib/components/shoppingCart/type.d.ts +0 -48
  236. package/lib/components/stepController/locales.d.ts +0 -27
  237. package/lib/components/subTotal/locales.d.ts +0 -42
  238. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  239. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  240. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  241. package/lib/components/taxSelect/locales.d.ts +0 -24
  242. package/lib/components/ticketBooking/locales.d.ts +0 -174
  243. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  244. package/lib/components/wallet/utils.d.ts +0 -48
  245. package/lib/components/walletList/locales.d.ts +0 -27
  246. package/lib/components/walletList/types/index.d.ts +0 -194
  247. package/lib/hooks/useEngineContext.d.ts +0 -11
  248. package/lib/hooks/useWindowSize.d.ts +0 -5
  249. package/lib/plus/clientCard/locales.d.ts +0 -18
  250. package/lib/plus/clinetSearch/locales.d.ts +0 -108
  251. package/lib/plus/contactInfo/locales.d.ts +0 -15
  252. package/lib/plus/contactInfoModal/locales.d.ts +0 -66
  253. package/lib/plus/productSelect/locales.d.ts +0 -18
  254. package/lib/plus/saasAttendance/locales.d.ts +0 -318
  255. package/lib/plus/saasAttendance/settings/types.d.ts +0 -128
  256. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -15
  257. package/lib/plus/saasLogin/locales.d.ts +0 -51
  258. package/lib/plus/saasRegister/locales.d.ts +0 -117
  259. package/lib/plus/saasRole/locales.d.ts +0 -193
  260. package/lib/plus/saasRole/types.d.ts +0 -175
  261. package/lib/plus/saasTeamMembers/locales.d.ts +0 -330
  262. package/lib/plus/saasTeamMembers/type.d.ts +0 -156
  263. package/lib/plus/selectHolder/locales.d.ts +0 -27
  264. package/lib/plus/walletEditor/locales.d.ts +0 -135
  265. package/lib/plus/walletEditor/types.d.ts +0 -52
  266. package/lib/plus/walletPassGallery/locales.d.ts +0 -285
  267. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  268. package/lib/pro/Login2.0/locales.d.ts +0 -543
  269. package/lib/pro/Login2.0/shared/types.d.ts +0 -232
  270. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  271. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  272. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  273. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -110,11 +109,4 @@ export declare const walkInData: {
110
109
  id: number;
111
110
  nickname: string;
112
111
  };
113
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
- state: FormState;
115
- } & {
116
- dispatch: (params: {
117
- type: string;
118
- payload: any;
119
- }) => void;
120
- }>;
112
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
166
166
  export declare const getDuration: (duration: number | {
167
167
  type: string;
168
168
  value: number;
169
- }) => number | "flexible" | {
169
+ }) => number | {
170
170
  type: string;
171
171
  value: number;
172
- };
172
+ } | "flexible";
173
173
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
174
174
  export declare const getIsEdit: (state: any) => boolean;
175
175
  export {};
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => import("react").JSX.Element;
3
4
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type CallToBookProps = {
2
3
  show: boolean;
3
4
  type: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => import("react").JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -13,6 +13,7 @@ export interface WalletPassListProps {
13
13
  onChangeDebounce?: boolean;
14
14
  loading?: boolean;
15
15
  onLoadingChange?: (loading: boolean) => void;
16
+ customer_id?: number;
16
17
  }
17
18
  export declare type WalletPassListRef = {
18
19
  init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
@@ -1,5 +1,10 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3
8
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
9
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -23,7 +28,8 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
23
28
  walletSetting = props.walletSetting,
24
29
  onLoadingChange = props.onLoadingChange,
25
30
  propsLoading = props.loading,
26
- onChangeDebounce = props.onChangeDebounce;
31
+ onChangeDebounce = props.onChangeDebounce,
32
+ customer_id = props.customer_id;
27
33
  var _useState = useState(propsData || []),
28
34
  _useState2 = _slicedToArray(_useState, 2),
29
35
  data = _useState2[0],
@@ -59,24 +65,29 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
59
65
  _context.t0 = [];
60
66
  case 7:
61
67
  list = _context.t0;
68
+ list = list.map(function (item) {
69
+ return _objectSpread(_objectSpread({}, item), {}, {
70
+ customer_id: customer_id || item.customer_id
71
+ });
72
+ });
62
73
  if (isFunction(formatList)) {
63
74
  list = formatList(list);
64
75
  }
65
76
  // 转换接口数据至cardList标准数据
66
77
  setData(formatMachineCodeServer2CardList(list, value));
67
- _context.next = 15;
78
+ _context.next = 16;
68
79
  break;
69
- case 12:
70
- _context.prev = 12;
80
+ case 13:
81
+ _context.prev = 13;
71
82
  _context.t1 = _context["catch"](1);
72
83
  console.error(_context.t1);
73
- case 15:
74
- setLoading(false);
75
84
  case 16:
85
+ setLoading(false);
86
+ case 17:
76
87
  case "end":
77
88
  return _context.stop();
78
89
  }
79
- }, _callee, null, [[1, 12]]);
90
+ }, _callee, null, [[1, 13]]);
80
91
  }));
81
92
  return function getList(_x, _x2) {
82
93
  return _ref.apply(this, arguments);
@@ -452,7 +452,8 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
452
452
  onChange: handleCurrentChange,
453
453
  ref: listRef,
454
454
  value: selectValue,
455
- onLoadingChange: setLoading
455
+ onLoadingChange: setLoading,
456
+ customer_id: order === null || order === void 0 ? void 0 : order.customer_id
456
457
  }))), /*#__PURE__*/React.createElement(PisellModal, {
457
458
  title: /*#__PURE__*/React.createElement("div", null, locales.getText('tocPay.text.searchResult')),
458
459
  mobileModalHeight: '90%',
@@ -25,6 +25,8 @@ export default {
25
25
  'pisell2.attendance.group-settings.shift-schedule': 'Shift Schedule',
26
26
  'pisell2.attendance.group-settings.clock-in-method': 'Clock-in Method',
27
27
  'pisell2.attendance.group-settings.correction-policy': 'Correction Policy',
28
+ 'pisell2.attendance.group-settings.data-permission': 'Data Permissions',
29
+ 'pisell2.attendance.group-settings.data-permission.employee-data-view-range': 'Employee Data View Range',
28
30
  'pisell2.attendance.group-settings.actions.search': 'Search',
29
31
  'pisell2.attendance.group-settings.actions.cancel': 'Cancel',
30
32
  'pisell2.attendance.group-settings.actions.confirm': 'Confirm',
@@ -32,6 +34,7 @@ export default {
32
34
  'pisell2.attendance.group-settings.actions.save-settings': 'Save Settings',
33
35
  'pisell2.attendance.group-settings.actions.add-location': 'Add Location',
34
36
  'pisell2.attendance.group-settings.actions.add-location-confirm': 'Add Location',
37
+ 'pisell2.attendance.group-settings.actions.edit-location-confirm': 'Save Changes',
35
38
  'pisell2.attendance.group-settings.shift-schedule.fixed-shifts.title': 'Fixed-Based Attendance',
36
39
  'pisell2.attendance.group-settings.shift-schedule.fixed-shifts.desc': 'Employees clock in/out according to fixed shifts',
37
40
  'pisell2.attendance.group-settings.shift-schedule.scheduled-shifts.set-shifts': 'Set Shifts',
@@ -56,6 +59,19 @@ export default {
56
59
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.label': 'Attendance Type',
57
60
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.scheduled-shifts.title': 'Scheduled Shifts',
58
61
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.scheduled-shifts.desc': 'Employees clock in based on pre-assigned shifts',
62
+ 'pisell2.attendance.group-settings.shift-schedule.preview.working-days': 'Working Days',
63
+ 'pisell2.attendance.group-settings.shift-schedule.preview.days-per-week': 'days per week',
64
+ 'pisell2.attendance.group-settings.shift-schedule.preview.weekly-hours': 'Weekly Hours',
65
+ 'pisell2.attendance.group-settings.shift-schedule.preview.hours': 'hours',
66
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.day': 'Day',
67
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.shift-times': 'Shift Times',
68
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.duration': 'Duration',
69
+ 'pisell2.attendance.group-settings.shift-schedule.preview.no-shift': 'No shift scheduled',
70
+ 'pisell2.attendance.group-settings.shift-schedule.preview.duration': function pisell2AttendanceGroupSettingsShiftSchedulePreviewDuration(hours, minutes) {
71
+ return "".concat(hours, "h ").concat(minutes, "min");
72
+ },
73
+ 'pisell2.attendance.group-settings.shift-schedule.preview.period.am': 'AM',
74
+ 'pisell2.attendance.group-settings.shift-schedule.preview.period.pm': 'PM',
59
75
  'pisell2.attendance.group-settings.clock-in-method.gps.title': 'GPS Location Verification',
60
76
  'pisell2.attendance.group-settings.clock-in-method.gps.desc': 'Employees use Team APP for GPS-based clock-in. System verifies location within approved areas.',
61
77
  'pisell2.attendance.group-settings.clock-in-method.approved-locations.label': function pisell2AttendanceGroupSettingsClockInMethodApprovedLocationsLabel(max) {
@@ -69,6 +85,7 @@ export default {
69
85
  return "".concat(val, " meters");
70
86
  },
71
87
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.title': 'Add Location',
88
+ 'pisell2.attendance.group-settings.clock-in-method.edit-location-modal.title': 'Edit Location',
72
89
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.label': 'Location Name',
73
90
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.placeholder': 'e.g., Main Office, Store A',
74
91
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.validation': 'Please enter a location name',
@@ -80,6 +97,12 @@ export default {
80
97
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.longitude.validation': 'Please enter a valid longitude',
81
98
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.valid-range.label': 'Valid Range (meters)',
82
99
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.tip.google-maps': 'Tip: Click on Google Maps to get coordinates',
100
+ 'pisell2.attendance.group-settings.basic-info.permission.limited': 'Limited',
101
+ 'pisell2.attendance.group-settings.basic-info.permission.unlimited': 'Unlimited',
102
+ 'pisell2.attendance.group-settings.basic-info.permission.this-week': 'This Week',
103
+ 'pisell2.attendance.group-settings.basic-info.permission.this-week.recommended': 'This Week (Recommended)',
104
+ 'pisell2.attendance.group-settings.basic-info.permission.last-week': 'Last Week',
105
+ 'pisell2.attendance.group-settings.basic-info.permission.this-month': 'This Month',
83
106
  'pisell2.attendance.group-settings.correction-policy.allow-corrections.title': 'Allow Corrections',
84
107
  'pisell2.attendance.group-settings.correction-policy.allow-corrections.desc': 'Employees can submit correction requests for approval',
85
108
  'pisell2.attendance.group-settings.correction-policy.types.label': 'Correction Types',
@@ -142,6 +165,8 @@ export default {
142
165
  'pisell2.attendance.group-settings.shift-schedule': '考勤班次',
143
166
  'pisell2.attendance.group-settings.clock-in-method': '考勤方式',
144
167
  'pisell2.attendance.group-settings.correction-policy': '补卡设置',
168
+ 'pisell2.attendance.group-settings.data-permission': '数据权限',
169
+ 'pisell2.attendance.group-settings.data-permission.employee-data-view-range': '员工数据查看范围',
145
170
  'pisell2.attendance.group-settings.actions.search': '搜索',
146
171
  'pisell2.attendance.group-settings.actions.cancel': '取消',
147
172
  'pisell2.attendance.group-settings.actions.confirm': '确认',
@@ -149,6 +174,7 @@ export default {
149
174
  'pisell2.attendance.group-settings.actions.save-settings': '保存设置',
150
175
  'pisell2.attendance.group-settings.actions.add-location': '新增考勤地点',
151
176
  'pisell2.attendance.group-settings.actions.add-location-confirm': '添加地点',
177
+ 'pisell2.attendance.group-settings.actions.edit-location-confirm': '保存修改',
152
178
  'pisell2.attendance.group-settings.shift-schedule.fixed-shifts.title': '固定班制考勤',
153
179
  'pisell2.attendance.group-settings.shift-schedule.fixed-shifts.desc': '員工需按照预设的班次进行打卡。',
154
180
  'pisell2.attendance.group-settings.shift-schedule.scheduled-shifts.set-shifts': '设置排班',
@@ -173,6 +199,19 @@ export default {
173
199
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.label': '考勤类型',
174
200
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.scheduled-shifts.title': '排班制',
175
201
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.scheduled-shifts.desc': '员工按照预设班次打卡',
202
+ 'pisell2.attendance.group-settings.shift-schedule.preview.working-days': '每周工作天数',
203
+ 'pisell2.attendance.group-settings.shift-schedule.preview.days-per-week': '天每周',
204
+ 'pisell2.attendance.group-settings.shift-schedule.preview.weekly-hours': '每周总工时',
205
+ 'pisell2.attendance.group-settings.shift-schedule.preview.hours': '小时',
206
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.day': '星期',
207
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.shift-times': '班次时间',
208
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.duration': '时长',
209
+ 'pisell2.attendance.group-settings.shift-schedule.preview.no-shift': '无班次',
210
+ 'pisell2.attendance.group-settings.shift-schedule.preview.duration': function pisell2AttendanceGroupSettingsShiftSchedulePreviewDuration(hours, minutes) {
211
+ return "".concat(hours, "\u5C0F\u65F6").concat(minutes, "\u5206\u949F");
212
+ },
213
+ 'pisell2.attendance.group-settings.shift-schedule.preview.period.am': '上午',
214
+ 'pisell2.attendance.group-settings.shift-schedule.preview.period.pm': '下午',
176
215
  'pisell2.attendance.group-settings.clock-in-method.gps.title': 'GPS定位打卡',
177
216
  'pisell2.attendance.group-settings.clock-in-method.gps.desc': '员工通过Team APP进行GPS定位打卡,系统验证是否在考勤范围内',
178
217
  'pisell2.attendance.group-settings.clock-in-method.approved-locations.label': function pisell2AttendanceGroupSettingsClockInMethodApprovedLocationsLabel(max) {
@@ -186,6 +225,7 @@ export default {
186
225
  return "".concat(val, " \u7C73");
187
226
  },
188
227
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.title': '新增考勤地点',
228
+ 'pisell2.attendance.group-settings.clock-in-method.edit-location-modal.title': '编辑考勤地点',
189
229
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.label': '地点名称',
190
230
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.placeholder': '例如:总部大楼、门店A',
191
231
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.validation': '请输入地点名称',
@@ -197,6 +237,12 @@ export default {
197
237
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.longitude.validation': '请输入有效的经度',
198
238
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.valid-range.label': '有效范围(米)',
199
239
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.tip.google-maps': '提示:可以在Google Maps中点击位置获取经纬度坐标',
240
+ 'pisell2.attendance.group-settings.basic-info.permission.limited': '限制',
241
+ 'pisell2.attendance.group-settings.basic-info.permission.unlimited': '不限制',
242
+ 'pisell2.attendance.group-settings.basic-info.permission.this-week': '本周',
243
+ 'pisell2.attendance.group-settings.basic-info.permission.this-week.recommended': '本周(推荐)',
244
+ 'pisell2.attendance.group-settings.basic-info.permission.last-week': '上周',
245
+ 'pisell2.attendance.group-settings.basic-info.permission.this-month': '本月',
200
246
  'pisell2.attendance.group-settings.correction-policy.allow-corrections.title': '允许补卡',
201
247
  'pisell2.attendance.group-settings.correction-policy.allow-corrections.desc': '员工可以提交补卡申请,需要审批',
202
248
  'pisell2.attendance.group-settings.correction-policy.types.label': '补卡类型',
@@ -208,7 +254,7 @@ export default {
208
254
  'pisell2.attendance.group-settings.correction-policy.types.early-out.desc': '提前下班',
209
255
  'pisell2.attendance.group-settings.correction-policy.types.normal.title': '正常',
210
256
  'pisell2.attendance.group-settings.correction-policy.types.normal.desc': '正常打卡修正',
211
- 'pisell2.attendance.group-settings.correction-policy.approver.label': '审批补卡人',
257
+ 'pisell2.attendance.group-settings.correction-policy.approver.label': '审批人',
212
258
  'pisell2.attendance.group-settings.correction-policy.approver.placeholder': '请选择审批人',
213
259
  'pisell2.attendance.group-settings.correction-policy.approver.required': '请选择审批人',
214
260
  'pisell2.attendance.group-settings.correction-policy.time-limit.label': '补卡时间限制',
@@ -259,6 +305,8 @@ export default {
259
305
  'pisell2.attendance.group-settings.shift-schedule': '考勤班次',
260
306
  'pisell2.attendance.group-settings.clock-in-method': '考勤方式',
261
307
  'pisell2.attendance.group-settings.correction-policy': '補卡設定',
308
+ 'pisell2.attendance.group-settings.data-permission': '數據權限',
309
+ 'pisell2.attendance.group-settings.data-permission.employee-data-view-range': '員工數據查看範圍',
262
310
  'pisell2.attendance.group-settings.actions.search': '搜索',
263
311
  'pisell2.attendance.group-settings.actions.cancel': '取消',
264
312
  'pisell2.attendance.group-settings.actions.confirm': '確認',
@@ -266,6 +314,7 @@ export default {
266
314
  'pisell2.attendance.group-settings.actions.save-settings': '儲存設定',
267
315
  'pisell2.attendance.group-settings.actions.add-location': '新增考勤地點',
268
316
  'pisell2.attendance.group-settings.actions.add-location-confirm': '添加地點',
317
+ 'pisell2.attendance.group-settings.actions.edit-location-confirm': '保存修改',
269
318
  'pisell2.attendance.group-settings.shift-schedule.fixed-shifts.title': '固定班制考勤',
270
319
  'pisell2.attendance.group-settings.shift-schedule.fixed-shifts.desc': '員工需按照預設的班次進行打卡。',
271
320
  'pisell2.attendance.group-settings.shift-schedule.scheduled-shifts.set-shifts': '設置排班',
@@ -290,6 +339,19 @@ export default {
290
339
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.label': '考勤類型',
291
340
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.scheduled-shifts.title': '排班制',
292
341
  'pisell2.attendance.group-settings.shift-schedule.attendance-type.scheduled-shifts.desc': '員工按照預設班次打卡',
342
+ 'pisell2.attendance.group-settings.shift-schedule.preview.working-days': '每週工作天數',
343
+ 'pisell2.attendance.group-settings.shift-schedule.preview.days-per-week': '天每週',
344
+ 'pisell2.attendance.group-settings.shift-schedule.preview.weekly-hours': '每週總工時',
345
+ 'pisell2.attendance.group-settings.shift-schedule.preview.hours': '小時',
346
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.day': '星期',
347
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.shift-times': '班次時間',
348
+ 'pisell2.attendance.group-settings.shift-schedule.preview.table.duration': '時長',
349
+ 'pisell2.attendance.group-settings.shift-schedule.preview.no-shift': '無班次',
350
+ 'pisell2.attendance.group-settings.shift-schedule.preview.duration': function pisell2AttendanceGroupSettingsShiftSchedulePreviewDuration(hours, minutes) {
351
+ return "".concat(hours, "\u5C0F\u6642").concat(minutes, "\u5206\u9418");
352
+ },
353
+ 'pisell2.attendance.group-settings.shift-schedule.preview.period.am': '上午',
354
+ 'pisell2.attendance.group-settings.shift-schedule.preview.period.pm': '下午',
293
355
  'pisell2.attendance.group-settings.clock-in-method.gps.title': 'GPS定位打卡',
294
356
  'pisell2.attendance.group-settings.clock-in-method.gps.desc': '員工透過Team APP進行GPS定位打卡,系統驗證是否在考勤範圍內',
295
357
  'pisell2.attendance.group-settings.clock-in-method.approved-locations.label': function pisell2AttendanceGroupSettingsClockInMethodApprovedLocationsLabel(max) {
@@ -303,6 +365,7 @@ export default {
303
365
  return "".concat(val, " \u7C73");
304
366
  },
305
367
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.title': '新增考勤地點',
368
+ 'pisell2.attendance.group-settings.clock-in-method.edit-location-modal.title': '編輯考勤地點',
306
369
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.label': '地點名稱',
307
370
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.placeholder': '例如:總部大樓、門店A',
308
371
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.location-name.validation': '請輸入地點名稱',
@@ -314,6 +377,12 @@ export default {
314
377
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.longitude.validation': '請輸入有效的經度',
315
378
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.valid-range.label': '有效範圍(米)',
316
379
  'pisell2.attendance.group-settings.clock-in-method.add-location-modal.tip.google-maps': '提示:可以在Google Maps中點擊位置獲取經緯度座標',
380
+ 'pisell2.attendance.group-settings.basic-info.permission.limited': '限制',
381
+ 'pisell2.attendance.group-settings.basic-info.permission.unlimited': '不限制',
382
+ 'pisell2.attendance.group-settings.basic-info.permission.this-week': '本週',
383
+ 'pisell2.attendance.group-settings.basic-info.permission.this-week.recommended': '本週(推薦)',
384
+ 'pisell2.attendance.group-settings.basic-info.permission.last-week': '上週',
385
+ 'pisell2.attendance.group-settings.basic-info.permission.this-month': '本月',
317
386
  'pisell2.attendance.group-settings.correction-policy.allow-corrections.title': '允許補卡',
318
387
  'pisell2.attendance.group-settings.correction-policy.allow-corrections.desc': '員工可以提交補卡申請,需要審批',
319
388
  'pisell2.attendance.group-settings.correction-policy.types.label': '補卡類型',
@@ -325,7 +394,7 @@ export default {
325
394
  'pisell2.attendance.group-settings.correction-policy.types.early-out.desc': '提前下班',
326
395
  'pisell2.attendance.group-settings.correction-policy.types.normal.title': '正常',
327
396
  'pisell2.attendance.group-settings.correction-policy.types.normal.desc': '正常打卡修正',
328
- 'pisell2.attendance.group-settings.correction-policy.approver.label': '審批補卡人',
397
+ 'pisell2.attendance.group-settings.correction-policy.approver.label': '審批人',
329
398
  'pisell2.attendance.group-settings.correction-policy.approver.placeholder': '請選擇審批人',
330
399
  'pisell2.attendance.group-settings.correction-policy.approver.required': '請選擇審批人',
331
400
  'pisell2.attendance.group-settings.correction-policy.time-limit.label': '補卡時間限制',
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const PermissonTab: React.FC<{
3
+ id?: string;
4
+ }>;
5
+ export default PermissonTab;
@@ -0,0 +1,79 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import React, { useEffect } from 'react';
8
+ import { Form, Select, Radio } from 'antd';
9
+ import { locales } from '@pisell/utils';
10
+ var PermissionField = function PermissionField(props) {
11
+ var _props$value2;
12
+ useEffect(function () {
13
+ var _props$value;
14
+ if (typeof ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.member_data_view_range) === 'undefined') {
15
+ var _props$onChange;
16
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, _objectSpread(_objectSpread({}, props.value || {}), {}, {
17
+ member_data_view_range: ['this_week']
18
+ }));
19
+ }
20
+ }, []);
21
+ var options = [{
22
+ label: locales.getText('pisell2.attendance.group-settings.basic-info.permission.this-week.recommended'),
23
+ value: 'this_week'
24
+ }, {
25
+ label: locales.getText('pisell2.attendance.group-settings.basic-info.permission.last-week'),
26
+ value: 'last_week'
27
+ }, {
28
+ label: locales.getText('pisell2.attendance.group-settings.basic-info.permission.this-month'),
29
+ value: 'this_month'
30
+ }];
31
+ var value = (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.member_data_view_range;
32
+ var isLimited = Array.isArray(value) && value.length > 0;
33
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Radio.Group, {
34
+ value: isLimited ? 'limited' : 'unlimited',
35
+ onChange: function onChange(e) {
36
+ var nextMode = e.target.value;
37
+ if (nextMode === 'limited') {
38
+ var _props$onChange2;
39
+ var next = Array.isArray(value) && value.length > 0 ? value : ['this_week'];
40
+ (_props$onChange2 = props.onChange) === null || _props$onChange2 === void 0 || _props$onChange2.call(props, _objectSpread(_objectSpread({}, props.value || {}), {}, {
41
+ member_data_view_range: next
42
+ }));
43
+ } else {
44
+ var _props$onChange3;
45
+ (_props$onChange3 = props.onChange) === null || _props$onChange3 === void 0 || _props$onChange3.call(props, _objectSpread(_objectSpread({}, props.value || {}), {}, {
46
+ member_data_view_range: []
47
+ }));
48
+ }
49
+ },
50
+ style: {
51
+ marginBottom: 8
52
+ }
53
+ }, /*#__PURE__*/React.createElement(Radio, {
54
+ value: "limited"
55
+ }, locales.getText('pisell2.attendance.group-settings.basic-info.permission.limited')), /*#__PURE__*/React.createElement(Radio, {
56
+ value: "unlimited"
57
+ }, locales.getText('pisell2.attendance.group-settings.basic-info.permission.unlimited'))), isLimited && /*#__PURE__*/React.createElement(Select, {
58
+ mode: "multiple",
59
+ allowClear: true,
60
+ value: value,
61
+ options: options,
62
+ onChange: function onChange(next) {
63
+ var _props$onChange4;
64
+ (_props$onChange4 = props.onChange) === null || _props$onChange4 === void 0 || _props$onChange4.call(props, _objectSpread(_objectSpread({}, props.value || {}), {}, {
65
+ member_data_view_range: next.length > 0 ? next : []
66
+ }));
67
+ }
68
+ }));
69
+ };
70
+ var PermissonTab = function PermissonTab(props) {
71
+ return /*#__PURE__*/React.createElement("div", {
72
+ className: "saas-attendance-group-settings__panel",
73
+ id: props.id
74
+ }, /*#__PURE__*/React.createElement(Form.Item, {
75
+ label: locales.getText('pisell2.attendance.group-settings.data-permission.employee-data-view-range'),
76
+ name: "permission"
77
+ }, /*#__PURE__*/React.createElement(PermissionField, null)));
78
+ };
79
+ export default PermissonTab;
@@ -13,8 +13,7 @@ import { Button, Form, Radio } from 'antd';
13
13
  import { Icon } from '@pisell/materials';
14
14
  import { locales } from '@pisell/utils';
15
15
  import ShiftModal from "./components/shiftModal";
16
-
17
- // 注意时间,不要存在交叉的情况
16
+ import ShiftPreview from "./components/shiftModal/ShiftPreview";
18
17
  var ScheduleSetting = function ScheduleSetting(props) {
19
18
  var value = props.value,
20
19
  onChange = props.onChange;
@@ -104,6 +103,13 @@ var ShiftScheduleTab = function ShiftScheduleTab(props) {
104
103
  return validator;
105
104
  }()
106
105
  }]
107
- }, /*#__PURE__*/React.createElement(ScheduleSetting, null)));
106
+ }, /*#__PURE__*/React.createElement(ScheduleSetting, null)), /*#__PURE__*/React.createElement(Form.Item, {
107
+ noStyle: true,
108
+ shouldUpdate: true
109
+ }, function (form) {
110
+ return /*#__PURE__*/React.createElement(ShiftPreview, {
111
+ value: form.getFieldValue(['shift', 'fixed'])
112
+ });
113
+ }));
108
114
  };
109
115
  export default ShiftScheduleTab;