@pisell/private-materials 6.3.117 → 6.3.119

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 (299) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +4 -4
  9. package/es/components/Sales/Cart/utils.d.ts +68 -0
  10. package/es/components/Sales/Checkout/utils.d.ts +41 -0
  11. package/es/components/Sales/Summary/utils.d.ts +58 -0
  12. package/es/components/appointmentBooking/locales.d.ts +606 -0
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  15. package/es/components/booking/components/voucher/utils.d.ts +4 -0
  16. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  17. package/es/components/booking/forms/model.d.ts +10 -1
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  19. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  20. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  21. package/es/components/booking/info/index.d.ts +4 -0
  22. package/es/components/booking/info/model.d.ts +10 -1
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  25. package/es/components/booking/info/service2/utils.d.ts +1 -1
  26. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  27. package/es/components/booking/model.d.ts +9 -1
  28. package/es/components/booking/notes/model.d.ts +10 -1
  29. package/es/components/booking/payments/model.d.ts +10 -1
  30. package/es/components/booking/utils.d.ts +2 -2
  31. package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  32. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
  33. package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  34. package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
  35. package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
  36. package/es/components/ecocup/cupList/const.d.ts +140 -0
  37. package/es/components/ecocup/cupProject/const.d.ts +7 -0
  38. package/es/components/ecocup/customerList/const.d.ts +44 -0
  39. package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
  40. package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  41. package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  42. package/es/components/ecocup/hooks.d.ts +57 -0
  43. package/es/components/ecocup/locales.d.ts +653 -0
  44. package/es/components/ecocup/types.d.ts +103 -0
  45. package/es/components/ecocup/utils/download.d.ts +7 -0
  46. package/es/components/ecocup/utils/index.d.ts +2 -0
  47. package/es/components/ecocup/utils/scanListener.d.ts +20 -0
  48. package/es/components/eftpos/const.d.ts +64 -0
  49. package/es/components/eftpos/hooks.d.ts +34 -0
  50. package/es/components/eftpos/locales.d.ts +163 -0
  51. package/es/components/eftposPay/amount.d.ts +1 -1
  52. package/es/components/eftposPay/const.d.ts +186 -0
  53. package/es/components/eftposPay/device.d.ts +1 -1
  54. package/es/components/eftposPay/hooks.d.ts +2 -2
  55. package/es/components/eftposPay/locales.d.ts +572 -0
  56. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  57. package/es/components/eftposPay/store/index.d.ts +358 -0
  58. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  60. package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
  61. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  66. package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  67. package/es/components/pay/toC/locales.d.ts +626 -0
  68. package/es/components/pay/toC/model.d.ts +9 -1
  69. package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  70. package/es/components/schedules/locales.d.ts +143 -0
  71. package/es/components/schedules/model.d.ts +9 -1
  72. package/es/components/shoppingCart/locales.d.ts +53 -0
  73. package/es/components/shoppingCart/type.d.ts +48 -0
  74. package/es/components/subTotal/locales.d.ts +68 -0
  75. package/es/components/systemSettings/registry/locales.d.ts +534 -0
  76. package/es/components/systemSettings/registry/services.d.ts +97 -0
  77. package/es/components/systemSettings/registry/types.d.ts +140 -0
  78. package/es/components/taxSelect/locales.d.ts +38 -0
  79. package/es/components/ticketBooking/locales.d.ts +304 -0
  80. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  81. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  82. package/es/hooks/useEngineContext.d.ts +11 -0
  83. package/es/hooks/useLocale.d.ts +2 -0
  84. package/es/hooks/usePaymentLogger.d.ts +1 -0
  85. package/es/hooks/useThemeTokens.d.ts +7 -0
  86. package/es/hooks/useWindowSize.d.ts +5 -0
  87. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  88. package/es/plus/orderList/config.d.ts +2 -2
  89. package/es/plus/orderList/locales.d.ts +618 -0
  90. package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
  91. package/es/plus/pisellSalesGrid/types.d.ts +170 -0
  92. package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
  93. package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
  94. package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
  95. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  96. package/es/plus/saasAttendance/locales.d.ts +591 -0
  97. package/es/plus/saasAttendance/settings/types.d.ts +136 -0
  98. package/es/plus/saasTeamMembers/locales.d.ts +546 -0
  99. package/es/plus/selectHolder/locales.d.ts +35 -0
  100. package/es/plus/skuOptionsSelection/components/NormalCard/index.js +10 -3
  101. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +6 -2
  102. package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
  103. package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -10
  104. package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  105. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  106. package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  107. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  108. package/es/plus/skuOptionsSelection/index.js +2 -1
  109. package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
  110. package/es/plus/skuOptionsSelection/locales.js +10 -5
  111. package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  112. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  113. package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
  114. package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
  115. package/es/plus/skuOptionsSelection/types.d.ts +458 -0
  116. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  117. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  118. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
  119. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  120. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
  121. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +19 -6
  122. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +45 -58
  123. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  124. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
  125. package/es/plus/walletPassGallery/locales.d.ts +483 -0
  126. package/es/pro/Cards/components/SKUCard/index.js +5 -2
  127. package/es/pro/Cards/components/SKUCard/index.less +18 -3
  128. package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
  129. package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
  130. package/es/pro/Login2.0/locales.d.ts +908 -0
  131. package/es/pro/Login2.0/shared/types.d.ts +234 -0
  132. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  133. package/es/pro/Selector/Item.d.ts +14 -0
  134. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  135. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  136. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  137. package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
  138. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  139. package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  140. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  141. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  142. package/es/pro/Selector/components/index.d.ts +4 -0
  143. package/es/pro/Selector/demo.d.ts +3 -0
  144. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  145. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  146. package/es/pro/Selector/index.d.ts +11 -0
  147. package/es/pro/Selector/locales.d.ts +58 -0
  148. package/es/pro/Selector/types.d.ts +223 -0
  149. package/es/pro/Selector/utils/index.d.ts +49 -0
  150. package/es/pro/keyboards/locales.d.ts +38 -0
  151. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  152. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  153. package/es/test/setup.d.ts +1 -0
  154. package/lib/components/Sales/Cart/utils.d.ts +68 -0
  155. package/lib/components/Sales/Checkout/utils.d.ts +41 -0
  156. package/lib/components/Sales/Summary/utils.d.ts +58 -0
  157. package/lib/components/appointmentBooking/locales.d.ts +606 -0
  158. package/lib/components/booking/addons/model.d.ts +10 -1
  159. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  160. package/lib/components/booking/components/voucher/utils.d.ts +4 -0
  161. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  162. package/lib/components/booking/forms/model.d.ts +10 -1
  163. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  164. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  165. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  166. package/lib/components/booking/info/index.d.ts +4 -0
  167. package/lib/components/booking/info/model.d.ts +10 -1
  168. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  169. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  170. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  171. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  172. package/lib/components/booking/model.d.ts +9 -1
  173. package/lib/components/booking/notes/model.d.ts +10 -1
  174. package/lib/components/booking/payments/model.d.ts +10 -1
  175. package/lib/components/booking/utils.d.ts +2 -2
  176. package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
  177. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
  178. package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
  179. package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
  180. package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
  181. package/lib/components/ecocup/cupList/const.d.ts +140 -0
  182. package/lib/components/ecocup/cupProject/const.d.ts +7 -0
  183. package/lib/components/ecocup/customerList/const.d.ts +44 -0
  184. package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
  185. package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
  186. package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
  187. package/lib/components/ecocup/hooks.d.ts +57 -0
  188. package/lib/components/ecocup/locales.d.ts +653 -0
  189. package/lib/components/ecocup/types.d.ts +103 -0
  190. package/lib/components/ecocup/utils/download.d.ts +7 -0
  191. package/lib/components/ecocup/utils/index.d.ts +2 -0
  192. package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
  193. package/lib/components/eftpos/const.d.ts +64 -0
  194. package/lib/components/eftpos/hooks.d.ts +34 -0
  195. package/lib/components/eftpos/locales.d.ts +163 -0
  196. package/lib/components/eftposPay/amount.d.ts +1 -1
  197. package/lib/components/eftposPay/const.d.ts +186 -0
  198. package/lib/components/eftposPay/device.d.ts +1 -1
  199. package/lib/components/eftposPay/hooks.d.ts +2 -2
  200. package/lib/components/eftposPay/locales.d.ts +572 -0
  201. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  202. package/lib/components/eftposPay/store/index.d.ts +358 -0
  203. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  205. package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
  206. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  207. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  208. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  210. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
  212. package/lib/components/pay/toC/locales.d.ts +626 -0
  213. package/lib/components/pay/toC/model.d.ts +9 -1
  214. package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  215. package/lib/components/schedules/locales.d.ts +143 -0
  216. package/lib/components/schedules/model.d.ts +9 -1
  217. package/lib/components/shoppingCart/locales.d.ts +53 -0
  218. package/lib/components/shoppingCart/type.d.ts +48 -0
  219. package/lib/components/subTotal/locales.d.ts +68 -0
  220. package/lib/components/systemSettings/registry/locales.d.ts +534 -0
  221. package/lib/components/systemSettings/registry/services.d.ts +97 -0
  222. package/lib/components/systemSettings/registry/types.d.ts +140 -0
  223. package/lib/components/taxSelect/locales.d.ts +38 -0
  224. package/lib/components/ticketBooking/locales.d.ts +304 -0
  225. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  226. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  227. package/lib/hooks/useEngineContext.d.ts +11 -0
  228. package/lib/hooks/useLocale.d.ts +2 -0
  229. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  230. package/lib/hooks/useThemeTokens.d.ts +7 -0
  231. package/lib/hooks/useWindowSize.d.ts +5 -0
  232. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  233. package/lib/plus/orderList/config.d.ts +2 -2
  234. package/lib/plus/orderList/locales.d.ts +618 -0
  235. package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
  236. package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
  237. package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
  238. package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
  239. package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
  240. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  241. package/lib/plus/saasAttendance/locales.d.ts +591 -0
  242. package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
  243. package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
  244. package/lib/plus/selectHolder/locales.d.ts +35 -0
  245. package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +15 -9
  246. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.js +3 -3
  247. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +20 -7
  248. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +7 -7
  249. package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  250. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  251. package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  252. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  253. package/lib/plus/skuOptionsSelection/index.js +2 -1
  254. package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
  255. package/lib/plus/skuOptionsSelection/locales.js +10 -5
  256. package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  257. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  258. package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
  259. package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
  260. package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
  261. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  262. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  263. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
  264. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  265. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +1 -1
  266. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +15 -4
  267. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +39 -54
  268. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  269. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +1 -1
  270. package/lib/plus/walletPassGallery/locales.d.ts +483 -0
  271. package/lib/pro/Cards/components/SKUCard/index.js +4 -7
  272. package/lib/pro/Cards/components/SKUCard/index.less +18 -3
  273. package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
  274. package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
  275. package/lib/pro/Login2.0/locales.d.ts +908 -0
  276. package/lib/pro/Login2.0/shared/types.d.ts +234 -0
  277. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  278. package/lib/pro/Selector/Item.d.ts +14 -0
  279. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  280. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  281. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  282. package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
  283. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  284. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
  285. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  286. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  287. package/lib/pro/Selector/components/index.d.ts +4 -0
  288. package/lib/pro/Selector/demo.d.ts +3 -0
  289. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  290. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  291. package/lib/pro/Selector/index.d.ts +11 -0
  292. package/lib/pro/Selector/locales.d.ts +58 -0
  293. package/lib/pro/Selector/types.d.ts +223 -0
  294. package/lib/pro/Selector/utils/index.d.ts +49 -0
  295. package/lib/pro/keyboards/locales.d.ts +38 -0
  296. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  297. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  298. package/lib/test/setup.d.ts +1 -0
  299. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.pro.selector.mode.single': string;
