@pisell/materials 3.3.85 → 3.3.87
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/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +7 -7
- 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/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- 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/pisellWalletPassCard/index.js +1 -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/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/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/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +7 -7
- 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/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- 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/pisellWalletPassCard/index.js +9 -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/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/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/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/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/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/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
|
@@ -132,8 +132,11 @@
|
|
|
132
132
|
|
|
133
133
|
// ============ Input 样式覆盖 ============
|
|
134
134
|
|
|
135
|
-
// 覆盖 Ant Design Input
|
|
136
|
-
|
|
135
|
+
// 覆盖 Ant Design Input 默认样式(适用于所有尺寸);默认高度 50px
|
|
136
|
+
// 同时匹配 ant- / pisell-lowcode- 前缀,确保有无 prefixCls 都能生效
|
|
137
|
+
&-trigger-input.pisell-lowcode-input-affix-wrapper,
|
|
138
|
+
&-trigger-input.ant-input-affix-wrapper {
|
|
139
|
+
min-height: 50px;
|
|
137
140
|
border: 1px solid #d0d5dd;
|
|
138
141
|
border-radius: 8px;
|
|
139
142
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
@@ -145,13 +148,15 @@
|
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
&:focus,
|
|
148
|
-
&.pisell-lowcode-input-affix-wrapper-focused
|
|
151
|
+
&.pisell-lowcode-input-affix-wrapper-focused,
|
|
152
|
+
&.ant-input-affix-wrapper-focused {
|
|
149
153
|
border-color: #7f56d9;
|
|
150
154
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05), 0 0 0 2px rgba(127, 86, 217, 0.1);
|
|
151
155
|
}
|
|
152
156
|
|
|
153
|
-
// Input
|
|
154
|
-
.pisell-lowcode-input
|
|
157
|
+
// Input 文本样式(antd 内部 input 类名可能为 .ant-input 或 .pisell-lowcode-input)
|
|
158
|
+
.pisell-lowcode-input,
|
|
159
|
+
.ant-input {
|
|
155
160
|
color: #000000;
|
|
156
161
|
font-size: 16px;
|
|
157
162
|
line-height: 24px;
|
|
@@ -164,8 +169,9 @@
|
|
|
164
169
|
}
|
|
165
170
|
}
|
|
166
171
|
|
|
167
|
-
//
|
|
168
|
-
&-trigger-input.pisell-lowcode-input-affix-wrapper-sm
|
|
172
|
+
// 小号输入框(同时匹配 ant- / pisell-lowcode-)
|
|
173
|
+
&-trigger-input.pisell-lowcode-input-affix-wrapper-sm,
|
|
174
|
+
&-trigger-input.ant-input-affix-wrapper-sm {
|
|
169
175
|
padding: 2px 2px 2px 12px;
|
|
170
176
|
|
|
171
177
|
.pisell-lookup-input-clear {
|
|
@@ -192,8 +198,10 @@
|
|
|
192
198
|
}
|
|
193
199
|
}
|
|
194
200
|
|
|
195
|
-
//
|
|
196
|
-
&-trigger-input.pisell-lowcode-input-affix-wrapper-lg
|
|
201
|
+
// 大号输入框,高度 58px(同时匹配 ant- / pisell-lowcode-)
|
|
202
|
+
&-trigger-input.pisell-lowcode-input-affix-wrapper-lg,
|
|
203
|
+
&-trigger-input.ant-input-affix-wrapper-lg {
|
|
204
|
+
min-height: 58px;
|
|
197
205
|
padding: 6px 6px 6px 16px;
|
|
198
206
|
|
|
199
207
|
.pisell-lookup-input-clear {
|
|
@@ -210,6 +218,23 @@
|
|
|
210
218
|
|
|
211
219
|
.pisell-lookup-input-confirm {
|
|
212
220
|
padding: 10px;
|
|
221
|
+
line-height: 24px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// 无 Lookup 按钮时:class 在包裹层 .pisell-lookup-trigger-input-no-confirm 上,对子元素 affix-wrapper 设左右对称 padding
|
|
226
|
+
&-trigger-input-no-confirm {
|
|
227
|
+
> .ant-input-affix-wrapper,
|
|
228
|
+
> .pisell-lowcode-input-affix-wrapper {
|
|
229
|
+
padding: 4px 16px;
|
|
230
|
+
}
|
|
231
|
+
> .ant-input-affix-wrapper-sm,
|
|
232
|
+
> .pisell-lowcode-input-affix-wrapper-sm {
|
|
233
|
+
padding: 2px 12px;
|
|
234
|
+
}
|
|
235
|
+
> .ant-input-affix-wrapper-lg,
|
|
236
|
+
> .pisell-lowcode-input-affix-wrapper-lg {
|
|
237
|
+
padding: 6px 16px;
|
|
213
238
|
}
|
|
214
239
|
}
|
|
215
240
|
|
|
@@ -270,8 +295,8 @@
|
|
|
270
295
|
}
|
|
271
296
|
|
|
272
297
|
&-confirm {
|
|
298
|
+
border: none;
|
|
273
299
|
background-color: #7f56d9;
|
|
274
|
-
border-color: #7f56d9;
|
|
275
300
|
border-radius: 8px;
|
|
276
301
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
277
302
|
padding: 10px;
|
|
@@ -279,39 +304,37 @@
|
|
|
279
304
|
min-width: auto;
|
|
280
305
|
font-size: 16px;
|
|
281
306
|
font-weight: 600;
|
|
282
|
-
line-height:
|
|
307
|
+
line-height: 20px;
|
|
283
308
|
color: #ffffff;
|
|
284
309
|
|
|
285
310
|
&:hover {
|
|
286
311
|
background-color: #6941c6 !important;
|
|
287
|
-
border-color: #6941c6 !important;
|
|
288
312
|
color: #ffffff !important;
|
|
289
313
|
}
|
|
290
314
|
|
|
291
315
|
&:active {
|
|
292
316
|
background-color: #53389e !important;
|
|
293
|
-
border-color: #53389e !important;
|
|
294
317
|
color: #ffffff !important;
|
|
295
318
|
}
|
|
296
319
|
|
|
297
320
|
span {
|
|
298
321
|
font-size: 16px;
|
|
299
322
|
font-weight: 600;
|
|
300
|
-
line-height:
|
|
323
|
+
line-height: 20px;
|
|
301
324
|
}
|
|
302
325
|
|
|
303
326
|
&.pisell-lowcode-btn-sm {
|
|
304
327
|
padding: 10px;
|
|
305
328
|
height: auto;
|
|
306
329
|
font-size: 16px;
|
|
307
|
-
line-height:
|
|
330
|
+
line-height: 20px;
|
|
308
331
|
}
|
|
309
332
|
|
|
310
333
|
&.pisell-lowcode-btn-middle {
|
|
311
334
|
padding: 10px;
|
|
312
335
|
height: auto;
|
|
313
336
|
font-size: 16px;
|
|
314
|
-
line-height:
|
|
337
|
+
line-height: 20px;
|
|
315
338
|
}
|
|
316
339
|
}
|
|
317
340
|
}
|
|
@@ -142,8 +142,10 @@ var LookupTriggerComponent = (0, import_react.forwardRef)(
|
|
|
142
142
|
onConfirm == null ? void 0 : onConfirm();
|
|
143
143
|
};
|
|
144
144
|
const handleKeyPress = (e) => {
|
|
145
|
+
var _a2;
|
|
145
146
|
if (e.key === "Enter") {
|
|
146
|
-
|
|
147
|
+
const currentValue = ((_a2 = e.currentTarget) == null ? void 0 : _a2.value) ?? value ?? "";
|
|
148
|
+
onConfirm == null ? void 0 : onConfirm(currentValue);
|
|
147
149
|
}
|
|
148
150
|
};
|
|
149
151
|
const renderInputTrigger = () => {
|
|
@@ -165,7 +167,7 @@ var LookupTriggerComponent = (0, import_react.forwardRef)(
|
|
|
165
167
|
},
|
|
166
168
|
confirmButtonText
|
|
167
169
|
));
|
|
168
|
-
|
|
170
|
+
const inputEl = /* @__PURE__ */ import_react.default.createElement(
|
|
169
171
|
import_antd.Input,
|
|
170
172
|
{
|
|
171
173
|
ref: inputRef,
|
|
@@ -180,10 +182,14 @@ var LookupTriggerComponent = (0, import_react.forwardRef)(
|
|
|
180
182
|
prefix,
|
|
181
183
|
suffix,
|
|
182
184
|
autoFocus,
|
|
183
|
-
className: `pisell-lookup-trigger-input ${className || ""}
|
|
185
|
+
className: `pisell-lookup-trigger-input ${className || ""}`.trim(),
|
|
184
186
|
style
|
|
185
187
|
}
|
|
186
188
|
);
|
|
189
|
+
if (!showConfirmButton) {
|
|
190
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lookup-trigger-input pisell-lookup-trigger-input-no-confirm" }, inputEl);
|
|
191
|
+
}
|
|
192
|
+
return inputEl;
|
|
187
193
|
};
|
|
188
194
|
const renderButtonTrigger = () => {
|
|
189
195
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -1,53 +1,139 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PisellMultipleSelect 组件样式
|
|
3
|
-
*
|
|
4
|
-
* 注意:大部分样式通过 tokens.ts 中的 Select Token 配置实现
|
|
5
|
-
* 此文件仅包含 Token 无法实现的样式
|
|
3
|
+
* 基于 Figma 设计规范,覆盖时使用 pisell-lowcode-xxx
|
|
6
4
|
*/
|
|
7
5
|
|
|
8
6
|
.pisell-multiple-select {
|
|
7
|
+
height: 48px !important;
|
|
9
8
|
width: 100%;
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
.pisell-lowcode-select-clear {
|
|
11
|
+
color: #667085;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
min-width: 44px;
|
|
16
|
+
min-height: 44px;
|
|
17
|
+
margin: -22px -8px;
|
|
18
|
+
padding: 10px 8px;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
color: #344054;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Select 触发器(Figma 设计规范,与 SingleSelect / Input 体系一致)
|
|
26
|
+
.pisell-lowcode-select:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input) {
|
|
27
|
+
.pisell-lowcode-select-selector {
|
|
28
|
+
font-size: 16px !important;
|
|
29
|
+
line-height: 24px !important;
|
|
30
|
+
border-radius: 8px !important;
|
|
31
|
+
border: 1px solid #d0d5dd !important; // Gray/300
|
|
32
|
+
padding: 12px 16px !important;
|
|
33
|
+
min-height: 48px !important;
|
|
34
|
+
color: #101828 !important; // Gray/900
|
|
35
|
+
background-color: #ffffff !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// 多选模式:内边距适配标签,高度保持 48px
|
|
39
|
+
&.pisell-lowcode-select-multiple .pisell-lowcode-select-selector {
|
|
40
|
+
padding: 6px 16px !important;
|
|
41
|
+
min-height: 48px !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.pisell-lowcode-select-open .pisell-lowcode-select-selector {
|
|
45
|
+
border-color: #d6bbfb !important; // Primary/300
|
|
46
|
+
box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:not(.pisell-lowcode-select-open):not(.pisell-lowcode-select-disabled)
|
|
50
|
+
.pisell-lowcode-select-selector:hover {
|
|
51
|
+
border-color: #b692f6 !important; // Primary/400
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.pisell-lowcode-select-disabled .pisell-lowcode-select-selector {
|
|
55
|
+
background-color: #f9fafb !important; // Gray/50
|
|
56
|
+
color: #98a2b3 !important; // Gray/400
|
|
57
|
+
border-color: #d0d5dd !important;
|
|
58
|
+
cursor: not-allowed !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.pisell-lowcode-select-selection-placeholder {
|
|
62
|
+
color: #667085 !important; // Gray/500
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pisell-lowcode-select-arrow {
|
|
66
|
+
color: #667085;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
// 多选标签(选择后展示的 item)高度 36px
|
|
71
|
+
.pisell-lowcode-select-selection-item {
|
|
72
|
+
border-radius: 6px !important;
|
|
73
|
+
padding: 0 10px !important;
|
|
74
|
+
margin-inline-end: 4px !important;
|
|
75
|
+
height: 36px !important;
|
|
76
|
+
min-height: 36px !important;
|
|
77
|
+
line-height: 36px !important;
|
|
78
|
+
|
|
79
|
+
&-content {
|
|
80
|
+
line-height: 36px !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-remove {
|
|
84
|
+
margin-left: 4px !important;
|
|
85
|
+
|
|
86
|
+
&:hover {
|
|
87
|
+
background-color: transparent !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
12
93
|
&-wrapper {
|
|
13
94
|
display: flex;
|
|
14
95
|
flex-direction: column;
|
|
15
96
|
gap: 8px;
|
|
97
|
+
position: relative;
|
|
98
|
+
|
|
99
|
+
// 下拉选项高度 48px(通过 getPopupContainer 挂到 wrapper 内,无需 :global)
|
|
100
|
+
.pisell-multiple-select-dropdown .pisell-lowcode-select-item {
|
|
101
|
+
min-height: 48px !important;
|
|
102
|
+
height: 48px !important;
|
|
103
|
+
line-height: 48px !important;
|
|
104
|
+
padding: 0 16px !important;
|
|
105
|
+
font-size: 16px !important;
|
|
106
|
+
}
|
|
16
107
|
}
|
|
17
108
|
|
|
18
|
-
// 标签(Token 无法配置的自定义元素)
|
|
19
109
|
&-label {
|
|
20
|
-
font-family: 'Inter', sans-serif;
|
|
21
110
|
font-size: 14px;
|
|
22
111
|
font-weight: 600;
|
|
23
|
-
color: #344054;
|
|
112
|
+
color: #344054; // Gray/700
|
|
24
113
|
line-height: 20px;
|
|
25
114
|
|
|
26
115
|
&-required::after {
|
|
27
116
|
content: ' *';
|
|
28
|
-
color: #
|
|
117
|
+
color: #d92d20; // Error/600
|
|
29
118
|
margin-left: 0;
|
|
30
119
|
}
|
|
31
120
|
}
|
|
32
121
|
|
|
33
|
-
// 辅助文本(Token 无法配置的自定义元素)
|
|
34
122
|
&-helper-text {
|
|
35
123
|
font-size: 14px;
|
|
36
124
|
font-weight: 400;
|
|
37
|
-
color: #667085;
|
|
125
|
+
color: #667085; // Gray/500
|
|
38
126
|
line-height: 20px;
|
|
39
127
|
}
|
|
40
128
|
|
|
41
|
-
// 错误文本(Token 无法配置的自定义元素)
|
|
42
129
|
&-error-text {
|
|
43
|
-
font-size:
|
|
130
|
+
font-size: 12px;
|
|
44
131
|
font-weight: 400;
|
|
45
|
-
color: #
|
|
46
|
-
line-height:
|
|
47
|
-
animation: fadeIn 0.3s ease-in-out;
|
|
132
|
+
color: #d92d20; // Error/600
|
|
133
|
+
line-height: 1.5;
|
|
134
|
+
animation: pisell-multiple-select-fadeIn 0.3s ease-in-out;
|
|
48
135
|
}
|
|
49
136
|
|
|
50
|
-
// 下拉选项中的勾选图标(Figma 设计)
|
|
51
137
|
&-option-content {
|
|
52
138
|
display: flex;
|
|
53
139
|
align-items: center;
|
|
@@ -56,99 +142,34 @@
|
|
|
56
142
|
}
|
|
57
143
|
|
|
58
144
|
&-option-check {
|
|
59
|
-
color: #
|
|
145
|
+
color: #7f56d9; // Primary/600
|
|
60
146
|
font-size: 16px;
|
|
61
147
|
margin-left: 8px;
|
|
62
148
|
}
|
|
63
149
|
|
|
64
|
-
//
|
|
65
|
-
:global {
|
|
66
|
-
// 选择框垂直内边距(多选时需要更小的内边距以容纳标签)
|
|
67
|
-
.pisell-lowcode-select-multiple .pisell-lowcode-select-selector {
|
|
68
|
-
padding: 6px 16px !important;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// 标签圆角(Token 不支持 multipleItemBorderRadius)
|
|
72
|
-
.pisell-lowcode-select-selection-item {
|
|
73
|
-
border-radius: 6px !important;
|
|
74
|
-
padding: 6px 10px !important;
|
|
75
|
-
margin-inline-end: 4px !important;
|
|
76
|
-
|
|
77
|
-
// 确保标签内容垂直居中
|
|
78
|
-
&-content {
|
|
79
|
-
line-height: 24px !important;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// 删除图标样式微调
|
|
83
|
-
&-remove {
|
|
84
|
-
margin-left: 4px !important;
|
|
85
|
-
|
|
86
|
-
&:hover {
|
|
87
|
-
background-color: transparent !important;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// hover 边框颜色(Token 不支持 colorBorderHover)
|
|
93
|
-
.pisell-lowcode-select-multiple:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input):not(.ant-select-open) {
|
|
94
|
-
.ant-select-selector:hover {
|
|
95
|
-
border-color: #D6BBFB !important;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// 下拉框内的搜索框样式(Figma 设计)
|
|
102
|
-
:global {
|
|
103
|
-
.pisell-select-search-wrapper {
|
|
104
|
-
padding: 6px;
|
|
105
|
-
border-bottom: 1px solid #EAECF0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.pisell-select-search-input {
|
|
109
|
-
padding: 9px 10px !important;
|
|
110
|
-
font-size: 14px;
|
|
111
|
-
|
|
112
|
-
.ant-input {
|
|
113
|
-
font-size: 14px !important;
|
|
114
|
-
color: #344054 !important;
|
|
115
|
-
|
|
116
|
-
&::placeholder {
|
|
117
|
-
color: #98A2B3 !important;
|
|
118
|
-
font-size: 12px !important;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&:hover,
|
|
123
|
-
&:focus-within {
|
|
124
|
-
background-color: transparent !important;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.pisell-multiple-select {
|
|
130
|
-
// 错误状态(Token 无法单独配置错误边框颜色)
|
|
150
|
+
// 错误状态(Figma 设计体系 Error 色)
|
|
131
151
|
&-error {
|
|
132
|
-
|
|
133
|
-
border-color: #
|
|
152
|
+
.pisell-lowcode-select .pisell-lowcode-select-selector {
|
|
153
|
+
border-color: #fda29b !important; // Error/300
|
|
134
154
|
|
|
135
155
|
&:hover {
|
|
136
|
-
border-color: #
|
|
156
|
+
border-color: #f97066 !important; // Error/400
|
|
137
157
|
}
|
|
138
158
|
}
|
|
139
159
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
160
|
+
.pisell-lowcode-select.pisell-lowcode-select-focused .pisell-lowcode-select-selector,
|
|
161
|
+
.pisell-lowcode-select.pisell-lowcode-select-open .pisell-lowcode-select-selector {
|
|
162
|
+
border-color: #f97066 !important; // Error/400
|
|
163
|
+
box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
|
|
143
164
|
}
|
|
144
165
|
}
|
|
145
166
|
|
|
146
|
-
//
|
|
167
|
+
// 聚合标签(maxTagPlaceholder)
|
|
147
168
|
&-more-tag {
|
|
148
169
|
display: inline-flex;
|
|
149
170
|
align-items: center;
|
|
150
|
-
background-color: #
|
|
151
|
-
color: #344054;
|
|
171
|
+
background-color: #eaecf0;
|
|
172
|
+
color: #344054; // Gray/700
|
|
152
173
|
border: none;
|
|
153
174
|
border-radius: 6px;
|
|
154
175
|
padding: 6px 10px;
|
|
@@ -159,35 +180,28 @@
|
|
|
159
180
|
transition: background-color 0.2s ease;
|
|
160
181
|
|
|
161
182
|
&:hover {
|
|
162
|
-
background-color: #
|
|
183
|
+
background-color: #d0d5dd; // Gray/300
|
|
163
184
|
}
|
|
164
185
|
}
|
|
165
186
|
|
|
166
|
-
//
|
|
187
|
+
// 只读状态
|
|
167
188
|
&-readonly {
|
|
168
189
|
&-display {
|
|
169
190
|
display: flex;
|
|
170
191
|
flex-wrap: wrap;
|
|
171
192
|
gap: 4px;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
border: 1px solid #EAECF0;
|
|
175
|
-
border-radius: 8px;
|
|
176
|
-
min-height: 48px;
|
|
193
|
+
align-items: center;
|
|
194
|
+
min-height: 24px;
|
|
177
195
|
}
|
|
178
196
|
|
|
179
197
|
&-tag {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
font-size: 16px;
|
|
188
|
-
font-weight: 500;
|
|
189
|
-
line-height: 24px;
|
|
190
|
-
color: #344054;
|
|
198
|
+
margin: 0;
|
|
199
|
+
cursor: default;
|
|
200
|
+
border-radius: 12px;
|
|
201
|
+
border: 1px solid transparent;
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
line-height: 22px;
|
|
204
|
+
padding: 2px 10px;
|
|
191
205
|
|
|
192
206
|
&-icon {
|
|
193
207
|
display: flex;
|
|
@@ -196,17 +210,13 @@
|
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
&-more-tag {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
font-size: 16px;
|
|
207
|
-
font-weight: 500;
|
|
208
|
-
line-height: 24px;
|
|
209
|
-
cursor: pointer;
|
|
213
|
+
margin: 0;
|
|
214
|
+
cursor: default;
|
|
215
|
+
border-radius: 12px;
|
|
216
|
+
border: 1px solid transparent;
|
|
217
|
+
font-size: 14px;
|
|
218
|
+
line-height: 22px;
|
|
219
|
+
padding: 2px 10px;
|
|
210
220
|
}
|
|
211
221
|
|
|
212
222
|
&-empty {
|
|
@@ -218,8 +228,33 @@
|
|
|
218
228
|
}
|
|
219
229
|
}
|
|
220
230
|
|
|
221
|
-
//
|
|
222
|
-
|
|
231
|
+
// 下拉内搜索框(在 dropdown 内)
|
|
232
|
+
.pisell-select-search-wrapper {
|
|
233
|
+
padding: 6px;
|
|
234
|
+
border-bottom: 1px solid #eaecf0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.pisell-select-search-input {
|
|
238
|
+
padding: 9px 10px !important;
|
|
239
|
+
font-size: 14px;
|
|
240
|
+
|
|
241
|
+
.pisell-lowcode-input {
|
|
242
|
+
font-size: 14px !important;
|
|
243
|
+
color: #344054 !important;
|
|
244
|
+
|
|
245
|
+
&::placeholder {
|
|
246
|
+
color: #98a2b3 !important;
|
|
247
|
+
font-size: 12px !important;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&:hover,
|
|
252
|
+
&:focus-within {
|
|
253
|
+
background-color: transparent !important;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@keyframes pisell-multiple-select-fadeIn {
|
|
223
258
|
from {
|
|
224
259
|
opacity: 0;
|
|
225
260
|
transform: translateY(-4px);
|
|
@@ -51,7 +51,7 @@ var import_PisellMultipleSelect = __toESM(require("./PisellMultipleSelect"));
|
|
|
51
51
|
var import_react = require("react");
|
|
52
52
|
var import_antd = require("antd");
|
|
53
53
|
var meta = {
|
|
54
|
-
title: "
|
|
54
|
+
title: "表单/表单组件/PisellMultipleSelect",
|
|
55
55
|
component: import_PisellMultipleSelect.default,
|
|
56
56
|
tags: ["autodocs"],
|
|
57
57
|
argTypes: {
|
|
@@ -88,6 +88,7 @@ var EditView = (0, import_react.forwardRef)((props, ref) => {
|
|
|
88
88
|
(opt) => opt.label.toLowerCase().includes(searchKeyword.toLowerCase())
|
|
89
89
|
);
|
|
90
90
|
}, [antdOptions, searchKeyword, showSearch, filterOption, options]);
|
|
91
|
+
const wrapperRef = (0, import_react.useRef)(null);
|
|
91
92
|
const menuItemSelectedIcon = /* @__PURE__ */ import_react.default.createElement(import_icons.CheckOutlined, { style: { color: "#7F56D9", fontSize: 16 } });
|
|
92
93
|
const dropdownRender = (0, import_react.useCallback)(
|
|
93
94
|
(menu) => {
|
|
@@ -120,7 +121,7 @@ var EditView = (0, import_react.forwardRef)((props, ref) => {
|
|
|
120
121
|
},
|
|
121
122
|
[options, showTooltipOnOverflow]
|
|
122
123
|
);
|
|
123
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-multiple-select-wrapper", className), style }, label && /* @__PURE__ */ import_react.default.createElement(
|
|
124
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { ref: wrapperRef, className: (0, import_classnames.default)("pisell-multiple-select-wrapper", className), style }, label && /* @__PURE__ */ import_react.default.createElement(
|
|
124
125
|
"label",
|
|
125
126
|
{
|
|
126
127
|
className: (0, import_classnames.default)("pisell-multiple-select-label", {
|
|
@@ -145,6 +146,8 @@ var EditView = (0, import_react.forwardRef)((props, ref) => {
|
|
|
145
146
|
maxTagCount,
|
|
146
147
|
maxTagPlaceholder,
|
|
147
148
|
size,
|
|
149
|
+
popupClassName: "pisell-multiple-select-dropdown",
|
|
150
|
+
getPopupContainer: () => wrapperRef.current ?? document.body,
|
|
148
151
|
className: (0, import_classnames.default)("pisell-multiple-select", {
|
|
149
152
|
"pisell-multiple-select-error": error
|
|
150
153
|
})
|
|
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_tagColor = require("../../../utils/tagColor");
|
|
39
40
|
var ReadOnlyView = (props) => {
|
|
40
41
|
const {
|
|
41
42
|
value = [],
|
|
@@ -73,7 +74,34 @@ var ReadOnlyView = (props) => {
|
|
|
73
74
|
},
|
|
74
75
|
label
|
|
75
76
|
),
|
|
76
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-multiple-select-readonly-display" }, selectedOptions.length > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, tagDisplayInfo.visibleTags.map((option
|
|
77
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-multiple-select-readonly-display" }, selectedOptions.length > 0 ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, tagDisplayInfo.visibleTags.map((option, idx) => /* @__PURE__ */ import_react.default.createElement(
|
|
78
|
+
import_antd.Tag,
|
|
79
|
+
{
|
|
80
|
+
key: option.value,
|
|
81
|
+
className: "pisell-multiple-select-readonly-tag",
|
|
82
|
+
color: option.color ?? (0, import_tagColor.getDefaultTagColor)(option.value, idx)
|
|
83
|
+
},
|
|
84
|
+
option.icon && /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-multiple-select-readonly-tag-icon" }, option.icon),
|
|
85
|
+
option.label
|
|
86
|
+
)), tagDisplayInfo.hiddenCount > 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
87
|
+
import_antd.Tooltip,
|
|
88
|
+
{
|
|
89
|
+
title: tagDisplayInfo.hiddenTags.map((t) => t.label).join(", ")
|
|
90
|
+
},
|
|
91
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
92
|
+
import_antd.Tag,
|
|
93
|
+
{
|
|
94
|
+
className: "pisell-multiple-select-readonly-more-tag",
|
|
95
|
+
style: {
|
|
96
|
+
backgroundColor: "#F2F4F7",
|
|
97
|
+
borderColor: "#EAECF0",
|
|
98
|
+
color: "#667085"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"+",
|
|
102
|
+
tagDisplayInfo.hiddenCount
|
|
103
|
+
)
|
|
104
|
+
)) : /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-multiple-select-readonly-empty" }, "-"))
|
|
77
105
|
);
|
|
78
106
|
};
|
|
79
107
|
ReadOnlyView.displayName = "PisellMultipleSelectReadOnlyView";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PisellMultipleSelect 组件导出
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import PisellMultipleSelect from './PisellMultipleSelect';
|
|
5
|
+
export { PisellMultipleSelect };
|
|
5
6
|
export type { PisellMultipleSelectProps, MultipleSelectRef, EditViewProps, DisabledViewProps, ReadOnlyViewProps, TagRendererProps, } from './types';
|
|
6
7
|
export type { SelectOption, FilterOptionFunc, SortDirection, MultipleSelectState, TagDisplayInfo, } from './types';
|
|
@@ -32,7 +32,14 @@ __export(pisellMultipleSelect_exports, {
|
|
|
32
32
|
PisellMultipleSelect: () => import_PisellMultipleSelect.default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(pisellMultipleSelect_exports);
|
|
35
|
+
var import_locales = require("../../locales");
|
|
35
36
|
var import_PisellMultipleSelect = __toESM(require("./PisellMultipleSelect"));
|
|
37
|
+
import_PisellMultipleSelect.default.SortOptions = {
|
|
38
|
+
getSortItems: (fieldKey) => [
|
|
39
|
+
{ key: `${fieldKey}:asc`, label: (0, import_locales.getText)("sort-first-last") },
|
|
40
|
+
{ key: `${fieldKey}:desc`, label: (0, import_locales.getText)("sort-last-first") }
|
|
41
|
+
]
|
|
42
|
+
};
|
|
36
43
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37
44
|
0 && (module.exports = {
|
|
38
45
|
PisellMultipleSelect
|