@pisell/materials 1.8.54 → 1.8.56

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.
Files changed (151) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/async/view.js +1 -1
  5. package/build/lowcode/index.js +1 -1
  6. package/build/lowcode/meta.js +3 -3
  7. package/build/lowcode/preview.js +1 -1
  8. package/build/lowcode/render/default/async/view.js +1 -1
  9. package/build/lowcode/render/default/view.css +1 -1
  10. package/build/lowcode/render/default/view.js +37 -37
  11. package/build/lowcode/view.css +1 -1
  12. package/build/lowcode/view.js +37 -37
  13. package/es/components/buttonGroupPreview/index.js +8 -4
  14. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +207 -49
  15. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +33 -2
  16. package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +50 -2
  17. package/es/components/pisellFloorMapLayout/components/EdgeLayer.js +252 -0
  18. package/es/components/pisellFloorMapLayout/components/EdgeLayer.less +11 -0
  19. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +179 -29
  20. package/es/components/pisellFloorMapLayout/components/EditableItemLayer.less +0 -28
  21. package/es/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.js +131 -0
  22. package/es/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.less +65 -0
  23. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +5 -4
  24. package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +12 -1
  25. package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.js +8 -1
  26. package/es/components/pisellFloorMapLayout/components/FloorMapOverview.js +16 -8
  27. package/es/components/pisellFloorMapLayout/components/FloorMapOverview.less +69 -17
  28. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +290 -147
  29. package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +210 -11
  30. package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.js +81 -0
  31. package/es/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +8 -0
  32. package/es/components/pisellFloorMapLayout/components/FloorMapZoneElement.js +21 -0
  33. package/es/components/pisellFloorMapLayout/components/FloorMapZoneElement.less +74 -0
  34. package/es/components/pisellFloorMapLayout/components/ItemLayer.less +3 -1
  35. package/es/components/pisellFloorMapLayout/components/NodePortMarkers.js +70 -0
  36. package/es/components/pisellFloorMapLayout/components/NodePortMarkers.less +33 -0
  37. package/es/components/pisellFloorMapLayout/components/ViewControls.js +13 -5
  38. package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +2 -0
  39. package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +2 -1
  40. package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.js +1 -1
  41. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.js +340 -0
  42. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.js +102 -0
  43. package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +244 -84
  44. package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +54 -0
  45. package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.js +7 -4
  46. package/es/components/pisellFloorMapLayout/index.d.ts +5 -1
  47. package/es/components/pisellFloorMapLayout/locales-ja.js +14 -2
  48. package/es/components/pisellFloorMapLayout/locales-pt.js +14 -2
  49. package/es/components/pisellFloorMapLayout/locales.js +161 -8
  50. package/es/components/pisellFloorMapLayout/types.d.ts +86 -4
  51. package/es/components/pisellFloorMapLayout/types.js +5 -1
  52. package/es/components/pisellFloorMapLayout/utils/alignSnap.js +170 -0
  53. package/es/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.js +86 -0
  54. package/es/components/pisellFloorMapLayout/utils/edgeRouting.js +942 -0
  55. package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +7 -0
  56. package/es/components/pisellFloorMapLayout/utils/floorMapCanvasStage.js +23 -1
  57. package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +11 -2
  58. package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +20 -3
  59. package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +11 -5
  60. package/es/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.js +5 -3
  61. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +20 -0
  62. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.js +62 -0
  63. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +83 -0
  64. package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.js +29 -0
  65. package/es/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.js +51 -0
  66. package/es/components/productCard/cartSkuCard/components/BookingItem/index.js +14 -0
  67. package/es/components/productCard/cartSkuCard/components/BookingItem/index.less +32 -0
  68. package/es/components/productCard/cartSkuCard/components/resources/index.less +4 -0
  69. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
  70. package/es/components/productCard/cartSkuCard/index.js +17 -11
  71. package/es/components/productCard/lineItem/BookingLineItem.js +17 -6
  72. package/es/components/productCard/lineItem/components/Holders/index.js +51 -0
  73. package/es/components/productCard/lineItem/components/Holders/index.less +39 -0
  74. package/es/components/productCard/lineItem/components/Resources/index.js +45 -0
  75. package/es/components/productCard/lineItem/components/TimeRange/index.js +64 -0
  76. package/es/components/productCard/lineItem/index.js +5 -2
  77. package/es/components/productCard/lineItem/index.less +21 -10
  78. package/es/components/productCard/types.d.ts +1 -0
  79. package/es/index.d.ts +6 -2
  80. package/es/index.js +6 -2
  81. package/es/pisell-materials.tw.css +3 -0
  82. package/lib/components/buttonGroupPreview/index.js +8 -4
  83. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +206 -48
  84. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +33 -2
  85. package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +50 -2
  86. package/lib/components/pisellFloorMapLayout/components/EdgeLayer.js +255 -0
  87. package/lib/components/pisellFloorMapLayout/components/EdgeLayer.less +11 -0
  88. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +179 -29
  89. package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.less +0 -28
  90. package/lib/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.js +134 -0
  91. package/lib/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.less +65 -0
  92. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +4 -3
  93. package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +12 -1
  94. package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.js +8 -1
  95. package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.js +16 -8
  96. package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.less +69 -17
  97. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +287 -144
  98. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +210 -11
  99. package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.js +84 -0
  100. package/lib/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +8 -0
  101. package/lib/components/pisellFloorMapLayout/components/FloorMapZoneElement.js +23 -0
  102. package/lib/components/pisellFloorMapLayout/components/FloorMapZoneElement.less +74 -0
  103. package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +3 -1
  104. package/lib/components/pisellFloorMapLayout/components/NodePortMarkers.js +73 -0
  105. package/lib/components/pisellFloorMapLayout/components/NodePortMarkers.less +33 -0
  106. package/lib/components/pisellFloorMapLayout/components/ViewControls.js +12 -4
  107. package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +2 -0
  108. package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +2 -1
  109. package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.js +1 -1
  110. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.js +341 -0
  111. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.js +103 -0
  112. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +242 -82
  113. package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +54 -0
  114. package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.js +7 -4
  115. package/lib/components/pisellFloorMapLayout/index.d.ts +5 -1
  116. package/lib/components/pisellFloorMapLayout/locales-ja.js +14 -2
  117. package/lib/components/pisellFloorMapLayout/locales-pt.js +14 -2
  118. package/lib/components/pisellFloorMapLayout/locales.js +161 -8
  119. package/lib/components/pisellFloorMapLayout/types.d.ts +86 -4
  120. package/lib/components/pisellFloorMapLayout/types.js +5 -0
  121. package/lib/components/pisellFloorMapLayout/utils/alignSnap.js +170 -0
  122. package/lib/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.js +87 -0
  123. package/lib/components/pisellFloorMapLayout/utils/edgeRouting.js +956 -0
  124. package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +7 -0
  125. package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasStage.js +23 -0
  126. package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.js +11 -2
  127. package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js +21 -2
  128. package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.js +11 -5
  129. package/lib/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.js +5 -3
  130. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +20 -0
  131. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.js +64 -0
  132. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +83 -0
  133. package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.js +29 -0
  134. package/lib/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.js +54 -0
  135. package/lib/components/productCard/cartSkuCard/components/BookingItem/index.js +17 -0
  136. package/lib/components/productCard/cartSkuCard/components/BookingItem/index.less +32 -0
  137. package/lib/components/productCard/cartSkuCard/components/resources/index.less +4 -0
  138. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
  139. package/lib/components/productCard/cartSkuCard/index.js +17 -11
  140. package/lib/components/productCard/lineItem/BookingLineItem.js +17 -6
  141. package/lib/components/productCard/lineItem/components/Holders/index.js +53 -0
  142. package/lib/components/productCard/lineItem/components/Holders/index.less +39 -0
  143. package/lib/components/productCard/lineItem/components/Resources/index.js +47 -0
  144. package/lib/components/productCard/lineItem/components/TimeRange/index.js +67 -0
  145. package/lib/components/productCard/lineItem/index.js +5 -2
  146. package/lib/components/productCard/lineItem/index.less +21 -10
  147. package/lib/components/productCard/types.d.ts +1 -0
  148. package/lib/index.d.ts +6 -2
  149. package/lib/index.js +11 -0
  150. package/lib/pisell-materials.tw.css +3 -0
  151. package/package.json +6 -3
