@pisell/materials 1.10.19 → 1.10.21

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 (268) 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 +3 -3
  5. package/build/lowcode/preview.css +1 -1
  6. package/build/lowcode/preview.js +1 -1
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +32 -32
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +32 -32
  11. package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -2
  12. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -2
  13. package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
  14. package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -2
  15. package/es/components/PisellCards/components/TabCard/TabCard.d.ts +1 -2
  16. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +1 -2
  17. package/es/components/PisellCards/index.d.ts +5 -7
  18. package/es/components/PisellFields/index.d.ts +0 -1
  19. package/es/components/PisellFields/index.js +11 -0
  20. package/es/components/PisellGroupView/PisellGroupView.d.ts +1 -2
  21. package/es/components/PisellLayouts/index.d.ts +2 -3
  22. package/es/components/PisellMetrics/index.d.ts +2 -3
  23. package/es/components/PisellSelectionFlow/PisellSelectionFlow.js +7 -1
  24. package/es/components/PisellSelectionFlow/hooks/useFlowNavigation.js +104 -3
  25. package/es/components/PisellSelectionFlow/index.d.ts +1 -1
  26. package/es/components/PisellSelectionFlow/types.d.ts +20 -1
  27. package/es/components/appVersionControl/index.d.ts +1 -2
  28. package/es/components/appVersionControl/types.d.ts +0 -1
  29. package/es/components/auto-complete-number/index.d.ts +1 -2
  30. package/es/components/badge/index.d.ts +1 -2
  31. package/es/components/batch-editor/index.d.ts +1 -2
  32. package/es/components/calendar/index.d.ts +1 -4
  33. package/es/components/cardMetricItem/index.d.ts +1 -1
  34. package/es/components/cardPro/index.d.ts +1 -2
  35. package/es/components/checkbox/index.d.ts +1 -4
  36. package/es/components/classicLayout/index.d.ts +1 -2
  37. package/es/components/config-provider/index.d.ts +1 -2
  38. package/es/components/customSelect/index.d.ts +1 -1
  39. package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  40. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  41. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  42. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -4
  43. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  44. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  45. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -2
  46. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  47. package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  48. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -2
  49. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  50. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -3
  51. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  52. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  53. package/es/components/date-picker/index.d.ts +1 -4
  54. package/es/components/drag-sort-tree/index.d.ts +1 -2
  55. package/es/components/drag-sort-tree/types.d.ts +0 -1
  56. package/es/components/dropdown/index.d.ts +1 -3
  57. package/es/components/filter/components/FilterButton/types.d.ts +0 -1
  58. package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +2 -0
  59. package/es/components/filter/components/FilterItem/index.js +11 -0
  60. package/es/components/filter/index.d.ts +1 -2
  61. package/es/components/input/index.d.ts +0 -1
  62. package/es/components/keyboard/index.d.ts +1 -1
  63. package/es/components/list/index.d.ts +1 -2
  64. package/es/components/lowCodePage/index.d.ts +1 -3
  65. package/es/components/page/index.d.ts +1 -2
  66. package/es/components/page-header/index.d.ts +1 -1
  67. package/es/components/pisell-config-provider/context.d.ts +0 -1
  68. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -2
  69. package/es/components/pisellAdjustPrice/index.d.ts +1 -2
  70. package/es/components/pisellAlert/index.d.ts +1 -1
  71. package/es/components/pisellCard/index.d.ts +1 -2
  72. package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
  73. package/es/components/pisellCountdown/index.d.ts +1 -1
  74. package/es/components/pisellCurrency/index.js +13 -0
  75. package/es/components/pisellDatePicker/index.d.ts +1 -4
  76. package/es/components/pisellDraggable/index.d.ts +1 -1
  77. package/es/components/pisellEmail/index.js +13 -0
  78. package/es/components/pisellEmpty/index.d.ts +1 -1
  79. package/es/components/pisellFilter/index.d.ts +1 -2
  80. package/es/components/pisellFloatingPanel/index.d.ts +1 -1
  81. package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +4 -5
  82. package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +1 -2
  83. package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +1 -3
  84. package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +1 -2
  85. package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
  86. package/es/components/pisellGoodPassCard/index.d.ts +1 -1
  87. package/es/components/pisellGridPro/GridView/index.d.ts +1 -2
  88. package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  89. package/es/components/pisellInformationEntry/index.d.ts +1 -1
  90. package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
  91. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  92. package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  93. package/es/components/pisellInput/index.d.ts +4 -5
  94. package/es/components/pisellLoading/index.d.ts +1 -2
  95. package/es/components/pisellLongText/index.js +13 -0
  96. package/es/components/pisellLookup/PisellLookup.less +2 -0
  97. package/es/components/pisellMenu/types.d.ts +0 -1
  98. package/es/components/pisellModal/index.d.ts +2 -2
  99. package/es/components/pisellMultipleSelect/index.js +13 -0
  100. package/es/components/pisellNumber/index.js +13 -0
  101. package/es/components/pisellPercent/index.js +13 -0
  102. package/es/components/pisellPhone/index.js +14 -0
  103. package/es/components/pisellQuickFilter/type.d.ts +0 -1
  104. package/es/components/pisellRating/index.js +13 -0
  105. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +13 -7
  106. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -2
  107. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +2 -1
  108. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +6 -6
  109. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +3 -3
  110. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +3 -3
  111. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +2 -0
  112. package/es/components/pisellRecordBoard/types.d.ts +2 -0
  113. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +11 -0
  114. package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -2
  115. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +1 -2
  116. package/es/components/pisellRow/index.d.ts +1 -1
  117. package/es/components/pisellSingleLineText/index.js +13 -0
  118. package/es/components/pisellSingleSelect/index.js +13 -0
  119. package/es/components/pisellSort/index.d.ts +1 -2
  120. package/es/components/pisellStatisticList/index.d.ts +1 -1
  121. package/es/components/pisellTags/index.d.ts +1 -1
  122. package/es/components/pisellText/index.d.ts +2 -2
  123. package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +1 -2
  124. package/es/components/pisellTooltip/index.d.ts +1 -2
  125. package/es/components/pisellUpload/index.d.ts +1 -2
  126. package/es/components/pisellUrl/index.js +13 -0
  127. package/es/components/pisellWalletPassCard/index.d.ts +1 -1
  128. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +1 -1
  129. package/es/components/productCard/cartSkuCard/index.less +0 -1
  130. package/es/components/qrcode/index.d.ts +1 -3
  131. package/es/components/radio/index.d.ts +1 -4
  132. package/es/components/section-footers/index.d.ts +1 -4
  133. package/es/components/segmented/index.d.ts +1 -2
  134. package/es/components/select-time/index.d.ts +1 -2
  135. package/es/components/skeleton/index.d.ts +1 -4
  136. package/es/components/slider/index.d.ts +1 -3
  137. package/es/components/tabs/index.d.ts +2 -2
  138. package/es/components/time-picker/index.d.ts +1 -4
  139. package/es/components/upload/index.d.ts +1 -4
  140. package/es/components/versionSelect/index.d.ts +0 -1
  141. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -2
  142. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -1
  143. package/es/components/virtual-keyboard/Number/index.d.ts +1 -2
  144. package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
  145. package/es/components/virtual-keyboard/index.d.ts +1 -1
  146. package/es/index.d.ts +2 -2
  147. package/es/index.js +11 -0
  148. package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -2
  149. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -2
  150. package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
  151. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -2
  152. package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +1 -2
  153. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +1 -2
  154. package/lib/components/PisellCards/index.d.ts +5 -7
  155. package/lib/components/PisellFields/index.d.ts +0 -1
  156. package/lib/components/PisellGroupView/PisellGroupView.d.ts +1 -2
  157. package/lib/components/PisellLayouts/index.d.ts +2 -3
  158. package/lib/components/PisellMetrics/index.d.ts +2 -3
  159. package/lib/components/PisellSelectionFlow/PisellSelectionFlow.js +7 -1
  160. package/lib/components/PisellSelectionFlow/hooks/useFlowNavigation.js +104 -3
  161. package/lib/components/PisellSelectionFlow/index.d.ts +1 -1
  162. package/lib/components/PisellSelectionFlow/types.d.ts +20 -1
  163. package/lib/components/appVersionControl/index.d.ts +1 -2
  164. package/lib/components/appVersionControl/types.d.ts +0 -1
  165. package/lib/components/auto-complete-number/index.d.ts +1 -2
  166. package/lib/components/badge/index.d.ts +1 -2
  167. package/lib/components/batch-editor/index.d.ts +1 -2
  168. package/lib/components/calendar/index.d.ts +1 -4
  169. package/lib/components/cardMetricItem/index.d.ts +1 -1
  170. package/lib/components/cardPro/index.d.ts +1 -2
  171. package/lib/components/checkbox/index.d.ts +1 -4
  172. package/lib/components/classicLayout/index.d.ts +1 -2
  173. package/lib/components/config-provider/index.d.ts +1 -2
  174. package/lib/components/customSelect/index.d.ts +1 -1
  175. package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  176. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  177. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  178. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -4
  179. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  180. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  181. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -2
  182. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  183. package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  184. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -2
  185. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  186. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -3
  187. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  188. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  189. package/lib/components/date-picker/index.d.ts +1 -4
  190. package/lib/components/drag-sort-tree/index.d.ts +1 -2
  191. package/lib/components/drag-sort-tree/types.d.ts +0 -1
  192. package/lib/components/dropdown/index.d.ts +1 -3
  193. package/lib/components/filter/components/FilterButton/types.d.ts +0 -1
  194. package/lib/components/filter/index.d.ts +1 -2
  195. package/lib/components/input/index.d.ts +0 -1
  196. package/lib/components/keyboard/index.d.ts +1 -1
  197. package/lib/components/list/index.d.ts +1 -2
  198. package/lib/components/lowCodePage/index.d.ts +1 -3
  199. package/lib/components/page/index.d.ts +1 -2
  200. package/lib/components/page-header/index.d.ts +1 -1
  201. package/lib/components/pisell-config-provider/context.d.ts +0 -1
  202. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -2
  203. package/lib/components/pisellAdjustPrice/index.d.ts +1 -2
  204. package/lib/components/pisellAlert/index.d.ts +1 -1
  205. package/lib/components/pisellCard/index.d.ts +1 -2
  206. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
  207. package/lib/components/pisellCountdown/index.d.ts +1 -1
  208. package/lib/components/pisellDatePicker/index.d.ts +1 -4
  209. package/lib/components/pisellDraggable/index.d.ts +1 -1
  210. package/lib/components/pisellEmpty/index.d.ts +1 -1
  211. package/lib/components/pisellFilter/index.d.ts +1 -2
  212. package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
  213. package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +4 -5
  214. package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +1 -2
  215. package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +1 -3
  216. package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +1 -2
  217. package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
  218. package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
  219. package/lib/components/pisellGridPro/GridView/index.d.ts +1 -2
  220. package/lib/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  221. package/lib/components/pisellInformationEntry/index.d.ts +1 -1
  222. package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
  223. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  224. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
  225. package/lib/components/pisellInput/index.d.ts +4 -5
  226. package/lib/components/pisellLoading/index.d.ts +1 -2
  227. package/lib/components/pisellLookup/PisellLookup.less +2 -0
  228. package/lib/components/pisellMenu/types.d.ts +0 -1
  229. package/lib/components/pisellModal/index.d.ts +2 -2
  230. package/lib/components/pisellQuickFilter/type.d.ts +0 -1
  231. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +12 -6
  232. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -2
  233. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +2 -0
  234. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +6 -6
  235. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +2 -2
  236. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +2 -2
  237. package/lib/components/pisellRecordBoard/types.d.ts +2 -0
  238. package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +1 -2
  239. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +1 -2
  240. package/lib/components/pisellRow/index.d.ts +1 -1
  241. package/lib/components/pisellSort/index.d.ts +1 -2
  242. package/lib/components/pisellStatisticList/index.d.ts +1 -1
  243. package/lib/components/pisellTags/index.d.ts +1 -1
  244. package/lib/components/pisellText/index.d.ts +2 -2
  245. package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +1 -2
  246. package/lib/components/pisellTooltip/index.d.ts +1 -2
  247. package/lib/components/pisellUpload/index.d.ts +1 -2
  248. package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
  249. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +1 -1
  250. package/lib/components/productCard/cartSkuCard/index.less +0 -1
  251. package/lib/components/qrcode/index.d.ts +1 -3
  252. package/lib/components/radio/index.d.ts +1 -4
  253. package/lib/components/section-footers/index.d.ts +1 -4
  254. package/lib/components/segmented/index.d.ts +1 -2
  255. package/lib/components/select-time/index.d.ts +1 -2
  256. package/lib/components/skeleton/index.d.ts +1 -4
  257. package/lib/components/slider/index.d.ts +1 -3
  258. package/lib/components/tabs/index.d.ts +2 -2
  259. package/lib/components/time-picker/index.d.ts +1 -4
  260. package/lib/components/upload/index.d.ts +1 -4
  261. package/lib/components/versionSelect/index.d.ts +0 -1
  262. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -2
  263. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -1
  264. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -2
  265. package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
  266. package/lib/components/virtual-keyboard/index.d.ts +1 -1
  267. package/lib/index.d.ts +2 -2
  268. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import "./constants/countryCodes.js";
