@pisell/materials 1.10.5 → 1.10.7
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.js +5 -5
- package/es/components/PisellSuperTabs/PisellSuperTabs.js +34 -7
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +19 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +2 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.js +2 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +2 -1
- package/es/components/productCard/cartSkuCard/components/sales/index.js +3 -1
- package/es/components/productCard/cartSkuCard/index.js +11 -3
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/lineItem/BookingLineItem.js +5 -1
- package/es/components/productCard/types.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/PisellSuperTabs/PisellSuperTabs.js +34 -5
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +22 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +2 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +7 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +2 -1
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +7 -1
- package/lib/components/productCard/cartSkuCard/index.js +15 -2
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/lineItem/BookingLineItem.js +3 -0
- package/lib/components/productCard/types.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +1 -1
- package/es/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/es/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/es/components/PisellGroupView/index.d.ts +0 -6
- package/es/components/PisellGroupView/types.d.ts +0 -124
- package/es/components/PisellGroupView/utils/index.d.ts +0 -20
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/es/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/index.d.ts +0 -10
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -12
- package/es/components/PisellTabbar/template/Template1/index.d.ts +0 -7
- package/es/components/pisellFind/index.d.ts +0 -69
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellLookup/types.d.ts +0 -797
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/es/components/pisellTimeRangeDisplay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/es/components/select-time/RightPanel/index.d.ts +0 -10
- package/es/components/select-time/index.d.ts +0 -16
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/hooks/useTranslationOriginal.d.ts +0 -4
- package/es/locales/ja.d.ts +0 -534
- package/es/locales/pt.d.ts +0 -534
- package/es/locales/zh-CN.d.ts +0 -561
- package/es/locales/zh-TW.d.ts +0 -561
- package/lib/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/lib/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/lib/components/PisellGroupView/index.d.ts +0 -6
- package/lib/components/PisellGroupView/types.d.ts +0 -124
- package/lib/components/PisellGroupView/utils/index.d.ts +0 -20
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/lib/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/index.d.ts +0 -10
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -12
- package/lib/components/PisellTabbar/template/Template1/index.d.ts +0 -7
- package/lib/components/pisellFind/index.d.ts +0 -69
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellLookup/types.d.ts +0 -797
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/lib/components/pisellTimeRangeDisplay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/lib/components/select-time/RightPanel/index.d.ts +0 -10
- package/lib/components/select-time/index.d.ts +0 -16
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/hooks/useTranslationOriginal.d.ts +0 -4
- package/lib/locales/ja.d.ts +0 -534
- package/lib/locales/pt.d.ts +0 -534
- package/lib/locales/zh-CN.d.ts +0 -561
- package/lib/locales/zh-TW.d.ts +0 -561
|
@@ -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
|
-
};
|