@pisell/materials 1.0.1054 → 1.0.1056
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 +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- package/es/components/dataSourceComponents/dataSourceSubForm/index.js +18 -5
- package/es/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +38 -32
- package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +58 -26
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.js +1 -1
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +2 -1
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +6 -2
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +16 -3
- package/lib/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +38 -32
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +49 -21
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.js +1 -1
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +2 -1
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +7 -1
- package/lowcode/data-source-form/utils.ts +3 -0
- package/package.json +1 -1
- package/es/components/Pagination/index.d.ts +0 -12
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +0 -163
- package/es/components/PisellFields/index.d.ts +0 -36
- package/es/components/PisellLayouts/index.d.ts +0 -32
- package/es/components/PisellMetrics/index.d.ts +0 -23
- package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/es/components/appVersionControl/index.d.ts +0 -4
- package/es/components/cardMetricItem/index.d.ts +0 -15
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -178
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -8
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -7
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -11
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/filter/components/Dropdown/index.d.ts +0 -9
- package/es/components/filter/components/FilterButton/index.d.ts +0 -4
- package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +0 -21
- package/es/components/filter/components/FilterItem/index.d.ts +0 -5
- package/es/components/page/index.d.ts +0 -8
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellBatchActionBar/PisellBatchActionBar.d.ts +0 -31
- package/es/components/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellCurrency/PisellCurrency.d.ts +0 -39
- package/es/components/pisellCurrency/PisellCurrency.stories.d.ts +0 -56
- package/es/components/pisellCurrency/components/DisabledView.d.ts +0 -11
- package/es/components/pisellCurrency/components/EditView.d.ts +0 -18
- package/es/components/pisellCurrency/components/ReadOnlyView.d.ts +0 -17
- package/es/components/pisellCurrency/components/index.d.ts +0 -6
- package/es/components/pisellCurrency/index.d.ts +0 -7
- package/es/components/pisellCurrency/types.d.ts +0 -56
- package/es/components/pisellCurrency/utils/currencyFormatter.d.ts +0 -31
- package/es/components/pisellCurrency/utils/index.d.ts +0 -5
- package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +0 -28
- package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +0 -28
- package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +0 -9
- package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +0 -14
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +0 -35
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +0 -195
- package/es/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +0 -48
- package/es/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +0 -42
- package/es/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +0 -57
- package/es/components/pisellDateTimeDisplay/components/index.d.ts +0 -6
- package/es/components/pisellDateTimeDisplay/hooks/index.d.ts +0 -2
- package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +0 -46
- package/es/components/pisellDateTimeDisplay/index.d.ts +0 -3
- package/es/components/pisellDateTimeDisplay/utils/formatDate.d.ts +0 -21
- package/es/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +0 -17
- package/es/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +0 -30
- package/es/components/pisellDateTimeDisplay/utils/index.d.ts +0 -7
- package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +0 -22
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
- package/es/components/pisellEmail/PisellEmail.d.ts +0 -37
- package/es/components/pisellEmail/PisellEmail.stories.d.ts +0 -116
- package/es/components/pisellEmail/components/DisabledView.d.ts +0 -14
- package/es/components/pisellEmail/components/EditView.d.ts +0 -15
- package/es/components/pisellEmail/components/ReadOnlyView.d.ts +0 -15
- package/es/components/pisellEmail/index.d.ts +0 -7
- package/es/components/pisellEmail/types.d.ts +0 -176
- package/es/components/pisellEmail/utils/emailHelper.d.ts +0 -66
- package/es/components/pisellEmail/utils/emailValidator.d.ts +0 -45
- package/es/components/pisellEmail/utils/index.d.ts +0 -6
- package/es/components/pisellFilter/index.d.ts +0 -3
- package/es/components/pisellFind/PisellFind.stories.d.ts +0 -45
- package/es/components/pisellFind/index.d.ts +0 -40
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellLongText/PisellLongText.d.ts +0 -39
- package/es/components/pisellLongText/PisellLongText.stories.d.ts +0 -123
- package/es/components/pisellLongText/components/DisabledView.d.ts +0 -16
- package/es/components/pisellLongText/components/EditView.d.ts +0 -19
- package/es/components/pisellLongText/components/ReadOnlyView.d.ts +0 -18
- package/es/components/pisellLongText/index.d.ts +0 -7
- package/es/components/pisellLongText/types.d.ts +0 -147
- package/es/components/pisellMetricCard/PisellMetricCard.d.ts +0 -35
- package/es/components/pisellMetricCard/PisellMetricCard.stories.d.ts +0 -17
- package/es/components/pisellMetricCard/components/MetricComparison.d.ts +0 -14
- package/es/components/pisellMetricCard/components/index.d.ts +0 -7
- package/es/components/pisellMetricCard/index.d.ts +0 -6
- package/es/components/pisellMetricCard/utils/formatMetricValue.d.ts +0 -34
- package/es/components/pisellMetricCard/utils/index.d.ts +0 -5
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +0 -70
- package/es/components/pisellMultipleSelect/components/DisabledView.d.ts +0 -8
- package/es/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
- package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +0 -8
- package/es/components/pisellMultipleSelect/index.d.ts +0 -7
- package/es/components/pisellMultipleSelect/types.d.ts +0 -160
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/es/components/pisellNumber/PisellNumber.d.ts +0 -42
- package/es/components/pisellNumber/PisellNumber.stories.d.ts +0 -66
- package/es/components/pisellNumber/components/DisabledView.d.ts +0 -11
- package/es/components/pisellNumber/components/EditView.d.ts +0 -18
- package/es/components/pisellNumber/components/ReadOnlyView.d.ts +0 -16
- package/es/components/pisellNumber/components/index.d.ts +0 -6
- package/es/components/pisellNumber/index.d.ts +0 -7
- package/es/components/pisellNumber/types.d.ts +0 -168
- package/es/components/pisellPercent/PisellPercent.d.ts +0 -38
- package/es/components/pisellPercent/PisellPercent.stories.d.ts +0 -52
- package/es/components/pisellPercent/components/DisabledView.d.ts +0 -11
- package/es/components/pisellPercent/components/EditView.d.ts +0 -17
- package/es/components/pisellPercent/components/ReadOnlyView.d.ts +0 -14
- package/es/components/pisellPercent/components/index.d.ts +0 -6
- package/es/components/pisellPercent/index.d.ts +0 -7
- package/es/components/pisellPercent/types.d.ts +0 -68
- package/es/components/pisellPercent/utils/index.d.ts +0 -6
- package/es/components/pisellPercent/utils/percentFormatter.d.ts +0 -27
- package/es/components/pisellPhone/PisellPhone.d.ts +0 -36
- package/es/components/pisellPhone/PisellPhone.stories.d.ts +0 -80
- package/es/components/pisellPhone/components/DisabledView.d.ts +0 -16
- package/es/components/pisellPhone/components/EditView.d.ts +0 -19
- package/es/components/pisellPhone/components/ReadOnlyView.d.ts +0 -17
- package/es/components/pisellPhone/constants/countryCodes.d.ts +0 -20
- package/es/components/pisellPhone/index.d.ts +0 -8
- package/es/components/pisellPhone/types.d.ts +0 -209
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
- package/es/components/pisellPhone/utils/index.d.ts +0 -6
- package/es/components/pisellPhone/utils/phoneValidator.d.ts +0 -11
- package/es/components/pisellRating/PisellRating.d.ts +0 -31
- package/es/components/pisellRating/PisellRating.stories.d.ts +0 -53
- package/es/components/pisellRating/index.d.ts +0 -7
- package/es/components/pisellRating/types.d.ts +0 -124
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -81
- package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +0 -3
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +0 -11
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +0 -16
- package/es/components/pisellRecordBoard/index.d.ts +0 -35
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +0 -12
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +0 -13
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +0 -13
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +0 -15
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +0 -26
- package/es/components/pisellRecordBoard/types.d.ts +0 -315
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -41
- package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +0 -9
- package/es/components/pisellRow/index.d.ts +0 -22
- package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
- package/es/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +0 -102
- package/es/components/pisellSingleLineText/components/DisabledView.d.ts +0 -16
- package/es/components/pisellSingleLineText/components/EditView.d.ts +0 -19
- package/es/components/pisellSingleLineText/components/ReadOnlyView.d.ts +0 -20
- package/es/components/pisellSingleLineText/index.d.ts +0 -7
- package/es/components/pisellSingleLineText/types.d.ts +0 -139
- package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
- package/es/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +0 -66
- package/es/components/pisellSingleSelect/components/DisabledView.d.ts +0 -8
- package/es/components/pisellSingleSelect/components/EditView.d.ts +0 -8
- package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +0 -8
- package/es/components/pisellSingleSelect/index.d.ts +0 -7
- package/es/components/pisellSingleSelect/types.d.ts +0 -92
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellText/components/Editable/index.d.ts +0 -32
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +0 -61
- package/es/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +0 -20
- package/es/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +0 -19
- package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -30
- package/es/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +0 -18
- package/es/components/pisellTimeRangeDisplay/components/index.d.ts +0 -8
- package/es/components/pisellTimeRangeDisplay/index.d.ts +0 -3
- package/es/components/pisellTimeRangeDisplay/utils/index.d.ts +0 -4
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellUrl/PisellUrl.d.ts +0 -37
- package/es/components/pisellUrl/PisellUrl.stories.d.ts +0 -108
- package/es/components/pisellUrl/components/DisabledView.d.ts +0 -14
- package/es/components/pisellUrl/components/EditView.d.ts +0 -15
- package/es/components/pisellUrl/components/ReadOnlyView.d.ts +0 -15
- package/es/components/pisellUrl/index.d.ts +0 -7
- package/es/components/pisellUrl/types.d.ts +0 -160
- package/es/components/pisellWalletPassCard/index.d.ts +0 -146
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -29
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/es/components/productCard/components/Time/index.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/utils.d.ts +0 -33
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/BasicTable/index.d.ts +0 -3
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -167
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/es/components/table/index.d.ts +0 -4
- package/es/components/translation/index.d.ts +0 -18
- package/es/components/versionModal/index.d.ts +0 -24
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/components/walletCard/index.d.ts +0 -79
- package/es/index.d.ts +0 -243
- package/lib/components/Pagination/index.d.ts +0 -12
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +0 -163
- package/lib/components/PisellFields/index.d.ts +0 -36
- package/lib/components/PisellLayouts/index.d.ts +0 -32
- package/lib/components/PisellMetrics/index.d.ts +0 -23
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/cardMetricItem/index.d.ts +0 -15
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -178
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -8
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -101
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -85
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -7
- package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -11
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +0 -87
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -21
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +0 -18
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/filter/components/Dropdown/index.d.ts +0 -9
- package/lib/components/filter/components/FilterButton/index.d.ts +0 -4
- package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +0 -21
- package/lib/components/filter/components/FilterItem/index.d.ts +0 -5
- package/lib/components/page/index.d.ts +0 -8
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellBatchActionBar/PisellBatchActionBar.d.ts +0 -31
- package/lib/components/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellCurrency/PisellCurrency.d.ts +0 -39
- package/lib/components/pisellCurrency/PisellCurrency.stories.d.ts +0 -56
- package/lib/components/pisellCurrency/components/DisabledView.d.ts +0 -11
- package/lib/components/pisellCurrency/components/EditView.d.ts +0 -18
- package/lib/components/pisellCurrency/components/ReadOnlyView.d.ts +0 -17
- package/lib/components/pisellCurrency/components/index.d.ts +0 -6
- package/lib/components/pisellCurrency/index.d.ts +0 -7
- package/lib/components/pisellCurrency/types.d.ts +0 -56
- package/lib/components/pisellCurrency/utils/currencyFormatter.d.ts +0 -31
- package/lib/components/pisellCurrency/utils/index.d.ts +0 -5
- package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +0 -28
- package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +0 -28
- package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +0 -9
- package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +0 -14
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +0 -35
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +0 -195
- package/lib/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +0 -48
- package/lib/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +0 -42
- package/lib/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +0 -57
- package/lib/components/pisellDateTimeDisplay/components/index.d.ts +0 -6
- package/lib/components/pisellDateTimeDisplay/hooks/index.d.ts +0 -2
- package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +0 -46
- package/lib/components/pisellDateTimeDisplay/index.d.ts +0 -3
- package/lib/components/pisellDateTimeDisplay/utils/formatDate.d.ts +0 -21
- package/lib/components/pisellDateTimeDisplay/utils/formatDateOrRelative.d.ts +0 -17
- package/lib/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +0 -30
- package/lib/components/pisellDateTimeDisplay/utils/index.d.ts +0 -7
- package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +0 -22
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
- package/lib/components/pisellEmail/PisellEmail.d.ts +0 -37
- package/lib/components/pisellEmail/PisellEmail.stories.d.ts +0 -116
- package/lib/components/pisellEmail/components/DisabledView.d.ts +0 -14
- package/lib/components/pisellEmail/components/EditView.d.ts +0 -15
- package/lib/components/pisellEmail/components/ReadOnlyView.d.ts +0 -15
- package/lib/components/pisellEmail/index.d.ts +0 -7
- package/lib/components/pisellEmail/types.d.ts +0 -176
- package/lib/components/pisellEmail/utils/emailHelper.d.ts +0 -66
- package/lib/components/pisellEmail/utils/emailValidator.d.ts +0 -45
- package/lib/components/pisellEmail/utils/index.d.ts +0 -6
- package/lib/components/pisellFilter/index.d.ts +0 -3
- package/lib/components/pisellFind/PisellFind.stories.d.ts +0 -45
- package/lib/components/pisellFind/index.d.ts +0 -40
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellLongText/PisellLongText.d.ts +0 -39
- package/lib/components/pisellLongText/PisellLongText.stories.d.ts +0 -123
- package/lib/components/pisellLongText/components/DisabledView.d.ts +0 -16
- package/lib/components/pisellLongText/components/EditView.d.ts +0 -19
- package/lib/components/pisellLongText/components/ReadOnlyView.d.ts +0 -18
- package/lib/components/pisellLongText/index.d.ts +0 -7
- package/lib/components/pisellLongText/types.d.ts +0 -147
- package/lib/components/pisellMetricCard/PisellMetricCard.d.ts +0 -35
- package/lib/components/pisellMetricCard/PisellMetricCard.stories.d.ts +0 -17
- package/lib/components/pisellMetricCard/components/MetricComparison.d.ts +0 -14
- package/lib/components/pisellMetricCard/components/index.d.ts +0 -7
- package/lib/components/pisellMetricCard/index.d.ts +0 -6
- package/lib/components/pisellMetricCard/utils/formatMetricValue.d.ts +0 -34
- package/lib/components/pisellMetricCard/utils/index.d.ts +0 -5
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +0 -70
- package/lib/components/pisellMultipleSelect/components/DisabledView.d.ts +0 -8
- package/lib/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
- package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +0 -8
- package/lib/components/pisellMultipleSelect/index.d.ts +0 -7
- package/lib/components/pisellMultipleSelect/types.d.ts +0 -160
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/lib/components/pisellNumber/PisellNumber.d.ts +0 -42
- package/lib/components/pisellNumber/PisellNumber.stories.d.ts +0 -66
- package/lib/components/pisellNumber/components/DisabledView.d.ts +0 -11
- package/lib/components/pisellNumber/components/EditView.d.ts +0 -18
- package/lib/components/pisellNumber/components/ReadOnlyView.d.ts +0 -16
- package/lib/components/pisellNumber/components/index.d.ts +0 -6
- package/lib/components/pisellNumber/index.d.ts +0 -7
- package/lib/components/pisellNumber/types.d.ts +0 -168
- package/lib/components/pisellPercent/PisellPercent.d.ts +0 -38
- package/lib/components/pisellPercent/PisellPercent.stories.d.ts +0 -52
- package/lib/components/pisellPercent/components/DisabledView.d.ts +0 -11
- package/lib/components/pisellPercent/components/EditView.d.ts +0 -17
- package/lib/components/pisellPercent/components/ReadOnlyView.d.ts +0 -14
- package/lib/components/pisellPercent/components/index.d.ts +0 -6
- package/lib/components/pisellPercent/index.d.ts +0 -7
- package/lib/components/pisellPercent/types.d.ts +0 -68
- package/lib/components/pisellPercent/utils/index.d.ts +0 -6
- package/lib/components/pisellPercent/utils/percentFormatter.d.ts +0 -27
- package/lib/components/pisellPhone/PisellPhone.d.ts +0 -36
- package/lib/components/pisellPhone/PisellPhone.stories.d.ts +0 -80
- package/lib/components/pisellPhone/components/DisabledView.d.ts +0 -16
- package/lib/components/pisellPhone/components/EditView.d.ts +0 -19
- package/lib/components/pisellPhone/components/ReadOnlyView.d.ts +0 -17
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +0 -20
- package/lib/components/pisellPhone/index.d.ts +0 -8
- package/lib/components/pisellPhone/types.d.ts +0 -209
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
- package/lib/components/pisellPhone/utils/index.d.ts +0 -6
- package/lib/components/pisellPhone/utils/phoneValidator.d.ts +0 -11
- package/lib/components/pisellRating/PisellRating.d.ts +0 -31
- package/lib/components/pisellRating/PisellRating.stories.d.ts +0 -53
- package/lib/components/pisellRating/index.d.ts +0 -7
- package/lib/components/pisellRating/types.d.ts +0 -124
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -8
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +0 -81
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +0 -3
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +0 -11
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +0 -16
- package/lib/components/pisellRecordBoard/index.d.ts +0 -35
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +0 -12
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +0 -13
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +0 -13
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +0 -15
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +0 -26
- package/lib/components/pisellRecordBoard/types.d.ts +0 -315
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -41
- package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +0 -9
- package/lib/components/pisellRow/index.d.ts +0 -22
- package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
- package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +0 -102
- package/lib/components/pisellSingleLineText/components/DisabledView.d.ts +0 -16
- package/lib/components/pisellSingleLineText/components/EditView.d.ts +0 -19
- package/lib/components/pisellSingleLineText/components/ReadOnlyView.d.ts +0 -20
- package/lib/components/pisellSingleLineText/index.d.ts +0 -7
- package/lib/components/pisellSingleLineText/types.d.ts +0 -139
- package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
- package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +0 -66
- package/lib/components/pisellSingleSelect/components/DisabledView.d.ts +0 -8
- package/lib/components/pisellSingleSelect/components/EditView.d.ts +0 -8
- package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +0 -8
- package/lib/components/pisellSingleSelect/index.d.ts +0 -7
- package/lib/components/pisellSingleSelect/types.d.ts +0 -92
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellText/components/Editable/index.d.ts +0 -32
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +0 -61
- package/lib/components/pisellTimeRangeDisplay/components/DateBlock.d.ts +0 -20
- package/lib/components/pisellTimeRangeDisplay/components/DurationBlock.d.ts +0 -19
- package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -30
- package/lib/components/pisellTimeRangeDisplay/components/WeekdayBlock.d.ts +0 -18
- package/lib/components/pisellTimeRangeDisplay/components/index.d.ts +0 -8
- package/lib/components/pisellTimeRangeDisplay/index.d.ts +0 -3
- package/lib/components/pisellTimeRangeDisplay/utils/index.d.ts +0 -4
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellUrl/PisellUrl.d.ts +0 -37
- package/lib/components/pisellUrl/PisellUrl.stories.d.ts +0 -108
- package/lib/components/pisellUrl/components/DisabledView.d.ts +0 -14
- package/lib/components/pisellUrl/components/EditView.d.ts +0 -15
- package/lib/components/pisellUrl/components/ReadOnlyView.d.ts +0 -15
- package/lib/components/pisellUrl/index.d.ts +0 -7
- package/lib/components/pisellUrl/types.d.ts +0 -160
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -29
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -8
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
- package/lib/components/productCard/components/Time/index.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/utils.d.ts +0 -33
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/BasicTable/index.d.ts +0 -3
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -167
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/translation/index.d.ts +0 -18
- package/lib/components/versionModal/index.d.ts +0 -24
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/walletCard/index.d.ts +0 -79
- package/lib/index.d.ts +0 -243
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 从 @pisell/utils 重新导出公共类型
|
|
4
|
-
*/
|
|
5
|
-
export type { DisplayState } from '@pisell/utils';
|
|
6
|
-
/**
|
|
7
|
-
* PisellRating 组件 Props 类型定义
|
|
8
|
-
*
|
|
9
|
-
* 基于 Ant Design Rate 组件,独立实现
|
|
10
|
-
*/
|
|
11
|
-
export interface PisellRatingProps {
|
|
12
|
-
/**
|
|
13
|
-
* 显示模式
|
|
14
|
-
* @default 'edit'
|
|
15
|
-
*/
|
|
16
|
-
mode?: 'read' | 'edit';
|
|
17
|
-
/**
|
|
18
|
-
* 是否禁用
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* 当前评分值(受控)
|
|
24
|
-
*/
|
|
25
|
-
value?: number;
|
|
26
|
-
/**
|
|
27
|
-
* 默认评分值(非受控)
|
|
28
|
-
*/
|
|
29
|
-
defaultValue?: number;
|
|
30
|
-
/**
|
|
31
|
-
* 评分变更回调
|
|
32
|
-
*/
|
|
33
|
-
onChange?: (value: number) => void;
|
|
34
|
-
/**
|
|
35
|
-
* 星星数量
|
|
36
|
-
* @default 5
|
|
37
|
-
*/
|
|
38
|
-
count?: number;
|
|
39
|
-
/**
|
|
40
|
-
* 最大评分值(同 count,为了与 Number 系列保持一致)
|
|
41
|
-
* @default 5
|
|
42
|
-
*/
|
|
43
|
-
max?: number;
|
|
44
|
-
/**
|
|
45
|
-
* 是否允许半星评分
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
|
-
allowHalf?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* 是否允许清除评分
|
|
51
|
-
* @default true
|
|
52
|
-
*/
|
|
53
|
-
allowClear?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* 自定义字符
|
|
56
|
-
* @default StarFilled
|
|
57
|
-
*/
|
|
58
|
-
character?: ReactNode | ((props: {
|
|
59
|
-
index: number;
|
|
60
|
-
value: number;
|
|
61
|
-
}) => ReactNode);
|
|
62
|
-
/**
|
|
63
|
-
* 评分描述文本数组
|
|
64
|
-
* @example ['很差', '差', '一般', '好', '很好']
|
|
65
|
-
*/
|
|
66
|
-
tooltips?: string[];
|
|
67
|
-
/**
|
|
68
|
-
* 是否显示数值文本
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
|
-
showValue?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* 是否显示评分人数
|
|
74
|
-
* @default false
|
|
75
|
-
*/
|
|
76
|
-
showCount?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* 评分人数
|
|
79
|
-
*/
|
|
80
|
-
reviewCount?: number;
|
|
81
|
-
/**
|
|
82
|
-
* 星星尺寸(仅影响样式)
|
|
83
|
-
* @default 20
|
|
84
|
-
*/
|
|
85
|
-
size?: number;
|
|
86
|
-
/**
|
|
87
|
-
* 星星颜色(已选中)
|
|
88
|
-
* @default '#fadb14'
|
|
89
|
-
*/
|
|
90
|
-
color?: string;
|
|
91
|
-
/**
|
|
92
|
-
* 星星颜色(未选中)
|
|
93
|
-
* @default '#d9d9d9'
|
|
94
|
-
*/
|
|
95
|
-
unselectedColor?: string;
|
|
96
|
-
/**
|
|
97
|
-
* 悬停评分值变化回调
|
|
98
|
-
*/
|
|
99
|
-
onHoverChange?: (value: number) => void;
|
|
100
|
-
/**
|
|
101
|
-
* 聚焦回调
|
|
102
|
-
*/
|
|
103
|
-
onFocus?: () => void;
|
|
104
|
-
/**
|
|
105
|
-
* 失焦回调
|
|
106
|
-
*/
|
|
107
|
-
onBlur?: () => void;
|
|
108
|
-
/**
|
|
109
|
-
* 自定义类名
|
|
110
|
-
*/
|
|
111
|
-
className?: string;
|
|
112
|
-
/**
|
|
113
|
-
* 自定义样式
|
|
114
|
-
*/
|
|
115
|
-
style?: CSSProperties;
|
|
116
|
-
/**
|
|
117
|
-
* ARIA 标签
|
|
118
|
-
*/
|
|
119
|
-
'aria-label'?: string;
|
|
120
|
-
/**
|
|
121
|
-
* HTML id 属性
|
|
122
|
-
*/
|
|
123
|
-
id?: string;
|
|
124
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RecordBoardProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* RecordBoard 容器:提供统一的 data / pagination / search 上下文。
|
|
5
|
-
* 仅接受打散 props:列表/分页/搜索/多选/列显隐、以及 grid/toolBar/search/paginationConfig/batchActionBar/cardList。
|
|
6
|
-
*/
|
|
7
|
-
declare const PisellRecordBoard: React.FC<RecordBoardProps>;
|
|
8
|
-
export default PisellRecordBoard;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import PisellRecordBoard from './index';
|
|
3
|
-
declare const meta: Meta<typeof PisellRecordBoard>;
|
|
4
|
-
export default meta;
|
|
5
|
-
declare type Story = StoryObj<typeof PisellRecordBoard>;
|
|
6
|
-
/**
|
|
7
|
-
* Grid 布局 - 带 Table、分页、多选;列 type 驱动列/筛选/排序;筛选在 Filter 弹层内;重置清空筛选与排序。
|
|
8
|
-
*/
|
|
9
|
-
export declare const GridLayoutWithTable: Story;
|
|
10
|
-
/**
|
|
11
|
-
* Grid 布局 - 多页分页示例(至少 25 页:250 条数据,每页 10 条)
|
|
12
|
-
*/
|
|
13
|
-
export declare const GridWithMultiplePages: Story;
|
|
14
|
-
/**
|
|
15
|
-
* Grid 布局 - 同值列折叠:当前页某列全部同值或全部为空时,该列隐藏并在表格上方展示总结区(列名 + 统一值/空数据)。
|
|
16
|
-
*/
|
|
17
|
-
export declare const GridLayoutWithCollapseUniformColumns: Story;
|
|
18
|
-
/**
|
|
19
|
-
* Grid 布局 - uniformCompare 示例:列值为对象时,用 uniformCompare(value, record) 返回用于比较的 string/number,全同则折叠。
|
|
20
|
-
*/
|
|
21
|
-
export declare const GridLayoutWithUniformCompare: Story;
|
|
22
|
-
/**
|
|
23
|
-
* Grid 布局 - grid 透传 antd Table props:onRow(行点击)、rowClassName 等
|
|
24
|
-
*/
|
|
25
|
-
export declare const GridWithOnRow: Story;
|
|
26
|
-
/**
|
|
27
|
-
* Grid 布局 - 与 GridLayoutWithTable 类似,列 type 驱动列/筛选/排序,筛选在弹层内。
|
|
28
|
-
*/
|
|
29
|
-
export declare const GridLayoutWithColumnType: Story;
|
|
30
|
-
/**
|
|
31
|
-
* Grid 布局 - ToolBar 内直接配置 sort 与 filter(不依赖列派生)
|
|
32
|
-
* toolBar.sort 用 getSortItems 手动配置选项,toolBar.filter 传 { defaultFilterValue }。
|
|
33
|
-
*/
|
|
34
|
-
export declare const GridLayoutToolBarSortAndFilter: Story;
|
|
35
|
-
/**
|
|
36
|
-
* Grid 布局 - 快速筛选在 ToolBar 左侧内联展示(toolBar.quickFilter: true),右侧筛选弹层仅保留高级筛选。
|
|
37
|
-
*/
|
|
38
|
-
export declare const GridLayoutWithQuickFilterOnLeft: Story;
|
|
39
|
-
/**
|
|
40
|
-
* 自定义左侧快速筛选 + Filter 弹层(高级筛选)+ 列自定义 render
|
|
41
|
-
*/
|
|
42
|
-
export declare const CustomQuickFilterAndColumnsRender: Story;
|
|
43
|
-
/**
|
|
44
|
-
* 自定义 filter、自定义 sort、自定义 render
|
|
45
|
-
* 展示列上显式配置:筛选(订单状态 single 在高级筛选、下单时间 rangePickerNew + 自定义 placeholder/width 在快筛)、
|
|
46
|
-
* 排序(订单状态无 type,用 sort.getSortItems 自定义「状态 A-Z / Z-A」)、
|
|
47
|
-
* 以及列的自定义 render(订单号加粗蓝色、状态标签、买家加粗)。
|
|
48
|
-
*/
|
|
49
|
-
export declare const CustomFilterSortRender: Story;
|
|
50
|
-
/**
|
|
51
|
-
* Grid 布局 - ToolBar 内使用 PisellFind(toolBar.search: true)
|
|
52
|
-
*/
|
|
53
|
-
export declare const GridLayoutWithPisellFindInToolBar: Story;
|
|
54
|
-
/**
|
|
55
|
-
* Grid 布局 - ToolBar 内 PisellFind 透传(toolBar.search: { triggerType: 'input' })
|
|
56
|
-
*/
|
|
57
|
-
export declare const GridLayoutToolBarSearchInput: Story;
|
|
58
|
-
/**
|
|
59
|
-
* Grid 布局 - 完整示例(表格 + 多选 + BatchActionBar 批量操作)
|
|
60
|
-
*/
|
|
61
|
-
export declare const GridLayoutFull: Story;
|
|
62
|
-
/**
|
|
63
|
-
* 占位 / 设计态(不传 value,无数据源)
|
|
64
|
-
*/
|
|
65
|
-
export declare const Placeholder: Story;
|
|
66
|
-
/**
|
|
67
|
-
* Card 布局占位
|
|
68
|
-
*/
|
|
69
|
-
export declare const CardLayoutPlaceholder: Story;
|
|
70
|
-
/**
|
|
71
|
-
* 自定义组合:单独挂 ToolBar / BatchActionBar / Grid / Pagination
|
|
72
|
-
*/
|
|
73
|
-
export declare const CustomComposition: Story;
|
|
74
|
-
/**
|
|
75
|
-
* 使用 PisellFind 搜索槽:Search(PisellFind)+ ToolBar + Grid + Pagination
|
|
76
|
-
*/
|
|
77
|
-
export declare const WithPisellFindSearch: Story;
|
|
78
|
-
/**
|
|
79
|
-
* 仅 Search + Grid + 分页(无 ToolBar)
|
|
80
|
-
*/
|
|
81
|
-
export declare const SearchAndGridOnly: Story;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import type { RecordBoardContextValue } from '../types';
|
|
3
|
-
export interface RecordBoardProviderProps {
|
|
4
|
-
value: RecordBoardContextValue;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 仅负责注入 RecordBoard 上下文。
|
|
9
|
-
* 实际的数据源、onSearch/onPageChange 由上层(如接 DataSourceContainer 或独立 fetch)提供。
|
|
10
|
-
*/
|
|
11
|
-
export declare const RecordBoardProvider: React.FC<RecordBoardProviderProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { RecordBoardContextValue, RecordBoardChildComponentProps, RecordBoardGridProps } from '../types';
|
|
2
|
-
export interface UseRecordBoardContextOptions {
|
|
3
|
-
/** 子组件 displayName,用于从 childComponentProps 中取对应 props */
|
|
4
|
-
displayName?: keyof RecordBoardChildComponentProps;
|
|
5
|
-
/** 上层传入的 childComponentProps(若 Context 未提供则从参数传入) */
|
|
6
|
-
childComponentProps?: RecordBoardChildComponentProps;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 消费 RecordBoard 上下文,供各 layout 内子组件(Search / ToolBar / Grid / CardList / Pagination)使用。
|
|
10
|
-
* 若传入 displayName,返回会合并 childComponentProps[displayName] 便于透传。
|
|
11
|
-
* 当 displayName 为 'grid' 时,返回类型包含 RecordBoardGridProps(columns、scroll、size)。
|
|
12
|
-
*/
|
|
13
|
-
export declare function useRecordBoardContext(options: UseRecordBoardContextOptions & {
|
|
14
|
-
displayName: 'grid';
|
|
15
|
-
}): RecordBoardContextValue & RecordBoardGridProps;
|
|
16
|
-
export declare function useRecordBoardContext(options?: UseRecordBoardContextOptions): RecordBoardContextValue;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import GridLayout from './layouts/GridLayout';
|
|
3
|
-
import CardLayout from './layouts/CardLayout';
|
|
4
|
-
import RecordBoardShellFrame, { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch } from './shellFrame';
|
|
5
|
-
import RecordBoardGridView from './layouts/GridLayout/Grid';
|
|
6
|
-
import RecordBoardCardList from './layouts/CardLayout/CardList';
|
|
7
|
-
import { useRecordBoardContext } from './hooks/useRecordBoardContext';
|
|
8
|
-
import type { RecordBoardProps } from './types';
|
|
9
|
-
/** RecordBoard 复合组件类型 */
|
|
10
|
-
interface PisellRecordBoardType extends React.FC<RecordBoardProps> {
|
|
11
|
-
/** Shell Frame:对 Layout 的扩展,提供 ToolBar + BatchActionBar + children(Layout) */
|
|
12
|
-
ShellFrame: typeof RecordBoardShellFrame;
|
|
13
|
-
/** Grid 布局:仅内容区(表格 + 分页),需配合 ShellFrame 使用 */
|
|
14
|
-
GridLayout: typeof GridLayout;
|
|
15
|
-
/** 卡片布局:仅内容区(卡片列表 + 分页),需配合 ShellFrame 使用 */
|
|
16
|
-
CardLayout: typeof CardLayout;
|
|
17
|
-
/** 单独使用:搜索槽(PisellFind,绑定 searchParams.keyword / onSearch) */
|
|
18
|
-
Search: typeof RecordBoardSearch;
|
|
19
|
-
/** 单独使用:工具栏(PisellToolBar,含搜索/导出,可透传 topLeft/topRight 等) */
|
|
20
|
-
ToolBar: typeof RecordBoardToolBar;
|
|
21
|
-
/** 单独使用:分页槽 */
|
|
22
|
-
Pagination: typeof RecordBoardPagination;
|
|
23
|
-
/** 单独使用:Grid 视图(表格) */
|
|
24
|
-
Grid: typeof RecordBoardGridView;
|
|
25
|
-
/** 单独使用:卡片列表视图 */
|
|
26
|
-
CardList: typeof RecordBoardCardList;
|
|
27
|
-
/** 多选操作栏(基于 PisellBatchActionBar,有选中项时展示) */
|
|
28
|
-
BatchActionBar: typeof RecordBoardBatchActionBar;
|
|
29
|
-
/** 消费 RecordBoard 上下文 */
|
|
30
|
-
useRecordBoardContext: typeof useRecordBoardContext;
|
|
31
|
-
}
|
|
32
|
-
declare const PisellRecordBoard: PisellRecordBoardType;
|
|
33
|
-
export default PisellRecordBoard;
|
|
34
|
-
export type { RecordBoardProps, RecordBoardLayoutType, RecordBoardContextValue, RecordBoardChildComponentProps, RecordBoardGridProps, RecordBoardColumnType, RecordBoardFieldType, RecordBoardColumnFilterConfig, RecordBoardOptionItem, RecordBoardGetOptions, } from './types';
|
|
35
|
-
export { useRecordBoardContext } from './hooks/useRecordBoardContext';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RecordBoardContextValue } from '../../types';
|
|
3
|
-
export interface RecordBoardCardListProps extends Partial<Pick<RecordBoardContextValue, 'data' | 'loading'>> {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
render?: (ctx: RecordBoardContextValue) => React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Card 布局下的数据视图:从 context 取 data / loading。
|
|
10
|
-
*/
|
|
11
|
-
declare const RecordBoardCardList: React.FC<RecordBoardCardListProps>;
|
|
12
|
-
export default RecordBoardCardList;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import RecordBoardCardList from './CardList';
|
|
3
|
-
/**
|
|
4
|
-
* Card 布局:仅内容区 = 卡片列表(不含分页)。
|
|
5
|
-
* 工具栏、多选操作栏、分页由 Shell Frame 提供,使用时用 ShellFrame 包裹:
|
|
6
|
-
* <PisellRecordBoard.ShellFrame><PisellRecordBoard.CardLayout /></PisellRecordBoard.ShellFrame>
|
|
7
|
-
*/
|
|
8
|
-
declare const CardLayout: React.FC<{
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}>;
|
|
12
|
-
export default CardLayout;
|
|
13
|
-
export { RecordBoardCardList as CardLayoutCardList };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TableProps } from 'antd';
|
|
3
|
-
import type { RecordBoardContextValue } from '../../types';
|
|
4
|
-
import './Grid.less';
|
|
5
|
-
export interface RecordBoardGridViewProps extends Omit<TableProps<any>, 'dataSource' | 'loading' | 'pagination'>, Partial<Pick<RecordBoardContextValue, 'data' | 'loading'>> {
|
|
6
|
-
/** 列配置,同 antd Table columns */
|
|
7
|
-
columns?: TableProps<any>['columns'];
|
|
8
|
-
className?: string;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
/** 自定义渲染,传入后不再使用内置 Table */
|
|
11
|
-
render?: (ctx: RecordBoardContextValue) => React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare const RecordBoardGridView: React.FC<RecordBoardGridViewProps>;
|
|
14
|
-
export default RecordBoardGridView;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import RecordBoardGridView from './Grid';
|
|
3
|
-
/**
|
|
4
|
-
* Grid 布局:仅内容区 = 表格(不含分页)。
|
|
5
|
-
* 工具栏、多选操作栏、分页由 Shell Frame 提供,使用时用 ShellFrame 包裹:
|
|
6
|
-
* <PisellRecordBoard.ShellFrame><PisellRecordBoard.GridLayout /></PisellRecordBoard.ShellFrame>
|
|
7
|
-
*/
|
|
8
|
-
declare const GridLayout: React.FC<{
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}>;
|
|
12
|
-
export default GridLayout;
|
|
13
|
-
export { RecordBoardGridView as GridLayoutGrid };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PisellBatchActionBarProps } from '../../../pisellBatchActionBar';
|
|
3
|
-
/**
|
|
4
|
-
* RecordBoard 下的多选操作栏:从 context 取选中态与数据,渲染 PisellBatchActionBar。
|
|
5
|
-
* 仅在有选中项时展示;全选/反选/清空基于当前页 data。
|
|
6
|
-
*/
|
|
7
|
-
declare const RecordBoardBatchActionBar: React.FC<Partial<PisellBatchActionBarProps>>;
|
|
8
|
-
export default RecordBoardBatchActionBar;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 列显示隐藏弹层内容:显隐切换 + 拖拽排序(参考 table Actions ColumnsSetting PopoverContent)。
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { RecordBoardColumnType } from '../../types';
|
|
6
|
-
export interface ColumnSettingPopoverProps {
|
|
7
|
-
columns: RecordBoardColumnType[];
|
|
8
|
-
columnVisibility: Record<string, boolean>;
|
|
9
|
-
onColumnVisibilityChange: (visibility: Record<string, boolean>) => void;
|
|
10
|
-
/** 列 key 顺序(拖拽排序后持久化);未传则按 columns 顺序 */
|
|
11
|
-
columnOrder?: string[] | null;
|
|
12
|
-
onColumnOrderChange?: (columnKeys: string[]) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const ColumnSettingPopover: React.FC<ColumnSettingPopoverProps>;
|
|
15
|
-
export default ColumnSettingPopover;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
import type { RecordBoardContextValue } from '../../types';
|
|
4
|
-
export interface RecordBoardPaginationProps extends Partial<Pick<RecordBoardContextValue, 'pagination' | 'total' | 'onPageChange' | 'loading'>> {
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
render?: (ctx: RecordBoardContextValue) => React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* RecordBoard 下的分页:接入 packages/materials 的 Pagination,从 context 取 pagination / total / onPageChange;可透传 childComponentProps.pagination。
|
|
11
|
-
* 当 context 中 pagination 缺失时使用默认分页,避免在 Storybook 或未完整注入 context 时报错。
|
|
12
|
-
*/
|
|
13
|
-
declare const RecordBoardPagination: React.FC<RecordBoardPaginationProps>;
|
|
14
|
-
export default RecordBoardPagination;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface RecordBoardSearchProps {
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* RecordBoard 下的独立搜索槽:使用 PisellFind,绑定 context.searchParams.keyword 与 onSearch。
|
|
7
|
-
* 可通过 childComponentProps.search 透传 PisellFind 的 props。
|
|
8
|
-
*/
|
|
9
|
-
declare const RecordBoardSearch: React.FC<RecordBoardSearchProps>;
|
|
10
|
-
export default RecordBoardSearch;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FilterItemProps } from '../../../filter/types';
|
|
3
|
-
export interface ToolBarQuickFilterProps {
|
|
4
|
-
/** 快速筛选项列表(与 Filter 的 quickFilter 同结构),不传则从 columns 派生时由父级传入 */
|
|
5
|
-
filterList?: FilterItemProps[];
|
|
6
|
-
/** 表单字段前缀,与 PisellFilter 保持一致,默认 '' */
|
|
7
|
-
formFiltersPrefix?: string;
|
|
8
|
-
/** 表单项尺寸 */
|
|
9
|
-
size?: 'small' | 'middle' | 'large';
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* RecordBoard 工具栏左侧内联快速筛选:将 quickFilter 直接展示在 ToolBar 左侧,不放入 Filter 弹层。
|
|
13
|
-
* 与 searchParams.filter 联动,变更写入 searchParams.filter.values 并触发 onSearch。
|
|
14
|
-
* 启用时建议 ToolBar 对 PisellFilter 传 hiddenQuickFilter: true,仅保留高级筛选在弹层内。
|
|
15
|
-
*/
|
|
16
|
-
declare const ToolBarQuickFilter: React.FC<ToolBarQuickFilterProps>;
|
|
17
|
-
export default ToolBarQuickFilter;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface ToolBarResetProps {
|
|
4
|
-
/** 按钮尺寸,与 antd Button 一致,默认与筛选按钮对齐为 large */
|
|
5
|
-
size?: 'small' | 'middle' | 'large';
|
|
6
|
-
/** 按钮类型 */
|
|
7
|
-
type?: 'default' | 'primary' | 'link' | 'text';
|
|
8
|
-
/** 按钮文案,默认使用多语言「重置」 */
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* RecordBoard 工具栏重置按钮:清空筛选与排序并刷新表格。
|
|
13
|
-
* 点击后以空 filter.values、清空 sort 调用 onSearch,并调用 onReset(若提供)。
|
|
14
|
-
*/
|
|
15
|
-
declare const ToolBarReset: React.FC<ToolBarResetProps>;
|
|
16
|
-
export default ToolBarReset;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import RecordBoardToolBar from './ToolBar';
|
|
3
|
-
import RecordBoardBatchActionBar from './BatchActionBar';
|
|
4
|
-
import RecordBoardPagination from './Pagination';
|
|
5
|
-
import RecordBoardSearch from './Search';
|
|
6
|
-
import ToolBarReset from './ToolBarReset';
|
|
7
|
-
import ToolBarQuickFilter from './ToolBarQuickFilter';
|
|
8
|
-
/**
|
|
9
|
-
* Shell Frame:基于 PisellShellFrame 的 RecordBoard 壳层。
|
|
10
|
-
* 提供工具栏、多选操作条、分页;与 Layout 同级,包裹在 Layout 外层。
|
|
11
|
-
* 默认占满父容器高度,内容区可滚动,分页器固定在底部。
|
|
12
|
-
*
|
|
13
|
-
* 使用方式:
|
|
14
|
-
* <PisellRecordBoard>
|
|
15
|
-
* <PisellRecordBoard.ShellFrame>
|
|
16
|
-
* <PisellRecordBoard.GridLayout />
|
|
17
|
-
* </PisellRecordBoard.ShellFrame>
|
|
18
|
-
* </PisellRecordBoard>
|
|
19
|
-
*/
|
|
20
|
-
declare const RecordBoardShellFrame: React.FC<{
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
className?: string;
|
|
23
|
-
style?: React.CSSProperties;
|
|
24
|
-
}>;
|
|
25
|
-
export default RecordBoardShellFrame;
|
|
26
|
-
export { RecordBoardToolBar, RecordBoardBatchActionBar, RecordBoardPagination, RecordBoardSearch, ToolBarReset, ToolBarQuickFilter, };
|