4
+ 'pisell2.pro.selector.mode.multiple': string;
5
+ 'pisell2.pro.selector.validate.required-msg': string;
6
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
7
+ 'pisell2.pro.selector.required-tag': string;
8
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
9
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
10
+ 'pisell2.pro.selector.tip.require-one-option': string;
11
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
12
+ };
13
+ 'zh-CN': {
14
+ 'pisell2.pro.selector.mode.single': string;
15
+ 'pisell2.pro.selector.mode.multiple': string;
16
+ 'pisell2.pro.selector.validate.required-msg': string;
17
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
18
+ 'pisell2.pro.selector.required-tag': string;
19
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
20
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
21
+ 'pisell2.pro.selector.tip.require-one-option': string;
22
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
23
+ };
24
+ 'zh-HK': {
25
+ 'pisell2.pro.selector.mode.single': string;
26
+ 'pisell2.pro.selector.mode.multiple': string;
27
+ 'pisell2.pro.selector.validate.required-msg': string;
28
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
29
+ 'pisell2.pro.selector.required-tag': string;
30
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
31
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
32
+ 'pisell2.pro.selector.tip.require-one-option': string;
33
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
34
+ };
35
+ ja: {
36
+ 'pisell2.pro.selector.mode.single': string;
37
+ 'pisell2.pro.selector.mode.multiple': string;
38
+ 'pisell2.pro.selector.validate.required-msg': string;
39
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
40
+ 'pisell2.pro.selector.required-tag': string;
41
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
42
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
43
+ 'pisell2.pro.selector.tip.require-one-option': string;
44
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
45
+ };
46
+ pt: {
47
+ 'pisell2.pro.selector.mode.single': string;
48
+ 'pisell2.pro.selector.mode.multiple': string;
49
+ 'pisell2.pro.selector.validate.required-msg': string;
50
+ 'pisell2.pro.selector.validate.requireOneOf-msg': string;
51
+ 'pisell2.pro.selector.required-tag': string;
52
+ 'pisell2.pro.selector.validate.min-selection': (min: number, label?: string) => string;
53
+ 'pisell2.pro.selector.validate.max-selection': (max: number, label?: string) => string;
54
+ 'pisell2.pro.selector.tip.require-one-option': string;
55
+ 'pisell2.pro.selector.tip.min-max-selection': (min: number, max: number) => string;
56
+ };
57
+ };
58
+ export default _default;
@@ -0,0 +1,223 @@
1
+ /// <reference types="react" />
2
+ export interface ExprRule {
3
+ [key: string]: any;
4
+ }
5
+ export interface RuleConfig {
6
+ autoValidate?: boolean;
7
+ required?: 0 | 1;
8
+ min?: number;
9
+ max?: number;
10
+ mutex?: Array<Array<OptionKey>>;
11
+ customValidator?: (value: SelectionValue) => Promise<void>;
12
+ }
13
+ export interface GroupItem {
14
+ id?: number;
15
+ title?: string;
16
+ mode?: 'single' | 'multiple';
17
+ valueType?: 'primitive' | 'object';
18
+ preserve?: boolean;
19
+ fieldNames?: {
20
+ label?: string;
21
+ value?: string;
22
+ cover?: string;
23
+ };
24
+ ruleConfig?: RuleConfig;
25
+ dataSource?: OptionItem[];
26
+ }
27
+ export interface OptionItem {
28
+ id?: number;
29
+ title?: string;
30
+ label?: string;
31
+ value?: OptionKey;
32
+ cover?: string;
33
+ groups?: GroupItem[];
34
+ disabled?: boolean;
35
+ ruleConfig?: {
36
+ min?: number;
37
+ max?: number;
38
+ };
39
+ [key: string]: any;
40
+ }
41
+ export declare type OptionKey = number | string;
42
+ /** 原始值类型:单选时为id,多选时为id[] */
43
+ export declare type SelectionValuePrimitive<T = OptionKey> = T | T[];
44
+ /** 复杂对象值类型:包含id、数量等额外信息 */
45
+ export interface SelectionValueObject<T = OptionKey> {
46
+ value?: T;
47
+ quantity?: number;
48
+ [key: string]: any;
49
+ }
50
+ /** 单选值类型 */
51
+ export declare type SelectionValueSingle<T = OptionKey> = T | SelectionValueObject<T>;
52
+ /** 多选值类型 */
53
+ export declare type SelectionValueMultiple<T = OptionKey> = T[] | SelectionValueObject<T>[];
54
+ /** 选择器值类型 */
55
+ export declare type SelectionValue<T = OptionKey> = SelectionValueSingle<T> | SelectionValueMultiple<T>;
56
+ export declare type RenderItemProps = {
57
+ dataSource: OptionItem;
58
+ actions: any;
59
+ optionItemValue?: any;
60
+ indicator: React.ReactNode;
61
+ numberSelector: React.ReactNode;
62
+ values: any;
63
+ quantityInfo: {
64
+ maxReached: boolean;
65
+ remainingCount: number;
66
+ selectedCount: number;
67
+ };
68
+ };
69
+ export declare type ItemProps = {
70
+ layout?: 'vertical' | 'horizontal';
71
+ renderContent?: (props: {
72
+ dataSource: OptionItem;
73
+ }) => React.ReactNode;
74
+ styles?: {
75
+ [key: string]: React.CSSProperties;
76
+ };
77
+ [key: string]: any;
78
+ };
79
+ export declare type LayoutType = 'antdGrid' | 'custom';
80
+ /** 单个断点的完整配置 */
81
+ export declare type BreakpointConfig = {
82
+ columns: number;
83
+ gap?: number | string;
84
+ style?: React.CSSProperties;
85
+ };
86
+ /**
87
+ * 断点映射
88
+ * key: 最小宽度(px)
89
+ * value: 列数(简写)或完整配置
90
+ * @example { 0: 1, 420: 2, 630: 3 } // 简写
91
+ * @example { 0: { columns: 1, gap: 12 }, 420: { columns: 2, gap: 16 } } // 完整
92
+ */
93
+ export declare type BreakpointMap = Record<number, number | BreakpointConfig>;
94
+ /** 响应式布局配置 */
95
+ export declare type ResponsiveConfig = {
96
+ /** 每项最小宽度,系统自动计算断点 */
97
+ minWidth?: number;
98
+ /** 最大列数限制 */
99
+ maxColumns?: number;
100
+ /**
101
+ * 显式断点映射,key 为容器最小宽度(px)
102
+ * @example { 0: 1, 420: 2, 630: 3, 841: 4, 1367: 5 }
103
+ * @example { 0: { columns: 1, gap: 12 }, 420: { columns: 2, gap: 16 } }
104
+ */
105
+ breakpoints?: BreakpointMap;
106
+ /** 默认列数(容器宽度小于所有断点时),默认为 1 */
107
+ defaultColumns?: number;
108
+ /** 间距,默认为 16 */
109
+ gap?: number | string;
110
+ /** ResizeObserver 防抖延迟(ms),默认为 0 */
111
+ debounce?: number;
112
+ };
113
+ export declare type LayoutConfig = {
114
+ type?: LayoutType;
115
+ className?: string;
116
+ containerStyle?: React.CSSProperties;
117
+ /**
118
+ * 响应式布局配置
119
+ * 存在此配置时自动启用 ResizeObserver 响应式布局
120
+ */
121
+ responsive?: ResponsiveConfig;
122
+ columns?: number;
123
+ gutter?: number | object | Array<number>;
124
+ align?: 'top' | 'middle' | 'bottom' | 'stretch';
125
+ justify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around';
126
+ wrap?: boolean;
127
+ colConfig?: {
128
+ [key: string]: any;
129
+ };
130
+ };
131
+ export interface PresetConfig {
132
+ variant?: '1' | '2' | '3' | '4' | '5';
133
+ }
134
+ export declare type ItemLayout = 'vertical' | 'horizontal';
135
+ export declare type SelectorVariant = 'default' | 'select' | 'card' | 'media';
136
+ export declare type HeaderProps = {
137
+ visible?: boolean;
138
+ style?: React.CSSProperties;
139
+ title?: {
140
+ visible?: boolean;
141
+ text?: React.ReactNode;
142
+ style?: React.CSSProperties;
143
+ };
144
+ icon?: {
145
+ visible?: boolean;
146
+ icon?: React.ReactNode;
147
+ style?: React.CSSProperties;
148
+ };
149
+ tip?: {
150
+ visible?: boolean;
151
+ text?: React.ReactNode;
152
+ style?: React.CSSProperties;
153
+ };
154
+ renderExtra?: (props: {
155
+ dataSource: OptionItem;
156
+ values: SelectionValue;
157
+ }) => React.ReactNode;
158
+ };
159
+ export interface SelectorProps<T = OptionKey> extends GroupItem {
160
+ className?: string;
161
+ theme?: {
162
+ token?: {
163
+ colorPrimary?: string;
164
+ };
165
+ };
166
+ value?: SelectionValue<T>;
167
+ defaultValue?: SelectionValue<T>;
168
+ onChange?: (value: SelectionValue<T>) => void;
169
+ onClear?: () => void;
170
+ disabled?: boolean;
171
+ variant?: SelectorVariant;
172
+ itemLayout?: ItemLayout;
173
+ preset?: PresetConfig;
174
+ layout?: LayoutConfig;
175
+ renderItem?: (props: RenderItemProps) => React.ReactNode;
176
+ itemProps?: ItemProps;
177
+ indicatorProps?: {
178
+ show?: boolean;
179
+ variant?: 'outlined' | 'filled';
180
+ render?: (props: {
181
+ option: OptionItem;
182
+ selected: boolean;
183
+ disabled: boolean;
184
+ actions: any;
185
+ }) => React.ReactNode;
186
+ [key: string]: any;
187
+ };
188
+ showStepper?: true | false | 'auto';
189
+ stepperProps?: {
190
+ size?: 'small' | 'middle' | 'large';
191
+ shape?: 'round' | 'square';
192
+ horizontalPadding?: number | string;
193
+ };
194
+ style?: React.CSSProperties;
195
+ /**
196
+ * @deprecated
197
+ */
198
+ titleProps?: HeaderProps;
199
+ headerProps?: HeaderProps;
200
+ selectProps?: any;
201
+ }
202
+ export interface SelectorGroupProps {
203
+ allowedValuesPolicy?: 'relaxed' | 'strict';
204
+ className?: string;
205
+ customScrollParent?: HTMLElement | string;
206
+ dataSource: GroupItem[];
207
+ defaultValue?: Record<string, SelectionValue>;
208
+ linkageRules?: ExprRule[] | Record<string, any>;
209
+ theme?: {
210
+ token?: {
211
+ colorPrimary?: string;
212
+ };
213
+ };
214
+ onChange?: (values: Record<string, SelectionValue>) => void;
215
+ preserve?: boolean;
216
+ tabProps?: {
217
+ visible?: boolean;
218
+ };
219
+ style?: React.CSSProperties;
220
+ value?: Record<string, SelectionValue>;
221
+ scrollToFirstError?: boolean;
222
+ [key: string]: any;
223
+ }
@@ -0,0 +1,49 @@
1
+ import { SelectionValue, GroupItem } from '../types';
2
+ export declare type OptionEffects = Record<string, {
3
+ allowOnly?: Set<any>;
4
+ requireOneOf?: {
5
+ values: Set<any>;
6
+ message?: string;
7
+ };
8
+ }>;
9
+ export interface Cond {
10
+ groupId: string;
11
+ in?: any[];
12
+ op?: 'in' | 'notIn' | 'eq' | 'neq' | 'contains' | 'range' | 'exists';
13
+ value?: any;
14
+ values?: any[];
15
+ min?: number;
16
+ max?: number;
17
+ }
18
+ export interface Expr {
19
+ allOf?: Array<Cond | Expr>;
20
+ anyOf?: Array<Cond | Expr>;
21
+ noneOf?: Array<Cond | Expr>;
22
+ and?: Array<Cond | Expr>;
23
+ or?: Array<Cond | Expr>;
24
+ not?: Array<Cond | Expr>;
25
+ }
26
+ export interface Action {
27
+ type: 'show' | 'allowOnly' | 'requireOneOf';
28
+ groupId: string;
29
+ values?: any[];
30
+ message?: string;
31
+ }
32
+ export interface Rule {
33
+ type?: 'expr';
34
+ when?: Expr;
35
+ then?: Action[];
36
+ elseThen?: Action[];
37
+ priority?: number;
38
+ stopAfterApply?: boolean;
39
+ }
40
+ export declare const normalizeRules: (linkageRules: any) => Rule[];
41
+ export declare const getSelectedSet: (val: SelectionValue) => Set<any>;
42
+ export declare const evaluateExpr: (expr: Expr | undefined, valuesMap: Record<string, SelectionValue>) => boolean;
43
+ export declare const computeAutoHiddenGroups: (rules: Rule[]) => Set<string>;
44
+ export declare const computeEffects: (dataSource?: GroupItem[], rawRules?: Rule[], valuesMap?: Record<string, SelectionValue>) => {
45
+ visibleGroups: Record<string, boolean>;
46
+ optionEffects: OptionEffects;
47
+ };
48
+ export declare const pruneValuesByAllowOnly: (valuesMap: Record<string, SelectionValue>, effects: OptionEffects) => Record<string, SelectionValue>;
49
+ export declare const generateSimpleUUID: () => string;
@@ -0,0 +1,38 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
4
+ 'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
5
+ 'pisell2.keyboard.number-keybard.ok': string;
6
+ 'pisell2.keyboard.number-keybard.reset': string;
7
+ 'pisell2.keyboard.number-keybard.clear': string;
8
+ };
9
+ 'zh-CN': {
10
+ 'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
11
+ 'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
12
+ 'pisell2.keyboard.number-keybard.ok': string;
13
+ 'pisell2.keyboard.number-keybard.reset': string;
14
+ 'pisell2.keyboard.number-keybard.clear': string;
15
+ };
16
+ 'zh-HK': {
17
+ 'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
18
+ 'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
19
+ 'pisell2.keyboard.number-keybard.ok': string;
20
+ 'pisell2.keyboard.number-keybard.reset': string;
21
+ 'pisell2.keyboard.number-keybard.clear': string;
22
+ };
23
+ ja: {
24
+ 'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
25
+ 'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
26
+ 'pisell2.keyboard.number-keybard.ok': string;
27
+ 'pisell2.keyboard.number-keybard.reset': string;
28
+ 'pisell2.keyboard.number-keybard.clear': string;
29
+ };
30
+ pt: {
31
+ 'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
32
+ 'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
33
+ 'pisell2.keyboard.number-keybard.ok': string;
34
+ 'pisell2.keyboard.number-keybard.reset': string;
35
+ 'pisell2.keyboard.number-keybard.clear': string;
36
+ };
37
+ };
38
+ export default _default;
@@ -0,0 +1,63 @@
1
+ /// <reference types="react" />
2
+ export declare type NumberKeyboardMode = 'integer' | 'decimal';
3
+ export interface NumberKeyboardBaseProps {
4
+ /** 模式:整数 or 小数 */
5
+ mode?: NumberKeyboardMode;
6
+ /** 当前值(受控) */
7
+ value?: string;
8
+ /** 默认值(非受控) */
9
+ defaultValue?: string;
10
+ /** 原始值,用于重置 */
11
+ originalValue?: string;
12
+ /** 占位符 */
13
+ placeholder?: string;
14
+ /** 最大值 */
15
+ max?: number;
16
+ /** 最小值 */
17
+ min?: number;
18
+ /** 最大长度 */
19
+ maxLength?: number;
20
+ /** 小数位数,默认 2 */
21
+ precision?: number;
22
+ /** 是否禁用 */
23
+ disabled?: boolean;
24
+ /** 确认按钮文本 */
25
+ doneText?: string;
26
+ /** 重置按钮文本 */
27
+ resetText?: string;
28
+ /** 清空按钮文本 */
29
+ clearText?: string;
30
+ /** 标签文本(显示在输入框上方) */
31
+ label?: string;
32
+ /** 超出范围时的提示文本 */
33
+ errorText?: string;
34
+ /** 值变化回调 */
35
+ onChange?: (value: string) => void;
36
+ /** 确认按钮点击回调 */
37
+ onEnter?: (value: string) => void;
38
+ /** 重置按钮点击回调 */
39
+ onReset?: () => void;
40
+ /** 外层样式 */
41
+ style?: React.CSSProperties;
42
+ /** 自定义类名 */
43
+ className?: string;
44
+ /** 键盘是否监听物理键盘 */
45
+ keydown?: boolean;
46
+ /** 输入框样式 */
47
+ inputStyle?: React.CSSProperties;
48
+ /** 输入框包裹样式 */
49
+ inputWrapperStyle?: React.CSSProperties;
50
+ }
51
+ export interface NumberKeyboardProps extends NumberKeyboardBaseProps {
52
+ /** 容器配置,用于控制键盘以 popover 或 modal 形态展示 */
53
+ containerProps?: {
54
+ /** 渲染类型:popover 或 modal */
55
+ renderType: 'modal' | 'popover';
56
+ /** 是否打开(受控模式) */
57
+ open?: boolean;
58
+ /** 其他传递给 Popover 或 Modal 的属性 */
59
+ [key: string]: any;
60
+ };
61
+ /** 子元素,用于 popover 模式的触发器 */
62
+ children?: React.ReactNode;
63
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Example: React.FC;
3
+ export default Example;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.117",
3
+ "version": "6.3.119",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",