@@ -10,6 +10,9 @@ import Note from "../cartSkuCard/components/Note/index.js";
10
10
  import Footer from "../cartSkuCard/components/AmountFooter/index.js";
11
11
  import Promotion from "../cartSkuCard/components/Promotion/index.js";
12
12
  import Gift from "../cartSkuCard/components/Gift/index.js";
13
+ import LineItemTimeRange from "./components/TimeRange/index.js";
14
+ import LineItemResources from "./components/Resources/index.js";
15
+ import LineItemHolders from "./components/Holders/index.js";
13
16
  import React, { useMemo } from "react";
14
17
  import { locales } from "@pisell/utils";
15
18
  import { Button, Divider, Dropdown } from "antd";
@@ -25,6 +28,7 @@ const _excluded = [
25
28
  "rightActions",
26
29
  "escapeDom",
27
30
  "isShowImage",
31
+ "isFormSubject",
28
32
  "isShowDelete",
29
33
  "isShowNote",
30
34
  "isShowAmountFooter",
@@ -34,6 +38,7 @@ const _excluded = [
34
38
  "statusLoading",
35
39
  "statusDisabled",
36
40
  "isShowRelatedProduct",
41
+ "holderOptions",
37
42
  "onBookingStatusChange",
38
43
  "onAction",
39
44
  "onDelete",
@@ -75,8 +80,8 @@ const getResourceName = (booking, translationOriginal) => {
75
80
  }).filter(Boolean).join(", ");
76
81
  };
77
82
  const BookingLineItem = (props) => {
78
- var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _dataSource$promotion;
79
- const { dataSource, type, cartSkuType, relatedProductDataSource, rightActions = [], escapeDom, isShowImage, isShowDelete, isShowNote, isShowAmountFooter, disabledClick, disabledEdit, statusOptions = [], statusLoading = false, statusDisabled = false, isShowRelatedProduct = true, onBookingStatusChange, onAction, onDelete, onNote, onCard, onPromotion, onGift } = props, other = _objectWithoutProperties(props, _excluded);
83
+ var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _ref, _ref2, _dataSource$promotion;
84
+ const { dataSource, type, cartSkuType, relatedProductDataSource, rightActions = [], escapeDom, isShowImage, isFormSubject, isShowDelete, isShowNote, isShowAmountFooter, disabledClick, disabledEdit, statusOptions = [], statusLoading = false, statusDisabled = false, isShowRelatedProduct = true, holderOptions, onBookingStatusChange, onAction, onDelete, onNote, onCard, onPromotion, onGift } = props, other = _objectWithoutProperties(props, _excluded);
80
85
  const context = useEngineContext();
81
86
  const translationOriginal = context.appHelper.utils.translationOriginal;
82
87
  const locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getApp) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.locales) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getLocale) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.call(_context$appHelper$ut2)) || ((_context$appHelper$ut4 = context.appHelper.utils) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut4.storage) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.get("umi_locale")) || "en-US";
@@ -99,9 +104,11 @@ const BookingLineItem = (props) => {
99
104
  }
100
105
  };
101
106
  const bookingRightActions = isShowDelete ? [deleteAction, ...rightActions] : rightActions;
