@pisell/materials 6.11.239 → 6.11.241

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 (198) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/preview.js +4 -4
  6. package/build/lowcode/render/default/view.js +16 -16
  7. package/build/lowcode/view.js +15 -15
  8. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +2 -0
  9. package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +47 -22
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  11. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  12. package/es/components/pisellFind/index.d.ts +2 -0
  13. package/es/components/pisellFind/index.js +11 -0
  14. package/es/components/pisellLookup/PisellLookup.js +22 -6
  15. package/es/components/pisellLookup/components/LookupResultHost.js +56 -38
  16. package/es/components/pisellLookup/components/LookupTrigger.js +2 -0
  17. package/es/components/pisellLookup/types.d.ts +36 -0
  18. package/es/index.d.ts +1 -1
  19. package/es/index.js +1 -1
  20. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +2 -0
  21. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +71 -35
  22. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  23. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  24. package/lib/components/pisellFind/index.d.ts +2 -0
  25. package/lib/components/pisellFind/index.js +19 -0
  26. package/lib/components/pisellLookup/PisellLookup.js +18 -4
  27. package/lib/components/pisellLookup/components/LookupResultHost.js +50 -35
  28. package/lib/components/pisellLookup/components/LookupTrigger.js +2 -0
  29. package/lib/components/pisellLookup/types.d.ts +36 -0
  30. package/lib/index.d.ts +1 -1
  31. package/lib/index.js +2 -0
  32. package/package.json +3 -3
  33. package/es/components/PisellGroupView/PisellGroupView.d.ts +0 -9
  34. package/es/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
  35. package/es/components/PisellGroupView/index.d.ts +0 -6
  36. package/es/components/PisellGroupView/types.d.ts +0 -124
  37. package/es/components/PisellGroupView/utils/index.d.ts +0 -20
  38. package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
  39. package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
  40. package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
  41. package/es/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
  42. package/es/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
  43. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  44. package/es/components/PisellTabbar/constants.d.ts +0 -47
  45. package/es/components/PisellTabbar/types.d.ts +0 -119
  46. package/es/components/buttonGroupPreview/index.d.ts +0 -19
  47. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  48. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
  49. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
  50. package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
  51. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
  52. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
  53. package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
  54. package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
  55. package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
  56. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
  57. package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
  58. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
  59. package/es/components/pisellFloorMapLayout/index.d.ts +0 -39
  60. package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
  61. package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
  62. package/es/components/pisellFloorMapLayout/locales.d.ts +0 -969
  63. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
  64. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
  65. package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
  66. package/es/components/pisellFloorMapLayout/types.d.ts +0 -769
  67. package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
  68. package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
  69. package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
  70. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
  71. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
  72. package/es/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +0 -24
  73. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  74. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  75. package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
  76. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
  77. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
  78. package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
  79. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
  80. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
  81. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  82. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
  83. package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
  84. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
  85. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
  86. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
  87. package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
  88. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
  89. package/es/components/pisellRecordBoard/types.d.ts +0 -899
  90. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
  91. package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
  92. package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -145
  93. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  94. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  95. package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
  96. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
  97. package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
  98. package/es/components/productCard/cartSkuCard/index.d.ts +0 -15
  99. package/es/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
  100. package/es/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
  101. package/es/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
  102. package/es/components/productCard/lineItem/index.d.ts +0 -72
  103. package/es/components/productCard/lineItem/locales.d.ts +0 -38
  104. package/es/components/productCard/types.d.ts +0 -98
  105. package/es/components/select-time/RightPanel/index.d.ts +0 -10
  106. package/es/components/select-time/index.d.ts +0 -16
  107. package/es/components/table/hooks/useTableSetting.d.ts +0 -21
  108. package/es/components/virtual-keyboard/Time/index.d.ts +0 -14
  109. package/es/components/virtual-keyboard/index.d.ts +0 -25
  110. package/es/hooks/useTranslationOriginal.d.ts +0 -4
  111. package/es/locales/en-US.d.ts +0 -566
  112. package/es/locales/ja.d.ts +0 -534
  113. package/es/locales/pt.d.ts +0 -534
  114. package/es/locales/zh-CN.d.ts +0 -561
  115. package/es/locales/zh-TW.d.ts +0 -561
  116. package/lib/components/PisellGroupView/PisellGroupView.d.ts +0 -9
  117. package/lib/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
  118. package/lib/components/PisellGroupView/index.d.ts +0 -6
  119. package/lib/components/PisellGroupView/types.d.ts +0 -124
  120. package/lib/components/PisellGroupView/utils/index.d.ts +0 -20
  121. package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
  122. package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
  123. package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
  124. package/lib/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
  125. package/lib/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
  126. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  127. package/lib/components/PisellTabbar/constants.d.ts +0 -47
  128. package/lib/components/PisellTabbar/types.d.ts +0 -119
  129. package/lib/components/buttonGroupPreview/index.d.ts +0 -19
  130. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  131. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
  132. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
  133. package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
  134. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
  135. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
  136. package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
  137. package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
  138. package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
  139. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
  140. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
  141. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
  142. package/lib/components/pisellFloorMapLayout/index.d.ts +0 -39
  143. package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
  144. package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
  145. package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -969
  146. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
  147. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
  148. package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
  149. package/lib/components/pisellFloorMapLayout/types.d.ts +0 -769
  150. package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
  151. package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
  152. package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
  153. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
  154. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
  155. package/lib/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +0 -24
  156. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  157. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
  158. package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
  159. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
  160. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
  161. package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
  162. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
  163. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
  164. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  165. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
  166. package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
  167. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
  168. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
  169. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
  170. package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
  171. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
  172. package/lib/components/pisellRecordBoard/types.d.ts +0 -899
  173. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
  174. package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
  175. package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -145
  176. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
  177. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  178. package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
  179. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
  180. package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
  181. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -15
  182. package/lib/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
  183. package/lib/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
  184. package/lib/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
  185. package/lib/components/productCard/lineItem/index.d.ts +0 -72
  186. package/lib/components/productCard/lineItem/locales.d.ts +0 -38
  187. package/lib/components/productCard/types.d.ts +0 -98
  188. package/lib/components/select-time/RightPanel/index.d.ts +0 -10
  189. package/lib/components/select-time/index.d.ts +0 -16
  190. package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
  191. package/lib/components/virtual-keyboard/Time/index.d.ts +0 -14
  192. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  193. package/lib/hooks/useTranslationOriginal.d.ts +0 -4
  194. package/lib/locales/en-US.d.ts +0 -566
  195. package/lib/locales/ja.d.ts +0 -534
  196. package/lib/locales/pt.d.ts +0 -534
  197. package/lib/locales/zh-CN.d.ts +0 -561
  198. package/lib/locales/zh-TW.d.ts +0 -561
