@pisell/materials 6.11.36 → 6.11.38

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 (200) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +26 -56
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +26 -56
  11. package/es/components/PisellLayouts/index.d.ts +1 -1
  12. package/es/components/colorPicker/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  15. package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
  16. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
  20. package/es/components/filter/components/items/index.d.ts +0 -1
  21. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  22. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  23. package/es/components/filter/components/items/text/index.d.ts +0 -1
  24. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
  25. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +47 -3
  26. package/es/components/pisellFloorMapLayout/types.d.ts +7 -7
  27. package/es/components/pisellFloorMapLayout/types.js +2 -2
  28. package/es/components/pisellRecordBoard/index.d.ts +1 -1
  29. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +5 -0
  30. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +1039 -0
  31. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +323 -0
  32. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
  33. package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +10 -10
  34. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +23 -0
  35. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +287 -0
  36. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +4 -0
  37. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +28 -0
  38. package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
  39. package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +36 -0
  40. package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +38 -0
  41. package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +3 -0
  42. package/es/components/pisellRecordBoard/shellFrame/Calendar/index.js +3 -0
  43. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
  44. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +197 -0
  45. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +17 -0
  46. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +65 -0
  47. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +9 -0
  48. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +52 -0
  49. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
  50. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +58 -0
  51. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +232 -0
  52. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +735 -0
  53. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +13 -0
  54. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +37 -0
  55. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +56 -0
  56. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +682 -0
  57. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +18 -0
  58. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +155 -0
  59. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +27 -0
  60. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +259 -0
  61. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +12 -0
  62. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +19 -0
  63. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +2 -1
  64. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +44 -14
  65. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +4 -2
  66. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +117 -125
  67. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +3 -5
  68. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +71 -352
  69. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +17 -0
  70. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +143 -0
  71. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +28 -0
  72. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +128 -0
  73. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +8 -0
  74. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +18 -0
  75. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +115 -0
  76. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +6 -4
  77. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +63 -120
  78. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +2 -0
  79. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.js +2 -0
  80. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +42 -0
  81. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +114 -0
  82. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +26 -0
  83. package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +54 -1
  84. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +67 -12
  85. package/es/components/pisellRecordBoard/shellFrame/index.js +34 -7
  86. package/es/components/pisellRecordBoard/types.d.ts +97 -4
  87. package/es/components/pisellRecordBoard/types.js +18 -2
  88. package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +34 -2
  89. package/es/components/pisellShellFrame/PisellShellFrame.less +5 -2
  90. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  91. package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  92. package/es/hooks/useResponsive.d.ts +1 -1
  93. package/es/index.d.ts +1 -1
  94. package/es/locales/en-US.d.ts +74 -0
  95. package/es/locales/en-US.js +76 -1
  96. package/es/locales/ja.d.ts +74 -0
  97. package/es/locales/ja.js +75 -0
  98. package/es/locales/pt.d.ts +74 -0
  99. package/es/locales/pt.js +75 -0
  100. package/es/locales/zh-CN.d.ts +74 -0
  101. package/es/locales/zh-CN.js +76 -1
  102. package/es/locales/zh-TW.d.ts +74 -0
  103. package/es/locales/zh-TW.js +76 -1
  104. package/es/pisell-materials.tw.css +1 -1
  105. package/lib/components/PisellLayouts/index.d.ts +1 -1
  106. package/lib/components/colorPicker/index.d.ts +0 -1
  107. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  108. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  109. package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
  110. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  111. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
  112. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  113. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
  114. package/lib/components/filter/components/items/index.d.ts +0 -1
  115. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  116. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  117. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  118. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
  119. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +1 -1
  120. package/lib/components/pisellFloorMapLayout/types.d.ts +7 -7
  121. package/lib/components/pisellRecordBoard/index.d.ts +1 -1
  122. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +5 -0
  123. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +892 -0
  124. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +323 -0
  125. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
  126. package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +7 -6
  127. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +23 -0
  128. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +268 -0
  129. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +4 -0
  130. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +53 -0
  131. package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
  132. package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +36 -0
  133. package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +98 -0
  134. package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +3 -0
  135. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
  136. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +306 -0
  137. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +17 -0
  138. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +111 -0
  139. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +9 -0
  140. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +96 -0
  141. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
  142. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +92 -0
  143. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +232 -0
  144. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +666 -0
  145. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +13 -0
  146. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +90 -0
  147. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +56 -0
  148. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +812 -0
  149. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +18 -0
  150. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +219 -0
  151. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +27 -0
  152. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +352 -0
  153. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +12 -0
  154. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +57 -0
  155. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +2 -1
  156. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +44 -9
  157. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +4 -2
  158. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +60 -142
  159. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +3 -5
  160. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +40 -269
  161. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +17 -0
  162. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +163 -0
  163. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +28 -0
  164. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +136 -0
  165. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +8 -0
  166. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +18 -0
  167. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +175 -0
  168. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +6 -4
  169. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +61 -88
  170. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +2 -0
  171. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.js +29 -0
  172. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +42 -0
  173. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +139 -0
  174. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +26 -0
  175. package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +31 -3
  176. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +50 -5
  177. package/lib/components/pisellRecordBoard/shellFrame/index.js +29 -13
  178. package/lib/components/pisellRecordBoard/types.d.ts +97 -4
  179. package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +34 -2
  180. package/lib/components/pisellShellFrame/PisellShellFrame.less +5 -2
  181. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  182. package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
  183. package/lib/hooks/useResponsive.d.ts +1 -1
  184. package/lib/index.d.ts +1 -1
  185. package/lib/locales/en-US.d.ts +74 -0
  186. package/lib/locales/en-US.js +76 -1
  187. package/lib/locales/ja.d.ts +74 -0
  188. package/lib/locales/ja.js +75 -0
  189. package/lib/locales/pt.d.ts +74 -0
  190. package/lib/locales/pt.js +75 -0
  191. package/lib/locales/zh-CN.d.ts +74 -0
  192. package/lib/locales/zh-CN.js +76 -1
  193. package/lib/locales/zh-TW.d.ts +74 -0
  194. package/lib/locales/zh-TW.js +76 -1
  195. package/lib/pisell-materials.tw.css +1 -1
  196. package/package.json +3 -4
  197. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +0 -3
  198. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -6233
  199. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +0 -3
  200. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -7079
