@pisell/materials 1.0.1062 → 1.0.1064
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/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +22 -22
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +26 -26
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +43 -31
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +60 -16
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +8 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +22 -12
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +7 -5
- package/es/components/pisellFloorMapLayout/components/MapLayer.js +5 -2
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +29 -10
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +36 -12
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +2 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +3 -1
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +2 -2
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +1 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +166 -43
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +1 -1
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +90 -13
- package/es/components/pisellFloorMapLayout/index.d.ts +2 -0
- package/es/components/pisellFloorMapLayout/index.js +2 -0
- package/es/components/pisellFloorMapLayout/locales.d.ts +6 -0
- package/es/components/pisellFloorMapLayout/locales.js +9 -3
- package/es/components/pisellFloorMapLayout/types.d.ts +9 -2
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +1 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +10 -1
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +86 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +3 -2
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +6 -3
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +1 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +21 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +23 -0
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +2 -0
- package/es/components/pisellRecordBoard/shellFrame/index.js +9 -3
- package/es/components/pisellRecordBoard/shellFrame/shellFrameFloorMap.less +25 -0
- package/es/components/pisellRecordBoard/types.d.ts +6 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +4 -1
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +18 -1
- package/es/components/pisellReservationScheduleBand/types.d.ts +4 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +187 -29
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +11 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +7 -1
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +27 -7
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +3 -1
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +14 -5
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +6 -1
- package/es/components/pisellTimeNavigator/components/ScaleLayer.js +28 -6
- package/es/components/pisellTimeNavigator/types.d.ts +11 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +39 -36
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +56 -12
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +8 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +19 -10
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +7 -5
- package/lib/components/pisellFloorMapLayout/components/MapLayer.js +3 -1
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +28 -6
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +36 -12
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +2 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +3 -1
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +1 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +143 -29
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +1 -1
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +86 -13
- package/lib/components/pisellFloorMapLayout/index.d.ts +2 -0
- package/lib/components/pisellFloorMapLayout/index.js +6 -0
- package/lib/components/pisellFloorMapLayout/locales.d.ts +6 -0
- package/lib/components/pisellFloorMapLayout/locales.js +9 -3
- package/lib/components/pisellFloorMapLayout/types.d.ts +9 -2
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +1 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.js +7 -1
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +69 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +2 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +5 -1
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +1 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +13 -5
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +23 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.js +11 -4
- package/lib/components/pisellRecordBoard/shellFrame/shellFrameFloorMap.less +25 -0
- package/lib/components/pisellRecordBoard/types.d.ts +6 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +2 -1
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +18 -1
- package/lib/components/pisellReservationScheduleBand/types.d.ts +4 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +176 -8
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +11 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +7 -1
- package/lib/components/pisellTimeNavigator/components/CursorLayer.js +24 -3
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +3 -1
- package/lib/components/pisellTimeNavigator/components/GestureLayer.js +16 -5
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +6 -1
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.js +24 -3
- package/lib/components/pisellTimeNavigator/types.d.ts +11 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +8 -0
- package/lowcode/floor-map-image-element/meta.ts +113 -0
- package/lowcode/floor-map-layout-provider/meta.ts +1 -1
- package/lowcode/pisell-floor-map-layout/meta.ts +37 -1
- package/lowcode/render-figma-style-round-table-card/meta.ts +1 -1
- package/lowcode/render-figma-style-table-card/meta.ts +1 -1
- package/package.json +3 -3
|
@@ -11,10 +11,16 @@ export interface CursorLayerProps {
|
|
|
11
11
|
fixedCenter?: boolean;
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
className?: string;
|
|
14
|
+
/** cursor-moves:允许拖指针改时间 */
|
|
15
|
+
dragInteractive?: boolean;
|
|
16
|
+
onDragPointerDown?: React.PointerEventHandler<HTMLDivElement>;
|
|
17
|
+
onDragPointerMove?: React.PointerEventHandler<HTMLDivElement>;
|
|
18
|
+
onDragPointerUp?: React.PointerEventHandler<HTMLDivElement>;
|
|
19
|
+
onDragPointerCancel?: React.PointerEventHandler<HTMLDivElement>;
|
|
14
20
|
}
|
|
15
21
|
/**
|
|
16
22
|
* 时间指示器层:竖线/横线 + 时间气泡
|
|
17
23
|
* 对齐基准为内部的竖线/横线,不是整块(气泡)的边或中心。
|
|
18
24
|
* 横向:竖线 3px;竖向:横线 2px。Realtime 态 #FF692E,浏览态 #344054
|
|
19
25
|
*/
|
|
20
|
-
export declare function CursorLayer({ orientation, value, timeFormat, locale, isRealtime, offsetPx, fixedCenter, style, className, }: CursorLayerProps): JSX.Element | null;
|
|
26
|
+
export declare function CursorLayer({ orientation, value, timeFormat, locale, isRealtime, offsetPx, fixedCenter, style, className, dragInteractive, onDragPointerDown, onDragPointerMove, onDragPointerUp, onDragPointerCancel, }: CursorLayerProps): JSX.Element | null;
|
|
@@ -45,12 +45,28 @@ function CursorLayer({
|
|
|
45
45
|
offsetPx,
|
|
46
46
|
fixedCenter,
|
|
47
47
|
style,
|
|
48
|
-
className
|
|
48
|
+
className,
|
|
49
|
+
dragInteractive,
|
|
50
|
+
onDragPointerDown,
|
|
51
|
+
onDragPointerMove,
|
|
52
|
+
onDragPointerUp,
|
|
53
|
+
onDragPointerCancel
|
|
49
54
|
}) {
|
|
50
55
|
if (value == null) return null;
|
|
51
56
|
const label = locale ? value.locale(locale).format(timeFormat) : value.format(timeFormat);
|
|
52
57
|
const isHorizontal = orientation === "horizontal";
|
|
53
58
|
const lineOffset = offsetPx - (isHorizontal ? CURSOR_LINE_WIDTH_H / 2 : CURSOR_LINE_HEIGHT_V / 2);
|
|
59
|
+
const positionStyle = fixedCenter ? style ?? {} : dragInteractive && isHorizontal ? {
|
|
60
|
+
...style,
|
|
61
|
+
left: offsetPx,
|
|
62
|
+
transform: "translateX(-50%)",
|
|
63
|
+
width: 36
|
|
64
|
+
} : dragInteractive && !isHorizontal ? {
|
|
65
|
+
...style,
|
|
66
|
+
top: offsetPx,
|
|
67
|
+
transform: "translateX(-50%) translateY(-50%)",
|
|
68
|
+
height: 40
|
|
69
|
+
} : { ...style, [isHorizontal ? "left" : "top"]: lineOffset };
|
|
54
70
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
55
71
|
"div",
|
|
56
72
|
{
|
|
@@ -59,10 +75,15 @@ function CursorLayer({
|
|
|
59
75
|
`pisell-time-navigator-cursor--${orientation}`,
|
|
60
76
|
{ "pisell-time-navigator-cursor--realtime": isRealtime },
|
|
61
77
|
{ "pisell-time-navigator-cursor--fixed": fixedCenter },
|
|
78
|
+
{ "pisell-time-navigator-cursor--draggable": dragInteractive },
|
|
62
79
|
className
|
|
63
80
|
),
|
|
64
|
-
style:
|
|
65
|
-
"aria-hidden": true
|
|
81
|
+
style: positionStyle,
|
|
82
|
+
"aria-hidden": true,
|
|
83
|
+
onPointerDown: dragInteractive ? onDragPointerDown : void 0,
|
|
84
|
+
onPointerMove: dragInteractive ? onDragPointerMove : void 0,
|
|
85
|
+
onPointerUp: dragInteractive ? onDragPointerUp : void 0,
|
|
86
|
+
onPointerCancel: dragInteractive ? onDragPointerCancel : void 0
|
|
66
87
|
},
|
|
67
88
|
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-time-navigator-cursor-line" }),
|
|
68
89
|
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-time-navigator-cursor-bubble" }, label)
|
|
@@ -23,9 +23,11 @@ export interface GestureLayerProps {
|
|
|
23
23
|
onPointerMove?: React.PointerEventHandler;
|
|
24
24
|
onPointerUp?: React.PointerEventHandler;
|
|
25
25
|
onPointerLeave?: React.PointerEventHandler;
|
|
26
|
+
/** 轴上任意指针按下(含惯性拖轴) */
|
|
27
|
+
onUserInteraction?: () => void;
|
|
26
28
|
children: React.ReactNode;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* 交互层:点击刻度跳转、键盘左右/上下 + 回车
|
|
30
32
|
*/
|
|
31
|
-
export declare function GestureLayer({ orientation, cellSizePx, axisStartMarginPx, offsetToTime, onSelectTime, isInDisabledRanges, snapToStep, stepMinutes, snapFn, scrollPosition, viewportSize, onPointerDown, onPointerMove, onPointerUp, onPointerLeave, children, }: GestureLayerProps): JSX.Element;
|
|
33
|
+
export declare function GestureLayer({ orientation, cellSizePx, axisStartMarginPx, offsetToTime, onSelectTime, isInDisabledRanges, snapToStep, stepMinutes, snapFn, scrollPosition, viewportSize, onPointerDown, onPointerMove, onPointerUp, onPointerLeave, onUserInteraction, children, }: GestureLayerProps): JSX.Element;
|
|
@@ -49,11 +49,13 @@ function GestureLayer({
|
|
|
49
49
|
onPointerMove,
|
|
50
50
|
onPointerUp,
|
|
51
51
|
onPointerLeave,
|
|
52
|
+
onUserInteraction,
|
|
52
53
|
children
|
|
53
54
|
}) {
|
|
54
55
|
const isHorizontal = orientation === "horizontal";
|
|
55
56
|
const handleClick = (0, import_react.useCallback)(
|
|
56
57
|
(e) => {
|
|
58
|
+
onUserInteraction == null ? void 0 : onUserInteraction();
|
|
57
59
|
const viewport = e.currentTarget.parentElement;
|
|
58
60
|
if (!viewport) return;
|
|
59
61
|
const vRect = viewport.getBoundingClientRect();
|
|
@@ -73,7 +75,8 @@ function GestureLayer({
|
|
|
73
75
|
onSelectTime,
|
|
74
76
|
isInDisabledRanges,
|
|
75
77
|
snapToStep,
|
|
76
|
-
snapFn
|
|
78
|
+
snapFn,
|
|
79
|
+
onUserInteraction
|
|
77
80
|
]
|
|
78
81
|
);
|
|
79
82
|
const handleKeyDown = (0, import_react.useCallback)(
|
|
@@ -84,7 +87,10 @@ function GestureLayer({
|
|
|
84
87
|
if (currentTime == null) return;
|
|
85
88
|
if (e.key === "Enter") {
|
|
86
89
|
const candidate = snapToStep ? snapFn(currentTime) : currentTime;
|
|
87
|
-
if (!isInDisabledRanges(candidate))
|
|
90
|
+
if (!isInDisabledRanges(candidate)) {
|
|
91
|
+
onUserInteraction == null ? void 0 : onUserInteraction();
|
|
92
|
+
onSelectTime(candidate);
|
|
93
|
+
}
|
|
88
94
|
e.preventDefault();
|
|
89
95
|
return;
|
|
90
96
|
}
|
|
@@ -101,7 +107,10 @@ function GestureLayer({
|
|
|
101
107
|
}
|
|
102
108
|
e.preventDefault();
|
|
103
109
|
const snapped = snapToStep ? snapFn(next) : next;
|
|
104
|
-
if (!isInDisabledRanges(snapped))
|
|
110
|
+
if (!isInDisabledRanges(snapped)) {
|
|
111
|
+
onUserInteraction == null ? void 0 : onUserInteraction();
|
|
112
|
+
onSelectTime(snapped);
|
|
113
|
+
}
|
|
105
114
|
},
|
|
106
115
|
[
|
|
107
116
|
orientation,
|
|
@@ -115,17 +124,19 @@ function GestureLayer({
|
|
|
115
124
|
scrollPosition.scrollLeft,
|
|
116
125
|
scrollPosition.scrollTop,
|
|
117
126
|
viewportSize.w,
|
|
118
|
-
viewportSize.h
|
|
127
|
+
viewportSize.h,
|
|
128
|
+
onUserInteraction
|
|
119
129
|
]
|
|
120
130
|
);
|
|
121
131
|
const handlePointerDown = (0, import_react.useCallback)(
|
|
122
132
|
(e) => {
|
|
133
|
+
onUserInteraction == null ? void 0 : onUserInteraction();
|
|
123
134
|
if (onPointerDown) {
|
|
124
135
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
125
136
|
onPointerDown(e);
|
|
126
137
|
}
|
|
127
138
|
},
|
|
128
|
-
[onPointerDown]
|
|
139
|
+
[onPointerDown, onUserInteraction]
|
|
129
140
|
);
|
|
130
141
|
const handlePointerUp = (0, import_react.useCallback)(
|
|
131
142
|
(e) => {
|
|
@@ -9,9 +9,14 @@ export interface ScaleLayerProps {
|
|
|
9
9
|
locale?: string;
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
11
|
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 横向每格宽度(px),须与 useTimeAxis 的 cellSizePx 一致;
|
|
14
|
+
* 不传时样式表默认 82(axis-moves);cursor-moves 压缩比例时必传
|
|
15
|
+
*/
|
|
16
|
+
horizontalCellSizePx?: number;
|
|
12
17
|
}
|
|
13
18
|
/**
|
|
14
19
|
* 刻度层:渲染时间刻度与标签
|
|
15
20
|
* 横向:整点数字 + 小圆点;竖向:整点/半点数字 + 分割线
|
|
16
21
|
*/
|
|
17
|
-
export declare function ScaleLayer({ orientation, ticks, stepMinutes, majorStepMinutes, timeFormat, locale, style, className, }: ScaleLayerProps): JSX.Element;
|
|
22
|
+
export declare function ScaleLayer({ orientation, ticks, stepMinutes, majorStepMinutes, timeFormat, locale, style, className, horizontalCellSizePx, }: ScaleLayerProps): JSX.Element;
|
|
@@ -42,7 +42,8 @@ function ScaleLayer({
|
|
|
42
42
|
timeFormat,
|
|
43
43
|
locale,
|
|
44
44
|
style,
|
|
45
|
-
className
|
|
45
|
+
className,
|
|
46
|
+
horizontalCellSizePx
|
|
46
47
|
}) {
|
|
47
48
|
const isHorizontal = orientation === "horizontal";
|
|
48
49
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -59,6 +60,8 @@ function ScaleLayer({
|
|
|
59
60
|
const isMajor = tick.minute() % majorStepMinutes === 0;
|
|
60
61
|
const label = isHorizontal && isMajor ? locale ? tick.locale(locale).format("H") : tick.format("H") : locale ? tick.locale(locale).format(timeFormat) : tick.format(timeFormat);
|
|
61
62
|
if (isHorizontal) {
|
|
63
|
+
const cw = horizontalCellSizePx != null && horizontalCellSizePx > 0 ? horizontalCellSizePx : void 0;
|
|
64
|
+
const compactPad = cw != null ? cw < 36 ? 2 : cw < 52 ? 6 : 10 : void 0;
|
|
62
65
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
63
66
|
"div",
|
|
64
67
|
{
|
|
@@ -67,9 +70,27 @@ function ScaleLayer({
|
|
|
67
70
|
"pisell-time-navigator-scale-cell",
|
|
68
71
|
"pisell-time-navigator-scale-cell--h",
|
|
69
72
|
{ "pisell-time-navigator-scale-cell--major": isMajor }
|
|
70
|
-
)
|
|
73
|
+
),
|
|
74
|
+
style: cw != null ? {
|
|
75
|
+
width: cw,
|
|
76
|
+
minWidth: cw,
|
|
77
|
+
maxWidth: cw,
|
|
78
|
+
flex: "0 0 auto",
|
|
79
|
+
boxSizing: "border-box",
|
|
80
|
+
...compactPad != null ? { padding: compactPad } : {}
|
|
81
|
+
} : void 0
|
|
71
82
|
},
|
|
72
|
-
isMajor && /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
isMajor && /* @__PURE__ */ import_react.default.createElement(
|
|
84
|
+
"span",
|
|
85
|
+
{
|
|
86
|
+
className: "pisell-time-navigator-scale-label",
|
|
87
|
+
style: cw != null && cw < 48 ? {
|
|
88
|
+
fontSize: Math.max(10, Math.round(cw * 0.32)),
|
|
89
|
+
lineHeight: 1.15
|
|
90
|
+
} : void 0
|
|
91
|
+
},
|
|
92
|
+
label
|
|
93
|
+
),
|
|
73
94
|
!isMajor && /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-time-navigator-scale-dot", "aria-hidden": true })
|
|
74
95
|
);
|
|
75
96
|
}
|
|
@@ -142,6 +142,17 @@ export interface PisellTimeNavigatorProps {
|
|
|
142
142
|
* 自定义 Now 按钮内容(覆盖默认文案与图标时使用)
|
|
143
143
|
*/
|
|
144
144
|
renderNowButton?: () => ReactNode;
|
|
145
|
+
/**
|
|
146
|
+
* 横向轴上与刻度槽位数一致的密度序列(任意正数,内部按最大值归一化折线高度)
|
|
147
|
+
*/
|
|
148
|
+
densitySeries?: number[];
|
|
149
|
+
/**
|
|
150
|
+
* 未传 `densitySeries` 时按 `referenceDate` 拉取;日历日变更会重新请求,过期响应丢弃
|
|
151
|
+
*/
|
|
152
|
+
loadDensity?: (params: {
|
|
153
|
+
referenceDate: Dayjs;
|
|
154
|
+
stepMinutes: number;
|
|
155
|
+
}) => Promise<number[]>;
|
|
145
156
|
/**
|
|
146
157
|
* 用户开始操作时间轴(拖轴、点刻度、键盘、拖指针等)时回调;用于上层关闭「跟随当前」等。
|
|
147
158
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ export { default as PisellRow } from './components/pisellRow';
|
|
|
129
129
|
export { default as Div } from './components/div';
|
|
130
130
|
export { default as PisellBasicGrid } from './components/PisellBasicGrid';
|
|
131
131
|
export { default as PisellScrollView } from './components/PisellScrollView';
|
|
132
|
-
export { PisellFloorMapLayout, FloorMapLayoutProvider, useFloorMapLayoutContext, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, mergeFloorMapLayoutPropsFromContext, getFigmaTableCardFromMerged, renderFigmaStyleTableCard, renderFigmaStyleRoundTableCard, getRenderItemByKindTable, getRenderItemByKindRoundTable, } from './components/pisellFloorMapLayout';
|
|
132
|
+
export { PisellFloorMapLayout, FloorMapLayoutProvider, useFloorMapLayoutContext, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, mergeFloorMapLayoutPropsFromContext, getFigmaTableCardFromMerged, renderFigmaStyleTableCard, renderFigmaStyleRoundTableCard, getRenderItemByKindTable, getRenderItemByKindRoundTable, FloorMapImageElement, FLOOR_MAP_IMAGE_ELEMENT_KIND, renderFloorMapFallbackPlaceholder, isFloorMapImageElementKind, } from './components/pisellFloorMapLayout';
|
|
133
133
|
export type { FloorMapViewConfig, FloorMapSceneElement, FloorMapCanvasNameI18n, FloorMapMergedItem, FloorMapDataSources, FloorMapItemBase, FloorMapRenderOptions, } from './components/pisellFloorMapLayout';
|
|
134
134
|
/** PisellLayouts 命名空间另含 PisellFloorMapLayoutProps 等;平面图场景细粒度类型见上方 */
|
|
135
135
|
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
package/lib/index.js
CHANGED
|
@@ -76,7 +76,9 @@ __export(src_exports, {
|
|
|
76
76
|
Dropdown: () => import_dropdown.default,
|
|
77
77
|
EMPTY_FLOOR_MAP_LAYOUT_CONTEXT: () => import_pisellFloorMapLayout.EMPTY_FLOOR_MAP_LAYOUT_CONTEXT,
|
|
78
78
|
Empty: () => import_antd.Empty,
|
|
79
|
+
FLOOR_MAP_IMAGE_ELEMENT_KIND: () => import_pisellFloorMapLayout.FLOOR_MAP_IMAGE_ELEMENT_KIND,
|
|
79
80
|
Filter: () => import_filter.default,
|
|
81
|
+
FloorMapImageElement: () => import_pisellFloorMapLayout.FloorMapImageElement,
|
|
80
82
|
FloorMapLayoutProvider: () => import_pisellFloorMapLayout.FloorMapLayoutProvider,
|
|
81
83
|
Form: () => import_form.default,
|
|
82
84
|
FormGroup: () => import_group.default,
|
|
@@ -267,6 +269,7 @@ __export(src_exports, {
|
|
|
267
269
|
getRenderItemByKindRoundTable: () => import_pisellFloorMapLayout.getRenderItemByKindRoundTable,
|
|
268
270
|
getRenderItemByKindTable: () => import_pisellFloorMapLayout.getRenderItemByKindTable,
|
|
269
271
|
globalConfig: () => import_context.globalConfig,
|
|
272
|
+
isFloorMapImageElementKind: () => import_pisellFloorMapLayout.isFloorMapImageElementKind,
|
|
270
273
|
loginAndRegister: () => import_login_and_register.default,
|
|
271
274
|
mergeFloorMapLayoutPropsFromContext: () => import_pisellFloorMapLayout.mergeFloorMapLayoutPropsFromContext,
|
|
272
275
|
message: () => import_antd.message,
|
|
@@ -274,6 +277,7 @@ __export(src_exports, {
|
|
|
274
277
|
pisellTimeNavigatorLocales: () => import_pisellTimeNavigator2.pisellTimeNavigatorLocales,
|
|
275
278
|
renderFigmaStyleRoundTableCard: () => import_pisellFloorMapLayout.renderFigmaStyleRoundTableCard,
|
|
276
279
|
renderFigmaStyleTableCard: () => import_pisellFloorMapLayout.renderFigmaStyleTableCard,
|
|
280
|
+
renderFloorMapFallbackPlaceholder: () => import_pisellFloorMapLayout.renderFloorMapFallbackPlaceholder,
|
|
277
281
|
useFloorMapLayoutContext: () => import_pisellFloorMapLayout.useFloorMapLayoutContext,
|
|
278
282
|
usePisellConfig: () => import_usePisellConfig.default,
|
|
279
283
|
useRecordBoardContext: () => import_pisellRecordBoard.useRecordBoardContext,
|
|
@@ -532,7 +536,9 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
532
536
|
Dropdown,
|
|
533
537
|
EMPTY_FLOOR_MAP_LAYOUT_CONTEXT,
|
|
534
538
|
Empty,
|
|
539
|
+
FLOOR_MAP_IMAGE_ELEMENT_KIND,
|
|
535
540
|
Filter,
|
|
541
|
+
FloorMapImageElement,
|
|
536
542
|
FloorMapLayoutProvider,
|
|
537
543
|
Form,
|
|
538
544
|
FormGroup,
|
|
@@ -723,6 +729,7 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
723
729
|
getRenderItemByKindRoundTable,
|
|
724
730
|
getRenderItemByKindTable,
|
|
725
731
|
globalConfig,
|
|
732
|
+
isFloorMapImageElementKind,
|
|
726
733
|
loginAndRegister,
|
|
727
734
|
mergeFloorMapLayoutPropsFromContext,
|
|
728
735
|
message,
|
|
@@ -730,6 +737,7 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
730
737
|
pisellTimeNavigatorLocales,
|
|
731
738
|
renderFigmaStyleRoundTableCard,
|
|
732
739
|
renderFigmaStyleTableCard,
|
|
740
|
+
renderFloorMapFallbackPlaceholder,
|
|
733
741
|
useFloorMapLayoutContext,
|
|
734
742
|
usePisellConfig,
|
|
735
743
|
useRecordBoardContext,
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const FloorMapImageElementMeta: ComponentMetadata = {
|
|
5
|
+
"componentName": "FloorMapImageElement",
|
|
6
|
+
"title": "FloorMapImageElement",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@pisell/materials",
|
|
12
|
+
"version": "1.0.1063",
|
|
13
|
+
"exportName": "FloorMapImageElement",
|
|
14
|
+
"main": "src\\index.tsx",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "imageUrl",
|
|
25
|
+
"zh-CN": "imageUrl"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "imageUrl",
|
|
29
|
+
"setter": {
|
|
30
|
+
"componentName": "MixedSetter",
|
|
31
|
+
"props": {
|
|
32
|
+
"setters": [
|
|
33
|
+
{
|
|
34
|
+
"componentName": "ObjectSetter",
|
|
35
|
+
"props": {
|
|
36
|
+
"config": {
|
|
37
|
+
"extraSetter": {
|
|
38
|
+
"componentName": "MixedSetter",
|
|
39
|
+
"isRequired": false,
|
|
40
|
+
"props": {}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"isRequired": false,
|
|
45
|
+
"initialValue": {}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"componentName": "StringSetter",
|
|
49
|
+
"isRequired": false,
|
|
50
|
+
"initialValue": ""
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"title": {
|
|
58
|
+
"label": {
|
|
59
|
+
"type": "i18n",
|
|
60
|
+
"en-US": "name",
|
|
61
|
+
"zh-CN": "name"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"name": "name",
|
|
65
|
+
"setter": {
|
|
66
|
+
"componentName": "MixedSetter",
|
|
67
|
+
"props": {
|
|
68
|
+
"setters": [
|
|
69
|
+
{
|
|
70
|
+
"componentName": "ObjectSetter",
|
|
71
|
+
"props": {
|
|
72
|
+
"config": {
|
|
73
|
+
"extraSetter": {
|
|
74
|
+
"componentName": "MixedSetter",
|
|
75
|
+
"isRequired": false,
|
|
76
|
+
"props": {}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"isRequired": false,
|
|
81
|
+
"initialValue": {}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"componentName": "StringSetter",
|
|
85
|
+
"isRequired": false,
|
|
86
|
+
"initialValue": ""
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"supports": {
|
|
94
|
+
"style": true
|
|
95
|
+
},
|
|
96
|
+
"component": {}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const snippets: Snippet[] = [
|
|
100
|
+
{
|
|
101
|
+
"title": "FloorMapImageElement",
|
|
102
|
+
"screenshot": "",
|
|
103
|
+
"schema": {
|
|
104
|
+
"componentName": "FloorMapImageElement",
|
|
105
|
+
"props": {}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
export default {
|
|
111
|
+
...FloorMapImageElementMeta,
|
|
112
|
+
snippets
|
|
113
|
+
};
|
|
@@ -9,7 +9,7 @@ const FloorMapLayoutProviderMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1063",
|
|
13
13
|
"exportName": "FloorMapLayoutProvider",
|
|
14
14
|
"main": "src\\index.tsx",
|
|
15
15
|
"destructuring": true,
|
|
@@ -9,7 +9,7 @@ const PisellFloorMapLayoutMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1063",
|
|
13
13
|
"exportName": "PisellFloorMapLayout",
|
|
14
14
|
"main": "src\\index.tsx",
|
|
15
15
|
"destructuring": true,
|
|
@@ -1473,6 +1473,42 @@ const PisellFloorMapLayoutMeta: ComponentMetadata = {
|
|
|
1473
1473
|
]
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"title": {
|
|
1479
|
+
"label": {
|
|
1480
|
+
"type": "i18n",
|
|
1481
|
+
"en-US": "showGridToggle",
|
|
1482
|
+
"zh-CN": "showGridToggle"
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
"name": "showGridToggle",
|
|
1486
|
+
"setter": {
|
|
1487
|
+
"componentName": "MixedSetter",
|
|
1488
|
+
"props": {
|
|
1489
|
+
"setters": [
|
|
1490
|
+
{
|
|
1491
|
+
"componentName": "ObjectSetter",
|
|
1492
|
+
"props": {
|
|
1493
|
+
"config": {
|
|
1494
|
+
"extraSetter": {
|
|
1495
|
+
"componentName": "MixedSetter",
|
|
1496
|
+
"isRequired": false,
|
|
1497
|
+
"props": {}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
"isRequired": false,
|
|
1502
|
+
"initialValue": {}
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"componentName": "BoolSetter",
|
|
1506
|
+
"isRequired": false,
|
|
1507
|
+
"initialValue": false
|
|
1508
|
+
}
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1476
1512
|
}
|
|
1477
1513
|
],
|
|
1478
1514
|
"extraSetter": {
|
|
@@ -9,7 +9,7 @@ const renderFigmaStyleRoundTableCardMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1063",
|
|
13
13
|
"exportName": "renderFigmaStyleRoundTableCard",
|
|
14
14
|
"main": "src\\index.tsx",
|
|
15
15
|
"destructuring": true,
|
|
@@ -9,7 +9,7 @@ const renderFigmaStyleTableCardMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1063",
|
|
13
13
|
"exportName": "renderFigmaStyleTableCard",
|
|
14
14
|
"main": "src\\index.tsx",
|
|
15
15
|
"destructuring": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1064",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"swiper": "^8.4.7",
|
|
91
91
|
"antd-mobile": "^5.38.1",
|
|
92
92
|
"vod-js-sdk-v6": "^1.4.11",
|
|
93
|
+
"@pisell/date-picker": "1.0.141",
|
|
93
94
|
"@pisell/icon": "0.0.10",
|
|
94
|
-
"@pisell/utils": "1.0.
|
|
95
|
-
"@pisell/date-picker": "1.0.139"
|
|
95
|
+
"@pisell/utils": "1.0.68"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"react": "^18.0.0",
|