@pisell/materials 6.11.242 → 6.11.243

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 (39) 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/package.json +3 -3
  6. package/es/components/PisellTabbar/index.d.ts +0 -10
  7. package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -12
  8. package/es/components/PisellTabbar/template/Template1/index.d.ts +0 -7
  9. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +0 -48
  10. package/es/components/pisellFind/index.d.ts +0 -69
  11. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
  12. package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  13. package/es/components/pisellRecordBoard/index.d.ts +0 -55
  14. package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
  15. package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  16. package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
  17. package/es/components/productCard/cartSkuCard/index.d.ts +0 -15
  18. package/es/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
  19. package/es/components/productCard/lineItem/index.d.ts +0 -72
  20. package/es/components/table/hooks/useTableSetting.d.ts +0 -21
  21. package/es/hooks/useTranslationOriginal.d.ts +0 -4
  22. package/es/index.d.ts +0 -271
  23. package/lib/components/PisellTabbar/index.d.ts +0 -10
  24. package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -12
  25. package/lib/components/PisellTabbar/template/Template1/index.d.ts +0 -7
  26. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +0 -48
  27. package/lib/components/pisellFind/index.d.ts +0 -69
  28. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
  29. package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
  30. package/lib/components/pisellRecordBoard/index.d.ts +0 -55
  31. package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
  32. package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
  33. package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
  34. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -15
  35. package/lib/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
  36. package/lib/components/productCard/lineItem/index.d.ts +0 -72
  37. package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
  38. package/lib/hooks/useTranslationOriginal.d.ts +0 -4
  39. package/lib/index.d.ts +0 -271
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.11.242",
3
+ "version": "6.11.243",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -95,9 +95,9 @@
95
95
  "swiper": "^8.4.7",
96
96
  "antd-mobile": "^5.38.1",
97
97
  "vod-js-sdk-v6": "^1.4.11",
98
- "@pisell/date-picker": "3.0.10",
98
+ "@pisell/icon": "0.0.11",
99
99
  "@pisell/utils": "3.0.4",
