@pisell/private-materials 6.7.3 → 6.7.5

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 (592) 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 +2 -2
  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 +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
  12. package/es/components/booking/addons/index.js +25 -17
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  15. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  16. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  17. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  18. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  19. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  20. package/es/components/booking/components/footer/amount.js +529 -79
  21. package/es/components/booking/components/footer/index.js +77 -56
  22. package/es/components/booking/components/footer/utils.d.ts +19 -0
  23. package/es/components/booking/components/footer/utils.js +151 -52
  24. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  25. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  26. package/es/components/booking/components/voucher/index.js +20 -6
  27. package/es/components/booking/forms/model.d.ts +1 -10
  28. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  29. package/es/components/booking/forms/single/index.d.ts +1 -0
  30. package/es/components/booking/forms/table/index.d.ts +1 -0
  31. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  32. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  33. package/es/components/booking/info/date/index.d.ts +1 -0
  34. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  35. package/es/components/booking/info/model.d.ts +1 -10
  36. package/es/components/booking/info/notes/index.d.ts +1 -0
  37. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  38. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  39. package/es/components/booking/info/service/like/index.d.ts +1 -0
  40. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  41. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  42. package/es/components/booking/info/service2/utils.js +1 -0
  43. package/es/components/booking/info2/cartClientCard/index.js +30 -6
  44. package/es/components/booking/info2/index.js +1 -1
  45. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  46. package/es/components/booking/info2/service/addService/index.js +2 -3
  47. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  48. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  49. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  50. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  51. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  52. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  53. package/es/components/booking/model.d.ts +1 -9
  54. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  55. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  56. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  57. package/es/components/booking/notes/model.d.ts +1 -10
  58. package/es/components/booking/payments/model.d.ts +1 -10
  59. package/es/components/booking/utils.js +16 -3
  60. package/es/components/checkout/PaymentModal.d.ts +7 -5
  61. package/es/components/checkout/PaymentModal.js +257 -213
  62. package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  63. package/es/components/checkout/components/AdditionalModule/index.js +52 -12
  64. package/es/components/checkout/components/AmountSummary/index.js +9 -76
  65. package/es/components/checkout/components/AmountSummary/index.less +5 -6
  66. package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
  67. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  68. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
  69. package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
  70. package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  71. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
  72. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  73. package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
  74. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  75. package/es/components/checkout/index.less +1 -1
  76. package/es/components/checkout/locales.js +6 -0
  77. package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  78. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  79. package/es/components/eftpos/form/index.d.ts +1 -0
  80. package/es/components/eftpos/group/index.d.ts +1 -0
  81. package/es/components/eftpos/hooks.d.ts +1 -0
  82. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  83. package/es/components/eftpos/icon/device.d.ts +1 -0
  84. package/es/components/eftpos/index.d.ts +1 -0
  85. package/es/components/eftpos/pos.d.ts +1 -0
  86. package/es/components/eftpos/receipt/index.d.ts +1 -0
  87. package/es/components/eftposPay/amount.d.ts +2 -1
  88. package/es/components/eftposPay/app.d.ts +1 -0
  89. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  90. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  91. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  92. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  93. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  94. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  95. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  96. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  97. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  98. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  99. package/es/components/eftposPay/device.d.ts +1 -1
  100. package/es/components/eftposPay/hooks.d.ts +2 -2
  101. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  102. package/es/components/eftposPay/pay.d.ts +1 -0
  103. package/es/components/eftposPay/payo/config.js +70 -32
  104. package/es/components/eftposPay/payo/payment.js +579 -0
  105. package/es/components/eftposPay/store/index.d.ts +4 -4
  106. package/es/components/eftposPay/tip.d.ts +1 -0
  107. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  108. package/es/components/eftposPay/tyro/index.js +12 -0
  109. package/es/components/eftposPay/utils/log/index.js +371 -0
  110. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  111. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  112. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  113. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  114. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  115. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  116. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  117. package/es/components/index.js +2 -1
  118. package/es/components/login/index.d.ts +1 -0
  119. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  120. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  121. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  122. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  123. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  124. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  125. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  126. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  127. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  128. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
  129. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  130. package/es/components/pay/toC/index.js +7 -4
  131. package/es/components/pay/toC/locales.js +6 -3
  132. package/es/components/pay/toC/model.d.ts +1 -9
  133. package/es/components/pay/toC/status.js +3 -0
  134. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  135. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  136. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  137. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  138. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  139. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  140. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  141. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  142. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  143. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  144. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  145. package/es/components/schedules/calendar/index.d.ts +1 -0
  146. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  147. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  148. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  149. package/es/components/schedules/model.d.ts +1 -9
  150. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  151. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  152. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  153. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  154. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  155. package/es/components/schedules/products/index.d.ts +1 -0
  156. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  157. package/es/components/schedules/products/list/index.d.ts +1 -0
  158. package/es/components/schedules/resources/index.d.ts +1 -0
  159. package/es/components/schedules/resources/list/index.d.ts +1 -0
  160. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  161. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  162. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  163. package/es/components/schedules/schedules/index.d.ts +1 -0
  164. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  165. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  166. package/es/components/shoppingCart/index.d.ts +1 -0
  167. package/es/components/subTotal/index.js +1 -1
  168. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  169. package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
  170. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  171. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  172. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  173. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  174. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  175. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  176. package/es/components/systemSettings/registry/components/index.js +4 -0
  177. package/es/components/systemSettings/registry/index.d.ts +5 -0
  178. package/es/components/systemSettings/registry/index.js +1059 -0
  179. package/es/components/systemSettings/registry/index.less +410 -0
  180. package/es/components/systemSettings/registry/locales.js +300 -0
  181. package/es/components/systemSettings/registry/services.js +472 -0
  182. package/es/components/systemSettings/registry/types.js +1 -0
  183. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  184. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  185. package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
  186. package/es/components/ticketBooking/components/menuBar/index.js +109 -12
  187. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  188. package/es/components/ticketBooking/components/timeBar/index.js +112 -7
  189. package/es/components/ticketBooking/components/timeBar/index.less +59 -0
  190. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
  191. package/es/components/ticketBooking/locales.js +9 -3
  192. package/es/components/ticketBooking/utils/index.js +36 -13
  193. package/es/components/wallet/Detail/index.js +34 -2
  194. package/es/components/wallet/Detail/index.less +11 -0
  195. package/es/components/wallet/Detail/locales.js +14 -2
  196. package/es/components/wallet/Detail/model.d.ts +1 -13
  197. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  198. package/es/components/wallet/PointCard/model.d.ts +1 -13
  199. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  200. package/es/components/wallet/Voucher/index.js +11 -10
  201. package/es/components/wallet/Voucher/model.d.ts +1 -13
  202. package/es/components/wallet/components/WalletCard.js +5 -1
  203. package/es/components/wallet/index.js +4 -2
  204. package/es/components/wallet/model.d.ts +1 -9
  205. package/es/components/wallet/utils.js +342 -0
  206. package/es/hooks/usePaymentLogger.d.ts +1 -0
  207. package/es/index.d.ts +4 -0
  208. package/es/index.js +4 -0
  209. package/es/plus/clientCard/locales.js +3 -3
  210. package/es/plus/clientName/index.d.ts +1 -0
  211. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  212. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  213. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  214. package/es/plus/clinetSearch/index.js +28 -30
  215. package/es/plus/clinetSearch/locales.js +7 -4
  216. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  217. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  218. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  219. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  220. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  221. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  222. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  223. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  224. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  225. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  226. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  227. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  228. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  229. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  230. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  231. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  232. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  233. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  234. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  235. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  236. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  237. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  238. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  239. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  240. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  241. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  242. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  243. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  244. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  245. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  246. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  247. package/es/plus/walletPassGallery/index.js +7 -3
  248. package/es/plus/walletPassGallery/serve.js +4 -2
  249. package/es/plus/webPosLogin/WebPosLogin.js +5 -8
  250. package/es/plus/webPosLogin/WebPosLoginCpt.js +1 -1
  251. package/es/plus/webPosLogin/components/BrandPanel/index.js +7 -37
  252. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
  253. package/es/plus/webPosLogin/components/MediaDisplay/index.js +220 -0
  254. package/es/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
  255. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  256. package/es/plus/webPosLogin/components/MediaDisplay/type.js +1 -0
  257. package/es/pro/Login2.0/index.less +15 -8
  258. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  259. package/es/pro/comprehensiveSearch/locales.js +1 -1
  260. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  261. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
  262. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
  263. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
  264. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  265. package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
  266. package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  267. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  268. package/lib/components/booking/addons/index.js +15 -7
  269. package/lib/components/booking/addons/model.d.ts +1 -10
  270. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  271. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  272. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  273. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  274. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  275. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  276. package/lib/components/booking/components/footer/amount.js +276 -38
  277. package/lib/components/booking/components/footer/index.js +30 -11
  278. package/lib/components/booking/components/footer/utils.d.ts +19 -0
  279. package/lib/components/booking/components/footer/utils.js +97 -21
  280. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  281. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  282. package/lib/components/booking/components/voucher/index.js +21 -7
  283. package/lib/components/booking/forms/model.d.ts +1 -10
  284. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  285. package/lib/components/booking/forms/single/index.d.ts +1 -0
  286. package/lib/components/booking/forms/table/index.d.ts +1 -0
  287. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  288. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  289. package/lib/components/booking/info/date/index.d.ts +1 -0
  290. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  291. package/lib/components/booking/info/model.d.ts +1 -10
  292. package/lib/components/booking/info/notes/index.d.ts +1 -0
  293. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  294. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  295. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  296. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  297. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  298. package/lib/components/booking/info/service2/utils.js +1 -0
  299. package/lib/components/booking/info2/cartClientCard/index.js +25 -5
  300. package/lib/components/booking/info2/index.js +7 -2
  301. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  302. package/lib/components/booking/info2/service/addService/index.js +1 -2
  303. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  304. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  305. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  306. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  307. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  308. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  309. package/lib/components/booking/model.d.ts +1 -9
  310. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  311. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  312. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  313. package/lib/components/booking/notes/model.d.ts +1 -10
  314. package/lib/components/booking/payments/model.d.ts +1 -10
  315. package/lib/components/booking/utils.js +11 -0
  316. package/lib/components/checkout/PaymentModal.d.ts +7 -5
  317. package/lib/components/checkout/PaymentModal.js +171 -135
  318. package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
  319. package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
  320. package/lib/components/checkout/components/AmountSummary/index.js +5 -46
  321. package/lib/components/checkout/components/AmountSummary/index.less +5 -6
  322. package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
  323. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
  324. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
  325. package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
  326. package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
  327. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
  328. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  329. package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
  330. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  331. package/lib/components/checkout/index.less +1 -1
  332. package/lib/components/checkout/locales.js +6 -0
  333. package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
  334. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  335. package/lib/components/eftpos/form/index.d.ts +1 -0
  336. package/lib/components/eftpos/group/index.d.ts +1 -0
  337. package/lib/components/eftpos/hooks.d.ts +1 -0
  338. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  339. package/lib/components/eftpos/icon/device.d.ts +1 -0
  340. package/lib/components/eftpos/index.d.ts +1 -0
  341. package/lib/components/eftpos/pos.d.ts +1 -0
  342. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  343. package/lib/components/eftposPay/amount.d.ts +2 -1
  344. package/lib/components/eftposPay/app.d.ts +1 -0
  345. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  346. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  347. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  348. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  349. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  350. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  351. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  352. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  353. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  354. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  355. package/lib/components/eftposPay/device.d.ts +1 -1
  356. package/lib/components/eftposPay/hooks.d.ts +2 -2
  357. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  358. package/lib/components/eftposPay/pay.d.ts +1 -0
  359. package/lib/components/eftposPay/payo/config.js +98 -73
  360. package/lib/components/eftposPay/payo/payment.js +357 -0
  361. package/lib/components/eftposPay/store/index.d.ts +4 -4
  362. package/lib/components/eftposPay/tip.d.ts +1 -0
  363. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  364. package/lib/components/eftposPay/tyro/index.js +12 -0
  365. package/lib/components/eftposPay/utils/log/index.js +294 -0
  366. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  367. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  368. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  369. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  370. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  371. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  372. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  373. package/lib/components/index.js +3 -0
  374. package/lib/components/login/index.d.ts +1 -0
  375. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  376. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  377. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  378. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  379. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  380. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  381. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  382. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  383. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  384. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  385. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
  386. package/lib/components/pay/toC/index.js +4 -1
  387. package/lib/components/pay/toC/locales.js +6 -3
  388. package/lib/components/pay/toC/model.d.ts +1 -9
  389. package/lib/components/pay/toC/status.js +5 -0
  390. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  391. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  392. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  393. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  394. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  395. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  396. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  397. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  398. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  399. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  400. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  401. package/lib/components/schedules/calendar/index.d.ts +1 -0
  402. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  403. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  404. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  405. package/lib/components/schedules/model.d.ts +1 -9
  406. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  407. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  408. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  409. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  410. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  411. package/lib/components/schedules/products/index.d.ts +1 -0
  412. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  413. package/lib/components/schedules/products/list/index.d.ts +1 -0
  414. package/lib/components/schedules/resources/index.d.ts +1 -0
  415. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  416. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  417. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  418. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  419. package/lib/components/schedules/schedules/index.d.ts +1 -0
  420. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  421. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  422. package/lib/components/shoppingCart/index.d.ts +1 -0
  423. package/lib/components/subTotal/index.js +1 -1
  424. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  425. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  426. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  427. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  428. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  429. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  430. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  431. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  432. package/lib/components/systemSettings/registry/components/index.js +48 -0
  433. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  434. package/lib/components/systemSettings/registry/index.js +529 -0
  435. package/lib/components/systemSettings/registry/index.less +410 -0
  436. package/lib/components/systemSettings/registry/locales.js +324 -0
  437. package/lib/components/systemSettings/registry/services.js +290 -0
  438. package/lib/components/systemSettings/registry/types.js +17 -0
  439. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  440. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  441. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
  442. package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
  443. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  444. package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
  445. package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
  446. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
  447. package/lib/components/ticketBooking/locales.js +9 -3
  448. package/lib/components/ticketBooking/utils/index.js +20 -6
  449. package/lib/components/wallet/Detail/index.js +31 -3
  450. package/lib/components/wallet/Detail/index.less +11 -0
  451. package/lib/components/wallet/Detail/locales.js +14 -2
  452. package/lib/components/wallet/Detail/model.d.ts +1 -13
  453. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  454. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  455. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  456. package/lib/components/wallet/Voucher/index.js +8 -8
  457. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  458. package/lib/components/wallet/components/WalletCard.js +4 -0
  459. package/lib/components/wallet/index.js +2 -2
  460. package/lib/components/wallet/model.d.ts +1 -9
  461. package/lib/components/wallet/utils.js +287 -0
  462. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  463. package/lib/index.d.ts +4 -0
  464. package/lib/index.js +12 -0
  465. package/lib/plus/clientCard/locales.js +3 -3
  466. package/lib/plus/clientName/index.d.ts +1 -0
  467. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  468. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  469. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
  470. package/lib/plus/clinetSearch/index.js +17 -8
  471. package/lib/plus/clinetSearch/locales.js +7 -4
  472. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
  473. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
  474. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
  475. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
  476. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
  477. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  478. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  479. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  480. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
  481. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  482. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
  483. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  484. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  485. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  486. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
  487. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
  488. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
  489. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  490. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  491. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  492. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  493. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  494. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  495. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  496. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  497. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  498. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  499. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  500. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  501. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  502. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  503. package/lib/plus/walletPassGallery/index.js +7 -3
  504. package/lib/plus/walletPassGallery/serve.js +3 -2
  505. package/lib/plus/webPosLogin/WebPosLogin.js +17 -21
  506. package/lib/plus/webPosLogin/WebPosLoginCpt.js +1 -1
  507. package/lib/plus/webPosLogin/components/BrandPanel/index.js +2 -22
  508. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
  509. package/lib/plus/webPosLogin/components/MediaDisplay/index.js +160 -0
  510. package/lib/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
  511. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  512. package/lib/plus/webPosLogin/components/MediaDisplay/type.js +17 -0
  513. package/lib/pro/Login2.0/index.less +15 -8
  514. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  515. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  516. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  517. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
  518. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
  519. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
  520. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
  521. package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
  522. package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
  523. package/lowcode/settings-registry/meta.ts +29 -0
  524. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  525. package/package.json +4 -4
  526. package/es/components/booking/components/footer/amount.d.ts +0 -36
  527. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  528. package/es/components/booking/info/service2/utils.d.ts +0 -251
  529. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  530. package/es/components/booking/utils.d.ts +0 -173
  531. package/es/components/checkout/PaymentPlugin.d.ts +0 -2
  532. package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
  533. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
  534. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
  535. package/es/components/checkout/locales.d.ts +0 -507
  536. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
  537. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  538. package/es/components/eftposPay/payo/config.d.ts +0 -12
  539. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  540. package/es/components/index.d.ts +0 -23
  541. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
  542. package/es/components/pay/toC/locales.d.ts +0 -298
  543. package/es/components/pay/toC/status.d.ts +0 -12
  544. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  545. package/es/components/ticketBooking/locales.d.ts +0 -192
  546. package/es/components/ticketBooking/utils/index.d.ts +0 -90
  547. package/es/components/wallet/Detail/locales.d.ts +0 -147
  548. package/es/components/wallet/serve.d.ts +0 -143
  549. package/es/plus/clientCard/locales.d.ts +0 -18
  550. package/es/plus/clinetSearch/index.d.ts +0 -17
  551. package/es/plus/clinetSearch/locales.d.ts +0 -102
  552. package/es/plus/clinetSearch/types.d.ts +0 -49
  553. package/es/plus/walletPassGallery/serve.d.ts +0 -218
  554. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  555. package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
  556. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
  557. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
  558. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
  559. package/lib/components/booking/components/footer/amount.d.ts +0 -36
  560. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  561. package/lib/components/booking/info/service2/utils.d.ts +0 -251
  562. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  563. package/lib/components/booking/utils.d.ts +0 -173
  564. package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
  565. package/lib/components/checkout/PaymentPlugin.js +0 -181
  566. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
  567. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
  568. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
  569. package/lib/components/checkout/locales.d.ts +0 -507
  570. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
  571. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  572. package/lib/components/eftposPay/payo/config.d.ts +0 -12
  573. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  574. package/lib/components/index.d.ts +0 -23
  575. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
  576. package/lib/components/pay/toC/locales.d.ts +0 -298
  577. package/lib/components/pay/toC/status.d.ts +0 -12
  578. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
  579. package/lib/components/ticketBooking/locales.d.ts +0 -192
  580. package/lib/components/ticketBooking/utils/index.d.ts +0 -90
  581. package/lib/components/wallet/Detail/locales.d.ts +0 -147
  582. package/lib/components/wallet/serve.d.ts +0 -143
  583. package/lib/plus/clientCard/locales.d.ts +0 -18
  584. package/lib/plus/clinetSearch/index.d.ts +0 -17
  585. package/lib/plus/clinetSearch/locales.d.ts +0 -102
  586. package/lib/plus/clinetSearch/types.d.ts +0 -49
  587. package/lib/plus/walletPassGallery/serve.d.ts +0 -218
  588. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
  589. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
  590. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
  591. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
  592. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