102
- const bookingTitle = String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.booking_id) || "-");
103
- const bookingTime = formatBookingTime(dataSource, locale);
104
- const resourceName = getResourceName(dataSource, translationOriginal) || "-";
107
+ const resolvedHolderOptions = (_ref = (_ref2 = holderOptions !== null && holderOptions !== void 0 ? holderOptions : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderOptions) !== null && _ref2 !== void 0 ? _ref2 : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holders) !== null && _ref !== void 0 ? _ref : [];
108
+ const resolvedIsFormSubject = isFormSubject !== null && isFormSubject !== void 0 ? isFormSubject : dataSource === null || dataSource === void 0 ? void 0 : dataSource.isFormSubject;
109
+ const bookingTitle = String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.booking_id) || "");
110
+ formatBookingTime(dataSource, locale);
111
+ getResourceName(dataSource, translationOriginal);
105
112
  const renderStatusButton = () => /* @__PURE__ */ React.createElement(Button, {
106
113
  className: `${PREFIX}__status`,
107
114
  htmlType: "button",
@@ -147,7 +154,11 @@ const BookingLineItem = (props) => {
147
154
  e.stopPropagation();
148
155
  onDelete === null || onDelete === void 0 || onDelete(dataSource);
149
156
  }
150
- }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-trash-01" })) : null))), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-detail` }, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-field` }, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-field-label` }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-marker-pin-01" }), /* @__PURE__ */ React.createElement("span", null, locales.getText("pisell2.line-item.resource"))), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-field-value` }, resourceName)), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-field` }, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-field-label` }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-clock" }), /* @__PURE__ */ React.createElement("span", null, locales.getText("pisell2.line-item.time"))), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-field-value` }, bookingTime || "-"))), isShowRelatedProduct && relatedProductDataSource ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Divider, { style: { margin: 0 } }), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__related-product` }, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__related-product-card` }, /* @__PURE__ */ React.createElement(BasicInfo, {
157
+ }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-trash-01" })) : null))), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__booking-detail` }, /* @__PURE__ */ React.createElement(LineItemTimeRange, { dataSource }), /* @__PURE__ */ React.createElement(LineItemResources, { dataSource }), resolvedIsFormSubject ? /* @__PURE__ */ React.createElement(LineItemHolders, {
158
+ dataSource,
159
+ holderOptions: resolvedHolderOptions,
160
+ isFormSubject: resolvedIsFormSubject
161
+ }) : null), isShowRelatedProduct && relatedProductDataSource ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Divider, { style: { margin: 0 } }), /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__related-product` }, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__related-product-card` }, /* @__PURE__ */ React.createElement(BasicInfo, {
151
162
  isShowImage,
152
163
  dataSource: relatedProductDataSource,
153
164
  type: cartSkuType,
@@ -0,0 +1,51 @@
1
+ import IconFont from "../../../../iconfont/index.js";
2
+ import React, { useMemo } from "react";
3
+ import { locales } from "@pisell/utils";
4
+ import "./index.less";
5
+ //#region src/components/productCard/lineItem/components/Holders/index.tsx
6
+ const PREFIX = "pisell-line-item";
7
+ const holderIconMap = {
8
+ form: "pisell2-file-05",
9
+ minors: "pisell2-user-check-01",
10
+ waiver: "pisell2-file-lock-03"
11
+ };
12
+ const isEmptyHolderId = (value) => {
13
+ if (Array.isArray(value)) return value.length === 0;
14
+ return value === void 0 || value === null || value === "";
15
+ };
16
+ const normalizeHolderIds = (value) => {
17
+ if (isEmptyHolderId(value)) return [];
18
+ return Array.isArray(value) ? value : [value];
19
+ };
20
+ const pickHolderId = (dataSource) => {
21
+ var _ref, _ref2, _dataSource$holder_id, _dataSource$metadata, _dataSource$_extend, _dataSource$_extend2;
22
+ return (_ref = (_ref2 = (_dataSource$holder_id = dataSource === null || dataSource === void 0 ? void 0 : dataSource.holder_id) !== null && _dataSource$holder_id !== void 0 ? _dataSource$holder_id : dataSource === null || dataSource === void 0 || (_dataSource$metadata = dataSource.metadata) === null || _dataSource$metadata === void 0 ? void 0 : _dataSource$metadata.holder_id) !== null && _ref2 !== void 0 ? _ref2 : dataSource === null || dataSource === void 0 || (_dataSource$_extend = dataSource._extend) === null || _dataSource$_extend === void 0 || (_dataSource$_extend = _dataSource$_extend.product) === null || _dataSource$_extend === void 0 || (_dataSource$_extend = _dataSource$_extend.metadata) === null || _dataSource$_extend === void 0 ? void 0 : _dataSource$_extend.holder_id) !== null && _ref !== void 0 ? _ref : dataSource === null || dataSource === void 0 || (_dataSource$_extend2 = dataSource._extend) === null || _dataSource$_extend2 === void 0 || (_dataSource$_extend2 = _dataSource$_extend2.product) === null || _dataSource$_extend2 === void 0 || (_dataSource$_extend2 = _dataSource$_extend2._extend) === null || _dataSource$_extend2 === void 0 ? void 0 : _dataSource$_extend2.holder_id;
23
+ };
24
+ const pickHolderMaxCount = (dataSource, holderIds) => {
25
+ var _ref3, _ref4, _ref5, _ref6, _ref7, _dataSource$holderMax, _dataSource$_extend3, _dataSource$_extend4, _dataSource$_extend5;
26
+ const count = ((_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_dataSource$holderMax = dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderMaxCount) !== null && _dataSource$holderMax !== void 0 ? _dataSource$holderMax : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holder_max_count) !== null && _ref7 !== void 0 ? _ref7 : dataSource === null || dataSource === void 0 ? void 0 : dataSource.number) !== null && _ref6 !== void 0 ? _ref6 : dataSource === null || dataSource === void 0 || (_dataSource$_extend3 = dataSource._extend) === null || _dataSource$_extend3 === void 0 || (_dataSource$_extend3 = _dataSource$_extend3.product) === null || _dataSource$_extend3 === void 0 ? void 0 : _dataSource$_extend3.num) !== null && _ref5 !== void 0 ? _ref5 : dataSource === null || dataSource === void 0 || (_dataSource$_extend4 = dataSource._extend) === null || _dataSource$_extend4 === void 0 || (_dataSource$_extend4 = _dataSource$_extend4.product) === null || _dataSource$_extend4 === void 0 ? void 0 : _dataSource$_extend4.product_quantity) !== null && _ref4 !== void 0 ? _ref4 : dataSource === null || dataSource === void 0 || (_dataSource$_extend5 = dataSource._extend) === null || _dataSource$_extend5 === void 0 || (_dataSource$_extend5 = _dataSource$_extend5.product) === null || _dataSource$_extend5 === void 0 || (_dataSource$_extend5 = _dataSource$_extend5._extend) === null || _dataSource$_extend5 === void 0 ? void 0 : _dataSource$_extend5.quantity) !== null && _ref3 !== void 0 ? _ref3 : holderIds.length) || 1;
27
+ return Number(count) || 1;
28
+ };
29
+ const LineItemHolders = (props) => {
30
+ const { dataSource = {}, holderOptions = [], isFormSubject } = props;
31
+ const holderIds = useMemo(() => normalizeHolderIds(pickHolderId(dataSource)), [dataSource]);
32
+ const holderMaxCount = pickHolderMaxCount(dataSource, holderIds);
33
+ const showUnassigned = Boolean(isFormSubject || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.isFormSubject));
34
+ const holderIcon = holderIconMap[(dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderType) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.holder_type) || "minors"] || holderIconMap.minors;
35
+ if (!holderIds.length) {
36
+ if (!showUnassigned) return null;
37
+ return /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__holders` }, /* @__PURE__ */ React.createElement("div", { className: "holder-item unassigned" }, holderMaxCount > 1 ? /* @__PURE__ */ React.createElement("span", null, holderMaxCount, "/", holderMaxCount, " ") : null, /* @__PURE__ */ React.createElement("span", { className: "holder-label" }, locales.getText("pisell2.cart.sku-card.unassigned"))));
38
+ }
39
+ const renderHolder = (id, index) => {
40
+ var _holder$label;
41
+ const holder = holderOptions.find((item) => String(item.id) === String(id));
42
+ const label = (_holder$label = holder === null || holder === void 0 ? void 0 : holder.label) !== null && _holder$label !== void 0 ? _holder$label : String(id);
43
+ return /* @__PURE__ */ React.createElement("div", {
44
+ className: "holder-item",
45
+ key: `${id}-${index}`
46
+ }, /* @__PURE__ */ React.createElement("span", { className: "holder-icon" }, /* @__PURE__ */ React.createElement(IconFont, { type: holderIcon })), /* @__PURE__ */ React.createElement("span", { className: "holder-label" }, label));
47
+ };
48
+ return /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__holders` }, holderIds.map((id, index) => renderHolder(id, index)));
49
+ };
50
+ //#endregion
51
+ export { LineItemHolders as default };
@@ -0,0 +1,39 @@
1
+ .pisell-line-item__holders {
2
+ user-select: none;
3
+ display: flex;
4
+ gap: 16px;
5
+ overflow: hidden;
6
+
7
+ .holder-item {
8
+ min-width: 30px;
9
+ display: flex;
10
+ align-items: center;
11
+ overflow: hidden;
12
+ white-space: nowrap;
13
+
14
+ .holder-icon {
15
+ margin-right: 2px;
16
+ color: #7f56da;
17
+ font-size: 16px;
18
+ }
19
+
20
+ .holder-label {
21
+ display: inline-block;
22
+ overflow: hidden;
23
+ color: #667085;
24
+ font-size: 14px;
25
+ font-weight: 500;
26
+ line-height: 20px;
27
+ text-overflow: ellipsis;
28
+ white-space: nowrap;
29
+ }
30
+ }
31
+
32
+ .unassigned {
33
+ color: red;
34
+
35
+ .holder-label {
36
+ color: red;
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { Tag } from "antd";
3
+ import "../../../cartSkuCard/components/resources/index.less";
4
+ //#region src/components/productCard/lineItem/components/Resources/index.tsx
5
+ const PREFIX = "pisell-cart-sku-card";
6
+ const ResourceTag = Tag;
7
+ const colors = [
8
+ "magenta",
9
+ "volcano",
10
+ "orange",
11
+ "gold",
12
+ "green",
13
+ "cyan",
14
+ "blue",
15
+ "geekblue",
16
+ "purple"
17
+ ];
18
+ function getColor(n) {
19
+ return colors[n * 31 % colors.length];
20
+ }
21
+ const getResourceLabel = (resource, fallbackLabel) => {
22
+ var _resource$metadata, _resource$metadata2;
23
+ return (resource === null || resource === void 0 || (_resource$metadata = resource.metadata) === null || _resource$metadata === void 0 ? void 0 : _resource$metadata.resource_name) || (resource === null || resource === void 0 || (_resource$metadata2 = resource.metadata) === null || _resource$metadata2 === void 0 ? void 0 : _resource$metadata2.form_name) || fallbackLabel || "";
24
+ };
25
+ const LineItemResources = (props) => {
26
+ const { dataSource = {} } = props;
27
+ const resources = Array.isArray(dataSource === null || dataSource === void 0 ? void 0 : dataSource.resources) ? dataSource.resources : [];
28
+ const fallbackResourceLabel = resources.length === 1 ? dataSource === null || dataSource === void 0 ? void 0 : dataSource.relation_form_name : "";
29
+ const resourceLabels = Array.isArray(dataSource === null || dataSource === void 0 ? void 0 : dataSource.resources) ? resources.map((resource, index) => ({
30
+ id: Number(resource === null || resource === void 0 ? void 0 : resource.form_id) || Number(resource === null || resource === void 0 ? void 0 : resource.relation_id) || index + 1,
31
+ label: getResourceLabel(resource, fallbackResourceLabel)
32
+ })) : [];
33
+ if (!resourceLabels.length && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.relation_form_name)) resourceLabels.push({
34
+ id: 1,
35
+ label: dataSource.relation_form_name
36
+ });
37
+ if (!resourceLabels.length) return null;
38
+ return /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__resources` }, resourceLabels.map((resource) => /* @__PURE__ */ React.createElement(ResourceTag, {
39
+ key: `${resource.id}-${resource.label}`,
40
+ color: getColor(resource.id),
41
+ className: "resource-tag"
42
+ }, resource.label)));
43
+ };
44
+ //#endregion
45
+ export { LineItemResources as default };
@@ -0,0 +1,64 @@
1
+ import IconFont from "../../../../iconfont/index.js";
2
+ import useEngineContext from "../../../../../hooks/useEngineContext.js";
3
+ import React, { useMemo } from "react";
4
+ import { locales } from "@pisell/utils";
5
+ import dayjs from "dayjs";
6
+ import "dayjs/locale/zh-cn";
7
+ import "dayjs/locale/en";
8
+ import "dayjs/locale/ja";
9
+ import "dayjs/locale/pt";
10
+ import "dayjs/locale/zh-tw";
11
+ import "../../../cartSkuCard/components/timeRange/index.less";
12
+ //#region src/components/productCard/lineItem/components/TimeRange/index.tsx
13
+ const localeTypes = {
14
+ "en-US": "en",
15
+ "zh-CN": "zh-cn",
16
+ "zh-HK": "zh-tw",
17
+ ja: "ja",
18
+ pt: "pt"
19
+ };
20
+ const PREFIX = "pisell-cart-sku-card";
21
+ const formatMultiDayDate = (start, end, isEn) => {
22
+ const format = isEn ? "ddd, DD/MM/YYYY" : "YYYY-MM-DD,ddd";
23
+ return `${start.format(format)} ~ ${end.format(format)}`;
24
+ };
25
+ const formatBookingTime = (booking, locale) => {
26
+ const start = dayjs((booking === null || booking === void 0 ? void 0 : booking.start_time) ? `${(booking === null || booking === void 0 ? void 0 : booking.start_date) || ""} ${booking.start_time}` : booking === null || booking === void 0 ? void 0 : booking.start_date);
27
+ const end = dayjs((booking === null || booking === void 0 ? void 0 : booking.end_time) ? `${(booking === null || booking === void 0 ? void 0 : booking.end_date) || ""} ${booking.end_time}` : booking === null || booking === void 0 ? void 0 : booking.end_date);
28
+ if (!start.isValid() || !end.isValid()) return "";
29
+ const isEn = locale === "en-US" || locale === "en";
30
+ const durationType = (booking === null || booking === void 0 ? void 0 : booking.sub_type) || (booking === null || booking === void 0 ? void 0 : booking.duration_type);
31
+ const startTime = (booking === null || booking === void 0 ? void 0 : booking.start_time) || start.format("HH:mm");
32
+ const endTime = (booking === null || booking === void 0 ? void 0 : booking.end_time) || end.format("HH:mm");
33
+ if (durationType === "days" && !start.isSame(end, "day")) {
34
+ const duration = end.diff(start, "day");
35
+ return `${formatMultiDayDate(start, end, isEn)} (${duration}${locales.getText("pisell2.product.card.day")(duration)})`;
36
+ }
37
+ const dateFormat = isEn ? "DD/MM/YYYY" : "YYYY-MM-DD";
38
+ const dateTime = start.isSame(end, "day") ? isEn ? `${startTime} ~ ${endTime} ${start.format(dateFormat)}` : `${start.format(dateFormat)} ${startTime} ~ ${endTime}` : isEn ? `${startTime} ${start.format(dateFormat)} ~ ${endTime} ${end.format(dateFormat)}` : `${start.format(dateFormat)} ${startTime} ~ ${end.format(dateFormat)} ${endTime}`;
39
+ if (!durationType) return dateTime;
40
+ if (durationType === "minutes" || durationType === "flexible") {
41
+ const duration = end.diff(start, "minute");
42
+ const hours = Math.floor(duration / 60);
43
+ const minutes = duration % 60;
44
+ return `${dateTime} (${locales.getText("pisell2.product.card.hour.minute")(hours, minutes)})`;
45
+ }
46
+ return `${dateTime} (${end.diff(start, durationType)})`;
47
+ };
48
+ const LineItemTimeRange = (props) => {
49
+ var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4;
50
+ const { dataSource = {} } = props;
51
+ const context = useEngineContext();
52
+ const locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getApp) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.locales) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getLocale) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.call(_context$appHelper$ut2)) || ((_context$appHelper$ut4 = context.appHelper.utils) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut4.storage) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.get("umi_locale")) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.locale) || "en-US";
53
+ const serviceTime = useMemo(() => {
54
+ dayjs.locale(localeTypes[locale]);
55
+ return formatBookingTime(dataSource, locale);
56
+ }, [dataSource, locale]);
57
+ if (!serviceTime) return null;
58
+ return /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__time-range` }, /* @__PURE__ */ React.createElement(IconFont, {
59
+ className: "time-icon",
60
+ type: "pisell2-clock"
61
+ }), serviceTime);
62
+ };
63
+ //#endregion
64
+ export { LineItemTimeRange as default };
@@ -26,6 +26,7 @@ const _excluded = [
26
26
  "statusLoading",
27
27
  "statusDisabled",
28
28
  "isShowRelatedProduct",
29
+ "holderOptions",
29
30
  "onBookingStatusChange",
30
31
  "onAction",
31
32
  "onDelete",
@@ -74,7 +75,7 @@ const convertBundle = (bundle, translationOriginal) => {
74
75
  });
