@pisell/private-materials 6.11.68 → 6.11.69
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/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/plus/pisellReservation/PisellReservation.js +31 -41
- package/es/plus/pisellReservation/floorPlanApi.js +3 -1
- package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +2 -0
- package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.js +4 -1
- package/es/plus/pisellReservation/hooks/usePisellReservationResourceTableData.d.ts +1 -1
- package/es/plus/pisellReservation/hooks/usePisellReservationResourceTableData.js +2 -1
- package/es/plus/pisellReservation/index.d.ts +1 -1
- package/es/plus/pisellReservation/index.js +1 -1
- package/es/plus/pisellReservation/locales-ja.d.ts +69 -0
- package/es/plus/pisellReservation/locales-ja.js +68 -0
- package/es/plus/pisellReservation/locales-pt.d.ts +69 -0
- package/es/plus/pisellReservation/locales-pt.js +68 -0
- package/es/plus/pisellReservation/locales.d.ts +161 -0
- package/es/plus/pisellReservation/locales.js +35 -4
- package/es/plus/pisellReservation/reservationCards.js +7 -4
- package/es/plus/pisellReservation/reservationConstants.d.ts +33 -0
- package/es/plus/pisellReservation/reservationConstants.js +4 -1
- package/es/plus/pisellReservation/reservationMock.d.ts +10 -4
- package/es/plus/pisellReservation/reservationMock.js +94 -39
- package/es/plus/pisellReservation/useReservationFloorMapMerged.d.ts +2 -0
- package/es/plus/pisellReservation/useReservationFloorMapMerged.js +8 -5
- package/es/plus/pisellReservation/useReservationFloorPlan.d.ts +2 -0
- package/es/plus/pisellReservation/useReservationFloorPlan.js +5 -4
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/utils.d.ts +1 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/plus/pisellReservation/PisellReservation.js +28 -64
- package/lib/plus/pisellReservation/floorPlanApi.js +7 -5
- package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +2 -0
- package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.js +4 -1
- package/lib/plus/pisellReservation/hooks/usePisellReservationResourceTableData.d.ts +1 -1
- package/lib/plus/pisellReservation/hooks/usePisellReservationResourceTableData.js +2 -1
- package/lib/plus/pisellReservation/index.d.ts +1 -1
- package/lib/plus/pisellReservation/index.js +2 -2
- package/lib/plus/pisellReservation/locales-ja.d.ts +69 -0
- package/lib/plus/pisellReservation/locales-ja.js +91 -0
- package/lib/plus/pisellReservation/locales-pt.d.ts +69 -0
- package/lib/plus/pisellReservation/locales-pt.js +91 -0
- package/lib/plus/pisellReservation/locales.d.ts +161 -0
- package/lib/plus/pisellReservation/locales.js +45 -4
- package/lib/plus/pisellReservation/reservationCards.js +7 -8
- package/lib/plus/pisellReservation/reservationConstants.d.ts +33 -0
- package/lib/plus/pisellReservation/reservationConstants.js +10 -0
- package/lib/plus/pisellReservation/reservationMock.d.ts +10 -4
- package/lib/plus/pisellReservation/reservationMock.js +106 -19
- package/lib/plus/pisellReservation/useReservationFloorMapMerged.d.ts +2 -0
- package/lib/plus/pisellReservation/useReservationFloorMapMerged.js +10 -4
- package/lib/plus/pisellReservation/useReservationFloorPlan.d.ts +2 -0
- package/lib/plus/pisellReservation/useReservationFloorPlan.js +4 -3
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/utils.d.ts +1 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lowcode/pisell-reservation/meta.ts +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,24 +16,46 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/plus/pisellReservation/reservationMock.ts
|
|
20
30
|
var reservationMock_exports = {};
|
|
21
31
|
__export(reservationMock_exports, {
|
|
22
32
|
RESERVATION_BOUND_TABLE_ELEMENT_KIND: () => RESERVATION_BOUND_TABLE_ELEMENT_KIND,
|
|
33
|
+
applyReservationFloorMapLiveLabels: () => applyReservationFloorMapLiveLabels,
|
|
23
34
|
defaultReservationSceneElements: () => defaultReservationSceneElements,
|
|
24
35
|
defaultReservationTableRows: () => defaultReservationTableRows,
|
|
25
36
|
getDefaultReservationFloorMapConfig: () => getDefaultReservationFloorMapConfig,
|
|
37
|
+
getReservationDataSourceFormColumns: () => getReservationDataSourceFormColumns,
|
|
26
38
|
getReservationFloorMapShellConfig: () => getReservationFloorMapShellConfig,
|
|
27
39
|
mergeFloorMapElementKindCategoriesWithDefaults: () => mergeFloorMapElementKindCategoriesWithDefaults,
|
|
28
40
|
mergeFloorMapElementKindsWithDefaults: () => mergeFloorMapElementKindsWithDefaults,
|
|
29
|
-
reservationDataSourceFormColumns: () => reservationDataSourceFormColumns,
|
|
30
41
|
reservationDataSourcePlacements: () => reservationDataSourcePlacements,
|
|
31
42
|
reservationPlacementsToSceneElements: () => reservationPlacementsToSceneElements
|
|
32
43
|
});
|
|
33
44
|
module.exports = __toCommonJS(reservationMock_exports);
|
|
34
45
|
var import_materials = require("@pisell/materials");
|
|
46
|
+
var import_utils = require("@pisell/utils");
|
|
47
|
+
var import_locales = __toESM(require("./locales"));
|
|
48
|
+
var PALETTE_IMAGE_BG_I18N_KEY = "pisell-reservation.floor-map.palette-image-bg";
|
|
49
|
+
var LEGACY_PALETTE_IMAGE_BG_LABELS = /* @__PURE__ */ new Set([
|
|
50
|
+
import_locales.default.en[PALETTE_IMAGE_BG_I18N_KEY],
|
|
51
|
+
import_locales.default["zh-CN"][PALETTE_IMAGE_BG_I18N_KEY],
|
|
52
|
+
import_locales.default["zh-HK"][PALETTE_IMAGE_BG_I18N_KEY],
|
|
53
|
+
"图片(底图)"
|
|
54
|
+
]);
|
|
55
|
+
var I18N_FLOOR_CATEGORY_BG = "pisell-reservation.floor-map.category-background";
|
|
56
|
+
var I18N_FLOOR_DS_LABEL = "pisell-reservation.floor-map.data-source-label";
|
|
57
|
+
var I18N_PALETTE_IMAGE_BG = PALETTE_IMAGE_BG_I18N_KEY;
|
|
58
|
+
var I18N_ROOM_KIND_BOUND = "pisell-reservation.room-kind-bound";
|
|
35
59
|
var LEGACY_IMAGE_ELEMENT_KIND_VALUES = /* @__PURE__ */ new Set([
|
|
36
60
|
"image",
|
|
37
61
|
"floorMapBg",
|
|
@@ -40,7 +64,7 @@ var LEGACY_IMAGE_ELEMENT_KIND_VALUES = /* @__PURE__ */ new Set([
|
|
|
40
64
|
function stripConflictingImageElementKinds(kinds) {
|
|
41
65
|
return kinds.filter((k) => {
|
|
42
66
|
if (LEGACY_IMAGE_ELEMENT_KIND_VALUES.has(k.value)) return false;
|
|
43
|
-
if (k.
|
|
67
|
+
if (k.value !== import_materials.FLOOR_MAP_IMAGE_ELEMENT_KIND && LEGACY_PALETTE_IMAGE_BG_LABELS.has(k.label)) {
|
|
44
68
|
return false;
|
|
45
69
|
}
|
|
46
70
|
return true;
|
|
@@ -81,6 +105,32 @@ function mergeFloorMapElementKindCategoriesWithDefaults(defaults, remote) {
|
|
|
81
105
|
}
|
|
82
106
|
return [...out].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
83
107
|
}
|
|
108
|
+
function applyReservationFloorMapLiveLabels(config) {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
const nextCats = (_a = config.elementKindCategories) == null ? void 0 : _a.map((c) => {
|
|
111
|
+
if (c.id === "background") {
|
|
112
|
+
return { ...c, label: import_utils.locales.getText(I18N_FLOOR_CATEGORY_BG) };
|
|
113
|
+
}
|
|
114
|
+
if (c.id === "dining") {
|
|
115
|
+
return { ...c, label: import_utils.locales.getText(I18N_FLOOR_DS_LABEL) };
|
|
116
|
+
}
|
|
117
|
+
return c;
|
|
118
|
+
});
|
|
119
|
+
const nextKinds = (_b = config.elementKinds) == null ? void 0 : _b.map((k) => {
|
|
120
|
+
if (k.value === import_materials.FLOOR_MAP_IMAGE_ELEMENT_KIND) {
|
|
121
|
+
return { ...k, label: import_utils.locales.getText(I18N_PALETTE_IMAGE_BG) };
|
|
122
|
+
}
|
|
123
|
+
if (k.value === RESERVATION_BOUND_TABLE_ELEMENT_KIND) {
|
|
124
|
+
return { ...k, label: import_utils.locales.getText(I18N_ROOM_KIND_BOUND) };
|
|
125
|
+
}
|
|
126
|
+
return k;
|
|
127
|
+
});
|
|
128
|
+
return {
|
|
129
|
+
...config,
|
|
130
|
+
elementKindCategories: nextCats ?? config.elementKindCategories,
|
|
131
|
+
elementKinds: nextKinds ?? config.elementKinds
|
|
132
|
+
};
|
|
133
|
+
}
|
|
84
134
|
var RESERVATION_CANVAS_NAME_MAIN = {
|
|
85
135
|
en: "Main Area",
|
|
86
136
|
"zh-CN": "主区域",
|
|
@@ -280,22 +330,32 @@ var defaultReservationTableRows = [
|
|
|
280
330
|
];
|
|
281
331
|
var DS = "tables";
|
|
282
332
|
var CANVAS_MAIN = "main";
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
333
|
+
function getReservationElementKindCategories() {
|
|
334
|
+
return [
|
|
335
|
+
{
|
|
336
|
+
id: "background",
|
|
337
|
+
label: import_utils.locales.getText(I18N_FLOOR_CATEGORY_BG),
|
|
338
|
+
order: 0
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
id: "dining",
|
|
342
|
+
label: import_utils.locales.getText(I18N_FLOOR_DS_LABEL),
|
|
343
|
+
order: 1
|
|
344
|
+
}
|
|
345
|
+
];
|
|
346
|
+
}
|
|
287
347
|
function getReservationPaletteElementKinds() {
|
|
288
348
|
return [
|
|
289
349
|
{
|
|
290
350
|
value: import_materials.FLOOR_MAP_IMAGE_ELEMENT_KIND,
|
|
291
|
-
label:
|
|
351
|
+
label: import_utils.locales.getText(I18N_PALETTE_IMAGE_BG),
|
|
292
352
|
categoryId: "background",
|
|
293
353
|
dataBindingPolicy: "none",
|
|
294
354
|
showInPalette: true
|
|
295
355
|
},
|
|
296
356
|
{
|
|
297
357
|
value: RESERVATION_BOUND_TABLE_ELEMENT_KIND,
|
|
298
|
-
label:
|
|
358
|
+
label: import_utils.locales.getText(I18N_ROOM_KIND_BOUND),
|
|
299
359
|
categoryId: "dining",
|
|
300
360
|
dataBindingPolicy: "optional",
|
|
301
361
|
allowedDataSourceKeys: [DS],
|
|
@@ -576,7 +636,7 @@ function getReservationFloorMapShellConfig() {
|
|
|
576
636
|
}
|
|
577
637
|
],
|
|
578
638
|
canvasUi: { canCreate: true, canEdit: true },
|
|
579
|
-
elementKindCategories:
|
|
639
|
+
elementKindCategories: getReservationElementKindCategories(),
|
|
580
640
|
elementKinds: getReservationPaletteElementKinds(),
|
|
581
641
|
sceneElements: []
|
|
582
642
|
};
|
|
@@ -604,29 +664,56 @@ function getDefaultReservationFloorMapConfig() {
|
|
|
604
664
|
}
|
|
605
665
|
],
|
|
606
666
|
canvasUi: { canCreate: true, canEdit: true },
|
|
607
|
-
elementKindCategories:
|
|
667
|
+
elementKindCategories: getReservationElementKindCategories(),
|
|
608
668
|
elementKinds: getReservationPaletteElementKinds(),
|
|
609
669
|
sceneElements: cloneSceneElements(defaultReservationSceneElements)
|
|
610
670
|
};
|
|
611
671
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
672
|
+
function getReservationDataSourceFormColumns() {
|
|
673
|
+
return [
|
|
674
|
+
{
|
|
675
|
+
key: "code",
|
|
676
|
+
label: import_utils.locales.getText("pisell-reservation.grid.code"),
|
|
677
|
+
type: "string"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
key: "guestName",
|
|
681
|
+
label: import_utils.locales.getText("pisell-reservation.grid.guest"),
|
|
682
|
+
type: "string"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
key: "time",
|
|
686
|
+
label: import_utils.locales.getText("pisell-reservation.grid.time"),
|
|
687
|
+
type: "string"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
key: "partySize",
|
|
691
|
+
label: import_utils.locales.getText("pisell-reservation.grid.party"),
|
|
692
|
+
type: "number"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
key: "cardStatus",
|
|
696
|
+
label: import_utils.locales.getText("pisell-reservation.resource-grid.card-status"),
|
|
697
|
+
type: "string"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
key: "area",
|
|
701
|
+
label: import_utils.locales.getText("pisell-reservation.grid.area"),
|
|
702
|
+
type: "string"
|
|
703
|
+
}
|
|
704
|
+
];
|
|
705
|
+
}
|
|
620
706
|
// Annotate the CommonJS export names for ESM import in node:
|
|
621
707
|
0 && (module.exports = {
|
|
622
708
|
RESERVATION_BOUND_TABLE_ELEMENT_KIND,
|
|
709
|
+
applyReservationFloorMapLiveLabels,
|
|
623
710
|
defaultReservationSceneElements,
|
|
624
711
|
defaultReservationTableRows,
|
|
625
712
|
getDefaultReservationFloorMapConfig,
|
|
713
|
+
getReservationDataSourceFormColumns,
|
|
626
714
|
getReservationFloorMapShellConfig,
|
|
627
715
|
mergeFloorMapElementKindCategoriesWithDefaults,
|
|
628
716
|
mergeFloorMapElementKindsWithDefaults,
|
|
629
|
-
reservationDataSourceFormColumns,
|
|
630
717
|
reservationDataSourcePlacements,
|
|
631
718
|
reservationPlacementsToSceneElements
|
|
632
719
|
});
|
|
@@ -38,5 +38,7 @@ export interface UseReservationFloorMapMergedParams {
|
|
|
38
38
|
mode: 'read' | 'edit';
|
|
39
39
|
dataSources: FloorMapDataSources;
|
|
40
40
|
}) => void;
|
|
41
|
+
/** 与引擎语言同步,避免 dataSourceLabels 等停留在首次渲染语言 */
|
|
42
|
+
engineLocale: string;
|
|
41
43
|
}
|
|
42
44
|
export declare function useReservationFloorMapMerged(params: UseReservationFloorMapMergedParams): Partial<import("@pisell/materials").PisellFloorMapLayoutProps<import("@pisell/materials").FloorMapItemBase>>;
|
|
@@ -33,9 +33,11 @@ __export(useReservationFloorMapMerged_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(useReservationFloorMapMerged_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
36
37
|
var import_floorPlanApi = require("./floorPlanApi");
|
|
37
38
|
var import_reservationMock = require("./reservationMock");
|
|
38
39
|
var import_PisellReservationSubcomponents = require("./PisellReservationSubcomponents");
|
|
40
|
+
var I18N_FLOOR_MAP_DATA_SOURCE_LABEL = "pisell-reservation.floor-map.data-source-label";
|
|
39
41
|
function useReservationFloorMapMerged(params) {
|
|
40
42
|
const {
|
|
41
43
|
floorMapProp,
|
|
@@ -60,13 +62,16 @@ function useReservationFloorMapMerged(params) {
|
|
|
60
62
|
floorMapLayoutRef,
|
|
61
63
|
reservationFloorMapViewportOverlay,
|
|
62
64
|
setRemoteFloorPlanView,
|
|
63
|
-
floorMapItemClickBefore
|
|
65
|
+
floorMapItemClickBefore,
|
|
66
|
+
engineLocale
|
|
64
67
|
} = params;
|
|
65
68
|
return (0, import_react.useMemo)(() => {
|
|
66
69
|
var _a;
|
|
67
|
-
const labels = {
|
|
70
|
+
const labels = {
|
|
71
|
+
[gridDataSourceKey]: import_utils.locales.getText(I18N_FLOOR_MAP_DATA_SOURCE_LABEL)
|
|
72
|
+
};
|
|
68
73
|
const forms = {
|
|
69
|
-
[gridDataSourceKey]: import_reservationMock.
|
|
74
|
+
[gridDataSourceKey]: (0, import_reservationMock.getReservationDataSourceFormColumns)()
|
|
70
75
|
};
|
|
71
76
|
const { getMergedItemWrapperStyle, ...floorRest } = floorMapProp ?? {};
|
|
72
77
|
const prevOnSave = floorRest.onSave;
|
|
@@ -175,7 +180,8 @@ function useReservationFloorMapMerged(params) {
|
|
|
175
180
|
mapEditInternal,
|
|
176
181
|
floorMapLayoutRef,
|
|
177
182
|
setRemoteFloorPlanView,
|
|
178
|
-
floorMapItemClickBefore
|
|
183
|
+
floorMapItemClickBefore,
|
|
184
|
+
engineLocale
|
|
179
185
|
]);
|
|
180
186
|
}
|
|
181
187
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -4,6 +4,8 @@ export declare function useReservationFloorPlan(options: {
|
|
|
4
4
|
effectiveFloorPlanCode: string;
|
|
5
5
|
gridDataSourceKey: string;
|
|
6
6
|
floorMapConfigFromProp?: FloorMapViewConfig;
|
|
7
|
+
/** 随引擎语言变化,刷新平面图调色板分组/图元/底图等展示文案(避免首次 memo 快照死为某一种语言) */
|
|
8
|
+
engineLocale: string;
|
|
7
9
|
}): {
|
|
8
10
|
baseFloorConfig: FloorMapViewConfig;
|
|
9
11
|
floorPlanRemoteId: number | null;
|
|
@@ -31,7 +31,8 @@ function useReservationFloorPlan(options) {
|
|
|
31
31
|
resolvedFloorPlanId,
|
|
32
32
|
effectiveFloorPlanCode,
|
|
33
33
|
gridDataSourceKey,
|
|
34
|
-
floorMapConfigFromProp
|
|
34
|
+
floorMapConfigFromProp,
|
|
35
|
+
engineLocale
|
|
35
36
|
} = options;
|
|
36
37
|
const [remoteFloorPlanView, setRemoteFloorPlanView] = (0, import_react.useState)(null);
|
|
37
38
|
const [floorPlanRemoteId, setFloorPlanRemoteId] = (0, import_react.useState)(
|
|
@@ -112,8 +113,8 @@ function useReservationFloorPlan(options) {
|
|
|
112
113
|
merged.elementKindCategories
|
|
113
114
|
)
|
|
114
115
|
};
|
|
115
|
-
return merged;
|
|
116
|
-
}, [floorMapConfigFromProp, remoteFloorPlanView]);
|
|
116
|
+
return (0, import_reservationMock.applyReservationFloorMapLiveLabels)(merged);
|
|
117
|
+
}, [floorMapConfigFromProp, remoteFloorPlanView, engineLocale]);
|
|
117
118
|
return {
|
|
118
119
|
baseFloorConfig,
|
|
119
120
|
floorPlanRemoteId,
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Capacity: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Capacity;
|
|
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const CardMask: ({ props }: {
|
|
5
5
|
props: SkuStatusOverlayConfig;
|
|
6
|
-
}) => string | number | true | React.
|
|
6
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
7
7
|
export default CardMask;
|
|
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const Countdown: ({ props }: {
|
|
5
5
|
props: ProductCardConfig;
|
|
6
|
-
}) => string | number | true | React.
|
|
6
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
7
7
|
export default Countdown;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Duration: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Duration;
|
|
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const MemberPrice: ({ props }: {
|
|
5
5
|
props: ProductCardConfig;
|
|
6
|
-
}) => string | number | true | React.
|
|
6
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
7
7
|
export default MemberPrice;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Resource: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Resource;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Stock: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Stock;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Time: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Time;
|
|
@@ -14,7 +14,7 @@ export declare const getSkuCardConfig: (finalConfig: ProductCardConfig) => {
|
|
|
14
14
|
paddingY: number;
|
|
15
15
|
paddingX: number;
|
|
16
16
|
isBorderVisible: boolean;
|
|
17
|
-
layoutDirection: "
|
|
17
|
+
layoutDirection: "column" | "row";
|
|
18
18
|
};
|
|
19
19
|
skuActionConfig: {
|
|
20
20
|
isOpen: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.69",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"react-resizable": "^3.0.5",
|
|
69
69
|
"styled-components": "^6.0.0-rc.3",
|
|
70
70
|
"@pisell/utils": "3.0.2",
|
|
71
|
-
"@pisell/
|
|
72
|
-
"@pisell/
|
|
73
|
-
"@pisell/
|
|
71
|
+
"@pisell/icon": "0.0.11",
|
|
72
|
+
"@pisell/materials": "6.11.19",
|
|
73
|
+
"@pisell/date-picker": "3.0.8"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"react": "^18.0.0",
|