3
+ import PisellPhone_default from "./PisellPhone.js";
4
+ //#region src/components/pisellPhone/index.tsx
5
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
6
+ PisellPhone_default.SortOptions = { getSortItems: (fieldKey) => [{
7
+ key: `${fieldKey}:asc`,
8
+ label: getText("sort-a-z")
9
+ }, {
10
+ key: `${fieldKey}:desc`,
11
+ label: getText("sort-z-a")
12
+ }] };
13
+ //#endregion
14
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../filter/types.js";
3
2
  import { FormInstance } from "antd";
4
3
 
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellRating_default from "./PisellRating.js";
3
+ //#region src/components/pisellRating/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 0 → 9 / 9 → 0 */
5
+ PisellRating_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-0-9")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-9-0")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -3,7 +3,7 @@ import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.
3
3
  import { buildCalendarTimelineSlotStartsFromRange } from "../../../pisellTimeNavigator/utils/index.js";
4
4
  import { useCalendarPersist } from "./calendarPersistGuard.js";
5
5
  import { DEFAULT_CALENDAR_TIMELINE } from "./const/bookingCalendarConstants.js";
6
- import { tCal } from "./calendarI18n.js";
6
+ import { CALENDAR_WEEKDAY_IDS, SUNDAY_FIRST_CALENDAR_WEEKDAY_IDS, tCal } from "./calendarI18n.js";
7
7
  import { addDays, dayAndHourToDayjs, fmtDate, groupSelectedSlots, isCrossDayBooking, isFreeSelectionContiguousSameResource, isHourInTimelineSlots, monthCalendarDays, monthGrid, rangeDays, startOfWeek } from "./utils/bookingCalendarDateUtils.js";
