@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/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.tsx
|
|
30
|
+
var bookingCalendarDayViewContext_exports = {};
|
|
31
|
+
__export(bookingCalendarDayViewContext_exports, {
|
|
32
|
+
BookingCalendarDayChromeProvider: () => BookingCalendarDayChromeProvider,
|
|
33
|
+
useBookingCalendarDayChrome: () => useBookingCalendarDayChrome
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(bookingCalendarDayViewContext_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var BookingCalendarDayChromeContext = (0, import_react.createContext)(null);
|
|
38
|
+
function BookingCalendarDayChromeProvider({
|
|
39
|
+
children,
|
|
40
|
+
value
|
|
41
|
+
}) {
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(BookingCalendarDayChromeContext.Provider, { value }, children);
|
|
43
|
+
}
|
|
44
|
+
function useBookingCalendarDayChrome() {
|
|
45
|
+
const v = (0, import_react.useContext)(BookingCalendarDayChromeContext);
|
|
46
|
+
if (!v) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
"useBookingCalendarDayChrome must be used within BookingCalendarDayChromeProvider"
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
return v;
|
|
52
|
+
}
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
BookingCalendarDayChromeProvider,
|
|
56
|
+
useBookingCalendarDayChrome
|
|
57
|
+
});
|
|
@@ -8,6 +8,7 @@ export interface NoteTickerProps {
|
|
|
8
8
|
shouldMarquee: boolean;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 底部说明条:短文案省略静态展示,长文案无缝跑马灯(多段 copy 与 `VenueWallMarquee.less` 中 -33.333% 动画配套)。
|
|
12
|
+
* 系统「减少动态效果」时强制静态展示;跑马灯区对读屏 `aria-hidden` 避免重复朗读。
|
|
12
13
|
*/
|
|
13
14
|
export declare const NoteTicker: React.NamedExoticComponent<NoteTickerProps>;
|
|
@@ -34,25 +34,60 @@ __export(NoteTicker_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(NoteTicker_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_VenueWallMarquee = require("./VenueWallMarquee.less");
|
|
37
|
+
function usePrefersReducedMotion() {
|
|
38
|
+
const [reduced, setReduced] = (0, import_react.useState)(false);
|
|
39
|
+
(0, import_react.useEffect)(() => {
|
|
40
|
+
if (typeof window === "undefined" || !window.matchMedia) return;
|
|
41
|
+
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
42
|
+
setReduced(mq.matches);
|
|
43
|
+
const onChange = () => setReduced(mq.matches);
|
|
44
|
+
mq.addEventListener("change", onChange);
|
|
45
|
+
return () => mq.removeEventListener("change", onChange);
|
|
46
|
+
}, []);
|
|
47
|
+
return reduced;
|
|
48
|
+
}
|
|
49
|
+
var MARQUEE_COPY_COUNT = 3;
|
|
37
50
|
var NoteTicker = import_react.default.memo(function NoteTicker2({
|
|
38
51
|
text,
|
|
39
52
|
color,
|
|
40
53
|
duration = 24,
|
|
41
54
|
shouldMarquee
|
|
42
55
|
}) {
|
|
43
|
-
|
|
44
|
-
|
|
56
|
+
const reducedMotion = usePrefersReducedMotion();
|
|
57
|
+
const useMarquee = shouldMarquee && !reducedMotion;
|
|
58
|
+
if (!useMarquee) {
|
|
59
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: "pisell-resource-wall-note-marquee-static",
|
|
63
|
+
style: { color },
|
|
64
|
+
title: text
|
|
65
|
+
},
|
|
66
|
+
text
|
|
67
|
+
);
|
|
45
68
|
}
|
|
46
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
47
70
|
"div",
|
|
48
71
|
{
|
|
49
|
-
className: "pisell-resource-wall-note-marquee-
|
|
50
|
-
|
|
72
|
+
className: "pisell-resource-wall-note-marquee-wrap",
|
|
73
|
+
"aria-hidden": true
|
|
51
74
|
},
|
|
52
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
75
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: "pisell-resource-wall-note-marquee-track",
|
|
79
|
+
style: { animationDuration: `${duration}s`, color }
|
|
80
|
+
},
|
|
81
|
+
Array.from({ length: MARQUEE_COPY_COUNT }, (_, i) => /* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
key: i,
|
|
85
|
+
className: "pisell-resource-wall-note-marquee-copy"
|
|
86
|
+
},
|
|
87
|
+
text
|
|
88
|
+
))
|
|
89
|
+
)
|
|
90
|
+
);
|
|
56
91
|
});
|
|
57
92
|
// Annotate the CommonJS export names for ESM import in node:
|
|
58
93
|
0 && (module.exports = {
|
|
@@ -4,7 +4,9 @@ import './ResourceWallViewport.less';
|
|
|
4
4
|
/** 与 {@link RecordBoardResourceWallProps.filterFieldKey} 默认一致 */
|
|
5
5
|
export declare const DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY = "resource_wall_resource_ids";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* `searchParams.filter.values[filterFieldKey]` 与 `cards
|
|
7
|
+
* RecordBoard 大屏资源墙主视口:`cards` 提供全量卡数据;可见列表由
|
|
8
|
+
* `searchParams.filter.values[filterFieldKey]` 中的资源 id 与 `cards` 交集决定。
|
|
9
|
+
* 若 ToolBar `searchParams.sort` 指向状态列(默认字段名 `status`),则按占用态重排展示顺序。
|
|
10
|
+
* 支持网格分页轮播、浅深外观、伪全屏与控制台(布局 / 配色 / 选中资源)。
|
|
9
11
|
*/
|
|
10
12
|
export declare const PisellRecordBoardResourceWallView: React.FC<RecordBoardResourceWallProps>;
|
|
@@ -42,6 +42,7 @@ var import_types = require("../../types");
|
|
|
42
42
|
var import_venueWallUtils = require("./venueWallUtils");
|
|
43
43
|
var import_VenueWallCard = require("./VenueWallCard");
|
|
44
44
|
var import_ResourceWallControlPanel = require("./ResourceWallControlPanel");
|
|
45
|
+
var import_ResourceWallViewportToolbar = require("./ResourceWallViewportToolbar");
|
|
45
46
|
var import_ResourceWallViewport = require("./ResourceWallViewport.less");
|
|
46
47
|
var DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY = "resource_wall_resource_ids";
|
|
47
48
|
var FILTER_PARAMS_FIELD = "filter";
|
|
@@ -56,6 +57,7 @@ var LAYOUT_PRESETS = [
|
|
|
56
57
|
var DEFAULT_OCCUPIED = "#6f4ae6";
|
|
57
58
|
var DEFAULT_AVAILABLE = "#10b981";
|
|
58
59
|
var PisellRecordBoardResourceWallView = (props) => {
|
|
60
|
+
var _a;
|
|
59
61
|
const {
|
|
60
62
|
className,
|
|
61
63
|
style,
|
|
@@ -68,10 +70,15 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
68
70
|
appearanceMode: appearanceModeProp,
|
|
69
71
|
onAppearanceModeChange,
|
|
70
72
|
resourceWallLayout: resourceWallLayoutProp,
|
|
71
|
-
onResourceWallLayoutChange
|
|
73
|
+
onResourceWallLayoutChange,
|
|
74
|
+
statusSortFieldKeys: statusSortFieldKeysProp
|
|
72
75
|
} = props;
|
|
73
76
|
const ctx = (0, import_useRecordBoardContext.useRecordBoardContext)();
|
|
74
77
|
const filterKey = props.filterFieldKey ?? DEFAULT_RESOURCE_WALL_FILTER_FIELD_KEY;
|
|
78
|
+
const statusSortFieldKeys = (0, import_react.useMemo)(
|
|
79
|
+
() => statusSortFieldKeysProp != null && statusSortFieldKeysProp.length > 0 ? statusSortFieldKeysProp : [...import_venueWallUtils.DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS],
|
|
80
|
+
[statusSortFieldKeysProp]
|
|
81
|
+
);
|
|
75
82
|
const [localToneOverrides, setLocalToneOverrides] = (0, import_react.useState)({});
|
|
76
83
|
const emitToneOverrides = (0, import_react.useCallback)(
|
|
77
84
|
(next) => {
|
|
@@ -93,16 +100,16 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
93
100
|
},
|
|
94
101
|
[onAppearanceThemeChange]
|
|
95
102
|
);
|
|
96
|
-
const filterValues = (() => {
|
|
97
|
-
var
|
|
98
|
-
const f = (
|
|
103
|
+
const filterValues = (0, import_react.useMemo)(() => {
|
|
104
|
+
var _a2;
|
|
105
|
+
const f = (_a2 = ctx.searchParams) == null ? void 0 : _a2.filter;
|
|
99
106
|
if (!f || typeof f !== "object" || f === null) return void 0;
|
|
100
107
|
const v = f.values;
|
|
101
108
|
if (v === null || v === void 0 || typeof v !== "object" || Array.isArray(v)) {
|
|
102
109
|
return void 0;
|
|
103
110
|
}
|
|
104
111
|
return v;
|
|
105
|
-
})
|
|
112
|
+
}, [ctx.searchParams]);
|
|
106
113
|
const hasResourceWallFilterKey = filterValues != null && Object.prototype.hasOwnProperty.call(filterValues, filterKey);
|
|
107
114
|
const selectedRaw = hasResourceWallFilterKey ? filterValues[filterKey] : void 0;
|
|
108
115
|
const wallSelectedIds = (0, import_react.useMemo)(() => {
|
|
@@ -127,22 +134,36 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
127
134
|
return m;
|
|
128
135
|
}, [cards]);
|
|
129
136
|
const visibleCards = (0, import_react.useMemo)(() => {
|
|
137
|
+
var _a2;
|
|
130
138
|
if (!wallSelectedIds.length) {
|
|
131
139
|
return [];
|
|
132
140
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const hit = cardByResourceId.get(
|
|
136
|
-
if (hit)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
const result = [];
|
|
142
|
+
for (const id of wallSelectedIds) {
|
|
143
|
+
const hit = cardByResourceId.get(String(id));
|
|
144
|
+
if (hit) result.push(hit);
|
|
145
|
+
}
|
|
146
|
+
const parsed = (0, import_venueWallUtils.parseRecordBoardToolbarSortParam)((_a2 = ctx.searchParams) == null ? void 0 : _a2.sort);
|
|
147
|
+
if (parsed && (0, import_venueWallUtils.matchesResourceWallStatusSortField)(parsed.field, statusSortFieldKeys)) {
|
|
148
|
+
const dir = parsed.dir;
|
|
149
|
+
const indexed = result.map((card, idx) => ({ card, idx }));
|
|
150
|
+
indexed.sort((a, b) => {
|
|
151
|
+
const ra = (0, import_venueWallUtils.venueWallOccupiedSortRank)(a.card);
|
|
152
|
+
const rb = (0, import_venueWallUtils.venueWallOccupiedSortRank)(b.card);
|
|
153
|
+
if (ra !== rb) {
|
|
154
|
+
return dir === "asc" ? ra - rb : rb - ra;
|
|
155
|
+
}
|
|
156
|
+
return a.idx - b.idx;
|
|
157
|
+
});
|
|
158
|
+
return indexed.map((x) => x.card);
|
|
159
|
+
}
|
|
160
|
+
return result;
|
|
161
|
+
}, [
|
|
162
|
+
cardByResourceId,
|
|
163
|
+
wallSelectedIds,
|
|
164
|
+
(_a = ctx.searchParams) == null ? void 0 : _a.sort,
|
|
165
|
+
statusSortFieldKeys
|
|
166
|
+
]);
|
|
146
167
|
const [now, setNow] = (0, import_react.useState)(() => /* @__PURE__ */ new Date());
|
|
147
168
|
(0, import_react.useEffect)(() => {
|
|
148
169
|
const id = window.setInterval(() => setNow(/* @__PURE__ */ new Date()), 1e3);
|
|
@@ -273,7 +294,7 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
273
294
|
}, [pageCapacity, visibleCards.length]);
|
|
274
295
|
const mergeFilterResourceIds = (0, import_react.useCallback)(
|
|
275
296
|
(ids) => {
|
|
276
|
-
var
|
|
297
|
+
var _a2;
|
|
277
298
|
const sp = ctx.searchParams ?? {};
|
|
278
299
|
const filterValue = sp[FILTER_PARAMS_FIELD];
|
|
279
300
|
const currentValues = (filterValue == null ? void 0 : filterValue.values) ?? {};
|
|
@@ -284,7 +305,7 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
284
305
|
[filterKey]: ids
|
|
285
306
|
}
|
|
286
307
|
};
|
|
287
|
-
(
|
|
308
|
+
(_a2 = ctx.onSearch) == null ? void 0 : _a2.call(ctx, { ...sp, [FILTER_PARAMS_FIELD]: nextFilter });
|
|
288
309
|
},
|
|
289
310
|
[ctx, filterKey]
|
|
290
311
|
);
|
|
@@ -338,7 +359,7 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
338
359
|
"div",
|
|
339
360
|
{
|
|
340
361
|
ref: shellRef,
|
|
341
|
-
className
|
|
362
|
+
className: `pisell-resource-wall-shell${className ? ` ${className}` : ""}`,
|
|
342
363
|
style: {
|
|
343
364
|
flex: 1,
|
|
344
365
|
minHeight: 0,
|
|
@@ -351,125 +372,22 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
351
372
|
}
|
|
352
373
|
},
|
|
353
374
|
/* @__PURE__ */ import_react.default.createElement(
|
|
354
|
-
|
|
375
|
+
import_ResourceWallViewportToolbar.ResourceWallViewportToolbar,
|
|
355
376
|
{
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
style: {
|
|
371
|
-
fontSize: 22,
|
|
372
|
-
fontWeight: 600,
|
|
373
|
-
letterSpacing: "-0.02em",
|
|
374
|
-
color: clockColor
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
now.toLocaleTimeString([], {
|
|
378
|
-
hour: "2-digit",
|
|
379
|
-
minute: "2-digit",
|
|
380
|
-
hour12: false
|
|
381
|
-
}),
|
|
382
|
-
" ",
|
|
383
|
-
"·",
|
|
384
|
-
" ",
|
|
385
|
-
now.toLocaleDateString("en-GB", {
|
|
386
|
-
day: "2-digit",
|
|
387
|
-
month: "short",
|
|
388
|
-
year: "numeric"
|
|
389
|
-
})
|
|
390
|
-
),
|
|
391
|
-
/* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
392
|
-
"div",
|
|
393
|
-
{
|
|
394
|
-
style: {
|
|
395
|
-
display: "inline-flex",
|
|
396
|
-
alignItems: "center",
|
|
397
|
-
borderRadius: 6,
|
|
398
|
-
border: toolbarBtnBorder,
|
|
399
|
-
overflow: "hidden",
|
|
400
|
-
background: toolbarBtnBg
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
404
|
-
"button",
|
|
405
|
-
{
|
|
406
|
-
type: "button",
|
|
407
|
-
onClick: () => setAppearanceMode("light"),
|
|
408
|
-
style: {
|
|
409
|
-
border: "none",
|
|
410
|
-
padding: "6px 12px",
|
|
411
|
-
fontSize: 13,
|
|
412
|
-
fontWeight: 500,
|
|
413
|
-
cursor: "pointer",
|
|
414
|
-
background: appearanceMode === "light" ? toolbarBtnBgActive : "transparent",
|
|
415
|
-
color: appearanceMode === "light" ? clockColor : mutedText
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
(0, import_locales.getText)("pisell-resource-wall-appearance-light")
|
|
419
|
-
),
|
|
420
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
421
|
-
"button",
|
|
422
|
-
{
|
|
423
|
-
type: "button",
|
|
424
|
-
onClick: () => setAppearanceMode("dark"),
|
|
425
|
-
style: {
|
|
426
|
-
border: "none",
|
|
427
|
-
borderLeft: toolbarBtnBorder,
|
|
428
|
-
padding: "6px 12px",
|
|
429
|
-
fontSize: 13,
|
|
430
|
-
fontWeight: 500,
|
|
431
|
-
cursor: "pointer",
|
|
432
|
-
background: appearanceMode === "dark" ? toolbarBtnBgActive : "transparent",
|
|
433
|
-
color: appearanceMode === "dark" ? clockColor : mutedText
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
(0, import_locales.getText)("pisell-resource-wall-appearance-dark")
|
|
437
|
-
)
|
|
438
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
439
|
-
"button",
|
|
440
|
-
{
|
|
441
|
-
type: "button",
|
|
442
|
-
onClick: () => setPseudoFullscreen((v) => !v),
|
|
443
|
-
style: {
|
|
444
|
-
borderRadius: 6,
|
|
445
|
-
padding: "6px 14px",
|
|
446
|
-
fontSize: 13,
|
|
447
|
-
fontWeight: 500,
|
|
448
|
-
cursor: "pointer",
|
|
449
|
-
border: toolbarBtnBorder,
|
|
450
|
-
background: pseudoFullscreen ? toolbarBtnBgActive : toolbarBtnBg,
|
|
451
|
-
color: clockColor
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
pseudoFullscreen ? (0, import_locales.getText)("pisell-resource-wall-fullscreen-exit") : (0, import_locales.getText)("pisell-resource-wall-fullscreen-enter")
|
|
455
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
456
|
-
"button",
|
|
457
|
-
{
|
|
458
|
-
type: "button",
|
|
459
|
-
onClick: () => setShowControlPanel(true),
|
|
460
|
-
style: {
|
|
461
|
-
borderRadius: 6,
|
|
462
|
-
padding: "6px 14px",
|
|
463
|
-
fontSize: 13,
|
|
464
|
-
fontWeight: 500,
|
|
465
|
-
cursor: "pointer",
|
|
466
|
-
border: toolbarBtnBorder,
|
|
467
|
-
background: toolbarBtnBg,
|
|
468
|
-
color: clockColor
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
(0, import_locales.getText)("pisell-resource-wall-control-open")
|
|
472
|
-
))
|
|
377
|
+
now,
|
|
378
|
+
appearanceMode,
|
|
379
|
+
onAppearanceModeChange: setAppearanceMode,
|
|
380
|
+
pseudoFullscreen,
|
|
381
|
+
onTogglePseudoFullscreen: () => setPseudoFullscreen((v) => !v),
|
|
382
|
+
onOpenControlPanel: () => setShowControlPanel(true),
|
|
383
|
+
headerBorder,
|
|
384
|
+
headerBg,
|
|
385
|
+
clockColor,
|
|
386
|
+
mutedText,
|
|
387
|
+
toolbarBtnBorder,
|
|
388
|
+
toolbarBtnBg,
|
|
389
|
+
toolbarBtnBgActive
|
|
390
|
+
}
|
|
473
391
|
),
|
|
474
392
|
/* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, minHeight: 0, padding: 12, display: "flex", flexDirection: "column", gap: 10 } }, totalPages > 1 ? /* @__PURE__ */ import_react.default.createElement(
|
|
475
393
|
"div",
|
|
@@ -531,11 +449,12 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
531
449
|
gridTemplateRows: `repeat(${selectedLayout.rows}, minmax(0, 1fr))`
|
|
532
450
|
}
|
|
533
451
|
},
|
|
534
|
-
renderCards.map((card
|
|
452
|
+
renderCards.map((card) => /* @__PURE__ */ import_react.default.createElement(
|
|
535
453
|
import_VenueWallCard.VenueWallCard,
|
|
536
454
|
{
|
|
537
|
-
key:
|
|
455
|
+
key: String(card.resourceId),
|
|
538
456
|
card,
|
|
457
|
+
wallNowMs: now.getTime(),
|
|
539
458
|
boardingSoonBeforeMin,
|
|
540
459
|
occupiedCardColor,
|
|
541
460
|
availableCardColor,
|
|
@@ -551,7 +470,6 @@ var PisellRecordBoardResourceWallView = (props) => {
|
|
|
551
470
|
open: showControlPanel,
|
|
552
471
|
onClose: closeControlPanel,
|
|
553
472
|
isDark,
|
|
554
|
-
cards,
|
|
555
473
|
layoutPresets: layoutPresetsWithI18n,
|
|
556
474
|
layoutKey,
|
|
557
475
|
customCols,
|
package/lib/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>;
|