@pisell/materials 6.11.36 → 6.11.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +26 -56
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +26 -56
- package/es/components/PisellLayouts/index.d.ts +1 -1
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +47 -3
- package/es/components/pisellFloorMapLayout/types.d.ts +7 -7
- package/es/components/pisellFloorMapLayout/types.js +2 -2
- package/es/components/pisellRecordBoard/index.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +5 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +1039 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +323 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +10 -10
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +23 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +287 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +4 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +28 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +36 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +38 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +3 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/index.js +3 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +197 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +65 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +9 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +52 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +58 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +232 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +735 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +37 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +56 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +682 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +155 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +27 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +259 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +12 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +19 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +2 -1
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +44 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +4 -2
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +117 -125
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +3 -5
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +71 -352
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +143 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +28 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +128 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +8 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +115 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +6 -4
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +63 -120
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +2 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.js +2 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +42 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +114 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +26 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +54 -1
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +67 -12
- package/es/components/pisellRecordBoard/shellFrame/index.js +34 -7
- package/es/components/pisellRecordBoard/types.d.ts +97 -4
- package/es/components/pisellRecordBoard/types.js +18 -2
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +34 -2
- package/es/components/pisellShellFrame/PisellShellFrame.less +5 -2
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/hooks/useResponsive.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/locales/en-US.d.ts +74 -0
- package/es/locales/en-US.js +76 -1
- package/es/locales/ja.d.ts +74 -0
- package/es/locales/ja.js +75 -0
- package/es/locales/pt.d.ts +74 -0
- package/es/locales/pt.js +75 -0
- package/es/locales/zh-CN.d.ts +74 -0
- package/es/locales/zh-CN.js +76 -1
- package/es/locales/zh-TW.d.ts +74 -0
- package/es/locales/zh-TW.js +76 -1
- package/es/pisell-materials.tw.css +1 -1
- package/lib/components/PisellLayouts/index.d.ts +1 -1
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +2 -1
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +1 -1
- package/lib/components/pisellFloorMapLayout/types.d.ts +7 -7
- package/lib/components/pisellRecordBoard/index.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +5 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +892 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +323 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +5 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +7 -6
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +23 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +268 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +4 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +53 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +36 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +98 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +3 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +306 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +111 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +9 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +96 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +92 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +232 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +666 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +90 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +56 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +812 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +219 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +27 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +352 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +12 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +57 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +2 -1
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +44 -9
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +4 -2
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +60 -142
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +3 -5
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +40 -269
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +163 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +28 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +136 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +175 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +6 -4
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +61 -88
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.js +29 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +42 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +139 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +26 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +31 -3
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +50 -5
- package/lib/components/pisellRecordBoard/shellFrame/index.js +29 -13
- package/lib/components/pisellRecordBoard/types.d.ts +97 -4
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +34 -2
- package/lib/components/pisellShellFrame/PisellShellFrame.less +5 -2
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/hooks/useResponsive.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/locales/en-US.d.ts +74 -0
- package/lib/locales/en-US.js +76 -1
- package/lib/locales/ja.d.ts +74 -0
- package/lib/locales/ja.js +75 -0
- package/lib/locales/pt.d.ts +74 -0
- package/lib/locales/pt.js +75 -0
- package/lib/locales/zh-CN.d.ts +74 -0
- package/lib/locales/zh-CN.js +76 -1
- package/lib/locales/zh-TW.d.ts +74 -0
- package/lib/locales/zh-TW.js +76 -1
- package/lib/pisell-materials.tw.css +1 -1
- package/package.json +3 -4
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +0 -3
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -6233
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +0 -3
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +0 -7079
package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js
CHANGED
|
@@ -7,19 +7,24 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
|
|
|
7
7
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
10
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
13
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
15
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
16
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
18
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
15
19
|
import { Spin } from 'antd';
|
|
16
20
|
import { getText } from "../../../../locales";
|
|
17
21
|
import { getCurrentLocale } from "../../../../utils/locale";
|
|
18
22
|
import { useRecordBoardContext } from "../../hooks/useRecordBoardContext";
|
|
19
23
|
import { DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST } from "../../types";
|
|
20
|
-
import { getVenueWallStatusToneMap } from "./venueWallUtils";
|
|
24
|
+
import { DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS, getVenueWallStatusToneMap, matchesResourceWallStatusSortField, parseRecordBoardToolbarSortParam, venueWallOccupiedSortRank } from "./venueWallUtils";
|
|
21
25
|
import { VenueWallCard } from "./VenueWallCard";
|
|
22
26
|
import { ResourceWallControlPanel } from "./ResourceWallControlPanel";
|
|
27
|
+
import { ResourceWallViewportToolbar } from "./ResourceWallViewportToolbar";
|
|
23
28
|
import "./ResourceWallViewport.less";
|
|
24
29
|
|
|
25
30
|
/** 与 {@link RecordBoardResourceWallProps.filterFieldKey} 默认一致 */
|
|
@@ -60,11 +65,13 @@ var DEFAULT_OCCUPIED = '#6f4ae6';
|
|
|
60
65
|
var DEFAULT_AVAILABLE = '#10b981';
|
|
61
66
|
|
|
62
67
|
/**
|
|
63
|
-
*
|
|
64
|
-
* `searchParams.filter.values[filterFieldKey]` 与 `cards
|
|
68
|
+
* RecordBoard 大屏资源墙主视口:`cards` 提供全量卡数据;可见列表由
|
|
69
|
+
* `searchParams.filter.values[filterFieldKey]` 中的资源 id 与 `cards` 交集决定。
|
|
70
|
+
* 若 ToolBar `searchParams.sort` 指向状态列(默认字段名 `status`),则按占用态重排展示顺序。
|
|
71
|
+
* 支持网格分页轮播、浅深外观、伪全屏与控制台(布局 / 配色 / 选中资源)。
|
|
65
72
|
*/
|
|
66
73
|
export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourceWallView(props) {
|
|
67
|
-
var _props$filterFieldKey, _appearanceTheme$appe, _pagedGroups$currentP;
|
|
74
|
+
var _props$filterFieldKey, _ctx$searchParams3, _appearanceTheme$appe, _pagedGroups$currentP;
|
|
68
75
|
var className = props.className,
|
|
69
76
|
style = props.style,
|
|
70
77
|
loading = props.loading,
|
|
@@ -76,13 +83,18 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
76
83
|
appearanceModeProp = props.appearanceMode,
|
|
77
84
|
onAppearanceModeChange = props.onAppearanceModeChange,
|
|
78
85
|
resourceWallLayoutProp = props.resourceWallLayout,
|
|
79
|
-
onResourceWallLayoutChange = props.onResourceWallLayoutChange
|
|
86
|
+
onResourceWallLayoutChange = props.onResourceWallLayoutChange,
|
|
87
|
+
statusSortFieldKeysProp = props.statusSortFieldKeys;
|
|
80
88
|
var ctx = useRecordBoardContext();
|
|
81
89
|
var filterKey = (_props$filterFieldKey = props.filterFieldKey) !== null && _props$filterFieldKey !== void 0 ? _props$filterFieldKey : DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY;
|
|
90
|
+
var statusSortFieldKeys = useMemo(function () {
|
|
91
|
+
return statusSortFieldKeysProp != null && statusSortFieldKeysProp.length > 0 ? statusSortFieldKeysProp : _toConsumableArray(DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS);
|
|
92
|
+
}, [statusSortFieldKeysProp]);
|
|
82
93
|
var _useState = useState({}),
|
|
83
94
|
_useState2 = _slicedToArray(_useState, 2),
|
|
84
95
|
localToneOverrides = _useState2[0],
|
|
85
96
|
setLocalToneOverrides = _useState2[1];
|
|
97
|
+
/** 六态标注覆盖:有受控回调则只上报;否则写本地 state(演示 / 未持久化宿主) */
|
|
86
98
|
var emitToneOverrides = useCallback(function (next) {
|
|
87
99
|
onStatusToneOverridesChange === null || onStatusToneOverridesChange === void 0 || onStatusToneOverridesChange(next);
|
|
88
100
|
if (onStatusToneOverridesChange == null) {
|
|
@@ -94,6 +106,7 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
94
106
|
internalAppearanceTheme = _useState4[0],
|
|
95
107
|
setInternalAppearanceTheme = _useState4[1];
|
|
96
108
|
var appearanceTheme = appearanceThemeProp !== null && appearanceThemeProp !== void 0 ? appearanceThemeProp : internalAppearanceTheme;
|
|
109
|
+
/** 占用/空闲底色与六态覆盖按浅、深槽位写入主题对象 */
|
|
97
110
|
var persistAppearanceTheme = useCallback(function (next) {
|
|
98
111
|
onAppearanceThemeChange === null || onAppearanceThemeChange === void 0 || onAppearanceThemeChange(next);
|
|
99
112
|
if (onAppearanceThemeChange == null) {
|
|
@@ -103,9 +116,12 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
103
116
|
|
|
104
117
|
/**
|
|
105
118
|
* 资源墙可见 id:未写键、非数组、空数组一律视为「无选中」→ 不展示任何卡片。
|
|
106
|
-
* 有非空 string[]
|
|
119
|
+
* 有非空 string[] 时按该顺序展示:**仅渲染能在 `cards` 里命中的**;命中不到的 id(例如磁盘残留的
|
|
120
|
+
* 旧店铺 / 已删资源)直接剔除,不再回退成「数字占位卡」。磁盘侧由宿主(如 PisellReservation)
|
|
121
|
+
* 水合后清洗并回写 localStorage,避免下次继续飘过来。
|
|
107
122
|
*/
|
|
108
|
-
var filterValues = function (
|
|
123
|
+
var filterValues = useMemo(function () {
|
|
124
|
+
var _ctx$searchParams;
|
|
109
125
|
var f = (_ctx$searchParams = ctx.searchParams) === null || _ctx$searchParams === void 0 ? void 0 : _ctx$searchParams.filter;
|
|
110
126
|
if (!f || _typeof(f) !== 'object' || f === null) return undefined;
|
|
111
127
|
var v = f.values;
|
|
@@ -113,7 +129,7 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
113
129
|
return undefined;
|
|
114
130
|
}
|
|
115
131
|
return v;
|
|
116
|
-
}
|
|
132
|
+
}, [ctx.searchParams]);
|
|
117
133
|
var hasResourceWallFilterKey = filterValues != null && Object.prototype.hasOwnProperty.call(filterValues, filterKey);
|
|
118
134
|
var selectedRaw = hasResourceWallFilterKey ? filterValues[filterKey] : undefined;
|
|
119
135
|
var wallSelectedIds = useMemo(function () {
|
|
@@ -139,6 +155,7 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
139
155
|
return out;
|
|
140
156
|
}, [hasResourceWallFilterKey, selectedRaw]);
|
|
141
157
|
var cards = cardsProp !== null && cardsProp !== void 0 ? cardsProp : [];
|
|
158
|
+
/** 按 resourceId 建表,便于按筛选 id 顺序 O(1) 取卡 */
|
|
142
159
|
var cardByResourceId = useMemo(function () {
|
|
143
160
|
var m = new Map();
|
|
144
161
|
var _iterator2 = _createForOfIteratorHelper(cards),
|
|
@@ -155,23 +172,56 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
155
172
|
}
|
|
156
173
|
return m;
|
|
157
174
|
}, [cards]);
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 仅渲染「筛选 id 序列 ∩ cards」;缺数据的 id 直接跳过。
|
|
178
|
+
* 若当前 `searchParams.sort` 指向状态列(见 statusSortFieldKeys),在筛选顺序上做稳定排序:
|
|
179
|
+
* desc → 占用态在前;asc → 空闲态在前。
|
|
180
|
+
*/
|
|
158
181
|
var visibleCards = useMemo(function () {
|
|
182
|
+
var _ctx$searchParams2;
|
|
159
183
|
if (!wallSelectedIds.length) {
|
|
160
184
|
return [];
|
|
161
185
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
186
|
+
var result = [];
|
|
187
|
+
var _iterator3 = _createForOfIteratorHelper(wallSelectedIds),
|
|
188
|
+
_step3;
|
|
189
|
+
try {
|
|
190
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
191
|
+
var id = _step3.value;
|
|
192
|
+
var hit = cardByResourceId.get(String(id));
|
|
193
|
+
if (hit) result.push(hit);
|
|
167
194
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
195
|
+
} catch (err) {
|
|
196
|
+
_iterator3.e(err);
|
|
197
|
+
} finally {
|
|
198
|
+
_iterator3.f();
|
|
199
|
+
}
|
|
200
|
+
var parsed = parseRecordBoardToolbarSortParam((_ctx$searchParams2 = ctx.searchParams) === null || _ctx$searchParams2 === void 0 ? void 0 : _ctx$searchParams2.sort);
|
|
201
|
+
if (parsed && matchesResourceWallStatusSortField(parsed.field, statusSortFieldKeys)) {
|
|
202
|
+
var dir = parsed.dir;
|
|
203
|
+
var indexed = result.map(function (card, idx) {
|
|
204
|
+
return {
|
|
205
|
+
card: card,
|
|
206
|
+
idx: idx
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
indexed.sort(function (a, b) {
|
|
210
|
+
var ra = venueWallOccupiedSortRank(a.card);
|
|
211
|
+
var rb = venueWallOccupiedSortRank(b.card);
|
|
212
|
+
if (ra !== rb) {
|
|
213
|
+
return dir === 'asc' ? ra - rb : rb - ra;
|
|
214
|
+
}
|
|
215
|
+
return a.idx - b.idx;
|
|
216
|
+
});
|
|
217
|
+
return indexed.map(function (x) {
|
|
218
|
+
return x.card;
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return result;
|
|
222
|
+
}, [cardByResourceId, wallSelectedIds, (_ctx$searchParams3 = ctx.searchParams) === null || _ctx$searchParams3 === void 0 ? void 0 : _ctx$searchParams3.sort, statusSortFieldKeys]);
|
|
223
|
+
|
|
224
|
+
/** 顶栏时钟 / 日期展示 */
|
|
175
225
|
var _useState5 = useState(function () {
|
|
176
226
|
return new Date();
|
|
177
227
|
}),
|
|
@@ -186,6 +236,8 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
186
236
|
return window.clearInterval(id);
|
|
187
237
|
};
|
|
188
238
|
}, []);
|
|
239
|
+
|
|
240
|
+
/** 浅深主题:双受控(props + onChange)时完全由外部驱动,否则用内部 state */
|
|
189
241
|
var _useState7 = useState('light'),
|
|
190
242
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
191
243
|
internalAppearanceMode = _useState8[0],
|
|
@@ -214,6 +266,8 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
214
266
|
pseudoFullscreen = _useState14[0],
|
|
215
267
|
setPseudoFullscreen = _useState14[1];
|
|
216
268
|
var shellRef = useRef(null);
|
|
269
|
+
|
|
270
|
+
/** 伪全屏:给 body 挂类名,配合 less 撑满视口且压住部分宿主布局 */
|
|
217
271
|
useEffect(function () {
|
|
218
272
|
var cls = 'pisell-resource-wall-fixed-viewport';
|
|
219
273
|
if (typeof document === 'undefined') return;
|
|
@@ -226,6 +280,8 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
226
280
|
document.body.classList.remove(cls);
|
|
227
281
|
};
|
|
228
282
|
}, [pseudoFullscreen]);
|
|
283
|
+
|
|
284
|
+
/** 布局持久化:有 `onResourceWallLayoutChange` 时为受控;否则本地默认 + `setLayoutState` 补丁 */
|
|
229
285
|
var layoutPersisted = onResourceWallLayoutChange != null;
|
|
230
286
|
var _useState15 = useState(function () {
|
|
231
287
|
return _objectSpread({}, DEFAULT_RESOURCE_WALL_LAYOUT_PERSIST);
|
|
@@ -257,12 +313,16 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
257
313
|
});
|
|
258
314
|
});
|
|
259
315
|
}, [localeKey]);
|
|
316
|
+
|
|
317
|
+
/** 当前外观模式下的槽位:占用/空闲底色 + 六态覆盖(含未持久化时的 props 回退) */
|
|
260
318
|
var modeSlot = (_appearanceTheme$appe = appearanceTheme[appearanceMode]) !== null && _appearanceTheme$appe !== void 0 ? _appearanceTheme$appe : {};
|
|
261
319
|
var occupiedCardColor = modeSlot.occupiedCardColor != null && modeSlot.occupiedCardColor !== '' ? modeSlot.occupiedCardColor : DEFAULT_OCCUPIED;
|
|
262
320
|
var availableCardColor = modeSlot.availableCardColor != null && modeSlot.availableCardColor !== '' ? modeSlot.availableCardColor : DEFAULT_AVAILABLE;
|
|
263
321
|
var modeToneOverrides = modeSlot.statusToneOverrides;
|
|
264
322
|
var hasModeToneOverrides = modeToneOverrides != null && Object.keys(modeToneOverrides).length > 0;
|
|
265
323
|
var statusToneOverrides = hasModeToneOverrides ? modeToneOverrides : statusToneOverridesProp !== undefined ? statusToneOverridesProp : localToneOverrides;
|
|
324
|
+
|
|
325
|
+
/** 解析当前选中的预设(含 custom 行列钳位) */
|
|
266
326
|
var selectedLayout = useMemo(function () {
|
|
267
327
|
var _layoutPresetsWithI;
|
|
268
328
|
if (layoutKey === 'custom') {
|
|
@@ -278,6 +338,7 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
278
338
|
})) !== null && _layoutPresetsWithI !== void 0 ? _layoutPresetsWithI : layoutPresetsWithI18n[2];
|
|
279
339
|
}, [layoutKey, customCols, customRows, layoutPresetsWithI18n]);
|
|
280
340
|
var pageCapacity = selectedLayout.cols * selectedLayout.rows;
|
|
341
|
+
/** 按单页容量切分可见卡,用于轮播与指示条 */
|
|
281
342
|
var pagedGroups = useMemo(function () {
|
|
282
343
|
var chunks = [];
|
|
283
344
|
for (var i = 0; i < visibleCards.length; i += pageCapacity) {
|
|
@@ -286,18 +347,25 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
286
347
|
return chunks;
|
|
287
348
|
}, [visibleCards, pageCapacity]);
|
|
288
349
|
var totalPages = Math.max(1, pagedGroups.length);
|
|
350
|
+
/** 当前页要渲染的卡;无分页时退化为首屏 capacity 张 */
|
|
289
351
|
var renderCards = (_pagedGroups$currentP = pagedGroups[currentPage]) !== null && _pagedGroups$currentP !== void 0 ? _pagedGroups$currentP : visibleCards.slice(0, pageCapacity);
|
|
352
|
+
|
|
353
|
+
/** 控制台展示与顶栏一致的当前页 / 总页(1-based 在文案 replace 时处理) */
|
|
290
354
|
var controlCarouselPager = useMemo(function () {
|
|
291
355
|
return {
|
|
292
356
|
currentPage: currentPage,
|
|
293
357
|
totalPages: totalPages
|
|
294
358
|
};
|
|
295
359
|
}, [currentPage, totalPages]);
|
|
360
|
+
|
|
361
|
+
/** 总页数变小时收回当前页索引,避免越界 */
|
|
296
362
|
useEffect(function () {
|
|
297
363
|
setCurrentPage(function (p) {
|
|
298
364
|
return totalPages > 0 ? Math.min(p, totalPages - 1) : 0;
|
|
299
365
|
});
|
|
300
366
|
}, [totalPages]);
|
|
367
|
+
|
|
368
|
+
/** 多页时按 `pageDurationSec` 自动轮播当前页 */
|
|
301
369
|
useEffect(function () {
|
|
302
370
|
if (totalPages <= 1) {
|
|
303
371
|
setCurrentPage(0);
|
|
@@ -313,6 +381,8 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
313
381
|
return window.clearInterval(timer);
|
|
314
382
|
};
|
|
315
383
|
}, [totalPages, pageDurationSec]);
|
|
384
|
+
|
|
385
|
+
/** 网格容量或可见卡数量变化时回到第一页 */
|
|
316
386
|
useEffect(function () {
|
|
317
387
|
setCurrentPage(0);
|
|
318
388
|
}, [pageCapacity, visibleCards.length]);
|
|
@@ -322,8 +392,8 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
322
392
|
* 宿主合并 `onSearch` 时请保留该键;删掉键时本视图同样按「无选中」处理(不展示)。
|
|
323
393
|
*/
|
|
324
394
|
var mergeFilterResourceIds = useCallback(function (ids) {
|
|
325
|
-
var _ctx$
|
|
326
|
-
var sp = (_ctx$
|
|
395
|
+
var _ctx$searchParams4, _filterValue$values, _ctx$onSearch;
|
|
396
|
+
var sp = (_ctx$searchParams4 = ctx.searchParams) !== null && _ctx$searchParams4 !== void 0 ? _ctx$searchParams4 : {};
|
|
327
397
|
var filterValue = sp[FILTER_PARAMS_FIELD];
|
|
328
398
|
var currentValues = (_filterValue$values = filterValue === null || filterValue === void 0 ? void 0 : filterValue.values) !== null && _filterValue$values !== void 0 ? _filterValue$values : {};
|
|
329
399
|
var nextFilter = _objectSpread(_objectSpread({}, filterValue), {}, {
|
|
@@ -331,6 +401,8 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
331
401
|
});
|
|
332
402
|
(_ctx$onSearch = ctx.onSearch) === null || _ctx$onSearch === void 0 || _ctx$onSearch.call(ctx, _objectSpread(_objectSpread({}, sp), {}, _defineProperty({}, FILTER_PARAMS_FIELD, nextFilter)));
|
|
333
403
|
}, [ctx, filterKey]);
|
|
404
|
+
|
|
405
|
+
/** 控制台「应用」:同步筛选 id、布局持久化、当前外观槽位下的占用/空闲色与六态覆盖 */
|
|
334
406
|
var handleControlApply = useCallback(function (payload) {
|
|
335
407
|
mergeFilterResourceIds(payload.resourceIds);
|
|
336
408
|
setLayoutState({
|
|
@@ -349,6 +421,8 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
349
421
|
persistAppearanceTheme(_objectSpread(_objectSpread({}, appearanceTheme), {}, _defineProperty({}, appearanceMode, nextSlot)));
|
|
350
422
|
emitToneOverrides(payload.statusToneOverrides);
|
|
351
423
|
}, [mergeFilterResourceIds, emitToneOverrides, appearanceTheme, appearanceMode, persistAppearanceTheme, setLayoutState]);
|
|
424
|
+
|
|
425
|
+
/** 注入 i18n 后的完整六态表(含控制台覆盖),下发各 {@link VenueWallCard} */
|
|
352
426
|
var statusToneMap = useMemo(function () {
|
|
353
427
|
return getVenueWallStatusToneMap(statusToneOverrides);
|
|
354
428
|
}, [statusToneOverrides]);
|
|
@@ -366,7 +440,7 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
366
440
|
var countdownSec = Math.max(3, pageDurationSec);
|
|
367
441
|
var shell = /*#__PURE__*/React.createElement("div", {
|
|
368
442
|
ref: shellRef,
|
|
369
|
-
className: className,
|
|
443
|
+
className: "pisell-resource-wall-shell".concat(className ? " ".concat(className) : ''),
|
|
370
444
|
style: _objectSpread({
|
|
371
445
|
flex: 1,
|
|
372
446
|
minHeight: 0,
|
|
@@ -376,109 +450,27 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
376
450
|
background: pageBg,
|
|
377
451
|
color: clockColor
|
|
378
452
|
}, style)
|
|
379
|
-
}, /*#__PURE__*/React.createElement(
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
alignItems: 'center',
|
|
386
|
-
justifyContent: 'space-between',
|
|
387
|
-
gap: 16,
|
|
388
|
-
background: headerBg
|
|
389
|
-
}
|
|
390
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
391
|
-
style: {
|
|
392
|
-
fontSize: 22,
|
|
393
|
-
fontWeight: 600,
|
|
394
|
-
letterSpacing: '-0.02em',
|
|
395
|
-
color: clockColor
|
|
396
|
-
}
|
|
397
|
-
}, now.toLocaleTimeString([], {
|
|
398
|
-
hour: '2-digit',
|
|
399
|
-
minute: '2-digit',
|
|
400
|
-
hour12: false
|
|
401
|
-
}), ' ', "\xB7", ' ', now.toLocaleDateString('en-GB', {
|
|
402
|
-
day: '2-digit',
|
|
403
|
-
month: 'short',
|
|
404
|
-
year: 'numeric'
|
|
405
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
406
|
-
style: {
|
|
407
|
-
display: 'flex',
|
|
408
|
-
alignItems: 'center',
|
|
409
|
-
gap: 8
|
|
410
|
-
}
|
|
411
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
412
|
-
style: {
|
|
413
|
-
display: 'inline-flex',
|
|
414
|
-
alignItems: 'center',
|
|
415
|
-
borderRadius: 6,
|
|
416
|
-
border: toolbarBtnBorder,
|
|
417
|
-
overflow: 'hidden',
|
|
418
|
-
background: toolbarBtnBg
|
|
419
|
-
}
|
|
420
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
421
|
-
type: "button",
|
|
422
|
-
onClick: function onClick() {
|
|
423
|
-
return setAppearanceMode('light');
|
|
424
|
-
},
|
|
425
|
-
style: {
|
|
426
|
-
border: 'none',
|
|
427
|
-
padding: '6px 12px',
|
|
428
|
-
fontSize: 13,
|
|
429
|
-
fontWeight: 500,
|
|
430
|
-
cursor: 'pointer',
|
|
431
|
-
background: appearanceMode === 'light' ? toolbarBtnBgActive : 'transparent',
|
|
432
|
-
color: appearanceMode === 'light' ? clockColor : mutedText
|
|
433
|
-
}
|
|
434
|
-
}, getText('pisell-resource-wall-appearance-light')), /*#__PURE__*/React.createElement("button", {
|
|
435
|
-
type: "button",
|
|
436
|
-
onClick: function onClick() {
|
|
437
|
-
return setAppearanceMode('dark');
|
|
438
|
-
},
|
|
439
|
-
style: {
|
|
440
|
-
border: 'none',
|
|
441
|
-
borderLeft: toolbarBtnBorder,
|
|
442
|
-
padding: '6px 12px',
|
|
443
|
-
fontSize: 13,
|
|
444
|
-
fontWeight: 500,
|
|
445
|
-
cursor: 'pointer',
|
|
446
|
-
background: appearanceMode === 'dark' ? toolbarBtnBgActive : 'transparent',
|
|
447
|
-
color: appearanceMode === 'dark' ? clockColor : mutedText
|
|
448
|
-
}
|
|
449
|
-
}, getText('pisell-resource-wall-appearance-dark'))), /*#__PURE__*/React.createElement("button", {
|
|
450
|
-
type: "button",
|
|
451
|
-
onClick: function onClick() {
|
|
453
|
+
}, /*#__PURE__*/React.createElement(ResourceWallViewportToolbar, {
|
|
454
|
+
now: now,
|
|
455
|
+
appearanceMode: appearanceMode,
|
|
456
|
+
onAppearanceModeChange: setAppearanceMode,
|
|
457
|
+
pseudoFullscreen: pseudoFullscreen,
|
|
458
|
+
onTogglePseudoFullscreen: function onTogglePseudoFullscreen() {
|
|
452
459
|
return setPseudoFullscreen(function (v) {
|
|
453
460
|
return !v;
|
|
454
461
|
});
|
|
455
462
|
},
|
|
456
|
-
|
|
457
|
-
borderRadius: 6,
|
|
458
|
-
padding: '6px 14px',
|
|
459
|
-
fontSize: 13,
|
|
460
|
-
fontWeight: 500,
|
|
461
|
-
cursor: 'pointer',
|
|
462
|
-
border: toolbarBtnBorder,
|
|
463
|
-
background: pseudoFullscreen ? toolbarBtnBgActive : toolbarBtnBg,
|
|
464
|
-
color: clockColor
|
|
465
|
-
}
|
|
466
|
-
}, pseudoFullscreen ? getText('pisell-resource-wall-fullscreen-exit') : getText('pisell-resource-wall-fullscreen-enter')), /*#__PURE__*/React.createElement("button", {
|
|
467
|
-
type: "button",
|
|
468
|
-
onClick: function onClick() {
|
|
463
|
+
onOpenControlPanel: function onOpenControlPanel() {
|
|
469
464
|
return setShowControlPanel(true);
|
|
470
465
|
},
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
color: clockColor
|
|
480
|
-
}
|
|
481
|
-
}, getText('pisell-resource-wall-control-open')))), /*#__PURE__*/React.createElement("div", {
|
|
466
|
+
headerBorder: headerBorder,
|
|
467
|
+
headerBg: headerBg,
|
|
468
|
+
clockColor: clockColor,
|
|
469
|
+
mutedText: mutedText,
|
|
470
|
+
toolbarBtnBorder: toolbarBtnBorder,
|
|
471
|
+
toolbarBtnBg: toolbarBtnBg,
|
|
472
|
+
toolbarBtnBgActive: toolbarBtnBgActive
|
|
473
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
482
474
|
style: {
|
|
483
475
|
flex: 1,
|
|
484
476
|
minHeight: 0,
|
|
@@ -528,10 +520,11 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
528
520
|
gridTemplateColumns: "repeat(".concat(selectedLayout.cols, ", minmax(0, 1fr))"),
|
|
529
521
|
gridTemplateRows: "repeat(".concat(selectedLayout.rows, ", minmax(0, 1fr))")
|
|
530
522
|
}
|
|
531
|
-
}, renderCards.map(function (card
|
|
523
|
+
}, renderCards.map(function (card) {
|
|
532
524
|
return /*#__PURE__*/React.createElement(VenueWallCard, {
|
|
533
|
-
key:
|
|
525
|
+
key: String(card.resourceId),
|
|
534
526
|
card: card,
|
|
527
|
+
wallNowMs: now.getTime(),
|
|
535
528
|
boardingSoonBeforeMin: boardingSoonBeforeMin,
|
|
536
529
|
occupiedCardColor: occupiedCardColor,
|
|
537
530
|
availableCardColor: availableCardColor,
|
|
@@ -543,7 +536,6 @@ export var PisellRecordBoardResourceWallView = function PisellRecordBoardResourc
|
|
|
543
536
|
open: showControlPanel,
|
|
544
537
|
onClose: closeControlPanel,
|
|
545
538
|
isDark: isDark,
|
|
546
|
-
cards: cards,
|
|
547
539
|
layoutPresets: layoutPresetsWithI18n,
|
|
548
540
|
layoutKey: layoutKey,
|
|
549
541
|
customCols: customCols,
|
package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { RecordBoardResourceWallCardModel } from '../../types';
|
|
3
2
|
import { type VenueWallStatusToneOverrides } from './venueWallUtils';
|
|
4
3
|
export declare type ResourceWallLayoutPreset = {
|
|
5
4
|
key: string;
|
|
@@ -24,7 +23,6 @@ export interface ResourceWallControlPanelProps {
|
|
|
24
23
|
open: boolean;
|
|
25
24
|
onClose: () => void;
|
|
26
25
|
isDark: boolean;
|
|
27
|
-
cards: RecordBoardResourceWallCardModel[];
|
|
28
26
|
layoutPresets: readonly ResourceWallLayoutPreset[];
|
|
29
27
|
layoutKey: string;
|
|
30
28
|
customCols: number;
|
|
@@ -45,8 +43,8 @@ export interface ResourceWallControlPanelProps {
|
|
|
45
43
|
heroMaxWidthRatio?: number;
|
|
46
44
|
}
|
|
47
45
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
46
|
+
* 资源墙管理台(Portal):选资源、网格预设/自定义行列、翻页秒数、占用/空闲色、六态说明与色值;
|
|
47
|
+
* `onApply` 回传负载中含 `diffVenueWallStatusToneOverrides` 压缩结果。
|
|
48
|
+
* 源自 test `showAdmin` 对接;关闭(Close / Escape / 遮罩)时提交草稿并关闭。
|
|
51
49
|
*/
|
|
52
50
|
export declare const ResourceWallControlPanel: React.FC<ResourceWallControlPanelProps>;
|