@pisell/materials 1.0.1034 → 1.0.1035
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +17 -17
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +27 -32
- package/es/components/Pagination/index.js +1 -1
- package/es/components/PisellCards/index.d.ts +6 -6
- package/es/components/calendar/index.d.ts +2 -2
- package/es/components/checkbox/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Email/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Password/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/filter/components/Dropdown/index.js +6 -2
- package/es/components/filter/components/FilterButton/index.js +3 -2
- package/es/components/filter/components/FilterButton/types.d.ts +5 -2
- package/es/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +67 -0
- package/es/components/filter/components/FilterItem/index.js +105 -6
- package/es/components/filter/components/FilterItem/index.less +90 -0
- package/es/components/filter/types.d.ts +4 -2
- package/es/components/input/index.d.ts +2 -2
- package/es/components/pisell-config-provider/context.d.ts +2 -2
- package/es/components/pisellCurrency/PisellCurrency.less +163 -25
- package/es/components/pisellDatePicker/index.d.ts +2 -2
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +11 -10
- package/es/components/pisellDateTimeDisplay/types.d.ts +5 -0
- package/es/components/pisellEmail/PisellEmail.d.ts +2 -33
- package/es/components/pisellEmail/PisellEmail.js +1 -1
- package/es/components/pisellEmail/PisellEmail.less +119 -10
- package/es/components/pisellEmail/index.d.ts +1 -1
- package/es/components/pisellFilter/docs/PisellFilter.md +289 -232
- package/es/components/pisellFilter/index.js +66 -11
- package/es/components/pisellLongText/PisellLongText.less +72 -4
- package/es/components/pisellLookup/PisellLookup.js +3 -3
- package/es/components/pisellLookup/PisellLookup.less +14 -9
- package/es/components/pisellLookup/components/LookupTrigger.js +6 -2
- package/es/components/pisellMetricCard/PisellMetricCard.d.ts +38 -0
- package/es/components/pisellMetricCard/PisellMetricCard.js +136 -0
- package/es/components/pisellMetricCard/components/MetricComparison.js +54 -0
- package/es/components/pisellMetricCard/components/MetricTitle.js +41 -0
- package/es/components/pisellMetricCard/components/MetricValue.js +26 -0
- package/es/components/pisellMetricCard/components/TrendIcon.js +26 -0
- package/es/components/pisellMetricCard/docs/pisellMetricCard.$tab-design.md +2 -6
- package/es/components/pisellMetricCard/index.d.ts +2 -0
- package/es/components/pisellMetricCard/types.d.ts +143 -0
- package/es/components/pisellMetricCard/utils/calculateTrend.js +22 -0
- package/es/components/pisellMetricCard/utils/formatMetricValue.js +52 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +151 -124
- package/es/components/pisellMultipleSelect/components/EditView.js +8 -1
- package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +18 -6
- package/es/components/pisellNumber/PisellNumber.less +135 -17
- package/es/components/pisellPercent/PisellPercent.less +142 -24
- package/es/components/pisellPhone/PisellPhone.less +122 -27
- package/es/components/pisellPhone/components/EditView.js +1 -1
- package/es/components/pisellPhone/components/ReadOnlyView.js +15 -5
- package/es/components/pisellPhone/utils/countryCodeHelper.js +1 -10
- package/es/components/pisellRating/PisellRating.less +20 -12
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +148 -0
- package/es/components/pisellRecordBoard/README.md +183 -0
- package/es/components/pisellRecordBoard/context/RecordBoardContext.js +7 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.js +14 -0
- package/es/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-design.md +128 -0
- package/es/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-dev.md +82 -0
- package/es/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-test.md +70 -0
- package/es/components/pisellRecordBoard/docs/PisellRecordBoard.md +552 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +20 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.js +16 -0
- package/es/components/pisellRecordBoard/index.d.ts +40 -0
- package/es/components/pisellRecordBoard/index.js +28 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +15 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.js +24 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +15 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.js +21 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +17 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +105 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +15 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.js +21 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +12 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +69 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +40 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +60 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +17 -0
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +52 -0
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.less +61 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.js +34 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +77 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +136 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +2 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +62 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +2 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +45 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +41 -0
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +27 -0
- package/es/components/pisellRecordBoard/shellFrame/index.js +38 -0
- package/es/components/pisellRecordBoard/types.d.ts +259 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +287 -0
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +16 -0
- package/es/components/pisellShellFrame/PisellShellFrame.js +60 -0
- package/es/components/pisellShellFrame/PisellShellFrame.less +73 -0
- package/es/components/pisellShellFrame/README.md +58 -0
- package/es/components/pisellShellFrame/index.d.ts +2 -0
- package/es/components/pisellShellFrame/types.d.ts +60 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +88 -46
- package/es/components/pisellSingleSelect/components/EditView.js +8 -1
- package/es/components/pisellSingleSelect/components/ReadOnlyView.js +8 -2
- package/es/components/pisellUrl/PisellUrl.d.ts +2 -33
- package/es/components/pisellUrl/PisellUrl.js +1 -1
- package/es/components/pisellUrl/PisellUrl.less +120 -11
- package/es/components/pisellUrl/index.d.ts +1 -1
- package/es/components/radio/index.d.ts +2 -2
- package/es/components/section-footers/index.d.ts +2 -2
- package/es/components/skeleton/index.d.ts +2 -2
- package/es/components/sort/index.js +12 -1
- package/es/components/sort/types.d.ts +8 -2
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/index.d.ts +19 -11
- package/es/index.js +19 -15
- package/es/locales/en-US.js +16 -2
- package/es/locales/zh-CN.js +18 -4
- package/es/locales/zh-TW.js +18 -4
- package/es/utils/tagColor.js +31 -0
- package/lib/components/Pagination/index.js +1 -1
- package/lib/components/checkbox/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Password/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/filter/components/Dropdown/index.js +6 -2
- package/lib/components/filter/components/FilterButton/index.js +3 -2
- package/lib/components/filter/components/FilterButton/types.d.ts +5 -2
- package/lib/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.js +69 -0
- package/lib/components/filter/components/FilterItem/index.js +106 -6
- package/lib/components/filter/components/FilterItem/index.less +90 -0
- package/lib/components/filter/types.d.ts +4 -2
- package/lib/components/input/index.d.ts +2 -2
- package/lib/components/pisell-config-provider/context.d.ts +2 -2
- package/lib/components/pisellCurrency/PisellCurrency.less +163 -25
- package/lib/components/pisellDatePicker/index.d.ts +2 -2
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +11 -10
- package/lib/components/pisellDateTimeDisplay/types.d.ts +5 -0
- package/lib/components/pisellEmail/PisellEmail.d.ts +2 -33
- package/lib/components/pisellEmail/PisellEmail.js +1 -1
- package/lib/components/pisellEmail/PisellEmail.less +119 -10
- package/lib/components/pisellEmail/index.d.ts +1 -1
- package/lib/components/pisellFilter/docs/PisellFilter.md +289 -232
- package/lib/components/pisellFilter/index.js +65 -10
- package/lib/components/pisellLongText/PisellLongText.less +72 -4
- package/lib/components/pisellLookup/PisellLookup.js +3 -3
- package/lib/components/pisellLookup/PisellLookup.less +14 -9
- package/lib/components/pisellLookup/components/LookupTrigger.js +6 -2
- package/lib/components/pisellMetricCard/PisellMetricCard.d.ts +38 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.js +138 -0
- package/lib/components/pisellMetricCard/components/MetricComparison.js +56 -0
- package/lib/components/pisellMetricCard/components/MetricTitle.js +43 -0
- package/lib/components/pisellMetricCard/components/MetricValue.js +28 -0
- package/lib/components/pisellMetricCard/components/TrendIcon.js +28 -0
- package/lib/components/pisellMetricCard/docs/pisellMetricCard.$tab-design.md +2 -6
- package/lib/components/pisellMetricCard/index.d.ts +2 -0
- package/lib/components/pisellMetricCard/types.d.ts +143 -0
- package/lib/components/pisellMetricCard/utils/calculateTrend.js +23 -0
- package/lib/components/pisellMetricCard/utils/formatMetricValue.js +53 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +151 -124
- package/lib/components/pisellMultipleSelect/components/EditView.js +7 -0
- package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +17 -5
- package/lib/components/pisellNumber/PisellNumber.less +135 -17
- package/lib/components/pisellPercent/PisellPercent.less +142 -24
- package/lib/components/pisellPhone/PisellPhone.less +122 -27
- package/lib/components/pisellPhone/components/EditView.js +1 -1
- package/lib/components/pisellPhone/components/ReadOnlyView.js +15 -5
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +0 -10
- package/lib/components/pisellRating/PisellRating.less +20 -12
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +150 -0
- package/lib/components/pisellRecordBoard/README.md +183 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.js +8 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.js +16 -0
- package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-design.md +128 -0
- package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-dev.md +82 -0
- package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.$tab-test.md +70 -0
- package/lib/components/pisellRecordBoard/docs/PisellRecordBoard.md +552 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +20 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.js +17 -0
- package/lib/components/pisellRecordBoard/index.d.ts +40 -0
- package/lib/components/pisellRecordBoard/index.js +28 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +15 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.js +26 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +15 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.js +23 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +17 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +107 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +15 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.js +23 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +12 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.js +71 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +43 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +62 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.less +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +17 -0
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +54 -0
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.less +61 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.js +36 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +77 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +139 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.js +64 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +47 -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 +40 -0
- package/lib/components/pisellRecordBoard/types.d.ts +259 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +292 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +16 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.js +62 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.less +73 -0
- package/lib/components/pisellShellFrame/README.md +58 -0
- package/lib/components/pisellShellFrame/index.d.ts +2 -0
- package/lib/components/pisellShellFrame/types.d.ts +60 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +88 -46
- package/lib/components/pisellSingleSelect/components/EditView.js +7 -0
- package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +8 -2
- package/lib/components/pisellUrl/PisellUrl.d.ts +2 -33
- package/lib/components/pisellUrl/PisellUrl.js +1 -1
- package/lib/components/pisellUrl/PisellUrl.less +120 -11
- package/lib/components/pisellUrl/index.d.ts +1 -1
- package/lib/components/radio/index.d.ts +2 -2
- package/lib/components/section-footers/index.d.ts +2 -2
- package/lib/components/skeleton/index.d.ts +2 -2
- package/lib/components/sort/index.js +12 -1
- package/lib/components/sort/types.d.ts +8 -2
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/upload/index.d.ts +2 -2
- package/lib/index.d.ts +19 -11
- package/lib/index.js +33 -25
- package/lib/locales/en-US.js +16 -2
- package/lib/locales/zh-CN.js +18 -4
- package/lib/locales/zh-TW.js +18 -4
- package/lib/utils/tagColor.js +32 -0
- package/package.json +3 -3
|
@@ -76,7 +76,7 @@ const MiniPagination = (props) => {
|
|
|
76
76
|
if (type === "next") currentPage = current + 1;
|
|
77
77
|
props.onChange && props.onChange(currentPage, pageSize || 10);
|
|
78
78
|
};
|
|
79
|
-
return /* @__PURE__ */ React.createElement("div", { className: "materials-grid-paginator
|
|
79
|
+
return /* @__PURE__ */ React.createElement("div", { className: "materials-grid-paginator" }, /* @__PURE__ */ React.createElement("div", {
|
|
80
80
|
className: "pisell-lowcode-pagination-prev",
|
|
81
81
|
onClick: () => {
|
|
82
82
|
if (current <= MIN) return;
|
|
@@ -7,15 +7,15 @@ import "./components/PisellImageCard/index.js";
|
|
|
7
7
|
import { BadgeConfig, TabCardProps } from "./components/TabCard/types.js";
|
|
8
8
|
import "./components/TextCard/types.js";
|
|
9
9
|
import { MultilevelCardProps } from "./components/MultilevelCard/types.js";
|
|
10
|
-
import * as
|
|
10
|
+
import * as react10 from "react";
|
|
11
11
|
|
|
12
12
|
//#region src/components/PisellCards/index.d.ts
|
|
13
13
|
declare const PisellCards: {
|
|
14
|
-
TabCard: (props: any) =>
|
|
15
|
-
TextCard: (props: any) =>
|
|
16
|
-
GraphicTextCard: (props: GraphicTextCardProps) =>
|
|
17
|
-
MultilevelCard: (props: any) =>
|
|
18
|
-
PisellImageCard: (props: PisellImageCardProps) =>
|
|
14
|
+
TabCard: (props: any) => react10.JSX.Element;
|
|
15
|
+
TextCard: (props: any) => react10.JSX.Element;
|
|
16
|
+
GraphicTextCard: (props: GraphicTextCardProps) => react10.JSX.Element;
|
|
17
|
+
MultilevelCard: (props: any) => react10.JSX.Element;
|
|
18
|
+
PisellImageCard: (props: PisellImageCardProps) => react10.JSX.Element;
|
|
19
19
|
};
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PisellCards };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react16 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/calendar/index.d.ts
|
|
5
|
-
declare const Calendar: (props: any) =>
|
|
5
|
+
declare const Calendar: (props: any) => react16.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Calendar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react15 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/checkbox/index.d.ts
|
|
5
|
-
declare const Checkbox: (props: any) =>
|
|
5
|
+
declare const Checkbox: (props: any) => react15.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Checkbox };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
|
|
5
|
-
declare const DataSourceQRCode: (props: any) =>
|
|
5
|
+
declare const DataSourceQRCode: (props: any) => react0.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DataSourceQRCode };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as antd21 from "antd";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/Input.Email/index.d.ts
|
|
6
|
-
declare const Email: React.FC<
|
|
6
|
+
declare const Email: React.FC<antd21.InputProps & {
|
|
7
7
|
onChange: (value: string) => void;
|
|
8
8
|
} & WithModeProps & WithFormItemProps>;
|
|
9
9
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
2
|
import * as antd18 from "antd";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as antd_es_input3 from "antd/es/input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/dataSourceComponents/fields/Input.Password/index.d.ts
|
|
7
|
-
declare const Password: React.FC<
|
|
7
|
+
declare const Password: React.FC<antd_es_input3.PasswordProps & React.RefAttributes<antd18.InputRef> & WithModeProps & WithFormItemProps>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Password };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as antd22 from "antd";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts
|
|
6
|
-
declare const Subdomain: React.FC<
|
|
6
|
+
declare const Subdomain: React.FC<antd22.InputProps & {
|
|
7
7
|
onChange: (value: string) => void;
|
|
8
8
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
9
|
-
rootDomain: "
|
|
9
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
10
10
|
customDomain?: string | undefined;
|
|
11
11
|
value?: string | undefined;
|
|
12
12
|
tenantId: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as antd_es_input4 from "antd/es/input";
|
|
4
4
|
import * as antd_es_input_TextArea0 from "antd/es/input/TextArea";
|
|
5
5
|
|
|
6
6
|
//#region src/components/dataSourceComponents/fields/Input.TextArea/index.d.ts
|
|
7
|
-
declare const TextArea: React.FC<
|
|
7
|
+
declare const TextArea: React.FC<antd_es_input4.TextAreaProps & React.RefAttributes<antd_es_input_TextArea0.TextAreaRef> & WithModeProps & WithFormItemProps>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TextArea };
|
|
@@ -6,7 +6,7 @@ import * as antd_es_select0 from "antd/es/select";
|
|
|
6
6
|
//#region src/components/dataSourceComponents/fields/Select/index.d.ts
|
|
7
7
|
declare const SelectWithDataSource: (props: antd0.SelectProps<any, antd_es_select0.DefaultOptionType> & WithModeProps & WithFormItemProps & {
|
|
8
8
|
options?: any;
|
|
9
|
-
optionSourceType?: "
|
|
9
|
+
optionSourceType?: "custom" | "default" | "api" | undefined;
|
|
10
10
|
labelField: string;
|
|
11
11
|
valueField: string;
|
|
12
12
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react7 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/date-picker/index.d.ts
|
|
5
|
-
declare const DatePicker: (props: any) =>
|
|
5
|
+
declare const DatePicker: (props: any) => react7.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DatePicker };
|
|
@@ -43,12 +43,16 @@ const Dropdown$1 = (props) => {
|
|
|
43
43
|
quickFilter: getText("table-action-filter-quick-filter-tip"),
|
|
44
44
|
otherFilter: getText("table-action-filter-other-filter-tip")
|
|
45
45
|
};
|
|
46
|
+
const getTooltipTitle = useCallback((id) => {
|
|
47
|
+
const fn = tooltipMap[id];
|
|
48
|
+
return typeof fn === "function" ? fn(quickFilterMaxLength) : fn;
|
|
49
|
+
}, [quickFilterMaxLength]);
|
|
46
50
|
const renderContainer = useCallback(({ children, ref, id }) => {
|
|
47
|
-
return /* @__PURE__ */ React.createElement("div", { className: "filter-dropdown-container-wrap" }, /* @__PURE__ */ React.createElement("div", { className: "filter-dropdown-container-title-wrap" }, /* @__PURE__ */ React.createElement("span", { className: "filter-dropdown-container-title" }, titleMap[id]), /* @__PURE__ */ React.createElement(Tooltip, { title:
|
|
51
|
+
return /* @__PURE__ */ React.createElement("div", { className: "filter-dropdown-container-wrap" }, /* @__PURE__ */ React.createElement("div", { className: "filter-dropdown-container-title-wrap" }, /* @__PURE__ */ React.createElement("span", { className: "filter-dropdown-container-title" }, titleMap[id]), /* @__PURE__ */ React.createElement(Tooltip, { title: getTooltipTitle(id) }, /* @__PURE__ */ React.createElement(HelpCircle, { className: "filter-dropdown-container-icon-help" }))), /* @__PURE__ */ React.createElement("div", {
|
|
48
52
|
ref,
|
|
49
53
|
className: "filter-dropdown-container-filter-wrap"
|
|
50
54
|
}, children));
|
|
51
|
-
}, [quickFilterMaxLength]);
|
|
55
|
+
}, [quickFilterMaxLength, getTooltipTitle]);
|
|
52
56
|
return /* @__PURE__ */ React.createElement("div", { className: "filter-dropdown-wrap" }, /* @__PURE__ */ React.createElement("div", { className: "filter-dropdown-wrap-content" }, /* @__PURE__ */ React.createElement(MultipleContainersSortList_default, {
|
|
53
57
|
list,
|
|
54
58
|
rowKey: "name",
|
|
@@ -7,7 +7,7 @@ import React, { useMemo, useRef, useState } from "react";
|
|
|
7
7
|
import FilterLines from "@pisell/icon/es/FilterLines";
|
|
8
8
|
|
|
9
9
|
//#region src/components/filter/components/FilterButton/index.tsx
|
|
10
|
-
const Filter = ({ value, hiddenQuickFilter, hiddenOtherFilter, onChange, quickFilterMaxLength, formFiltersPrefix, renderItem, placement }) => {
|
|
10
|
+
const Filter = ({ value, hiddenQuickFilter, hiddenOtherFilter, onChange, quickFilterMaxLength, formFiltersPrefix, renderItem, placement, size = "large", buttonClassName }) => {
|
|
11
11
|
const ref = useRef(null);
|
|
12
12
|
const [open, setOpen] = useState(false);
|
|
13
13
|
const [dateRangeOpen, setDateRangeOpen] = useState(false);
|
|
@@ -55,8 +55,9 @@ const Filter = ({ value, hiddenQuickFilter, hiddenOtherFilter, onChange, quickFi
|
|
|
55
55
|
},
|
|
56
56
|
placement
|
|
57
57
|
}, /* @__PURE__ */ React.createElement(Button, {
|
|
58
|
+
className: buttonClassName,
|
|
58
59
|
icon: /* @__PURE__ */ React.createElement(FilterLines, null),
|
|
59
|
-
size
|
|
60
|
+
size
|
|
60
61
|
}, isMobileBool ? null : getText("table-action-filter-button"))));
|
|
61
62
|
};
|
|
62
63
|
var FilterButton_default = Filter;
|
|
@@ -4,7 +4,8 @@ import { FilterItemProps } from "../../types.js";
|
|
|
4
4
|
//#region src/components/filter/components/FilterButton/types.d.ts
|
|
5
5
|
type FilterValueType = {
|
|
6
6
|
quickFilter: FilterItemProps[];
|
|
7
|
-
otherFilter: FilterItemProps[];
|
|
7
|
+
otherFilter: FilterItemProps[]; /** 筛选项表单值,字段名 -> 值,与 Form 的 values 一致 */
|
|
8
|
+
values?: Record<string, any>;
|
|
8
9
|
};
|
|
9
10
|
type FilterListProps = {
|
|
10
11
|
value?: FilterValueType;
|
|
@@ -14,7 +15,9 @@ type FilterListProps = {
|
|
|
14
15
|
quickFilterMaxLength: number;
|
|
15
16
|
formFiltersPrefix: string;
|
|
16
17
|
renderItem?: (item: any, otherProps?: any) => React.ReactNode;
|
|
17
|
-
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
18
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom'; /** 筛选按钮尺寸,与 antd Button size 一致 */
|
|
19
|
+
size?: 'small' | 'middle' | 'large'; /** 筛选触发按钮的 className,用于定制样式(如与设计系统对齐) */
|
|
20
|
+
buttonClassName?: string;
|
|
18
21
|
};
|
|
19
22
|
//#endregion
|
|
20
23
|
export { FilterListProps };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js";
|
|
2
|
+
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutProperties.js";
|
|
3
|
+
import PisellSingleSelect_default from "../../../pisellSingleSelect/PisellSingleSelect.js";
|
|
4
|
+
import PisellMultipleSelect_default from "../../../pisellMultipleSelect/PisellMultipleSelect.js";
|
|
5
|
+
import { Spin } from "antd";
|
|
6
|
+
import React, { useEffect, useState } from "react";
|
|
7
|
+
|
|
8
|
+
//#region src/components/filter/components/FilterItem/AsyncOptionsSelectWrapper.tsx
|
|
9
|
+
/**
|
|
10
|
+
* 筛选项中 singleSelect/multipleSelect 的异步 options 包装器。
|
|
11
|
+
* 当列配置传入 getOptions(同步或异步)时,先解析再渲染 PisellSingleSelect/PisellMultipleSelect。
|
|
12
|
+
*/
|
|
13
|
+
const _excluded = [
|
|
14
|
+
"getOptions",
|
|
15
|
+
"fieldType",
|
|
16
|
+
"value",
|
|
17
|
+
"onChange"
|
|
18
|
+
];
|
|
19
|
+
function normalizeOptions(list) {
|
|
20
|
+
if (!Array.isArray(list)) return [];
|
|
21
|
+
return list.map((item) => item && typeof item === "object" && "label" in item && "value" in item ? {
|
|
22
|
+
label: String(item.label),
|
|
23
|
+
value: item.value
|
|
24
|
+
} : {
|
|
25
|
+
label: String(item),
|
|
26
|
+
value: item
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const AsyncOptionsSelectWrapper = (props) => {
|
|
30
|
+
const { getOptions, fieldType, value, onChange } = props, rest = _objectWithoutProperties(props, _excluded);
|
|
31
|
+
const [options, setOptions] = useState([]);
|
|
32
|
+
const [loading, setLoading] = useState(true);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
setLoading(true);
|
|
35
|
+
const result = getOptions();
|
|
36
|
+
Promise.resolve(result).then((list) => {
|
|
37
|
+
setOptions(normalizeOptions(list));
|
|
38
|
+
}).finally(() => {
|
|
39
|
+
setLoading(false);
|
|
40
|
+
});
|
|
41
|
+
}, [getOptions]);
|
|
42
|
+
const commonProps = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
43
|
+
options,
|
|
44
|
+
mode: "edit"
|
|
45
|
+
});
|
|
46
|
+
if (loading) return /* @__PURE__ */ React.createElement(Spin, {
|
|
47
|
+
spinning: true,
|
|
48
|
+
size: "small"
|
|
49
|
+
}, /* @__PURE__ */ React.createElement("span", { style: {
|
|
50
|
+
display: "inline-block",
|
|
51
|
+
minWidth: 120,
|
|
52
|
+
minHeight: 32
|
|
53
|
+
} }));
|
|
54
|
+
if (fieldType === "multipleSelect") return /* @__PURE__ */ React.createElement(PisellMultipleSelect_default, _objectSpread2(_objectSpread2({}, commonProps), {}, {
|
|
55
|
+
value,
|
|
56
|
+
onChange
|
|
57
|
+
}));
|
|
58
|
+
return /* @__PURE__ */ React.createElement(PisellSingleSelect_default, _objectSpread2(_objectSpread2({}, commonProps), {}, {
|
|
59
|
+
value,
|
|
60
|
+
onChange
|
|
61
|
+
}));
|
|
62
|
+
};
|
|
63
|
+
AsyncOptionsSelectWrapper.displayName = "AsyncOptionsSelectWrapper";
|
|
64
|
+
var AsyncOptionsSelectWrapper_default = AsyncOptionsSelectWrapper;
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { AsyncOptionsSelectWrapper_default as default };
|
|
@@ -1,20 +1,119 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js";
|
|
2
|
+
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutProperties.js";
|
|
3
|
+
import { getText } from "../../../../locales/index.js";
|
|
2
4
|
import { fieldMaps } from "../../../table/Table/fields/index.js";
|
|
3
|
-
import
|
|
5
|
+
import PisellSingleLineText_default from "../../../pisellSingleLineText/PisellSingleLineText.js";
|
|
6
|
+
import PisellLongText_default from "../../../pisellLongText/PisellLongText.js";
|
|
7
|
+
import PisellEmail_default from "../../../pisellEmail/PisellEmail.js";
|
|
8
|
+
import PisellPhone_default from "../../../pisellPhone/PisellPhone.js";
|
|
9
|
+
import PisellUrl_default from "../../../pisellUrl/PisellUrl.js";
|
|
10
|
+
import PisellNumber_default from "../../../pisellNumber/PisellNumber.js";
|
|
11
|
+
import PisellCurrency_default from "../../../pisellCurrency/PisellCurrency.js";
|
|
12
|
+
import PisellPercent_default from "../../../pisellPercent/PisellPercent.js";
|
|
13
|
+
import PisellRating_default from "../../../pisellRating/PisellRating.js";
|
|
14
|
+
import PisellSingleSelect_default from "../../../pisellSingleSelect/PisellSingleSelect.js";
|
|
15
|
+
import PisellMultipleSelect_default from "../../../pisellMultipleSelect/PisellMultipleSelect.js";
|
|
16
|
+
import AsyncOptionsSelectWrapper_default from "./AsyncOptionsSelectWrapper.js";
|
|
17
|
+
import { DatePicker, Form } from "antd";
|
|
4
18
|
import React, { useMemo } from "react";
|
|
19
|
+
import dayjs from "dayjs";
|
|
5
20
|
import "./index.less";
|
|
6
21
|
|
|
7
22
|
//#region src/components/filter/components/FilterItem/index.tsx
|
|
23
|
+
const _excluded = ["value", "onChange"], _excluded2 = ["getOptions"];
|
|
24
|
+
const { RangePicker } = DatePicker;
|
|
25
|
+
/** 列 type(RecordBoardFieldType)对应 Pisell 组件,用于筛选项编辑态;与 RecordBoard 列 type 一致 */
|
|
26
|
+
const PISELL_FIELD_TYPE_MAP = {
|
|
27
|
+
singleLineText: PisellSingleLineText_default,
|
|
28
|
+
longText: PisellLongText_default,
|
|
29
|
+
email: PisellEmail_default,
|
|
30
|
+
phone: PisellPhone_default,
|
|
31
|
+
url: PisellUrl_default,
|
|
32
|
+
number: PisellNumber_default,
|
|
33
|
+
currency: PisellCurrency_default,
|
|
34
|
+
percent: PisellPercent_default,
|
|
35
|
+
rating: PisellRating_default,
|
|
36
|
+
singleSelect: PisellSingleSelect_default,
|
|
37
|
+
multipleSelect: PisellMultipleSelect_default
|
|
38
|
+
};
|
|
39
|
+
/** 筛选类型到 table field 类型的映射(table fields 无 single/input,用 select/text) */
|
|
40
|
+
const FILTER_TYPE_TO_FIELD = {
|
|
41
|
+
single: "select",
|
|
42
|
+
input: "text",
|
|
43
|
+
datePicker: "date",
|
|
44
|
+
rangePicker: "rangePicker",
|
|
45
|
+
search: "search"
|
|
46
|
+
};
|
|
47
|
+
/** 将 form 中可能为 string[] 或 dayjs[] 的值转为 RangePicker 需要的 [Dayjs, Dayjs] | null */
|
|
48
|
+
function toRangePickerValue(val) {
|
|
49
|
+
if (val == null) return null;
|
|
50
|
+
if (Array.isArray(val) && val.length >= 2) {
|
|
51
|
+
const start = val[0] ? dayjs.isDayjs(val[0]) ? val[0] : dayjs(val[0]) : null;
|
|
52
|
+
const end = val[1] ? dayjs.isDayjs(val[1]) ? val[1] : dayjs(val[1]) : null;
|
|
53
|
+
if (start && end) return [start, end];
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
/** 使用 antd RangePicker,仅做 value 归一化以兼容 form 里存的 string[] */
|
|
58
|
+
const AntdRangePickerWithValue = React.forwardRef(function AntdRangePickerWithValue(_ref, ref) {
|
|
59
|
+
let { value, onChange } = _ref, rest = _objectWithoutProperties(_ref, _excluded);
|
|
60
|
+
const normalized = toRangePickerValue(value);
|
|
61
|
+
return /* @__PURE__ */ React.createElement(RangePicker, _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
62
|
+
ref,
|
|
63
|
+
placeholder: [getText("table-action-range-picker-placeholder-start"), getText("table-action-range-picker-placeholder-end")],
|
|
64
|
+
value: normalized,
|
|
65
|
+
onChange: (dates) => onChange === null || onChange === void 0 ? void 0 : onChange(dates !== null && dates !== void 0 ? dates : void 0)
|
|
66
|
+
}));
|
|
67
|
+
});
|
|
8
68
|
const FilterItem = (props) => {
|
|
9
|
-
|
|
69
|
+
var _componentProps$getOp;
|
|
70
|
+
const { label, type, name, other, isHidden, props: itemProps } = props;
|
|
71
|
+
const fieldTypeFromColumn = other === null || other === void 0 ? void 0 : other.fieldType;
|
|
72
|
+
const PisellCom = fieldTypeFromColumn ? PISELL_FIELD_TYPE_MAP[fieldTypeFromColumn] : void 0;
|
|
73
|
+
if (type === "custom") {
|
|
74
|
+
const CustomComponent = other === null || other === void 0 ? void 0 : other.component;
|
|
75
|
+
if (!CustomComponent) return null;
|
|
76
|
+
const componentProps$1 = _objectSpread2(_objectSpread2({}, itemProps || {}), other || {});
|
|
77
|
+
delete componentProps$1.component;
|
|
78
|
+
return /* @__PURE__ */ React.createElement(Form.Item, _objectSpread2({
|
|
79
|
+
label,
|
|
80
|
+
name,
|
|
81
|
+
hidden: isHidden
|
|
82
|
+
}, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}), /* @__PURE__ */ React.createElement(CustomComponent, componentProps$1));
|
|
83
|
+
}
|
|
84
|
+
if (type === "rangePicker") {
|
|
85
|
+
const componentProps$1 = _objectSpread2(_objectSpread2(_objectSpread2({}, itemProps || {}), other || {}), {}, { prefixCls: "pisell-lowcode" });
|
|
86
|
+
return /* @__PURE__ */ React.createElement(Form.Item, _objectSpread2(_objectSpread2({
|
|
87
|
+
label,
|
|
88
|
+
name
|
|
89
|
+
}, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}), {}, {
|
|
90
|
+
hidden: isHidden,
|
|
91
|
+
className: "pisell-lowcode-range-picker-wrap"
|
|
92
|
+
}), /* @__PURE__ */ React.createElement(AntdRangePickerWithValue, componentProps$1));
|
|
93
|
+
}
|
|
10
94
|
const Com = useMemo(() => {
|
|
11
|
-
var _fieldMaps;
|
|
12
|
-
|
|
13
|
-
|
|
95
|
+
var _FILTER_TYPE_TO_FIELD, _fieldMaps;
|
|
96
|
+
if (PisellCom) return PisellCom;
|
|
97
|
+
return (_fieldMaps = fieldMaps[(_FILTER_TYPE_TO_FIELD = FILTER_TYPE_TO_FIELD[type]) !== null && _FILTER_TYPE_TO_FIELD !== void 0 ? _FILTER_TYPE_TO_FIELD : type]) === null || _fieldMaps === void 0 ? void 0 : _fieldMaps.edit;
|
|
98
|
+
}, [type, PisellCom]);
|
|
99
|
+
if (!Com) return null;
|
|
100
|
+
const isPisell = Boolean(PisellCom);
|
|
101
|
+
const componentProps = _objectSpread2(_objectSpread2(_objectSpread2({}, itemProps || {}), other || {}), isPisell ? { mode: "edit" } : {});
|
|
102
|
+
const getOptions = (_componentProps$getOp = componentProps.getOptions) !== null && _componentProps$getOp !== void 0 ? _componentProps$getOp : other === null || other === void 0 ? void 0 : other.getOptions;
|
|
103
|
+
if (isPisell && typeof getOptions === "function" && (fieldTypeFromColumn === "singleSelect" || fieldTypeFromColumn === "multipleSelect") && fieldTypeFromColumn) {
|
|
104
|
+
const { getOptions: _go } = componentProps, restProps = _objectWithoutProperties(componentProps, _excluded2);
|
|
105
|
+
return /* @__PURE__ */ React.createElement(Form.Item, _objectSpread2(_objectSpread2({
|
|
106
|
+
label,
|
|
107
|
+
name
|
|
108
|
+
}, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}), {}, { hidden: isHidden }), /* @__PURE__ */ React.createElement(AsyncOptionsSelectWrapper_default, _objectSpread2({
|
|
109
|
+
getOptions,
|
|
110
|
+
fieldType: fieldTypeFromColumn
|
|
111
|
+
}, restProps)));
|
|
112
|
+
}
|
|
14
113
|
return /* @__PURE__ */ React.createElement(Form.Item, _objectSpread2(_objectSpread2({
|
|
15
114
|
label,
|
|
16
115
|
name
|
|
17
|
-
}, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}), {}, { hidden: isHidden }), /* @__PURE__ */ React.createElement(Com,
|
|
116
|
+
}, (other === null || other === void 0 ? void 0 : other.formItemProps) || {}), {}, { hidden: isHidden }), /* @__PURE__ */ React.createElement(Com, componentProps));
|
|
18
117
|
};
|
|
19
118
|
var FilterItem_default = FilterItem;
|
|
20
119
|
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FilterItem 样式
|
|
3
|
+
* RangePicker 按 Figma Pisell 2.0 Component Library (node-id=13586-90520)
|
|
4
|
+
* 使用 pisell-lowcode- 前缀(RangePicker 传入 prefixCls="pisell-lowcode")
|
|
5
|
+
* - Border: Gray/300 #D0D5DD, 1px
|
|
6
|
+
* - Background: Base/White #FFFFFF
|
|
7
|
+
* - Text/Icon: Gray/500 #667085
|
|
8
|
+
* - Typography: Text md/Regular - Inter 16px, weight 400, line-height 24px
|
|
9
|
+
* - Shadow: Shadow/xs 0 1px 2px rgba(16, 24, 40, 0.05)
|
|
10
|
+
* - Border radius: 8px
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.pisell-lowcode-range-picker-wrap {
|
|
14
|
+
width: 257px;
|
|
15
|
+
|
|
16
|
+
.pisell-lowcode-range {
|
|
17
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
18
|
+
font-size: 16px;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
line-height: 24px;
|
|
21
|
+
letter-spacing: 0;
|
|
22
|
+
color: #667085;
|
|
23
|
+
border-radius: 8px;
|
|
24
|
+
border: 1px solid #d0d5dd;
|
|
25
|
+
background: #ffffff;
|
|
26
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 48px;
|
|
29
|
+
min-height: 48px;
|
|
30
|
+
padding: 6px 11px;
|
|
31
|
+
|
|
32
|
+
.pisell-lowcode-picker-input {
|
|
33
|
+
height: 36px;
|
|
34
|
+
|
|
35
|
+
> input {
|
|
36
|
+
font-family: inherit;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
line-height: 24px;
|
|
40
|
+
color: #667085;
|
|
41
|
+
|
|
42
|
+
&::placeholder {
|
|
43
|
+
color: #667085;
|
|
44
|
+
opacity: 0.6;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pisell-lowcode-picker-separator {
|
|
50
|
+
color: #667085;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pisell-lowcode-picker-suffix,
|
|
54
|
+
.pisell-lowcode-picker-clear {
|
|
55
|
+
color: #667085;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
border-color: #d0d5dd;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.pisell-lowcode-picker-focused {
|
|
63
|
+
border-color: #d0d5dd;
|
|
64
|
+
box-shadow: 0 0 0 2px rgba(16, 24, 40, 0.05);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.pisell-lowcode-picker-large {
|
|
68
|
+
height: 48px;
|
|
69
|
+
min-height: 48px;
|
|
70
|
+
padding: 6px 11px;
|
|
71
|
+
|
|
72
|
+
.pisell-lowcode-picker-input {
|
|
73
|
+
height: 36px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.pisell-lowcode-picker-small {
|
|
78
|
+
min-height: 32px;
|
|
79
|
+
padding: 2px 7px;
|
|
80
|
+
|
|
81
|
+
.pisell-lowcode-picker-input {
|
|
82
|
+
height: 24px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.pisell-lowcode-picker-input > input {
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -15,12 +15,14 @@ type FilterType = {
|
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* 筛选列表项配置
|
|
18
|
+
* - type 为 single/input/rangePicker 等时使用内置或映射组件
|
|
19
|
+
* - type 为 "custom" 时使用 other.component,组件接收 value/onChange(由 Form 注入)
|
|
18
20
|
*/
|
|
19
21
|
type FilterItemProps = {
|
|
20
|
-
type: "single" | "input" | "datePicker" | "rangePicker" | "search";
|
|
22
|
+
type: "single" | "input" | "datePicker" | "rangePicker" | "search" | "custom";
|
|
21
23
|
name?: string | string[];
|
|
22
24
|
key: string;
|
|
23
|
-
props
|
|
25
|
+
props?: object;
|
|
24
26
|
label?: string;
|
|
25
27
|
sort?: boolean;
|
|
26
28
|
localFilter?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps, InputRef } from "antd";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react0 from "react";
|
|
4
4
|
import * as antd_es_input0 from "antd/es/input";
|
|
5
5
|
import * as antd_es_input_TextArea0 from "antd/es/input/TextArea";
|
|
6
6
|
|
|
7
7
|
//#region src/components/input/index.d.ts
|
|
8
|
-
declare const OriginalGroup:
|
|
8
|
+
declare const OriginalGroup: react0.FC<antd_es_input0.GroupProps>, OriginalTextArea: react0.ForwardRefExoticComponent<antd_es_input0.TextAreaProps & react0.RefAttributes<antd_es_input_TextArea0.TextAreaRef>>, OriginalPassword: react0.ForwardRefExoticComponent<antd_es_input0.PasswordProps & react0.RefAttributes<InputRef>>, OriginalSearch: react0.ForwardRefExoticComponent<antd_es_input0.SearchProps & react0.RefAttributes<InputRef>>;
|
|
9
9
|
type CompoundedComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> & {
|
|
10
10
|
Group: typeof OriginalGroup;
|
|
11
11
|
Search: typeof OriginalSearch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
2
|
+
import * as react8 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pisell-config-provider/context.d.ts
|
|
5
5
|
interface PisellContextType {
|
|
@@ -11,7 +11,7 @@ interface PisellContextType {
|
|
|
11
11
|
/** 获取货币符号 */
|
|
12
12
|
getSymbolic?: () => string;
|
|
13
13
|
}
|
|
14
|
-
declare const PisellContext:
|
|
14
|
+
declare const PisellContext: react8.Context<PisellContextType>;
|
|
15
15
|
/**
|
|
16
16
|
* provider外获取当前全局配置
|
|
17
17
|
*/
|