@pisell/materials 1.8.38 → 1.8.41
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/meta.js +3 -3
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +216 -51
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +216 -51
- package/es/components/Pagination/index.js +9 -43
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +5 -2
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +169 -171
- package/es/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +87 -27
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
- package/es/components/PisellCards/components/TextCard/TextCard.js +2 -3
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.js +20 -6
- package/es/components/PisellCards/components/TextCard/components/TextContent.js +3 -1
- package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +36 -5
- package/es/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +2434 -258
- package/es/components/PisellCards/components/TextCard/docs/TextCard.md +78 -13
- package/es/components/PisellCards/index.d.ts +3 -0
- package/es/components/PisellCards/index.js +3 -1
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +34 -0
- package/es/components/PisellContactBrief/PisellContactBrief.js +156 -0
- package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.js +140 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +109 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +106 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +125 -0
- package/es/components/PisellContactBrief/docs/PisellContactBrief.md +129 -0
- package/es/components/PisellContactBrief/index.d.ts +2 -0
- package/es/components/PisellContactBrief/locales.js +57 -0
- package/es/components/PisellContactBrief/types.d.ts +86 -0
- package/es/components/PisellLayouts/index.d.ts +1 -1
- package/es/components/PisellProcedure/components/ProcedureHeader.js +1 -1
- package/es/components/PisellTabbar/PisellTabbar.js +1 -1
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +1 -1
- package/es/components/Template/[ComponentName].less +1 -0
- package/es/components/Template/docs/[ComponentName].$tab-design.md +7 -0
- package/es/components/Template/docs/[ComponentName].$tab-dev.md +1137 -0
- package/es/components/Template/docs/[ComponentName].$tab-test.md +7 -0
- package/es/components/Template/docs/[ComponentName].md +510 -0
- package/es/components/appVersionControl/index.js +3 -2
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +4 -4
- package/es/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +4 -0
- package/es/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +4 -1
- package/es/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +1 -1
- package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.js +0 -1
- package/es/components/drawer/index.js +7 -6
- package/es/components/filter/components/FilterItem/index.js +1 -3
- package/es/components/filter/components/QuickFilter/index.js +2 -3
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +25 -0
- package/es/components/hardwareErrorTip/errorCard/index.js +68 -0
- package/es/components/hardwareErrorTip/errorCard/index.less +137 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +10 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.js +31 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.less +34 -0
- package/es/components/hardwareErrorTip/index.d.ts +20 -0
- package/es/components/hardwareErrorTip/index.js +151 -0
- package/es/components/hardwareErrorTip/index.less +95 -0
- package/es/components/hardwareErrorTip/logCard/index.d.ts +25 -0
- package/es/components/hardwareErrorTip/logCard/index.js +72 -0
- package/es/components/hardwareErrorTip/logCard/index.less +121 -0
- package/es/components/hardwareErrorTip/readme.md +309 -0
- package/es/components/hardwareErrorTip/types.js +54 -0
- package/es/components/iconfont/index.js +1 -1
- package/es/components/login-and-register/index.js +4 -5
- package/es/components/page/index.js +1 -1
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +24 -0
- package/es/components/pisellActionPanel/PisellActionPanel.js +68 -0
- package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +148 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +53 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +64 -0
- package/es/components/pisellActionPanel/docs/pisellActionPanel.md +160 -0
- package/es/components/pisellActionPanel/index.d.ts +2 -0
- package/es/components/pisellActionPanel/types.d.ts +87 -0
- package/es/components/pisellAppCard/PisellAppCard.js +1 -1
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +20 -0
- package/es/components/pisellBaseCard/PisellBaseCard.js +73 -0
- package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +144 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +92 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +86 -0
- package/es/components/pisellBaseCard/docs/pisellBaseCard.md +165 -0
- package/es/components/pisellBaseCard/index.d.ts +2 -0
- package/es/components/pisellBaseCard/types.d.ts +49 -0
- package/es/components/pisellCardList/index.js +1 -1
- package/es/components/pisellCurrency/PisellCurrency.js +13 -6
- package/es/components/pisellCurrency/PisellCurrency.less +0 -123
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +57 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +92 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +115 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +73 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +66 -0
- package/es/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +132 -0
- package/es/components/pisellCustomerBrief/index.d.ts +2 -0
- package/es/components/pisellCustomerBrief/types.d.ts +86 -0
- package/es/components/pisellDataSourceContainer/components/Pagination/index.js +3 -9
- package/es/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +189 -240
- package/es/components/pisellDataSourceContainer/type.d.ts +1 -1
- package/es/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
- package/es/components/pisellEmail/PisellEmail.js +13 -6
- package/es/components/pisellEmail/PisellEmail.less +0 -92
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +47 -0
- package/es/components/pisellEntityCard/PisellEntityCard.js +315 -0
- package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +209 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +82 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +122 -0
- package/es/components/pisellEntityCard/docs/pisellEntityCard.md +176 -0
- package/es/components/pisellEntityCard/index.d.ts +2 -0
- package/es/components/pisellEntityCard/types.d.ts +148 -0
- package/es/components/pisellExport/PisellExport.d.ts +11 -0
- package/es/components/pisellExport/PisellExport.js +44 -0
- package/es/components/pisellExport/PisellExport.less +141 -0
- package/es/components/pisellExport/docs/pisellExport.$tab-design.md +116 -0
- package/es/components/pisellExport/docs/pisellExport.$tab-dev.md +132 -0
- package/es/components/pisellExport/docs/pisellExport.$tab-test.md +61 -0
- package/es/components/pisellExport/docs/pisellExport.md +162 -0
- package/es/components/pisellExport/index.d.ts +2 -0
- package/es/components/pisellExport/types.d.ts +67 -0
- package/es/components/pisellFilter/docs/PisellFilter.md +2 -2
- package/es/components/pisellFind/docs/pisellFind.md +2 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +51 -230
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +0 -22
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.js +2 -3
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.js +74 -209
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +5 -40
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +12 -131
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +1 -9
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.js +3 -24
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.less +4 -97
- package/es/components/pisellFloorMapLayout/components/ItemLayer.js +9 -29
- package/es/components/pisellFloorMapLayout/components/ItemLayer.less +2 -19
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +65 -119
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +44 -208
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +0 -4
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +1 -3
- package/es/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +194 -559
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +16 -82
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +36 -369
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -1
- package/es/components/pisellFloorMapLayout/locales-ja.js +1 -21
- package/es/components/pisellFloorMapLayout/locales-pt.js +1 -21
- package/es/components/pisellFloorMapLayout/locales.js +3 -63
- package/es/components/pisellFloorMapLayout/types.d.ts +9 -70
- package/es/components/pisellGoodPassCard/index.less +0 -1
- package/es/components/pisellGridPro/GridView/docs/GridView.md +48 -47
- package/es/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +2 -4
- package/es/components/pisellGridPro/ToolBar/docs/ToolBar.md +81 -95
- package/es/components/pisellGridPro/ToolBar/index.less +4 -5
- package/es/components/pisellGridPro/docs/PisellGridPro.md +262 -173
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +6 -3
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +4 -3
- package/es/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +2 -1
- package/es/components/pisellImport/PisellImport.d.ts +11 -0
- package/es/components/pisellImport/PisellImport.js +81 -0
- package/es/components/pisellImport/PisellImport.less +141 -0
- package/es/components/pisellImport/docs/pisellImport.$tab-design.md +121 -0
- package/es/components/pisellImport/docs/pisellImport.$tab-dev.md +137 -0
- package/es/components/pisellImport/docs/pisellImport.$tab-test.md +69 -0
- package/es/components/pisellImport/docs/pisellImport.md +174 -0
- package/es/components/pisellImport/index.d.ts +2 -0
- package/es/components/pisellImport/types.d.ts +89 -0
- package/es/components/pisellLongText/PisellLongText.js +13 -6
- package/es/components/pisellLongText/PisellLongText.less +0 -67
- package/es/components/pisellLookup/PisellLookup.less +1 -1
- package/es/components/pisellLookup/components/LookupTrigger.js +8 -6
- package/es/components/pisellLookup/docs/pisellLookup.md +1 -1
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +7 -5
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +4 -0
- package/es/components/pisellNumber/PisellNumber.js +13 -6
- package/es/components/pisellNumber/PisellNumber.less +0 -103
- package/es/components/pisellPhone/PisellPhone.js +13 -6
- package/es/components/pisellPhone/PisellPhone.less +0 -119
- package/es/components/pisellPhone/components/EditView.js +37 -19
- package/es/components/pisellPhone/constants/countryCodes.js +26 -25
- package/es/components/pisellPhone/types.d.ts +2 -2
- package/es/components/pisellPhone/utils/countryCodeHelper.js +2 -2
- package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.md +1 -1
- package/es/components/pisellRating/PisellRating.js +5 -3
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +10 -26
- package/es/components/pisellRecordBoard/README.md +0 -12
- package/es/components/pisellRecordBoard/docs/PisellRecordBoard.md +70 -716
- package/es/components/pisellRecordBoard/docs/ShellFrame.md +44 -62
- package/es/components/pisellRecordBoard/index.d.ts +1 -7
- package/es/components/pisellRecordBoard/index.js +0 -4
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +9 -147
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +0 -31
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +3811 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -5
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +8 -10
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -2
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -7
- package/es/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +1 -5
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +65 -143
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +13 -181
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +2 -10
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +2 -9
- package/es/components/pisellRecordBoard/shellFrame/index.js +19 -73
- package/es/components/pisellRecordBoard/types.d.ts +8 -374
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +0 -16
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +15 -67
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +0 -23
- package/es/components/pisellReservationSchedule/locales.js +3 -21
- package/es/components/pisellReservationSchedule/types.d.ts +0 -5
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +2 -2
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +4 -37
- package/es/components/pisellReservationScheduleBand/types.d.ts +0 -4
- package/es/components/pisellShellFrame/PisellShellFrame.js +2 -2
- package/es/components/pisellShellFrame/PisellShellFrame.less +2 -18
- package/es/components/pisellShellFrame/types.d.ts +0 -6
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +21 -14
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +0 -143
- package/es/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +7 -4
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/es/components/pisellSingleSelect/docs/pisellSingleSelect.md +525 -428
- package/es/components/pisellSort/docs/PisellSort.md +67 -131
- package/es/components/pisellStatisticList/index.js +1 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +37 -151
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +13 -126
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +2 -2
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +3 -12
- package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +42 -26
- package/es/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
- package/es/components/pisellTimeNavigator/index.d.ts +1 -1
- package/es/components/pisellTimeNavigator/utils/index.d.ts +3 -9
- package/es/components/pisellTimeNavigator/utils/index.js +6 -15
- package/es/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +227 -226
- package/es/components/pisellUrl/PisellUrl.js +13 -6
- package/es/components/pisellWalletPassCard/index.js +11 -5
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -65
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -80
- package/es/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.js +9 -24
- package/es/components/productCard/cartSkuCard/components/specs/index.js +7 -22
- package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -11
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
- package/es/components/productCard/cartSkuCard/index.js +8 -68
- package/es/components/productCard/cartSkuCard/locales.js +5 -40
- package/es/components/productCard/components/Header/Actions/index.less +15 -0
- package/es/components/productCard/components/Header/DeleteButton/index.js +2 -2
- package/es/components/productCard/components/Header/DeleteButton/index.less +2 -1
- package/es/components/productCard/components/Header/EditButton/index.js +1 -2
- package/es/components/productCard/components/Header/index.less +1 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.js +3 -2
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
- package/es/components/productCard/components/Time/components/SelectResource/index.js +6 -3
- package/es/components/productCard/components/Time/index.js +3 -2
- package/es/components/productCard/status.js +0 -3
- package/es/components/productCard/types.d.ts +0 -10
- package/es/components/productCard/utils.js +1 -1
- package/es/components/select-time/index.js +0 -1
- package/es/components/table/Actions/component/ExportImport/index.js +3 -4
- package/es/components/table/Actions/component/GallerySetting/index.js +10 -9
- package/es/components/table/Actions/component/ViewMode/index.js +4 -3
- package/es/components/table/Actions/index.js +1 -1
- package/es/components/table/BasicTable/index.js +4 -3
- package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/es/components/table/Gallery/components/GalleryItem/index.js +12 -4
- package/es/components/table/Gallery/components/GalleryItem/index.less +1 -0
- package/es/components/table/Gallery/index.js +11 -3
- package/es/components/table/Table/fields/text/Show/index.js +1 -1
- package/es/components/table/Table/index.js +2 -1
- package/es/components/table/Table/tableConfig/header/index.js +1 -1
- package/es/components/table/Table/utils.js +5 -1
- package/es/components/table/hooks/useTableSetting.js +3 -0
- package/es/components/table/hooks/useTransDataSource.js +4 -3
- package/es/components/table/index.js +1 -1
- package/es/components/tabs/index.less +1 -1
- package/es/components/translation/index.d.ts +1 -0
- package/es/components/translation/index.js +36 -10
- package/es/components/translation/index.less +12 -0
- package/es/components/versionModal/index.d.ts +1 -0
- package/es/components/versionModal/index.js +2 -2
- package/es/components/versionSelect/index.js +1 -1
- package/es/components/virtual-keyboard/Amount/index.js +2 -1
- package/es/components/virtual-keyboard/Amount/types.d.ts +1 -0
- package/es/index.d.ts +105 -94
- package/es/index.js +92 -90
- package/es/locales/en-US.js +69 -191
- package/es/locales/ja.js +12 -192
- package/es/locales/pt.js +12 -192
- package/es/locales/zh-CN.js +63 -185
- package/es/locales/zh-TW.js +68 -190
- package/es/pisell-materials.tw.css +1 -2414
- package/es/tailwind-input.css +1 -3
- package/es/theme/pisell-components.js +76 -0
- package/lib/components/Pagination/index.js +8 -42
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-dev.md +5 -2
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.$tab-test.md +169 -171
- package/lib/components/PisellCards/components/GraphicTextCard/docs/GraphicTextCard.md +87 -27
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
- package/lib/components/PisellCards/components/TextCard/TextCard.js +2 -3
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.js +20 -6
- package/lib/components/PisellCards/components/TextCard/components/TextContent.js +3 -1
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-dev.md +36 -5
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.$tab-test.md +2434 -258
- package/lib/components/PisellCards/components/TextCard/docs/TextCard.md +78 -13
- package/lib/components/PisellCards/index.d.ts +3 -0
- package/lib/components/PisellCards/index.js +3 -1
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +34 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.js +158 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.js +139 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-design.md +109 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-dev.md +106 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.$tab-test.md +125 -0
- package/lib/components/PisellContactBrief/docs/PisellContactBrief.md +129 -0
- package/lib/components/PisellContactBrief/index.d.ts +2 -0
- package/lib/components/PisellContactBrief/locales.js +57 -0
- package/lib/components/PisellContactBrief/types.d.ts +86 -0
- package/lib/components/PisellLayouts/index.d.ts +1 -1
- package/lib/components/PisellProcedure/components/ProcedureHeader.js +1 -1
- package/lib/components/PisellTabbar/PisellTabbar.js +6 -6
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +6 -6
- package/lib/components/Template/[ComponentName].less +1 -0
- package/lib/components/Template/docs/[ComponentName].$tab-design.md +7 -0
- package/lib/components/Template/docs/[ComponentName].$tab-dev.md +1137 -0
- package/lib/components/Template/docs/[ComponentName].$tab-test.md +7 -0
- package/lib/components/Template/docs/[ComponentName].md +510 -0
- package/lib/components/appVersionControl/index.js +12 -11
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +6 -6
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -3
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +4 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +4 -1
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.js +1 -1
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +4 -4
- package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +1 -1
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.js +0 -1
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/filter/components/FilterItem/index.js +1 -3
- package/lib/components/filter/components/QuickFilter/index.js +2 -3
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +25 -0
- package/lib/components/hardwareErrorTip/errorCard/index.js +71 -0
- package/lib/components/hardwareErrorTip/errorCard/index.less +137 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +10 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.js +34 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.less +34 -0
- package/lib/components/hardwareErrorTip/index.d.ts +20 -0
- package/lib/components/hardwareErrorTip/index.js +153 -0
- package/lib/components/hardwareErrorTip/index.less +95 -0
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +25 -0
- package/lib/components/hardwareErrorTip/logCard/index.js +75 -0
- package/lib/components/hardwareErrorTip/logCard/index.less +121 -0
- package/lib/components/hardwareErrorTip/readme.md +309 -0
- package/lib/components/hardwareErrorTip/types.js +57 -0
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/login-and-register/index.js +4 -5
- package/lib/components/page/index.js +1 -1
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +24 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.js +71 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-design.md +148 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-dev.md +53 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.$tab-test.md +64 -0
- package/lib/components/pisellActionPanel/docs/pisellActionPanel.md +160 -0
- package/lib/components/pisellActionPanel/index.d.ts +2 -0
- package/lib/components/pisellActionPanel/types.d.ts +87 -0
- package/lib/components/pisellAppCard/PisellAppCard.js +7 -7
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +20 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.js +76 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-design.md +144 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-dev.md +92 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.$tab-test.md +86 -0
- package/lib/components/pisellBaseCard/docs/pisellBaseCard.md +165 -0
- package/lib/components/pisellBaseCard/index.d.ts +2 -0
- package/lib/components/pisellBaseCard/types.d.ts +49 -0
- package/lib/components/pisellCardList/index.js +6 -6
- package/lib/components/pisellCurrency/PisellCurrency.js +13 -6
- package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +57 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +94 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-design.md +115 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-dev.md +73 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.$tab-test.md +66 -0
- package/lib/components/pisellCustomerBrief/docs/pisellCustomerBrief.md +132 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +2 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +86 -0
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +3 -9
- package/lib/components/pisellDataSourceContainer/docs/PisellDataSourceContainer.md +189 -240
- package/lib/components/pisellDataSourceContainer/type.d.ts +1 -1
- package/lib/components/pisellDateTimeDisplay/docs/pisellDateTimeDisplay.md +556 -556
- package/lib/components/pisellEmail/PisellEmail.js +13 -6
- package/lib/components/pisellEmail/PisellEmail.less +0 -92
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +47 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.js +318 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-design.md +209 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-dev.md +82 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.$tab-test.md +122 -0
- package/lib/components/pisellEntityCard/docs/pisellEntityCard.md +176 -0
- package/lib/components/pisellEntityCard/index.d.ts +2 -0
- package/lib/components/pisellEntityCard/types.d.ts +148 -0
- package/lib/components/pisellExport/PisellExport.d.ts +11 -0
- package/lib/components/pisellExport/PisellExport.js +47 -0
- package/lib/components/pisellExport/PisellExport.less +141 -0
- package/lib/components/pisellExport/docs/pisellExport.$tab-design.md +116 -0
- package/lib/components/pisellExport/docs/pisellExport.$tab-dev.md +132 -0
- package/lib/components/pisellExport/docs/pisellExport.$tab-test.md +61 -0
- package/lib/components/pisellExport/docs/pisellExport.md +162 -0
- package/lib/components/pisellExport/index.d.ts +2 -0
- package/lib/components/pisellExport/types.d.ts +67 -0
- package/lib/components/pisellFilter/docs/PisellFilter.md +2 -2
- package/lib/components/pisellFind/docs/pisellFind.md +2 -2
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +1 -2
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +51 -230
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +0 -22
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.js +2 -3
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.js +74 -209
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +4 -39
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.js +11 -130
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.less +1 -9
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.js +2 -23
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.less +4 -97
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.js +9 -29
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.less +2 -19
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +64 -118
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +44 -208
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.js +0 -4
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +1 -3
- package/lib/components/pisellFloorMapLayout/docs/pisellFloorMapLayout.md +194 -559
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +16 -82
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +36 -369
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -1
- package/lib/components/pisellFloorMapLayout/locales-ja.js +1 -21
- package/lib/components/pisellFloorMapLayout/locales-pt.js +1 -21
- package/lib/components/pisellFloorMapLayout/locales.js +3 -63
- package/lib/components/pisellFloorMapLayout/types.d.ts +9 -70
- package/lib/components/pisellGoodPassCard/index.less +0 -1
- package/lib/components/pisellGridPro/GridView/docs/GridView.md +48 -47
- package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.$tab-dev.md +2 -4
- package/lib/components/pisellGridPro/ToolBar/docs/ToolBar.md +81 -95
- package/lib/components/pisellGridPro/ToolBar/index.less +4 -5
- package/lib/components/pisellGridPro/docs/PisellGridPro.md +262 -173
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-dev.md +6 -3
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.$tab-test.md +4 -3
- package/lib/components/pisellHierarchicalSummaryList/docs/pisellHierarchicalSummaryList.md +2 -1
- package/lib/components/pisellImport/PisellImport.d.ts +11 -0
- package/lib/components/pisellImport/PisellImport.js +84 -0
- package/lib/components/pisellImport/PisellImport.less +141 -0
- package/lib/components/pisellImport/docs/pisellImport.$tab-design.md +121 -0
- package/lib/components/pisellImport/docs/pisellImport.$tab-dev.md +137 -0
- package/lib/components/pisellImport/docs/pisellImport.$tab-test.md +69 -0
- package/lib/components/pisellImport/docs/pisellImport.md +174 -0
- package/lib/components/pisellImport/index.d.ts +2 -0
- package/lib/components/pisellImport/types.d.ts +89 -0
- package/lib/components/pisellLongText/PisellLongText.js +13 -6
- package/lib/components/pisellLongText/PisellLongText.less +0 -67
- package/lib/components/pisellLookup/PisellLookup.less +1 -1
- package/lib/components/pisellLookup/components/LookupTrigger.js +8 -6
- package/lib/components/pisellLookup/docs/pisellLookup.md +1 -1
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +6 -4
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/lib/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +4 -0
- package/lib/components/pisellNumber/PisellNumber.js +13 -6
- package/lib/components/pisellNumber/PisellNumber.less +0 -103
- package/lib/components/pisellPhone/PisellPhone.js +13 -6
- package/lib/components/pisellPhone/PisellPhone.less +0 -119
- package/lib/components/pisellPhone/components/EditView.js +37 -19
- package/lib/components/pisellPhone/constants/countryCodes.js +26 -25
- package/lib/components/pisellPhone/types.d.ts +2 -2
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +2 -2
- package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.md +1 -1
- package/lib/components/pisellRating/PisellRating.js +4 -2
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +10 -26
- package/lib/components/pisellRecordBoard/README.md +0 -12
- package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.md +70 -716
- package/lib/components/pisellRecordBoard/docs/ShellFrame.md +44 -62
- package/lib/components/pisellRecordBoard/index.d.ts +1 -7
- package/lib/components/pisellRecordBoard/index.js +0 -4
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +8 -146
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +0 -31
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.js +3813 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +1 -5
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.js +8 -11
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +1 -2
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -7
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +1 -5
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +78 -156
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +13 -181
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +2 -10
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +2 -9
- package/lib/components/pisellRecordBoard/shellFrame/index.js +19 -73
- package/lib/components/pisellRecordBoard/types.d.ts +8 -374
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.js +0 -16
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +15 -67
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +0 -23
- package/lib/components/pisellReservationSchedule/locales.js +3 -21
- package/lib/components/pisellReservationSchedule/types.d.ts +0 -5
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.js +2 -2
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +4 -37
- package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -4
- package/lib/components/pisellShellFrame/PisellShellFrame.js +2 -2
- package/lib/components/pisellShellFrame/PisellShellFrame.less +2 -18
- package/lib/components/pisellShellFrame/types.d.ts +0 -6
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +21 -14
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +0 -143
- package/lib/components/pisellSingleLineText/docs/pisellSingleLineText.md +256 -256
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +7 -4
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/lib/components/pisellSingleSelect/docs/pisellSingleSelect.md +525 -428
- package/lib/components/pisellSort/docs/PisellSort.md +67 -131
- package/lib/components/pisellStatisticList/index.js +1 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +38 -152
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +13 -126
- package/lib/components/pisellTimeNavigator/components/CursorLayer.js +2 -2
- package/lib/components/pisellTimeNavigator/components/GestureLayer.js +3 -12
- package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-dev.md +42 -26
- package/lib/components/pisellTimeNavigator/docs/pisellTimeNavigator.$tab-test.md +5 -5
- package/lib/components/pisellTimeNavigator/index.d.ts +1 -1
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +3 -9
- package/lib/components/pisellTimeNavigator/utils/index.js +5 -16
- package/lib/components/pisellTimeRangeDisplay/docs/pisellTimeRangeDisplay.md +227 -226
- package/lib/components/pisellUrl/PisellUrl.js +13 -6
- package/lib/components/pisellWalletPassCard/index.js +11 -5
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +8 -69
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -80
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +11 -26
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +8 -23
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -11
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -2
- package/lib/components/productCard/cartSkuCard/index.js +8 -68
- package/lib/components/productCard/cartSkuCard/locales.js +5 -40
- package/lib/components/productCard/components/Header/Actions/index.less +15 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.js +2 -2
- package/lib/components/productCard/components/Header/DeleteButton/index.less +2 -1
- package/lib/components/productCard/components/Header/EditButton/index.js +1 -2
- package/lib/components/productCard/components/Header/index.less +1 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.js +3 -2
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +5 -5
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.js +2 -2
- package/lib/components/productCard/components/Time/components/SelectResource/index.js +6 -3
- package/lib/components/productCard/components/Time/index.js +3 -2
- package/lib/components/productCard/status.js +0 -3
- package/lib/components/productCard/types.d.ts +0 -10
- package/lib/components/productCard/utils.js +1 -1
- package/lib/components/select-time/index.js +0 -1
- package/lib/components/table/Actions/component/ExportImport/index.js +3 -4
- package/lib/components/table/Actions/component/GallerySetting/index.js +12 -11
- package/lib/components/table/Actions/component/ViewMode/index.js +6 -5
- package/lib/components/table/Actions/index.js +1 -1
- package/lib/components/table/BasicTable/index.js +4 -3
- package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
- package/lib/components/table/Gallery/components/GalleryItem/index.js +17 -9
- package/lib/components/table/Gallery/components/GalleryItem/index.less +1 -0
- package/lib/components/table/Gallery/index.js +11 -3
- package/lib/components/table/Table/fields/text/Show/index.js +1 -1
- package/lib/components/table/Table/index.js +2 -1
- package/lib/components/table/Table/tableConfig/header/index.js +2 -2
- package/lib/components/table/Table/utils.js +5 -1
- package/lib/components/table/hooks/useTableSetting.js +3 -0
- package/lib/components/table/hooks/useTransDataSource.js +4 -3
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.less +1 -1
- package/lib/components/translation/index.d.ts +1 -0
- package/lib/components/translation/index.js +35 -9
- package/lib/components/translation/index.less +12 -0
- package/lib/components/versionModal/index.d.ts +1 -0
- package/lib/components/versionModal/index.js +2 -2
- package/lib/components/versionSelect/index.js +4 -4
- package/lib/components/virtual-keyboard/Amount/index.js +5 -4
- package/lib/components/virtual-keyboard/Amount/types.d.ts +1 -0
- package/lib/index.d.ts +105 -94
- package/lib/index.js +298 -299
- package/lib/locales/en-US.js +69 -191
- package/lib/locales/ja.js +12 -192
- package/lib/locales/pt.js +12 -192
- package/lib/locales/zh-CN.js +63 -185
- package/lib/locales/zh-TW.js +68 -190
- package/lib/pisell-materials.tw.css +1 -2414
- package/lib/tailwind-input.css +1 -3
- package/lib/theme/pisell-components.js +76 -0
- package/lowcode/pisell-time-navigator/meta.ts +10 -0
- package/package.json +3 -2
- package/es/components/SafeAreaTop/index.d.ts +0 -6
- package/es/components/SafeAreaTop/index.js +0 -112
- package/es/components/SafeAreaTop/index.less +0 -11
- package/es/components/SafeAreaTop/types.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -4
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +0 -22
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.js +0 -64
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.js +0 -7
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +0 -47
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +0 -95
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -52
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +0 -61
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +0 -758
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +0 -313
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +0 -191
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +0 -22
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +0 -39
- package/es/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +0 -74
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +0 -61
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +0 -79
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +0 -48
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +0 -37
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +0 -20
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +0 -532
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +0 -17
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +0 -31
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +0 -583
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +0 -41
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +0 -111
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +0 -612
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +0 -162
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +0 -33
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +0 -37
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +0 -33
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +0 -29
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +0 -43
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +0 -436
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -11
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +0 -9
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +0 -179
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +0 -62
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -57
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +0 -45
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +0 -91
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +0 -218
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +0 -339
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +0 -52
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +0 -153
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -32
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +0 -170
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +0 -11
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +0 -56
- package/es/components/pisellRecordBoard/types.js +0 -12
- package/es/components/pisellTimeNavigator/timeNavigatorConstants.js +0 -7
- package/es/components/productCard/cartSkuCard/components/Gift/index.js +0 -34
- package/es/components/productCard/cartSkuCard/components/Gift/index.less +0 -84
- package/es/components/productCard/cartSkuCard/components/Promotion/index.js +0 -23
- package/es/components/productCard/cartSkuCard/components/Promotion/index.less +0 -16
- package/es/components/productCard/cartSkuCard/components/weighing/index.js +0 -27
- package/es/components/productCard/cartSkuCard/components/weighing/index.less +0 -25
- package/lib/components/SafeAreaTop/index.d.ts +0 -6
- package/lib/components/SafeAreaTop/index.js +0 -115
- package/lib/components/SafeAreaTop/index.less +0 -11
- package/lib/components/SafeAreaTop/types.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -4
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.js +0 -22
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.js +0 -67
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.js +0 -7
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.js +0 -52
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.js +0 -96
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -52
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.js +0 -64
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +0 -760
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.less +0 -313
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.js +0 -197
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +0 -23
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.js +0 -44
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.js +0 -75
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.js +0 -63
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.js +0 -28
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.js +0 -81
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.js +0 -50
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.js +0 -39
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.js +0 -21
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +0 -562
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.js +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.js +0 -33
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.js +0 -585
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.js +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +0 -113
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.js +0 -614
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +0 -164
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.js +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.js +0 -34
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.js +0 -38
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.js +0 -19
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.js +0 -34
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.js +0 -30
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.js +0 -45
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.js +0 -439
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -11
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.js +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.js +0 -181
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.js +0 -64
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.js +0 -57
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewport.less +0 -45
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.js +0 -93
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.js +0 -220
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.less +0 -339
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallMarquee.less +0 -52
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.js +0 -153
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -32
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.js +0 -181
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.js +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.js +0 -63
- package/lib/components/pisellRecordBoard/types.js +0 -12
- package/lib/components/pisellTimeNavigator/timeNavigatorConstants.js +0 -7
- package/lib/components/productCard/cartSkuCard/components/Gift/index.js +0 -36
- package/lib/components/productCard/cartSkuCard/components/Gift/index.less +0 -84
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.js +0 -25
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.less +0 -16
- package/lib/components/productCard/cartSkuCard/components/weighing/index.js +0 -29
- package/lib/components/productCard/cartSkuCard/components/weighing/index.less +0 -25
- /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-design.md +0 -0
- /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-dev.md +0 -0
- /package/es/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-test.md +0 -0
- /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-design.md +0 -0
- /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-dev.md +0 -0
- /package/lib/components/pisellQuickFilter/{docs → doc}/PisellQuickFilter.$tab-test.md +0 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
---
|
|
2
|
+
nav:
|
|
3
|
+
title: 组件
|
|
4
|
+
order: 1
|
|
5
|
+
group:
|
|
6
|
+
title: Data Entry
|
|
7
|
+
order: 1
|
|
8
|
+
title: PisellImport
|
|
9
|
+
order: 2
|
|
10
|
+
category: atom
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# PisellImport 导入按钮
|
|
14
|
+
|
|
15
|
+
导入触发器组件,样式与 PisellExport 一致,支持「仅图标」与「图标+文案」两种形态、三种尺寸。点击后打开系统文件选择框,可选择文件并做大小校验,通过后通过 `onImport(files)` 回调将文件列表交给调用方处理上传或解析。
|
|
16
|
+
|
|
17
|
+
## 何时使用
|
|
18
|
+
|
|
19
|
+
- 批量导入 Excel/CSV 等文件
|
|
20
|
+
- 与 PisellExport 搭配的导入导出能力
|
|
21
|
+
- 需要限制文件类型、大小或多选的导入场景
|
|
22
|
+
|
|
23
|
+
## 代码演示
|
|
24
|
+
|
|
25
|
+
### 基础用法
|
|
26
|
+
|
|
27
|
+
点击后打开文件选择,选择完成后在 `onImport` 中拿到 `File[]`,由调用方实现上传或解析。
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
import React from 'react';
|
|
31
|
+
import { PisellImport } from '@pisell/materials';
|
|
32
|
+
|
|
33
|
+
export default () => {
|
|
34
|
+
return (
|
|
35
|
+
<PisellImport
|
|
36
|
+
onImport={(files) => {
|
|
37
|
+
console.log('已选文件', files);
|
|
38
|
+
// 调用方:上传、解析等
|
|
39
|
+
}}
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 限制文件类型与大小
|
|
46
|
+
|
|
47
|
+
通过 `accept` 限制可选类型,通过 `maxSize`(MB)限制单文件大小;超出时触发 `onError`。
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
import React from 'react';
|
|
51
|
+
import { PisellImport } from '@pisell/materials';
|
|
52
|
+
import { message } from 'antd';
|
|
53
|
+
|
|
54
|
+
export default () => {
|
|
55
|
+
return (
|
|
56
|
+
<PisellImport
|
|
57
|
+
accept=".xlsx,.xls,.csv"
|
|
58
|
+
maxSize={10}
|
|
59
|
+
onImport={(files) => {
|
|
60
|
+
message.success(`已选择 ${files.length} 个文件`);
|
|
61
|
+
}}
|
|
62
|
+
onError={({ message: msg }) => {
|
|
63
|
+
message.error(msg);
|
|
64
|
+
}}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 多选文件
|
|
71
|
+
|
|
72
|
+
`multiple={true}` 时允许一次选择多个文件。
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
import React from 'react';
|
|
76
|
+
import { PisellImport } from '@pisell/materials';
|
|
77
|
+
|
|
78
|
+
export default () => {
|
|
79
|
+
return (
|
|
80
|
+
<PisellImport
|
|
81
|
+
multiple
|
|
82
|
+
label="选择多个文件"
|
|
83
|
+
onImport={(files) => {
|
|
84
|
+
console.log('已选', files.length, '个文件', files.map((f) => f.name));
|
|
85
|
+
}}
|
|
86
|
+
/>
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 仅图标与不同尺寸
|
|
92
|
+
|
|
93
|
+
与 PisellExport 相同,支持 `variant="icon"` 和 `size`。
|
|
94
|
+
|
|
95
|
+
```tsx
|
|
96
|
+
import React from 'react';
|
|
97
|
+
import { PisellImport } from '@pisell/materials';
|
|
98
|
+
|
|
99
|
+
export default () => {
|
|
100
|
+
return (
|
|
101
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
|
|
102
|
+
<PisellImport variant="icon" onImport={() => {}} />
|
|
103
|
+
<PisellImport size="small" onImport={() => {}} />
|
|
104
|
+
<PisellImport size="large" type="primary" onImport={() => {}} />
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 与导出并排
|
|
111
|
+
|
|
112
|
+
常与 PisellExport 一起使用。
|
|
113
|
+
|
|
114
|
+
```tsx
|
|
115
|
+
import React from 'react';
|
|
116
|
+
import { PisellImport, PisellExport } from '@pisell/materials';
|
|
117
|
+
|
|
118
|
+
export default () => {
|
|
119
|
+
return (
|
|
120
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
|
|
121
|
+
<PisellImport
|
|
122
|
+
accept=".xlsx,.csv"
|
|
123
|
+
maxSize={10}
|
|
124
|
+
onImport={(files) => console.log('导入', files)}
|
|
125
|
+
onError={({ message: msg }) => console.error(msg)}
|
|
126
|
+
/>
|
|
127
|
+
<PisellExport onExport={() => console.log('导出')} />
|
|
128
|
+
</div>
|
|
129
|
+
);
|
|
130
|
+
};
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## API
|
|
134
|
+
|
|
135
|
+
### PisellImport Props
|
|
136
|
+
|
|
137
|
+
| 参数 | 说明 | 类型 | 默认值 | 必填 |
|
|
138
|
+
| --------- | ---------------------------- | -------------------------------------------------------------------- | --------- | ---- |
|
|
139
|
+
| variant | 展示形态 | `'icon' \| 'button'` | `'button'` | ❌ |
|
|
140
|
+
| size | 尺寸 | `'small' \| 'medium' \| 'large'` | `'medium'` | ❌ |
|
|
141
|
+
| type | 视觉类型 | `'default' \| 'primary'` | `'default'` | ❌ |
|
|
142
|
+
| disabled | 是否禁用 | `boolean` | `false` | ❌ |
|
|
143
|
+
| label | Button 形态文案 | `ReactNode` | 国际化默认 | ❌ |
|
|
144
|
+
| icon | 自定义图标 | `ReactNode` | 内置导入图标 | ❌ |
|
|
145
|
+
| accept | 接受的文件类型 | `string`(如 `.xlsx,.csv`) | - | ❌ |
|
|
146
|
+
| multiple | 是否多选 | `boolean` | `false` | ❌ |
|
|
147
|
+
| maxSize | 单文件最大体积(MB) | `number` | - | ❌ |
|
|
148
|
+
| onImport | 选择文件并校验通过后回调 | `(files: File[], e: React.ChangeEvent<HTMLInputElement>) => void` | - | ❌ |
|
|
149
|
+
| onError | 校验失败时回调(如文件过大) | `(error: { type: 'MAX_SIZE'; message: string; file: File }) => void` | - | ❌ |
|
|
150
|
+
| className | 自定义类名 | `string` | - | ❌ |
|
|
151
|
+
| style | 自定义样式 | `CSSProperties` | - | ❌ |
|
|
152
|
+
|
|
153
|
+
### onError 参数
|
|
154
|
+
|
|
155
|
+
当 `maxSize` 校验不通过时,`onError` 会收到:
|
|
156
|
+
|
|
157
|
+
- `type`: `'MAX_SIZE'`
|
|
158
|
+
- `message`: 提示文案(含体积限制,支持国际化)
|
|
159
|
+
- `file`: 超限的 File 对象
|
|
160
|
+
|
|
161
|
+
可在回调中使用 `message.error(error.message)` 等方式提示用户。
|
|
162
|
+
|
|
163
|
+
## 注意事项
|
|
164
|
+
|
|
165
|
+
1. **回调必传**:实际使用中建议传入 `onImport`,否则选择文件后无法处理
|
|
166
|
+
2. **文件校验**:需限制类型时传 `accept`,需限制大小时传 `maxSize` 并实现 `onError` 提示用户
|
|
167
|
+
3. **多选**:`multiple={true}` 时一次可选多个文件,`onImport` 收到的 `files` 为数组
|
|
168
|
+
4. **搭配使用**:常与 PisellExport 并排使用,形成导入导出能力
|
|
169
|
+
|
|
170
|
+
## 相关文档
|
|
171
|
+
|
|
172
|
+
- [设计文档](./pisellImport.$tab-design.md)
|
|
173
|
+
- [开发文档](./pisellImport.$tab-dev.md)
|
|
174
|
+
- [测试文档](./pisellImport.$tab-test.md)
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/pisellImport/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* 展示形态
|
|
6
|
+
* @description icon:仅图标;button:图标 + 文案
|
|
7
|
+
*/
|
|
8
|
+
type VariantType = 'icon' | 'button';
|
|
9
|
+
/**
|
|
10
|
+
* 尺寸
|
|
11
|
+
* @description 小、中、大三种尺寸,对应设计稿 padding 与字体
|
|
12
|
+
*/
|
|
13
|
+
type SizeType = 'small' | 'medium' | 'large';
|
|
14
|
+
/**
|
|
15
|
+
* 视觉类型
|
|
16
|
+
* @description default:默认边框/灰字;primary:主色描边或填充
|
|
17
|
+
*/
|
|
18
|
+
type ImportButtonType = 'default' | 'primary';
|
|
19
|
+
/**
|
|
20
|
+
* PisellImport 组件 Props
|
|
21
|
+
* @description 导入触发器 UI 组件,仅负责展示与点击回调,不内置导入逻辑
|
|
22
|
+
*/
|
|
23
|
+
interface PisellImportProps {
|
|
24
|
+
/**
|
|
25
|
+
* 展示形态
|
|
26
|
+
* @default 'button'
|
|
27
|
+
*/
|
|
28
|
+
variant?: VariantType;
|
|
29
|
+
/**
|
|
30
|
+
* 尺寸
|
|
31
|
+
* @default 'medium'
|
|
32
|
+
*/
|
|
33
|
+
size?: SizeType;
|
|
34
|
+
/**
|
|
35
|
+
* 视觉类型(默认样式 / 主色样式)
|
|
36
|
+
* @default 'default'
|
|
37
|
+
*/
|
|
38
|
+
type?: ImportButtonType;
|
|
39
|
+
/**
|
|
40
|
+
* 是否禁用
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Button 形态下的文案,不传时使用国际化默认文案
|
|
46
|
+
*/
|
|
47
|
+
label?: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* 自定义图标,不传时使用内置上传/导入图标
|
|
50
|
+
*/
|
|
51
|
+
icon?: ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* 接受的文件类型
|
|
54
|
+
* @description 与 input[type=file] 的 accept 一致,如 ".xlsx,.csv" 或 "application/vnd.ms-excel"
|
|
55
|
+
*/
|
|
56
|
+
accept?: string;
|
|
57
|
+
/**
|
|
58
|
+
* 是否允许多选
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
multiple?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 单文件最大体积(MB),超出时不会调用 onImport,并调用 onError
|
|
64
|
+
*/
|
|
65
|
+
maxSize?: number;
|
|
66
|
+
/**
|
|
67
|
+
* 选择文件并校验通过后回调
|
|
68
|
+
* @description 用户选择文件后触发,e 为 input 的 change 事件
|
|
69
|
+
*/
|
|
70
|
+
onImport?: (files: File[], e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
71
|
+
/**
|
|
72
|
+
* 校验失败时回调(如文件过大)
|
|
73
|
+
*/
|
|
74
|
+
onError?: (error: {
|
|
75
|
+
type: 'MAX_SIZE';
|
|
76
|
+
message: string;
|
|
77
|
+
file: File;
|
|
78
|
+
}) => void;
|
|
79
|
+
/**
|
|
80
|
+
* 自定义类名
|
|
81
|
+
*/
|
|
82
|
+
className?: string;
|
|
83
|
+
/**
|
|
84
|
+
* 自定义样式
|
|
85
|
+
*/
|
|
86
|
+
style?: CSSProperties;
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { ImportButtonType, PisellImportProps, SizeType, VariantType };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_pisell_components = require("../../theme/pisell-components.js");
|
|
2
3
|
const require_ReadOnlyView = require("./components/ReadOnlyView.js");
|
|
3
4
|
const require_EditView = require("./components/EditView.js");
|
|
4
5
|
const require_DisabledView = require("./components/DisabledView.js");
|
|
5
6
|
let react = require("react");
|
|
6
7
|
react = require_runtime.__toESM(react);
|
|
7
8
|
let _pisell_utils = require("@pisell/utils");
|
|
9
|
+
let antd = require("antd");
|
|
8
10
|
require("./PisellLongText.less");
|
|
9
11
|
//#region src/components/pisellLongText/PisellLongText.tsx
|
|
10
12
|
/**
|
|
@@ -42,12 +44,17 @@ require("./PisellLongText.less");
|
|
|
42
44
|
*/
|
|
43
45
|
const PisellLongText = (props) => {
|
|
44
46
|
const { mode = "edit", disabled = false } = props;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
const displayState = (0, _pisell_utils.getDisplayState)(mode, disabled);
|
|
48
|
+
const render = () => {
|
|
49
|
+
switch (displayState) {
|
|
50
|
+
case "read": return /* @__PURE__ */ react.default.createElement(require_ReadOnlyView.default, props);
|
|
51
|
+
case "edit": return /* @__PURE__ */ react.default.createElement(require_EditView.default, props);
|
|
52
|
+
case "disabled": return /* @__PURE__ */ react.default.createElement(require_DisabledView.default, props);
|
|
53
|
+
default: return null;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const theme = require_pisell_components.getPisellComponentsThemeConfig();
|
|
57
|
+
return /* @__PURE__ */ react.default.createElement(antd.ConfigProvider, { theme }, render());
|
|
51
58
|
};
|
|
52
59
|
var PisellLongText_default = react.default.memo(PisellLongText, (prevProps, nextProps) => {
|
|
53
60
|
return prevProps.value === nextProps.value && prevProps.mode === nextProps.mode && prevProps.disabled === nextProps.disabled;
|
|
@@ -7,73 +7,6 @@
|
|
|
7
7
|
&-edit {
|
|
8
8
|
position: relative;
|
|
9
9
|
width: 100%;
|
|
10
|
-
|
|
11
|
-
// TextArea 样式(Figma 设计规范,覆盖时使用 pisell-lowcode-xxx)
|
|
12
|
-
.pisell-lowcode-input {
|
|
13
|
-
// 基础样式
|
|
14
|
-
font-size: 16px !important;
|
|
15
|
-
line-height: 24px !important;
|
|
16
|
-
|
|
17
|
-
// 边框和圆角
|
|
18
|
-
border-radius: 8px !important;
|
|
19
|
-
border: 1px solid #d0d5dd !important; // Gray/300
|
|
20
|
-
|
|
21
|
-
// 内边距(Figma: 垂直 12px,水平 14px)
|
|
22
|
-
padding: 12px 14px !important;
|
|
23
|
-
min-height: 80px !important; // 多行最小高度,由 rows 进一步控制
|
|
24
|
-
|
|
25
|
-
// 颜色
|
|
26
|
-
color: #101828 !important; // Gray/900
|
|
27
|
-
background-color: #ffffff !important;
|
|
28
|
-
|
|
29
|
-
&::placeholder {
|
|
30
|
-
color: #667085 !important; // Gray/500
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// 聚焦态
|
|
34
|
-
&:focus,
|
|
35
|
-
&:focus-within {
|
|
36
|
-
border-color: #d6bbfb !important; // Primary/300
|
|
37
|
-
box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
|
|
38
|
-
outline: none !important;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Hover 态
|
|
42
|
-
&:hover:not(:focus):not(:focus-within):not([disabled]) {
|
|
43
|
-
border-color: #b692f6 !important; // Primary/400
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// 禁用态
|
|
47
|
-
&[disabled],
|
|
48
|
-
&.pisell-lowcode-input-disabled {
|
|
49
|
-
background-color: #f9fafb !important; // Gray/50
|
|
50
|
-
color: #98a2b3 !important; // Gray/400
|
|
51
|
-
border-color: #d0d5dd !important;
|
|
52
|
-
cursor: not-allowed !important;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// 字数统计样式(TextArea showCount)
|
|
57
|
-
.pisell-lowcode-input-data-count,
|
|
58
|
-
.pisell-lowcode-input-show-count-suffix {
|
|
59
|
-
color: #667085 !important; // Gray/500
|
|
60
|
-
font-size: 14px !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// 错误状态
|
|
64
|
-
.pisell-lowcode-input-status-error {
|
|
65
|
-
border-color: #fda29b !important; // Error/300
|
|
66
|
-
|
|
67
|
-
&:focus,
|
|
68
|
-
&:focus-within {
|
|
69
|
-
border-color: #f97066 !important; // Error/400
|
|
70
|
-
box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:hover:not(:focus):not(:focus-within) {
|
|
74
|
-
border-color: #f97066 !important; // Error/400
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
10
|
}
|
|
78
11
|
|
|
79
12
|
&-error {
|
|
@@ -59,8 +59,9 @@ const LookupTriggerComponent = (0, react.forwardRef)((props, ref) => {
|
|
|
59
59
|
*/
|
|
60
60
|
const getAppScanBarcodePlugin = () => {
|
|
61
61
|
if (getApp) {
|
|
62
|
+
var _app$getPlugin;
|
|
62
63
|
const app = getApp();
|
|
63
|
-
const scanBarcode = app === null || app === void 0
|
|
64
|
+
const scanBarcode = app === null || app === void 0 || (_app$getPlugin = app.getPlugin("scan")) === null || _app$getPlugin === void 0 ? void 0 : _app$getPlugin.scanBarcode;
|
|
64
65
|
if (scanBarcode) return scanBarcode;
|
|
65
66
|
}
|
|
66
67
|
return null;
|
|
@@ -74,11 +75,12 @@ const LookupTriggerComponent = (0, react.forwardRef)((props, ref) => {
|
|
|
74
75
|
const appScan = () => {
|
|
75
76
|
const app = getApp();
|
|
76
77
|
try {
|
|
77
|
-
getAppScanBarcodePlugin().
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
getAppScanBarcodePlugin()({ hint: 17 }).then((res) => onScan === null || onScan === void 0 ? void 0 : onScan(res === null || res === void 0 ? void 0 : res.ScanResult)).catch((err) => {
|
|
79
|
+
app.logger.addLog({
|
|
80
|
+
type: "info",
|
|
81
|
+
title: "扫码失败",
|
|
82
|
+
metadata: { err }
|
|
83
|
+
});
|
|
82
84
|
});
|
|
83
85
|
} catch (err) {
|
|
84
86
|
app.logger.addLog({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
2
2
|
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
|
|
3
|
+
const require_pisell_components = require("../../theme/pisell-components.js");
|
|
3
4
|
const require_EditView = require("./components/EditView.js");
|
|
4
5
|
const require_DisabledView = require("./components/DisabledView.js");
|
|
5
6
|
const require_ReadOnlyView = require("./components/ReadOnlyView.js");
|
|
@@ -51,14 +52,15 @@ const PisellMultipleSelect = (0, react.forwardRef)((props, ref) => {
|
|
|
51
52
|
addValue: (val) => state.addValue(val),
|
|
52
53
|
removeValue: (val) => state.removeValue(val)
|
|
53
54
|
}));
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
return /* @__PURE__ */ react.default.createElement(
|
|
55
|
+
const theme = require_pisell_components.getPisellComponentsThemeConfig();
|
|
56
|
+
if (disabled) return /* @__PURE__ */ react.default.createElement(antd.ConfigProvider, { theme }, /* @__PURE__ */ react.default.createElement(require_DisabledView.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, { ref: selectRef })));
|
|
57
|
+
if (readOnly) return /* @__PURE__ */ react.default.createElement(antd.ConfigProvider, { theme }, /* @__PURE__ */ react.default.createElement(require_ReadOnlyView.default, props));
|
|
58
|
+
return /* @__PURE__ */ react.default.createElement(antd.ConfigProvider, { theme }, /* @__PURE__ */ react.default.createElement(require_EditView.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, {
|
|
57
59
|
value: state.value,
|
|
58
60
|
state,
|
|
59
61
|
onChangeInternal: handleChange,
|
|
60
62
|
ref: selectRef
|
|
61
|
-
}));
|
|
63
|
+
})));
|
|
62
64
|
});
|
|
63
65
|
PisellMultipleSelect.displayName = "PisellMultipleSelect";
|
|
64
66
|
//#endregion
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
.pisell-multiple-select {
|
|
7
|
-
height: 48px !important;
|
|
8
7
|
width: 100%;
|
|
9
8
|
|
|
10
9
|
.pisell-lowcode-select-clear {
|
|
@@ -22,88 +21,11 @@
|
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
// Select 触发器(Figma 设计规范,与 SingleSelect / Input 体系一致)
|
|
26
|
-
.pisell-lowcode-select:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input) {
|
|
27
|
-
.pisell-lowcode-select-selector {
|
|
28
|
-
font-size: 16px !important;
|
|
29
|
-
line-height: 24px !important;
|
|
30
|
-
border-radius: 8px !important;
|
|
31
|
-
border: 1px solid #d0d5dd !important; // Gray/300
|
|
32
|
-
padding: 12px 16px !important;
|
|
33
|
-
min-height: 48px !important;
|
|
34
|
-
color: #101828 !important; // Gray/900
|
|
35
|
-
background-color: #ffffff !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// 多选模式:内边距适配标签,高度保持 48px
|
|
39
|
-
&.pisell-lowcode-select-multiple .pisell-lowcode-select-selector {
|
|
40
|
-
padding: 6px 16px !important;
|
|
41
|
-
min-height: 48px !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.pisell-lowcode-select-open .pisell-lowcode-select-selector {
|
|
45
|
-
border-color: #d6bbfb !important; // Primary/300
|
|
46
|
-
box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:not(.pisell-lowcode-select-open):not(.pisell-lowcode-select-disabled)
|
|
50
|
-
.pisell-lowcode-select-selector:hover {
|
|
51
|
-
border-color: #b692f6 !important; // Primary/400
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.pisell-lowcode-select-disabled .pisell-lowcode-select-selector {
|
|
55
|
-
background-color: #f9fafb !important; // Gray/50
|
|
56
|
-
color: #98a2b3 !important; // Gray/400
|
|
57
|
-
border-color: #d0d5dd !important;
|
|
58
|
-
cursor: not-allowed !important;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.pisell-lowcode-select-selection-placeholder {
|
|
62
|
-
color: #667085 !important; // Gray/500
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.pisell-lowcode-select-arrow {
|
|
66
|
-
color: #667085;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// 多选标签(选择后展示的 item)高度 36px
|
|
71
|
-
.pisell-lowcode-select-selection-item {
|
|
72
|
-
border-radius: 6px !important;
|
|
73
|
-
padding: 0 10px !important;
|
|
74
|
-
margin-inline-end: 4px !important;
|
|
75
|
-
height: 36px !important;
|
|
76
|
-
min-height: 36px !important;
|
|
77
|
-
line-height: 36px !important;
|
|
78
|
-
|
|
79
|
-
&-content {
|
|
80
|
-
line-height: 36px !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&-remove {
|
|
84
|
-
margin-left: 4px !important;
|
|
85
|
-
|
|
86
|
-
&:hover {
|
|
87
|
-
background-color: transparent !important;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
24
|
&-wrapper {
|
|
94
25
|
display: flex;
|
|
95
26
|
flex-direction: column;
|
|
96
27
|
gap: 8px;
|
|
97
28
|
position: relative;
|
|
98
|
-
|
|
99
|
-
// 下拉选项高度 48px(通过 getPopupContainer 挂到 wrapper 内,无需 :global)
|
|
100
|
-
.pisell-multiple-select-dropdown .pisell-lowcode-select-item {
|
|
101
|
-
min-height: 48px !important;
|
|
102
|
-
height: 48px !important;
|
|
103
|
-
line-height: 48px !important;
|
|
104
|
-
padding: 0 16px !important;
|
|
105
|
-
font-size: 16px !important;
|
|
106
|
-
}
|
|
107
29
|
}
|
|
108
30
|
|
|
109
31
|
&-label {
|
|
@@ -147,42 +69,25 @@
|
|
|
147
69
|
margin-left: 8px;
|
|
148
70
|
}
|
|
149
71
|
|
|
150
|
-
// 错误状态(Figma 设计体系 Error 色)
|
|
151
|
-
&-error {
|
|
152
|
-
.pisell-lowcode-select .pisell-lowcode-select-selector {
|
|
153
|
-
border-color: #fda29b !important; // Error/300
|
|
154
|
-
|
|
155
|
-
&:hover {
|
|
156
|
-
border-color: #f97066 !important; // Error/400
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.pisell-lowcode-select.pisell-lowcode-select-focused .pisell-lowcode-select-selector,
|
|
161
|
-
.pisell-lowcode-select.pisell-lowcode-select-open .pisell-lowcode-select-selector {
|
|
162
|
-
border-color: #f97066 !important; // Error/400
|
|
163
|
-
box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
72
|
// 聚合标签(maxTagPlaceholder)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
73
|
+
//&-more-tag {
|
|
74
|
+
// display: inline-flex;
|
|
75
|
+
// align-items: center;
|
|
76
|
+
// background-color: #eaecf0;
|
|
77
|
+
// color: #344054; // Gray/700
|
|
78
|
+
// border: none;
|
|
79
|
+
// border-radius: 6px;
|
|
80
|
+
// padding: 6px 10px;
|
|
81
|
+
// font-size: 16px;
|
|
82
|
+
// font-weight: 500;
|
|
83
|
+
// line-height: 24px;
|
|
84
|
+
// cursor: pointer;
|
|
85
|
+
// transition: background-color 0.2s ease;
|
|
86
|
+
//
|
|
87
|
+
// &:hover {
|
|
88
|
+
// background-color: #d0d5dd; // Gray/300
|
|
89
|
+
// }
|
|
90
|
+
//}
|
|
186
91
|
|
|
187
92
|
// 只读状态
|
|
188
93
|
&-readonly {
|
|
@@ -228,32 +133,6 @@
|
|
|
228
133
|
}
|
|
229
134
|
}
|
|
230
135
|
|
|
231
|
-
// 下拉内搜索框(在 dropdown 内)
|
|
232
|
-
.pisell-select-search-wrapper {
|
|
233
|
-
padding: 6px;
|
|
234
|
-
border-bottom: 1px solid #eaecf0;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.pisell-select-search-input {
|
|
238
|
-
padding: 9px 10px !important;
|
|
239
|
-
font-size: 14px;
|
|
240
|
-
|
|
241
|
-
.pisell-lowcode-input {
|
|
242
|
-
font-size: 14px !important;
|
|
243
|
-
color: #344054 !important;
|
|
244
|
-
|
|
245
|
-
&::placeholder {
|
|
246
|
-
color: #98a2b3 !important;
|
|
247
|
-
font-size: 12px !important;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&:hover,
|
|
252
|
-
&:focus-within {
|
|
253
|
-
background-color: transparent !important;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
136
|
@keyframes pisell-multiple-select-fadeIn {
|
|
258
137
|
from {
|
|
259
138
|
opacity: 0;
|
|
@@ -101,6 +101,7 @@ const EditView = (0, react.forwardRef)((props, ref) => {
|
|
|
101
101
|
style
|
|
102
102
|
}, label && /* @__PURE__ */ react.default.createElement("label", { className: (0, classnames.default)("pisell-multiple-select-label", { "pisell-multiple-select-label-required": required }) }, label), /* @__PURE__ */ react.default.createElement(antd.Select, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, restProps), {}, {
|
|
103
103
|
ref,
|
|
104
|
+
open: true,
|
|
104
105
|
mode: "multiple",
|
|
105
106
|
value,
|
|
106
107
|
options: filteredAntdOptions,
|
|
@@ -52,6 +52,10 @@ const PisellNavigationMenu = ({ value = [], allowDrag = true, allowDelete = true
|
|
|
52
52
|
text: require_index.getText("pisell-lowcode-navigation-menu-tag-pisell1"),
|
|
53
53
|
color: "#ee837a"
|
|
54
54
|
},
|
|
55
|
+
dynamicRoute: {
|
|
56
|
+
text: require_index.getText("pisell-lowcode-navigation-menu-tag-dynamic-route"),
|
|
57
|
+
color: "#ffc53d"
|
|
58
|
+
},
|
|
55
59
|
group: {
|
|
56
60
|
text: require_index.getText("pisell-lowcode-navigation-menu-tag-group"),
|
|
57
61
|
color: "#7f56d9"
|