@pisell/materials 3.3.85 → 3.3.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +6 -6
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +21 -21
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +21 -21
- package/es/components/Pagination/index.d.ts +4 -5
- package/es/components/Pagination/index.js +77 -59
- package/es/components/Pagination/index.less +13 -7
- package/es/components/PisellFields/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +2 -3
- package/es/components/filter/components/Dropdown/index.js +6 -2
- package/es/components/filter/components/FilterButton/index.js +19 -4
- package/es/components/filter/components/FilterButton/types.d.ts +8 -0
- package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
- package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +90 -0
- package/es/components/filter/components/FilterItem/index.d.ts +3 -3
- package/es/components/filter/components/FilterItem/index.js +138 -7
- package/es/components/filter/components/FilterItem/index.less +90 -0
- package/es/components/filter/types.d.ts +4 -2
- package/es/components/pisellBatchActionBar/PisellBatchActionBar.js +38 -29
- package/es/components/pisellCurrency/PisellCurrency.less +163 -25
- package/es/components/pisellCurrency/PisellCurrency.stories.js +1 -1
- package/es/components/pisellCurrency/index.d.ts +2 -1
- package/es/components/pisellCurrency/index.js +16 -1
- package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
- package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +30 -3
- package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
- package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +68 -0
- package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/components/Table/index.js +5 -3
- package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/components/Table/useColumns.js +37 -15
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +21 -15
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
- package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +6 -4
- package/es/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
- package/es/components/pisellDateTimeDisplay/utils/localeUtils.js +15 -4
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.js +4 -2
- package/es/components/pisellEmail/PisellEmail.less +119 -10
- package/es/components/pisellEmail/PisellEmail.stories.js +1 -1
- package/es/components/pisellEmail/index.d.ts +3 -1
- package/es/components/pisellEmail/index.js +17 -1
- package/es/components/pisellFilter/index.js +76 -10
- package/es/components/pisellFind/index.js +11 -2
- package/es/components/pisellGridPro/ToolBar/index.less +23 -0
- package/es/components/pisellGridPro/index.d.ts +4 -0
- package/es/components/pisellLongText/PisellLongText.less +72 -4
- package/es/components/pisellLongText/PisellLongText.stories.js +1 -1
- package/es/components/pisellLongText/index.d.ts +2 -1
- package/es/components/pisellLongText/index.js +16 -1
- package/es/components/pisellLookup/PisellLookup.js +18 -9
- package/es/components/pisellLookup/PisellLookup.less +39 -16
- package/es/components/pisellLookup/components/LookupTrigger.js +14 -4
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
- package/es/components/pisellMultipleSelect/components/EditView.js +8 -2
- package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
- package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +15 -11
- package/es/components/pisellMultipleSelect/index.d.ts +2 -1
- package/es/components/pisellMultipleSelect/index.js +16 -1
- package/es/components/pisellNumber/PisellNumber.less +135 -17
- package/es/components/pisellNumber/PisellNumber.stories.js +1 -1
- package/es/components/pisellNumber/index.d.ts +2 -1
- package/es/components/pisellNumber/index.js +16 -1
- package/es/components/pisellPercent/PisellPercent.less +142 -24
- package/es/components/pisellPercent/PisellPercent.stories.js +1 -1
- package/es/components/pisellPercent/index.d.ts +2 -1
- package/es/components/pisellPercent/index.js +16 -1
- package/es/components/pisellPhone/PisellPhone.less +122 -27
- package/es/components/pisellPhone/PisellPhone.stories.js +1 -1
- package/es/components/pisellPhone/components/EditView.js +1 -1
- package/es/components/pisellPhone/components/ReadOnlyView.js +15 -6
- package/es/components/pisellPhone/index.d.ts +2 -1
- package/es/components/pisellPhone/index.js +16 -1
- package/es/components/pisellRating/PisellRating.less +20 -12
- package/es/components/pisellRating/PisellRating.stories.js +1 -1
- package/es/components/pisellRating/index.d.ts +2 -1
- package/es/components/pisellRating/index.js +16 -1
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +243 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +2358 -0
- package/es/components/pisellRecordBoard/context/RecordBoardContext.js +2 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +13 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +29 -0
- package/es/components/pisellRecordBoard/index.d.ts +35 -0
- package/es/components/pisellRecordBoard/index.js +23 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +36 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +20 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +242 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +20 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +90 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +138 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +66 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +66 -0
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.js +41 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +215 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +77 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +65 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
- package/es/components/pisellRecordBoard/shellFrame/index.js +104 -0
- package/es/components/pisellRecordBoard/types.js +1 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +508 -0
- package/es/components/pisellRecordBoard/utils/withRecordBoard.js +27 -0
- package/es/components/pisellShellFrame/PisellShellFrame.js +107 -0
- package/es/components/pisellShellFrame/PisellShellFrame.less +78 -0
- package/es/components/pisellShellFrame/PisellShellFrame.stories.js +195 -0
- package/es/components/pisellShellFrame/index.js +1 -0
- package/es/components/pisellShellFrame/types.js +1 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
- package/es/components/pisellSingleLineText/index.d.ts +2 -1
- package/es/components/pisellSingleLineText/index.js +16 -1
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
- package/es/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
- package/es/components/pisellSingleSelect/components/EditView.js +8 -2
- package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
- package/es/components/pisellSingleSelect/components/ReadOnlyView.js +10 -6
- package/es/components/pisellSingleSelect/index.d.ts +2 -1
- package/es/components/pisellSingleSelect/index.js +16 -1
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -3
- package/es/components/pisellUrl/PisellUrl.less +120 -11
- package/es/components/pisellUrl/PisellUrl.stories.js +1 -1
- package/es/components/pisellUrl/index.d.ts +3 -1
- package/es/components/pisellUrl/index.js +17 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/select/index.less +18 -2
- package/es/components/sort/index.js +25 -3
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/index.d.ts +6 -2
- package/es/index.js +2 -0
- package/es/locales/en-US.d.ts +36 -0
- package/es/locales/en-US.js +50 -2
- package/es/locales/index.js +2 -2
- package/es/locales/ja.d.ts +2 -0
- package/es/locales/ja.js +2 -0
- package/es/locales/pt.d.ts +2 -0
- package/es/locales/pt.js +2 -0
- package/es/locales/zh-CN.d.ts +36 -0
- package/es/locales/zh-CN.js +54 -6
- package/es/locales/zh-TW.d.ts +36 -0
- package/es/locales/zh-TW.js +54 -6
- package/es/utils/tagColor.js +39 -0
- package/lib/components/Pagination/index.d.ts +4 -5
- package/lib/components/Pagination/index.js +44 -21
- package/lib/components/Pagination/index.less +13 -7
- package/lib/components/PisellFields/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +2 -3
- package/lib/components/filter/components/Dropdown/index.js +9 -2
- package/lib/components/filter/components/FilterButton/index.js +14 -3
- package/lib/components/filter/components/FilterButton/types.d.ts +8 -0
- package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.d.ts +21 -0
- package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
- package/lib/components/filter/components/FilterItem/index.d.ts +3 -3
- package/lib/components/filter/components/FilterItem/index.js +133 -4
- package/lib/components/filter/components/FilterItem/index.less +90 -0
- package/lib/components/filter/types.d.ts +4 -2
- package/lib/components/pisellBatchActionBar/PisellBatchActionBar.js +26 -23
- package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
- package/lib/components/pisellCurrency/PisellCurrency.stories.js +1 -1
- package/lib/components/pisellCurrency/index.d.ts +2 -1
- package/lib/components/pisellCurrency/index.js +7 -0
- package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
- package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +18 -2
- package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +28 -0
- package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +81 -0
- package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/components/Table/index.js +3 -1
- package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/components/Table/useColumns.js +25 -14
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +17 -11
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +2 -1
- package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +7 -1
- package/lib/components/pisellDateTimeDisplay/utils/localeUtils.d.ts +2 -2
- package/lib/components/pisellDateTimeDisplay/utils/localeUtils.js +10 -2
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +1 -0
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.js +2 -1
- package/lib/components/pisellEmail/PisellEmail.less +119 -10
- package/lib/components/pisellEmail/PisellEmail.stories.js +1 -1
- package/lib/components/pisellEmail/index.d.ts +3 -1
- package/lib/components/pisellEmail/index.js +10 -2
- package/lib/components/pisellFilter/index.js +79 -8
- package/lib/components/pisellFind/index.js +11 -2
- package/lib/components/pisellGridPro/ToolBar/index.less +23 -0
- package/lib/components/pisellGridPro/index.d.ts +4 -0
- package/lib/components/pisellLongText/PisellLongText.less +72 -4
- package/lib/components/pisellLongText/PisellLongText.stories.js +1 -1
- package/lib/components/pisellLongText/index.d.ts +2 -1
- package/lib/components/pisellLongText/index.js +7 -0
- package/lib/components/pisellLookup/PisellLookup.js +12 -6
- package/lib/components/pisellLookup/PisellLookup.less +39 -16
- package/lib/components/pisellLookup/components/LookupTrigger.js +9 -3
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +159 -124
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +1 -1
- package/lib/components/pisellMultipleSelect/components/EditView.js +4 -1
- package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +1 -1
- package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +29 -1
- package/lib/components/pisellMultipleSelect/index.d.ts +2 -1
- package/lib/components/pisellMultipleSelect/index.js +7 -0
- package/lib/components/pisellNumber/PisellNumber.less +135 -17
- package/lib/components/pisellNumber/PisellNumber.stories.js +1 -1
- package/lib/components/pisellNumber/index.d.ts +2 -1
- package/lib/components/pisellNumber/index.js +7 -0
- package/lib/components/pisellPercent/PisellPercent.less +142 -24
- package/lib/components/pisellPercent/PisellPercent.stories.js +1 -1
- package/lib/components/pisellPercent/index.d.ts +2 -1
- package/lib/components/pisellPercent/index.js +7 -0
- package/lib/components/pisellPhone/PisellPhone.less +122 -27
- package/lib/components/pisellPhone/PisellPhone.stories.js +1 -1
- package/lib/components/pisellPhone/components/EditView.js +1 -1
- package/lib/components/pisellPhone/components/ReadOnlyView.js +18 -4
- package/lib/components/pisellPhone/index.d.ts +2 -1
- package/lib/components/pisellPhone/index.js +7 -0
- package/lib/components/pisellRating/PisellRating.less +20 -12
- package/lib/components/pisellRating/PisellRating.stories.js +1 -1
- package/lib/components/pisellRating/index.d.ts +2 -1
- package/lib/components/pisellRating/index.js +7 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +8 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +263 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +81 -0
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1673 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +30 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +46 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +47 -0
- package/lib/components/pisellRecordBoard/index.d.ts +35 -0
- package/lib/components/pisellRecordBoard/index.js +59 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +46 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +46 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +264 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +100 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +46 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +108 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +173 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +100 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +90 -0
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +78 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +53 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +112 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +11 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +247 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +93 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +16 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +85 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +26 -0
- package/lib/components/pisellRecordBoard/shellFrame/index.js +137 -0
- package/lib/components/pisellRecordBoard/types.js +17 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +41 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +365 -0
- package/lib/components/pisellRecordBoard/utils/withRecordBoard.js +49 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.js +113 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.less +78 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.stories.js +129 -0
- package/lib/components/pisellShellFrame/index.js +40 -0
- package/lib/components/pisellShellFrame/types.js +17 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.js +1 -1
- package/lib/components/pisellSingleLineText/index.d.ts +2 -1
- package/lib/components/pisellSingleLineText/index.js +7 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +103 -46
- package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.js +1 -1
- package/lib/components/pisellSingleSelect/components/EditView.js +4 -1
- package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +1 -1
- package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +12 -9
- package/lib/components/pisellSingleSelect/index.d.ts +2 -1
- package/lib/components/pisellSingleSelect/index.js +7 -0
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +6 -2
- package/lib/components/pisellUrl/PisellUrl.less +120 -11
- package/lib/components/pisellUrl/PisellUrl.stories.js +1 -1
- package/lib/components/pisellUrl/index.d.ts +3 -1
- package/lib/components/pisellUrl/index.js +10 -2
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/select/index.less +18 -2
- package/lib/components/sort/index.js +13 -3
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.js +6 -0
- package/lib/locales/en-US.d.ts +36 -0
- package/lib/locales/en-US.js +42 -2
- package/lib/locales/index.js +2 -2
- package/lib/locales/ja.d.ts +2 -0
- package/lib/locales/ja.js +2 -0
- package/lib/locales/pt.d.ts +2 -0
- package/lib/locales/pt.js +2 -0
- package/lib/locales/zh-CN.d.ts +36 -0
- package/lib/locales/zh-CN.js +46 -6
- package/lib/locales/zh-TW.d.ts +36 -0
- package/lib/locales/zh-TW.js +46 -6
- package/lib/utils/tagColor.js +60 -0
- package/lowcode/auto-resize-text/meta.ts +1 -1
- package/package.json +3 -3
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/es/components/PisellProcedure/index.d.ts +0 -5
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
- package/es/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
- package/es/components/pisellDateTimeDisplay/types.d.ts +0 -347
- package/es/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
- package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
- package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/es/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
- package/es/components/pisellLookup/components/HotWords.d.ts +0 -7
- package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellLookup/components/SearchHistory.d.ts +0 -7
- package/es/components/pisellLookup/components/SuggestWords.d.ts +0 -7
- package/es/components/pisellLookup/components/index.d.ts +0 -9
- package/es/components/pisellLookup/hooks/index.d.ts +0 -6
- package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
- package/es/components/pisellLookup/index.d.ts +0 -6
- package/es/components/pisellLookup/types.d.ts +0 -666
- package/es/components/pisellLookup/utils/index.d.ts +0 -5
- package/es/components/pisellLookup/utils/trigger.d.ts +0 -42
- package/es/components/pisellSort/type.d.ts +0 -7
- package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -137
- package/es/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
- package/es/components/sort/types.d.ts +0 -20
- package/es/components/virtualInput/index.d.ts +0 -29
- package/es/hooks/useThemeTokens.d.ts +0 -7
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/lib/components/PisellProcedure/index.d.ts +0 -5
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
- package/lib/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
- package/lib/components/pisellDateTimeDisplay/types.d.ts +0 -347
- package/lib/components/pisellDateTimeDisplay/utils/formatTime.d.ts +0 -19
- package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +0 -18
- package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/lib/components/pisellLookup/PisellLookup.stories.d.ts +0 -129
- package/lib/components/pisellLookup/components/HotWords.d.ts +0 -7
- package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +0 -7
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellLookup/components/SearchHistory.d.ts +0 -7
- package/lib/components/pisellLookup/components/SuggestWords.d.ts +0 -7
- package/lib/components/pisellLookup/components/index.d.ts +0 -9
- package/lib/components/pisellLookup/hooks/index.d.ts +0 -6
- package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +0 -48
- package/lib/components/pisellLookup/index.d.ts +0 -6
- package/lib/components/pisellLookup/types.d.ts +0 -666
- package/lib/components/pisellLookup/utils/index.d.ts +0 -5
- package/lib/components/pisellLookup/utils/trigger.d.ts +0 -42
- package/lib/components/pisellSort/type.d.ts +0 -7
- package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -137
- package/lib/components/pisellTimeRangeDisplay/utils/parseTimeRange.d.ts +0 -23
- package/lib/components/sort/types.d.ts +0 -20
- package/lib/components/virtualInput/index.d.ts +0 -29
- package/lib/hooks/useThemeTokens.d.ts +0 -7
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
|
-
import type { Dayjs } from 'dayjs';
|
|
3
|
-
/**
|
|
4
|
-
* 布局方向
|
|
5
|
-
* - horizontal: 水平布局(默认)- 时间在上,日期+星期在下
|
|
6
|
-
* - vertical: 垂直布局 - 时间、日期、星期分别独立成行
|
|
7
|
-
* - inline: 单行布局 - 所有信息横向排列,用分隔符连接
|
|
8
|
-
*/
|
|
9
|
-
export declare type LayoutDirection = 'horizontal' | 'vertical' | 'inline';
|
|
10
|
-
/**
|
|
11
|
-
* 日期顺序
|
|
12
|
-
* - YMD: 年-月-日(如:2026-03-21)
|
|
13
|
-
* - MDY: 月-日-年(如:Mar 21, 2026)
|
|
14
|
-
* - DMY: 日-月-年(如:21 Mar 2026)
|
|
15
|
-
*/
|
|
16
|
-
export declare type DateOrder = 'YMD' | 'MDY' | 'DMY';
|
|
17
|
-
/**
|
|
18
|
-
* 对齐方式
|
|
19
|
-
*/
|
|
20
|
-
export declare type TextAlign = 'left' | 'center' | 'right';
|
|
21
|
-
/**
|
|
22
|
-
* 字段类型
|
|
23
|
-
*/
|
|
24
|
-
export declare type FieldType = 'time' | 'date' | 'weekday';
|
|
25
|
-
/**
|
|
26
|
-
* 时间格式配置
|
|
27
|
-
*/
|
|
28
|
-
export interface TimeFormatConfig {
|
|
29
|
-
/**
|
|
30
|
-
* 是否使用12小时制
|
|
31
|
-
* @default false
|
|
32
|
-
* @example true -> "1:45 PM" | false -> "13:45"
|
|
33
|
-
*/
|
|
34
|
-
use12Hour?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* 是否显示秒
|
|
37
|
-
* @default false
|
|
38
|
-
* @example true -> "13:45:30" | false -> "13:45"
|
|
39
|
-
*/
|
|
40
|
-
showSeconds?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* 小时是否补零
|
|
43
|
-
* @default false
|
|
44
|
-
* @example true -> "01:45 PM" | false -> "1:45 PM"
|
|
45
|
-
*/
|
|
46
|
-
padHour?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* 是否只显示小时
|
|
49
|
-
* @default false
|
|
50
|
-
* @example true -> "13" | false -> "13:45"
|
|
51
|
-
*/
|
|
52
|
-
onlyShowHour?: boolean;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* 日期格式配置
|
|
56
|
-
*/
|
|
57
|
-
export interface DateFormatConfig {
|
|
58
|
-
/**
|
|
59
|
-
* 日期顺序
|
|
60
|
-
* @default 'YMD'
|
|
61
|
-
*/
|
|
62
|
-
order?: DateOrder;
|
|
63
|
-
/**
|
|
64
|
-
* 英文月份是否简写
|
|
65
|
-
* @default true
|
|
66
|
-
* @example true -> "Mar" | false -> "March"
|
|
67
|
-
*/
|
|
68
|
-
shortMonth?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* 英文月份是否数字展示
|
|
71
|
-
* @default false
|
|
72
|
-
* @example true -> "03" | false -> "Mar"
|
|
73
|
-
*/
|
|
74
|
-
numericMonth?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* 中文是否显示"年月日"汉字
|
|
77
|
-
* @default false
|
|
78
|
-
* @example true -> "2026年3月21日" | false -> "2026-03-21"
|
|
79
|
-
*/
|
|
80
|
-
showChineseUnit?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* 分隔符
|
|
83
|
-
* @default '-'
|
|
84
|
-
* @example '-' -> "2026-03-21" | '/' -> "2026/03/21"
|
|
85
|
-
*/
|
|
86
|
-
separator?: string;
|
|
87
|
-
/**
|
|
88
|
-
* 是否显示年
|
|
89
|
-
* @default false
|
|
90
|
-
*/
|
|
91
|
-
showYear?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* 是否显示月
|
|
94
|
-
* @default true
|
|
95
|
-
*/
|
|
96
|
-
showMonth?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* 是否显示日
|
|
99
|
-
* @default true
|
|
100
|
-
*/
|
|
101
|
-
showDay?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* 英文 DMY 时年月之间是否加逗号(如 21 Mar, 2026;false 时为 22 Jan 2025)
|
|
104
|
-
* @default true
|
|
105
|
-
*/
|
|
106
|
-
useCommaBeforeYear?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* 是否在「今天/昨天/明天」时用相对日替换具体日期
|
|
109
|
-
* 开启后:与参考日同天显示「今天」,前一天「昨天」,后一天「明天」;其他日期仍按原格式
|
|
110
|
-
* @default false
|
|
111
|
-
*/
|
|
112
|
-
showRelativeDay?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* 相对日文案覆盖(用于 i18n 或自定义)
|
|
115
|
-
* 不传时按 locale 使用默认:zh 今天/昨天/明天,en Today/Yesterday/Tomorrow
|
|
116
|
-
*/
|
|
117
|
-
relativeDayLabels?: {
|
|
118
|
-
today?: string;
|
|
119
|
-
yesterday?: string;
|
|
120
|
-
tomorrow?: string;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* 星期格式配置
|
|
125
|
-
*/
|
|
126
|
-
export interface WeekdayFormatConfig {
|
|
127
|
-
/**
|
|
128
|
-
* 是否完整展示
|
|
129
|
-
* @default false
|
|
130
|
-
* @example true -> "Saturday" / "星期六" | false -> "Sat" / "周六"
|
|
131
|
-
*/
|
|
132
|
-
full?: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* 是否单字母展示
|
|
135
|
-
* @default false
|
|
136
|
-
* @example true -> "S" / "六" | false -> "Sat" / "周六"
|
|
137
|
-
*/
|
|
138
|
-
singleLetter?: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* 是否在星期后加逗号(用于与日期拼接如 "Sat, 21 Mar, 2026")
|
|
141
|
-
* @default false
|
|
142
|
-
*/
|
|
143
|
-
trailingComma?: boolean;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* 字段配置
|
|
147
|
-
*/
|
|
148
|
-
export interface FieldConfig {
|
|
149
|
-
/**
|
|
150
|
-
* 是否显示时间字段
|
|
151
|
-
* @default true
|
|
152
|
-
*/
|
|
153
|
-
showTime?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* 是否显示日期字段
|
|
156
|
-
* @default true
|
|
157
|
-
*/
|
|
158
|
-
showDate?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* 是否显示星期字段
|
|
161
|
-
* @default true
|
|
162
|
-
*/
|
|
163
|
-
showWeekday?: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* 字段顺序
|
|
166
|
-
* @default ['time', 'date', 'weekday']
|
|
167
|
-
*/
|
|
168
|
-
fieldOrder?: FieldType[];
|
|
169
|
-
/**
|
|
170
|
-
* 单行布局时每段之间的分隔符,按顺序对应字段之间
|
|
171
|
-
* 如 ['date','time','weekday'] 配 inlineSeparators: [' - ', ' '] => "2025-12-31 - 2:00 周四"
|
|
172
|
-
* 不足时用组件 inlineSeparator 补齐
|
|
173
|
-
*/
|
|
174
|
-
inlineSeparators?: string[];
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* 文本样式配置
|
|
178
|
-
*/
|
|
179
|
-
export interface TextStyleConfig {
|
|
180
|
-
/**
|
|
181
|
-
* 字体大小
|
|
182
|
-
* @example 14 | '14px' | '1rem'
|
|
183
|
-
*/
|
|
184
|
-
fontSize?: number | string;
|
|
185
|
-
/**
|
|
186
|
-
* 字体粗细
|
|
187
|
-
* @example 400 | '400' | 'bold'
|
|
188
|
-
*/
|
|
189
|
-
fontWeight?: number | string;
|
|
190
|
-
/**
|
|
191
|
-
* 字体颜色
|
|
192
|
-
* @example '#000' | 'rgba(0, 0, 0, 0.85)'
|
|
193
|
-
*/
|
|
194
|
-
color?: string;
|
|
195
|
-
/**
|
|
196
|
-
* 行高
|
|
197
|
-
* @example 1.5 | '1.5' | '24px'
|
|
198
|
-
*/
|
|
199
|
-
lineHeight?: number | string;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* 容器样式配置
|
|
203
|
-
*/
|
|
204
|
-
export interface ContainerStyleConfig {
|
|
205
|
-
/**
|
|
206
|
-
* 背景色
|
|
207
|
-
* @example '#fff' | 'transparent'
|
|
208
|
-
*/
|
|
209
|
-
background?: string;
|
|
210
|
-
/**
|
|
211
|
-
* 圆角
|
|
212
|
-
* @example 8 | '8px'
|
|
213
|
-
*/
|
|
214
|
-
borderRadius?: number | string;
|
|
215
|
-
/**
|
|
216
|
-
* 边框
|
|
217
|
-
* @example '1px solid #ddd'
|
|
218
|
-
*/
|
|
219
|
-
border?: string;
|
|
220
|
-
/**
|
|
221
|
-
* 阴影
|
|
222
|
-
* @example '0 2px 8px rgba(0, 0, 0, 0.1)'
|
|
223
|
-
*/
|
|
224
|
-
boxShadow?: string;
|
|
225
|
-
/**
|
|
226
|
-
* 内边距
|
|
227
|
-
* @example 16 | '16px' | '16px 24px'
|
|
228
|
-
*/
|
|
229
|
-
padding?: number | string;
|
|
230
|
-
/**
|
|
231
|
-
* 间距(子元素之间的间距)
|
|
232
|
-
* @example 8 | '8px'
|
|
233
|
-
*/
|
|
234
|
-
gap?: number | string;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* 多语言格式预设(日期/时间/星期 + 字段顺序与分隔符)
|
|
238
|
-
* 用于 formatByLocale[locale] 或默认多语言配置
|
|
239
|
-
*/
|
|
240
|
-
export interface DateTimeDisplayFormatPreset {
|
|
241
|
-
dateFormat?: DateFormatConfig;
|
|
242
|
-
timeFormat?: TimeFormatConfig;
|
|
243
|
-
weekdayFormat?: WeekdayFormatConfig;
|
|
244
|
-
fields?: FieldConfig;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* PisellDateTimeDisplay 组件 Props
|
|
248
|
-
*/
|
|
249
|
-
export interface PisellDateTimeDisplayProps {
|
|
250
|
-
/**
|
|
251
|
-
* 布局方向
|
|
252
|
-
* @default 'horizontal'
|
|
253
|
-
*/
|
|
254
|
-
layout?: LayoutDirection;
|
|
255
|
-
/**
|
|
256
|
-
* 文本对齐方式
|
|
257
|
-
* @default 'center'
|
|
258
|
-
*/
|
|
259
|
-
textAlign?: TextAlign;
|
|
260
|
-
/**
|
|
261
|
-
* 字段显示配置
|
|
262
|
-
*/
|
|
263
|
-
fields?: FieldConfig;
|
|
264
|
-
/**
|
|
265
|
-
* 多语言格式配置:按 locale 取对应格式预设,再与下方单项配置合并(单项优先)
|
|
266
|
-
* @example formatByLocale={{ 'zh-cn': { dateFormat: {...}, fields: { fieldOrder: ['date','time','weekday'], inlineSeparators: [' - ', ' '] } }, 'en': {...} }}
|
|
267
|
-
*/
|
|
268
|
-
formatByLocale?: Record<string, Partial<DateTimeDisplayFormatPreset>>;
|
|
269
|
-
/**
|
|
270
|
-
* 时间格式配置
|
|
271
|
-
*/
|
|
272
|
-
timeFormat?: TimeFormatConfig;
|
|
273
|
-
/**
|
|
274
|
-
* 日期格式配置
|
|
275
|
-
*/
|
|
276
|
-
dateFormat?: DateFormatConfig;
|
|
277
|
-
/**
|
|
278
|
-
* 星期格式配置
|
|
279
|
-
*/
|
|
280
|
-
weekdayFormat?: WeekdayFormatConfig;
|
|
281
|
-
/**
|
|
282
|
-
* 自定义格式化字符串(优先级最高,类似 dayjs().format())
|
|
283
|
-
* @example 'YYYY-MM-DD HH:mm:ss' | 'MM/DD/YYYY'
|
|
284
|
-
* @description 当设置此属性时,其他格式化配置将被忽略
|
|
285
|
-
*/
|
|
286
|
-
customFormat?: string;
|
|
287
|
-
/**
|
|
288
|
-
* 单行模式分隔符
|
|
289
|
-
* @default ' · '
|
|
290
|
-
* @example ' | ' | ' - '
|
|
291
|
-
*/
|
|
292
|
-
inlineSeparator?: string;
|
|
293
|
-
/**
|
|
294
|
-
* 容器样式
|
|
295
|
-
*/
|
|
296
|
-
containerStyle?: ContainerStyleConfig;
|
|
297
|
-
/**
|
|
298
|
-
* 时间文本样式
|
|
299
|
-
*/
|
|
300
|
-
timeStyle?: TextStyleConfig;
|
|
301
|
-
/**
|
|
302
|
-
* 日期文本样式
|
|
303
|
-
*/
|
|
304
|
-
dateStyle?: TextStyleConfig;
|
|
305
|
-
/**
|
|
306
|
-
* 星期文本样式
|
|
307
|
-
*/
|
|
308
|
-
weekdayStyle?: TextStyleConfig;
|
|
309
|
-
/**
|
|
310
|
-
* 自定义刷新间隔(毫秒)
|
|
311
|
-
* @description 不设置则根据 showSeconds 自动判断(显示秒=1000ms,否则=60000ms)
|
|
312
|
-
* @example 1000 | 5000 | 60000
|
|
313
|
-
*/
|
|
314
|
-
refreshInterval?: number;
|
|
315
|
-
/**
|
|
316
|
-
* 是否禁用自动刷新
|
|
317
|
-
* @default false
|
|
318
|
-
* @description 设置为 true 时,组件只显示初始时间,不会自动更新
|
|
319
|
-
*/
|
|
320
|
-
disableAutoRefresh?: boolean;
|
|
321
|
-
/**
|
|
322
|
-
* dayjs locale(语言代码)
|
|
323
|
-
* @default 优先使用全局配置(usePisellConfig),其次使用 i18n 当前语言(getCurrentLocale:全局配置 / umi_locale)
|
|
324
|
-
* @example 'zh-CN' | 'zh-HK' | 'en' | 'en-US' | 'ja'
|
|
325
|
-
* @description
|
|
326
|
-
* - 支持标准 BCP 47 语言代码,会自动标准化为 dayjs 兼容格式
|
|
327
|
-
* - 优先级:组件 locale 属性 > PisellConfigProvider 全局配置 > i18n 当前语言
|
|
328
|
-
*/
|
|
329
|
-
locale?: string;
|
|
330
|
-
/**
|
|
331
|
-
* 自定义类名
|
|
332
|
-
*/
|
|
333
|
-
className?: string;
|
|
334
|
-
/**
|
|
335
|
-
* 自定义样式
|
|
336
|
-
*/
|
|
337
|
-
style?: CSSProperties;
|
|
338
|
-
/**
|
|
339
|
-
* 时间更新回调
|
|
340
|
-
* @param currentTime 当前时间(Dayjs 对象)
|
|
341
|
-
*/
|
|
342
|
-
onTimeUpdate?: (currentTime: Dayjs) => void;
|
|
343
|
-
/**
|
|
344
|
-
* 点击回调
|
|
345
|
-
*/
|
|
346
|
-
onClick?: () => void;
|
|
347
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from 'dayjs';
|
|
2
|
-
import type { TimeFormatConfig } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* 格式化时间
|
|
5
|
-
* @param time dayjs 时间对象
|
|
6
|
-
* @param config 时间格式配置
|
|
7
|
-
* @returns 格式化后的时间字符串
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* formatTime(dayjs(), { use12Hour: false, showSeconds: false, padHour: false })
|
|
11
|
-
* // => "13:45"
|
|
12
|
-
*
|
|
13
|
-
* formatTime(dayjs(), { use12Hour: true, showSeconds: false, padHour: true })
|
|
14
|
-
* // => "01:45 PM"
|
|
15
|
-
*
|
|
16
|
-
* formatTime(dayjs(), { use12Hour: false, showSeconds: true, padHour: false })
|
|
17
|
-
* // => "13:45:30"
|
|
18
|
-
*/
|
|
19
|
-
export declare function formatTime(time: Dayjs, config?: TimeFormatConfig): string;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { TimeFormatConfig } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 根据时间格式配置计算刷新间隔
|
|
4
|
-
* @param timeFormat 时间格式配置
|
|
5
|
-
* @returns 刷新间隔(毫秒)
|
|
6
|
-
*
|
|
7
|
-
* @description
|
|
8
|
-
* - 显示秒时:1000ms (1秒刷新一次)
|
|
9
|
-
* - 不显示秒时:60000ms (60秒刷新一次)
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* getRefreshInterval({ showSeconds: true })
|
|
13
|
-
* // => 1000
|
|
14
|
-
*
|
|
15
|
-
* getRefreshInterval({ showSeconds: false })
|
|
16
|
-
* // => 60000
|
|
17
|
-
*/
|
|
18
|
-
export declare function getRefreshInterval(timeFormat?: TimeFormatConfig): number;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { PisellLookup } from './PisellLookup';
|
|
3
|
-
/**
|
|
4
|
-
* PisellLookup 组件 Storybook
|
|
5
|
-
* 搜索交互协议组件,提供统一的搜索入口、状态管理和结果承载能力
|
|
6
|
-
*/
|
|
7
|
-
declare const meta: Meta<typeof PisellLookup>;
|
|
8
|
-
export default meta;
|
|
9
|
-
declare type Story = StoryObj<typeof PisellLookup>;
|
|
10
|
-
/**
|
|
11
|
-
* 基础示例 - Input 触发器 + Inline 展示
|
|
12
|
-
*/
|
|
13
|
-
export declare const Basic: Story;
|
|
14
|
-
/**
|
|
15
|
-
* Input 触发器 - 默认尺寸(Middle)
|
|
16
|
-
*/
|
|
17
|
-
export declare const InputTriggerMiddle: Story;
|
|
18
|
-
/**
|
|
19
|
-
* Input 触发器 - 大号尺寸
|
|
20
|
-
*/
|
|
21
|
-
export declare const InputTriggerLarge: Story;
|
|
22
|
-
/**
|
|
23
|
-
* Button 触发器 + Modal 展示
|
|
24
|
-
*/
|
|
25
|
-
export declare const ButtonTrigger: Story;
|
|
26
|
-
/**
|
|
27
|
-
* Icon 触发器 + Modal 展示
|
|
28
|
-
*/
|
|
29
|
-
export declare const IconTrigger: Story;
|
|
30
|
-
/**
|
|
31
|
-
* Text 触发器 + Modal 展示
|
|
32
|
-
*/
|
|
33
|
-
export declare const TextTrigger: Story;
|
|
34
|
-
/**
|
|
35
|
-
* 自定义触发器 + Modal 展示
|
|
36
|
-
*/
|
|
37
|
-
export declare const CustomTrigger: Story;
|
|
38
|
-
/**
|
|
39
|
-
* Drawer 展示模式
|
|
40
|
-
*/
|
|
41
|
-
export declare const DrawerDisplay: Story;
|
|
42
|
-
/**
|
|
43
|
-
* 搜索历史功能
|
|
44
|
-
*/
|
|
45
|
-
export declare const WithSearchHistory: Story;
|
|
46
|
-
/**
|
|
47
|
-
* 联想词功能
|
|
48
|
-
*/
|
|
49
|
-
export declare const WithSuggestions: Story;
|
|
50
|
-
/**
|
|
51
|
-
* 热门搜索功能
|
|
52
|
-
*/
|
|
53
|
-
export declare const WithHotWords: Story;
|
|
54
|
-
/**
|
|
55
|
-
* 完整功能 - 历史 + 联想词 + 热门搜索
|
|
56
|
-
*/
|
|
57
|
-
export declare const FullFeatures: Story;
|
|
58
|
-
/**
|
|
59
|
-
* 实时搜索模式
|
|
60
|
-
*/
|
|
61
|
-
export declare const RealtimeSearch: Story;
|
|
62
|
-
/**
|
|
63
|
-
* 确认触发模式
|
|
64
|
-
*/
|
|
65
|
-
export declare const ConfirmSearch: Story;
|
|
66
|
-
/**
|
|
67
|
-
* 受控模式示例
|
|
68
|
-
*/
|
|
69
|
-
export declare const Controlled: Story;
|
|
70
|
-
/**
|
|
71
|
-
* 加载状态
|
|
72
|
-
*/
|
|
73
|
-
export declare const Loading: Story;
|
|
74
|
-
/**
|
|
75
|
-
* 禁用状态
|
|
76
|
-
*/
|
|
77
|
-
export declare const Disabled: Story;
|
|
78
|
-
/**
|
|
79
|
-
* Modal 自定义宽度
|
|
80
|
-
*/
|
|
81
|
-
export declare const ModalCustomWidth: Story;
|
|
82
|
-
/**
|
|
83
|
-
* Modal 显示遮罩层
|
|
84
|
-
*/
|
|
85
|
-
export declare const ModalWithMask: Story;
|
|
86
|
-
/**
|
|
87
|
-
* Modal 挂载到容器并使用 100% 宽度
|
|
88
|
-
*/
|
|
89
|
-
export declare const ModalFullWidth: Story;
|
|
90
|
-
/**
|
|
91
|
-
* Drawer 不同方向
|
|
92
|
-
*/
|
|
93
|
-
export declare const DrawerPlacements: Story;
|
|
94
|
-
/**
|
|
95
|
-
* 自定义空状态
|
|
96
|
-
*/
|
|
97
|
-
export declare const CustomEmpty: Story;
|
|
98
|
-
/**
|
|
99
|
-
* 移动端场景
|
|
100
|
-
*/
|
|
101
|
-
export declare const MobileScenario: Story;
|
|
102
|
-
/**
|
|
103
|
-
* 保留搜索内容(默认行为)
|
|
104
|
-
*/
|
|
105
|
-
export declare const PreserveKeyword: Story;
|
|
106
|
-
/**
|
|
107
|
-
* 关闭时清空内容
|
|
108
|
-
*/
|
|
109
|
-
export declare const ClearOnClose: Story;
|
|
110
|
-
/**
|
|
111
|
-
* 隐藏 Lookup 按钮(输入即搜索)
|
|
112
|
-
*/
|
|
113
|
-
export declare const NoConfirmButton: Story;
|
|
114
|
-
/**
|
|
115
|
-
* 监听打开和关闭事件
|
|
116
|
-
*/
|
|
117
|
-
export declare const WithOpenCloseEvents: Story;
|
|
118
|
-
/**
|
|
119
|
-
* 使用 Ref 控制
|
|
120
|
-
*/
|
|
121
|
-
export declare const WithRef: Story;
|
|
122
|
-
/**
|
|
123
|
-
* 仅触发搜索(不展示结果)
|
|
124
|
-
*/
|
|
125
|
-
export declare const OnlyTriggerSearch: Story;
|
|
126
|
-
/**
|
|
127
|
-
* Playground - 自由配置
|
|
128
|
-
*/
|
|
129
|
-
export declare const Playground: Story;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 子组件统一导出
|
|
3
|
-
*/
|
|
4
|
-
export { SearchHistory } from './SearchHistory';
|
|
5
|
-
export { SuggestWords } from './SuggestWords';
|
|
6
|
-
export { HotWords } from './HotWords';
|
|
7
|
-
export { LookupAuxiliary } from './LookupAuxiliary';
|
|
8
|
-
export { LookupTrigger } from './LookupTrigger';
|
|
9
|
-
export { LookupResultHost } from './LookupResultHost';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 搜索历史管理 Hook
|
|
3
|
-
*/
|
|
4
|
-
export interface UseSearchHistoryOptions {
|
|
5
|
-
/**
|
|
6
|
-
* 存储 key
|
|
7
|
-
*/
|
|
8
|
-
historyKey: string;
|
|
9
|
-
/**
|
|
10
|
-
* 最大历史记录数量
|
|
11
|
-
*/
|
|
12
|
-
maxHistoryCount: number;
|
|
13
|
-
/**
|
|
14
|
-
* 自定义加载历史记录函数
|
|
15
|
-
*/
|
|
16
|
-
onLoadHistory?: () => string[];
|
|
17
|
-
/**
|
|
18
|
-
* 自定义保存历史记录函数
|
|
19
|
-
*/
|
|
20
|
-
onSaveHistory?: (history: string[]) => void;
|
|
21
|
-
}
|
|
22
|
-
export interface UseSearchHistoryResult {
|
|
23
|
-
/**
|
|
24
|
-
* 历史记录数组
|
|
25
|
-
*/
|
|
26
|
-
history: string[];
|
|
27
|
-
/**
|
|
28
|
-
* 添加历史记录
|
|
29
|
-
*/
|
|
30
|
-
addHistory: (keyword: string) => void;
|
|
31
|
-
/**
|
|
32
|
-
* 删除历史记录
|
|
33
|
-
*/
|
|
34
|
-
removeHistory: (keyword: string) => void;
|
|
35
|
-
/**
|
|
36
|
-
* 清除全部历史记录
|
|
37
|
-
*/
|
|
38
|
-
clearAllHistory: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* 重新加载历史记录
|
|
41
|
-
*/
|
|
42
|
-
reloadHistory: () => void;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* 搜索历史管理 Hook
|
|
46
|
-
* 支持自定义存储逻辑
|
|
47
|
-
*/
|
|
48
|
-
export declare const useSearchHistory: (options: UseSearchHistoryOptions) => UseSearchHistoryResult;
|