@@ -0,0 +1,324 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/systemSettings/registry/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ // 页面标题
28
+ "registry.title": "Settings Registry",
29
+ "registry.sections.title": "Sections",
30
+ "registry.sections.empty": "No sections configured",
31
+ "registry.sections.loadMore": "Scroll to load more",
32
+ "registry.sections.noMore": "No more data",
33
+ // 表格表头
34
+ "registry.table.title": "Title",
35
+ "registry.table.name": "Name",
36
+ "registry.table.key": "Key",
37
+ "registry.table.type": "Type",
38
+ "registry.table.interface": "Interface",
39
+ "registry.table.scopes": "Scopes",
40
+ "registry.table.default": "Default",
41
+ "registry.table.description": "Description",
42
+ "registry.table.actions": "Actions",
43
+ // 层级标签
44
+ "registry.level.group": "Group",
45
+ "registry.level.item": "Item",
46
+ // 操作按钮
47
+ "registry.action.add.group": "Add Group",
48
+ "registry.action.add.item": "Add Field",
49
+ "registry.action.edit": "Edit",
50
+ "registry.action.delete": "Delete",
51
+ "registry.action.expand": "Expand",
52
+ "registry.action.collapse": "Collapse",
53
+ // 模态框
54
+ "registry.modal.add.group": "Create Group",
55
+ "registry.modal.edit.group": "Edit Group",
56
+ "registry.modal.add.item": "Add Setting Item",
57
+ "registry.modal.edit.item": "Edit Setting Item",
58
+ "registry.modal.delete.title": "Confirm Delete",
59
+ "registry.modal.delete.group.content": "Are you sure you want to delete this group and all its items?",
60
+ "registry.modal.delete.group.hasItems.title": "Cannot Delete Group",
61
+ "registry.modal.delete.group.hasItems.content": "Cannot delete a group that contains fields. Remove or move all fields first.",
62
+ "registry.modal.delete.item.content": "Are you sure you want to delete this setting item?",
63
+ // 表单字段
64
+ "registry.form.title": "Title",
65
+ "registry.form.name": "Name",
66
+ "registry.form.name.placeholder": "Please enter name",
67
+ "registry.form.code": "Code",
68
+ "registry.form.code.placeholder": "Please enter code",
69
+ "registry.form.key": "Key",
70
+ "registry.form.key.placeholder": "Please enter key",
71
+ "registry.form.fieldType": "Field Type",
72
+ "registry.form.fieldType.placeholder": "Please select field type",
73
+ "registry.form.interfaceType": "Interface Type",
74
+ "registry.form.interfaceType.placeholder": "Please select interface type",
75
+ "registry.form.scopes": "Scopes",
76
+ "registry.form.scopes.placeholder": "Please select scopes",
77
+ "registry.form.description": "Description",
78
+ "registry.form.description.placeholder": "Please enter description",
79
+ "registry.form.systemDefaultValue": "System Default Value",
80
+ "registry.form.systemDefaultValue.placeholder": "Please enter system default value",
81
+ "registry.form.uiSchema": "UI Schema (JSON)",
82
+ "registry.form.uiSchema.placeholder": "Please enter UI schema in JSON format",
83
+ // 按钮
84
+ "registry.button.ok": "OK",
85
+ "registry.button.cancel": "Cancel",
86
+ "registry.button.save": "Save",
87
+ // 消息提示
88
+ "registry.message.save.success": "Saved successfully",
89
+ "registry.message.delete.success": "Deleted successfully",
90
+ "registry.message.required": "This field is required",
91
+ "registry.message.code.exists": "Code already exists",
92
+ "registry.message.key.exists": "Key already exists",
93
+ "registry.message.code.pattern": "Code can only contain letters, numbers, dots, underscores and hyphens",
94
+ "registry.message.key.pattern": "Key can only contain lowercase letters, numbers, dots, underscores",
95
+ "registry.message.code.format": "Can only contain lowercase letters, numbers, dots, and underscores",
96
+ "registry.message.code.start": "Must start with a letter",
97
+ "registry.message.code.end": "Cannot end with a dot or underscore",
98
+ "registry.message.code.consecutive": "Cannot contain consecutive dots or underscores",
99
+ "registry.message.name.maxLength": "Name maximum length is 100 characters",
100
+ "registry.message.key.maxLength": "Key maximum length is 100 characters",
101
+ "registry.message.description.maxLength": "Description maximum length is 500 characters",
102
+ "registry.message.uiSchema.invalid": "Please enter valid JSON format",
103
+ "registry.message.select.section": "Please select a section",
104
+ "registry.message.loading.groups": "Loading group data...",
105
+ "registry.message.no.settings": "No settings available",
106
+ "registry.message.load.failed": "Failed to load data",
107
+ "registry.message.create.group.error": "Failed to create",
108
+ // 拖拽相关
109
+ "registry.drag.drop.here": "Drop item here",
110
+ "registry.empty.container.placeholder": "Drag setting items to this group",
111
+ "registry.message.update.group.error": "Failed to update",
112
+ "registry.message.delete.group.error": "Failed to delete",
113
+ "registry.message.create.item.error": "Failed to create",
114
+ "registry.message.update.item.error": "Failed to update",
115
+ "registry.message.delete.item.error": "Failed to delete",
116
+ "registry.message.reorder.success": "Updated successfully",
117
+ "registry.message.reorder.error": "Failed to update",
118
+ "registry.message.move.success": "Updated successfully",
119
+ "registry.message.move.error": "Failed to update",
120
+ // 作用域选项
121
+ "registry.scope.systemDefault": "System Default",
122
+ "registry.scope.saasDefault": "SaaS Default",
123
+ "registry.scope.organization": "Organization",
124
+ "registry.scope.business": "Business",
125
+ "registry.scope.channel": "Channel",
126
+ "registry.scope.board": "Board"
127
+ },
128
+ "zh-CN": {
129
+ // 页面标题
130
+ "registry.title": "设置注册表",
131
+ "registry.sections.title": "版块",
132
+ "registry.sections.empty": "暂无配置版块",
133
+ "registry.sections.loadMore": "滚动加载更多",
134
+ "registry.sections.noMore": "没有更多数据",
135
+ // 表格表头
136
+ "registry.table.title": "标题",
137
+ "registry.table.name": "名称",
138
+ "registry.table.key": "键",
139
+ "registry.table.type": "类型",
140
+ "registry.table.interface": "界面",
141
+ "registry.table.scopes": "作用域",
142
+ "registry.table.default": "默认值",
143
+ "registry.table.description": "描述",
144
+ "registry.table.actions": "操作",
145
+ // 层级标签
146
+ "registry.level.group": "组",
147
+ "registry.level.item": "设置项",
148
+ // 操作按钮
149
+ "registry.action.add.group": "添加组",
150
+ "registry.action.add.item": "添加字段",
151
+ "registry.action.edit": "编辑",
152
+ "registry.action.delete": "删除",
153
+ "registry.action.expand": "展开",
154
+ "registry.action.collapse": "收起",
155
+ // 模态框
156
+ "registry.modal.add.group": "创建组",
157
+ "registry.modal.edit.group": "编辑组",
158
+ "registry.modal.add.item": "添加设置项",
159
+ "registry.modal.edit.item": "编辑设置项",
160
+ "registry.modal.delete.title": "确认删除",
161
+ "registry.modal.delete.group.content": "确定要删除此组及其所有设置项吗?",
162
+ "registry.modal.delete.group.hasItems.title": "无法删除组",
163
+ "registry.modal.delete.group.hasItems.content": "分组下存在字段,无法删除。请先移除或迁移所有字段。",
164
+ "registry.modal.delete.item.content": "确定要删除此设置项吗?",
165
+ // 表单字段
166
+ "registry.form.title": "标题",
167
+ "registry.form.name": "名称",
168
+ "registry.form.name.placeholder": "请输入名称",
169
+ "registry.form.code": "代码",
170
+ "registry.form.code.placeholder": "请输入代码",
171
+ "registry.form.key": "键",
172
+ "registry.form.key.placeholder": "请输入键",
173
+ "registry.form.fieldType": "字段类型",
174
+ "registry.form.fieldType.placeholder": "请选择字段类型",
175
+ "registry.form.interfaceType": "界面类型",
176
+ "registry.form.interfaceType.placeholder": "请选择界面类型",
177
+ "registry.form.scopes": "作用域",
178
+ "registry.form.scopes.placeholder": "请选择作用域",
179
+ "registry.form.description": "描述",
180
+ "registry.form.description.placeholder": "请输入描述",
181
+ "registry.form.systemDefaultValue": "系统默认值",
182
+ "registry.form.systemDefaultValue.placeholder": "请输入系统默认值",
183
+ "registry.form.uiSchema": "UI Schema (JSON)",
184
+ "registry.form.uiSchema.placeholder": "请输入JSON格式的UI配置",
185
+ // 按钮
186
+ "registry.button.ok": "确定",
187
+ "registry.button.cancel": "取消",
188
+ "registry.button.save": "保存",
189
+ // 消息提示
190
+ "registry.message.save.success": "保存成功",
191
+ "registry.message.delete.success": "删除成功",
192
+ "registry.message.required": "此字段为必填项",
193
+ "registry.message.code.exists": "代码已存在",
194
+ "registry.message.key.exists": "键已存在",
195
+ "registry.message.code.pattern": "代码只能包含字母、数字、点、下划线和横线",
196
+ "registry.message.key.pattern": "键只能包含小写字母、数字、点、下划线",
197
+ "registry.message.code.format": "只能包含小写字母、数字、点和下划线",
198
+ "registry.message.code.start": "必须以字母开头",
199
+ "registry.message.code.end": "不能以点或下划线结尾",
200
+ "registry.message.code.consecutive": "不能包含连续的点或下划线",
201
+ "registry.message.name.maxLength": "名称最大长度为100个字符",
202
+ "registry.message.key.maxLength": "键最大长度为100个字符",
203
+ "registry.message.description.maxLength": "描述最大长度为500个字符",
204
+ "registry.message.uiSchema.invalid": "请输入有效的JSON格式",
205
+ "registry.message.select.section": "请选择一个版块",
206
+ "registry.message.loading.groups": "加载组数据中...",
207
+ "registry.message.no.settings": "暂无设置项",
208
+ "registry.message.load.failed": "加载数据失败",
209
+ "registry.message.create.group.error": "创建失败",
210
+ "registry.message.update.group.error": "更新失败",
211
+ "registry.message.delete.group.error": "删除失败",
212
+ "registry.message.create.item.error": "创建失败",
213
+ "registry.message.update.item.error": "更新失败",
214
+ "registry.message.delete.item.error": "删除失败",
215
+ "registry.message.reorder.success": "更新成功",
216
+ "registry.message.reorder.error": "更新失败",
217
+ "registry.message.move.success": "更新成功",
218
+ "registry.message.move.error": "更新失败",
219
+ // 拖拽相关
220
+ "registry.drag.drop.here": "拖放到此处",
221
+ "registry.empty.container.placeholder": "拖放设置项到此组",
222
+ // 作用域选项
223
+ "registry.scope.systemDefault": "系统默认",
224
+ "registry.scope.saasDefault": "SaaS默认",
225
+ "registry.scope.organization": "企业租户",
226
+ "registry.scope.business": "业务级",
227
+ "registry.scope.channel": "渠道级",
228
+ "registry.scope.board": "业务×渠道"
229
+ },
230
+ "zh-HK": {
231
+ // 页面标题
232
+ "registry.title": "設置註冊表",
233
+ "registry.sections.title": "版塊",
234
+ "registry.sections.empty": "暫無配置版塊",
235
+ "registry.sections.loadMore": "滾動加載更多",
236
+ "registry.sections.noMore": "沒有更多數據",
237
+ // 表格表头
238
+ "registry.table.title": "標題",
239
+ "registry.table.name": "名稱",
240
+ "registry.table.key": "鍵",
241
+ "registry.table.scopes": "作用域",
242
+ "registry.table.actions": "操作",
243
+ // 层级标签
244
+ "registry.level.group": "組",
245
+ "registry.level.item": "設置項",
246
+ // 操作按钮
247
+ "registry.action.add.group": "添加組",
248
+ "registry.action.add.item": "添加字段",
249
+ "registry.action.edit": "編輯",
250
+ "registry.action.delete": "刪除",
251
+ "registry.action.expand": "展開",
252
+ "registry.action.collapse": "收起",
253
+ // 模态框
254
+ "registry.modal.add.group": "創建組",
255
+ "registry.modal.edit.group": "編輯組",
256
+ "registry.modal.add.item": "添加設置項",
257
+ "registry.modal.edit.item": "編輯設置項",
258
+ "registry.modal.delete.title": "確認刪除",
259
+ "registry.modal.delete.group.content": "確定要刪除此組及其所有設置項嗎?",
260
+ "registry.modal.delete.group.hasItems.title": "無法刪除組",
261
+ "registry.modal.delete.group.hasItems.content": "分組下存在字段,無法刪除。請先移除或遷移所有字段。",
262
+ "registry.modal.delete.item.content": "確定要刪除此設置項嗎?",
263
+ // 表单字段
264
+ "registry.form.title": "標題",
265
+ "registry.form.name": "名稱",
266
+ "registry.form.name.placeholder": "請輸入名稱",
267
+ "registry.form.code": "代碼",
268
+ "registry.form.code.placeholder": "請輸入代碼",
269
+ "registry.form.key": "鍵",
270
+ "registry.form.key.placeholder": "請輸入鍵",
271
+ "registry.form.fieldType": "字段類型",
272
+ "registry.form.fieldType.placeholder": "請選擇字段類型",
273
+ "registry.form.interfaceType": "界面類型",
274
+ "registry.form.interfaceType.placeholder": "請選擇界面類型",
275
+ "registry.form.scopes": "作用域",
276
+ "registry.form.scopes.placeholder": "請選擇作用域",
277
+ "registry.form.description": "描述",
278
+ "registry.form.description.placeholder": "請輸入描述",
279
+ "registry.form.systemDefaultValue": "系統默認值",
280
+ "registry.form.systemDefaultValue.placeholder": "請輸入系統默認值",
281
+ "registry.form.uiSchema": "UI Schema (JSON)",
282
+ "registry.form.uiSchema.placeholder": "請輸入JSON格式的UI配置",
283
+ // 按钮
284
+ "registry.button.ok": "確定",
285
+ "registry.button.cancel": "取消",
286
+ "registry.button.save": "保存",
287
+ // 消息提示
288
+ "registry.message.save.success": "保存成功",
289
+ "registry.message.delete.success": "刪除成功",
290
+ "registry.message.required": "此字段為必填項",
291
+ "registry.message.code.exists": "代碼已存在",
292
+ "registry.message.key.exists": "鍵已存在",
293
+ "registry.message.code.pattern": "代碼只能包含字母、數字、點、下劃線和橫線",
294
+ "registry.message.key.pattern": "鍵只能包含小寫字母、數字、點、下劃線",
295
+ "registry.message.code.format": "只能包含小寫字母、數字、點和下劃線",
296
+ "registry.message.code.start": "必須以字母開頭",
297
+ "registry.message.code.end": "不能以點或下劃線結尾",
298
+ "registry.message.code.consecutive": "不能包含連續的點或下劃線",
299
+ "registry.message.name.maxLength": "名稱最大長度為100個字符",
300
+ "registry.message.key.maxLength": "鍵最大長度為100個字符",
301
+ "registry.message.description.maxLength": "描述最大長度為500個字符",
302
+ "registry.message.select.section": "請選擇一個版塊",
303
+ "registry.message.loading.groups": "加載組數據中...",
304
+ "registry.message.no.settings": "暫無設置項",
305
+ "registry.message.load.failed": "加載數據失敗",
306
+ "registry.message.create.group.error": "創建失敗",
307
+ "registry.message.update.group.error": "更新失敗",
308
+ "registry.message.delete.group.error": "刪除失敗",
309
+ "registry.message.create.item.error": "創建失敗",
310
+ "registry.message.update.item.error": "更新失敗",
311
+ "registry.message.delete.item.error": "刪除失敗",
312
+ "registry.message.reorder.success": "更新成功",
313
+ "registry.message.reorder.error": "更新失敗",
314
+ "registry.message.move.success": "更新成功",
315
+ "registry.message.move.error": "更新失敗",
316
+ // 作用域选项
317
+ "registry.scope.systemDefault": "系統默認",
318
+ "registry.scope.saasDefault": "SaaS默認",
319
+ "registry.scope.organization": "企業租戶",
320
+ "registry.scope.business": "業務級",
321
+ "registry.scope.channel": "渠道級",
322
+ "registry.scope.board": "業務×渠道"
323
+ }
324
+ };
@@ -0,0 +1,290 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/systemSettings/registry/services.ts
20
+ var services_exports = {};
21
+ __export(services_exports, {
22
+ createGroup: () => createGroup,
23
+ createItem: () => createItem,
24
+ deleteGroup: () => deleteGroup,
25
+ deleteItem: () => deleteItem,
26
+ getGroupList: () => getGroupList,
27
+ getItemList: () => getItemList,
28
+ getSectionList: () => getSectionList,
29
+ sortGroups: () => sortGroups,
30
+ sortItems: () => sortItems,
31
+ updateGroup: () => updateGroup,
32
+ updateItem: () => updateItem
33
+ });
34
+ module.exports = __toCommonJS(services_exports);
35
+ var createGroup = async (request, params) => {
36
+ try {
37
+ if (!params.title || !params.code || !params.section_code || params.sort === void 0) {
38
+ throw new Error("Missing required parameters for group creation");
39
+ }
40
+ const response = await request.post(
41
+ "/api/setting_group:create",
42
+ params,
43
+ {
44
+ isNocobase: true,
45
+ headers: {
46
+ "x-data-source": "pisell2"
47
+ }
48
+ }
49
+ );
50
+ return response;
51
+ } catch (error) {
52
+ console.error("Failed to create group:", error);
53
+ throw error;
54
+ }
55
+ };
56
+ var updateGroup = async (request, params) => {
57
+ try {
58
+ if (!params.id || !params.title || !params.code) {
59
+ throw new Error("Missing required parameters for group update");
60
+ }
61
+ const response = await request.post(
62
+ `/api/setting_group:update?filterByTk=${params.id}`,
63
+ params,
64
+ {
65
+ isNocobase: true,
66
+ headers: {
67
+ "x-data-source": "pisell2"
68
+ }
69
+ }
70
+ );
71
+ return response;
72
+ } catch (error) {
73
+ console.error("Failed to update group:", error);
74
+ throw error;
75
+ }
76
+ };
77
+ var deleteGroup = async (request, params) => {
78
+ try {
79
+ if (!params.id) {
80
+ throw new Error("Missing required parameters for group deletion");
81
+ }
82
+ const response = await request.post(
83
+ `/api/setting_group:update?filterByTk=${params.id}`,
84
+ {
85
+ deleted_at: (/* @__PURE__ */ new Date()).toISOString()
86
+ },
87
+ {
88
+ isNocobase: true,
89
+ headers: {
90
+ "x-data-source": "pisell2"
91
+ }
92
+ }
93
+ );
94
+ return response;
95
+ } catch (error) {
96
+ console.error("Failed to delete group:", error);
97
+ throw error;
98
+ }
99
+ };
100
+ var sortGroups = async (request, params) => {
101
+ try {
102
+ if (!params.section_code || !params.group_ids || !Array.isArray(params.group_ids)) {
103
+ throw new Error("Missing required parameters for group sorting");
104
+ }
105
+ const response = await request.post(
106
+ "/admin/setting/group/sort",
107
+ {
108
+ section_code: params.section_code,
109
+ group_ids: params.group_ids
110
+ },
111
+ {
112
+ headers: {
113
+ "Content-Type": "application/json"
114
+ }
115
+ }
116
+ );
117
+ return response;
118
+ } catch (error) {
119
+ console.error("Failed to sort groups:", error);
120
+ throw error;
121
+ }
122
+ };
123
+ var getSectionList = async (request, params) => {
124
+ try {
125
+ const { page = 1, pageSize = 20, filter = {} } = params;
126
+ const filterWithSoftDelete = {
127
+ ...filter,
128
+ deleted_at: null
129
+ };
130
+ const queryParams = new URLSearchParams({
131
+ page: page.toString(),
132
+ pageSize: pageSize.toString(),
133
+ filter: JSON.stringify(filterWithSoftDelete)
134
+ });
135
+ const response = await request.get(
136
+ `/api/section:list?${queryParams.toString()}`,
137
+ {},
138
+ {
139
+ isNocobase: true,
140
+ headers: {
141
+ "x-data-source": "pisell2"
142
+ }
143
+ }
144
+ );
145
+ return response;
146
+ } catch (error) {
147
+ console.error("Failed to fetch section list:", error);
148
+ throw error;
149
+ }
150
+ };
151
+ var getGroupList = async (request, params) => {
152
+ try {
153
+ const { filter = {} } = params;
154
+ const filterWithSoftDelete = {
155
+ ...filter,
156
+ deleted_at: null
157
+ // "items.deleted_at": null
158
+ };
159
+ const queryParams = new URLSearchParams({
160
+ paginate: "false",
161
+ filter: JSON.stringify(filterWithSoftDelete),
162
+ appends: "items",
163
+ sort: "sort,id"
164
+ });
165
+ const response = await request.get(
166
+ `/api/setting_group:list?${queryParams.toString()}`,
167
+ {},
168
+ {
169
+ isNocobase: true,
170
+ headers: {
171
+ "x-data-source": "pisell2"
172
+ }
173
+ }
174
+ );
175
+ if (response.data.length > 0) {
176
+ response.data.forEach((item) => {
177
+ item.items = item.items.filter((item2) => item2.deleted_at === null);
178
+ });
179
+ }
180
+ return response;
181
+ } catch (error) {
182
+ console.error("Failed to fetch group list:", error);
183
+ throw error;
184
+ }
185
+ };
186
+ var createItem = async (request, params) => {
187
+ try {
188
+ if (!params.section_code || !params.group_id || !params.title || !params.code || !params.type) {
189
+ throw new Error("Missing required parameters for item creation");
190
+ }
191
+ const response = await request.post(
192
+ "/admin/setting/item",
193
+ params
194
+ );
195
+ return response;
196
+ } catch (error) {
197
+ console.error("Failed to create item:", error);
198
+ throw error;
199
+ }
200
+ };
201
+ var updateItem = async (request, params) => {
202
+ try {
203
+ if (!params.id || !params.section_code || !params.group_id || !params.title || !params.code || !params.type) {
204
+ throw new Error("Missing required parameters for item update");
205
+ }
206
+ const response = await request.put(
207
+ `/admin/setting/item/${params.id}`,
208
+ params
209
+ );
210
+ return response;
211
+ } catch (error) {
212
+ console.error("Failed to update item:", error);
213
+ throw error;
214
+ }
215
+ };
216
+ var deleteItem = async (request, params) => {
217
+ try {
218
+ console.log(request);
219
+ if (!params.id) {
220
+ throw new Error("Missing required parameters for item deletion");
221
+ }
222
+ const response = await request.remove(
223
+ `/admin/setting/item/${params.id}`,
224
+ {}
225
+ );
226
+ return response;
227
+ } catch (error) {
228
+ console.error("Failed to delete item:", error);
229
+ throw error;
230
+ }
231
+ };
232
+ var sortItems = async (request, params) => {
233
+ try {
234
+ if (!params.id || !params.group_id || !params.item_ids) {
235
+ throw new Error("Missing required parameters for item sorting");
236
+ }
237
+ const response = await request.post(
238
+ `/admin/setting/item/${params.id}/sort`,
239
+ {
240
+ group_id: params.group_id,
241
+ item_ids: params.item_ids
242
+ },
243
+ {
244
+ headers: {
245
+ "Content-Type": "application/json"
246
+ }
247
+ }
248
+ );
249
+ return response;
250
+ } catch (error) {
251
+ console.error("Failed to sort items:", error);
252
+ throw error;
253
+ }
254
+ };
255
+ var getItemList = async (request, params) => {
256
+ try {
257
+ const { page = 1, pageSize = 20, filter = {} } = params;
258
+ const filterWithSoftDelete = {
259
+ ...filter,
260
+ deleted_at: null
261
+ };
262
+ const queryParams = new URLSearchParams({
263
+ page: page.toString(),
264
+ pageSize: pageSize.toString(),
265
+ filter: JSON.stringify(filterWithSoftDelete)
266
+ });
267
+ const response = await request.get(
268
+ `/api/setting_item:list?${queryParams.toString()}`,
269
+ {}
270
+ );
271
+ return response;
272
+ } catch (error) {
273
+ console.error("Failed to fetch item list:", error);
274
+ throw error;
275
+ }
276
+ };
277
+ // Annotate the CommonJS export names for ESM import in node:
278
+ 0 && (module.exports = {
279
+ createGroup,
280
+ createItem,
281
+ deleteGroup,
282
+ deleteItem,
283
+ getGroupList,
284
+ getItemList,
285
+ getSectionList,
286
+ sortGroups,
287
+ sortItems,
288
+ updateGroup,
289
+ updateItem
290
+ });
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/systemSettings/registry/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);