@pisell/materials 6.11.37 → 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/Pagination/index.d.ts +1 -0
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +1 -0
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.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/PisellCards/index.d.ts +1 -0
- package/es/components/PisellFields/index.d.ts +1 -0
- package/es/components/PisellLayouts/index.d.ts +2 -1
- package/es/components/appVersionControl/index.d.ts +1 -0
- package/es/components/auto-complete-number/index.d.ts +1 -0
- package/es/components/badge/index.d.ts +1 -0
- package/es/components/batch-editor/fields/index.d.ts +1 -0
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/calendar/index.d.ts +1 -0
- package/es/components/cardPro/index.d.ts +1 -0
- package/es/components/checkbox/index.d.ts +1 -0
- package/es/components/classicLayout/index.d.ts +1 -0
- package/es/components/config-provider/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- 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/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/dropdown/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 +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +1 -0
- package/es/components/pisellCard/index.d.ts +1 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellFilter/index.d.ts +1 -0
- 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/pisellGridPro/GridView/index.d.ts +1 -0
- package/es/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
- package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- 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/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 +100 -112
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +3 -3
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +41 -234
- 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 +52 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +60 -11
- package/es/components/pisellRecordBoard/shellFrame/index.js +34 -7
- package/es/components/pisellRecordBoard/types.d.ts +95 -3
- package/es/components/pisellRecordBoard/types.js +16 -1
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +34 -2
- package/es/components/pisellShellFrame/PisellShellFrame.less +5 -2
- package/es/components/pisellSort/index.d.ts +1 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/pisellUpload/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
- package/es/components/productCard/components/Action/index.d.ts +1 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/components/Divider/index.d.ts +1 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/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/Sales/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/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/radio/index.d.ts +1 -0
- package/es/components/segmented/index.d.ts +1 -0
- package/es/components/select-time/RightPanel/index.d.ts +1 -0
- package/es/components/select-time/index.d.ts +1 -0
- package/es/components/skeleton/index.d.ts +1 -0
- package/es/components/slider/index.d.ts +1 -0
- package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/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/PopoverContent.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/component/ViewMode/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/Summary/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Config/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/Sort/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/Config/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/Sort/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/TableFilter/SortIcon.d.ts +1 -0
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/time-picker/index.d.ts +1 -0
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/es/components/walletCard/Guest/index.d.ts +1 -0
- package/es/components/walletCard/Guide/index.d.ts +1 -0
- 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 +75 -0
- 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 +75 -0
- package/es/locales/zh-TW.d.ts +74 -0
- package/es/locales/zh-TW.js +75 -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/GraphicTextCard/GraphicTextCard.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/PisellCards/index.d.ts +1 -0
- package/lib/components/PisellFields/index.d.ts +1 -0
- package/lib/components/PisellLayouts/index.d.ts +2 -1
- package/lib/components/appVersionControl/index.d.ts +1 -0
- package/lib/components/auto-complete-number/index.d.ts +1 -0
- package/lib/components/badge/index.d.ts +1 -0
- package/lib/components/batch-editor/fields/index.d.ts +1 -0
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/calendar/index.d.ts +1 -0
- package/lib/components/cardPro/index.d.ts +1 -0
- package/lib/components/checkbox/index.d.ts +1 -0
- package/lib/components/classicLayout/index.d.ts +1 -0
- package/lib/components/config-provider/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- 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/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/dropdown/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 +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
- package/lib/components/pisellCard/index.d.ts +1 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellFilter/index.d.ts +1 -0
- 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/pisellGridPro/GridView/index.d.ts +1 -0
- package/lib/components/pisellGridPro/components/DataCard/index.d.ts +1 -0
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- 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/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 +54 -129
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +3 -3
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +36 -178
- 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 +30 -2
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +47 -4
- package/lib/components/pisellRecordBoard/shellFrame/index.js +29 -13
- package/lib/components/pisellRecordBoard/types.d.ts +95 -3
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +34 -2
- package/lib/components/pisellShellFrame/PisellShellFrame.less +5 -2
- package/lib/components/pisellSort/index.d.ts +1 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/pisellUpload/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
- package/lib/components/productCard/components/Action/index.d.ts +1 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/components/Divider/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/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/Sales/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/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/radio/index.d.ts +1 -0
- package/lib/components/segmented/index.d.ts +1 -0
- package/lib/components/select-time/RightPanel/index.d.ts +1 -0
- package/lib/components/select-time/index.d.ts +1 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/slider/index.d.ts +1 -0
- package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportTable/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/PopoverContent.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ViewMode/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/Summary/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Config/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/Sort/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/Config/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/Sort/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/TableFilter/SortIcon.d.ts +1 -0
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/time-picker/index.d.ts +1 -0
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
- package/lib/components/walletCard/Guest/index.d.ts +1 -0
- package/lib/components/walletCard/Guide/index.d.ts +1 -0
- 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 +75 -0
- 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 +75 -0
- package/lib/locales/zh-TW.d.ts +74 -0
- package/lib/locales/zh-TW.js +75 -0
- package/lib/pisell-materials.tw.css +1 -1
- package/package.json +1 -2
- 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/ResourceWall/ResourceWallViewportToolbar.js
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
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/ResourceWallViewportToolbar.tsx
|
|
30
|
+
var ResourceWallViewportToolbar_exports = {};
|
|
31
|
+
__export(ResourceWallViewportToolbar_exports, {
|
|
32
|
+
ResourceWallViewportToolbar: () => ResourceWallViewportToolbar
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ResourceWallViewportToolbar_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_locales = require("../../../../locales");
|
|
37
|
+
var ResourceWallViewportToolbar = ({
|
|
38
|
+
now,
|
|
39
|
+
appearanceMode,
|
|
40
|
+
onAppearanceModeChange,
|
|
41
|
+
pseudoFullscreen,
|
|
42
|
+
onTogglePseudoFullscreen,
|
|
43
|
+
onOpenControlPanel,
|
|
44
|
+
headerBorder,
|
|
45
|
+
headerBg,
|
|
46
|
+
clockColor,
|
|
47
|
+
mutedText,
|
|
48
|
+
toolbarBtnBorder,
|
|
49
|
+
toolbarBtnBg,
|
|
50
|
+
toolbarBtnBgActive
|
|
51
|
+
}) => /* @__PURE__ */ import_react.default.createElement(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
style: {
|
|
55
|
+
flexShrink: 0,
|
|
56
|
+
borderBottom: headerBorder,
|
|
57
|
+
padding: "16px 24px",
|
|
58
|
+
display: "flex",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
justifyContent: "space-between",
|
|
61
|
+
gap: 16,
|
|
62
|
+
background: headerBg
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
style: {
|
|
69
|
+
fontSize: 22,
|
|
70
|
+
fontWeight: 600,
|
|
71
|
+
letterSpacing: "-0.02em",
|
|
72
|
+
color: clockColor
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
now.toLocaleTimeString([], {
|
|
76
|
+
hour: "2-digit",
|
|
77
|
+
minute: "2-digit",
|
|
78
|
+
hour12: false
|
|
79
|
+
}),
|
|
80
|
+
" ",
|
|
81
|
+
"·",
|
|
82
|
+
" ",
|
|
83
|
+
now.toLocaleDateString("en-GB", {
|
|
84
|
+
day: "2-digit",
|
|
85
|
+
month: "short",
|
|
86
|
+
year: "numeric"
|
|
87
|
+
})
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
90
|
+
"div",
|
|
91
|
+
{
|
|
92
|
+
style: {
|
|
93
|
+
display: "inline-flex",
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
borderRadius: 6,
|
|
96
|
+
border: toolbarBtnBorder,
|
|
97
|
+
overflow: "hidden",
|
|
98
|
+
background: toolbarBtnBg
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
102
|
+
"button",
|
|
103
|
+
{
|
|
104
|
+
type: "button",
|
|
105
|
+
onClick: () => onAppearanceModeChange("light"),
|
|
106
|
+
style: {
|
|
107
|
+
border: "none",
|
|
108
|
+
padding: "6px 12px",
|
|
109
|
+
fontSize: 13,
|
|
110
|
+
fontWeight: 500,
|
|
111
|
+
cursor: "pointer",
|
|
112
|
+
background: appearanceMode === "light" ? toolbarBtnBgActive : "transparent",
|
|
113
|
+
color: appearanceMode === "light" ? clockColor : mutedText
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
(0, import_locales.getText)("pisell-resource-wall-appearance-light")
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
119
|
+
"button",
|
|
120
|
+
{
|
|
121
|
+
type: "button",
|
|
122
|
+
onClick: () => onAppearanceModeChange("dark"),
|
|
123
|
+
style: {
|
|
124
|
+
border: "none",
|
|
125
|
+
borderLeft: toolbarBtnBorder,
|
|
126
|
+
padding: "6px 12px",
|
|
127
|
+
fontSize: 13,
|
|
128
|
+
fontWeight: 500,
|
|
129
|
+
cursor: "pointer",
|
|
130
|
+
background: appearanceMode === "dark" ? toolbarBtnBgActive : "transparent",
|
|
131
|
+
color: appearanceMode === "dark" ? clockColor : mutedText
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
(0, import_locales.getText)("pisell-resource-wall-appearance-dark")
|
|
135
|
+
)
|
|
136
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
137
|
+
"button",
|
|
138
|
+
{
|
|
139
|
+
type: "button",
|
|
140
|
+
onClick: onTogglePseudoFullscreen,
|
|
141
|
+
style: {
|
|
142
|
+
borderRadius: 6,
|
|
143
|
+
padding: "6px 14px",
|
|
144
|
+
fontSize: 13,
|
|
145
|
+
fontWeight: 500,
|
|
146
|
+
cursor: "pointer",
|
|
147
|
+
border: toolbarBtnBorder,
|
|
148
|
+
background: pseudoFullscreen ? toolbarBtnBgActive : toolbarBtnBg,
|
|
149
|
+
color: clockColor
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
pseudoFullscreen ? (0, import_locales.getText)("pisell-resource-wall-fullscreen-exit") : (0, import_locales.getText)("pisell-resource-wall-fullscreen-enter")
|
|
153
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
154
|
+
"button",
|
|
155
|
+
{
|
|
156
|
+
type: "button",
|
|
157
|
+
onClick: onOpenControlPanel,
|
|
158
|
+
style: {
|
|
159
|
+
borderRadius: 6,
|
|
160
|
+
padding: "6px 14px",
|
|
161
|
+
fontSize: 13,
|
|
162
|
+
fontWeight: 500,
|
|
163
|
+
cursor: "pointer",
|
|
164
|
+
border: toolbarBtnBorder,
|
|
165
|
+
background: toolbarBtnBg,
|
|
166
|
+
color: clockColor
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
(0, import_locales.getText)("pisell-resource-wall-control-open")
|
|
170
|
+
))
|
|
171
|
+
);
|
|
172
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
173
|
+
0 && (module.exports = {
|
|
174
|
+
ResourceWallViewportToolbar
|
|
175
|
+
});
|
|
@@ -3,6 +3,8 @@ import type { RecordBoardResourceWallCardModel } from '../../types';
|
|
|
3
3
|
import { type VenueWallStatusKey, type VenueWallStatusTone } from './venueWallUtils';
|
|
4
4
|
export interface VenueWallCardProps {
|
|
5
5
|
card: RecordBoardResourceWallCardModel;
|
|
6
|
+
/** 与 PisellRecordBoardResourceWallView 顶栏同源墙钟毫秒时间戳(唯一定时器驱动) */
|
|
7
|
+
wallNowMs: number;
|
|
6
8
|
/** boardingSoon:用于进度条分母(分钟) */
|
|
7
9
|
boardingSoonBeforeMin?: number;
|
|
8
10
|
occupiedCardColor?: string;
|
|
@@ -13,7 +15,7 @@ export interface VenueWallCardProps {
|
|
|
13
15
|
/** 非占用态主/辅文案色在暗色外壳下的对比度 */
|
|
14
16
|
appearance?: 'light' | 'dark';
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export
|
|
18
|
+
declare function VenueWallCardInner({ card, wallNowMs, boardingSoonBeforeMin, occupiedCardColor, availableCardColor, heroMaxWidthRatio, statusToneMap: statusToneMapProp, appearance, }: VenueWallCardProps): JSX.Element;
|
|
19
|
+
/** 单块场地大屏卡:漂移与文案由 {@link buildVenueWallCardPresentation} 统一计算 */
|
|
20
|
+
export declare const VenueWallCard: React.MemoExoticComponent<typeof VenueWallCardInner>;
|
|
21
|
+
export {};
|
|
@@ -35,15 +35,9 @@ module.exports = __toCommonJS(VenueWallCard_exports);
|
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_locales = require("../../../../locales");
|
|
37
37
|
var import_NoteTicker = require("./NoteTicker");
|
|
38
|
+
var import_resourceWallConstants = require("./resourceWallConstants");
|
|
39
|
+
var import_venueWallCardPresentation = require("./venueWallCardPresentation");
|
|
38
40
|
var import_venueWallUtils = require("./venueWallUtils");
|
|
39
|
-
function useVenueWallClockNow() {
|
|
40
|
-
const [now, setNow] = (0, import_react.useState)(() => Date.now());
|
|
41
|
-
(0, import_react.useEffect)(() => {
|
|
42
|
-
const id = window.setInterval(() => setNow(Date.now()), 1e3);
|
|
43
|
-
return () => window.clearInterval(id);
|
|
44
|
-
}, []);
|
|
45
|
-
return now;
|
|
46
|
-
}
|
|
47
41
|
function useDriftMinutesFromEpoch(value, resourceId, now, allowNegative = false) {
|
|
48
42
|
const [epoch, setEpoch] = (0, import_react.useState)(() => ({
|
|
49
43
|
min: value ?? 0,
|
|
@@ -67,15 +61,16 @@ function useDriftUpMinutesFromEpoch(value, resourceId, now) {
|
|
|
67
61
|
}
|
|
68
62
|
var DEFAULT_OCCUPIED = "#6f4ae6";
|
|
69
63
|
var DEFAULT_AVAILABLE = "#10b981";
|
|
70
|
-
|
|
64
|
+
function VenueWallCardInner({
|
|
71
65
|
card,
|
|
66
|
+
wallNowMs,
|
|
72
67
|
boardingSoonBeforeMin = 10,
|
|
73
68
|
occupiedCardColor = DEFAULT_OCCUPIED,
|
|
74
69
|
availableCardColor = DEFAULT_AVAILABLE,
|
|
75
70
|
heroMaxWidthRatio = 0.6,
|
|
76
71
|
statusToneMap: statusToneMapProp,
|
|
77
72
|
appearance = "light"
|
|
78
|
-
})
|
|
73
|
+
}) {
|
|
79
74
|
var _a, _b;
|
|
80
75
|
const toneMap = statusToneMapProp ?? (0, import_venueWallUtils.getVenueWallStatusToneMap)();
|
|
81
76
|
const isDark = appearance === "dark";
|
|
@@ -95,98 +90,74 @@ var VenueWallCard = ({
|
|
|
95
90
|
observer.observe(node);
|
|
96
91
|
return () => observer.disconnect();
|
|
97
92
|
}, []);
|
|
98
|
-
const wallNow = useVenueWallClockNow();
|
|
99
93
|
const liveRemainingMin = useDriftMinutesFromEpoch(
|
|
100
94
|
card.remainingMin,
|
|
101
95
|
card.resourceId,
|
|
102
|
-
|
|
96
|
+
wallNowMs,
|
|
103
97
|
true
|
|
104
98
|
);
|
|
105
99
|
const liveStartsInMin = useDriftMinutesFromEpoch(
|
|
106
100
|
card.startsInMin,
|
|
107
101
|
card.resourceId,
|
|
108
|
-
|
|
102
|
+
wallNowMs,
|
|
109
103
|
false
|
|
110
104
|
);
|
|
111
105
|
const liveLateMin = useDriftUpMinutesFromEpoch(
|
|
112
106
|
card.lateMin,
|
|
113
107
|
card.resourceId,
|
|
114
|
-
|
|
108
|
+
wallNowMs
|
|
115
109
|
);
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
110
|
+
const presentation = (0, import_react.useMemo)(
|
|
111
|
+
() => (0, import_venueWallCardPresentation.buildVenueWallCardPresentation)({
|
|
112
|
+
card,
|
|
113
|
+
toneMap,
|
|
114
|
+
liveRemainingMin,
|
|
115
|
+
liveStartsInMin,
|
|
116
|
+
liveLateMin,
|
|
117
|
+
boardingSoonBeforeMin,
|
|
118
|
+
idleMain,
|
|
119
|
+
idleSub,
|
|
120
|
+
occupiedCardColor,
|
|
121
|
+
availableCardColor
|
|
122
|
+
}),
|
|
123
|
+
[
|
|
124
|
+
card,
|
|
125
|
+
toneMap,
|
|
126
|
+
liveRemainingMin,
|
|
127
|
+
liveStartsInMin,
|
|
128
|
+
liveLateMin,
|
|
129
|
+
boardingSoonBeforeMin,
|
|
130
|
+
idleMain,
|
|
131
|
+
idleSub,
|
|
132
|
+
occupiedCardColor,
|
|
133
|
+
availableCardColor
|
|
134
|
+
]
|
|
135
|
+
);
|
|
136
|
+
const {
|
|
137
|
+
statusKey,
|
|
138
|
+
isOccupied,
|
|
139
|
+
heroText,
|
|
140
|
+
heroColor,
|
|
141
|
+
noteText,
|
|
142
|
+
noteTextColor,
|
|
143
|
+
noteBg,
|
|
144
|
+
subColor,
|
|
145
|
+
mainColor,
|
|
146
|
+
currentLabel,
|
|
147
|
+
currentTime,
|
|
148
|
+
currentName,
|
|
149
|
+
currentNameColor,
|
|
150
|
+
nextNameColor,
|
|
151
|
+
progress,
|
|
152
|
+
progressColor,
|
|
153
|
+
rightTag,
|
|
154
|
+
rightTagColor,
|
|
155
|
+
rightTagBg,
|
|
156
|
+
rightTagBorder,
|
|
157
|
+
surfaceAccentColor
|
|
158
|
+
} = presentation;
|
|
140
159
|
const nextItem = (_a = card.nextList) == null ? void 0 : _a[0];
|
|
141
160
|
const nextCountLabel = nextItem ? `1/${((_b = card.nextList) == null ? void 0 : _b.length) ?? 0}` : "";
|
|
142
|
-
if (statusKey === "boardingSoon") {
|
|
143
|
-
heroText = (0, import_locales.getText)("pisell-resource-wall-card-starts-in").replace(
|
|
144
|
-
"{n}",
|
|
145
|
-
String(liveStartsInMin)
|
|
146
|
-
);
|
|
147
|
-
heroColor = toneMap.boardingSoon.color;
|
|
148
|
-
noteText = toneMap.boardingSoon.note;
|
|
149
|
-
noteTextColor = toneMap.boardingSoon.color;
|
|
150
|
-
noteBg = (0, import_venueWallUtils.alphaColor)(toneMap.boardingSoon.color, 0.18);
|
|
151
|
-
currentLabel = (0, import_locales.getText)("pisell-resource-wall-card-label-next");
|
|
152
|
-
currentName = card.currentBooking ?? "";
|
|
153
|
-
currentNameColor = toneMap.boardingSoon.color;
|
|
154
|
-
nextNameColor = toneMap.boardingSoon.color;
|
|
155
|
-
progress = (0, import_venueWallUtils.clamp)(
|
|
156
|
-
(boardingSoonBeforeMin - liveStartsInMin) / boardingSoonBeforeMin * 100,
|
|
157
|
-
0,
|
|
158
|
-
100
|
|
159
|
-
);
|
|
160
|
-
progressColor = toneMap.boardingSoon.color;
|
|
161
|
-
rightTag = toneMap.boardingSoon.label;
|
|
162
|
-
rightTagColor = toneMap.boardingSoon.color;
|
|
163
|
-
rightTagBg = (0, import_venueWallUtils.alphaColor)(toneMap.boardingSoon.color, 0.12);
|
|
164
|
-
rightTagBorder = (0, import_venueWallUtils.alphaColor)(toneMap.boardingSoon.color, 0.35);
|
|
165
|
-
}
|
|
166
|
-
if (statusKey === "late") {
|
|
167
|
-
heroText = (0, import_locales.getText)("pisell-resource-wall-card-late").replace(
|
|
168
|
-
"{n}",
|
|
169
|
-
String(liveLateMin)
|
|
170
|
-
);
|
|
171
|
-
heroColor = "rgb(239, 68, 68)";
|
|
172
|
-
noteText = toneMap.late.note;
|
|
173
|
-
noteTextColor = toneMap.available.color;
|
|
174
|
-
noteBg = toneMap.available.noteBg;
|
|
175
|
-
currentLabel = (0, import_locales.getText)("pisell-resource-wall-card-label-next");
|
|
176
|
-
currentName = card.currentBooking ?? "";
|
|
177
|
-
currentNameColor = toneMap.available.color;
|
|
178
|
-
nextNameColor = toneMap.available.color;
|
|
179
|
-
progress = 100;
|
|
180
|
-
progressColor = toneMap.available.color;
|
|
181
|
-
rightTag = toneMap.late.label;
|
|
182
|
-
rightTagColor = toneMap.available.color;
|
|
183
|
-
rightTagBg = (0, import_venueWallUtils.alphaColor)(toneMap.available.color, 0.12);
|
|
184
|
-
rightTagBorder = (0, import_venueWallUtils.alphaColor)(toneMap.available.color, 0.35);
|
|
185
|
-
}
|
|
186
|
-
if (statusKey === "expired") {
|
|
187
|
-
heroText = liveRemainingMin < 0 ? (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin) : liveRemainingMin === 0 ? (0, import_locales.getText)("pisell-resource-wall-countdown-zero-overtime") : (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin);
|
|
188
|
-
}
|
|
189
|
-
const surfaceAccentColor = statusKey === "late" ? availableCardColor : statusKey === "boardingSoon" ? toneMap.boardingSoon.color : availableCardColor;
|
|
190
161
|
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)(
|
|
191
162
|
surfaceAccentColor,
|
|
192
163
|
statusKey === "boardingSoon" || statusKey === "late" ? 0.06 : 0.03
|
|
@@ -643,14 +614,16 @@ var VenueWallCard = ({
|
|
|
643
614
|
text: noteText,
|
|
644
615
|
color: noteTextColor,
|
|
645
616
|
duration: 24,
|
|
646
|
-
shouldMarquee: noteText.length >
|
|
617
|
+
shouldMarquee: noteText.length > import_resourceWallConstants.RESOURCE_WALL_NOTE_MARQUEE_MIN_CHARS
|
|
647
618
|
}
|
|
648
619
|
)
|
|
649
620
|
)
|
|
650
621
|
)
|
|
651
622
|
)
|
|
652
623
|
);
|
|
653
|
-
}
|
|
624
|
+
}
|
|
625
|
+
var VenueWallCard = import_react.default.memo(VenueWallCardInner);
|
|
626
|
+
VenueWallCard.displayName = "VenueWallCard";
|
|
654
627
|
// Annotate the CommonJS export names for ESM import in node:
|
|
655
628
|
0 && (module.exports = {
|
|
656
629
|
VenueWallCard
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.ts
|
|
20
|
+
var resourceWallConstants_exports = {};
|
|
21
|
+
__export(resourceWallConstants_exports, {
|
|
22
|
+
RESOURCE_WALL_NOTE_MARQUEE_MIN_CHARS: () => RESOURCE_WALL_NOTE_MARQUEE_MIN_CHARS
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(resourceWallConstants_exports);
|
|
25
|
+
var RESOURCE_WALL_NOTE_MARQUEE_MIN_CHARS = 32;
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
RESOURCE_WALL_NOTE_MARQUEE_MIN_CHARS
|
|
29
|
+
});
|
package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { RecordBoardResourceWallCardModel } from '../../types';
|
|
2
|
+
import { type VenueWallStatusKey, type VenueWallStatusTone } from './venueWallUtils';
|
|
3
|
+
/** 由 {@link buildVenueWallCardPresentation} 产出,供 VenueWallCard 渲染层使用 */
|
|
4
|
+
export declare type VenueWallCardPresentation = {
|
|
5
|
+
statusKey: VenueWallStatusKey;
|
|
6
|
+
isOccupied: boolean;
|
|
7
|
+
heroText: string;
|
|
8
|
+
heroColor: string;
|
|
9
|
+
noteText: string;
|
|
10
|
+
noteTextColor: string;
|
|
11
|
+
noteBg: string;
|
|
12
|
+
subColor: string;
|
|
13
|
+
mainColor: string;
|
|
14
|
+
currentLabel: string;
|
|
15
|
+
currentTime: string;
|
|
16
|
+
currentName: string;
|
|
17
|
+
currentNameColor: string;
|
|
18
|
+
nextNameColor: string;
|
|
19
|
+
progress: number;
|
|
20
|
+
progressColor: string;
|
|
21
|
+
rightTag: string;
|
|
22
|
+
rightTagColor: string;
|
|
23
|
+
rightTagBg: string;
|
|
24
|
+
rightTagBorder: string;
|
|
25
|
+
surfaceAccentColor: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 纯函数:根据实时漂移分钟数与六态配色表得到卡片主副文案、进度与标签样式。
|
|
29
|
+
* 与原先 VenueWallCard 内联分支逻辑一致,便于单测与维护。
|
|
30
|
+
*/
|
|
31
|
+
export declare function buildVenueWallCardPresentation(args: {
|
|
32
|
+
card: RecordBoardResourceWallCardModel;
|
|
33
|
+
toneMap: Record<VenueWallStatusKey, VenueWallStatusTone>;
|
|
34
|
+
liveRemainingMin: number;
|
|
35
|
+
liveStartsInMin: number;
|
|
36
|
+
liveLateMin: number;
|
|
37
|
+
boardingSoonBeforeMin: number;
|
|
38
|
+
idleMain: string;
|
|
39
|
+
idleSub: string;
|
|
40
|
+
occupiedCardColor: string;
|
|
41
|
+
availableCardColor: string;
|
|
42
|
+
}): VenueWallCardPresentation;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.ts
|
|
20
|
+
var venueWallCardPresentation_exports = {};
|
|
21
|
+
__export(venueWallCardPresentation_exports, {
|
|
22
|
+
buildVenueWallCardPresentation: () => buildVenueWallCardPresentation
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(venueWallCardPresentation_exports);
|
|
25
|
+
var import_locales = require("../../../../locales");
|
|
26
|
+
var import_venueWallUtils = require("./venueWallUtils");
|
|
27
|
+
function buildVenueWallCardPresentation(args) {
|
|
28
|
+
const {
|
|
29
|
+
card,
|
|
30
|
+
toneMap,
|
|
31
|
+
liveRemainingMin,
|
|
32
|
+
liveStartsInMin,
|
|
33
|
+
liveLateMin,
|
|
34
|
+
boardingSoonBeforeMin,
|
|
35
|
+
idleMain,
|
|
36
|
+
idleSub,
|
|
37
|
+
occupiedCardColor,
|
|
38
|
+
availableCardColor
|
|
39
|
+
} = args;
|
|
40
|
+
const statusKey = (0, import_venueWallUtils.deriveVenueWallStatus)({
|
|
41
|
+
...card,
|
|
42
|
+
remainingMin: liveRemainingMin
|
|
43
|
+
});
|
|
44
|
+
const tone = toneMap[statusKey] ?? toneMap.inUse;
|
|
45
|
+
const isOccupied = ["inUse", "endingSoon", "expired"].includes(statusKey);
|
|
46
|
+
let heroText = isOccupied ? (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin) : (0, import_locales.getText)("pisell-resource-wall-card-hero-available");
|
|
47
|
+
let heroColor = isOccupied ? statusKey === "inUse" ? "#ffffff" : tone.color : toneMap.available.color;
|
|
48
|
+
let noteText = isOccupied ? tone.note : toneMap.available.note;
|
|
49
|
+
let noteTextColor = isOccupied ? "#ffffff" : idleMain;
|
|
50
|
+
let noteBg = isOccupied ? tone.noteBg : (0, import_venueWallUtils.alphaColor)(availableCardColor, 0.2);
|
|
51
|
+
const subColor = isOccupied ? "rgba(255,255,255,0.80)" : idleSub;
|
|
52
|
+
const mainColor = isOccupied ? "#ffffff" : idleMain;
|
|
53
|
+
let currentLabel = (0, import_locales.getText)("pisell-resource-wall-card-label-current");
|
|
54
|
+
let currentTime = card.currentTime ?? "";
|
|
55
|
+
let currentName = isOccupied ? card.currentBooking ?? "" : "";
|
|
56
|
+
let currentNameColor = mainColor;
|
|
57
|
+
let nextNameColor = mainColor;
|
|
58
|
+
let progress = isOccupied ? (0, import_venueWallUtils.clamp)(liveRemainingMin / 60 * 100, 0, 100) : 0;
|
|
59
|
+
let progressColor = heroColor;
|
|
60
|
+
let rightTag = tone.label;
|
|
61
|
+
let rightTagColor = isOccupied ? "#ffffff" : tone.color;
|
|
62
|
+
let rightTagBg = isOccupied ? statusKey === "inUse" ? "rgba(255,255,255,0.14)" : tone.color : (0, import_venueWallUtils.alphaColor)(tone.color, 0.12);
|
|
63
|
+
let rightTagBorder = isOccupied ? "rgba(255,255,255,0.18)" : (0, import_venueWallUtils.alphaColor)(tone.color, 0.35);
|
|
64
|
+
if (statusKey === "boardingSoon") {
|
|
65
|
+
heroText = (0, import_locales.getText)("pisell-resource-wall-card-starts-in").replace(
|
|
66
|
+
"{n}",
|
|
67
|
+
String(liveStartsInMin)
|
|
68
|
+
);
|
|
69
|
+
heroColor = toneMap.boardingSoon.color;
|
|
70
|
+
noteText = toneMap.boardingSoon.note;
|
|
71
|
+
noteTextColor = toneMap.boardingSoon.color;
|
|
72
|
+
noteBg = (0, import_venueWallUtils.alphaColor)(toneMap.boardingSoon.color, 0.18);
|
|
73
|
+
currentLabel = (0, import_locales.getText)("pisell-resource-wall-card-label-next");
|
|
74
|
+
currentName = card.currentBooking ?? "";
|
|
75
|
+
currentNameColor = toneMap.boardingSoon.color;
|
|
76
|
+
nextNameColor = toneMap.boardingSoon.color;
|
|
77
|
+
progress = (0, import_venueWallUtils.clamp)(
|
|
78
|
+
(boardingSoonBeforeMin - liveStartsInMin) / boardingSoonBeforeMin * 100,
|
|
79
|
+
0,
|
|
80
|
+
100
|
|
81
|
+
);
|
|
82
|
+
progressColor = toneMap.boardingSoon.color;
|
|
83
|
+
rightTag = toneMap.boardingSoon.label;
|
|
84
|
+
rightTagColor = toneMap.boardingSoon.color;
|
|
85
|
+
rightTagBg = (0, import_venueWallUtils.alphaColor)(toneMap.boardingSoon.color, 0.12);
|
|
86
|
+
rightTagBorder = (0, import_venueWallUtils.alphaColor)(toneMap.boardingSoon.color, 0.35);
|
|
87
|
+
}
|
|
88
|
+
if (statusKey === "late") {
|
|
89
|
+
heroText = (0, import_locales.getText)("pisell-resource-wall-card-late").replace(
|
|
90
|
+
"{n}",
|
|
91
|
+
String(liveLateMin)
|
|
92
|
+
);
|
|
93
|
+
heroColor = "rgb(239, 68, 68)";
|
|
94
|
+
noteText = toneMap.late.note;
|
|
95
|
+
noteTextColor = toneMap.available.color;
|
|
96
|
+
noteBg = toneMap.available.noteBg;
|
|
97
|
+
currentLabel = (0, import_locales.getText)("pisell-resource-wall-card-label-next");
|
|
98
|
+
currentName = card.currentBooking ?? "";
|
|
99
|
+
currentNameColor = toneMap.available.color;
|
|
100
|
+
nextNameColor = toneMap.available.color;
|
|
101
|
+
progress = 100;
|
|
102
|
+
progressColor = toneMap.available.color;
|
|
103
|
+
rightTag = toneMap.late.label;
|
|
104
|
+
rightTagColor = toneMap.available.color;
|
|
105
|
+
rightTagBg = (0, import_venueWallUtils.alphaColor)(toneMap.available.color, 0.12);
|
|
106
|
+
rightTagBorder = (0, import_venueWallUtils.alphaColor)(toneMap.available.color, 0.35);
|
|
107
|
+
}
|
|
108
|
+
if (statusKey === "expired") {
|
|
109
|
+
heroText = liveRemainingMin < 0 ? (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin) : liveRemainingMin === 0 ? (0, import_locales.getText)("pisell-resource-wall-countdown-zero-overtime") : (0, import_venueWallUtils.formatVenueWallCountdown)(liveRemainingMin);
|
|
110
|
+
}
|
|
111
|
+
const surfaceAccentColor = statusKey === "late" ? availableCardColor : statusKey === "boardingSoon" ? toneMap.boardingSoon.color : availableCardColor;
|
|
112
|
+
return {
|
|
113
|
+
statusKey,
|
|
114
|
+
isOccupied,
|
|
115
|
+
heroText,
|
|
116
|
+
heroColor,
|
|
117
|
+
noteText,
|
|
118
|
+
noteTextColor,
|
|
119
|
+
noteBg,
|
|
120
|
+
subColor,
|
|
121
|
+
mainColor,
|
|
122
|
+
currentLabel,
|
|
123
|
+
currentTime,
|
|
124
|
+
currentName,
|
|
125
|
+
currentNameColor,
|
|
126
|
+
nextNameColor,
|
|
127
|
+
progress,
|
|
128
|
+
progressColor,
|
|
129
|
+
rightTag,
|
|
130
|
+
rightTagColor,
|
|
131
|
+
rightTagBg,
|
|
132
|
+
rightTagBorder,
|
|
133
|
+
surfaceAccentColor
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
137
|
+
0 && (module.exports = {
|
|
138
|
+
buildVenueWallCardPresentation
|
|
139
|
+
});
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 资源墙(Venue Wall)共用工具:六态键、默认色板、倒计时文案、卡片状态推导、配色合并与 diff。
|
|
3
|
+
*/
|
|
1
4
|
import type { RecordBoardResourceWallCardModel } from '../../types';
|
|
2
5
|
export declare type VenueWallStatusKey = 'inUse' | 'endingSoon' | 'expired' | 'available' | 'boardingSoon' | 'late';
|
|
3
6
|
/** 单态展示配置(与 {@link VENUE_WALL_STATUS_COLOR_MAP} 值同形) */
|
|
@@ -21,11 +24,34 @@ export declare type VenueWallAppearanceTheme = {
|
|
|
21
24
|
dark?: VenueWallAppearanceSlot;
|
|
22
25
|
};
|
|
23
26
|
export declare const VENUE_WALL_STATUS_KEYS: VenueWallStatusKey[];
|
|
27
|
+
/**
|
|
28
|
+
* 六态默认色与占位英文;`getVenueWallStatusToneMap` 会将 label/note 换为 i18n,此处仅作 merge 基底。
|
|
29
|
+
*/
|
|
24
30
|
export declare const VENUE_WALL_STATUS_COLOR_MAP: Record<VenueWallStatusKey, VenueWallStatusTone>;
|
|
31
|
+
/** 将 `#RGB` / `#RRGGBB` 转为 `rgba(...)`,供渐变与半透明底 */
|
|
25
32
|
export declare function alphaColor(hex: string, alpha: number): string;
|
|
33
|
+
/** 将数值限制在 [min, max](布局行列、主文案比例等) */
|
|
26
34
|
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
27
35
|
/** 由卡片字段推导状态键(与演示页 test.tsx 规则一致) */
|
|
28
36
|
export declare function deriveVenueWallStatus(card: RecordBoardResourceWallCardModel): VenueWallStatusKey;
|
|
37
|
+
/**
|
|
38
|
+
* ToolBar Sort 写入的 `searchParams.sort`(如 `status:asc:string`)拆出字段名与升降序。
|
|
39
|
+
*/
|
|
40
|
+
export declare function parseRecordBoardToolbarSortParam(sort: unknown): {
|
|
41
|
+
field: string;
|
|
42
|
+
dir: 'asc' | 'desc';
|
|
43
|
+
} | null;
|
|
44
|
+
/** 当 Sort 字段名匹配这些 key(忽略大小写)时,资源墙按占用态重排卡片 */
|
|
45
|
+
export declare const DEFAULT_RESOURCE_WALL_STATUS_SORT_FIELD_KEYS: readonly ["status"];
|
|
46
|
+
export declare function matchesResourceWallStatusSortField(sortField: string, keys: readonly string[]): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 用于资源墙排序:占用/将结/已结束为 1,其余为 0(与 {@link deriveVenueWallStatus} 一致)。
|
|
49
|
+
* asc → 空闲侧在前;desc → 占用侧在前。
|
|
50
|
+
*/
|
|
51
|
+
export declare function venueWallOccupiedSortRank(card: RecordBoardResourceWallCardModel): 0 | 1;
|
|
52
|
+
/**
|
|
53
|
+
* 将「剩余/超支分钟数」格式化为跑码条/主副标题用短文案(走 i18n 模板,负值表示 overtime)。
|
|
54
|
+
*/
|
|
29
55
|
export declare function formatVenueWallCountdown(min: number): string;
|
|
30
56
|
/**
|
|
31
57
|
* 合并默认六态配色与业务覆盖,供 {@link VenueWallCard} 与 Control Panel 表单初值共用。
|