100
- "@pisell/icon": "0.0.11"
100
+ "@pisell/date-picker": "3.0.10"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "react": "^18.0.0",
@@ -1,10 +0,0 @@
1
- /**
2
- * PisellTabbar 组件导出文件
3
- * @module PisellTabbar
4
- */
5
- import PisellTabbar from './PisellTabbar';
6
- import PisellTabbarTemplate1 from './template/Template1';
7
- export type { LevelType, PisellTabbarProps, TabbarActionItem, TabbarDataSource, } from './types';
8
- export type { PisellTabbarTemplate1Direction, PisellTabbarTemplate1Props, } from './template/Template1';
9
- export { PisellTabbarTemplate1 };
10
- export default PisellTabbar;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import '../../PisellTabbar.less';
3
- import { PisellTabbarProps } from '../../types';
4
- export declare type PisellTabbarTemplate1Direction = 'horizontal' | 'vertical';
5
- export interface PisellTabbarTemplate1Props extends PisellTabbarProps {
6
- /** Tab 排列方向;默认保持现有横向布局。 */
7
- direction?: PisellTabbarTemplate1Direction;
8
- /** 是否在每个层级展示自动生成的 All 分类;默认保持展示。 */
9
- showAllItem?: boolean;
10
- }
11
- declare const _default: React.ForwardRefExoticComponent<PisellTabbarTemplate1Props & React.RefAttributes<unknown>>;
12
- export default _default;
@@ -1,7 +0,0 @@
1
- /**
2
- * PisellTabbar 组件导出文件
3
- * @module PisellTabbar
4
- */
5
- import PisellTabbar from './PisellTabbar';
6
- export type { PisellTabbarTemplate1Direction, PisellTabbarTemplate1Props, } from './PisellTabbar';
7
- export default PisellTabbar;
@@ -1,48 +0,0 @@
1
- import { Field } from '../../provider/dataSource/DataSourceContext';
2
- export declare type ListResult = {
3
- data: any[];
4
- count: number;
5
- page: number;
6
- pageSize: number;
7
- };
8
- export declare type UseFormatParams = {
9
- dataSourceKey: string;
10
- fields: Field[];
11
- };
12
- export declare type ApiListResult = {
13
- list: any[];
14
- count: number;
15
- size: number;
16
- } & ({
17
- page: number;
18
- } | {
19
- skip: number;
20
- });
21
- export declare type FormatListResultParams = ApiListResult | {
22
- data: any[];
23
- meta: {
24
- count: number;
25
- page: number;
26
- pageSize: number;
27
- };
28
- };
29
- export declare type FilterValue = {
30
- [key: string]: any;
31
- };
32
- export declare type FilterOperator = '$includes' | '$dateAfter' | '$dateBefore' | '$eq' | '$in' | '$isTruly' | '$and';
33
- export declare type SimpleFilterValue = {
34
- [key in Exclude<FilterOperator, '$and'>]?: any;
35
- };
36
- export declare type AndFilterValue = {
37
- $and: FilterCondition[];
38
- };
39
- export declare type FilterConditionValue = SimpleFilterValue | AndFilterValue;
40
- export declare type FilterCondition = {
41
- [key: string]: FilterConditionValue;
42
- } | AndFilterValue;
43
- declare const useFormat: ({ dataSourceKey, fields }: UseFormatParams) => {
44
- formatListResult: (this: unknown, res: FormatListResultParams) => ListResult;
45
- formatListParams: (this: unknown, params: any) => any;
46
- formatCreateUpdateParams: (this: unknown, params: any) => any;
47
- };
48
- export default useFormat;
@@ -1,69 +0,0 @@
1
- import React from 'react';
2
- import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
3
- /**
4
- * 原生扫码事件名,对齐宿主端约定。
5
- */
6
- export declare const SCAN_RESULT_EVENT = "nativeScanResult";
7
- /** 无扫码焦点栈时,供页面级全局扫码监听避让 Find 的回退计数。 */
8
- export declare const FIND_FALLBACK_SCANNER_COUNT_KEY = "__pisellFindFallbackScannerCount";
9
- /**
10
- * 扫码枪回传数据(对齐宿主 ScanResultPayload)
11
- * - code: 条码标识(如条码格式 / 业务字段)
12
- * - data: 扫描得到的字符串值(写入输入框的内容)
13
- */
14
- export interface PisellFindScannerData {
15
- code: string;
16
- data: string;
17
- }
18
- /**
19
- * PisellFind Props
20
- * 继承 PisellLookup 的所有 Props,并扩展扫码枪监听相关字段。
21
- */
22
- export interface PisellFindProps extends PisellLookupProps {
23
- /**
24
- * 是否开启扫码枪监听
25
- * - 优先:通过宿主 `appHelper.utils.acquireScanFocus` 接入「扫码焦点栈」,
26
- * 保证同一页面存在多个 PisellFind 时,只有「栈顶」(最后开启监听的那个,
27
- * 如列表上方拉起的弹窗)响应扫码,底层组件不响应;关闭/卸载时自动释放,焦点回退。
28
- * - 回退:宿主未注册焦点栈时,退回到直连 `app.pubsub.subscribe('nativeScanResult', ...)`。
29
- * 切换 false 时会释放焦点 / unsubscribe,停止接收事件。
30
- * @default false
31
- */
32
- enableScanner?: boolean;
33
- /**
34
- * 扫码枪回调
35
- * 监听到扫码枪事件时触发,参数为原始 payload 对象(含 `data` 字段)。
36
- * 注意:仅在 enableScanner 为 true 时才会触发。
37
- */
38
- onScannerData?: (data: PisellFindScannerData) => void;
39
- }
40
- /**
41
- * PisellFind Ref
42
- * 继承 PisellLookup 的所有 Ref 方法
43
- */
44
- export declare type PisellFindRef = PisellLookupRef;
45
- /**
46
- * PisellFind 组件
47
- * 基于 PisellLookup 的组件内查找优化版本
48
- *
49
- * 核心特点:
50
- * - 默认使用 button 触发器
51
- * - 默认不显示确认按钮(输入即搜索)
52
- * - 默认开启搜索历史
53
- * - 默认不展示结果区(结果在页面其他位置展示)
54
- * - 通过 `enableScanner` 接入扫码枪:优先走宿主注入的「扫码焦点栈」
55
- * (`appHelper.utils.acquireScanFocus`),保证同页多个 PisellFind 只有栈顶响应;
56
- * 宿主未注册时回退到直连 `app.pubsub.subscribe(SCAN_RESULT_EVENT, ...)`。
57
- * 每次扫码直接覆盖输入框内容并触发 onSearch / onScannerData;切回 false 时自动释放 / unsubscribe。
58
- *
59
- * @example
60
- * ```tsx
61
- * <PisellFind
62
- * triggerType="input"
63
- * enableScanner={isActive}
64
- * onScannerData={(payload) => console.log('scan:', payload.data)}
65
- * onSearch={(keyword) => filterData(keyword)}
66
- * />
67
- * ```
68
- */
69
- export declare const PisellFind: React.ForwardRefExoticComponent<PisellFindProps & React.RefAttributes<PisellLookupRef>>;
@@ -1,94 +0,0 @@
1
- import type { MouseEvent, MutableRefObject } from 'react';
2
- import { type PlacementBoundingBox } from '../utils/batchScenePlacementLayout';
3
- import type { DataSourceFormColumn, FloorMapCanvasNameI18n, FloorMapDataSourceRecordFormContent, FloorMapDataSources, FloorMapItemBase, FloorMapMergedItem, FloorMapPlaceMode, FloorMapSceneElement, FloorMapViewConfig } from '../types';
4
- export interface UseFloorMapEditStateParams<T extends FloorMapItemBase> {
5
- floorMapConfigProp: FloorMapViewConfig | undefined;
6
- isFloorMapView: boolean;
7
- itemsProp: T[];
8
- cellSizeProp?: number;
9
- dataSources: FloorMapDataSources | undefined;
10
- onSave: ((config: FloorMapViewConfig) => void) | undefined;
11
- onDataSourceRecordSave: ((dataSourceKey: string, id: string, newData: Record<string, unknown>) => void) | undefined;
12
- dataSourceFormColumns: Record<string, DataSourceFormColumn[]> | undefined;
13
- dataSourceRecordForm: Record<string, FloorMapDataSourceRecordFormContent> | undefined;
14
- dataSourceLabels?: Record<string, string>;
15
- layoutPrefix: string;
16
- contentOffsetRef: MutableRefObject<{
17
- x: number;
18
- y: number;
19
- }>;
20
- showDataSourceRecordFormBlock?: boolean;
21
- /** 批量落点后由布局层注入:将视口移至新增图元区域 */
22
- focusViewportOnBoundsRef?: MutableRefObject<((bounds: PlacementBoundingBox) => void) | null>;
23
- /**
24
- * 网格显隐缓存命名空间(通常与视口 `viewportPersistNamespace` 同源,拼自业务/门店/平面图)。
25
- * 传入后网格 localStorage key 变为 `prefix:namespace:canvasId`,隔离不同门店/场景;
26
- * 不传则沿用 `prefix:canvasId`(向后兼容,跨场景可能共享)。
27
- */
28
- gridPersistNamespace?: string;
29
- }
30
- export declare function useFloorMapEditState<T extends FloorMapItemBase>(params: UseFloorMapEditStateParams<T>): {
31
- config: FloorMapViewConfig | null;
32
- currentCanvasId: string | null;
33
- setCurrentCanvasId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
34
- selectedId: string | null;
35
- setSelectedId: import("react").Dispatch<import("react").SetStateAction<string | null>>;
36
- placeMode: FloorMapPlaceMode;
37
- setPlaceMode: import("react").Dispatch<import("react").SetStateAction<FloorMapPlaceMode>>;
38
- mergedItems: FloorMapMergedItem[];
39
- items: T[];
40
- saving: boolean;
41
- savingRecord: boolean;
42
- handleAddCanvas: () => void;
43
- handleRemoveCanvas: (canvasId: string) => void;
44
- handleRenameCanvas: (canvasId: string, name: string | FloorMapCanvasNameI18n) => void;
45
- handleUpdateItem: (itemId: string, patch: Partial<{
46
- x: number;
47
- y: number;
48
- width: number;
49
- height: number;
50
- }>) => void;
51
- handleUpdateItemsBatch: (patches: Array<{
52
- id: string;
53
- patch: Partial<{
54
- x: number;
55
- y: number;
56
- width: number;
57
- height: number;
58
- }>;
59
- }>) => void;
60
- handleCanvasPlaceClick: (e: MouseEvent<HTMLDivElement>) => void;
61
- handleSave: () => void;
62
- discardDraft: () => void;
63
- placeSceneElementFromPaletteDrop: (contentX: number, contentY: number, scene: Extract<FloorMapPlaceMode, {
64
- type: 'scene';
65
- }>) => boolean;
66
- bulkPlacePaletteItems: (items: Array<{
67
- elementKind: string;
68
- builtinShapeKey?: string;
69
- }>) => void;
70
- editPanelParams: {
71
- itemId: string;
72
- sceneElement: FloorMapSceneElement;
73
- onUpdate: (patch: Partial<FloorMapSceneElement>) => void;
74
- onSaveRecord: ((dataSourceKey: string, id: string, newData: Record<string, unknown>) => void) | undefined;
75
- onClose: () => void;
76
- onDelete: (() => void) | undefined;
77
- recordFormColumns: Record<string, DataSourceFormColumn[]> | undefined;
78
- dataSourceRecordForm: Record<string, FloorMapDataSourceRecordFormContent> | undefined;
79
- dataSourceLabels: Record<string, string> | undefined;
80
- layoutDraftDirty: boolean;
81
- showDataSourceRecordFormBlock: boolean | undefined;
82
- } | null;
83
- placeOverlayClass: string;
84
- isLayoutDirty: boolean;
85
- toggleDraftCanvasShowGrid: () => void;
86
- toggleSelectedLayoutLock: () => void;
87
- duplicateSelectedElement: () => void;
88
- deleteSelectedElement: () => void;
89
- undoDraft: () => void;
90
- redoDraft: () => void;
91
- canUndo: boolean;
92
- canRedo: boolean;
93
- commitDraft: (next: FloorMapViewConfig | ((prev: FloorMapViewConfig | null) => FloorMapViewConfig | null) | null, options?: import("./useDraftConfigHistory").DraftHistoryCommitOptions | undefined) => void;
94
- };
@@ -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,55 +0,0 @@
1
- import React from 'react';
2
- import GridLayout from './layouts/GridLayout';
3
- import CardLayout from './layouts/CardLayout';
4
- import RecordBoardShellFrame, { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch, RecordBoardFloorMap, RecordBoardCalendar, RecordBoardResourceWall } from './shellFrame';
5
- import RecordBoardGridView from './layouts/GridLayout/Grid';
6
- import RecordBoardCardList from './layouts/CardLayout/CardList';
7
- import { useRecordBoardContext } from './hooks/useRecordBoardContext';
8
- import type { RecordBoardProps } from './types';
9
- /** RecordBoard 复合组件类型 */
10
- interface PisellRecordBoardType extends React.FC<RecordBoardProps> {
11
- /** Shell Frame:对 Layout 的扩展,提供 ToolBar + BatchActionBar + children(Layout) */
12
- ShellFrame: typeof RecordBoardShellFrame;
13
- /** Grid 布局:仅内容区(表格 + 分页),需配合 ShellFrame 使用 */
14
- GridLayout: typeof GridLayout;
15
- /** 卡片布局:仅内容区(卡片列表 + 分页),需配合 ShellFrame 使用 */
16
- CardLayout: typeof CardLayout;
17
- /**
18
- * 平面图槽位:仅在 ShellFrame 内声明,无 DOM; props 与 PisellFloorMapLayout 对齐。
19
- * 与 GridLayout 同时存在时出现「表格 / 平面图」切换。
20
- */
21
- FloorMap: typeof RecordBoardFloorMap;
22
- /**
23
- * 日历槽位:仅在 ShellFrame 内声明,无 DOM;与 GridLayout / FloorMap 并存时出现「表格 / 平面图 / 日历」切换。
24
- */
25
- Calendar: typeof RecordBoardCalendar;
26
- /**
27
- * 大屏资源墙槽位:仅在 ShellFrame 内声明,无 DOM;与其它主区并存时出现视图切换。
28
- */
29
- ResourceWall: typeof RecordBoardResourceWall;
30
- /** 单独使用:搜索槽(PisellFind,绑定 searchParams.keyword / onSearch) */
31
- Search: typeof RecordBoardSearch;
32
- /** 单独使用:工具栏(PisellToolBar,含搜索/导出,可透传 topLeft/topRight 等) */
33
- ToolBar: typeof RecordBoardToolBar;
34
- /** 单独使用:分页槽 */
35
- Pagination: typeof RecordBoardPagination;
36
- /** 单独使用:Grid 视图(表格) */
37
- Grid: typeof RecordBoardGridView;
38
- /** 单独使用:卡片列表视图 */
39
- CardList: typeof RecordBoardCardList;
40
- /** 多选操作栏(基于 PisellBatchActionBar,有选中项时展示) */
41
- BatchActionBar: typeof RecordBoardBatchActionBar;
42
- /** 消费 RecordBoard 上下文 */
43
- useRecordBoardContext: typeof useRecordBoardContext;
44
- }
45
- declare const PisellRecordBoard: PisellRecordBoardType;
46
- export default PisellRecordBoard;
47
- export type { RecordBoardProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardContextValue, RecordBoardChildComponentProps, RecordBoardGridProps, RecordBoardColumnType, RecordBoardFieldType, RecordBoardColumnFilterConfig, RecordBoardOptionItem, RecordBoardGetOptions, RecordBoardBodyView, RecordBoardFloorMapProps, RecordBoardCalendarProps, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarResource, RecordBoardCalendarBookingLike, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarBookingRenderArgs, RecordBoardBookingMoveDraft, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardCalendarSelectedFreeSlot, RecordBoardToolBarProps, RecordBoardResourceWallProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, } from './types';
48
- export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST } from './types';
49
- export type { CalendarPersistContextValue } from './shellFrame/Calendar/calendarPersistGuard';
50
- export type { VenueWallAppearanceTheme, VenueWallStatusToneOverrides, } from './shellFrame/ResourceWall/venueWallUtils';
51
- export { useRecordBoardContext } from './hooks/useRecordBoardContext';
52
- export { useRecordBoardShellBodyMeta } from './shellFrame';
53
- export { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY } from './shellFrame/ResourceWall/PisellRecordBoardResourceWallView';
54
- export { adaptColumnsForPhoneLayout, RECORD_BOARD_PHONE_GRID_CLASS, } from './utils/recordBoardPhoneGrid';
55
- export type { AdaptColumnsForPhoneLayoutOptions } from './utils/recordBoardPhoneGrid';
@@ -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,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,15 +0,0 @@
1
- import React from 'react';
2
- import type { CSSProperties, ReactNode } from 'react';
3
- import './index.less';
4
- export interface InlineActionItem {
5
- key: string | number;
6
- text: ReactNode;
7
- color?: string;
8
- onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
9
- style?: CSSProperties;
10
- }
11
- interface InlineActionsProps {
12
- actions: InlineActionItem[];
13
- }
14
- declare const InlineActions: ({ actions }: InlineActionsProps) => React.JSX.Element | null;
15
- export default InlineActions;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { ProductCardTypes } from '../types';
4
- interface ISKUCardProps extends Omit<ProductCardTypes, 'dataSource'> {
5
- dataSource: any;
6
- itemType?: 'booking' | 'product';
7
- type: 'a2' | 'a5' | 'a9';
8
- rightActions: any[];
9
- rightActionsDisplay?: 'swipe' | 'inline';
10
- escapeDom?: string;
11
- isShowRelatedProduct?: boolean;
12
- }
13
- export declare const PREFIX = "pisell-cart-sku-card";
14
- declare const CartSkuCard: (props: ISKUCardProps) => React.JSX.Element | null;
15
- export default CartSkuCard;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import type { ProductCardTypes } from '../types';
3
- import type { LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
4
- interface BookingLineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
5
- dataSource: any;
6
- type: LineItemType;
7
- cartSkuType: 'a2' | 'a5' | 'a9';
8
- isShowBookingHeader: boolean;
9
- relatedProductDataSource?: any;
10
- addTimeProductDataSources?: any[];
11
- rightActions?: any[];
12
- rightActionsDisplay?: 'swipe' | 'inline';
13
- escapeDom?: string;
14
- statusOptions?: LineItemStatusOption[];
15
- statusLoading?: boolean;
16
- statusDisabled?: boolean;
17
- isShowRelatedProduct?: boolean;
18
- holderOptions?: LineItemHolderOption[];
19
- onBookingStatusChange?: (status: string, item: any) => void;
20
- onAddTimeProductCard?: (item: any) => void;
21
- }
22
- declare const BookingLineItem: (props: BookingLineItemProps) => React.JSX.Element | null;
23
- export default BookingLineItem;
@@ -1,72 +0,0 @@
1
- import React from 'react';
2
- import type { ProductCardTypes } from '../types';
3
- import type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
4
- import './index.less';
5
- export declare const PREFIX = "pisell-line-item";
6
- export type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType, } from './types';
7
- declare type LocalizedText = string | Record<string, unknown> | null | undefined;
8
- export interface LineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
9
- dataSource: any;
10
- itemType?: itemType;
11
- type?: LineItemType;
12
- isShowBookingHeader: boolean;
13
- rightActions?: any[];
14
- rightActionsDisplay?: 'swipe' | 'inline';
15
- escapeDom?: string;
16
- statusOptions?: LineItemStatusOption[];
17
- statusLoading?: boolean;
18
- statusDisabled?: boolean;
19
- isShowRelatedProduct?: boolean;
20
- holderOptions?: LineItemHolderOption[];
21
- onBookingStatusChange?: (status: string, item: any) => void;
22
- onAddTimeProductCard?: (item: any) => void;
23
- }
24
- export declare const convertProductToLineItemProduct: (product: any, translationOriginal: (text: LocalizedText) => string, symbol: string) => {
25
- _id: any;
26
- id: any;
27
- product_id: any;
28
- product_variant_id: any;
29
- title: string;
30
- product_title: string;
31
- name: string;
32
- cover: any;
33
- image: any;
34
- num: any;
35
- quantity: any;
36
- price: any;
37
- total: any;
38
- origin_total: string | number | undefined;
39
- original_total: string | number | undefined;
40
- source_product_price: any;
41
- selling_price: any;
42
- payment_price: any;
43
- tax_fee: any;
44
- symbol: string;
45
- note: any;
46
- product_sku: any;
47
- product_bundle: any;
48
- bundle: any;
49
- product_option_string: any;
50
- options: any[];
51
- discount_list: any;
52
- promotions: any;
53
- discount_reason: any;
54
- isGift: boolean;
55
- giftData: any;
56
- _origin: any;
57
- _extend: {
58
- other: {
59
- product_id: any;
60
- option: any[];
61
- bundle: any;
62
- product_variant_id: any;
63
- quantity: any;
64
- };
65
- note: any;
66
- total: any;
67
- origin_total: string | number | undefined;
68
- payment_price: any;
69
- };
70
- };
71
- declare const LineItem: (props: LineItemProps) => React.JSX.Element;
72
- export default LineItem;
@@ -1,21 +0,0 @@
1
- import { FilterType } from "../../filter/types";
2
- import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType, LocalSettingsType } from "../types";
3
- declare type UseTableSettingProps = {
4
- tableId?: string;
5
- filter: FilterType;
6
- columns: Record<string, any>[];
7
- columnSetting?: ColumnSettingType;
8
- dataSourceGroup?: DataSourceGroupType;
9
- sort?: SortType;
10
- view: GridViewType;
11
- currentViewMode: ModeType;
12
- gallery?: GallerySettingType;
13
- currentSettingHash: string;
14
- exportImport?: ExportImportModeType;
15
- localSettings?: LocalSettingsType;
16
- };
17
- declare const useTableSetting: (params: UseTableSettingProps) => {
18
- setTableSetting: (this: unknown, values: Record<string, any>) => void;
19
- tableSetting: any;
20
- };
21
- export default useTableSetting;
@@ -1,4 +0,0 @@
1
- export declare type TranslationOriginal = (value: any) => string;
2
- export declare const resolveTranslationOriginal: (value: unknown) => TranslationOriginal;
3
- declare const useTranslationOriginal: () => TranslationOriginal;
4
- export default useTranslationOriginal;