@pisell/materials 1.0.1091 → 1.0.1093
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +22 -31
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +9 -2
- package/es/components/pisellRecordBoard/index.d.ts +3 -1
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +6 -1
- package/es/components/pisellRecordBoard/types.d.ts +3 -1
- package/es/components/walletCard/index.js +7 -2
- package/es/index.d.ts +6 -4
- package/es/index.js +3 -1
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +22 -31
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +9 -2
- package/lib/components/pisellRecordBoard/index.d.ts +3 -1
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +6 -1
- package/lib/components/pisellRecordBoard/types.d.ts +3 -1
- package/lib/components/walletCard/index.js +7 -2
- package/lib/index.d.ts +6 -4
- package/lib/index.js +4 -0
- package/package.json +3 -3
|
@@ -5,15 +5,12 @@ import { isFloorPlanDuplicateCodeError, isHttpNotFoundError, isShopFloorPlanNotF
|
|
|
5
5
|
import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
|
|
6
6
|
//#region src/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.ts
|
|
7
7
|
const _excluded = ["buildDefaultPostBody"];
|
|
8
|
-
function fetchShopFloorPlanByCodeResponse(_x, _x2, _x3) {
|
|
8
|
+
function fetchShopFloorPlanByCodeResponse(_x, _x2, _x3, _x4) {
|
|
9
9
|
return _fetchShopFloorPlanByCodeResponse.apply(this, arguments);
|
|
10
10
|
}
|
|
11
11
|
function _fetchShopFloorPlanByCodeResponse() {
|
|
12
|
-
_fetchShopFloorPlanByCodeResponse = _asyncToGenerator(function* (http, trimmedCode, subscribe) {
|
|
13
|
-
const res = yield http.get(`/shop/schedule/floor-plan/code/${encodeURIComponent(trimmedCode)}`, {}, _objectSpread2({
|
|
14
|
-
fullResult: true,
|
|
15
|
-
isShopApi: true
|
|
16
|
-
}, (subscribe === null || subscribe === void 0 ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== "" ? _objectSpread2({
|
|
12
|
+
_fetchShopFloorPlanByCodeResponse = _asyncToGenerator(function* (http, trimmedCode, useShopApi, subscribe) {
|
|
13
|
+
const res = yield http.get(`/shop/schedule/floor-plan/code/${encodeURIComponent(trimmedCode)}`, {}, _objectSpread2(_objectSpread2({ fullResult: true }, useShopApi ? { isShopApi: true } : {}), (subscribe === null || subscribe === void 0 ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== "" ? _objectSpread2({
|
|
17
14
|
abort: true,
|
|
18
15
|
osServer: subscribe.osServer !== false,
|
|
19
16
|
subscriberId: subscribe.subscriberId
|
|
@@ -26,62 +23,62 @@ function _fetchShopFloorPlanByCodeResponse() {
|
|
|
26
23
|
return _fetchShopFloorPlanByCodeResponse.apply(this, arguments);
|
|
27
24
|
}
|
|
28
25
|
function createShopFloorPlanClient(options) {
|
|
29
|
-
var _options$saveFailedMe;
|
|
30
26
|
const { http } = options;
|
|
31
|
-
const
|
|
32
|
-
|
|
27
|
+
const useShopApi = options.useShopApi !== false;
|
|
28
|
+
const resolveSaveFailedMessage = () => {
|
|
29
|
+
var _ref, _options$getSaveFaile, _options$getSaveFaile2;
|
|
30
|
+
return (_ref = (_options$getSaveFaile = (_options$getSaveFaile2 = options.getSaveFailedMessage) === null || _options$getSaveFaile2 === void 0 ? void 0 : _options$getSaveFaile2.call(options)) !== null && _options$getSaveFaile !== void 0 ? _options$getSaveFaile : options.saveFailedMessage) !== null && _ref !== void 0 ? _ref : "Failed to save floor plan";
|
|
31
|
+
};
|
|
32
|
+
function postShopFloorPlan(_x5) {
|
|
33
33
|
return _postShopFloorPlan.apply(this, arguments);
|
|
34
34
|
}
|
|
35
35
|
function _postShopFloorPlan() {
|
|
36
36
|
_postShopFloorPlan = _asyncToGenerator(function* (body) {
|
|
37
37
|
var _data;
|
|
38
|
-
const res = yield http.post("/shop/schedule/floor-plan", body, {
|
|
39
|
-
fullResult: true,
|
|
40
|
-
isShopApi: true
|
|
41
|
-
});
|
|
38
|
+
const res = yield http.post("/shop/schedule/floor-plan", body, _objectSpread2({ fullResult: true }, useShopApi ? { isShopApi: true } : {}));
|
|
42
39
|
if ((res === null || res === void 0 ? void 0 : res.code) === 200 || (res === null || res === void 0 ? void 0 : res.status) === true || (res === null || res === void 0 || (_data = res.data) === null || _data === void 0 ? void 0 : _data.status) === true) {
|
|
43
40
|
const detail = pickFloorPlanDetail(res);
|
|
44
41
|
if (detail) return detail;
|
|
45
|
-
throw new Error(
|
|
42
|
+
throw new Error(resolveSaveFailedMessage());
|
|
46
43
|
}
|
|
47
44
|
if ((res === null || res === void 0 ? void 0 : res.code) === 5001) {
|
|
48
45
|
const err = new Error(typeof res.message === "string" && res.message.trim() ? res.message : "Floor plan code already exists");
|
|
49
46
|
Object.assign(err, { [SHOP_FLOOR_PLAN_DUPLICATE_CODE]: true });
|
|
50
47
|
throw err;
|
|
51
48
|
}
|
|
52
|
-
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) ||
|
|
49
|
+
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) || resolveSaveFailedMessage();
|
|
53
50
|
throw new Error(msg);
|
|
54
51
|
});
|
|
55
52
|
return _postShopFloorPlan.apply(this, arguments);
|
|
56
53
|
}
|
|
57
|
-
function ensureShopFloorPlanByCode(
|
|
54
|
+
function ensureShopFloorPlanByCode(_x6, _x7) {
|
|
58
55
|
return _ensureShopFloorPlanByCode.apply(this, arguments);
|
|
59
56
|
}
|
|
60
57
|
function _ensureShopFloorPlanByCode() {
|
|
61
58
|
_ensureShopFloorPlanByCode = _asyncToGenerator(function* (code, subscribe) {
|
|
62
59
|
const trimmed = code === null || code === void 0 ? void 0 : code.trim();
|
|
63
60
|
if (!trimmed) return null;
|
|
64
|
-
const
|
|
61
|
+
const _ref2 = subscribe !== null && subscribe !== void 0 ? subscribe : {}, { buildDefaultPostBody } = _ref2, subscribeRest = _objectWithoutProperties(_ref2, _excluded);
|
|
65
62
|
const postCreateOrRecover = function() {
|
|
66
|
-
var
|
|
63
|
+
var _ref3 = _asyncToGenerator(function* () {
|
|
67
64
|
if (!buildDefaultPostBody) return null;
|
|
68
65
|
const body = buildDefaultPostBody(trimmed);
|
|
69
66
|
try {
|
|
70
67
|
return yield postShopFloorPlan(body);
|
|
71
68
|
} catch (e) {
|
|
72
69
|
if (isFloorPlanDuplicateCodeError(e)) {
|
|
73
|
-
const { detail: again } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, subscribeRest);
|
|
70
|
+
const { detail: again } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, useShopApi, subscribeRest);
|
|
74
71
|
return again;
|
|
75
72
|
}
|
|
76
73
|
throw e;
|
|
77
74
|
}
|
|
78
75
|
});
|
|
79
76
|
return function postCreateOrRecover() {
|
|
80
|
-
return
|
|
77
|
+
return _ref3.apply(this, arguments);
|
|
81
78
|
};
|
|
82
79
|
}();
|
|
83
80
|
try {
|
|
84
|
-
const { res, detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, subscribeRest);
|
|
81
|
+
const { res, detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, useShopApi, subscribeRest);
|
|
85
82
|
if (detail) return detail;
|
|
86
83
|
if (isShopFloorPlanNotFoundResponse(res)) return yield postCreateOrRecover();
|
|
87
84
|
return null;
|
|
@@ -96,17 +93,14 @@ function createShopFloorPlanClient(options) {
|
|
|
96
93
|
unsubscribeShopFloorPlanCodeQuery(subscriberId) {
|
|
97
94
|
return _asyncToGenerator(function* () {
|
|
98
95
|
if (!subscriberId) return;
|
|
99
|
-
yield http.get("/shop/schedule/floor-plan/code/unsubscribe", { subscriberId }, {
|
|
100
|
-
isShopApi: true,
|
|
101
|
-
osServer: true
|
|
102
|
-
});
|
|
96
|
+
yield http.get("/shop/schedule/floor-plan/code/unsubscribe", { subscriberId }, _objectSpread2(_objectSpread2({}, useShopApi ? { isShopApi: true } : {}), {}, { osServer: true }));
|
|
103
97
|
})();
|
|
104
98
|
},
|
|
105
99
|
getShopFloorPlanByCode(code, subscribe) {
|
|
106
100
|
return _asyncToGenerator(function* () {
|
|
107
101
|
const trimmed = code === null || code === void 0 ? void 0 : code.trim();
|
|
108
102
|
if (!trimmed) return null;
|
|
109
|
-
const { detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, subscribe);
|
|
103
|
+
const { detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, useShopApi, subscribe);
|
|
110
104
|
return detail;
|
|
111
105
|
})();
|
|
112
106
|
},
|
|
@@ -114,12 +108,9 @@ function createShopFloorPlanClient(options) {
|
|
|
114
108
|
putShopFloorPlan(id, body) {
|
|
115
109
|
return _asyncToGenerator(function* () {
|
|
116
110
|
var _data2, _res$data;
|
|
117
|
-
const res = yield http.put(`/shop/schedule/floor-plan/${id}`, body, {
|
|
118
|
-
fullResult: true,
|
|
119
|
-
isShopApi: true
|
|
120
|
-
});
|
|
111
|
+
const res = yield http.put(`/shop/schedule/floor-plan/${id}`, body, _objectSpread2({ fullResult: true }, useShopApi ? { isShopApi: true } : {}));
|
|
121
112
|
if (!((res === null || res === void 0 ? void 0 : res.code) === 200 || (res === null || res === void 0 ? void 0 : res.status) === true || (res === null || res === void 0 || (_data2 = res.data) === null || _data2 === void 0 ? void 0 : _data2.status) === true)) {
|
|
122
|
-
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) ||
|
|
113
|
+
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) || resolveSaveFailedMessage();
|
|
123
114
|
throw new Error(msg);
|
|
124
115
|
}
|
|
125
116
|
return (_res$data = res === null || res === void 0 ? void 0 : res.data) !== null && _res$data !== void 0 ? _res$data : res;
|
|
@@ -63,8 +63,15 @@ type ShopFloorPlanHttpAdapter = {
|
|
|
63
63
|
put: (url: string, body?: unknown, config?: Record<string, unknown>) => Promise<unknown>;
|
|
64
64
|
};
|
|
65
65
|
type CreateShopFloorPlanClientOptions = {
|
|
66
|
-
http: ShopFloorPlanHttpAdapter; /** POST/PUT 失败且无更具体 message
|
|
67
|
-
saveFailedMessage?: string;
|
|
66
|
+
http: ShopFloorPlanHttpAdapter; /** POST/PUT 失败且无更具体 message 时的兜底文案(静态;若需随语言切换请用 getSaveFailedMessage) */
|
|
67
|
+
saveFailedMessage?: string; /** 保存失败时按当前运行时语言解析兜底文案(优先于 saveFailedMessage) */
|
|
68
|
+
getSaveFailedMessage?: () => string;
|
|
69
|
+
/**
|
|
70
|
+
* 是否走宿主 shop request 通道(`isShopApi`)。
|
|
71
|
+
* 默认 true:本 client 仅用于 `/shop/schedule/floor-plan`;拓扑单次 GET(无订阅)也需 shop 路由。
|
|
72
|
+
* 仅在极少数非 shop 宿主探测场景传 false。
|
|
73
|
+
*/
|
|
74
|
+
useShopApi?: boolean;
|
|
68
75
|
};
|
|
69
76
|
/** ensure 流程可选:404 时 POST 创建体由调用方注入 */
|
|
70
77
|
type EnsureShopFloorPlanByCodeOptions = ShopFloorPlanByCodeRequestOptions & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VenueWallAppearanceTheme, VenueWallStatusToneOverrides } from "./shellFrame/ResourceWall/venueWallUtils.js";
|
|
2
|
+
import { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarSelectedFreeSlot, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardResourceWallProps, RecordBoardToolBarProps } from "./types.js";
|
|
2
3
|
import { RecordBoardGridView } from "./layouts/GridLayout/Grid.js";
|
|
3
4
|
import { GridLayout } from "./layouts/GridLayout/index.js";
|
|
4
5
|
import { RecordBoardCardList } from "./layouts/CardLayout/CardList.js";
|
|
@@ -13,6 +14,7 @@ import { RecordBoardResourceWall } from "./shellFrame/ResourceWall/RecordBoardRe
|
|
|
13
14
|
import { useRecordBoardShellBodyMeta } from "./shellFrame/ShellBodyMetaContext.js";
|
|
14
15
|
import { RecordBoardShellFrame } from "./shellFrame/index.js";
|
|
15
16
|
import { useRecordBoardContext } from "./hooks/useRecordBoardContext.js";
|
|
17
|
+
import { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY } from "./shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js";
|
|
16
18
|
import { AdaptColumnsForPhoneLayoutOptions, RECORD_BOARD_PHONE_GRID_CLASS, adaptColumnsForPhoneLayout } from "./utils/recordBoardPhoneGrid.js";
|
|
17
19
|
import React from "react";
|
|
18
20
|
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts
|
|
3
|
+
/** 与 {@link RecordBoardResourceWallProps.filterFieldKey} 默认一致 */
|
|
4
|
+
declare const DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY = "resource_wall_resource_ids";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY };
|
|
@@ -469,6 +469,8 @@ interface RecordBoardResourceWallLayoutPersist {
|
|
|
469
469
|
boardingSoonBeforeMin: number;
|
|
470
470
|
heroMaxWidthRatio: number;
|
|
471
471
|
}
|
|
472
|
+
/** {@link RecordBoardResourceWallLayoutPersist} 默认值,与 {@link PisellRecordBoardResourceWallView} 历史初始 state 一致 */
|
|
473
|
+
declare const DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST: RecordBoardResourceWallLayoutPersist;
|
|
472
474
|
/**
|
|
473
475
|
* 大屏资源墙视图 props;与 Shell 内 `PisellRecordBoard.ResourceWall` 合并(子优先)。
|
|
474
476
|
* 展示顺序默认由 `searchParams.filter.values[filterFieldKey]`(默认 `resource_wall_resource_ids`)非空 `string[]` 决定;
|
|
@@ -855,4 +857,4 @@ interface RecordBoardProps {
|
|
|
855
857
|
[key: string]: any;
|
|
856
858
|
}
|
|
857
859
|
//#endregion
|
|
858
|
-
export { RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarSelectedFreeSlot, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardResourceWallProps, RecordBoardToolBarProps };
|
|
860
|
+
export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarSelectedFreeSlot, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardResourceWallProps, RecordBoardToolBarProps };
|
|
@@ -240,7 +240,7 @@ const WalletCard = (props) => {
|
|
|
240
240
|
const showCode = toBooleanValue(mergedProps.showCode);
|
|
241
241
|
const isLogin = toBooleanValue(mergedProps.isLogin);
|
|
242
242
|
const showViewPin = toBooleanValue(mergedProps === null || mergedProps === void 0 ? void 0 : mergedProps.showViewPin);
|
|
243
|
-
const { utils } = useEngineContext().appHelper || {};
|
|
243
|
+
const { utils, constants } = useEngineContext().appHelper || {};
|
|
244
244
|
const { isModalOpen, handleCodeClick, closeModal } = useCodeModal(cardNo, onCodeClick, codeType);
|
|
245
245
|
console.log("showViewPin", props);
|
|
246
246
|
const backgroundStyle = useMemo(() => {
|
|
@@ -248,7 +248,12 @@ const WalletCard = (props) => {
|
|
|
248
248
|
else {
|
|
249
249
|
var _props$walletGuideCon;
|
|
250
250
|
if ((props === null || props === void 0 || (_props$walletGuideCon = props.walletGuideConfig) === null || _props$walletGuideCon === void 0 ? void 0 : _props$walletGuideCon.backgroundColor) && isGuide || (props === null || props === void 0 ? void 0 : props.backgroundColor) && !isLogin) return { backgroundImage: "none" };
|
|
251
|
-
|
|
251
|
+
let staticUrl = constants === null || constants === void 0 ? void 0 : constants.staticURL;
|
|
252
|
+
if (!staticUrl) {
|
|
253
|
+
var _constants$config;
|
|
254
|
+
staticUrl = (constants === null || constants === void 0 || (_constants$config = constants.config) === null || _constants$config === void 0 ? void 0 : _constants$config.awsStatic) || "https://static.pisellcdn.com";
|
|
255
|
+
}
|
|
256
|
+
return { backgroundImage: `url(${staticUrl}/${mode === "dark" ? "dark_wallet.png" : "light_wallet.png"})` };
|
|
252
257
|
}
|
|
253
258
|
}, [
|
|
254
259
|
props.customBackgroundImage,
|
package/es/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { PisellMultipleSelect } from "./components/pisellMultipleSelect/PisellMu
|
|
|
23
23
|
import { PisellFields } from "./components/PisellFields/index.js";
|
|
24
24
|
import { PisellMetricCardProps } from "./components/pisellMetricCard/types.js";
|
|
25
25
|
import { PisellMetricCard } from "./components/pisellMetricCard/PisellMetricCard.js";
|
|
26
|
-
import { PisellStatisticList } from "./components/pisellStatisticList/index.js";
|
|
26
|
+
import { PisellStatisticList, PisellStatisticListProps } from "./components/pisellStatisticList/index.js";
|
|
27
27
|
import { CardMetricItem, PisellStatisticProps } from "./components/cardMetricItem/index.js";
|
|
28
28
|
import { PisellMetrics } from "./components/PisellMetrics/index.js";
|
|
29
29
|
import { PisellBasicGridProps } from "./components/PisellBasicGrid/types.js";
|
|
@@ -60,7 +60,7 @@ import { PisellFooter } from "./components/pisellLayout/footer.js";
|
|
|
60
60
|
import { PisellHeader } from "./components/pisellLayout/header.js";
|
|
61
61
|
import { PisellSider } from "./components/pisellLayout/sider.js";
|
|
62
62
|
import { PisellContext, globalConfig } from "./components/pisell-config-provider/context.js";
|
|
63
|
-
import { PisellModal } from "./components/pisellModal/index.js";
|
|
63
|
+
import { PisellModal, PisellModalProps } from "./components/pisellModal/index.js";
|
|
64
64
|
import { PisellContainer } from "./components/pisellContainer/index.js";
|
|
65
65
|
import { PisellRow, PisellRowProps } from "./components/pisellRow/index.js";
|
|
66
66
|
import { PisellViewGrid } from "./components/pisellViewGrid/index.js";
|
|
@@ -158,11 +158,13 @@ import { GridProProps } from "./components/pisellGridPro/GridPro.js";
|
|
|
158
158
|
import { PisellGridPro } from "./components/pisellGridPro/index.js";
|
|
159
159
|
import { _default as _default$19 } from "./components/record-view/index.js";
|
|
160
160
|
import { CalendarPersistContextValue, CalendarPersistKind, CalendarPersistProvider } from "./components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.js";
|
|
161
|
-
import {
|
|
161
|
+
import { VenueWallAppearanceTheme, VenueWallStatusToneOverrides } from "./components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js";
|
|
162
|
+
import { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardToolBarProps } from "./components/pisellRecordBoard/types.js";
|
|
162
163
|
import { BatchActionBarPosition, BatchActionConfirmConfig, BatchActionItem, DefaultActionsConfig, PisellBatchActionBarProps } from "./components/pisellBatchActionBar/types.js";
|
|
163
164
|
import { PisellBatchActionBar } from "./components/pisellBatchActionBar/PisellBatchActionBar.js";
|
|
164
165
|
import { useRecordBoardShellBodyMeta } from "./components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.js";
|
|
165
166
|
import { useRecordBoardContext } from "./components/pisellRecordBoard/hooks/useRecordBoardContext.js";
|
|
167
|
+
import { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY } from "./components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js";
|
|
166
168
|
import { AdaptColumnsForPhoneLayoutOptions, RECORD_BOARD_PHONE_GRID_CLASS, adaptColumnsForPhoneLayout } from "./components/pisellRecordBoard/utils/recordBoardPhoneGrid.js";
|
|
167
169
|
import { PisellRecordBoard } from "./components/pisellRecordBoard/index.js";
|
|
168
170
|
import { PisellShellFrameConfig, PisellShellFrameProps, PisellShellFrameScrollConfig } from "./components/pisellShellFrame/types.js";
|
|
@@ -283,4 +285,4 @@ import { AppVersionControl } from "./components/appVersionControl/index.js";
|
|
|
283
285
|
import { PisellConfigProvider } from "./components/pisell-config-provider/index.js";
|
|
284
286
|
import { usePisellConfig } from "./components/pisell-config-provider/hooks/usePisellConfig.js";
|
|
285
287
|
import { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber as InputNumber$1, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch as Switch$1, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from "antd";
|
|
286
|
-
export { type ActionPanelAlign, type ActionPanelItemPriority, type ActionPanelLayout, type ActionPanelOverflowStrategy, type AdaptColumnsForPhoneLayoutOptions, Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, type BadgeConfig, Translation as BaseTranslation, type BatchActionBarPosition, type BatchActionConfirmConfig, type BatchActionItem, BatchEditor, Breadcrumb, Button, _default as ButtonGroupEdit, _default$1 as ButtonGroupPreview, Calendar, type CalendarPersistContextValue, type CalendarPersistKind, CalendarPersistProvider, Card, CardMetricItem, type PisellStatisticProps as CardMetricItemProps, _default$2 as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, type CompoundedComponent, ConfigProvider, type ContactBriefExtraField, type ContactFormValues, type CountryCode, type CreateShopFloorPlanClientOptions, CropPhoto, type CursorMode, CustomSelect, type CustomerBriefExtendedField, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, type DataSourceContainerProps, _default$3 as DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, type DataSourceSubFormProps, _default$4 as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, type DefaultActionsConfig, Descriptions, _default$5 as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, type EnsureShopFloorPlanByCodeOptions, type EntityCardActionItem, type EntityCardDensity, type EntityCardLayout, type EntityCardMediaConfig, type EntityCardMediaType, type EntityCardSecondaryItem, type EntityCardTagItem, type EntityCardTagPosition, type EntityCardWidth, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, type FloorMapBindingPlaceholderReason, FloorMapBuiltinShapeElement, type FloorMapCanvasNameI18n, type FloorMapDataSourceRow, type FloorMapDataSources, type FloorMapEdge, type FloorMapEdgeAnchor, type FloorMapEdgeStatus, type FloorMapElementKindCategory, type FloorMapElementKindConfig, type FloorMapFullscreenMode, FloorMapImageElement, type FloorMapItemBase, type FloorMapLayoutContextValue, FloorMapLayoutProvider, type FloorMapLayoutProviderProps, type FloorMapMergedItem, type FloorMapRenderOptions, type FloorMapResourcePickerRecord, type FloorMapResourcePickerSlotProps, type FloorMapSceneElement, FloorMapSelectionZoneElement, type FloorMapViewConfig, type FloorMapViewportOverlayRenderArgs, _default$6 as Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, type GraphicTextCardProps, type GraphicTextCardSize, type GraphicTextCardVariant, Grid, type GridProProps, type GridViewProps, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, HardwareErrorTip, _default$7 as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, type ImageDataSource, type ImageFillMode, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, _default$8 as Keyboard, type LevelType, List, LowCodePage, type MailtoOptions, Mentions, Menu, Modal, Provider$1 as MultilevelCard, type MultilevelCardProps, type MultipleSelectRef, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellActionPanel, type PisellActionPanelGroup, type PisellActionPanelItem, type PisellActionPanelProps, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, PisellBaseCard, type PisellBaseCardProps, type PisellBasicCardProps, MemoizedPisellBasicGrid as PisellBasicGrid, type PisellBasicGridProps, PisellBatchActionBar, type PisellBatchActionBarProps, PisellCard, _default$9 as PisellCardList, type PisellCardPickerCardMeta, type PisellCardPickerCategoryConfig, type PisellCardPickerCategoryLevelConfig, type PisellCardPickerCategoryMode, type PisellCardPickerCategoryPath, type PisellCardPickerItem, type PisellCardPickerMode, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContactBrief, type PisellContactBriefComponent, type PisellContactBriefCreateButtonProps, type PisellContactBriefProps, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellCustomerBrief, type PisellCustomerBriefProps, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, _default$11 as PisellEmail, type PisellEmailProps, PisellEmpty, PisellEntityCard, type PisellEntityCardProps, PisellExport, type PisellExportProps, PisellFields, PisellFilter, type PisellFilterProps, PisellFind, type PisellFindProps, type PisellFindRef, PisellFloatingPanel, PisellFloorMapLayout, type PisellFloorMapLayoutProps, type PisellFloorMapLayoutRef, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, type PisellHierarchicalSummaryListAggregateConfig, type PisellHierarchicalSummaryListAggregateMode, type PisellHierarchicalSummaryListItem, type PisellHierarchicalSummaryListKey, type PisellHierarchicalSummaryListLevelConfig, type PisellHierarchicalSummaryListProps, Provider$2 as PisellImageCard, type PisellImageCardProps, PisellImageCarousels, PisellImport, type PisellImportProps, PisellInformationEntry, PisellInput, PisellLayout, type PisellLayoutProps, PisellLayouts, PisellList01, PisellLoading, _default$12 as PisellLongText, type PisellLongTextProps, PisellLookup, type PisellLookupProps, type PisellLookupRef, PisellMenu, type PisellMenuProps, PisellMetricCard, type PisellMetricCardProps, PisellMetrics, PisellMobileDateRangePicker, type PisellMobileDateRangePickerProps, PisellModal, PisellMultipleSelect, type PisellMultipleSelectProps, PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, type PisellNumberProps, MemoizedPisellPercent as PisellPercent, type PisellPercentProps, _default$13 as PisellPhone, type PisellPhoneProps, Amount as PisellPriceKeyboard, PisellProcedure, type PisellProcedureProps, type PisellProcedureRef, PisellQRScanner, type PisellQRScannerProps, PisellQrcode, pisellQuickFilter as PisellQuickFilter, type PisellQuickFilterProps, _default$14 as PisellRating, type PisellRatingProps, PisellRecordBoard, PisellRecordBoardCalendarView, type PisellRecordBoardCalendarViewProps, PisellReservationSchedule, PisellReservationScheduleBand, type PisellReservationScheduleBandProps, type PisellReservationScheduleProps, PisellRow, type PisellRowProps, PisellScan, PisellScrollView, type PisellScrollViewProps, PisellSectionHeaders, PisellShellFrame, type PisellShellFrameConfig, type PisellShellFrameProps, type PisellShellFrameScrollConfig, PisellSider, _default$15 as PisellSingleLineText, type PisellSingleLineTextProps, PisellSingleSelect, type PisellSingleSelectProps, PisellSort, type PisellSortProps, PisellStatisticList, type PisellStatisticProps, type PisellStepItem, PisellSteps, type PisellStepsProps, _default$16 as PisellSuperTabs, type PisellSuperTabsProps, PisellTabbar, PisellTabbar$1 as PisellTabbar2, type PisellTabbarProps, _default$17 as PisellTabbarTemplate1, PisellTags, PisellText, PisellTimeNavigator, type PisellTimeNavigatorProps, PisellTimeRangeDisplay, type PisellTimeRangeDisplayProps, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, _default$18 as PisellUrl, type PisellUrlProps, PisellViewGrid, PisellWalletPassCard, type PisellWalletPassCardProps, Popconfirm, Popover, type PostShopFloorPlanBody, type ProcedureBodyProps, type ProcedureFooterProps, type ProcedureHeaderProps, ProductCard, ProfileMenu, Progress, PublishVersionModal, type PutShopFloorPlanBody, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, type RecordBoardBodyView, type RecordBoardCalendarBookingLike, type RecordBoardCalendarProps, type RecordBoardCalendarResource, type RecordBoardChildComponentProps, type RecordBoardColumnFilterConfig, type RecordBoardColumnType, type RecordBoardContextValue, type RecordBoardFieldType, type RecordBoardFloorMapProps, type RecordBoardGetOptions, type RecordBoardGridProps, type RecordBoardLayoutType, type RecordBoardOptionItem, type RecordBoardProps, type RecordBoardToolBarProps, _default$19 as RecordView, type ReservationScheduleBandValue, type ReservationScheduleValue, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SectionFooters, Segmented, Select, SelectTime, type ShopFloorPlanByCodeRequestOptions, type ShopFloorPlanDetail, type ShopFloorPlanHttpAdapter, type ShopFloorPlanLayoutItem, type SingleSelectRef, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, type TabCardProps, type TabDataItem, type TabbarDataSource, _default$20 as Table, Tabs, Tag, Provider$4 as TextCard, type TimeNavigatorOrientation, type TimeNavigatorPassthroughProps, type TimeNavigatorValue, TimePicker$1 as TimePicker, type TimeRangeOption, Timeline, type ToolBarProps, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, type WrapFloorMapOnSaveWithRemotePersistParams, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, computeSelectionZoneMemberIds, createShopFloorPlanClient, findFloorMapRowByDataBinding, _default$21 as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, globalConfig, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, _default$22 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
|
288
|
+
export { type ActionPanelAlign, type ActionPanelItemPriority, type ActionPanelLayout, type ActionPanelOverflowStrategy, type AdaptColumnsForPhoneLayoutOptions, Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, type BadgeConfig, Translation as BaseTranslation, type BatchActionBarPosition, type BatchActionConfirmConfig, type BatchActionItem, BatchEditor, Breadcrumb, Button, _default as ButtonGroupEdit, _default$1 as ButtonGroupPreview, Calendar, type CalendarPersistContextValue, type CalendarPersistKind, CalendarPersistProvider, Card, CardMetricItem, type PisellStatisticProps as CardMetricItemProps, _default$2 as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, type CompoundedComponent, ConfigProvider, type ContactBriefExtraField, type ContactFormValues, type CountryCode, type CreateShopFloorPlanClientOptions, CropPhoto, type CursorMode, CustomSelect, type CustomerBriefExtendedField, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, type DataSourceContainerProps, _default$3 as DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, type DataSourceSubFormProps, _default$4 as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, type DefaultActionsConfig, Descriptions, _default$5 as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, type EnsureShopFloorPlanByCodeOptions, type EntityCardActionItem, type EntityCardDensity, type EntityCardLayout, type EntityCardMediaConfig, type EntityCardMediaType, type EntityCardSecondaryItem, type EntityCardTagItem, type EntityCardTagPosition, type EntityCardWidth, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, type FloorMapBindingPlaceholderReason, FloorMapBuiltinShapeElement, type FloorMapCanvasNameI18n, type FloorMapDataSourceRow, type FloorMapDataSources, type FloorMapEdge, type FloorMapEdgeAnchor, type FloorMapEdgeStatus, type FloorMapElementKindCategory, type FloorMapElementKindConfig, type FloorMapFullscreenMode, FloorMapImageElement, type FloorMapItemBase, type FloorMapLayoutContextValue, FloorMapLayoutProvider, type FloorMapLayoutProviderProps, type FloorMapMergedItem, type FloorMapRenderOptions, type FloorMapResourcePickerRecord, type FloorMapResourcePickerSlotProps, type FloorMapSceneElement, FloorMapSelectionZoneElement, type FloorMapViewConfig, type FloorMapViewportOverlayRenderArgs, _default$6 as Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, type GraphicTextCardProps, type GraphicTextCardSize, type GraphicTextCardVariant, Grid, type GridProProps, type GridViewProps, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, HardwareErrorTip, _default$7 as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, type ImageDataSource, type ImageFillMode, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, _default$8 as Keyboard, type LevelType, List, LowCodePage, type MailtoOptions, Mentions, Menu, Modal, Provider$1 as MultilevelCard, type MultilevelCardProps, type MultipleSelectRef, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellActionPanel, type PisellActionPanelGroup, type PisellActionPanelItem, type PisellActionPanelProps, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, PisellBaseCard, type PisellBaseCardProps, type PisellBasicCardProps, MemoizedPisellBasicGrid as PisellBasicGrid, type PisellBasicGridProps, PisellBatchActionBar, type PisellBatchActionBarProps, PisellCard, _default$9 as PisellCardList, type PisellCardPickerCardMeta, type PisellCardPickerCategoryConfig, type PisellCardPickerCategoryLevelConfig, type PisellCardPickerCategoryMode, type PisellCardPickerCategoryPath, type PisellCardPickerItem, type PisellCardPickerMode, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContactBrief, type PisellContactBriefComponent, type PisellContactBriefCreateButtonProps, type PisellContactBriefProps, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellCustomerBrief, type PisellCustomerBriefProps, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, _default$11 as PisellEmail, type PisellEmailProps, PisellEmpty, PisellEntityCard, type PisellEntityCardProps, PisellExport, type PisellExportProps, PisellFields, PisellFilter, type PisellFilterProps, PisellFind, type PisellFindProps, type PisellFindRef, PisellFloatingPanel, PisellFloorMapLayout, type PisellFloorMapLayoutProps, type PisellFloorMapLayoutRef, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, type PisellHierarchicalSummaryListAggregateConfig, type PisellHierarchicalSummaryListAggregateMode, type PisellHierarchicalSummaryListItem, type PisellHierarchicalSummaryListKey, type PisellHierarchicalSummaryListLevelConfig, type PisellHierarchicalSummaryListProps, Provider$2 as PisellImageCard, type PisellImageCardProps, PisellImageCarousels, PisellImport, type PisellImportProps, PisellInformationEntry, PisellInput, PisellLayout, type PisellLayoutProps, PisellLayouts, PisellList01, PisellLoading, _default$12 as PisellLongText, type PisellLongTextProps, PisellLookup, type PisellLookupProps, type PisellLookupRef, PisellMenu, type PisellMenuProps, PisellMetricCard, type PisellMetricCardProps, PisellMetrics, PisellMobileDateRangePicker, type PisellMobileDateRangePickerProps, PisellModal, type PisellModalProps, PisellMultipleSelect, type PisellMultipleSelectProps, PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, type PisellNumberProps, MemoizedPisellPercent as PisellPercent, type PisellPercentProps, _default$13 as PisellPhone, type PisellPhoneProps, Amount as PisellPriceKeyboard, PisellProcedure, type PisellProcedureProps, type PisellProcedureRef, PisellQRScanner, type PisellQRScannerProps, PisellQrcode, pisellQuickFilter as PisellQuickFilter, type PisellQuickFilterProps, _default$14 as PisellRating, type PisellRatingProps, PisellRecordBoard, PisellRecordBoardCalendarView, type PisellRecordBoardCalendarViewProps, PisellReservationSchedule, PisellReservationScheduleBand, type PisellReservationScheduleBandProps, type PisellReservationScheduleProps, PisellRow, type PisellRowProps, PisellScan, PisellScrollView, type PisellScrollViewProps, PisellSectionHeaders, PisellShellFrame, type PisellShellFrameConfig, type PisellShellFrameProps, type PisellShellFrameScrollConfig, PisellSider, _default$15 as PisellSingleLineText, type PisellSingleLineTextProps, PisellSingleSelect, type PisellSingleSelectProps, PisellSort, type PisellSortProps, PisellStatisticList, type PisellStatisticListProps, type PisellStatisticProps, type PisellStepItem, PisellSteps, type PisellStepsProps, _default$16 as PisellSuperTabs, type PisellSuperTabsProps, PisellTabbar, PisellTabbar$1 as PisellTabbar2, type PisellTabbarProps, _default$17 as PisellTabbarTemplate1, PisellTags, PisellText, PisellTimeNavigator, type PisellTimeNavigatorProps, PisellTimeRangeDisplay, type PisellTimeRangeDisplayProps, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, _default$18 as PisellUrl, type PisellUrlProps, PisellViewGrid, PisellWalletPassCard, type PisellWalletPassCardProps, Popconfirm, Popover, type PostShopFloorPlanBody, type ProcedureBodyProps, type ProcedureFooterProps, type ProcedureHeaderProps, ProductCard, ProfileMenu, Progress, PublishVersionModal, type PutShopFloorPlanBody, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, type RecordBoardBlockedTimePanelPayload, type RecordBoardBodyView, type RecordBoardBookingMoveDraft, type RecordBoardCalendarBookingLike, type RecordBoardCalendarBookingRenderArgs, type RecordBoardCalendarProps, type RecordBoardCalendarResource, type RecordBoardChildComponentProps, type RecordBoardColumnFilterConfig, type RecordBoardColumnType, type RecordBoardContextValue, type RecordBoardCreateBookingFromSelectionPayload, type RecordBoardFieldType, type RecordBoardFloorMapProps, type RecordBoardGetOptions, type RecordBoardGridProps, type RecordBoardLayoutType, type RecordBoardOptionItem, type RecordBoardProps, type RecordBoardResourceWallCardModel, type RecordBoardResourceWallLayoutPersist, type RecordBoardToolBarProps, _default$19 as RecordView, type ReservationScheduleBandValue, type ReservationScheduleValue, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SectionFooters, Segmented, Select, SelectTime, type ShopFloorPlanByCodeRequestOptions, type ShopFloorPlanDetail, type ShopFloorPlanHttpAdapter, type ShopFloorPlanLayoutItem, type SingleSelectRef, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, type TabCardProps, type TabDataItem, type TabbarDataSource, _default$20 as Table, Tabs, Tag, Provider$4 as TextCard, type TimeNavigatorOrientation, type TimeNavigatorPassthroughProps, type TimeNavigatorValue, TimePicker$1 as TimePicker, type TimeRangeOption, Timeline, type ToolBarProps, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, type VenueWallAppearanceTheme, type VenueWallStatusToneOverrides, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, type WrapFloorMapOnSaveWithRemotePersistParams, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, computeSelectionZoneMemberIds, createShopFloorPlanClient, findFloorMapRowByDataBinding, _default$21 as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, globalConfig, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, _default$22 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
package/es/index.js
CHANGED
|
@@ -159,6 +159,8 @@ import { useRecordBoardShellBodyMeta } from "./components/pisellRecordBoard/shel
|
|
|
159
159
|
import PisellBatchActionBar from "./components/pisellBatchActionBar/PisellBatchActionBar.js";
|
|
160
160
|
import { CalendarPersistProvider } from "./components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.js";
|
|
161
161
|
import { PisellRecordBoardCalendarView } from "./components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js";
|
|
162
|
+
import { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST } from "./components/pisellRecordBoard/types.js";
|
|
163
|
+
import { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY } from "./components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js";
|
|
162
164
|
import PisellRecordBoard from "./components/pisellRecordBoard/index.js";
|
|
163
165
|
import { getBankCardTypeImg } from "./components/pisellInput/components/BankCard/utils.js";
|
|
164
166
|
import PisellInput from "./components/pisellInput/index.js";
|
|
@@ -244,4 +246,4 @@ import PublishVersionModal from "./components/versionModal/index.js";
|
|
|
244
246
|
import AppVersionControl from "./components/appVersionControl/index.js";
|
|
245
247
|
import "./pisell-materials.tw.css";
|
|
246
248
|
import { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber as InputNumber$1, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch as Switch$1, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version } from "antd";
|
|
247
|
-
export { Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, Translation as BaseTranslation, BatchEditor, Breadcrumb, Button, buttonGroupEdit_default as ButtonGroupEdit, buttonGroupPreview_default as ButtonGroupPreview, Calendar, CalendarPersistProvider, Card, CardMetricItem, cardPro_default as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, ConfigProvider, CropPhoto, CustomSelect, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, dataSourceTable_default as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, Descriptions, div_default as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, FloorMapBuiltinShapeElement, FloorMapImageElement, FloorMapLayoutProvider, FloorMapSelectionZoneElement, Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, Grid, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, HardwareErrorTip, icon_default as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, keyboard_default as Keyboard, List, LowCodePage, Mentions, Menu, Modal, Provider$1 as MultilevelCard, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellActionPanel, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, pisellAppCard_default as PisellAppCard, PisellAvatar, PisellBaseCard, MemoizedPisellBasicGrid as PisellBasicGrid, PisellBatchActionBar, PisellCard, pisellCardList_default as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContactBrief, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, PisellCustomCheckboxGroup, PisellCustomerBrief, PisellDataSourceContainer, PisellDatePicker, PisellDateTimeDisplay_default as PisellDateTimeDisplay, Demo as PisellDraggable, pisellDropSort_default as PisellDropSort, PisellDropdown, PisellEmail_default as PisellEmail, PisellEmpty, PisellEntityCard, PisellExport, PisellFields, PisellFilter, PisellFind, PisellFloatingPanel, PisellFloorMapLayout, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, Provider$2 as PisellImageCard, PisellImageCarousels, PisellImport, PisellInformationEntry, PisellInput, PisellLayout, PisellLayouts, PisellList01, PisellLoading, PisellLongText_default as PisellLongText, PisellLookup, pisellMenu_default as PisellMenu, PisellMetricCard, PisellMetrics, PisellMobileDateRangePicker, PisellModal, PisellMultipleSelect, pisellNavigationMenu_default as PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, MemoizedPisellPercent as PisellPercent, PisellPhone_default as PisellPhone, Amount as PisellPriceKeyboard, PisellProcedure, PisellQRScanner, PisellQrcode, pisellQuickFilter as PisellQuickFilter, PisellRating_default as PisellRating, PisellRecordBoard, PisellRecordBoardCalendarView, PisellReservationSchedule, PisellReservationScheduleBand, PisellRow, PisellScan, PisellScrollView_default as PisellScrollView, PisellSectionHeaders, PisellShellFrame, PisellSider, PisellSingleLineText_default as PisellSingleLineText, PisellSingleSelect, PisellSort, PisellStatisticList, PisellSteps_default as PisellSteps, PisellSuperTabs_default as PisellSuperTabs, PisellTabbar_default as PisellTabbar, PisellTabbar as PisellTabbar2, Template1_default as PisellTabbarTemplate1, PisellTags, PisellText, PisellTimeNavigator, PisellTimeRangeDisplay, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, PisellUrl_default as PisellUrl, PisellViewGrid, PisellWalletPassCard, Popconfirm, Popover, ProductCard, ProfileMenu, Progress, PublishVersionModal, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, record_view_default as RecordView, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SectionFooters, Segmented, Select, SelectTime, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, table_default as Table, Tabs, Tag, Provider$4 as TextCard, TimePicker$1 as TimePicker, Timeline, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, computeSelectionZoneMemberIds, createShopFloorPlanClient, findFloorMapRowByDataBinding, locales_default as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, globalConfig, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, locales_default$1 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
|
249
|
+
export { Affix, Alert, Anchor, AppVersionControl, AutoComplete, AutoCompleteNumber, AutoResizeText, Avatar, Badge, Translation as BaseTranslation, BatchEditor, Breadcrumb, Button, buttonGroupEdit_default as ButtonGroupEdit, buttonGroupPreview_default as ButtonGroupPreview, Calendar, CalendarPersistProvider, Card, CardMetricItem, cardPro_default as CardPro, Carousel, Cascader, Checkbox, ClassicLayout, Col, Collapse, ColorPicker, Component, ConfigProvider, CropPhoto, CustomSelect, DEFAULT_CALENDAR_SLOT_STEP_MINUTES, DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, DataSourceForm, DataSourceImage, DataSourceMenu, DataSourceQRCode, DataSourceSubForm, dataSourceTable_default as DataSourceTable, DataSourceTypography, DataSourceWrapper, DatePicker, Descriptions, div_default as Div, Divider, DragSortTree, Drawer, Dropdown, EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, Empty, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_SELECTION_ZONE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, FloorMapBuiltinShapeElement, FloorMapImageElement, FloorMapLayoutProvider, FloorMapSelectionZoneElement, Form, FormGroup, Checkbox$1 as FormItemCheckbox, ColorPicker$1 as FormItemColorPicker, DatePicker$1 as FormItemDatePicker, IconSelect as FormItemIconSelect, Input as FormItemInput, InputNumber as FormItemInputNumber, Radio as FormItemRadio, RecordListWrapperWithDataSource as FormItemRecordListWrapper, SelectWithDataSource as FormItemSelect, Switch as FormItemSwitch, FormItemTabs, TimePicker as FormItemTimePicker, Translation$1 as FormItemTranslation, Upload as FormItemUpload, Provider as GraphicTextCard, Grid, PREFIX_CLS as HIERARCHICAL_SUMMARY_LIST_PREFIX_CLS, HardwareErrorTip, icon_default as Icon, IconSelect$1 as IconSelect, IconFont as Iconfont, Image, Input$1 as Input, InputNumber$1 as InputNumber, InputNumberRange, JsonWrapperProvider as JsonWrapper, keyboard_default as Keyboard, List, LowCodePage, Mentions, Menu, Modal, Provider$1 as MultilevelCard, NAME_AS_TITLE_EXT_KEY, OrganizationTenantSwitcher, Page, PageHeader, Pagination, PisellActionPanel, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, pisellAppCard_default as PisellAppCard, PisellAvatar, PisellBaseCard, MemoizedPisellBasicGrid as PisellBasicGrid, PisellBatchActionBar, PisellCard, pisellCardList_default as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContactBrief, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, PisellCustomCheckboxGroup, PisellCustomerBrief, PisellDataSourceContainer, PisellDatePicker, PisellDateTimeDisplay_default as PisellDateTimeDisplay, Demo as PisellDraggable, pisellDropSort_default as PisellDropSort, PisellDropdown, PisellEmail_default as PisellEmail, PisellEmpty, PisellEntityCard, PisellExport, PisellFields, PisellFilter, PisellFind, PisellFloatingPanel, PisellFloorMapLayout, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, Provider$2 as PisellImageCard, PisellImageCarousels, PisellImport, PisellInformationEntry, PisellInput, PisellLayout, PisellLayouts, PisellList01, PisellLoading, PisellLongText_default as PisellLongText, PisellLookup, pisellMenu_default as PisellMenu, PisellMetricCard, PisellMetrics, PisellMobileDateRangePicker, PisellModal, PisellMultipleSelect, pisellNavigationMenu_default as PisellNavigationMenu, MemoizedPisellNumber as PisellNumber, Number as PisellNumberKeyboard, MemoizedPisellPercent as PisellPercent, PisellPhone_default as PisellPhone, Amount as PisellPriceKeyboard, PisellProcedure, PisellQRScanner, PisellQrcode, pisellQuickFilter as PisellQuickFilter, PisellRating_default as PisellRating, PisellRecordBoard, PisellRecordBoardCalendarView, PisellReservationSchedule, PisellReservationScheduleBand, PisellRow, PisellScan, PisellScrollView_default as PisellScrollView, PisellSectionHeaders, PisellShellFrame, PisellSider, PisellSingleLineText_default as PisellSingleLineText, PisellSingleSelect, PisellSort, PisellStatisticList, PisellSteps_default as PisellSteps, PisellSuperTabs_default as PisellSuperTabs, PisellTabbar_default as PisellTabbar, PisellTabbar as PisellTabbar2, Template1_default as PisellTabbarTemplate1, PisellTags, PisellText, PisellTimeNavigator, PisellTimeRangeDisplay, PisellToast, Toolbar as PisellToolBar, PisellTooltip, PisellUpload, PisellUrl_default as PisellUrl, PisellViewGrid, PisellWalletPassCard, Popconfirm, Popover, ProductCard, ProfileMenu, Progress, PublishVersionModal, QRCode, RECORD_BOARD_PHONE_GRID_CLASS, Radio$1 as Radio, Rate, record_view_default as RecordView, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SectionFooters, Segmented, Select, SelectTime, Skeleton, SliderOuter as Slider, Sort, SortableList, Space, Spin, Statistic, Steps, SubmitButton, Switch$1 as Switch, Provider$3 as TabCard, table_default as Table, Tabs, Tag, Provider$4 as TextCard, TimePicker$1 as TimePicker, Timeline, Tooltip, Transfer, Translation$2 as Translation, Tree, TreeSelect, Typography, Upload$1 as Upload, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, computeSelectionZoneMemberIds, createShopFloorPlanClient, findFloorMapRowByDataBinding, locales_default as floorMapLayoutLocales, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapDisplayLocale, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, globalConfig, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isSelectionZoneItem, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, locales_default$1 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
|
|
@@ -5,15 +5,12 @@ const require_shopFloorPlanPure = require("./shopFloorPlanPure.js");
|
|
|
5
5
|
const require_asyncToGenerator = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
|
|
6
6
|
//#region src/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.ts
|
|
7
7
|
const _excluded = ["buildDefaultPostBody"];
|
|
8
|
-
function fetchShopFloorPlanByCodeResponse(_x, _x2, _x3) {
|
|
8
|
+
function fetchShopFloorPlanByCodeResponse(_x, _x2, _x3, _x4) {
|
|
9
9
|
return _fetchShopFloorPlanByCodeResponse.apply(this, arguments);
|
|
10
10
|
}
|
|
11
11
|
function _fetchShopFloorPlanByCodeResponse() {
|
|
12
|
-
_fetchShopFloorPlanByCodeResponse = require_asyncToGenerator._asyncToGenerator(function* (http, trimmedCode, subscribe) {
|
|
13
|
-
const res = yield http.get(`/shop/schedule/floor-plan/code/${encodeURIComponent(trimmedCode)}`, {}, require_objectSpread2._objectSpread2({
|
|
14
|
-
fullResult: true,
|
|
15
|
-
isShopApi: true
|
|
16
|
-
}, (subscribe === null || subscribe === void 0 ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== "" ? require_objectSpread2._objectSpread2({
|
|
12
|
+
_fetchShopFloorPlanByCodeResponse = require_asyncToGenerator._asyncToGenerator(function* (http, trimmedCode, useShopApi, subscribe) {
|
|
13
|
+
const res = yield http.get(`/shop/schedule/floor-plan/code/${encodeURIComponent(trimmedCode)}`, {}, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({ fullResult: true }, useShopApi ? { isShopApi: true } : {}), (subscribe === null || subscribe === void 0 ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== "" ? require_objectSpread2._objectSpread2({
|
|
17
14
|
abort: true,
|
|
18
15
|
osServer: subscribe.osServer !== false,
|
|
19
16
|
subscriberId: subscribe.subscriberId
|
|
@@ -26,62 +23,62 @@ function _fetchShopFloorPlanByCodeResponse() {
|
|
|
26
23
|
return _fetchShopFloorPlanByCodeResponse.apply(this, arguments);
|
|
27
24
|
}
|
|
28
25
|
function createShopFloorPlanClient(options) {
|
|
29
|
-
var _options$saveFailedMe;
|
|
30
26
|
const { http } = options;
|
|
31
|
-
const
|
|
32
|
-
|
|
27
|
+
const useShopApi = options.useShopApi !== false;
|
|
28
|
+
const resolveSaveFailedMessage = () => {
|
|
29
|
+
var _ref, _options$getSaveFaile, _options$getSaveFaile2;
|
|
30
|
+
return (_ref = (_options$getSaveFaile = (_options$getSaveFaile2 = options.getSaveFailedMessage) === null || _options$getSaveFaile2 === void 0 ? void 0 : _options$getSaveFaile2.call(options)) !== null && _options$getSaveFaile !== void 0 ? _options$getSaveFaile : options.saveFailedMessage) !== null && _ref !== void 0 ? _ref : "Failed to save floor plan";
|
|
31
|
+
};
|
|
32
|
+
function postShopFloorPlan(_x5) {
|
|
33
33
|
return _postShopFloorPlan.apply(this, arguments);
|
|
34
34
|
}
|
|
35
35
|
function _postShopFloorPlan() {
|
|
36
36
|
_postShopFloorPlan = require_asyncToGenerator._asyncToGenerator(function* (body) {
|
|
37
37
|
var _data;
|
|
38
|
-
const res = yield http.post("/shop/schedule/floor-plan", body, {
|
|
39
|
-
fullResult: true,
|
|
40
|
-
isShopApi: true
|
|
41
|
-
});
|
|
38
|
+
const res = yield http.post("/shop/schedule/floor-plan", body, require_objectSpread2._objectSpread2({ fullResult: true }, useShopApi ? { isShopApi: true } : {}));
|
|
42
39
|
if ((res === null || res === void 0 ? void 0 : res.code) === 200 || (res === null || res === void 0 ? void 0 : res.status) === true || (res === null || res === void 0 || (_data = res.data) === null || _data === void 0 ? void 0 : _data.status) === true) {
|
|
43
40
|
const detail = require_shopFloorPlanPure.pickFloorPlanDetail(res);
|
|
44
41
|
if (detail) return detail;
|
|
45
|
-
throw new Error(
|
|
42
|
+
throw new Error(resolveSaveFailedMessage());
|
|
46
43
|
}
|
|
47
44
|
if ((res === null || res === void 0 ? void 0 : res.code) === 5001) {
|
|
48
45
|
const err = new Error(typeof res.message === "string" && res.message.trim() ? res.message : "Floor plan code already exists");
|
|
49
46
|
Object.assign(err, { [require_shopFloorPlanTypes.SHOP_FLOOR_PLAN_DUPLICATE_CODE]: true });
|
|
50
47
|
throw err;
|
|
51
48
|
}
|
|
52
|
-
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) ||
|
|
49
|
+
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) || resolveSaveFailedMessage();
|
|
53
50
|
throw new Error(msg);
|
|
54
51
|
});
|
|
55
52
|
return _postShopFloorPlan.apply(this, arguments);
|
|
56
53
|
}
|
|
57
|
-
function ensureShopFloorPlanByCode(
|
|
54
|
+
function ensureShopFloorPlanByCode(_x6, _x7) {
|
|
58
55
|
return _ensureShopFloorPlanByCode.apply(this, arguments);
|
|
59
56
|
}
|
|
60
57
|
function _ensureShopFloorPlanByCode() {
|
|
61
58
|
_ensureShopFloorPlanByCode = require_asyncToGenerator._asyncToGenerator(function* (code, subscribe) {
|
|
62
59
|
const trimmed = code === null || code === void 0 ? void 0 : code.trim();
|
|
63
60
|
if (!trimmed) return null;
|
|
64
|
-
const
|
|
61
|
+
const _ref2 = subscribe !== null && subscribe !== void 0 ? subscribe : {}, { buildDefaultPostBody } = _ref2, subscribeRest = require_objectWithoutProperties._objectWithoutProperties(_ref2, _excluded);
|
|
65
62
|
const postCreateOrRecover = function() {
|
|
66
|
-
var
|
|
63
|
+
var _ref3 = require_asyncToGenerator._asyncToGenerator(function* () {
|
|
67
64
|
if (!buildDefaultPostBody) return null;
|
|
68
65
|
const body = buildDefaultPostBody(trimmed);
|
|
69
66
|
try {
|
|
70
67
|
return yield postShopFloorPlan(body);
|
|
71
68
|
} catch (e) {
|
|
72
69
|
if (require_shopFloorPlanPure.isFloorPlanDuplicateCodeError(e)) {
|
|
73
|
-
const { detail: again } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, subscribeRest);
|
|
70
|
+
const { detail: again } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, useShopApi, subscribeRest);
|
|
74
71
|
return again;
|
|
75
72
|
}
|
|
76
73
|
throw e;
|
|
77
74
|
}
|
|
78
75
|
});
|
|
79
76
|
return function postCreateOrRecover() {
|
|
80
|
-
return
|
|
77
|
+
return _ref3.apply(this, arguments);
|
|
81
78
|
};
|
|
82
79
|
}();
|
|
83
80
|
try {
|
|
84
|
-
const { res, detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, subscribeRest);
|
|
81
|
+
const { res, detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, useShopApi, subscribeRest);
|
|
85
82
|
if (detail) return detail;
|
|
86
83
|
if (require_shopFloorPlanPure.isShopFloorPlanNotFoundResponse(res)) return yield postCreateOrRecover();
|
|
87
84
|
return null;
|
|
@@ -96,17 +93,14 @@ function createShopFloorPlanClient(options) {
|
|
|
96
93
|
unsubscribeShopFloorPlanCodeQuery(subscriberId) {
|
|
97
94
|
return require_asyncToGenerator._asyncToGenerator(function* () {
|
|
98
95
|
if (!subscriberId) return;
|
|
99
|
-
yield http.get("/shop/schedule/floor-plan/code/unsubscribe", { subscriberId }, {
|
|
100
|
-
isShopApi: true,
|
|
101
|
-
osServer: true
|
|
102
|
-
});
|
|
96
|
+
yield http.get("/shop/schedule/floor-plan/code/unsubscribe", { subscriberId }, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, useShopApi ? { isShopApi: true } : {}), {}, { osServer: true }));
|
|
103
97
|
})();
|
|
104
98
|
},
|
|
105
99
|
getShopFloorPlanByCode(code, subscribe) {
|
|
106
100
|
return require_asyncToGenerator._asyncToGenerator(function* () {
|
|
107
101
|
const trimmed = code === null || code === void 0 ? void 0 : code.trim();
|
|
108
102
|
if (!trimmed) return null;
|
|
109
|
-
const { detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, subscribe);
|
|
103
|
+
const { detail } = yield fetchShopFloorPlanByCodeResponse(http, trimmed, useShopApi, subscribe);
|
|
110
104
|
return detail;
|
|
111
105
|
})();
|
|
112
106
|
},
|
|
@@ -114,12 +108,9 @@ function createShopFloorPlanClient(options) {
|
|
|
114
108
|
putShopFloorPlan(id, body) {
|
|
115
109
|
return require_asyncToGenerator._asyncToGenerator(function* () {
|
|
116
110
|
var _data2, _res$data;
|
|
117
|
-
const res = yield http.put(`/shop/schedule/floor-plan/${id}`, body, {
|
|
118
|
-
fullResult: true,
|
|
119
|
-
isShopApi: true
|
|
120
|
-
});
|
|
111
|
+
const res = yield http.put(`/shop/schedule/floor-plan/${id}`, body, require_objectSpread2._objectSpread2({ fullResult: true }, useShopApi ? { isShopApi: true } : {}));
|
|
121
112
|
if (!((res === null || res === void 0 ? void 0 : res.code) === 200 || (res === null || res === void 0 ? void 0 : res.status) === true || (res === null || res === void 0 || (_data2 = res.data) === null || _data2 === void 0 ? void 0 : _data2.status) === true)) {
|
|
122
|
-
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) ||
|
|
113
|
+
const msg = (res === null || res === void 0 ? void 0 : res.message) || (typeof (res === null || res === void 0 ? void 0 : res.data) === "object" && (res === null || res === void 0 ? void 0 : res.data) && "message" in res.data && typeof res.data.message === "string" ? res.data.message : null) || resolveSaveFailedMessage();
|
|
123
114
|
throw new Error(msg);
|
|
124
115
|
}
|
|
125
116
|
return (_res$data = res === null || res === void 0 ? void 0 : res.data) !== null && _res$data !== void 0 ? _res$data : res;
|
|
@@ -63,8 +63,15 @@ type ShopFloorPlanHttpAdapter = {
|
|
|
63
63
|
put: (url: string, body?: unknown, config?: Record<string, unknown>) => Promise<unknown>;
|
|
64
64
|
};
|
|
65
65
|
type CreateShopFloorPlanClientOptions = {
|
|
66
|
-
http: ShopFloorPlanHttpAdapter; /** POST/PUT 失败且无更具体 message
|
|
67
|
-
saveFailedMessage?: string;
|
|
66
|
+
http: ShopFloorPlanHttpAdapter; /** POST/PUT 失败且无更具体 message 时的兜底文案(静态;若需随语言切换请用 getSaveFailedMessage) */
|
|
67
|
+
saveFailedMessage?: string; /** 保存失败时按当前运行时语言解析兜底文案(优先于 saveFailedMessage) */
|
|
68
|
+
getSaveFailedMessage?: () => string;
|
|
69
|
+
/**
|
|
70
|
+
* 是否走宿主 shop request 通道(`isShopApi`)。
|
|
71
|
+
* 默认 true:本 client 仅用于 `/shop/schedule/floor-plan`;拓扑单次 GET(无订阅)也需 shop 路由。
|
|
72
|
+
* 仅在极少数非 shop 宿主探测场景传 false。
|
|
73
|
+
*/
|
|
74
|
+
useShopApi?: boolean;
|
|
68
75
|
};
|
|
69
76
|
/** ensure 流程可选:404 时 POST 创建体由调用方注入 */
|
|
70
77
|
type EnsureShopFloorPlanByCodeOptions = ShopFloorPlanByCodeRequestOptions & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VenueWallAppearanceTheme, VenueWallStatusToneOverrides } from "./shellFrame/ResourceWall/venueWallUtils.js";
|
|
2
|
+
import { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarSelectedFreeSlot, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardResourceWallProps, RecordBoardToolBarProps } from "./types.js";
|
|
2
3
|
import { RecordBoardGridView } from "./layouts/GridLayout/Grid.js";
|
|
3
4
|
import { GridLayout } from "./layouts/GridLayout/index.js";
|
|
4
5
|
import { RecordBoardCardList } from "./layouts/CardLayout/CardList.js";
|
|
@@ -13,6 +14,7 @@ import { RecordBoardResourceWall } from "./shellFrame/ResourceWall/RecordBoardRe
|
|
|
13
14
|
import { useRecordBoardShellBodyMeta } from "./shellFrame/ShellBodyMetaContext.js";
|
|
14
15
|
import { RecordBoardShellFrame } from "./shellFrame/index.js";
|
|
15
16
|
import { useRecordBoardContext } from "./hooks/useRecordBoardContext.js";
|
|
17
|
+
import { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY } from "./shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js";
|
|
16
18
|
import { AdaptColumnsForPhoneLayoutOptions, RECORD_BOARD_PHONE_GRID_CLASS, adaptColumnsForPhoneLayout } from "./utils/recordBoardPhoneGrid.js";
|
|
17
19
|
import React from "react";
|
|
18
20
|
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React from "react";
|
|
2
|
+
//#region src/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts
|
|
3
|
+
/** 与 {@link RecordBoardResourceWallProps.filterFieldKey} 默认一致 */
|
|
4
|
+
declare const DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY = "resource_wall_resource_ids";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY };
|
|
@@ -469,6 +469,8 @@ interface RecordBoardResourceWallLayoutPersist {
|
|
|
469
469
|
boardingSoonBeforeMin: number;
|
|
470
470
|
heroMaxWidthRatio: number;
|
|
471
471
|
}
|
|
472
|
+
/** {@link RecordBoardResourceWallLayoutPersist} 默认值,与 {@link PisellRecordBoardResourceWallView} 历史初始 state 一致 */
|
|
473
|
+
declare const DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST: RecordBoardResourceWallLayoutPersist;
|
|
472
474
|
/**
|
|
473
475
|
* 大屏资源墙视图 props;与 Shell 内 `PisellRecordBoard.ResourceWall` 合并(子优先)。
|
|
474
476
|
* 展示顺序默认由 `searchParams.filter.values[filterFieldKey]`(默认 `resource_wall_resource_ids`)非空 `string[]` 决定;
|
|
@@ -855,4 +857,4 @@ interface RecordBoardProps {
|
|
|
855
857
|
[key: string]: any;
|
|
856
858
|
}
|
|
857
859
|
//#endregion
|
|
858
|
-
export { RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarSelectedFreeSlot, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardResourceWallProps, RecordBoardToolBarProps };
|
|
860
|
+
export { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST, RecordBoardBlockedTimeMergedRange, RecordBoardBlockedTimePanelPayload, RecordBoardBodyView, RecordBoardBookingMoveDraft, RecordBoardCalendarBlockedTimePayload, RecordBoardCalendarBookingLike, RecordBoardCalendarBookingRenderArgs, RecordBoardCalendarDayOverlayBooking, RecordBoardCalendarProps, RecordBoardCalendarResource, RecordBoardCalendarResourceRenderArgs, RecordBoardCalendarSelectedFreeSlot, RecordBoardCalendarTimelineHeaderGroup, RecordBoardCalendarTimelineHeaderRenderContext, RecordBoardChildComponentProps, RecordBoardColumnFilterConfig, RecordBoardColumnType, RecordBoardContextValue, RecordBoardCreateBookingDayGroup, RecordBoardCreateBookingFromSelectionPayload, RecordBoardFieldType, RecordBoardFloorMapProps, RecordBoardGetOptions, RecordBoardGridProps, RecordBoardLayoutType, RecordBoardLayoutVariant, RecordBoardOptionItem, RecordBoardProps, RecordBoardResourceWallCardModel, RecordBoardResourceWallLayoutPersist, RecordBoardResourceWallProps, RecordBoardToolBarProps };
|
|
@@ -245,7 +245,7 @@ const WalletCard = (props) => {
|
|
|
245
245
|
const showCode = toBooleanValue(mergedProps.showCode);
|
|
246
246
|
const isLogin = toBooleanValue(mergedProps.isLogin);
|
|
247
247
|
const showViewPin = toBooleanValue(mergedProps === null || mergedProps === void 0 ? void 0 : mergedProps.showViewPin);
|
|
248
|
-
const { utils } = require_useEngineContext.default().appHelper || {};
|
|
248
|
+
const { utils, constants } = require_useEngineContext.default().appHelper || {};
|
|
249
249
|
const { isModalOpen, handleCodeClick, closeModal } = useCodeModal(cardNo, onCodeClick, codeType);
|
|
250
250
|
console.log("showViewPin", props);
|
|
251
251
|
const backgroundStyle = (0, react.useMemo)(() => {
|
|
@@ -253,7 +253,12 @@ const WalletCard = (props) => {
|
|
|
253
253
|
else {
|
|
254
254
|
var _props$walletGuideCon;
|
|
255
255
|
if ((props === null || props === void 0 || (_props$walletGuideCon = props.walletGuideConfig) === null || _props$walletGuideCon === void 0 ? void 0 : _props$walletGuideCon.backgroundColor) && isGuide || (props === null || props === void 0 ? void 0 : props.backgroundColor) && !isLogin) return { backgroundImage: "none" };
|
|
256
|
-
|
|
256
|
+
let staticUrl = constants === null || constants === void 0 ? void 0 : constants.staticURL;
|
|
257
|
+
if (!staticUrl) {
|
|
258
|
+
var _constants$config;
|
|
259
|
+
staticUrl = (constants === null || constants === void 0 || (_constants$config = constants.config) === null || _constants$config === void 0 ? void 0 : _constants$config.awsStatic) || "https://static.pisellcdn.com";
|
|
260
|
+
}
|
|
261
|
+
return { backgroundImage: `url(${staticUrl}/${mode === "dark" ? "dark_wallet.png" : "light_wallet.png"})` };
|
|
257
262
|
}
|
|
258
263
|
}, [
|
|
259
264
|
props.customBackgroundImage,
|