8
8
  import { MoveConfirmModal } from "./modal/MoveConfirmModal.js";
9
9
  import { BookingCalendarBlockPanel } from "./modal/BookingCalendarBlockPanel.js";
@@ -32,7 +32,9 @@ import "./BookingCalendar.less";
32
32
  */
33
33
  /** 看板日历根组件:内含主题 CSS 与 Spin,按 `view` 挂载月 / 周 / 日子组件 */
34
34
  function BookingCalendar(props = {}) {
35
- var _hourSlots$;
35
+ var _props$weekStartsOn, _hourSlots$;
36
+ const weekStartsOn = (_props$weekStartsOn = props.weekStartsOn) !== null && _props$weekStartsOn !== void 0 ? _props$weekStartsOn : 1;
37
+ const weekdayIds = weekStartsOn === 0 ? SUNDAY_FIRST_CALENDAR_WEEKDAY_IDS : CALENDAR_WEEKDAY_IDS;
36
38
  const allowPersist = useCalendarPersist();
37
39
  /** 将 `resources` 规范为 `{ id, name, type }`,供分组与三视图共用 */
38
40
  const courts = useMemo(() => {
@@ -97,7 +99,7 @@ function BookingCalendar(props = {}) {
97
99
  rangeStart = new Date(a.getFullYear(), a.getMonth(), 1);
98
100
  rangeEnd = new Date(a.getFullYear(), a.getMonth() + 1, 0);
99
101
  } else if (view === "week") {
100
- rangeStart = startOfWeek(a);
102
+ rangeStart = startOfWeek(a, weekStartsOn);
101
103
  rangeEnd = addDays(rangeStart, 6);
102
104
  } else {
103
105
  rangeStart = new Date(a);
@@ -112,7 +114,8 @@ function BookingCalendar(props = {}) {
112
114
  }, [
113
115
  view,
114
116
  anchorDate,
115
- props.onViewportChange
117
+ props.onViewportChange,
118
+ weekStartsOn
116
119
  ]);
117
120
  const [selectedFreeSlots, setSelectedFreeSlots] = useState([]);
118
121
  const [selectedBlockSlots, setSelectedBlockSlots] = useState([]);
@@ -175,7 +178,7 @@ function BookingCalendar(props = {}) {
175
178
  */
176
179
  const { dayRowHeights, overlayBookings, courtDayDisplayLaneCount, hiddenDayOverlayIdSet, dayOverlayOverflowPluses } = useBookingCalendarDayOverlayLayout(visibleCourtRows, dayKey, bookings, hourSlots, slotStepHours);
177
180
  /** 周视图表头对应的 7 个自然日 */
178
- const weekDays = useMemo(() => rangeDays(anchorDate), [anchorDate]);
181
+ const weekDays = useMemo(() => rangeDays(anchorDate, weekStartsOn), [anchorDate, weekStartsOn]);
179
182
  /** 资源视图:当月每日一列 */
180
183
  const resourceMonthDays = useMemo(() => monthCalendarDays(anchorDate), [anchorDate]);
181
184
  useMemo(() => new Set(weekDays.map((d) => fmtDate(d))), [weekDays]);
@@ -211,12 +214,13 @@ function BookingCalendar(props = {}) {
211
214
  }
212
215
  }, [view]);
213
216
  /** 月历每格摘要(占用点、锁台等),供月视图渲染 */
214
- const monthDays = useMemo(() => monthGrid(anchorDate, bookings, courts, hourSlots, slotStepHours), [
217
+ const monthDays = useMemo(() => monthGrid(anchorDate, bookings, courts, hourSlots, slotStepHours, weekStartsOn), [
215
218
  anchorDate,
216
219
  bookings,
217
220
  courts,
218
221
  hourSlots,
219
- slotStepHours
222
+ slotStepHours,
223
+ weekStartsOn
220
224
  ]);
221
225
  /** 日视图内容区总高度(表头 + 各资源行叠加以 overlay 抬高后的高度) */
222
226
  const dayContentHeight = 56 + dayRowHeights.reduce((sum, h) => sum + h, 0);
@@ -610,6 +614,7 @@ function BookingCalendar(props = {}) {
610
614
  className: "theme-shell soft-shadow mx-0 flex h-full min-h-0 w-full max-w-none flex-1 flex-col overflow-hidden transition-[padding-right] duration-200",
611
615
  style: { paddingRight: 0 }
612
616
  }, /* @__PURE__ */ React.createElement("div", { className: "flex min-h-0 flex-1 flex-col" }, view === "month" && /* @__PURE__ */ React.createElement(BookingCalendarMonthView, {
617
+ weekdayIds,
613
618
  isLight,
614
619
  anchorDate,
615
620
  monthDays,
@@ -622,6 +627,7 @@ function BookingCalendar(props = {}) {
622
627
  renderMonthWeekBooking: props.renderMonthWeekBooking,
623
628
  tickFillMode: resolveTickFillMode("month", props.tickFillMode)
624
629
  }), view === "week" && /* @__PURE__ */ React.createElement(BookingCalendarWeekView, {
630
+ weekdayIds,
625
631
  calendarProps: props,
626
632
  isLight,
627
633
  weekDays,
@@ -1,5 +1,4 @@
1
1
  import { RecordBoardCalendarProps } from "../../types.js";
2
- import React from "react";
3
2
 
4
3
  //#region src/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts
5
4
  type PisellRecordBoardCalendarViewProps = RecordBoardCalendarProps;
@@ -10,6 +9,6 @@ type PisellRecordBoardCalendarViewProps = RecordBoardCalendarProps;
10
9
  * 只做「占位与裁剪高度」;本组件根节点负责在同一 flex 列里向下传递 **min-height:0**,避免 `BookingCalendar`
11
10
  * 撑破壳层(一层即可,历史上曾双包一层重复 flex+overflow)。
12
11
  */
13
- declare function PisellRecordBoardCalendarView(props: PisellRecordBoardCalendarViewProps): React.JSX.Element;
12
+ declare function PisellRecordBoardCalendarView(props: PisellRecordBoardCalendarViewProps): JSX.Element;
14
13
  //#endregion
15
14
  export { PisellRecordBoardCalendarView, PisellRecordBoardCalendarViewProps };
@@ -18,5 +18,6 @@ const CALENDAR_WEEKDAY_IDS = [
18
18
  "pisell2.recordBoard.calendar.weekday.sat",
19
19
  "pisell2.recordBoard.calendar.weekday.sun"
20
20
  ];
21
+ const SUNDAY_FIRST_CALENDAR_WEEKDAY_IDS = [CALENDAR_WEEKDAY_IDS[6], ...CALENDAR_WEEKDAY_IDS.slice(0, 6)];
21
22
  //#endregion
22
- export { CALENDAR_WEEKDAY_IDS, tCal };
23
+ export { CALENDAR_WEEKDAY_IDS, SUNDAY_FIRST_CALENDAR_WEEKDAY_IDS, tCal };
@@ -24,16 +24,16 @@ function addDays(date, n) {
24
24
  next.setDate(next.getDate() + n);
25
25
  return next;
26
26
  }
27
- function startOfWeek(date) {
27
+ function startOfWeek(date, weekStartsOn = 1) {
28
28
  const d = new Date(date);
29
29
  const day = d.getDay();
30
- const diff = day === 0 ? -6 : 1 - day;
30
+ const diff = weekStartsOn === 0 ? -day : day === 0 ? -6 : 1 - day;
31
31
  d.setDate(d.getDate() + diff);
32
32
  d.setHours(0, 0, 0, 0);
33
33
  return d;
34
34
  }
35
- function rangeDays(anchor) {
36
- const start = startOfWeek(anchor);
35
+ function rangeDays(anchor, weekStartsOn = 1) {
36
+ const start = startOfWeek(anchor, weekStartsOn);
37
37
  return Array.from({ length: 7 }, (_, i) => addDays(start, i));
38
38
  }
39
39
  /**
@@ -67,11 +67,11 @@ function formatShortMonthDay(dateKey) {
67
67
  if (!m || !d) return dateKey;
68
68
  return `${m}/${d}`;
69
69
  }
70
- function monthGrid(date, bookings, courtsList = [], hourSlotsIn, slotStepHours = 1) {
70
+ function monthGrid(date, bookings, courtsList = [], hourSlotsIn, slotStepHours = 1, weekStartsOn = 1) {
71
71
  const hourSlots = hourSlotsIn && hourSlotsIn.length ? hourSlotsIn : buildCalendarTimelineSlotStartsFromRange(DEFAULT_CALENDAR_TIMELINE, date, 60);
72
72
  const year = date.getFullYear();
73
73
  const month = date.getMonth();
74
- const start = startOfWeek(new Date(year, month, 1));
74
+ const start = startOfWeek(new Date(year, month, 1), weekStartsOn);
75
75
  return Array.from({ length: 35 }, (_, i) => addDays(start, i)).map((day) => {
76
76
  const key = fmtDate(day);
77
77
  const dayBookings = bookings.filter((b) => b.kind === "booking" && getBookingSegmentForDate(b, key) != null);
@@ -1,5 +1,5 @@
1
1
  import { monthViewEffectiveMaxLanes } from "../const/bookingCalendarConstants.js";
2
- import { CALENDAR_WEEKDAY_IDS, tCal } from "../calendarI18n.js";
2
+ import { tCal } from "../calendarI18n.js";
3
3
  import { assignPerDateLanesCrossDayUnified, clipBookingDaySpanToWindow, fmtDate, formatHourLabel, formatShortMonthDay, getBookingSegmentForDate, isCrossDayBooking } from "../utils/bookingCalendarDateUtils.js";
4
4
  import { getGridBookingRowStateClasses } from "../utils/BookingCalendarStyle.js";
5
5
  import { CalendarGridBookingClipMarkers } from "../bookingCalendarViewShared.js";
@@ -15,7 +15,7 @@ const MONTH_GRID_COLS = 7;
15
15
  * - 行高内自适应 effectiveMaxLane,超出 → cell 级 `+N` tile;
16
16
  * - cell 层只负责日期 header / 点击跳日 / drop 改期,不再渲染 booking 列表(被 overlay 替代)。
17
17
  */
18
- function BookingCalendarMonthView({ isLight, anchorDate, monthDays, bookings, goToDayFromCell, handleGridDropMove, setDraggingItem, openBookingDetail, setOverflowListModal, renderMonthWeekBooking, tickFillMode }) {
18
+ function BookingCalendarMonthView({ weekdayIds, isLight, anchorDate, monthDays, bookings, goToDayFromCell, handleGridDropMove, setDraggingItem, openBookingDetail, setOverflowListModal, renderMonthWeekBooking, tickFillMode }) {
19
19
  const todayKey = fmtDate(/* @__PURE__ */ new Date());
20
20
  const weekRows = useMemo(() => {
21
21
  const out = [];
@@ -48,7 +48,7 @@ function BookingCalendarMonthView({ isLight, anchorDate, monthDays, bookings, go
48
48
  return /* @__PURE__ */ React.createElement("div", {
49
49
  key: `month-${anchorDate.getFullYear()}-${anchorDate.getMonth()}`,
50
50
  className: "flex min-h-0 flex-1 flex-col"
51
- }, /* @__PURE__ */ React.createElement("div", { className: "relative flex min-h-0 flex-1 flex-col overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-auto overflow-y-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "theme-panel flex min-h-[0] min-w-[980px] flex-1 flex-col overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "theme-panel-alt grid shrink-0 grid-cols-7 border-b theme-border shadow-[0_6px_12px_rgba(0,0,0,0.08)]" }, CALENDAR_WEEKDAY_IDS.map((id) => /* @__PURE__ */ React.createElement("div", {
51
+ }, /* @__PURE__ */ React.createElement("div", { className: "relative flex min-h-0 flex-1 flex-col overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-auto overflow-y-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "theme-panel flex min-h-[0] min-w-[980px] flex-1 flex-col overflow-hidden" }, /* @__PURE__ */ React.createElement("div", { className: "theme-panel-alt grid shrink-0 grid-cols-7 border-b theme-border shadow-[0_6px_12px_rgba(0,0,0,0.08)]" }, weekdayIds.map((id) => /* @__PURE__ */ React.createElement("div", {
52
52
  key: id,
53
53
  className: "px-4 py-2.5 text-center text-sm font-medium"
54
54
  }, tCal(id)))), /* @__PURE__ */ React.createElement("div", {
@@ -1,5 +1,5 @@
1
1
  import { CALENDAR_EMPTY_DASHED_SLOT_CLASSNAME } from "../const/bookingCalendarConstants.js";
2
- import { CALENDAR_WEEKDAY_IDS, tCal } from "../calendarI18n.js";
2
+ import { tCal } from "../calendarI18n.js";
3
3
  import { assignLanesByInterval, bookingIntersectsDateWindow, courtDaySummary, dayOccupancy, fmtDate, formatHourLabel, formatShortMonthDay, getBookingSegmentForDate, isCrossDayBooking } from "../utils/bookingCalendarDateUtils.js";
4
4
  import { getGridBookingRowStateClasses } from "../utils/BookingCalendarStyle.js";
5
5
  import { CalendarGridBookingClipMarkers, getRemainingToneClass } from "../bookingCalendarViewShared.js";
@@ -13,7 +13,7 @@ const WEEK_VIEW_OVERLAY_LANE_GAP = 4;
13
13
  /**
14
14
  * 周视图:7 日网格 + 左侧分组(可折叠),单元格调起日视图;格内 drop 触发改期草稿。
15
15
  */
16
- function BookingCalendarWeekView({ calendarProps, isLight, weekDays, bookings, courts, hourSlots, slotStepHours, visibleCourts, visibleCourtRows, isBusinessHour, goToDayFromCell, handleGridDropMove, openBookingDetail, setDraggingItem, setCollapsedGroups, setOverflowListModal, tickFillMode }) {
16
+ function BookingCalendarWeekView({ weekdayIds, calendarProps, isLight, weekDays, bookings, courts, hourSlots, slotStepHours, visibleCourts, visibleCourtRows, isBusinessHour, goToDayFromCell, handleGridDropMove, openBookingDetail, setDraggingItem, setCollapsedGroups, setOverflowListModal, tickFillMode }) {
17
17
  const props = calendarProps;
18
18
  const todayKey = fmtDate(/* @__PURE__ */ new Date());
19
19
  /** 与下方 grid `minmax(…px, 1fr)` 一致:窄屏由外层 overflow-auto + min-w-0 定视口宽,本值撑开 scrollWidth */
@@ -142,7 +142,7 @@ function BookingCalendarWeekView({ calendarProps, isLight, weekDays, bookings, c
142
142
  return /* @__PURE__ */ React.createElement("div", {
143
143
  key,
144
144
  className: `relative z-20 border-b border-l px-1.5 py-2 text-center shadow-[0_8px_16px_rgba(0,0,0,0.06)] ${isLight ? "theme-border theme-text" : "border-zinc-800"} ${isToday ? isLight ? "bg-gradient-to-b from-violet-50 to-white" : "bg-gradient-to-b from-violet-950 to-[#1a1a22]" : isLight ? "theme-panel-soft" : "bg-[#1a1a22]"}`
145
- }, /* @__PURE__ */ React.createElement("div", { className: `text-sm leading-tight ${isLight ? "theme-text-faint" : "text-zinc-400"}` }, tCal(CALENDAR_WEEKDAY_IDS[i])), /* @__PURE__ */ React.createElement("div", { className: "mt-0.5 flex justify-center" }, /* @__PURE__ */ React.createElement("span", {
145
+ }, /* @__PURE__ */ React.createElement("div", { className: `text-sm leading-tight ${isLight ? "theme-text-faint" : "text-zinc-400"}` }, tCal(weekdayIds[i])), /* @__PURE__ */ React.createElement("div", { className: "mt-0.5 flex justify-center" }, /* @__PURE__ */ React.createElement("span", {
146
146
  className: "grid h-10 w-10 place-items-center text-3xl font-semibold leading-none",
147
147
  "aria-label": isToday ? "Today" : void 0
148
148
  }, day.getDate())));
@@ -1,6 +1,8 @@
1
1
  import { getText } from "../../../../locales/index.js";
2
2
  import MemoizedPisellNumber from "../../../pisellNumber/PisellNumber.js";
3
+ import "../../../pisellNumber/index.js";
3
4
  import PisellSingleSelect from "../../../pisellSingleSelect/PisellSingleSelect.js";
5
+ import "../../../pisellSingleSelect/index.js";
4
6
  import React from "react";
5
7
  //#region src/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.tsx
6
8
  /** 控制台「资源 / 布局」分页:预设、自定义行列、翻页停留、主文案宽度 */
@@ -329,6 +329,8 @@ interface RecordBoardBlockedTimePanelPayload {
329
329
  }
330
330
  /** 日历视图槽位 props:由 Shell 合并根级与子槽后传入 PisellRecordBoardCalendarView */
331
331
  interface RecordBoardCalendarProps {
332
+ /** 0 = Sunday, 1 = Monday. Omitted keeps the original Monday-first behaviour. */
333
+ weekStartsOn?: 0 | 1;
332
334
  persistGuard?: CalendarPersistContextValue;
333
335
  /**
334
336
  * 日历画布外观:亮色切换 `theme-root.theme-light`;未传或 `dark` 为深色(默认)。
@@ -1,16 +1,27 @@
1
1
  import { getText } from "../../../locales/index.js";
2
2
  import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
3
3
  import PisellSingleLineText_default from "../../pisellSingleLineText/PisellSingleLineText.js";
4
+ import "../../pisellSingleLineText/index.js";
4
5
  import PisellLongText_default from "../../pisellLongText/PisellLongText.js";
6
+ import "../../pisellLongText/index.js";
5
7
  import MemoizedPisellNumber from "../../pisellNumber/PisellNumber.js";
8
+ import "../../pisellNumber/index.js";
6
9
  import MemoizedPisellCurrency from "../../pisellCurrency/PisellCurrency.js";
10
+ import "../../pisellCurrency/index.js";
7
11
  import MemoizedPisellPercent from "../../pisellPercent/PisellPercent.js";
12
+ import "../../pisellPercent/index.js";
8
13
  import PisellPhone_default from "../../pisellPhone/PisellPhone.js";
14
+ import "../../pisellPhone/index.js";
9
15
  import PisellEmail_default from "../../pisellEmail/PisellEmail.js";
16
+ import "../../pisellEmail/index.js";
10
17
  import PisellUrl_default from "../../pisellUrl/PisellUrl.js";
18
+ import "../../pisellUrl/index.js";
11
19
  import PisellRating_default from "../../pisellRating/PisellRating.js";
20
+ import "../../pisellRating/index.js";
12
21
  import PisellSingleSelect from "../../pisellSingleSelect/PisellSingleSelect.js";
22
+ import "../../pisellSingleSelect/index.js";
13
23
  import PisellMultipleSelect from "../../pisellMultipleSelect/PisellMultipleSelect.js";
24
+ import "../../pisellMultipleSelect/index.js";
14
25
  import PisellDateTimeDisplay_default from "../../pisellDateTimeDisplay/PisellDateTimeDisplay.js";
15
26
  import React, { useEffect, useState } from "react";
16
27
  //#region src/components/pisellRecordBoard/utils/recordBoardColumns.tsx
@@ -1,10 +1,9 @@
1
1
  import { PisellReservationScheduleProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/pisellReservationSchedule/PisellReservationSchedule.d.ts
4
3
  /**
5
4
  * 营业日导航条:上一日、中间日期文案、下一日(深色条样式,适配预约顶栏)
6
5
  */
7
- declare function PisellReservationSchedule(props: PisellReservationScheduleProps): React.JSX.Element;
6
+ declare function PisellReservationSchedule(props: PisellReservationScheduleProps): JSX.Element;
8
7
  declare namespace PisellReservationSchedule {
9
8
  var displayName: string;
10
9
  }
@@ -1,10 +1,9 @@
1
1
  import { PisellReservationScheduleBandProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts
4
3
  /**
5
4
  * 预约顶栏组合:营业日切换 + 锚定到选中日的时间导航轴
6
5
  */
7
- declare function PisellReservationScheduleBand(props: PisellReservationScheduleBandProps): React.JSX.Element;
6
+ declare function PisellReservationScheduleBand(props: PisellReservationScheduleBandProps): JSX.Element;
8
7
  declare namespace PisellReservationScheduleBand {
9
8
  var displayName: string;
10
9
  }
@@ -18,6 +18,6 @@ interface PisellRowProps extends React.DetailedHTMLProps<React.HTMLAttributes<HT
18
18
  * @Author: zhiwei.Wang
19
19
  * @Date: 2024-08-16 10:38
20
20
  */
21
- declare const PisellRow: (props: PisellRowProps) => React.JSX.Element;
21
+ declare const PisellRow: (props: PisellRowProps) => JSX.Element;
22
22
  //#endregion
23
23
  export { PisellRow, PisellRowProps };
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellSingleLineText_default from "./PisellSingleLineText.js";
3
+ //#region src/components/pisellSingleLineText/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
5
+ PisellSingleLineText_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-a-z")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-z-a")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellSingleSelect from "./PisellSingleSelect.js";
3
+ //#region src/components/pisellSingleSelect/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 First → Last / Last → First */
5
+ PisellSingleSelect.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-first-last")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-last-first")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -1,7 +1,6 @@
1
1
  import { PisellSortProps } from "./type.js";
2
- import React from "react";
3
2
 
4
3
  //#region src/components/pisellSort/index.d.ts
5
- declare const PisellSort: (props: PisellSortProps) => React.JSX.Element;
4
+ declare const PisellSort: (props: PisellSortProps) => JSX.Element;
6
5
  //#endregion
7
6
  export { PisellSort };
@@ -18,6 +18,6 @@ interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement>
18
18
  }[];
19
19
  }[];
20
20
  }
21
- declare const PisellStatisticList: (props: PisellStatisticListProps) => React.JSX.Element;
21
+ declare const PisellStatisticList: (props: PisellStatisticListProps) => JSX.Element;
22
22
  //#endregion
23
23
  export { PisellStatisticList, PisellStatisticListProps };
@@ -9,6 +9,6 @@ interface PisellTagsProps extends React.DetailedHTMLProps<React.HTMLAttributes<H
9
9
  icon?: React.ReactNode;
10
10
  color?: PisellTagsColor;
11
11
  }
12
- declare const PisellTags: (props: PisellTagsProps) => React.JSX.Element;
12
+ declare const PisellTags: (props: PisellTagsProps) => JSX.Element;
13
13
  //#endregion
14
14
  export { PisellTags };
@@ -5,8 +5,8 @@ import React from "react";
5
5
  //#region src/components/pisellText/index.d.ts
6
6
  interface PisellTextProps extends React.HTMLAttributes<HTMLSpanElement> {}
7
7
  declare const PisellText: {
8
- (props: PisellTextProps): React.JSX.Element;
9
- Amount: (props: AmountProps) => React.JSX.Element;
8
+ (props: PisellTextProps): JSX.Element;
9
+ Amount: (props: AmountProps) => JSX.Element;
10
10
  Editable: React.FC<EditableProps>;
11
11
  };
12
12
  //#endregion
@@ -1,10 +1,9 @@
1
1
  import { PisellTimeNavigatorProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/pisellTimeNavigator/PisellTimeNavigator.d.ts
4
3
  /**
5
4
  * PisellTimeNavigator:可拖动的时间导航轴,时间范围内浏览、选择、控制
6
5
  */
7
- declare function PisellTimeNavigator(props: PisellTimeNavigatorProps): React.JSX.Element;
6
+ declare function PisellTimeNavigator(props: PisellTimeNavigatorProps): JSX.Element;
8
7
  declare namespace PisellTimeNavigator {
9
8
  var displayName: string;
10
9
  }
@@ -1,5 +1,4 @@
1
1
  import { PisellContextType } from "../pisell-config-provider/context.js";
2
- import React from "react";
3
2
  import { TooltipPropsWithTitle } from "antd/es/tooltip";
4
3
 
5
4
  //#region src/components/pisellTooltip/index.d.ts
@@ -7,6 +6,6 @@ interface PisellTooltipProps extends TooltipPropsWithTitle {
7
6
  /** 平台 */
8
7
  platform?: PisellContextType['platform'];
9
8
  }
10
- declare const PisellTooltip: (props: PisellTooltipProps) => React.JSX.Element;
9
+ declare const PisellTooltip: (props: PisellTooltipProps) => JSX.Element;
11
10
  //#endregion
12
11
  export { PisellTooltip };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { UploadProps } from "antd";
3
2
  //#region src/components/pisellUpload/index.d.ts
4
3
  interface PisellUploadProps extends UploadProps {
@@ -7,6 +6,6 @@ interface PisellUploadProps extends UploadProps {
7
6
  text2?: string;
8
7
  uploadType?: 'button' | 'drop' | 'custom';
9
8
  }
10
- declare const PisellUpload: (props: PisellUploadProps) => React.JSX.Element;
9
+ declare const PisellUpload: (props: PisellUploadProps) => JSX.Element;
11
10
  //#endregion
12
11
  export { PisellUpload };
@@ -0,0 +1,13 @@
1
+ import { getText } from "../../locales/index.js";
2
+ import PisellUrl_default from "./PisellUrl.js";
3
+ //#region src/components/pisellUrl/index.tsx
4
+ /** RecordBoard 列 type 联动排序:内置 A → Z / Z → A */
5
+ PisellUrl_default.SortOptions = { getSortItems: (fieldKey) => [{
6
+ key: `${fieldKey}:asc`,
7
+ label: getText("sort-a-z")
8
+ }, {
9
+ key: `${fieldKey}:desc`,
10
+ label: getText("sort-z-a")
11
+ }] };
12
+ //#endregion
13
+ export {};
@@ -139,6 +139,6 @@ interface PisellWalletPassCardProps {
139
139
  onSetHolder?: (currentValue?: any) => void;
140
140
  [key: string]: any;
141
141
  }
142
- declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => React.JSX.Element;
142
+ declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
143
143
  //#endregion
144
144
  export { FormatOption, PisellWalletPassCard, PisellWalletPassCardProps };
@@ -23,7 +23,7 @@
23
23
  }
24
24
 
25
25
  &__footer-price-wrap--weighing {
26
- font-size: var(--pisell-cart-sku-card-weighing-summary-font-size, 18px);
26
+ font-size: var(--pisell-cart-sku-card-physical-text-height, 18px);
27
27
  line-height: 1.3;
28
28
  letter-spacing: -0.02em;
29
29
  }
@@ -38,7 +38,6 @@
38
38
  );
39
39
  // 称重卡片的辅助信息保持易读,但不与毛重/净重争夺视觉层级。
40
40
  --pisell-cart-sku-card-weighing-meta-font-size: 18px;
41
- --pisell-cart-sku-card-weighing-summary-font-size: 18px;
42
41
 
43
42
  padding: 4px 8px 4px 4px;
44
43
  border-radius: inherit;
@@ -1,6 +1,4 @@
1
- import React from "react";
2
-
3
1
  //#region src/components/qrcode/index.d.ts
4
- declare const QRCode: (props: any) => React.JSX.Element;
2
+ declare const QRCode: (props: any) => JSX.Element;
5
3
  //#endregion
6
4
  export { QRCode };
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/radio/index.d.ts
5
- declare const Radio: (props: any) => _$react.JSX.Element;
2
+ declare const Radio: (props: any) => JSX.Element;
6
3
  //#endregion
7
4
  export { Radio };
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/section-footers/index.d.ts
5
2
  interface SectionFooterProps {
6
3
  left?: React.ReactNode;
@@ -8,6 +5,6 @@ interface SectionFooterProps {
8
5
  right?: React.ReactNode;
9
6
  className?: string;
10
7
  }
11
- declare const SectionFooters: (props: SectionFooterProps) => _$react.JSX.Element;
8
+ declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
12
9
  //#endregion
13
10
  export { SectionFooters };
@@ -1,6 +1,5 @@
1
- import React from "react";
2
1
  import { SegmentedProps } from "antd";
3
2
  //#region src/components/segmented/index.d.ts
4
- declare const Segmented$1: (props: SegmentedProps) => React.JSX.Element;
3
+ declare const Segmented$1: (props: SegmentedProps) => JSX.Element;
5
4
  //#endregion
6
5
  export { Segmented$1 as Segmented };
@@ -1,5 +1,4 @@
1
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time/index.js";
2
- import React from "react";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  //#region src/components/select-time/index.d.ts
5
4
  interface SelectTimeProps {
@@ -12,6 +11,6 @@ interface SelectTimeProps {
12
11
  theme?: 'light' | 'dark';
13
12
  className?: string;
14
13
  }
15
- declare const SelectTime: (props: SelectTimeProps) => React.JSX.Element;
14
+ declare const SelectTime: (props: SelectTimeProps) => JSX.Element;
16
15
  //#endregion
17
16
  export { SelectTime };
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/skeleton/index.d.ts
5
- declare const Skeleton: (props: any) => _$react.JSX.Element;
2
+ declare const Skeleton: (props: any) => JSX.Element;
6
3
  //#endregion
7
4
  export { Skeleton };
@@ -1,6 +1,4 @@
1
- import React from "react";
2
-
3
1
  //#region src/components/slider/index.d.ts
4
- declare const SliderOuter: (props: any) => React.JSX.Element;
2
+ declare const SliderOuter: (props: any) => JSX.Element;
5
3
  //#endregion
6
4
  export { SliderOuter };
@@ -1,4 +1,4 @@
1
- import React, { Component } from "react";
1
+ import { Component } from "react";
2
2
  import { TabsProps } from "antd";
3
3
  //#region src/components/tabs/index.d.ts
4
4
  declare class Tabs$1 extends Component<any> {
@@ -12,7 +12,7 @@ declare class Tabs$1 extends Component<any> {
12
12
  getActiveKey: () => any;
13
13
  renderIconLabelTabBar: TabsProps['renderTabBar'];
14
14
  filterHiddenTabs: (tabs: any[]) => any[];
15
- render(): React.JSX.Element;
15
+ render(): JSX.Element;
16
16
  }
17
17
  //#endregion
18
18
  export { Tabs$1 as Tabs };
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/time-picker/index.d.ts
5
- declare const TimePicker: (props: any) => _$react.JSX.Element;
2
+ declare const TimePicker: (props: any) => JSX.Element;
6
3
  //#endregion
7
4
  export { TimePicker };
@@ -1,7 +1,4 @@
1
- /// <reference types="react" />
2
- import * as _$react from "react";
3
-
4
1
  //#region src/components/upload/index.d.ts
5
- declare const Upload: (props: any) => _$react.JSX.Element;
2
+ declare const Upload: (props: any) => JSX.Element;
6
3
  //#endregion
7
4
  export { Upload };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { SelectProps } from "antd";
3
2
  //#region src/components/versionSelect/index.d.ts
4
3
  interface Version {
@@ -1,6 +1,5 @@
1
1
  import { AmountProps, RightItemsStyleProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/virtual-keyboard/Amount/index.d.ts
4
- declare const Amount: (props: AmountProps) => React.JSX.Element;
3
+ declare const Amount: (props: AmountProps) => JSX.Element;
5
4
  //#endregion
6
5
  export { Amount };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseNumberKeyboardProps } from "../BaseNumberKeyboard/index.js";
3
2
 
4
3
  //#region src/components/virtual-keyboard/Amount/types.d.ts
@@ -1,6 +1,5 @@
1
1
  import { NumberProps } from "./types.js";
2
- import React from "react";
3
2
  //#region src/components/virtual-keyboard/Number/index.d.ts
4
- declare const Number: (props: NumberProps) => React.JSX.Element;
3
+ declare const Number: (props: NumberProps) => JSX.Element;
5
4
  //#endregion
6
5
  export { Number };
@@ -10,6 +10,6 @@ interface VirtualKeyboardTimeProps extends React.HTMLAttributes<HTMLDivElement>
10
10
  onEnter?: (value: any) => void;
11
11
  rightPanel?: React.ReactNode;
12
12
  }
13
- declare const VirtualKeyboardTime: (props: VirtualKeyboardTimeProps) => React.JSX.Element;
13
+ declare const VirtualKeyboardTime: (props: VirtualKeyboardTimeProps) => JSX.Element;
14
14
  //#endregion
15
15
  export { VirtualKeyboardTime, VirtualKeyboardTimeProps };