@@ -18,7 +18,7 @@ declare const PisellLayouts: {
18
18
  BasicGrid: <T>(props: import("../PisellBasicGrid").PisellBasicGridProps<T>) => JSX.Element;
19
19
  ScrollView: import("react").ForwardRefExoticComponent<Omit<import("../PisellScrollView").PisellScrollViewProps, "ref"> & import("react").RefAttributes<import("../PisellScrollView").PisellScrollViewRef>>;
20
20
  FloorMapLayout: <T_1 extends import("../pisellFloorMapLayout").FloorMapItemBase = import("../pisellFloorMapLayout").FloorMapItemBase>(props: import("../pisellFloorMapLayout").PisellFloorMapLayoutProps<T_1> & {
21
- ref?: import("react").Ref<import("../pisellFloorMapLayout").PisellFloorMapLayoutRef> | undefined;
21
+ ref?: import("react").Ref<import("../pisellFloorMapLayout").PisellFloorMapLayoutRef | null> | undefined;
22
22
  }) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
23
23
  Layout: import("../pisellLayout").CompoundedComponent;
24
24
  Content: import("react").FC<import("../pisellLayout/content").PisellContentProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from 'antd';
3
2
  declare const ColorPicker: (props: ColorPickerProps) => JSX.Element;
4
3
  export default ColorPicker;
@@ -44,7 +44,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
44
44
  }) => JSX.Element;
45
45
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
46
46
  options?: any;
47
- optionSourceType?: "default" | "custom" | "api" | undefined;
47
+ optionSourceType?: "custom" | "default" | "api" | undefined;
48
48
  labelField: string;
