@pisell/materials 6.11.27 → 6.11.29
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 +16 -16
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +16 -16
- package/es/components/Pagination/index.d.ts +1 -0
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -0
- package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
- package/es/components/PisellCards/components/TabCard/TabCard.d.ts +1 -0
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +1 -0
- package/es/components/appVersionControl/index.d.ts +0 -1
- package/es/components/config-provider/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -7
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/list/index.d.ts +1 -0
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/pisellFilter/index.d.ts +0 -1
- package/es/components/pisellGridPro/GridView/index.d.ts +1 -0
- package/es/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +8 -5
- package/es/components/pisellRecordBoard/index.d.ts +7 -2
- package/es/components/pisellRecordBoard/index.js +4 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +323 -312
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +37 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +9 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +157 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +9 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +513 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +82 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -2
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +58 -19
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +5 -3
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +4 -3
- package/es/components/pisellRecordBoard/shellFrame/index.js +49 -11
- package/es/components/pisellRecordBoard/types.d.ts +78 -2
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +5 -2
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +18 -0
- package/es/components/pisellReservationSchedule/locales.d.ts +43 -0
- package/es/components/pisellReservationSchedule/types.d.ts +52 -0
- package/es/components/pisellReservationScheduleBand/types.d.ts +61 -0
- package/es/components/pisellSort/index.d.ts +1 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +41 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/es/components/productCard/components/Time/index.d.ts +1 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/BasicTable/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -0
- package/es/locales/en-US.d.ts +389 -0
- package/es/locales/en-US.js +1 -0
- package/es/locales/ja.d.ts +358 -0
- package/es/locales/ja.js +1 -0
- package/es/locales/pt.d.ts +358 -0
- package/es/locales/pt.js +1 -0
- package/es/locales/zh-CN.d.ts +384 -0
- package/es/locales/zh-CN.js +1 -0
- package/es/locales/zh-TW.d.ts +384 -0
- package/es/locales/zh-TW.js +1 -0
- package/es/pisell-materials.tw.css +1 -1
- package/lib/components/Pagination/index.d.ts +1 -0
- package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -0
- package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
- package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +1 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +1 -0
- package/lib/components/appVersionControl/index.d.ts +0 -1
- package/lib/components/config-provider/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -7
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisellDataSourceContainer/PisellDataSourceContainer.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/pisellFilter/index.d.ts +0 -1
- package/lib/components/pisellGridPro/GridView/index.d.ts +1 -0
- package/lib/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +8 -3
- package/lib/components/pisellRecordBoard/index.d.ts +7 -2
- package/lib/components/pisellRecordBoard/index.js +4 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +142 -215
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +60 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +9 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +163 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +27 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +636 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +52 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +110 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +5 -2
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +45 -14
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +5 -3
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +4 -3
- package/lib/components/pisellRecordBoard/shellFrame/index.js +57 -7
- package/lib/components/pisellRecordBoard/types.d.ts +78 -2
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +5 -2
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +18 -0
- package/lib/components/pisellReservationSchedule/locales.d.ts +43 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +52 -0
- package/lib/components/pisellReservationScheduleBand/types.d.ts +61 -0
- package/lib/components/pisellSort/index.d.ts +1 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +41 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/index.d.ts +1 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/BasicTable/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +5 -0
- package/lib/locales/en-US.d.ts +389 -0
- package/lib/locales/en-US.js +1 -0
- package/lib/locales/ja.d.ts +358 -0
- package/lib/locales/ja.js +1 -0
- package/lib/locales/pt.d.ts +358 -0
- package/lib/locales/pt.js +1 -0
- package/lib/locales/zh-CN.d.ts +384 -0
- package/lib/locales/zh-CN.js +1 -0
- package/lib/locales/zh-TW.d.ts +384 -0
- package/lib/locales/zh-TW.js +1 -0
- package/lib/pisell-materials.tw.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,636 @@
|
|
|
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/ResourceWall/VenueWallCard.tsx
|
|
30
|
+
var VenueWallCard_exports = {};
|
|
31
|
+
__export(VenueWallCard_exports, {
|
|
32
|
+
VenueWallCard: () => VenueWallCard
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(VenueWallCard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_NoteTicker = require("./NoteTicker");
|
|
37
|
+
var import_venueWallUtils = require("./venueWallUtils");
|
|
38
|
+
function useVenueWallClockNow() {
|
|
39
|
+
const [now, setNow] = (0, import_react.useState)(() => Date.now());
|
|
40
|
+
(0, import_react.useEffect)(() => {
|
|
41
|
+
const id = window.setInterval(() => setNow(Date.now()), 1e3);
|
|
42
|
+
return () => window.clearInterval(id);
|
|
43
|
+
}, []);
|
|
44
|
+
return now;
|
|
45
|
+
}
|
|
46
|
+
function useDriftMinutesFromEpoch(value, resourceId, now, allowNegative = false) {
|
|
47
|
+
const [epoch, setEpoch] = (0, import_react.useState)(() => ({
|
|
48
|
+
min: value ?? 0,
|
|
49
|
+
at: Date.now()
|
|
50
|
+
}));
|
|
51
|
+
(0, import_react.useEffect)(() => {
|
|
52
|
+
setEpoch({ min: value ?? 0, at: Date.now() });
|
|
53
|
+
}, [resourceId, value]);
|
|
54
|
+
const drifted = epoch.min - Math.floor((now - epoch.at) / 6e4);
|
|
55
|
+
return allowNegative ? drifted : Math.max(0, drifted);
|
|
56
|
+
}
|
|
57
|
+
function useDriftUpMinutesFromEpoch(value, resourceId, now) {
|
|
58
|
+
const [epoch, setEpoch] = (0, import_react.useState)(() => ({
|
|
59
|
+
min: value ?? 0,
|
|
60
|
+
at: Date.now()
|
|
61
|
+
}));
|
|
62
|
+
(0, import_react.useEffect)(() => {
|
|
63
|
+
setEpoch({ min: value ?? 0, at: Date.now() });
|
|
64
|
+
}, [resourceId, value]);
|
|
65
|
+
return Math.max(0, epoch.min + Math.floor((now - epoch.at) / 6e4));
|
|
66
|
+
}
|
|
67
|
+
var DEFAULT_OCCUPIED = "#6f4ae6";
|
|
68
|
+
var DEFAULT_AVAILABLE = "#10b981";
|
|
69
|
+
var VenueWallCard = ({
|
|
70
|
+
card,
|
|
71
|
+
boardingSoonBeforeMin = 10,
|
|
72
|
+
occupiedCardColor = DEFAULT_OCCUPIED,
|
|
73
|
+
availableCardColor = DEFAULT_AVAILABLE,
|
|
74
|
+
heroMaxWidthRatio = 0.6
|
|
75
|
+
}) => {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
const cardRef = (0, import_react.useRef)(null);
|
|
78
|
+
const [cardSize, setCardSize] = (0, import_react.useState)({ width: 420, height: 300 });
|
|
79
|
+
(0, import_react.useEffect)(() => {
|
|
80
|
+
if (!cardRef.current) return;
|
|
81
|
+
const node = cardRef.current;
|
|
82
|
+
const updateSize = () => {
|
|
83
|
+
const rect = node.getBoundingClientRect();
|
|
84
|
+
setCardSize({ width: rect.width, height: rect.height });
|
|
85
|
+
};
|
|
86
|
+
updateSize();
|
|
87
|
+
const observer = new ResizeObserver(updateSize);
|
|
88
|
+
observer.observe(node);
|
|
89
|
+
return () => observer.disconnect();
|
|
90
|
+
}, []);
|
|
91
|
+
const wallNow = useVenueWallClockNow();
|
|
92
|
+
const liveRemainingMin = useDriftMinutesFromEpoch(
|
|
93
|
+
card.remainingMin,
|
|
94
|
+
card.resourceId,
|
|
95
|
+
wallNow,
|
|
96
|
+
true
|
|
97
|
+
);
|
|
98
|
+
const liveStartsInMin = useDriftMinutesFromEpoch(
|
|
99
|
+
card.startsInMin,
|
|
100
|
+
card.resourceId,
|
|
101
|
+
wallNow,
|
|
102
|
+
false
|
|
103
|
+
);
|
|
104
|
+
const liveLateMin = useDriftUpMinutesFromEpoch(
|
|
105
|
+
card.lateMin,
|
|
106
|
+
card.resourceId,
|
|
107
|
+
wallNow
|
|
108
|
+
);
|
|
109
|
+
const statusKey = (0, import_venueWallUtils.deriveVenueWallStatus)({
|
|
110
|
+
...card,
|
|
111
|
+
remainingMin: liveRemainingMin
|
|
112
|
+
});
|
|
113
|
+
const tone = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP[statusKey] ?? import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.inUse;
|
|
114
|
+
const isOccupied = ["inUse", "endingSoon", "expired"].includes(statusKey);
|
|
115
|
+
let heroText = isOccupied ? (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin) : "Available";
|
|
116
|
+
let heroColor = isOccupied ? statusKey === "inUse" ? "#ffffff" : tone.color : import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color;
|
|
117
|
+
let noteText = isOccupied ? tone.note : import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.note;
|
|
118
|
+
let noteTextColor = isOccupied ? "#ffffff" : "#0f172a";
|
|
119
|
+
let noteBg = isOccupied ? tone.noteBg : (0, import_venueWallUtils.alphaColor)(availableCardColor, 0.2);
|
|
120
|
+
const subColor = isOccupied ? "rgba(255,255,255,0.80)" : "#94a3b8";
|
|
121
|
+
const mainColor = isOccupied ? "#ffffff" : "#0f172a";
|
|
122
|
+
let currentLabel = "Current";
|
|
123
|
+
let currentTime = card.currentTime ?? "";
|
|
124
|
+
let currentName = isOccupied ? card.currentBooking ?? "" : "";
|
|
125
|
+
let currentNameColor = mainColor;
|
|
126
|
+
let nextNameColor = mainColor;
|
|
127
|
+
let progress = isOccupied ? (0, import_venueWallUtils.clamp)(liveRemainingMin / 60 * 100, 0, 100) : 0;
|
|
128
|
+
let progressColor = heroColor;
|
|
129
|
+
let rightTag = tone.label;
|
|
130
|
+
let rightTagColor = isOccupied ? "#ffffff" : tone.color;
|
|
131
|
+
let rightTagBg = isOccupied ? statusKey === "inUse" ? "rgba(255,255,255,0.14)" : tone.color : (0, import_venueWallUtils.alphaColor)(tone.color, 0.12);
|
|
132
|
+
let rightTagBorder = isOccupied ? "rgba(255,255,255,0.18)" : (0, import_venueWallUtils.alphaColor)(tone.color, 0.35);
|
|
133
|
+
const nextItem = (_a = card.nextList) == null ? void 0 : _a[0];
|
|
134
|
+
const nextCountLabel = nextItem ? `1/${((_b = card.nextList) == null ? void 0 : _b.length) ?? 0}` : "";
|
|
135
|
+
if (statusKey === "boardingSoon") {
|
|
136
|
+
heroText = `Starts in ${liveStartsInMin}m`;
|
|
137
|
+
heroColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color;
|
|
138
|
+
noteText = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.note;
|
|
139
|
+
noteTextColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color;
|
|
140
|
+
noteBg = (0, import_venueWallUtils.alphaColor)(import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color, 0.18);
|
|
141
|
+
currentLabel = "Next";
|
|
142
|
+
currentName = card.currentBooking ?? "";
|
|
143
|
+
currentNameColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color;
|
|
144
|
+
nextNameColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color;
|
|
145
|
+
progress = (0, import_venueWallUtils.clamp)(
|
|
146
|
+
(boardingSoonBeforeMin - liveStartsInMin) / boardingSoonBeforeMin * 100,
|
|
147
|
+
0,
|
|
148
|
+
100
|
|
149
|
+
);
|
|
150
|
+
progressColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color;
|
|
151
|
+
rightTag = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.label;
|
|
152
|
+
rightTagColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color;
|
|
153
|
+
rightTagBg = (0, import_venueWallUtils.alphaColor)(import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color, 0.12);
|
|
154
|
+
rightTagBorder = (0, import_venueWallUtils.alphaColor)(import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color, 0.35);
|
|
155
|
+
}
|
|
156
|
+
if (statusKey === "late") {
|
|
157
|
+
heroText = `Late +${liveLateMin}m`;
|
|
158
|
+
heroColor = "rgb(239, 68, 68)";
|
|
159
|
+
noteText = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.late.note;
|
|
160
|
+
noteTextColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color;
|
|
161
|
+
noteBg = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.noteBg;
|
|
162
|
+
currentLabel = "Next";
|
|
163
|
+
currentName = card.currentBooking ?? "";
|
|
164
|
+
currentNameColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color;
|
|
165
|
+
nextNameColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color;
|
|
166
|
+
progress = 100;
|
|
167
|
+
progressColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color;
|
|
168
|
+
rightTag = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.late.label;
|
|
169
|
+
rightTagColor = import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color;
|
|
170
|
+
rightTagBg = (0, import_venueWallUtils.alphaColor)(import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color, 0.12);
|
|
171
|
+
rightTagBorder = (0, import_venueWallUtils.alphaColor)(import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.available.color, 0.35);
|
|
172
|
+
}
|
|
173
|
+
if (statusKey === "expired") {
|
|
174
|
+
heroText = liveRemainingMin < 0 ? (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin) : liveRemainingMin === 0 ? "0m overtime" : (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin);
|
|
175
|
+
}
|
|
176
|
+
const surfaceAccentColor = statusKey === "late" ? availableCardColor : statusKey === "boardingSoon" ? import_venueWallUtils.VENUE_WALL_STATUS_COLOR_MAP.boardingSoon.color : availableCardColor;
|
|
177
|
+
const cardBg = isOccupied ? `linear-gradient(180deg, ${(0, import_venueWallUtils.alphaColor)(occupiedCardColor, 0.96)} 0%, ${(0, import_venueWallUtils.alphaColor)(occupiedCardColor, 0.88)} 100%)` : (0, import_venueWallUtils.alphaColor)(
|
|
178
|
+
surfaceAccentColor,
|
|
179
|
+
statusKey === "boardingSoon" || statusKey === "late" ? 0.06 : 0.03
|
|
180
|
+
);
|
|
181
|
+
const cardBorder = isOccupied ? (0, import_venueWallUtils.alphaColor)(occupiedCardColor, 0.5) : (0, import_venueWallUtils.alphaColor)(surfaceAccentColor, 0.18);
|
|
182
|
+
const moduleBorder = isOccupied ? "rgba(255,255,255,0.10)" : (0, import_venueWallUtils.alphaColor)(surfaceAccentColor, 0.2);
|
|
183
|
+
const totalUnits = 1.5 + 4 + 2 + 1 + 0.4 * 2 + 0.2 * 3;
|
|
184
|
+
const heightUnit = Math.max(4, cardSize.height / totalUnits);
|
|
185
|
+
const widthScale = (0, import_venueWallUtils.clamp)(cardSize.width / 420, 0.42, 1.6);
|
|
186
|
+
const heightScale = (0, import_venueWallUtils.clamp)(cardSize.height / 300, 0.42, 1.8);
|
|
187
|
+
const fitScale = Math.min(widthScale, heightScale);
|
|
188
|
+
const unit = heightUnit;
|
|
189
|
+
const shellPad = unit * 0.4;
|
|
190
|
+
const sectionGap = unit * 0.2;
|
|
191
|
+
const blockPad = Math.max(unit * 0.2, Math.min(unit * 0.3, 20));
|
|
192
|
+
const cardRadius = (0, import_venueWallUtils.clamp)(unit * 0.62 * fitScale, 4, 28);
|
|
193
|
+
const blockRadius = (0, import_venueWallUtils.clamp)(unit * 0.48 * fitScale, 3, 24);
|
|
194
|
+
const noteRadius = (0, import_venueWallUtils.clamp)(unit * 0.4 * fitScale, 3, 20);
|
|
195
|
+
const tagRadius = (0, import_venueWallUtils.clamp)(unit * 0.34 * fitScale, 3, 999);
|
|
196
|
+
const headerHeight = unit * 1.5;
|
|
197
|
+
const currentHeight = unit * 4;
|
|
198
|
+
const nextHeight = unit * 2;
|
|
199
|
+
const noteHeight = unit * 1;
|
|
200
|
+
const areaSize = (0, import_venueWallUtils.clamp)(headerHeight * 0.18 * fitScale, 9, 18);
|
|
201
|
+
const resourceSize = (0, import_venueWallUtils.clamp)(headerHeight * 0.34 * fitScale, 16, 42);
|
|
202
|
+
const tagSize = (0, import_venueWallUtils.clamp)(headerHeight * 0.12 * fitScale, 10, 14);
|
|
203
|
+
const tagHeight = (0, import_venueWallUtils.clamp)(headerHeight * 0.42, 28, 36);
|
|
204
|
+
const currentMetaSize = (0, import_venueWallUtils.clamp)(currentHeight * 0.09 * fitScale, 9, 16);
|
|
205
|
+
const currentNameSize = (0, import_venueWallUtils.clamp)(currentHeight * 0.15 * fitScale, 12, 30);
|
|
206
|
+
const heroTextMaxWidth = Math.max(
|
|
207
|
+
80,
|
|
208
|
+
(cardSize.width - shellPad * 2 - blockPad * 2) * heroMaxWidthRatio
|
|
209
|
+
);
|
|
210
|
+
const heroMaxByName = currentNameSize * 2.5;
|
|
211
|
+
const heroApproxFactor = Math.max(heroText.length * 0.58, 1);
|
|
212
|
+
const heroFitByWidth = heroTextMaxWidth / heroApproxFactor;
|
|
213
|
+
const heroSize = (0, import_venueWallUtils.clamp)(
|
|
214
|
+
Math.min(heroFitByWidth, heroMaxByName),
|
|
215
|
+
18,
|
|
216
|
+
heroMaxByName
|
|
217
|
+
);
|
|
218
|
+
const nextNameSize = (0, import_venueWallUtils.clamp)(nextHeight * 0.24 * fitScale, 12, 30);
|
|
219
|
+
const nextMetaSize = (0, import_venueWallUtils.clamp)(
|
|
220
|
+
currentMetaSize,
|
|
221
|
+
9,
|
|
222
|
+
Math.max(10, nextNameSize * 0.68)
|
|
223
|
+
);
|
|
224
|
+
const nextBlockPad = Math.max(unit * 0.16, Math.min(unit * 0.24, 16));
|
|
225
|
+
const noteSize = (0, import_venueWallUtils.clamp)(noteHeight * 0.28 * fitScale, 10, 18);
|
|
226
|
+
const tagFont = Math.max(8, tagSize * 0.68);
|
|
227
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
228
|
+
"div",
|
|
229
|
+
{
|
|
230
|
+
ref: cardRef,
|
|
231
|
+
className: "pisell-resource-wall-card",
|
|
232
|
+
style: {
|
|
233
|
+
position: "relative",
|
|
234
|
+
height: "100%",
|
|
235
|
+
overflow: "hidden",
|
|
236
|
+
display: "flex",
|
|
237
|
+
flexDirection: "column",
|
|
238
|
+
borderRadius: cardRadius,
|
|
239
|
+
background: cardBg,
|
|
240
|
+
borderWidth: 1,
|
|
241
|
+
borderStyle: "solid",
|
|
242
|
+
borderColor: cardBorder,
|
|
243
|
+
boxShadow: "0 18px 48px rgba(15,23,42,0.06)"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
style: {
|
|
250
|
+
flex: 1,
|
|
251
|
+
display: "grid",
|
|
252
|
+
minHeight: 0,
|
|
253
|
+
padding: shellPad,
|
|
254
|
+
gap: sectionGap,
|
|
255
|
+
gridTemplateRows: `${headerHeight}px ${currentHeight}px ${nextHeight}px ${noteHeight}px`
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
259
|
+
"div",
|
|
260
|
+
{
|
|
261
|
+
style: {
|
|
262
|
+
display: "grid",
|
|
263
|
+
minHeight: 0,
|
|
264
|
+
gridTemplateRows: "1fr 2fr",
|
|
265
|
+
rowGap: sectionGap
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
269
|
+
"div",
|
|
270
|
+
{
|
|
271
|
+
style: {
|
|
272
|
+
textTransform: "uppercase",
|
|
273
|
+
letterSpacing: "0.24em",
|
|
274
|
+
fontSize: areaSize,
|
|
275
|
+
color: subColor,
|
|
276
|
+
overflow: "hidden",
|
|
277
|
+
textOverflow: "ellipsis",
|
|
278
|
+
whiteSpace: "nowrap",
|
|
279
|
+
display: "flex",
|
|
280
|
+
alignItems: "center"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
card.area
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
286
|
+
"div",
|
|
287
|
+
{
|
|
288
|
+
style: {
|
|
289
|
+
display: "grid",
|
|
290
|
+
alignItems: "center",
|
|
291
|
+
minHeight: 0,
|
|
292
|
+
gridTemplateColumns: "1fr auto",
|
|
293
|
+
columnGap: 8
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
297
|
+
"div",
|
|
298
|
+
{
|
|
299
|
+
style: {
|
|
300
|
+
fontWeight: 700,
|
|
301
|
+
overflow: "hidden",
|
|
302
|
+
textOverflow: "ellipsis",
|
|
303
|
+
whiteSpace: "nowrap",
|
|
304
|
+
minWidth: 0,
|
|
305
|
+
fontSize: resourceSize,
|
|
306
|
+
lineHeight: 0.96,
|
|
307
|
+
color: mainColor
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
card.resource
|
|
311
|
+
),
|
|
312
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
313
|
+
"div",
|
|
314
|
+
{
|
|
315
|
+
style: {
|
|
316
|
+
display: "flex",
|
|
317
|
+
alignItems: "center",
|
|
318
|
+
gap: 8,
|
|
319
|
+
flexShrink: 0
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
323
|
+
"div",
|
|
324
|
+
{
|
|
325
|
+
style: {
|
|
326
|
+
borderWidth: 1,
|
|
327
|
+
borderStyle: "solid",
|
|
328
|
+
fontWeight: 600,
|
|
329
|
+
display: "flex",
|
|
330
|
+
alignItems: "center",
|
|
331
|
+
justifyContent: "center",
|
|
332
|
+
flexShrink: 0,
|
|
333
|
+
fontSize: tagSize,
|
|
334
|
+
lineHeight: 1,
|
|
335
|
+
minHeight: tagHeight,
|
|
336
|
+
borderRadius: tagRadius,
|
|
337
|
+
padding: `0 ${Math.max(8, tagFont)}px`,
|
|
338
|
+
color: rightTagColor,
|
|
339
|
+
borderColor: rightTagBorder,
|
|
340
|
+
background: rightTagBg
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
rightTag
|
|
344
|
+
)
|
|
345
|
+
)
|
|
346
|
+
)
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
349
|
+
"div",
|
|
350
|
+
{
|
|
351
|
+
style: {
|
|
352
|
+
borderWidth: 1,
|
|
353
|
+
borderStyle: "solid",
|
|
354
|
+
position: "relative",
|
|
355
|
+
minHeight: 0,
|
|
356
|
+
borderRadius: blockRadius,
|
|
357
|
+
borderColor: moduleBorder,
|
|
358
|
+
background: isOccupied ? "rgba(255,255,255,0.10)" : (0, import_venueWallUtils.alphaColor)(
|
|
359
|
+
surfaceAccentColor,
|
|
360
|
+
statusKey === "boardingSoon" ? 0.18 : 0.2
|
|
361
|
+
),
|
|
362
|
+
padding: blockPad
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
366
|
+
"div",
|
|
367
|
+
{
|
|
368
|
+
style: {
|
|
369
|
+
height: "100%",
|
|
370
|
+
display: "grid",
|
|
371
|
+
minHeight: 0,
|
|
372
|
+
gridTemplateRows: "1.4fr 2.6fr auto",
|
|
373
|
+
rowGap: sectionGap
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
377
|
+
"div",
|
|
378
|
+
{
|
|
379
|
+
style: {
|
|
380
|
+
display: "grid",
|
|
381
|
+
minHeight: 0,
|
|
382
|
+
gridTemplateColumns: "1fr auto",
|
|
383
|
+
columnGap: 8,
|
|
384
|
+
alignItems: "start"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { minWidth: 0 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
388
|
+
"div",
|
|
389
|
+
{
|
|
390
|
+
style: {
|
|
391
|
+
textTransform: "uppercase",
|
|
392
|
+
letterSpacing: "0.22em",
|
|
393
|
+
lineHeight: 1,
|
|
394
|
+
fontSize: currentMetaSize,
|
|
395
|
+
color: subColor
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
currentLabel
|
|
399
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
400
|
+
"div",
|
|
401
|
+
{
|
|
402
|
+
style: {
|
|
403
|
+
lineHeight: 1,
|
|
404
|
+
marginTop: "0.2em",
|
|
405
|
+
fontSize: currentMetaSize,
|
|
406
|
+
color: subColor
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
currentTime || " "
|
|
410
|
+
)),
|
|
411
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
412
|
+
"div",
|
|
413
|
+
{
|
|
414
|
+
style: {
|
|
415
|
+
fontWeight: 600,
|
|
416
|
+
textAlign: "right",
|
|
417
|
+
overflow: "hidden",
|
|
418
|
+
textOverflow: "ellipsis",
|
|
419
|
+
whiteSpace: "nowrap",
|
|
420
|
+
minWidth: 0,
|
|
421
|
+
alignSelf: "start",
|
|
422
|
+
fontSize: currentNameSize,
|
|
423
|
+
lineHeight: 1.08,
|
|
424
|
+
color: currentNameColor,
|
|
425
|
+
maxWidth: cardSize.width * 0.42,
|
|
426
|
+
paddingTop: "0.04em",
|
|
427
|
+
paddingBottom: "0.08em"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
currentName
|
|
431
|
+
)
|
|
432
|
+
),
|
|
433
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
434
|
+
"div",
|
|
435
|
+
{
|
|
436
|
+
style: {
|
|
437
|
+
display: "flex",
|
|
438
|
+
alignItems: "flex-end",
|
|
439
|
+
minHeight: 0,
|
|
440
|
+
overflow: "hidden"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
444
|
+
"div",
|
|
445
|
+
{
|
|
446
|
+
style: {
|
|
447
|
+
fontWeight: 600,
|
|
448
|
+
letterSpacing: "-0.02em",
|
|
449
|
+
whiteSpace: "nowrap",
|
|
450
|
+
fontSize: heroSize,
|
|
451
|
+
lineHeight: 1.08,
|
|
452
|
+
color: heroColor,
|
|
453
|
+
maxWidth: heroTextMaxWidth
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
heroText
|
|
457
|
+
)
|
|
458
|
+
),
|
|
459
|
+
statusKey === "boardingSoon" || isOccupied ? /* @__PURE__ */ import_react.default.createElement(
|
|
460
|
+
"div",
|
|
461
|
+
{
|
|
462
|
+
style: {
|
|
463
|
+
borderRadius: 9999,
|
|
464
|
+
overflow: "hidden",
|
|
465
|
+
height: Math.max(5, unit * 0.08),
|
|
466
|
+
background: isOccupied ? "rgba(255,255,255,0.14)" : "rgba(148,163,184,0.18)"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
470
|
+
"div",
|
|
471
|
+
{
|
|
472
|
+
style: {
|
|
473
|
+
height: "100%",
|
|
474
|
+
borderRadius: 9999,
|
|
475
|
+
width: `${progress}%`,
|
|
476
|
+
background: progressColor
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
)
|
|
480
|
+
) : null
|
|
481
|
+
)
|
|
482
|
+
),
|
|
483
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
484
|
+
"div",
|
|
485
|
+
{
|
|
486
|
+
style: {
|
|
487
|
+
borderWidth: 1,
|
|
488
|
+
borderStyle: "solid",
|
|
489
|
+
minHeight: 0,
|
|
490
|
+
borderRadius: blockRadius,
|
|
491
|
+
borderColor: moduleBorder,
|
|
492
|
+
background: isOccupied ? "rgba(255,255,255,0.04)" : (0, import_venueWallUtils.alphaColor)(
|
|
493
|
+
surfaceAccentColor,
|
|
494
|
+
statusKey === "boardingSoon" ? 0.1 : 0.08
|
|
495
|
+
),
|
|
496
|
+
padding: nextBlockPad
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
500
|
+
"div",
|
|
501
|
+
{
|
|
502
|
+
style: {
|
|
503
|
+
height: "100%",
|
|
504
|
+
minHeight: 0,
|
|
505
|
+
display: "grid",
|
|
506
|
+
gridTemplateRows: "1fr 2fr",
|
|
507
|
+
rowGap: sectionGap
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
511
|
+
"div",
|
|
512
|
+
{
|
|
513
|
+
style: {
|
|
514
|
+
display: "flex",
|
|
515
|
+
alignItems: "flex-start",
|
|
516
|
+
justifyContent: "space-between",
|
|
517
|
+
gap: 8,
|
|
518
|
+
minHeight: 0
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
522
|
+
"div",
|
|
523
|
+
{
|
|
524
|
+
style: {
|
|
525
|
+
textTransform: "uppercase",
|
|
526
|
+
letterSpacing: "0.12em",
|
|
527
|
+
lineHeight: 1,
|
|
528
|
+
overflow: "hidden",
|
|
529
|
+
textOverflow: "ellipsis",
|
|
530
|
+
whiteSpace: "nowrap",
|
|
531
|
+
fontSize: nextMetaSize,
|
|
532
|
+
color: subColor
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
(nextItem == null ? void 0 : nextItem.time) ? `Next · ${nextItem.time}` : "Next"
|
|
536
|
+
),
|
|
537
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
538
|
+
"div",
|
|
539
|
+
{
|
|
540
|
+
style: {
|
|
541
|
+
fontWeight: 600,
|
|
542
|
+
flexShrink: 0,
|
|
543
|
+
fontSize: nextMetaSize,
|
|
544
|
+
color: subColor,
|
|
545
|
+
lineHeight: 1
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
nextCountLabel
|
|
549
|
+
)
|
|
550
|
+
),
|
|
551
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
552
|
+
"div",
|
|
553
|
+
{
|
|
554
|
+
style: {
|
|
555
|
+
display: "flex",
|
|
556
|
+
alignItems: "flex-start",
|
|
557
|
+
minWidth: 0,
|
|
558
|
+
minHeight: 0
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
562
|
+
"div",
|
|
563
|
+
{
|
|
564
|
+
style: {
|
|
565
|
+
fontWeight: 600,
|
|
566
|
+
overflow: "hidden",
|
|
567
|
+
textOverflow: "ellipsis",
|
|
568
|
+
whiteSpace: "nowrap",
|
|
569
|
+
fontSize: nextNameSize,
|
|
570
|
+
lineHeight: 1,
|
|
571
|
+
color: nextNameColor,
|
|
572
|
+
paddingTop: sectionGap
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
(nextItem == null ? void 0 : nextItem.booking) ?? ""
|
|
576
|
+
)
|
|
577
|
+
)
|
|
578
|
+
)
|
|
579
|
+
),
|
|
580
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
581
|
+
"div",
|
|
582
|
+
{
|
|
583
|
+
style: {
|
|
584
|
+
display: "flex",
|
|
585
|
+
alignItems: "center",
|
|
586
|
+
gap: 12,
|
|
587
|
+
overflow: "hidden",
|
|
588
|
+
minHeight: 0,
|
|
589
|
+
padding: Math.max(6, blockPad * 0.66),
|
|
590
|
+
borderRadius: noteRadius,
|
|
591
|
+
background: noteBg,
|
|
592
|
+
border: "1px solid transparent"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
596
|
+
"div",
|
|
597
|
+
{
|
|
598
|
+
style: {
|
|
599
|
+
width: Math.max(8, unit * 0.12),
|
|
600
|
+
height: Math.max(8, unit * 0.12),
|
|
601
|
+
borderRadius: 999,
|
|
602
|
+
background: heroColor,
|
|
603
|
+
flex: "0 0 auto"
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
),
|
|
607
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
608
|
+
"div",
|
|
609
|
+
{
|
|
610
|
+
style: {
|
|
611
|
+
fontSize: noteSize,
|
|
612
|
+
color: noteTextColor,
|
|
613
|
+
width: "100%",
|
|
614
|
+
height: "100%",
|
|
615
|
+
display: "flex",
|
|
616
|
+
alignItems: "center"
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
620
|
+
import_NoteTicker.NoteTicker,
|
|
621
|
+
{
|
|
622
|
+
text: noteText,
|
|
623
|
+
color: noteTextColor,
|
|
624
|
+
duration: 24,
|
|
625
|
+
shouldMarquee: noteText.length > 32
|
|
626
|
+
}
|
|
627
|
+
)
|
|
628
|
+
)
|
|
629
|
+
)
|
|
630
|
+
)
|
|
631
|
+
);
|
|
632
|
+
};
|
|
633
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
634
|
+
0 && (module.exports = {
|
|
635
|
+
VenueWallCard
|
|
636
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@keyframes pisell-resource-wall-note-marquee {
|
|
2
|
+
0% {
|
|
3
|
+
transform: translate3d(0, 0, 0);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: translate3d(calc(-33.333% - (var(--pisell-rw-marquee-gap) / 3)), 0, 0);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pisell-resource-wall-note-marquee-wrap {
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
width: 100%;
|
|
14
|
+
mask-image: linear-gradient(
|
|
15
|
+
to right,
|
|
16
|
+
transparent 0,
|
|
17
|
+
#000 24px,
|
|
18
|
+
#000 calc(100% - 24px),
|
|
19
|
+
transparent 100%
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pisell-resource-wall-note-marquee-track {
|
|
24
|
+
--pisell-rw-marquee-gap: 2.4rem;
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
width: max-content;
|
|
28
|
+
min-width: max-content;
|
|
29
|
+
will-change: transform;
|
|
30
|
+
animation-name: pisell-resource-wall-note-marquee;
|
|
31
|
+
animation-timing-function: linear;
|
|
32
|
+
animation-iteration-count: infinite;
|
|
33
|
+
animation-play-state: running;
|
|
34
|
+
transform: translate3d(0, 0, 0);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pisell-resource-wall-note-marquee-copy {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
flex: 0 0 auto;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
padding-right: var(--pisell-rw-marquee-gap);
|
|
43
|
+
backface-visibility: hidden;
|
|
44
|
+
transform: translateZ(0);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pisell-resource-wall-note-marquee-static {
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RecordBoardResourceWallCardModel } from '../../types';
|
|
2
|
+
export declare type VenueWallStatusKey = 'inUse' | 'endingSoon' | 'expired' | 'available' | 'boardingSoon' | 'late';
|
|
3
|
+
export declare const VENUE_WALL_STATUS_COLOR_MAP: Record<VenueWallStatusKey, {
|
|
4
|
+
key: VenueWallStatusKey;
|
|
5
|
+
label: string;
|
|
6
|
+
note: string;
|
|
7
|
+
color: string;
|
|
8
|
+
noteBg: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function alphaColor(hex: string, alpha: number): string;
|
|
11
|
+
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
12
|
+
/** 由卡片字段推导状态键(与演示页 test.tsx 规则一致) */
|
|
13
|
+
export declare function deriveVenueWallStatus(card: RecordBoardResourceWallCardModel): VenueWallStatusKey;
|
|
14
|
+
export declare function formatVenueWallCountdown(min: number): string;
|