@pisell/materials 6.11.72 → 6.11.74
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 +1 -1
- package/build/lowcode/preview.js +153 -153
- package/build/lowcode/render/default/view.js +22 -22
- package/build/lowcode/view.js +21 -21
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +3 -2
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.js +3 -2
- package/package.json +3 -3
- package/es/components/filter/components/Dropdown/index.d.ts +0 -10
- package/es/components/filter/components/Dropdown/types.d.ts +0 -15
- package/es/components/filter/components/FilterButton/index.d.ts +0 -5
- package/es/components/filter/components/FilterButton/types.d.ts +0 -29
- package/es/components/filter/components/FilterItem/index.d.ts +0 -7
- package/es/components/pisellFilter/index.d.ts +0 -3
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -15
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -57
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +0 -8
- package/es/components/pisellMobileDateRangePicker/index.d.ts +0 -2
- package/es/components/pisellMobileDateRangePicker/types.d.ts +0 -28
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
- package/es/components/pisellRecordBoard/types.d.ts +0 -840
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/es/components/pisellReservationScheduleBand/index.d.ts +0 -3
- package/es/components/pisellReservationScheduleBand/types.d.ts +0 -64
- package/es/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +0 -9
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -29
- package/es/components/pisellTimeNavigator/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/types.d.ts +0 -175
- package/es/components/pisellTimeNavigator/utils/index.d.ts +0 -79
- package/es/components/select/index.d.ts +0 -9
- package/es/index.d.ts +0 -268
- package/es/locales/en-US.d.ts +0 -565
- package/es/locales/ja.d.ts +0 -533
- package/es/locales/pt.d.ts +0 -533
- package/es/locales/zh-CN.d.ts +0 -560
- package/es/locales/zh-TW.d.ts +0 -560
- package/lib/components/filter/components/Dropdown/index.d.ts +0 -10
- package/lib/components/filter/components/Dropdown/types.d.ts +0 -15
- package/lib/components/filter/components/FilterButton/index.d.ts +0 -5
- package/lib/components/filter/components/FilterButton/types.d.ts +0 -29
- package/lib/components/filter/components/FilterItem/index.d.ts +0 -7
- package/lib/components/pisellFilter/index.d.ts +0 -3
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -15
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -57
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +0 -8
- package/lib/components/pisellMobileDateRangePicker/index.d.ts +0 -2
- package/lib/components/pisellMobileDateRangePicker/types.d.ts +0 -28
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
- package/lib/components/pisellRecordBoard/types.d.ts +0 -840
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/lib/components/pisellReservationScheduleBand/index.d.ts +0 -3
- package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -64
- package/lib/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +0 -9
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -29
- package/lib/components/pisellTimeNavigator/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/types.d.ts +0 -175
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +0 -79
- package/lib/components/select/index.d.ts +0 -9
- package/lib/index.d.ts +0 -268
- package/lib/locales/en-US.d.ts +0 -565
- package/lib/locales/ja.d.ts +0 -533
- package/lib/locales/pt.d.ts +0 -533
- package/lib/locales/zh-CN.d.ts +0 -560
- package/lib/locales/zh-TW.d.ts +0 -560
|
@@ -13,6 +13,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
/**
|
|
14
14
|
* 平面图 FloorMapViewConfig:与 props 同步时的规范化、以及草稿与持久化配置是否一致的比较
|
|
15
15
|
*/
|
|
16
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
16
17
|
import isEqual from 'lodash/isEqual';
|
|
17
18
|
import { FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND } from "../types";
|
|
18
19
|
/**
|
|
@@ -22,7 +23,7 @@ import { FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND } from "../t
|
|
|
22
23
|
export function normalizeFloorMapViewConfigFromProp(floorMapConfigProp) {
|
|
23
24
|
var _src$canCreate, _src$canEdit;
|
|
24
25
|
var src = floorMapConfigProp;
|
|
25
|
-
var base = src.canvasUi != null ?
|
|
26
|
+
var base = src.canvasUi != null ? cloneDeep(src) : cloneDeep(_objectSpread(_objectSpread({}, src), {}, {
|
|
26
27
|
canvasUi: {
|
|
27
28
|
canCreate: (_src$canCreate = src.canCreate) !== null && _src$canCreate !== void 0 ? _src$canCreate : false,
|
|
28
29
|
canEdit: (_src$canEdit = src.canEdit) !== null && _src$canEdit !== void 0 ? _src$canEdit : false
|
|
@@ -77,7 +78,7 @@ export function normalizeFloorMapViewConfigFromProp(floorMapConfigProp) {
|
|
|
77
78
|
}
|
|
78
79
|
function sortStableForCompare(config) {
|
|
79
80
|
var _c$sceneElements, _c$elementKinds, _c$elementKindCategor, _c$edges;
|
|
80
|
-
var c =
|
|
81
|
+
var c = cloneDeep(config);
|
|
81
82
|
c.canvases = _toConsumableArray(c.canvases).sort(function (a, b) {
|
|
82
83
|
return String(a.id).localeCompare(String(b.id));
|
|
83
84
|
});
|
|
@@ -33,11 +33,12 @@ __export(floorMapViewConfigDiff_exports, {
|
|
|
33
33
|
normalizeFloorMapViewConfigFromProp: () => normalizeFloorMapViewConfigFromProp
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(floorMapViewConfigDiff_exports);
|
|
36
|
+
var import_cloneDeep = __toESM(require("lodash/cloneDeep"));
|
|
36
37
|
var import_isEqual = __toESM(require("lodash/isEqual"));
|
|
37
38
|
var import_types = require("../types");
|
|
38
39
|
function normalizeFloorMapViewConfigFromProp(floorMapConfigProp) {
|
|
39
40
|
const src = floorMapConfigProp;
|
|
40
|
-
const base = src.canvasUi != null ?
|
|
41
|
+
const base = src.canvasUi != null ? (0, import_cloneDeep.default)(src) : (0, import_cloneDeep.default)({
|
|
41
42
|
...src,
|
|
42
43
|
canvasUi: {
|
|
43
44
|
canCreate: src.canCreate ?? false,
|
|
@@ -94,7 +95,7 @@ function normalizeFloorMapViewConfigFromProp(floorMapConfigProp) {
|
|
|
94
95
|
}
|
|
95
96
|
function sortStableForCompare(config) {
|
|
96
97
|
var _a, _b, _c;
|
|
97
|
-
const c =
|
|
98
|
+
const c = (0, import_cloneDeep.default)(config);
|
|
98
99
|
c.canvases = [...c.canvases].sort(
|
|
99
100
|
(a, b) => String(a.id).localeCompare(String(b.id))
|
|
100
101
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.74",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"antd-mobile": "^5.38.1",
|
|
100
100
|
"vod-js-sdk-v6": "^1.4.11",
|
|
101
101
|
"@pisell/date-picker": "3.0.8",
|
|
102
|
-
"@pisell/
|
|
103
|
-
"@pisell/
|
|
102
|
+
"@pisell/utils": "3.0.2",
|
|
103
|
+
"@pisell/icon": "0.0.11"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": "^18.0.0",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { DropdownProps } from './types';
|
|
4
|
-
declare const Dropdown: React.FC<DropdownProps & {
|
|
5
|
-
onOpen: () => void;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
renderItem?: (item: any, otherProps?: any) => React.ReactNode;
|
|
8
|
-
className?: string;
|
|
9
|
-
}>;
|
|
10
|
-
export default Dropdown;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FilterItemProps } from '../../types';
|
|
2
|
-
export interface DropdownProps {
|
|
3
|
-
quickFilter: FilterItemProps[];
|
|
4
|
-
otherFilter: FilterItemProps[];
|
|
5
|
-
hiddenQuickFilter?: boolean;
|
|
6
|
-
hiddenOtherFilter?: boolean;
|
|
7
|
-
onChange: (list: {
|
|
8
|
-
quickFilter: FilterItemProps[];
|
|
9
|
-
otherFilter: FilterItemProps[];
|
|
10
|
-
}) => void;
|
|
11
|
-
quickFilterMaxLength: number;
|
|
12
|
-
formFiltersPrefix: string;
|
|
13
|
-
/** 手机窄屏:筛选项下拉禁用搜索、避免自动聚焦 */
|
|
14
|
-
phoneLayout?: boolean;
|
|
15
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FilterItemProps } from '../../types';
|
|
3
|
-
export declare type FilterValueType = {
|
|
4
|
-
quickFilter: FilterItemProps[];
|
|
5
|
-
otherFilter: FilterItemProps[];
|
|
6
|
-
/** 筛选项表单值,字段名 -> 值,与 Form 的 values 一致 */
|
|
7
|
-
values?: Record<string, any>;
|
|
8
|
-
};
|
|
9
|
-
export declare type FilterListProps = {
|
|
10
|
-
value?: FilterValueType;
|
|
11
|
-
hiddenQuickFilter?: boolean;
|
|
12
|
-
hiddenOtherFilter?: boolean;
|
|
13
|
-
onChange?: (value: FilterValueType) => void;
|
|
14
|
-
quickFilterMaxLength: number;
|
|
15
|
-
formFiltersPrefix: string;
|
|
16
|
-
renderItem?: (item: any, otherProps?: any) => React.ReactNode;
|
|
17
|
-
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
18
|
-
/** 筛选按钮尺寸,与 antd Button size 一致 */
|
|
19
|
-
size?: 'small' | 'middle' | 'large';
|
|
20
|
-
/** 筛选触发按钮的 className,用于定制样式(如与设计系统对齐) */
|
|
21
|
-
buttonClassName?: string;
|
|
22
|
-
/** 筛选按钮文案,不传则使用 materials 内置多语言 */
|
|
23
|
-
buttonText?: string;
|
|
24
|
-
/**
|
|
25
|
-
* 手机窄屏布局:筛选项内下拉禁用搜索框,并避免打开时自动聚焦。
|
|
26
|
-
* RecordBoard compact-narrow / 预约手机 Table 等场景传入。
|
|
27
|
-
*/
|
|
28
|
-
phoneLayout?: boolean;
|
|
29
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare type FloorMapAppearanceMode = 'light' | 'dark';
|
|
2
|
-
export interface FloorMapAppearanceTokens {
|
|
3
|
-
readonly mode: FloorMapAppearanceMode;
|
|
4
|
-
/**
|
|
5
|
-
* 外观模式提供的画布背景兜底色。
|
|
6
|
-
* 若调用方显式传入 `mapLayer.backgroundColor`,应以显式背景色为准。
|
|
7
|
-
*/
|
|
8
|
-
readonly fallbackCanvasBackgroundColor: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 按外观模式返回 floorMap 画布背景 token。
|
|
12
|
-
* 当前仅承载通用画布背景兜底色,不包含业务壳层颜色;
|
|
13
|
-
* 渲染层应先尊重显式 `mapLayer.backgroundColor`,再回退到这里的 token。
|
|
14
|
-
*/
|
|
15
|
-
export declare function getFloorMapAppearanceTokens(mode: FloorMapAppearanceMode): FloorMapAppearanceTokens;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ViewControls - 内置视图控制:默认仅缩放;可选复位、区域定位、全屏等
|
|
3
|
-
* 平面图(dockChrome):Dock 折叠入口 + 展开条(含业务插槽、空闲自动收起)
|
|
4
|
-
* 非平面图:单条横栏,缩放与工具始终同排(无 Menu 折叠)
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { FloorMapControlsConfig } from '../types';
|
|
8
|
-
import './ViewControls.less';
|
|
9
|
-
/** 从 react-zoom-pan-pinch 拿到的控制 API(由主组件传入) */
|
|
10
|
-
export interface ViewControlsApi {
|
|
11
|
-
zoomIn: () => void;
|
|
12
|
-
zoomOut: () => void;
|
|
13
|
-
resetTransform: () => void;
|
|
14
|
-
/** 区域定位,可能由主组件基于 items 计算后封装 */
|
|
15
|
-
fitBounds?: () => void;
|
|
16
|
-
/** 切换全屏(requestFullscreen / exitFullscreen) */
|
|
17
|
-
toggleFullscreen?: () => void;
|
|
18
|
-
}
|
|
19
|
-
export interface ViewControlsProps {
|
|
20
|
-
/** 控制 API */
|
|
21
|
-
api: ViewControlsApi;
|
|
22
|
-
/** 显隐配置 */
|
|
23
|
-
config?: FloorMapControlsConfig;
|
|
24
|
-
/** 当前缩放比例(1 = 100%),用于 Stepper 展示 */
|
|
25
|
-
scale?: number;
|
|
26
|
-
/** 当前是否处于全屏 */
|
|
27
|
-
isFullscreen?: boolean;
|
|
28
|
-
/** 当前 transform 是否处于「适配视口」结果(用于按钮激活态) */
|
|
29
|
-
fitBoundsActive?: boolean;
|
|
30
|
-
className?: string;
|
|
31
|
-
/** 与 config.showGridToggle 联用:当前画布是否显示网格 */
|
|
32
|
-
mapGridVisible?: boolean;
|
|
33
|
-
/** 切换当前画布 draft 的 mapLayer.showGrid */
|
|
34
|
-
onToggleMapGrid?: () => void;
|
|
35
|
-
/**
|
|
36
|
-
* 视口锁定态:true 时显示「已锁定」图标,并禁用所有改变视角的按钮
|
|
37
|
-
* (zoom +/- / reset / fitBounds)。pan / wheel / pinch 由调用方在 TransformWrapper 上同步关闭。
|
|
38
|
-
*/
|
|
39
|
-
viewportLocked?: boolean;
|
|
40
|
-
/** 切换视口锁定;未传时不展示锁定按钮 */
|
|
41
|
-
onToggleViewportLock?: () => void;
|
|
42
|
-
/**
|
|
43
|
-
* 平面图 Dock:圆角浅底样式,默认折叠为单入口;展开后含缩放、工具、全屏与 dockExpandedTrailing
|
|
44
|
-
*/
|
|
45
|
-
dockChrome?: boolean;
|
|
46
|
-
/** Dock 展开区内、与缩放/网格等按钮平级的业务工具按钮 */
|
|
47
|
-
dockExpandedToolButtons?: React.ReactNode;
|
|
48
|
-
/** Dock 展开区最右侧业务插槽(如「编辑画布」) */
|
|
49
|
-
dockExpandedTrailing?: React.ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Dock 展开后无操作自动收起(毫秒);0 表示不自动收起
|
|
52
|
-
* @default 10000
|
|
53
|
-
*/
|
|
54
|
-
autoCollapseDockMs?: number;
|
|
55
|
-
}
|
|
56
|
-
export declare function ViewControls(props: ViewControlsProps): JSX.Element | null;
|
|
57
|
-
export default ViewControls;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PisellMobileDateRangePickerProps } from './types';
|
|
3
|
-
import 'antd-mobile/es/global/global.css';
|
|
4
|
-
import './PisellMobileDateRangePicker.less';
|
|
5
|
-
/**
|
|
6
|
-
* antd-mobile CalendarPicker(range)薄封装:受控 value/onChange 与 RecordBoard 快筛 dayjs[] 对齐。
|
|
7
|
-
*/
|
|
8
|
-
export declare const PisellMobileDateRangePicker: React.FC<PisellMobileDateRangePickerProps>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from 'dayjs';
|
|
2
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import type { CalendarPickerProps } from 'antd-mobile';
|
|
4
|
-
/** toolbar:顶栏快筛 32px;filter:Filter 弹层内与 Select 对齐的 48px 触发器 */
|
|
5
|
-
export declare type PisellMobileDateRangePickerVariant = 'toolbar' | 'filter';
|
|
6
|
-
export declare const PISELL_MOBILE_DATE_RANGE_PICKER_FILTER_POPUP_CLASS = "pisell-mobile-date-range-picker__popup";
|
|
7
|
-
export interface PisellMobileDateRangePickerProps {
|
|
8
|
-
value?: unknown;
|
|
9
|
-
onChange?: (value: [Dayjs, Dayjs] | undefined) => void;
|
|
10
|
-
/** 展示格式,默认 DD/MM/YYYY */
|
|
11
|
-
format?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
title?: ReactNode;
|
|
16
|
-
confirmText?: string;
|
|
17
|
-
allowClear?: boolean;
|
|
18
|
-
min?: Date;
|
|
19
|
-
max?: Date;
|
|
20
|
-
/** 默认 toolbar;filter 用于手机 Filter 弹层 */
|
|
21
|
-
variant?: PisellMobileDateRangePickerVariant;
|
|
22
|
-
getContainer?: CalendarPickerProps['getContainer'];
|
|
23
|
-
popupClassName?: CalendarPickerProps['popupClassName'];
|
|
24
|
-
popupStyle?: CalendarPickerProps['popupStyle'];
|
|
25
|
-
/** Filter 弹层:日历打开时通知外层保持 Popover 不收起 */
|
|
26
|
-
onOpen?: () => void;
|
|
27
|
-
onClose?: () => void;
|
|
28
|
-
}
|
package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ResourceWallViewportToolbarProps {
|
|
3
|
-
now: Date;
|
|
4
|
-
appearanceMode: 'light' | 'dark';
|
|
5
|
-
onAppearanceModeChange: (m: 'light' | 'dark') => void;
|
|
6
|
-
pseudoFullscreen: boolean;
|
|
7
|
-
onTogglePseudoFullscreen: () => void;
|
|
8
|
-
onOpenControlPanel: () => void;
|
|
9
|
-
headerBorder: string;
|
|
10
|
-
headerBg: string;
|
|
11
|
-
clockColor: string;
|
|
12
|
-
mutedText: string;
|
|
13
|
-
toolbarBtnBorder: string;
|
|
14
|
-
toolbarBtnBg: string;
|
|
15
|
-
toolbarBtnBgActive: string;
|
|
16
|
-
}
|
|
17
|
-
/** 资源墙顶栏:时钟、浅深切换、伪全屏、控制台入口 */
|
|
18
|
-
export declare const ResourceWallViewportToolbar: React.FC<ResourceWallViewportToolbarProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RecordBoardToolBarProps as ToolBarPropsType } from '../../types';
|
|
3
|
-
import './ToolBarFilter.less';
|
|
4
|
-
import './recordBoardToolbar.less';
|
|
5
|
-
/**
|
|
6
|
-
* RecordBoard 下的工具栏:使用 PisellToolBar。
|
|
7
|
-
* 左侧默认 PisellFind(inline);右侧默认 PisellFilter。通过 childComponentProps.toolBar.search / toolBar.filter 为对象时透传对应组件 props,为 false 时不渲染。
|
|
8
|
-
* 可透传 topLeft、topRight、bottomLeft、bottomRight、tabs。
|
|
9
|
-
*/
|
|
10
|
-
declare const RecordBoardToolBar: React.FC<RecordBoardToolBarProps>;
|
|
11
|
-
export declare type RecordBoardToolBarProps = ToolBarPropsType;
|
|
12
|
-
export default RecordBoardToolBar;
|