@pisell/materials 6.11.37 → 6.11.39
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 +2 -3
- 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
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
3
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
@@ -17,9 +11,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
17
11
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
18
12
|
import { createPortal } from 'react-dom';
|
|
19
13
|
import { getText } from "../../../../locales";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
14
|
+
import { ResourceWallControlPanelColorTab } from "./ResourceWallControlPanelColorTab";
|
|
15
|
+
import { ResourceWallControlPanelLayoutTab } from "./ResourceWallControlPanelLayoutTab";
|
|
16
|
+
import { diffVenueWallStatusToneOverrides, getVenueWallStatusToneMap } from "./venueWallUtils";
|
|
17
|
+
/** 将面板内草稿压成一次 `onApply` 负载(行列、秒数、色值等做安全钳位) */
|
|
23
18
|
var buildApplyPayload = function buildApplyPayload(resourceIds, draft, boardingSoonBeforeMin) {
|
|
24
19
|
return {
|
|
25
20
|
resourceIds: _toConsumableArray(resourceIds),
|
|
@@ -36,9 +31,9 @@ var buildApplyPayload = function buildApplyPayload(resourceIds, draft, boardingS
|
|
|
36
31
|
};
|
|
37
32
|
|
|
38
33
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
34
|
+
* 资源墙管理台(Portal):选资源、网格预设/自定义行列、翻页秒数、占用/空闲色、六态说明与色值;
|
|
35
|
+
* `onApply` 回传负载中含 `diffVenueWallStatusToneOverrides` 压缩结果。
|
|
36
|
+
* 源自 test `showAdmin` 对接;关闭(Close / Escape / 遮罩)时提交草稿并关闭。
|
|
42
37
|
*/
|
|
43
38
|
export var ResourceWallControlPanel = function ResourceWallControlPanel(_ref) {
|
|
44
39
|
var open = _ref.open,
|
|
@@ -155,6 +150,8 @@ export var ResourceWallControlPanel = function ResourceWallControlPanel(_ref) {
|
|
|
155
150
|
}, boardingSoonBeforeMin));
|
|
156
151
|
onClose();
|
|
157
152
|
}, [selectedResourceIds, draftLayoutKey, draftCustomCols, draftCustomRows, draftPageSec, draftOcc, draftAvail, draftTones, draftHeroRatio, boardingSoonBeforeMin, onApply, onClose]);
|
|
153
|
+
|
|
154
|
+
/** Escape:与关闭按钮一致,提交当前草稿并关闭(非「取消放弃」语义) */
|
|
158
155
|
useEffect(function () {
|
|
159
156
|
if (!open) return;
|
|
160
157
|
var onKey = function onKey(e) {
|
|
@@ -211,227 +208,37 @@ export var ResourceWallControlPanel = function ResourceWallControlPanel(_ref) {
|
|
|
211
208
|
className: "rounded-full px-4 py-2 text-sm border ".concat(isDark ? 'border-slate-700 text-slate-300 hover:bg-slate-800' : 'border-slate-200 text-slate-600 hover:bg-slate-50')
|
|
212
209
|
}, getText('pisell-resource-wall-control-close'))), /*#__PURE__*/React.createElement("div", {
|
|
213
210
|
className: "p-5 md:p-6 space-y-6 max-h-[78vh] overflow-auto"
|
|
214
|
-
}, adminTab === 'resource_layout' ? /*#__PURE__*/React.createElement(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}, getText('pisell-resource-wall-carousel-countdown-line').replace('{cur}', String(cur)).replace('{tot}', String(tot)).replace('{sec}', String(Math.max(3, draftPageSec)))))), /*#__PURE__*/React.createElement("div", {
|
|
247
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-3"
|
|
248
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
249
|
-
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
250
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
251
|
-
className: "text-xs mb-2 ".concat(mutedText)
|
|
252
|
-
}, getText('pisell-resource-wall-layout-field-label')), /*#__PURE__*/React.createElement(PisellSingleSelect, {
|
|
253
|
-
className: "w-full",
|
|
254
|
-
value: draftLayoutKey,
|
|
255
|
-
options: layoutPresets.map(function (item) {
|
|
256
|
-
return {
|
|
257
|
-
value: item.key,
|
|
258
|
-
label: item.label
|
|
259
|
-
};
|
|
260
|
-
}),
|
|
261
|
-
placeholder: getText('pisell-resource-wall-layout-placeholder'),
|
|
262
|
-
allowClear: false,
|
|
263
|
-
onChange: function onChange(v) {
|
|
264
|
-
if (v != null) setDraftLayoutKey(String(v));
|
|
265
|
-
}
|
|
266
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
267
|
-
className: "grid grid-cols-2 gap-3"
|
|
268
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
269
|
-
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
270
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
271
|
-
className: "text-xs mb-2 ".concat(mutedText)
|
|
272
|
-
}, getText('pisell-resource-wall-panel-custom-cols')), /*#__PURE__*/React.createElement(PisellNumber, {
|
|
273
|
-
className: "w-full",
|
|
274
|
-
value: draftCustomCols,
|
|
275
|
-
min: 1,
|
|
276
|
-
max: 6,
|
|
277
|
-
step: 1,
|
|
278
|
-
precision: 0,
|
|
279
|
-
onChange: function onChange(v) {
|
|
280
|
-
return setDraftCustomCols(v == null ? 1 : Math.max(1, Math.min(6, Math.round(v))));
|
|
281
|
-
}
|
|
282
|
-
})), /*#__PURE__*/React.createElement("label", {
|
|
283
|
-
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
284
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
285
|
-
className: "text-xs mb-2 ".concat(mutedText)
|
|
286
|
-
}, getText('pisell-resource-wall-panel-custom-rows')), /*#__PURE__*/React.createElement(PisellNumber, {
|
|
287
|
-
className: "w-full",
|
|
288
|
-
value: draftCustomRows,
|
|
289
|
-
min: 1,
|
|
290
|
-
max: 6,
|
|
291
|
-
step: 1,
|
|
292
|
-
precision: 0,
|
|
293
|
-
onChange: function onChange(v) {
|
|
294
|
-
return setDraftCustomRows(v == null ? 1 : Math.max(1, Math.min(6, Math.round(v))));
|
|
295
|
-
}
|
|
296
|
-
})))), /*#__PURE__*/React.createElement("label", {
|
|
297
|
-
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
298
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
299
|
-
className: "text-xs mb-2 ".concat(mutedText)
|
|
300
|
-
}, getText('pisell-resource-wall-hero-width-ratio')), /*#__PURE__*/React.createElement("div", {
|
|
301
|
-
className: "flex items-center gap-3"
|
|
302
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
303
|
-
type: "range",
|
|
304
|
-
min: 40,
|
|
305
|
-
max: 80,
|
|
306
|
-
step: 1,
|
|
307
|
-
value: Math.round(draftHeroRatio * 100),
|
|
308
|
-
onChange: function onChange(e) {
|
|
309
|
-
return setDraftHeroRatio(Number(e.target.value) / 100);
|
|
310
|
-
},
|
|
311
|
-
className: "flex-1"
|
|
312
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
313
|
-
className: "".concat(isDark ? 'text-slate-200' : 'text-slate-700', " text-sm font-semibold w-14 text-right")
|
|
314
|
-
}, Math.round(draftHeroRatio * 100), "%")), /*#__PURE__*/React.createElement("div", {
|
|
315
|
-
className: "text-[11px] mt-2 ".concat(mutedText)
|
|
316
|
-
}, getText('pisell-resource-wall-hero-width-hint')))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("section", {
|
|
317
|
-
className: "rounded-2xl border p-4 space-y-4 ".concat(adminSectionBg)
|
|
318
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
319
|
-
className: "text-sm font-semibold ".concat(headerText)
|
|
320
|
-
}, getText('pisell-resource-wall-tab-colors')), /*#__PURE__*/React.createElement("div", {
|
|
321
|
-
className: "grid grid-cols-2 gap-3"
|
|
322
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
323
|
-
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
324
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
325
|
-
className: "text-xs mb-2 ".concat(mutedText)
|
|
326
|
-
}, getText('pisell-resource-wall-occupied-card-color-label')), /*#__PURE__*/React.createElement("div", {
|
|
327
|
-
className: "flex items-center gap-3"
|
|
328
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
329
|
-
type: "color",
|
|
330
|
-
value: draftOcc,
|
|
331
|
-
onChange: function onChange(e) {
|
|
332
|
-
return setDraftOcc(e.target.value);
|
|
333
|
-
},
|
|
334
|
-
className: "h-10 w-14 shrink-0 rounded-lg border p-1 ".concat(adminInputBg)
|
|
335
|
-
}), /*#__PURE__*/React.createElement("input", {
|
|
336
|
-
type: "text",
|
|
337
|
-
value: draftOcc,
|
|
338
|
-
onChange: function onChange(e) {
|
|
339
|
-
return setDraftOcc(e.target.value);
|
|
340
|
-
},
|
|
341
|
-
className: "flex-1 rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
342
|
-
}))), /*#__PURE__*/React.createElement("label", {
|
|
343
|
-
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
344
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
345
|
-
className: "text-xs mb-2 ".concat(mutedText)
|
|
346
|
-
}, getText('pisell-resource-wall-available-card-color-label')), /*#__PURE__*/React.createElement("div", {
|
|
347
|
-
className: "flex items-center gap-3"
|
|
348
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
349
|
-
type: "color",
|
|
350
|
-
value: draftAvail,
|
|
351
|
-
onChange: function onChange(e) {
|
|
352
|
-
return setDraftAvail(e.target.value);
|
|
353
|
-
},
|
|
354
|
-
className: "h-10 w-14 shrink-0 rounded-lg border p-1 ".concat(adminInputBg)
|
|
355
|
-
}), /*#__PURE__*/React.createElement("input", {
|
|
356
|
-
type: "text",
|
|
357
|
-
value: draftAvail,
|
|
358
|
-
onChange: function onChange(e) {
|
|
359
|
-
return setDraftAvail(e.target.value);
|
|
360
|
-
},
|
|
361
|
-
className: "flex-1 rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
362
|
-
}))))), /*#__PURE__*/React.createElement("section", {
|
|
363
|
-
className: "overflow-hidden rounded-2xl border ".concat(adminSectionBg)
|
|
364
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
365
|
-
className: "border-b px-4 py-3 text-sm font-semibold ".concat(headerText, " ").concat(divider)
|
|
366
|
-
}, getText('pisell-resource-wall-status-table-title')), /*#__PURE__*/React.createElement("div", {
|
|
367
|
-
className: "grid grid-cols-[0.8fr_1fr_1.3fr_0.9fr_0.9fr] gap-3 border-b px-4 py-3 text-xs font-semibold text-slate-500"
|
|
368
|
-
}, /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-key')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-label')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-explain')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-color')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-notebg'))), VENUE_WALL_STATUS_KEYS.map(function (key) {
|
|
369
|
-
var item = draftTones[key];
|
|
370
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
371
|
-
key: key,
|
|
372
|
-
className: "grid grid-cols-[0.8fr_1fr_1.3fr_0.9fr_0.9fr] items-center gap-3 border-b px-4 py-3 last:border-b-0 ".concat(divider)
|
|
373
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
374
|
-
className: "text-sm font-medium ".concat(headerText)
|
|
375
|
-
}, getText("pisell-resource-wall-status-id-".concat(key))), /*#__PURE__*/React.createElement("input", {
|
|
376
|
-
type: "text",
|
|
377
|
-
value: item.label,
|
|
378
|
-
onChange: function onChange(e) {
|
|
379
|
-
return setDraftTones(function (prev) {
|
|
380
|
-
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
381
|
-
label: e.target.value
|
|
382
|
-
})));
|
|
383
|
-
});
|
|
384
|
-
},
|
|
385
|
-
className: "w-full rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
386
|
-
}), /*#__PURE__*/React.createElement("textarea", {
|
|
387
|
-
rows: 2,
|
|
388
|
-
value: item.note,
|
|
389
|
-
onChange: function onChange(e) {
|
|
390
|
-
return setDraftTones(function (prev) {
|
|
391
|
-
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
392
|
-
note: e.target.value
|
|
393
|
-
})));
|
|
394
|
-
});
|
|
395
|
-
},
|
|
396
|
-
className: "w-full resize-none rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
397
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
398
|
-
className: "flex items-center gap-2"
|
|
399
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
400
|
-
type: "color",
|
|
401
|
-
value: item.color,
|
|
402
|
-
onChange: function onChange(e) {
|
|
403
|
-
return setDraftTones(function (prev) {
|
|
404
|
-
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
405
|
-
color: e.target.value
|
|
406
|
-
})));
|
|
407
|
-
});
|
|
408
|
-
},
|
|
409
|
-
className: "h-10 w-14 shrink-0 rounded-lg border p-1 ".concat(adminInputBg)
|
|
410
|
-
}), /*#__PURE__*/React.createElement("input", {
|
|
411
|
-
type: "text",
|
|
412
|
-
value: item.color,
|
|
413
|
-
onChange: function onChange(e) {
|
|
414
|
-
return setDraftTones(function (prev) {
|
|
415
|
-
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
416
|
-
color: e.target.value
|
|
417
|
-
})));
|
|
418
|
-
});
|
|
419
|
-
},
|
|
420
|
-
className: "w-full rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
421
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
422
|
-
className: "flex items-center gap-2"
|
|
423
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
424
|
-
type: "text",
|
|
425
|
-
value: item.noteBg,
|
|
426
|
-
onChange: function onChange(e) {
|
|
427
|
-
return setDraftTones(function (prev) {
|
|
428
|
-
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
429
|
-
noteBg: e.target.value
|
|
430
|
-
})));
|
|
431
|
-
});
|
|
432
|
-
},
|
|
433
|
-
className: "w-full rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
434
|
-
})));
|
|
435
|
-
}))))));
|
|
211
|
+
}, adminTab === 'resource_layout' ? /*#__PURE__*/React.createElement(ResourceWallControlPanelLayoutTab, {
|
|
212
|
+
adminSectionBg: adminSectionBg,
|
|
213
|
+
adminInputBg: adminInputBg,
|
|
214
|
+
headerText: headerText,
|
|
215
|
+
mutedText: mutedText,
|
|
216
|
+
layoutPresets: layoutPresets,
|
|
217
|
+
draftLayoutKey: draftLayoutKey,
|
|
218
|
+
setDraftLayoutKey: setDraftLayoutKey,
|
|
219
|
+
draftCustomCols: draftCustomCols,
|
|
220
|
+
setDraftCustomCols: setDraftCustomCols,
|
|
221
|
+
draftCustomRows: draftCustomRows,
|
|
222
|
+
setDraftCustomRows: setDraftCustomRows,
|
|
223
|
+
draftPageSec: draftPageSec,
|
|
224
|
+
setDraftPageSec: setDraftPageSec,
|
|
225
|
+
draftHeroRatio: draftHeroRatio,
|
|
226
|
+
setDraftHeroRatio: setDraftHeroRatio,
|
|
227
|
+
carouselCur: cur,
|
|
228
|
+
carouselTot: tot,
|
|
229
|
+
isDark: isDark
|
|
230
|
+
}) : /*#__PURE__*/React.createElement(ResourceWallControlPanelColorTab, {
|
|
231
|
+
adminSectionBg: adminSectionBg,
|
|
232
|
+
adminInputBg: adminInputBg,
|
|
233
|
+
headerText: headerText,
|
|
234
|
+
mutedText: mutedText,
|
|
235
|
+
divider: divider,
|
|
236
|
+
draftOcc: draftOcc,
|
|
237
|
+
setDraftOcc: setDraftOcc,
|
|
238
|
+
draftAvail: draftAvail,
|
|
239
|
+
setDraftAvail: setDraftAvail,
|
|
240
|
+
draftTones: draftTones,
|
|
241
|
+
setDraftTones: setDraftTones
|
|
242
|
+
}))));
|
|
436
243
|
return typeof document !== 'undefined' ? /*#__PURE__*/createPortal(modal, document.body) : null;
|
|
437
244
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VenueWallStatusKey, type VenueWallStatusTone } from './venueWallUtils';
|
|
3
|
+
export interface ResourceWallControlPanelColorTabProps {
|
|
4
|
+
adminSectionBg: string;
|
|
5
|
+
adminInputBg: string;
|
|
6
|
+
headerText: string;
|
|
7
|
+
mutedText: string;
|
|
8
|
+
divider: string;
|
|
9
|
+
draftOcc: string;
|
|
10
|
+
setDraftOcc: (v: string) => void;
|
|
11
|
+
draftAvail: string;
|
|
12
|
+
setDraftAvail: (v: string) => void;
|
|
13
|
+
draftTones: Record<VenueWallStatusKey, VenueWallStatusTone>;
|
|
14
|
+
setDraftTones: React.Dispatch<React.SetStateAction<Record<VenueWallStatusKey, VenueWallStatusTone>>>;
|
|
15
|
+
}
|
|
16
|
+
/** 控制台「外观 / 颜色」分页:占用/空闲底色与六态表格 */
|
|
17
|
+
export declare const ResourceWallControlPanelColorTab: React.FC<ResourceWallControlPanelColorTabProps>;
|
package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { getText } from "../../../../locales";
|
|
9
|
+
import { VENUE_WALL_STATUS_KEYS } from "./venueWallUtils";
|
|
10
|
+
/** 控制台「外观 / 颜色」分页:占用/空闲底色与六态表格 */
|
|
11
|
+
export var ResourceWallControlPanelColorTab = function ResourceWallControlPanelColorTab(_ref) {
|
|
12
|
+
var adminSectionBg = _ref.adminSectionBg,
|
|
13
|
+
adminInputBg = _ref.adminInputBg,
|
|
14
|
+
headerText = _ref.headerText,
|
|
15
|
+
mutedText = _ref.mutedText,
|
|
16
|
+
divider = _ref.divider,
|
|
17
|
+
draftOcc = _ref.draftOcc,
|
|
18
|
+
setDraftOcc = _ref.setDraftOcc,
|
|
19
|
+
draftAvail = _ref.draftAvail,
|
|
20
|
+
setDraftAvail = _ref.setDraftAvail,
|
|
21
|
+
draftTones = _ref.draftTones,
|
|
22
|
+
setDraftTones = _ref.setDraftTones;
|
|
23
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("section", {
|
|
24
|
+
className: "rounded-2xl border p-4 space-y-4 ".concat(adminSectionBg)
|
|
25
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: "text-sm font-semibold ".concat(headerText)
|
|
27
|
+
}, getText('pisell-resource-wall-tab-colors')), /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
className: "grid grid-cols-2 gap-3"
|
|
29
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
30
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
33
|
+
}, getText('pisell-resource-wall-occupied-card-color-label')), /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: "flex items-center gap-3"
|
|
35
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
36
|
+
type: "color",
|
|
37
|
+
value: draftOcc,
|
|
38
|
+
onChange: function onChange(e) {
|
|
39
|
+
return setDraftOcc(e.target.value);
|
|
40
|
+
},
|
|
41
|
+
className: "h-10 w-14 shrink-0 rounded-lg border p-1 ".concat(adminInputBg)
|
|
42
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
43
|
+
type: "text",
|
|
44
|
+
value: draftOcc,
|
|
45
|
+
onChange: function onChange(e) {
|
|
46
|
+
return setDraftOcc(e.target.value);
|
|
47
|
+
},
|
|
48
|
+
className: "flex-1 rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
49
|
+
}))), /*#__PURE__*/React.createElement("label", {
|
|
50
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
51
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
53
|
+
}, getText('pisell-resource-wall-available-card-color-label')), /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "flex items-center gap-3"
|
|
55
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
56
|
+
type: "color",
|
|
57
|
+
value: draftAvail,
|
|
58
|
+
onChange: function onChange(e) {
|
|
59
|
+
return setDraftAvail(e.target.value);
|
|
60
|
+
},
|
|
61
|
+
className: "h-10 w-14 shrink-0 rounded-lg border p-1 ".concat(adminInputBg)
|
|
62
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
63
|
+
type: "text",
|
|
64
|
+
value: draftAvail,
|
|
65
|
+
onChange: function onChange(e) {
|
|
66
|
+
return setDraftAvail(e.target.value);
|
|
67
|
+
},
|
|
68
|
+
className: "flex-1 rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
69
|
+
}))))), /*#__PURE__*/React.createElement("section", {
|
|
70
|
+
className: "overflow-hidden rounded-2xl border ".concat(adminSectionBg)
|
|
71
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
+
className: "border-b px-4 py-3 text-sm font-semibold ".concat(headerText, " ").concat(divider)
|
|
73
|
+
}, getText('pisell-resource-wall-status-table-title')), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "grid grid-cols-[0.8fr_1fr_1.3fr_0.9fr_0.9fr] gap-3 border-b px-4 py-3 text-xs font-semibold text-slate-500"
|
|
75
|
+
}, /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-key')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-label')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-explain')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-color')), /*#__PURE__*/React.createElement("div", null, getText('pisell-resource-wall-status-col-notebg'))), VENUE_WALL_STATUS_KEYS.map(function (key) {
|
|
76
|
+
var item = draftTones[key];
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
key: key,
|
|
79
|
+
className: "grid grid-cols-[0.8fr_1fr_1.3fr_0.9fr_0.9fr] items-center gap-3 border-b px-4 py-3 last:border-b-0 ".concat(divider)
|
|
80
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
className: "text-sm font-medium ".concat(headerText)
|
|
82
|
+
}, getText("pisell-resource-wall-status-id-".concat(key))), /*#__PURE__*/React.createElement("input", {
|
|
83
|
+
type: "text",
|
|
84
|
+
value: item.label,
|
|
85
|
+
onChange: function onChange(e) {
|
|
86
|
+
return setDraftTones(function (prev) {
|
|
87
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
88
|
+
label: e.target.value
|
|
89
|
+
})));
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
className: "w-full rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
93
|
+
}), /*#__PURE__*/React.createElement("textarea", {
|
|
94
|
+
rows: 2,
|
|
95
|
+
value: item.note,
|
|
96
|
+
onChange: function onChange(e) {
|
|
97
|
+
return setDraftTones(function (prev) {
|
|
98
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
99
|
+
note: e.target.value
|
|
100
|
+
})));
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
className: "w-full resize-none rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
104
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
className: "flex items-center gap-2"
|
|
106
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
107
|
+
type: "color",
|
|
108
|
+
value: item.color,
|
|
109
|
+
onChange: function onChange(e) {
|
|
110
|
+
return setDraftTones(function (prev) {
|
|
111
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
112
|
+
color: e.target.value
|
|
113
|
+
})));
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
className: "h-10 w-14 shrink-0 rounded-lg border p-1 ".concat(adminInputBg)
|
|
117
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
118
|
+
type: "text",
|
|
119
|
+
value: item.color,
|
|
120
|
+
onChange: function onChange(e) {
|
|
121
|
+
return setDraftTones(function (prev) {
|
|
122
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
123
|
+
color: e.target.value
|
|
124
|
+
})));
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
className: "w-full rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
128
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: "flex items-center gap-2"
|
|
130
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
131
|
+
type: "text",
|
|
132
|
+
value: item.noteBg,
|
|
133
|
+
onChange: function onChange(e) {
|
|
134
|
+
return setDraftTones(function (prev) {
|
|
135
|
+
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, key, _objectSpread(_objectSpread({}, prev[key]), {}, {
|
|
136
|
+
noteBg: e.target.value
|
|
137
|
+
})));
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
className: "w-full rounded-xl border px-3 py-2 outline-none ".concat(adminInputBg)
|
|
141
|
+
})));
|
|
142
|
+
})));
|
|
143
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ResourceWallControlPanelLayoutTabProps {
|
|
3
|
+
adminSectionBg: string;
|
|
4
|
+
adminInputBg: string;
|
|
5
|
+
headerText: string;
|
|
6
|
+
mutedText: string;
|
|
7
|
+
layoutPresets: readonly {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
cols: number;
|
|
11
|
+
rows: number;
|
|
12
|
+
}[];
|
|
13
|
+
draftLayoutKey: string;
|
|
14
|
+
setDraftLayoutKey: (v: string) => void;
|
|
15
|
+
draftCustomCols: number;
|
|
16
|
+
setDraftCustomCols: (v: number) => void;
|
|
17
|
+
draftCustomRows: number;
|
|
18
|
+
setDraftCustomRows: (v: number) => void;
|
|
19
|
+
draftPageSec: number;
|
|
20
|
+
setDraftPageSec: (v: number) => void;
|
|
21
|
+
draftHeroRatio: number;
|
|
22
|
+
setDraftHeroRatio: (v: number) => void;
|
|
23
|
+
carouselCur: number;
|
|
24
|
+
carouselTot: number;
|
|
25
|
+
isDark: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** 控制台「资源 / 布局」分页:预设、自定义行列、翻页停留、主文案宽度 */
|
|
28
|
+
export declare const ResourceWallControlPanelLayoutTab: React.FC<ResourceWallControlPanelLayoutTabProps>;
|
package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getText } from "../../../../locales";
|
|
3
|
+
import { PisellNumber } from "../../../pisellNumber";
|
|
4
|
+
import { PisellSingleSelect } from "../../../pisellSingleSelect";
|
|
5
|
+
/** 控制台「资源 / 布局」分页:预设、自定义行列、翻页停留、主文案宽度 */
|
|
6
|
+
export var ResourceWallControlPanelLayoutTab = function ResourceWallControlPanelLayoutTab(_ref) {
|
|
7
|
+
var adminSectionBg = _ref.adminSectionBg,
|
|
8
|
+
adminInputBg = _ref.adminInputBg,
|
|
9
|
+
headerText = _ref.headerText,
|
|
10
|
+
mutedText = _ref.mutedText,
|
|
11
|
+
layoutPresets = _ref.layoutPresets,
|
|
12
|
+
draftLayoutKey = _ref.draftLayoutKey,
|
|
13
|
+
setDraftLayoutKey = _ref.setDraftLayoutKey,
|
|
14
|
+
draftCustomCols = _ref.draftCustomCols,
|
|
15
|
+
setDraftCustomCols = _ref.setDraftCustomCols,
|
|
16
|
+
draftCustomRows = _ref.draftCustomRows,
|
|
17
|
+
setDraftCustomRows = _ref.setDraftCustomRows,
|
|
18
|
+
draftPageSec = _ref.draftPageSec,
|
|
19
|
+
setDraftPageSec = _ref.setDraftPageSec,
|
|
20
|
+
draftHeroRatio = _ref.draftHeroRatio,
|
|
21
|
+
setDraftHeroRatio = _ref.setDraftHeroRatio,
|
|
22
|
+
carouselCur = _ref.carouselCur,
|
|
23
|
+
carouselTot = _ref.carouselTot,
|
|
24
|
+
isDark = _ref.isDark;
|
|
25
|
+
return /*#__PURE__*/React.createElement("section", {
|
|
26
|
+
className: "rounded-2xl border p-4 space-y-4 ".concat(adminSectionBg)
|
|
27
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
className: "text-sm font-semibold ".concat(headerText)
|
|
29
|
+
}, getText('pisell-resource-wall-tab-layout')), /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-3"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
32
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
33
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
35
|
+
}, getText('pisell-resource-wall-display-mode')), /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: "w-full rounded-xl border px-3 py-2 ".concat(adminInputBg)
|
|
37
|
+
}, getText('pisell-resource-wall-carousel-paging-mode'))), /*#__PURE__*/React.createElement("label", {
|
|
38
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
41
|
+
}, getText('pisell-resource-wall-carousel-dwell-sec-label')), /*#__PURE__*/React.createElement(PisellNumber, {
|
|
42
|
+
className: "w-full",
|
|
43
|
+
value: draftPageSec,
|
|
44
|
+
min: 3,
|
|
45
|
+
max: 60,
|
|
46
|
+
step: 1,
|
|
47
|
+
precision: 0,
|
|
48
|
+
onChange: function onChange(v) {
|
|
49
|
+
return setDraftPageSec(v == null ? 3 : Math.max(3, Math.min(60, Math.round(v))));
|
|
50
|
+
}
|
|
51
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: "rounded-2xl border p-3 ".concat(adminInputBg)
|
|
53
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
55
|
+
}, getText('pisell-resource-wall-summary-pagination')), /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
className: "text-sm font-semibold"
|
|
57
|
+
}, getText('pisell-resource-wall-carousel-countdown-line').replace('{cur}', String(carouselCur)).replace('{tot}', String(carouselTot)).replace('{sec}', String(Math.max(3, draftPageSec)))))), /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-3"
|
|
59
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
60
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
61
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
63
|
+
}, getText('pisell-resource-wall-layout-field-label')), /*#__PURE__*/React.createElement(PisellSingleSelect, {
|
|
64
|
+
className: "w-full",
|
|
65
|
+
value: draftLayoutKey,
|
|
66
|
+
options: layoutPresets.map(function (item) {
|
|
67
|
+
return {
|
|
68
|
+
value: item.key,
|
|
69
|
+
label: item.label
|
|
70
|
+
};
|
|
71
|
+
}),
|
|
72
|
+
placeholder: getText('pisell-resource-wall-layout-placeholder'),
|
|
73
|
+
allowClear: false,
|
|
74
|
+
onChange: function onChange(v) {
|
|
75
|
+
if (v != null) setDraftLayoutKey(String(v));
|
|
76
|
+
}
|
|
77
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: "grid grid-cols-2 gap-3"
|
|
79
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
80
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
81
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
83
|
+
}, getText('pisell-resource-wall-panel-custom-cols')), /*#__PURE__*/React.createElement(PisellNumber, {
|
|
84
|
+
className: "w-full",
|
|
85
|
+
value: draftCustomCols,
|
|
86
|
+
min: 1,
|
|
87
|
+
max: 6,
|
|
88
|
+
step: 1,
|
|
89
|
+
precision: 0,
|
|
90
|
+
onChange: function onChange(v) {
|
|
91
|
+
return setDraftCustomCols(v == null ? 1 : Math.max(1, Math.min(6, Math.round(v))));
|
|
92
|
+
}
|
|
93
|
+
})), /*#__PURE__*/React.createElement("label", {
|
|
94
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
95
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
97
|
+
}, getText('pisell-resource-wall-panel-custom-rows')), /*#__PURE__*/React.createElement(PisellNumber, {
|
|
98
|
+
className: "w-full",
|
|
99
|
+
value: draftCustomRows,
|
|
100
|
+
min: 1,
|
|
101
|
+
max: 6,
|
|
102
|
+
step: 1,
|
|
103
|
+
precision: 0,
|
|
104
|
+
onChange: function onChange(v) {
|
|
105
|
+
return setDraftCustomRows(v == null ? 1 : Math.max(1, Math.min(6, Math.round(v))));
|
|
106
|
+
}
|
|
107
|
+
})))), /*#__PURE__*/React.createElement("label", {
|
|
108
|
+
className: "rounded-2xl border p-3 block ".concat(adminInputBg)
|
|
109
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
className: "text-xs mb-2 ".concat(mutedText)
|
|
111
|
+
}, getText('pisell-resource-wall-hero-width-ratio')), /*#__PURE__*/React.createElement("div", {
|
|
112
|
+
className: "flex items-center gap-3"
|
|
113
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
114
|
+
type: "range",
|
|
115
|
+
min: 40,
|
|
116
|
+
max: 80,
|
|
117
|
+
step: 1,
|
|
118
|
+
value: Math.round(draftHeroRatio * 100),
|
|
119
|
+
onChange: function onChange(e) {
|
|
120
|
+
return setDraftHeroRatio(Number(e.target.value) / 100);
|
|
121
|
+
},
|
|
122
|
+
className: "flex-1"
|
|
123
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: "".concat(isDark ? 'text-slate-200' : 'text-slate-700', " text-sm font-semibold w-14 text-right")
|
|
125
|
+
}, Math.round(draftHeroRatio * 100), "%")), /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: "text-[11px] mt-2 ".concat(mutedText)
|
|
127
|
+
}, getText('pisell-resource-wall-hero-width-hint'))));
|
|
128
|
+
};
|
|
@@ -35,3 +35,11 @@ body.pisell-resource-wall-fixed-viewport .pisell-shell-frame-body {
|
|
|
35
35
|
max-height: 100%;
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
/* 与视口根内联色一致,便于主题扩展时集中覆写(当前主色仍由 JS 注入) */
|
|
40
|
+
.pisell-resource-wall-shell {
|
|
41
|
+
--pisell-rw-page-bg-light: #f5f7fb;
|
|
42
|
+
--pisell-rw-page-bg-dark: #0f172a;
|
|
43
|
+
--pisell-rw-header-bg-light: #ffffff;
|
|
44
|
+
--pisell-rw-header-bg-dark: #1e293b;
|
|
45
|
+
}
|