49
49
  valueField: string;
50
50
  extraParams?: Record<string, any> | undefined;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
22
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
31
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: {
34
34
  dom: any;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const RecordListWrapperWithDataSource: (props: import("./type").RecordListWrapperProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
3
  options?: any;
4
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
7
  extraParams?: Record<string, any> | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
3
  options?: any;
4
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
7
  extraParams?: Record<string, any> | undefined;
@@ -2,7 +2,7 @@
2
2
  /** 包装 DataSource 层(提供数据源上下文) */
3
3
  declare const FormItemTabs: (props: import("./type").TabsProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
4
4
  options?: any;
5
- optionSourceType?: "default" | "custom" | "api" | undefined;
5
+ optionSourceType?: "custom" | "default" | "api" | undefined;
6
6
  labelField: string;
7
7
  valueField: string;
8
8
  extraParams?: Record<string, any> | undefined;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -62,7 +62,7 @@ declare const formFieldMap: {
62
62
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
63
63
  FormItemRecordListWrapper: (props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
64
  options?: any;
65
- optionSourceType?: "default" | "custom" | "api" | undefined;
65
+ optionSourceType?: "custom" | "default" | "api" | undefined;
66
66
  labelField: string;
67
67
  valueField: string;
68
68
  extraParams?: Record<string, any> | undefined;
@@ -72,7 +72,7 @@ declare const formFieldMap: {
72
72
  }) => JSX.Element;
73
73
  FormItemTabs: (props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
74
74
  options?: any;
75
- optionSourceType?: "default" | "custom" | "api" | undefined;
75
+ optionSourceType?: "custom" | "default" | "api" | undefined;
76
76
  labelField: string;
77
77
  valueField: string;
78
78
  extraParams?: Record<string, any> | undefined;
@@ -113,7 +113,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
113
113
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
114
114
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
115
115
  options?: any;
116
- optionSourceType?: "default" | "custom" | "api" | undefined;
116
+ optionSourceType?: "custom" | "default" | "api" | undefined;
117
117
  labelField: string;
118
118
  valueField: string;
119
119
  extraParams?: Record<string, any> | undefined;
@@ -122,7 +122,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
122
122
  extraParams?: Record<string, any> | undefined;
123
123
  }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
124
124
  options?: any;
125
- optionSourceType?: "default" | "custom" | "api" | undefined;
125
+ optionSourceType?: "custom" | "default" | "api" | undefined;
126
126
  labelField: string;
127
127
  valueField: string;
128
128
  extraParams?: Record<string, any> | undefined;
@@ -131,7 +131,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
131
131
  extraParams?: Record<string, any> | undefined;
132
132
  }) => JSX.Element) | ((props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
133
133
  options?: any;
134
- optionSourceType?: "default" | "custom" | "api" | undefined;
134
+ optionSourceType?: "custom" | "default" | "api" | undefined;
135
135
  labelField: string;
136
136
  valueField: string;
137
137
  extraParams?: Record<string, any> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: () => JSX.Element;
3
2
  export default Text;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: (props: any) => JSX.Element;
3
2
  export default Text;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -5,8 +5,9 @@
5
5
  import React from 'react';
6
6
  import type { FloorMapItemBase, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from './types';
7
7
  import './PisellFloorMapLayout.less';
8
+ /** 空间布局根组件:阅读/编辑、列表与平面图双模式,ref 见 {@link PisellFloorMapLayoutRef} */
8
9
  declare const PisellFloorMapLayout: <T extends FloorMapItemBase = FloorMapItemBase>(props: PisellFloorMapLayoutProps<T> & {
9
- ref?: React.Ref<PisellFloorMapLayoutRef> | undefined;
10
+ ref?: React.Ref<PisellFloorMapLayoutRef | null> | undefined;
10
11
  }) => React.ReactElement;
11
12
  export { PisellFloorMapLayout };
12
13
  export default PisellFloorMapLayout;
@@ -42,6 +42,11 @@ import { locales } from '@pisell/utils';
42
42
  import { initFloorMapLayoutLocales } from "./utils/floorMapCanvasDisplay";
43
43
  import "./PisellFloorMapLayout.less";
44
44
  var PREFIX = 'pisell-floor-map-layout';
45
+
46
+ /**
47
+ * 布局根实现(由 {@link PisellFloorMapLayout} forwardRef 包裹)。
48
+ * 负责:上下文与 props 合并、编辑态/阅读态分支、Transform 视口、图元层与工具栏联动。
49
+ */
45
50
  function PisellFloorMapLayoutInner(props, ref) {
46
51
  var _engineCtx$engine, _config$sceneElements;
47
52
  var layoutCtx = useFloorMapLayoutContext();
@@ -138,6 +143,8 @@ function PisellFloorMapLayoutInner(props, ref) {
138
143
  toggleSelectedLayoutLock = edit.toggleSelectedLayoutLock,
139
144
  duplicateSelectedElement = edit.duplicateSelectedElement,
140
145
  deleteSelectedElement = edit.deleteSelectedElement;
146
+
147
+ /** 当前画布下的 mapLayer:全局 `mapLayer` 与画布级配置合并,供 MapLayer / 吸附等读取 */
141
148
  var effectiveMapLayer = useMemo(function () {
142
149
  var _canvas$mapLayer;
143
150
  if (!isFloorMapView || !config || !currentCanvasId) {
@@ -160,6 +167,8 @@ function PisellFloorMapLayoutInner(props, ref) {
160
167
  var z = (_zoom$defaultScale = zoom.defaultScale) !== null && _zoom$defaultScale !== void 0 ? _zoom$defaultScale : 1;
161
168
  return "fmap-".concat(currentCanvasId !== null && currentCanvasId !== void 0 ? currentCanvasId : 'na', "-bp").concat(bp, "-z").concat(z);
162
169
  }, [isFloorMapView, currentCanvasId, effectiveMapLayer === null || effectiveMapLayer === void 0 ? void 0 : effectiveMapLayer.boundingPadding, zoom.defaultScale]);
170
+
171
+ /** 供顶栏 Tab 使用:合并草稿画布等后的画布列表 */
163
172
  var canvasesForTabs = useMemo(function () {
164
173
  return config ? mergeCanvasesForTabs(config) : [];
165
174
  }, [config]);
@@ -171,18 +180,21 @@ function PisellFloorMapLayoutInner(props, ref) {
171
180
  return c.enabled;
172
181
  }).length;
173
182
  }, [canvasesForTabs]);
183
+
184
+ /** 阅读态是否展示画布 Tab:多启用画布或配置了 `canvasTabsBarTrailing` 时出现 */
174
185
  var showReadModeCanvasTabsBar = useMemo(function () {
175
186
  if (!isFloorMapView || mode !== 'read' || !config) return false;
176
187
  if (hasCanvasTabsBarTrailing) return true;
177
188
  return enabledCanvasCount > 1;
178
189
  }, [isFloorMapView, mode, config, hasCanvasTabsBarTrailing, enabledCanvasCount]);
190
+
191
+ /** 阅读态画布 Tab 工具条的无障碍标签(随引擎语言初始化文案) */
179
192
  var readCanvasTabsAriaLabel = useMemo(function () {
180
193
  initFloorMapLayoutLocales(engineLocale);
181
194
  return locales.getText('pisell-floor-map-layout.read-canvas-tabs.aria');
182
195
  }, [engineLocale]);
183
196
 
184
- /** 编辑态始终保留顶栏 Tab(单画布也要能「添加画布」);仅阅读态在单画布时可隐藏 Tab 行 */
185
- var showEditCompactTopBar = isFloorMapView && mode === 'edit' && Boolean(config) && !useFullTopChrome;
197
+ /** 加载遮罩上的文案 */
186
198
  var loadingLabel = useMemo(function () {
187
199
  initFloorMapLayoutLocales(engineLocale);
188
200
  return locales.getText('pisell-floor-map-layout.loading');
@@ -217,9 +229,11 @@ function PisellFloorMapLayoutInner(props, ref) {
217
229
  };
218
230
  }, [isFloorMapView, mode, config === null || config === void 0 ? void 0 : config.canvasUi.canEdit, selectedId, items, engineLocale, toggleSelectedLayoutLock, duplicateSelectedElement, deleteSelectedElement]);
219
231
  var cellSize = cellSizeProp !== null && cellSizeProp !== void 0 ? cellSizeProp : DEFAULT_CELL_SIZE;
232
+ /** 图元间距(像素):由 mapLayer.gap 解析 */
220
233
  var itemGap = useMemo(function () {
221
234
  return gapToPx(effectiveMapLayer === null || effectiveMapLayer === void 0 ? void 0 : effectiveMapLayer.gap);
222
235
  }, [effectiveMapLayer === null || effectiveMapLayer === void 0 ? void 0 : effectiveMapLayer.gap]);
236
+ /** 平面图坐标始终按像素;非平面图沿用 props `itemUnit` */
223
237
  var effectiveItemUnit = isFloorMapView ? 'pixel' : itemUnit;
224
238
  var metrics = useFloorMapTransformMetrics({
225
239
  items: items,
@@ -258,6 +272,11 @@ function PisellFloorMapLayoutInner(props, ref) {
258
272
  var useFullTopChrome = isFloorMapView && mode === 'edit' && (fsMode === 'locked' || fsMode === 'toggle' && isFullscreen);
259
273
  /** toggle 时左下 Dock 展示全屏;locked/disabled 不传 API */
260
274
  var dockToggleFullscreen = isFloorMapView && fsMode === 'toggle' ? toggleFullscreen : undefined;
275
+
276
+ /** 编辑态始终保留顶栏 Tab(单画布也要能「添加画布」);仅阅读态在单画布时可隐藏 Tab 行 */
277
+ var showEditCompactTopBar = isFloorMapView && mode === 'edit' && Boolean(config) && !useFullTopChrome;
278
+
279
+ /** 右下角视口控件:平面图下默认带出全屏按钮(若当前策略允许 toggle) */
261
280
  var viewControlsConfig = useMemo(function () {
262
281
  var _controls$showFullscr;
263
282
  if (!isFloorMapView) return controls;
@@ -266,10 +285,14 @@ function PisellFloorMapLayoutInner(props, ref) {
266
285
  });
267
286
  }, [isFloorMapView, controls, dockToggleFullscreen]);
268
287
  var topBarExtraActions = null;
288
+
289
+ /** 从侧栏/调色板拖入画布时,地图区高亮态(用于 dragleave/over 判定) */
269
290
  var _useState = useState(false),
270
291
  _useState2 = _slicedToArray(_useState, 2),
271
292
  mapPaletteDragActive = _useState2[0],
272
293
  setMapPaletteDragActive = _useState2[1];
294
+
295
+ /** 全局 dragend 时清除调色板拖入高亮,避免松手在画布外仍保持 active */
273
296
  useEffect(function () {
274
297
  var clear = function clear() {
275
298
  return setMapPaletteDragActive(false);
@@ -279,6 +302,10 @@ function PisellFloorMapLayoutInner(props, ref) {
279
302
  return window.removeEventListener('dragend', clear);
280
303
  };
281
304
  }, []);
305
+
306
+ /**
307
+ * 桌面端:在画布 drop 层释放拖拽时,解析 dataTransfer 并在场景坐标下落位图元。
308
+ */
282
309
  var handlePaletteDropOnCanvas = useCallback(function (e) {
283
310
  e.preventDefault();
284
311
  e.stopPropagation();
@@ -297,6 +324,10 @@ function PisellFloorMapLayoutInner(props, ref) {
297
324
  recordIds: payload.recordIds
298
325
  });
299
326
  }, [isFloorMapView, mode, placeSceneElementFromPaletteDrop]);
327
+
328
+ /**
329
+ * 触摸拖拽模拟 drop:由 {@link useFloorMapPaletteTouchDrag} 在松手时调用,逻辑同桌面 drop。
330
+ */
300
331
  var applyPaletteTouchDropInScene = useCallback(function (payload, cx, cy) {
301
332
  if (!isFloorMapView || mode !== 'edit') return;
302
333
  placeSceneElementFromPaletteDrop(cx, cy, {
@@ -316,9 +347,15 @@ function PisellFloorMapLayoutInner(props, ref) {
316
347
  setMapPaletteDragActive: setMapPaletteDragActive,
317
348
  onDropInScene: applyPaletteTouchDropInScene
318
349
  });
350
+
351
+ /** 平面图下未配置对应 kind 的 `renderItemByKind` 时的占位渲染 */
319
352
  var fallbackPlaceholderRender = useCallback(function (item) {
320
353
  return renderFloorMapFallbackPlaceholder(item);
321
354
  }, []);
355
+
356
+ /**
357
+ * 统一图元渲染入口:平面图优先按 kind 查 `renderItemByKind`,校验绑定/配置问题后回退占位或 `renderItem`。
358
+ */
322
359
  var effectiveRenderItem = useCallback(function (item, index, options) {
323
360
  var merged = item;
324
361
  var kind = merged === null || merged === void 0 ? void 0 : merged.elementKind;
@@ -344,10 +381,14 @@ function PisellFloorMapLayoutInner(props, ref) {
344
381
  }
345
382
  return renderItem(item, index, options);
346
383
  }, [isFloorMapView, floorMapConfigProp, dataSources, renderItemByKind, renderItem, fallbackPlaceholderRender, onElementRenderError]);
384
+
385
+ /** 点击图元:编辑态同步选中 id,并透传业务 `onItemClick` */
347
386
  var handleItemClick = useCallback(function (item, index, e) {
348
387
  if (isFloorMapView && mode === 'edit') setSelectedId(item.id);
349
388
  onItemClick === null || onItemClick === void 0 || onItemClick(item, index, e);
350
389
  }, [isFloorMapView, mode, onItemClick, setSelectedId]);
390
+
391
+ /** 对外 ref:缩放/复位/套合视口/保存布局,见 {@link PisellFloorMapLayoutRef} */
351
392
  useImperativeHandle(ref, function () {
352
393
  return {
353
394
  zoomIn: function zoomIn() {
@@ -492,7 +533,8 @@ function PisellFloorMapLayoutInner(props, ref) {
492
533
  minWidth: 0,
493
534
  overflow: 'hidden'
494
535
  },
495
- onClick: handleMapAreaBackgroundClick,
536
+ onClick: handleMapAreaBackgroundClick
537
+ /* 编辑态:侧栏 palette 拖入时 enter/over 维持 drop 合法态,leave 出地图区则取消高亮 */,
496
538
  onDragEnter: function onDragEnter(e) {
497
539
  if (!isFloorMapView || mode !== 'edit') return;
498
540
  if (!isFloorMapPaletteDrag(e.dataTransfer)) return;
@@ -661,6 +703,8 @@ function PisellFloorMapLayoutInner(props, ref) {
661
703
  }))));
662
704
  }))));
663
705
  }
706
+
707
+ /** 空间布局根组件:阅读/编辑、列表与平面图双模式,ref 见 {@link PisellFloorMapLayoutRef} */
664
708
  var PisellFloorMapLayout = /*#__PURE__*/React.forwardRef(PisellFloorMapLayoutInner);
665
709
  export { PisellFloorMapLayout };
666
710
  export default PisellFloorMapLayout;
@@ -587,18 +587,18 @@ export declare type FloorMapViewportOverlayRenderArgs<T extends FloorMapItemBase
587
587
  mode: 'read' | 'edit';
588
588
  };
589
589
  /**
590
- * PisellFloorMapLayout Ref 方法
591
- * @description 供外部调用缩放、复位、区域定位等
590
+ * `PisellFloorMapLayout` 通过 ref 暴露的 imperative API。
591
+ * 缩放/复位委托内部 `react-zoom-pan-pinch`;`fitBounds` / `saveLayout` 依赖当前画布与编辑状态。
592
592
  */
593
593
  export interface PisellFloorMapLayoutRef {
594
- /** 放大 */
594
+ /** 在允许范围内放大一级(与右下角「+」一致) */
595
595
  zoomIn: () => void;
596
- /** 缩小 */
596
+ /** 在允许范围内缩小一级(与右下角「−」一致) */
597
597
  zoomOut: () => void;
598
- /** 复位到默认缩放与位置 */
598
+ /** 重置 transform 为初始 scale 与 initialPosition(与「复位」控件一致) */
599
599
  reset: () => void;
600
- /** 区域定位:使所有 items 落在视口内 */
600
+ /** 计算内容包盒并将视口平移/缩放至全部图元可见 */
601
601
  fitBounds: () => void;
602
- /** 提交当前布局草稿(与顶栏/侧栏「保存」一致) */
602
+ /** 触发与顶栏/侧栏相同的保存流程(无 `onSave` 时内部可能为 no-op,由 hook 决定) */
603
603
  saveLayout: () => void;
604
604
  }
@@ -147,6 +147,6 @@ export var FLOOR_MAP_IMAGE_ELEMENT_KIND = 'floorMapImage';
147
147
  */
148
148
 
149
149
  /**
150
- * PisellFloorMapLayout Ref 方法
151
- * @description 供外部调用缩放、复位、区域定位等
150
+ * `PisellFloorMapLayout` 通过 ref 暴露的 imperative API。
151
+ * 缩放/复位委托内部 `react-zoom-pan-pinch`;`fitBounds` / `saveLayout` 依赖当前画布与编辑状态。
152
152
  */
@@ -44,7 +44,7 @@ interface PisellRecordBoardType extends React.FC<RecordBoardProps> {
44
44
  }
45
45
  declare const PisellRecordBoard: PisellRecordBoardType;
46
46
  export default PisellRecordBoard;
47
- export type { RecordBoardProps, RecordBoardLayoutType, RecordBoardContextValue, RecordBoardChildComponentProps, RecordBoardGridProps, RecordBoardColumnType, RecordBoardFieldType, RecordBoardColumnFilterConfig, RecordBoardOptionItem, RecordBoardGetOptions, RecordBoardBodyView, RecordBoardFloorMapProps, RecordBoardCalendarProps, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarResource, RecordBoardCalendarBookingLike, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarBookingRenderArgs, RecordBoardToolBarProps, RecordBoardResourceWallProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, } from './types';
47
+ export type { RecordBoardProps, RecordBoardLayoutType, RecordBoardContextValue, RecordBoardChildComponentProps, RecordBoardGridProps, RecordBoardColumnType, RecordBoardFieldType, RecordBoardColumnFilterConfig, RecordBoardOptionItem, RecordBoardGetOptions, RecordBoardBodyView, RecordBoardFloorMapProps, RecordBoardCalendarProps, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarResource, RecordBoardCalendarBookingLike, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarBookingRenderArgs, RecordBoardBookingMoveDraft, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardCalendarSelectedFreeSlot, RecordBoardToolBarProps, RecordBoardResourceWallProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, } from './types';
48
48
  export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST } from './types';
49
49
  export { useRecordBoardContext } from './hooks/useRecordBoardContext';
50
50
  export { useRecordBoardShellBodyMeta } from './shellFrame';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { RecordBoardCalendarProps } from '../../types';
3
+ import './BookingCalendar.less';
4
+ /** 看板日历根组件:内含主题 CSS 与 Spin,按 `view` 挂载月 / 周 / 日子组件 */
5
+ export default function BookingCalendar(props?: RecordBoardCalendarProps): JSX.Element;