75
76
  };
76
77
  const convertProductToLineItemProduct = (product, translationOriginal, symbol) => {
77
- var _product$metadata, _ref, _product$num, _ref2, _product$num2, _product$metadata$sou, _product$metadata2, _product$payment_pric, _product$metadata3, _product$product_sku, _ref3, _product$num3;
78
+ var _product$metadata, _ref, _product$num, _ref2, _product$num2, _product$metadata$sou, _product$metadata2, _product$payment_pric, _product$metadata3, _product$discount_lis, _product$discount_lis2, _product$metadata4, _product$product_sku, _ref3, _product$num3;
78
79
  const title = translateText(product.product_title || product.title, translationOriginal);
79
80
  const bundle = (product.product_bundle || []).map((bundleItem) => convertBundle(bundleItem, translationOriginal));
80
81
  return {
@@ -105,6 +106,7 @@ const convertProductToLineItemProduct = (product, translationOriginal, symbol) =
105
106
  product_option_string: product.product_sku ? translateText(product.product_sku.subtitle, translationOriginal) : "",
106
107
  discount_list: product.discount_list,
107
108
  promotions: product.promotions,
109
+ discount_reason: (_product$discount_lis = (_product$discount_lis2 = product.discount_list) === null || _product$discount_lis2 === void 0 || (_product$discount_lis2 = _product$discount_lis2.find((d) => (d === null || d === void 0 ? void 0 : d.type) === "product")) === null || _product$discount_lis2 === void 0 || (_product$discount_lis2 = _product$discount_lis2.discount) === null || _product$discount_lis2 === void 0 ? void 0 : _product$discount_lis2.message) !== null && _product$discount_lis !== void 0 ? _product$discount_lis : (_product$metadata4 = product.metadata) === null || _product$metadata4 === void 0 ? void 0 : _product$metadata4.product_discount_reason,
108
110
  isGift: Boolean(product.gift_card),
109
111
  giftData: product.giftData,
110
112
  _origin: product,
@@ -125,7 +127,7 @@ const convertProductToLineItemProduct = (product, translationOriginal, symbol) =
125
127
  };
126
128
  const LineItem = (props) => {
127
129
  var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _dataSource$_extend2;
128
- const { dataSource = defaultValue.dataSource, itemType, type = "a9", rightActions = [], escapeDom, isShowImage = defaultValue.isShowImage, isShowDelete = defaultValue.isShowDelete, isShowNote = defaultValue.isShowNote, isShowAmountFooter = defaultValue.isShowAmountFooter, disabledClick = defaultValue.disabledClick, disabledEdit = defaultValue.disabledEdit, statusOptions = [], statusLoading = false, statusDisabled = false, isShowRelatedProduct = true, onBookingStatusChange, onAction, onDelete, onNote, onCard, onPromotion, onGift } = props, other = _objectWithoutProperties(props, _excluded);
130
+ const { dataSource = defaultValue.dataSource, itemType, type = "a9", rightActions = [], escapeDom, isShowImage = defaultValue.isShowImage, isShowDelete = defaultValue.isShowDelete, isShowNote = defaultValue.isShowNote, isShowAmountFooter = defaultValue.isShowAmountFooter, disabledClick = defaultValue.disabledClick, disabledEdit = defaultValue.disabledEdit, statusOptions = [], statusLoading = false, statusDisabled = false, isShowRelatedProduct = true, holderOptions, onBookingStatusChange, onAction, onDelete, onNote, onCard, onPromotion, onGift } = props, other = _objectWithoutProperties(props, _excluded);
129
131
  const context = useEngineContext();
130
132
  const translationOriginal = context.appHelper.utils.translationOriginal;
131
133
  const symbol = context.appHelper.utils.getSymbolic();
@@ -182,6 +184,7 @@ const LineItem = (props) => {
182
184
  statusLoading,
183
185
  statusDisabled,
184
186
  isShowRelatedProduct,
187
+ holderOptions,
185
188
  onBookingStatusChange,
186
189
  onAction,
187
190
  onDelete,
@@ -18,10 +18,10 @@
18
18
  &__delete-btn {
19
19
  width: 34px;
20
20
  height: 34px;
21
- border: 1px solid rgba(255, 255, 255, 0.35);
21
+ border: 1px solid var(--Gray-300, #d0d5dd);
22
22
  border-radius: 8px;
23
- background: rgba(255, 255, 255, 0.12);
24
- color: #fff;
23
+ background: var(--Gray-100, #f2f4f7);
24
+ color: var(--Gray-500, #667085);
25
25
  cursor: pointer;
26
26
  padding: 0;
27
27
  display: inline-flex;
@@ -87,10 +87,10 @@
87
87
  }
88
88
 
89
89
  &__status {
90
- border: 1px solid #0f1d40;
90
+ border: 1px solid rgba(16, 24, 40, 0.12);
91
91
  border-radius: 8px;
92
- background: #0f1d40;
93
- color: #fff;
92
+ background: rgba(255, 255, 255, 0.72);
93
+ color: #101828;
94
94
  display: inline-flex;
95
95
  align-items: center;
96
96
  justify-content: center;
@@ -103,13 +103,25 @@
103
103
  line-height: 20px;
104
104
  cursor: pointer;
105
105
  flex-shrink: 0;
106
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
106
107
 
107
108
  .pisell-lowcodeicon-down,
108
109
  .anticon {
109
110
  font-size: 12px;
110
111
  }
111
112
 
113
+ &:hover,
114
+ &:focus,
115
+ &:active {
116
+ border-color: rgba(16, 24, 40, 0.18);
117
+ background: rgba(255, 255, 255, 0.86);
118
+ color: #101828;
119
+ }
120
+
112
121
  &:disabled {
122
+ border-color: rgba(16, 24, 40, 0.12);
123
+ background: rgba(255, 255, 255, 0.72);
124
+ color: #101828;
113
125
  cursor: default;
114
126
  }
115
127
  }
@@ -130,11 +142,10 @@
130
142
  }
131
143
 
132
144
  &__booking-detail {
133
- display: grid;
134
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
135
- gap: 12px 24px;
145
+ display: flex;
146
+ flex-direction: column;
147
+ gap: 4px;
136
148
  padding: 8px;
137
- background: #fff;
138
149
  }
139
150
 
140
151
  &__booking-field {
@@ -66,6 +66,7 @@ type productType = {
66
66
  */
67
67
  type ProductCardTypes = {
68
68
  dataSource: productType;
69
+ isFormSubject?: boolean;
69
70
  isShowImage?: boolean;
70
71
  isShowOriginalPrice?: boolean;
71
72
  isShowHolder?: boolean;
package/es/index.d.ts CHANGED
@@ -30,7 +30,8 @@ import { PisellBasicGridProps } from "./components/PisellBasicGrid/types.js";
30
30
  import { MemoizedPisellBasicGrid } from "./components/PisellBasicGrid/PisellBasicGrid.js";
31
31
  import { PisellScrollViewProps } from "./components/PisellScrollView/types.js";
32
32
  import { PisellScrollView } from "./components/PisellScrollView/PisellScrollView.js";
33
- import { FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, FloorMapDataSources, FloorMapElementKindCategory, FloorMapElementKindConfig, FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, FloorMapMergedItem, FloorMapRenderOptions, FloorMapSceneElement, FloorMapViewConfig, FloorMapViewportOverlayRenderArgs, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "./components/pisellFloorMapLayout/types.js";
33
+ import { FloorMapResourcePickerSlotProps, PisellCardPickerCardMeta, PisellCardPickerCategoryConfig, PisellCardPickerCategoryLevelConfig, PisellCardPickerCategoryMode, PisellCardPickerCategoryPath, PisellCardPickerItem, PisellCardPickerMode, parseNestedPathSegments } from "./components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.js";
34
+ import { FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, FLOOR_MAP_ZONE_ELEMENT_KIND, FloorMapDataSources, FloorMapEdge, FloorMapEdgeAnchor, FloorMapEdgeStatus, FloorMapElementKindCategory, FloorMapElementKindConfig, FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, FloorMapMergedItem, FloorMapRenderOptions, FloorMapSceneElement, FloorMapViewConfig, FloorMapViewportOverlayRenderArgs, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "./components/pisellFloorMapLayout/types.js";
34
35
  import { PisellFloorMapLayout } from "./components/pisellFloorMapLayout/PisellFloorMapLayout.js";
35
36
  import { renderFloorMapFallbackPlaceholder } from "./components/pisellFloorMapLayout/utils/floorMapFallbackRender.js";
36
37
  import { isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind } from "./components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js";
@@ -45,8 +46,11 @@ import { sceneElementsToShopLayout, shopLayoutToSceneElements } from "./componen
45
46
  import { WrapFloorMapOnSaveWithRemotePersistParams, wrapFloorMapOnSaveWithRemotePersist } from "./components/pisellFloorMapLayout/utils/floorMapRemotePersist.js";
46
47
  import { EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, FloorMapLayoutProvider, FloorMapLayoutProviderProps, useFloorMapLayoutContext } from "./components/pisellFloorMapLayout/context/FloorMapLayoutContext.js";
47
48
  import { mergeFloorMapLayoutPropsFromContext } from "./components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js";
49
+ import { FloorMapResourcePickerRecord, floorMapResourcePickerRecordSearchText, getFloorMapCardPickerCategoryConfig, getFloorMapResourcePickerCardMeta } from "./components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.js";
50
+ import { initFloorMapLayoutLocales } from "./components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js";
48
51
  import { FloorMapImageElement } from "./components/pisellFloorMapLayout/components/FloorMapImageElement.js";
49
52
  import { FloorMapBuiltinShapeElement } from "./components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.js";
53
+ import { FloorMapZoneElement } from "./components/pisellFloorMapLayout/components/FloorMapZoneElement.js";
50
54
  import { getFigmaTableCardFromMerged, getRenderItemByKindRoundTable, getRenderItemByKindTable, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard } from "./components/pisellFloorMapLayout/components/FigmaTableCard.js";
51
55
  import { CompoundedComponent, PisellLayout, PisellLayoutProps } from "./components/pisellLayout/index.js";
52
56
  import { PisellContent } from "./components/pisellLayout/content.js";
@@ -265,4 +269,4 @@ import { Number } from "./components/virtual-keyboard/Number/index.js";
265
269
  import { VirtualInput } from "./components/virtualInput/index.js";
266
270
  import { WalletCard } from "./components/walletCard/index.js";
267
271
  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";
268
- export { 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 CountryCode, type CreateShopFloorPlanClientOptions, CropPhoto, type CursorMode, CustomSelect, 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, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, Filter, type FloorMapBindingPlaceholderReason, FloorMapBuiltinShapeElement, type FloorMapDataSourceRow, type FloorMapDataSources, type FloorMapElementKindCategory, type FloorMapElementKindConfig, type FloorMapFullscreenMode, FloorMapImageElement, type FloorMapItemBase, type FloorMapLayoutContextValue, FloorMapLayoutProvider, type FloorMapLayoutProviderProps, type FloorMapMergedItem, type FloorMapRenderOptions, type FloorMapSceneElement, 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, _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, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, type PisellBasicCardProps, MemoizedPisellBasicGrid as PisellBasicGrid, type PisellBasicGridProps, PisellBatchActionBar, type PisellBatchActionBarProps, PisellCard, _default$9 as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, _default$11 as PisellEmail, type PisellEmailProps, PisellEmpty, 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, 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, PisellRecordBoardResourceWallView, 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 RecordBoardBlockedTimeMergedRange, type RecordBoardBlockedTimePanelPayload, type RecordBoardBodyView, type RecordBoardBookingMoveDraft, type RecordBoardCalendarBlockedTimePayload, type RecordBoardCalendarBookingLike, type RecordBoardCalendarBookingRenderArgs, type RecordBoardCalendarDayOverlayBooking, type RecordBoardCalendarProps, type RecordBoardCalendarResource, type RecordBoardCalendarResourceRenderArgs, type RecordBoardCalendarSelectedFreeSlot, type RecordBoardCalendarTimelineHeaderGroup, type RecordBoardCalendarTimelineHeaderRenderContext, type RecordBoardChildComponentProps, type RecordBoardColumnType, type RecordBoardContextValue, type RecordBoardCreateBookingDayGroup, type RecordBoardCreateBookingFromSelectionPayload, type RecordBoardLayoutVariant, type RecordBoardProps, type RecordBoardResourceWallCardModel, type RecordBoardResourceWallLayoutPersist, type RecordBoardResourceWallProps, type RecordBoardToolBarProps, _default$19 as RecordView, type ReservationScheduleBandValue, type ReservationScheduleValue, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SafeAreaTop, 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 VenueWallAppearanceSlot, type VenueWallAppearanceTheme, type VenueWallStatusKey, type VenueWallStatusTone, type VenueWallStatusToneOverrides, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, type WrapFloorMapOnSaveWithRemotePersistParams, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, inferCanvasSizeFromScene, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, pickReferenceDateContainingNow, _default$21 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
272
+ export { 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 CountryCode, type CreateShopFloorPlanClientOptions, CropPhoto, type CursorMode, CustomSelect, 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, FLOOR_MAP_BUILTIN_SHAPES, FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, FLOOR_MAP_ZONE_ELEMENT_KIND, Filter, type FloorMapBindingPlaceholderReason, FloorMapBuiltinShapeElement, 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, type FloorMapViewConfig, type FloorMapViewportOverlayRenderArgs, FloorMapZoneElement, _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, _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, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, PisellAppCard, type PisellAppCardProps, PisellAvatar, 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, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, type PisellCurrencyProps, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, _default$10 as PisellDateTimeDisplay, type PisellDateTimeDisplayProps, Demo as PisellDraggable, PisellDropSort, PisellDropdown, _default$11 as PisellEmail, type PisellEmailProps, PisellEmpty, 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, 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, PisellRecordBoardResourceWallView, 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 RecordBoardBlockedTimeMergedRange, type RecordBoardBlockedTimePanelPayload, type RecordBoardBodyView, type RecordBoardBookingMoveDraft, type RecordBoardCalendarBlockedTimePayload, type RecordBoardCalendarBookingLike, type RecordBoardCalendarBookingRenderArgs, type RecordBoardCalendarDayOverlayBooking, type RecordBoardCalendarProps, type RecordBoardCalendarResource, type RecordBoardCalendarResourceRenderArgs, type RecordBoardCalendarSelectedFreeSlot, type RecordBoardCalendarTimelineHeaderGroup, type RecordBoardCalendarTimelineHeaderRenderContext, type RecordBoardChildComponentProps, type RecordBoardColumnType, type RecordBoardContextValue, type RecordBoardCreateBookingDayGroup, type RecordBoardCreateBookingFromSelectionPayload, type RecordBoardLayoutVariant, type RecordBoardProps, type RecordBoardResourceWallCardModel, type RecordBoardResourceWallLayoutPersist, type RecordBoardResourceWallProps, type RecordBoardToolBarProps, _default$19 as RecordView, type ReservationScheduleBandValue, type ReservationScheduleValue, Result, Row, SHOP_FLOOR_PLAN_DUPLICATE_CODE, SafeAreaTop, 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 VenueWallAppearanceSlot, type VenueWallAppearanceTheme, type VenueWallStatusKey, type VenueWallStatusTone, type VenueWallStatusToneOverrides, VirtualInput, VirtualKeyboard, VirtualKeyboardTime, WalletCard, type WrapFloorMapOnSaveWithRemotePersistParams, adaptColumnsForPhoneLayout, buildCalendarHourSlotsFromRange, buildCalendarTimelineSlotStartsFromRange, buildFloorPlanPutBody, buildNameAsTitleExtensionsPatch, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, _default$21 as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
package/es/index.js CHANGED
@@ -32,10 +32,12 @@ import CardMetricItem from "./components/cardMetricItem/index.js";
32
32
  import PisellMetrics from "./components/PisellMetrics/index.js";
33
33
  import MemoizedPisellBasicGrid from "./components/PisellBasicGrid/PisellBasicGrid.js";
34
34
  import PisellScrollView_default from "./components/PisellScrollView/index.js";
35
- import { FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND } from "./components/pisellFloorMapLayout/types.js";
35
+ import { FLOOR_MAP_BUILTIN_SHAPE_ELEMENT_KIND, FLOOR_MAP_IMAGE_ELEMENT_KIND, FLOOR_MAP_STAGE_ELEMENT_KIND, FLOOR_MAP_ZONE_ELEMENT_KIND } from "./components/pisellFloorMapLayout/types.js";
36
36
  import { FLOOR_MAP_BUILTIN_SHAPES, getFloorMapBuiltinShapeDef } from "./components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.js";
37
37
  import { isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind } from "./components/pisellFloorMapLayout/utils/floorMapElementKindUtils.js";
38
+ import { initFloorMapLayoutLocales } from "./components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.js";
38
39
  import { NAME_AS_TITLE_EXT_KEY, buildNameAsTitleExtensionsPatch, isElementNameAsTitleEnabled, resolveSceneElementDisplayTitle } from "./components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js";
40
+ import { FloorMapZoneElement } from "./components/pisellFloorMapLayout/components/FloorMapZoneElement.js";
39
41
  import { FloorMapImageElement } from "./components/pisellFloorMapLayout/components/FloorMapImageElement.js";
40
42
  import { FloorMapBuiltinShapeElement } from "./components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.js";
41
43
  import { renderFloorMapFallbackPlaceholder } from "./components/pisellFloorMapLayout/utils/floorMapFallbackRender.js";
@@ -49,6 +51,8 @@ import { createShopFloorPlanClient } from "./components/pisellFloorMapLayout/sho
49
51
  import { sceneElementsToShopLayout, shopLayoutToSceneElements } from "./components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.js";
50
52
  import { useShopFloorPlanSubscription } from "./components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.js";
51
53
  import { wrapFloorMapOnSaveWithRemotePersist } from "./components/pisellFloorMapLayout/utils/floorMapRemotePersist.js";
54
+ import { parseNestedPathSegments } from "./components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.js";
55
+ import { floorMapResourcePickerRecordSearchText, getFloorMapCardPickerCategoryConfig, getFloorMapResourcePickerCardMeta } from "./components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.js";
52
56
  import { getFigmaTableCardFromMerged, getRenderItemByKindRoundTable, getRenderItemByKindTable, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard } from "./components/pisellFloorMapLayout/components/FigmaTableCard.js";
53
57
  import PisellLayout from "./components/pisellLayout/index.js";
54
58
  import PisellContent from "./components/pisellLayout/content.js";
@@ -235,4 +239,4 @@ import VirtualInput from "./components/virtualInput/index.js";
235
239
  import WalletCard from "./components/walletCard/index.js";
236
240
  import "./pisell-materials.tw.css";
237
241
  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";
238
- 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_STAGE_ELEMENT_KIND, Filter, FloorMapBuiltinShapeElement, FloorMapImageElement, FloorMapLayoutProvider, 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, 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, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, pisellAppCard_default as PisellAppCard, PisellAvatar, MemoizedPisellBasicGrid as PisellBasicGrid, PisellBatchActionBar, PisellCard, pisellCardList_default as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, PisellDateTimeDisplay_default as PisellDateTimeDisplay, Demo as PisellDraggable, pisellDropSort_default as PisellDropSort, PisellDropdown, PisellEmail_default as PisellEmail, PisellEmpty, PisellFields, PisellFilter, PisellFind, PisellFloatingPanel, PisellFloorMapLayout, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, Provider$2 as PisellImageCard, PisellImageCarousels, 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, PisellRecordBoardResourceWallView, 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, SafeAreaTop, 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, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, inferCanvasSizeFromScene, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, pickReferenceDateContainingNow, locales_default as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };
242
+ 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_STAGE_ELEMENT_KIND, FLOOR_MAP_ZONE_ELEMENT_KIND, Filter, FloorMapBuiltinShapeElement, FloorMapImageElement, FloorMapLayoutProvider, FloorMapZoneElement, 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, 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, PisellAdjustPrice, PisellAdjustPriceInputNumber, PisellAlert, PisellAnchor, pisellAppCard_default as PisellAppCard, PisellAvatar, MemoizedPisellBasicGrid as PisellBasicGrid, PisellBatchActionBar, PisellCard, pisellCardList_default as PisellCardList, PisellCards, PisellCheckboxGroup, PisellConfigProvider, PisellContainer, PisellContent, PisellContext, PisellCountdown, MemoizedPisellCurrency as PisellCurrency, PisellCustomCheckboxGroup, PisellDataSourceContainer, PisellDatePicker, PisellDateTimeDisplay_default as PisellDateTimeDisplay, Demo as PisellDraggable, pisellDropSort_default as PisellDropSort, PisellDropdown, PisellEmail_default as PisellEmail, PisellEmpty, PisellFields, PisellFilter, PisellFind, PisellFloatingPanel, PisellFloorMapLayout, PisellFooter, index as PisellGoodPassCard, PisellGridPro, GridView as PisellGridView, PisellHeader, PisellHeaderProgressBar, PisellHierarchicalSummaryList, Provider$2 as PisellImageCard, PisellImageCarousels, 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, PisellRecordBoardResourceWallView, 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, SafeAreaTop, 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, createShopFloorPlanClient, diffVenueWallStatusToneOverrides, findFloorMapRowByDataBinding, floorMapResourcePickerRecordSearchText, floorMapSavedConfigToRemotePatch, formatScheduleAtLabel, getBankCardTypeImg, getFigmaTableCardFromMerged, getFloorMapBindingPlaceholderReason, getFloorMapBuiltinShapeDef, getFloorMapCardPickerCategoryConfig, getFloorMapResourcePickerCardMeta, getHorizontalAxisSlotCount, getRangeBounds, getRenderItemByKindRoundTable, getRenderItemByKindTable, getVenueWallStatusToneMap, globalConfig, inferCanvasSizeFromScene, initFloorMapLayoutLocales, isElementNameAsTitleEnabled, isFloorMapBuiltinShapeElementKind, isFloorMapImageElementKind, isFloorPlanDuplicateCodeError, isHttpNotFoundError, isShopFloorPlanNotFoundResponse, loginAndRegister, mergeFloorMapLayoutPropsFromContext, mergeFloorPlanViewRemote, message, notification, parseLayoutFieldToViewConfigPatch, parseNestedPathSegments, pickFloorPlanDetail, pickReferenceDateContainingNow, locales_default as pisellTimeNavigatorLocales, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard, renderFloorMapFallbackPlaceholder, resolveSceneElementDisplayTitle, sceneElementsToShopLayout, shopLayoutToSceneElements, useFloorMapLayoutContext, usePisellConfig, useRecordBoardContext, useRecordBoardShellBodyMeta, useShopFloorPlanSubscription, useToast, version, viewConfigToLayoutPayload, wrapFloorMapOnSaveWithRemotePersist };