@@ -1,27 +0,0 @@
1
- import type { FloorMapCanvas, FloorMapCanvasNameI18n } from '../types';
2
- /**
3
- * 合并平面图 Tab 用多语言包(与业务侧 `locales.init` 可叠加)。
4
- */
5
- export declare function initFloorMapLayoutLocales(engineLocale: string): void;
6
- /** 与 List / 预约等物料一致:storage → 宿主 getLocale → native_locale → materials 当前语言 */
7
- export declare function getFloorMapDisplayLocale(engineCtx?: unknown): string;
8
- /**
9
- * 按当前语言(或显式传入语言)从平面图语言包取文案,**不依赖全局激活语言**
10
- * (避免多组件 init 竞态),缺失时回退英文,再回退 key 本身。
11
- */
12
- export declare function getFloorMapLayoutText(id: string, displayLocale?: string): string;
13
- /**
14
- * 从多语言对象中取当前 locale 下展示字符串,缺省按 en → 其余首个非空。
15
- */
16
- export declare function pickFloorMapCanvasI18nString(obj: FloorMapCanvasNameI18n, engineLocale: string): string;
17
- /**
18
- * 画布在 Tab / 下拉中的展示名:
19
- * 1. `name` 为多语言对象时 **优先** 按引擎 locale 取字段(与配置内嵌文案一致);
20
- * 2. 否则 `nameKey` + `locales.getText`(需业务侧已 init 对应语言包);
21
- * 3. 否则 `name` 字符串。
22
- */
23
- export declare function getFloorMapCanvasDisplayName(canvas: FloorMapCanvas, engineLocale: string): string;
24
- /**
25
- * 打开重命名弹层时的初始多语言值(与 Translation 表单一致)。
26
- */
27
- export declare function seedFloorMapCanvasNameI18n(canvas: FloorMapCanvas, displayFallback: string): FloorMapCanvasNameI18n;
@@ -1,8 +0,0 @@
1
- /**
2
- * 将当前画布的 sceneElements 合并为 Layout 使用的 FloorMapMergedItem[]
3
- */
4
- import type { FloorMapViewConfig, FloorMapMergedItem } from '../types';
5
- /**
6
- * 合并指定画布下的 sceneElements 为一份 items(用于 ItemLayer / EditableItemLayer)
7
- */
8
- export declare function mergeCanvasItems(canvasId: string, config: Pick<FloorMapViewConfig, 'sceneElements' | 'elementKinds'>, defaultCellSize?: number): FloorMapMergedItem[];
@@ -1,11 +0,0 @@
1
- /**
2
- * 无 renderItemByKind 时的占位渲染(装饰、舞台等),避免画布上不显示
3
- */
4
- import React from 'react';
5
- import type { FloorMapMergedItem } from '../types';
6
- /**
7
- * @returns 与 PisellFloorMapLayout 内联 fallback 一致的渲染函数(useCallback 由调用方包裹)
8
- */
9
- /** 绑定校验失败或 renderItemByKind 抛错时的占位 */
10
- export declare function renderFloorMapRenderError(message: string): React.ReactNode;
11
- export declare function renderFloorMapFallbackPlaceholder(item: FloorMapMergedItem): React.ReactNode;
@@ -1,27 +0,0 @@
1
- import type { PisellCardPickerCardBadge, PisellCardPickerCardMeta, PisellCardPickerCategoryConfig, PisellCardPickerItem } from './floorMapResourcePickerTypes';
2
- import { parseNestedPathSegments } from './floorMapResourcePickerTypes';
3
- /** @deprecated 使用 PisellCardPickerItem */
4
- export declare type FloorMapResourcePickerRecord = PisellCardPickerItem;
5
- /** 平面图资源选择卡片 meta:在通用 meta 基础上确保 id 存在,便于搜索文本拼接 */
6
- export interface FloorMapResourcePickerCardMeta extends PisellCardPickerCardMeta {
7
- id: string;
8
- }
9
- /** 人数/容量:无值或为 0 时不展示 */
10
- export declare function resolveResourcePickerCapacity(record: PisellCardPickerItem): string | undefined;
11
- /**
12
- * 预约桌位:从 `area` 解析路径,最多 3 段。
13
- * 当前资源多为单段(如 `party_room1`);将来 `广东/中山/三乡` 会自动出现二、三级筛选行。
14
- */
15
- export declare function getFloorMapResourcePickerCategoryPath(record: PisellCardPickerItem): ReturnType<typeof parseNestedPathSegments>;
16
- /** 平面图 / 预约:area 最多三级;仅展示 chip,不显示行左侧「区域」等标签 */
17
- export declare function getFloorMapCardPickerCategoryConfig(): PisellCardPickerCategoryConfig;
18
- /**
19
- * 把 capacity 字符串包装成「人数图标 + 数值」badge。
20
- * 抽出来便于业务侧组合(如再追加 status badge 等)。
21
- */
22
- export declare function buildResourceCapacityBadge(capacity?: string): PisellCardPickerCardBadge | null;
23
- /**
24
- * 小卡片主标题 + 标签(人数等;区域已在筛选区展示,副文案不再重复 area)。
25
- */
26
- export declare function getFloorMapResourcePickerCardMeta(record: PisellCardPickerItem): FloorMapResourcePickerCardMeta;
27
- export declare function floorMapResourcePickerRecordSearchText(record: PisellCardPickerItem): string;
@@ -1,109 +0,0 @@
1
- /**
2
- * 平面图资源选择槽位的通用类型与工具。
3
- * 默认由 `@pisell/materials` 的 `PisellResourcePickerModal` 承担;
4
- * 业务可通过 `renderFilterBar` 注入 Tabbar 等筛选区,或通过 `renderResourcePickerModal` 整页覆盖。
5
- */
6
- import type { ReactNode } from 'react';
7
- /** 选择模式 */
8
- export declare type PisellCardPickerMode = 'single' | 'multiple';
9
- /** 可选条目:至少包含稳定主键 id */
10
- export interface PisellCardPickerItem {
11
- id: string;
12
- [key: string]: unknown;
13
- }
14
- /** 分类路径,最多 3 级(不足时后续为 null;未选层级表示「全部」) */
15
- export declare type PisellCardPickerCategoryPath = [
16
- string | null | undefined,
17
- string | null | undefined,
18
- string | null | undefined
19
- ];
20
- /** 单级分类配置(最多 3 级) */
21
- export interface PisellCardPickerCategoryLevelConfig {
22
- /** 嵌套模式下该级行左侧标签(如「省」「市」「区/镇」) */
23
- label?: string;
24
- /**
25
- * parallel 模式:从 item[field] 读取该维度的 key。
26
- * nested 模式:请用 getCategoryPath / nestedPathField 从单字段拆路径。
27
- */
28
- field?: string;
29
- }
30
- /**
31
- * nested:同一维度嵌套分级(广东 → 中山 → 三乡),子级依赖父级已选。
32
- * parallel:三个独立维度(每级互不影响)。
33
- */
34
- export declare type PisellCardPickerCategoryMode = 'nested' | 'parallel';
35
- /** 分类筛选配置(最多 3 级;数据只有 1 级时 UI 只展示有值的那一行) */
36
- export interface PisellCardPickerCategoryConfig {
37
- /** 默认 nested */
38
- mode?: PisellCardPickerCategoryMode;
39
- /**
40
- * 最多 3 级配置位。
41
- * nested:单字段拆路径;仅 1 段时只出现第 1 行,多段时再逐级出现。
42
- */
43
- levels: [
44
- PisellCardPickerCategoryLevelConfig?,
45
- PisellCardPickerCategoryLevelConfig?,
46
- PisellCardPickerCategoryLevelConfig?
47
- ];
48
- /** 自定义 [L1,L2,L3];优先于 levels[].field */
49
- getCategoryPath?: (item: PisellCardPickerItem) => PisellCardPickerCategoryPath;
50
- /**
51
- * nested 便捷项:从 item[nestedPathField] 用 `/` `>` 等拆成最多 3 段。
52
- * 与 getCategoryPath 同时存在时以 getCategoryPath 为准。
53
- */
54
- nestedPathField?: string;
55
- }
56
- /**
57
- * 卡片小标签(如人数、状态、面积等)。
58
- * - text:必填,纯文本内容
59
- * - icon:可选 ReactNode,前置图标(如 TeamOutlined)
60
- * 业务自由组合多个;空数组等价于不展示。
61
- */
62
- export interface PisellCardPickerCardBadge {
63
- text: string;
64
- icon?: ReactNode;
65
- }
66
- export interface PisellCardPickerCardMeta {
67
- title: string;
68
- subtitles: string[];
69
- /**
70
- * 卡片末行的标签数组(如人数 / 状态)。比 subtitle 更紧凑,支持前置 icon。
71
- */
72
- badges?: PisellCardPickerCardBadge[];
73
- /**
74
- * 左侧缩略图/预览节点。传入字符串走内置 `<img>`,传入 ReactNode 直接渲染
75
- * (如平面图 View All 的 palette preview cell)。
76
- */
77
- image?: ReactNode | string;
78
- }
79
- /**
80
- * 平面图工具栏「打开资源选择」槽位 props。
81
- * 与 `PisellProResourcePickerModalProps` 字段对齐;业务注入 modal 时可透传
82
- * `categoryConfig` / `getSearchText` / `getCardMeta` 等扩展项。
83
- */
84
- export interface FloorMapResourcePickerSlotProps {
85
- open: boolean;
86
- onClose: () => void;
87
- onConfirm: (selectedIds: string[]) => void;
88
- records: PisellCardPickerItem[];
89
- mode?: PisellCardPickerMode;
90
- value?: string[];
91
- title?: string;
92
- disabledIds?: string[];
93
- /** 最多三级分类;不传则仅搜索 + 列表 */
94
- categoryConfig?: PisellCardPickerCategoryConfig;
95
- getSearchText?: (record: PisellCardPickerItem) => string;
96
- getCardMeta?: (record: PisellCardPickerItem) => PisellCardPickerCardMeta;
97
- renderCard?: (record: PisellCardPickerItem, ctx: {
98
- selected: boolean;
99
- disabled: boolean;
100
- }) => ReactNode;
101
- zIndex?: number;
102
- width?: number;
103
- className?: string;
104
- }
105
- /**
106
- * 把单字段中的层级路径解析为 [L1, L2, L3]。
107
- * 例:`广东/中山/三乡` → `['广东','中山','三乡']`;不足三级后续为 null。
108
- */
109
- export declare function parseNestedPathSegments(raw: unknown, maxDepth?: number): PisellCardPickerCategoryPath;
@@ -1,24 +0,0 @@
1
- import type { FloorMapMergedItem } from '../types';
2
- export interface SelectionZoneRect {
3
- left: number;
4
- top: number;
5
- width: number;
6
- height: number;
7
- }
8
- /** 该图元是否为选区 */
9
- export declare function isSelectionZoneItem(item: {
10
- elementKind?: string;
11
- }): boolean;
12
- /** zoneRect 是否「完全包含」itemRect(含边界,允许 1px 容差以抵消取整误差) */
13
- export declare function rectFullyContains(zoneRect: SelectionZoneRect, itemRect: SelectionZoneRect, tolerance?: number): boolean;
14
- /**
15
- * 计算选区成员 id 列表(输入为像素矩形坐标系)。
16
- *
17
- * @param zoneId 选区自身 id(排除自身)
18
- * @param zoneRect 选区矩形(像素)
19
- * @param itemRects 画布上全部图元及其像素矩形
20
- */
21
- export declare function computeSelectionZoneMemberIds(zoneId: string, zoneRect: SelectionZoneRect, itemRects: Array<{
22
- item: FloorMapMergedItem;
23
- rect: SelectionZoneRect;
24
- }>): string[];
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { RecordBoardProps } from './types';
3
- /**
4
- * RecordBoard 容器:提供统一的 data / pagination / search 上下文。
5
- * 打散 props:列表/分页/搜索/多选、grid/toolBar/…;可选根级 **floorMap**(兼容透传)。
6
- * 平面图推荐在 ShellFrame 内使用 **PisellRecordBoard.FloorMap** 声明,与根级 `floorMap` 合并(子优先)。
7
- */
8
- declare const PisellRecordBoard: React.FC<RecordBoardProps>;
9
- export default PisellRecordBoard;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { TableProps } from 'antd';
3
- import type { RecordBoardContextValue } from '../../types';
4
- import './Grid.less';
5
- export interface RecordBoardGridViewProps extends Omit<TableProps<any>, 'dataSource' | 'loading' | 'pagination'>, Partial<Pick<RecordBoardContextValue, 'data' | 'loading'>> {
6
- /** 列配置,同 antd Table columns */
7
- columns?: TableProps<any>['columns'];
8
- className?: string;
9
- style?: React.CSSProperties;
10
- /** 自定义渲染,传入后不再使用内置 Table */
11
- render?: (ctx: RecordBoardContextValue) => React.ReactNode;
12
- }
13
- declare const RecordBoardGridView: React.FC<RecordBoardGridViewProps>;
14
- export default RecordBoardGridView;
@@ -1,9 +0,0 @@
1
- /**
2
- * RecordBoard 预约日历:月 / 周 / 日三视图,资源分组与折叠、锁台、拖拽改期、日视图多 lane overlay。
3
- * 受控:`calendarView`、`anchorDate`、`bookings` 等见 {@link RecordBoardCalendarProps};未传时由内部 state 驱动(便于 Story)。
4
- */
5
- import React from 'react';
6
- import type { RecordBoardCalendarProps } from '../../types';
7
- import './BookingCalendar.less';
8
- /** 看板日历根组件:内含主题 CSS 与 Spin,按 `view` 挂载月 / 周 / 日子组件 */
9
- export default function BookingCalendar(props?: RecordBoardCalendarProps): React.JSX.Element;
@@ -1,43 +0,0 @@
1
- /**
2
- * BookingCalendar 专用类型(不放入全局 RecordBoard types,避免对外膨胀)。
3
- */
4
- import type { RecordBoardCalendarBookingLike } from '../../types';
5
- import type { CalendarBookingSegmentInput, SelectedSlotLike } from './utils/bookingCalendarDateUtils';
6
- import type { Dayjs } from 'dayjs';
7
- /** 资源视图格子选中:仅记 court + 日 */
8
- export declare type ResourceCellPick = {
9
- courtId: string;
10
- dateKey: string;
11
- };
12
- /** 顶栏粒度切换 */
13
- export declare type CalendarViewMode = 'resource' | 'day' | 'week' | 'month';
14
- export declare type FreeSlotSelection = SelectedSlotLike & {
15
- court?: string;
16
- };
17
- export declare type OverflowListModalState = {
18
- scope: string;
19
- date: string;
20
- title: string;
21
- items: CalendarBookingSegmentInput[];
22
- };
23
- export declare type OverflowPopoverState = {
24
- courtId: string;
25
- date: string;
26
- items: CalendarBookingSegmentInput[];
27
- pinned?: boolean;
28
- };
29
- export declare type MoveConfirmState = {
30
- item: RecordBoardCalendarBookingLike;
31
- targetCourtId: string;
32
- targetDate: string;
33
- targetHour: number;
34
- };
35
- export declare type MoveDraftState = {
36
- targetCourtId: string;
37
- targetDate: string;
38
- targetHour: number;
39
- };
40
- export declare type TransitioningToDayState = {
41
- source: string;
42
- };
43
- export declare type BlockTimeRange = [Dayjs, Dayjs] | null;
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- /** UI 层:状态徽标文案走 i18n(utils 侧为 {@link statusTagMetaParts}) */
3
- export declare function statusTagMeta(tag: string | null | undefined): {
4
- label: string;
5
- className: string;
6
- } | null;
7
- /** 锁台卡片副标题:操作人、锁台时间等拼接一行 */
8
- export declare function getBlockMetaLine(item: any): string;
9
- export declare function getRemainingToneClass(ratio: any, isLight?: boolean): "theme-text-muted" | "text-zinc-400" | "text-red-600" | "text-red-300" | "text-amber-600" | "text-amber-300";
10
- /**
11
- * @param options.flattenWhenAllGroupsCollapsed
12
- * 若为 `true`:全部分组折叠时仅有 group 头、无 court 行,会退化为平铺 court(易与「全部展开」混淆)。
13
- * 日/周/月日历统一为默认 `false`,保留分组头行与折叠态(与底部「全部关闭」预期一致)。
14
- *
15
- * 若全部资源只属于**一个**分组(含仅 VIP、仅 Standard、或仅一种自定义 type),日/周视图不展示分组头行,
16
- * 直接平铺资源行(单组折叠时也同样平铺资源,避免只剩一条分组栏)。
17
- */
18
- export declare function buildGroupedCourtRows(courts: any, collapsedGroups?: {}, options?: {}): any;
19
- /** 周/月/资源跨窗口 pill 左右续画标记(◀/▶);自定义 `renderMonthWeekBooking` 时由格容器包裹渲染 */
20
- export declare function CalendarGridBookingClipMarkers({ clippedLeft, clippedRight, size, }: {
21
- clippedLeft?: boolean;
22
- clippedRight?: boolean;
23
- /** `xs` 月视图 banner;`sm` 周/资源 pill */
24
- size?: 'xs' | 'sm';
25
- }): React.JSX.Element;
26
- /** 日视图 overlay 内单条预约/锁台:窄宽自适应与 Tooltip */
27
- export declare function BookingCard({ booking, dayKey, onOpenDetail, onDragStart, onJumpNext, overlayWidthPx, }: {
28
- booking: any;
29
- dayKey: any;
30
- onOpenDetail: any;
31
- onDragStart: any;
32
- onJumpNext: any;
33
- overlayWidthPx: any;
34
- }): any;
@@ -1,102 +0,0 @@
1
- /** BookingCalendarDemo:布局数值与虚拟列表高度等(无演示种子数据)。 */
2
- export declare const timeSliceMinutes = 60;
3
- /** 未传 timelineRange 时默认营业日界钟 */
4
- export declare const DEFAULT_CALENDAR_TIMELINE: {
5
- start: string;
6
- end: string;
7
- };
8
- export declare const frozenColWidth = 132;
9
- export declare const dayColWidth = 92;
10
- /**
11
- * 日历「资源视图」横向每一「日」列宽度(按月天数铺开)。
12
- * 略大于 {@link dayColWidth},仅作用于资源视图;日视图时间轴仍用 dayColWidth。
13
- */
14
- export declare const resourceViewDayColWidth = 102;
15
- /**
16
- * 日/周视图空档虚线框:在父级为 column flex 且占满格高时 `flex-1 min-h-0` 纵向铺满剩余区域。
17
- */
18
- export declare const CALENDAR_EMPTY_DASHED_SLOT_CLASSNAME = "flex min-h-0 flex-1 w-full flex-col items-center justify-center rounded-lg border border-dashed px-2 py-1 text-xs";
19
- /** 日视图无 overlay 时资源行默认高度;周视图 court 行与各日期格 `minHeight` 与之对齐 */
20
- export declare const dayRowHeight = 44;
21
- /**
22
- * 资源视图月格:单条预约卡片**实际 min-height** 与「行高估算」共用此值。
23
- * 调整此常量即可同步改变卡片显示高度与父行预留高度,避免行高与卡片高度不一致导致的截断 / 留白。
24
- */
25
- export declare const RESOURCE_VIEW_BOOKING_CARD_EST_PX = 48;
26
- /** 资源视图「+N」tile 的 min-height */
27
- export declare const RESOURCE_VIEW_MORE_TILE_MIN_PX = 48;
28
- /** 资源视图单元格 p-1 上下合计 */
29
- export declare const RESOURCE_VIEW_CELL_PADDING_Y_PX = 8;
30
- /** 资源视图 fullyBooked 占位块 min-height */
31
- export declare const RESOURCE_VIEW_FULLY_BOOKED_BLOCK_PX = 28;
32
- /**
33
- * 资源视图:单 court 行最多展示的 lane 数;超出 → 该天落入 cell 级 `+N` 溢出
34
- */
35
- export declare const RESOURCE_VIEW_MAX_LANE = 3;
36
- /**
37
- * 周视图:单 court 行最多展示的 lane 数(含 pill)。
38
- * 比资源视图小:周列宽 ≈ 1 天,行高过大会让 5/27–5/31 这种"中间天"出现大块底部空白
39
- * (短跨日 pill 只占 5/25–5/26 的 lane 2,但行高被全周 max 撑到 3 lane)。
40
- * 这里取 2 → 长跨日两条占顶 lane 0/1,短跨日和单日全部进 cell 级 +N tile,行高紧凑。
41
- */
42
- export declare const WEEK_VIEW_MAX_LANE = 2;
43
- /** 月视图:每周内最多展示的 lane 数;超出 → cell 级 `+N` 溢出(M1:跨自然周续画时端部加 ◀/▶) */
44
- export declare const MONTH_VIEW_MAX_LANE = 3;
45
- /** 月视图 banner 高度(细于周视图 pill,节省每个 cell 的垂直空间) */
46
- export declare const MONTH_VIEW_BANNER_H = 22;
47
- /** 月视图 banner 之间纵向间距 */
48
- export declare const MONTH_VIEW_BANNER_GAP = 2;
49
- /** 月视图 banner 区域顶部留白(cell header 已留 padding,这里只补 banner 自身上边距) */
50
- export declare const MONTH_VIEW_BANNER_PAD_Y = 2;
51
- /** 月视图 cell header 估算高度:日期数字 + 占用 dot,banner 起点的 top 偏移 */
52
- export declare const MONTH_VIEW_DAY_HEADER_H = 52;
53
- /** 月视图 +N tile 高度(与 banner 一致以对齐 lane 槽) */
54
- export declare const MONTH_VIEW_MORE_TILE_PX = 22;
55
- /** 月视图:给定可见 lane 数与是否有 +N,banner 区所需高度(px) */
56
- export declare function monthWeekBannerContentHeightPx(visibleLanes: number, hasOverflow: boolean): number;
57
- /**
58
- * 月视图:在固定行高、不可滚动的前提下,根据 banner 区可用高度推算本行最多展示几条。
59
- * 超出部分走 cell 级 +N,避免底部 banner 被裁切却看不到 +N。
60
- */
61
- export declare function monthViewEffectiveMaxLanes(bannerZoneHeightPx: number, totalLaneCount: number): number;
62
- /** 日视图分组行默认高度(须容纳左侧折叠按钮等) */
63
- export declare const groupRowHeight = 38;
64
- export declare const dayHeaderHeight = 56;
65
- /** 日视图 overlay 内单条预约卡片区最小高度(与 BookingCard、行高计算一致) */
66
- export declare const DAY_BOOKING_CARD_MIN_PX = 64;
67
- /** 日视图同一资源行内每条 lane 的最小高度(须 ≥ DAY_BOOKING_CARD_MIN_PX);并行时抬高该行 */
68
- export declare const DAY_OVERLAY_LANE_MIN_PX = 64;
69
- export declare const DAY_OVERLAY_INNER_TOP = 8;
70
- export declare const DAY_OVERLAY_INNER_BOTTOM = 8;
71
- export declare const DAY_OVERLAY_LANE_GAP = 2;
72
- /** 同一重叠簇内最多展示的预约条数;超出合并为第 4 行的 +N(与日/周时间轴 overlay 一致) */
73
- export declare const DAY_OVERLAY_VISIBLE_BOOKING_CAP = 3;
74
- /**
75
- * 日视图:某 court 行在「有预约 overlay」时的总高度(px),随并行展示条数 `displayLaneCount` 变高而变高(非固定常数)。
76
- * `displayLaneCount` 由 `effectiveDayOverlayDisplayLaneCount(最大并行数)` 得到,与 3+N 截断规则一致。
77
- */
78
- export declare function dayCourtOverlayRowHeightPx(displayLaneCount: number): number;
79
- /**
80
- * 资源视图:按某一格「courtDaySummary」结果估算该格所需最小高度(px)。
81
- * 用于横向虚拟化仅挂载可见日期列时,仍按**全月**最大内容撑开行高,避免日程只在屏幕外列时出现行高塌陷。
82
- */
83
- export declare function estimateResourceViewCourtCellHeightPx(summary: {
84
- fullyBooked: boolean;
85
- items: unknown[];
86
- }): number;
87
- /** 低于该宽度时日视图预约条内难以排下两行文案,默认用 Tooltip 展示完整信息 */
88
- export declare const DAY_BOOKING_NARROW_PX = 88;
89
- /** 低于该宽度时条内仅保留居中首字/圆点,避免文字竖排或完全不可读 */
90
- export declare const DAY_BOOKING_MICRO_PX = 32;
91
- /** 日视图横向:视口外多渲染的槽列数(减轻快速滚动白边) */
92
- export declare const DAY_VIEW_COL_BUFFER = 5;
93
- /** 日视图纵向:视口外多渲染的像素边距 */
94
- export declare const DAY_VIEW_ROW_BUFFER_PX = 240;
95
- /** 月/周/资源 +N 弹层内置列表行内容区高度(名称 + 时间) */
96
- export declare const OVERFLOW_MODAL_SIMPLE_CARD_H = 56;
97
- /** 日视图 lane +N:RoomCard 单行内容区高度(略大于格内条 min,可裁切次要信息) */
98
- export declare const OVERFLOW_MODAL_DAY_CARD_H = 80;
99
- export declare const OVERFLOW_MODAL_ROW_GAP = 8;
100
- export declare const OVERFLOW_MODAL_SIMPLE_ROW_H: number;
101
- export declare const OVERFLOW_MODAL_DAY_ROW_H: number;
102
- export declare const OVERFLOW_MODAL_LIST_MAX_H = 420;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs } from '../../../types';
3
- import type { OverflowListModalState } from '../bookingCalendarInternalTypes';
4
- export declare type BookingCalendarOverflowListLayerProps = {
5
- overflowPanelRef: React.RefObject<HTMLDivElement | null>;
6
- isLight: boolean;
7
- modal: OverflowListModalState;
8
- onClose: () => void;
9
- onPickItem: (item: RecordBoardCalendarBookingLike) => void;
10
- /** 仅日视图 lane 溢出:透传宿主 `renderBooking`(RoomCard) */
11
- renderBooking?: (args: RecordBoardCalendarBookingRenderArgs) => React.ReactNode;
12
- onDragStart?: (item: RecordBoardCalendarBookingLike) => void;
13
- };
14
- /**
15
- * 全局溢出预约列表弹层(日视图 lane 与月/周/资源 `+N` 点开后)。
16
- * 日视图列表行可走宿主 RoomCard;其它视图使用内置列表行。
17
- */
18
- export declare function BookingCalendarOverflowListLayer({ overflowPanelRef, isLight, modal, onClose, onPickItem, renderBooking, onDragStart, }: BookingCalendarOverflowListLayerProps): React.JSX.Element;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import { type CalendarBookingSegmentInput } from '../utils/bookingCalendarDateUtils';
3
- import type { RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs } from '../../../types';
4
- export declare type OverflowListModalVirtualListProps = {
5
- items: CalendarBookingSegmentInput[];
6
- dateKey: string;
7
- onPickItem: (item: CalendarBookingSegmentInput) => void;
8
- onClose: () => void;
9
- /**
10
- * 为 true 时按日视图逻辑展示状态徽标与状态底色(日视图 lane 溢出列表)。
11
- * 月 / 周 / 资源 +N 弹层为 false,使用内置列表行(名称 + 时间)。
12
- * @default true
13
- */
14
- showStatusUi?: boolean;
15
- /**
16
- * 为 true 且宿主提供 `renderBooking` 时,列表行复用日视图 RoomCard;
17
- * 月 / 周 / 资源 +N 弹层恒为 false,不走宿主格内卡片。
18
- */
19
- isDayLaneOverflow?: boolean;
20
- isLight?: boolean;
21
- /** 仅日视图 lane 溢出:透传宿主 `renderBooking` */
22
- renderBooking?: (args: RecordBoardCalendarBookingRenderArgs) => React.ReactNode;
23
- onDragStart?: (item: RecordBoardCalendarBookingLike) => void;
24
- };
25
- /**
26
- * 溢出预约列表弹层:`FixedSizeList` 虚拟列表。
27
- * - 日视图 lane +N:宿主 `renderBooking`(RoomCard)
28
- * - 月 / 周 / 资源 +N:内置列表行(名称 + 时间),不用格内自定义卡片
29
- */
30
- export declare function OverflowListModalVirtualList({ items, dateKey, onPickItem, onClose, showStatusUi, isDayLaneOverflow, isLight, renderBooking, onDragStart, }: OverflowListModalVirtualListProps): React.JSX.Element | null;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { type CalendarBookingSegmentInput } from '../utils/bookingCalendarDateUtils';
3
- export declare type MonthGridOverflowVirtualListProps = {
4
- items: CalendarBookingSegmentInput[];
5
- listWidth: number;
6
- onPickItem: (item: CalendarBookingSegmentInput) => void;
7
- };
8
- /** 月/周格「+N」悬停层内的虚拟列表(overflowPopover) */
9
- export declare function MonthGridOverflowVirtualList({ items, listWidth, onPickItem, }: MonthGridOverflowVirtualListProps): React.JSX.Element | null;
@@ -1,32 +0,0 @@
1
- /**
2
- * 日历主轴映射纯函数:把一条 booking 在主轴方向的连续区间 [startUnit, endUnit)
3
- * 按「精确比例 proportional」或「补全到刻度结束 snap」映射成 { offset, size }。
4
- * 单位无关:scalePerUnit 既可是 px(固定列宽视图)也可是 %(弹性列视图)。
5
- */
6
- export declare type TickFillMode = 'proportional' | 'snap';
7
- export declare type CalendarViewKind = 'day' | 'week' | 'resource' | 'month';
8
- export interface TickAxis {
9
- /** 主轴起点对应的"绝对单位坐标"(日视图=firstTimelineHour;天维度=0) */
10
- originUnit: number;
11
- /** 每 1 单位的输出量(日视图=每小时 px;天维度=每列 px 或 %) */
12
- scalePerUnit: number;
13
- /** snap 的对齐粒度(单位)(日视图=slotStepHours;天维度=1) */
14
- tickUnit: number;
15
- /** 输出尺寸下限(与 scalePerUnit 同量纲),比例模式兜底可点击宽度 */
16
- minSize: number;
17
- }
18
- export interface AxisSpan {
19
- offset: number;
20
- size: number;
21
- }
22
- export declare function mapAxisSpan(axis: TickAxis, startUnit: number, endUnit: number, mode: TickFillMode): AxisSpan;
23
- /**
24
- * 天维度:把(列下标, 当天浮点小时)折算成连续「天单位」坐标。
25
- * frac 限制在 [0,1],使跨日首尾按当天营业小时占比收口。
26
- *
27
- * 营业窗口起点 `dayGridMin` 可能不是 0 点、甚至接近午夜(跨午夜营业,如 23:59 起)。
28
- * 此时 `hour - dayGridMin` 对白天小时会变负而被 clamp 成 0,导致所有预约挤到格子开头。
29
- * 因此先对 24h 做环绕,得到「距营业起点的正向偏移」,再按 span 归一化。
30
- */
31
- export declare function dayGridUnit(colIndex: number, hour: number, dayGridMin: number, dayGridSpan: number): number;
32
- export declare function resolveTickFillMode(view: CalendarViewKind, override: TickFillMode | undefined): TickFillMode;