@pisell/materials 3.3.80 → 3.3.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/es/components/PisellProcedure/index.d.ts +5 -0
- package/es/components/PisellTabbar/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar/components/index.d.ts +1 -0
- package/es/components/PisellTabbar/index.d.ts +9 -0
- package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/es/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/es/components/PisellTabbar2/components/index.d.ts +1 -0
- package/es/components/PisellTabbar3/index.d.ts +6 -0
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +3 -3
- package/es/components/pisellDataSourceContainer/components/Filter/QuickFilter.d.ts +10 -0
- package/es/components/pisellDataSourceContainer/components/Sort/index.d.ts +9 -0
- package/es/components/pisellQuickFilter/index.d.ts +11 -0
- package/es/components/pisellSort/index.d.ts +4 -0
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/translation/index.d.ts +1 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/lib/components/PisellProcedure/index.d.ts +5 -0
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar/components/index.d.ts +1 -0
- package/lib/components/PisellTabbar/index.d.ts +9 -0
- package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/lib/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/lib/components/PisellTabbar2/components/index.d.ts +1 -0
- package/lib/components/PisellTabbar3/index.d.ts +6 -0
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +3 -3
- package/lib/components/pisellDataSourceContainer/components/Filter/QuickFilter.d.ts +10 -0
- package/lib/components/pisellDataSourceContainer/components/Sort/index.d.ts +9 -0
- package/lib/components/pisellQuickFilter/index.d.ts +11 -0
- package/lib/components/pisellSort/index.d.ts +4 -0
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/translation/index.d.ts +1 -0
- package/lowcode/auto-resize-text/meta.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getDefaultActiveKey } from './utils';
|
|
3
|
+
import { PisellTabbarProps } from './types';
|
|
4
|
+
import './PisellTabbar.less';
|
|
5
|
+
/**
|
|
6
|
+
* PisellTabbar - 多层级 Tabbar 组件
|
|
7
|
+
*
|
|
8
|
+
* 支持最多 3 层级的 Tab 导航,每层级可独立展开/收起
|
|
9
|
+
*
|
|
10
|
+
* @component
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <PisellTabbar
|
|
14
|
+
* dataSource={categoryData}
|
|
15
|
+
* value={[1, 10, 100]}
|
|
16
|
+
* onChange={(value) => console.log('当前选中:', value)}
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const PisellTabbar: React.FC<PisellTabbarProps> & {
|
|
21
|
+
getDefaultActiveKey: typeof getDefaultActiveKey;
|
|
22
|
+
};
|
|
23
|
+
export default PisellTabbar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TabbarLevel } from './TabbarLevel';
|
|
@@ -54,8 +54,9 @@ var Translation = ({
|
|
|
54
54
|
onChange,
|
|
55
55
|
placeholder,
|
|
56
56
|
disabled,
|
|
57
|
-
type = "text"
|
|
57
|
+
type = "text",
|
|
58
58
|
// 默认为普通文本输入
|
|
59
|
+
maxLength
|
|
59
60
|
}) => {
|
|
60
61
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
61
62
|
const getInputComponent = (0, import_react.useCallback)(() => {
|
|
@@ -88,7 +89,8 @@ var Translation = ({
|
|
|
88
89
|
{
|
|
89
90
|
value: (value == null ? void 0 : value[key]) || "",
|
|
90
91
|
onChange: handleInputChange(key),
|
|
91
|
-
allowClear: true
|
|
92
|
+
allowClear: true,
|
|
93
|
+
maxLength
|
|
92
94
|
}
|
|
93
95
|
)))));
|
|
94
96
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "translation-wrapper" }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -98,7 +100,8 @@ var Translation = ({
|
|
|
98
100
|
onChange: handleInputChange("original"),
|
|
99
101
|
placeholder,
|
|
100
102
|
disabled,
|
|
101
|
-
className: "translation-input"
|
|
103
|
+
className: "translation-input",
|
|
104
|
+
maxLength
|
|
102
105
|
}
|
|
103
106
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
104
107
|
import_antd.Popover,
|
|
@@ -60,11 +60,11 @@ declare const formFieldMap: {
|
|
|
60
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
62
|
};
|
|
63
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./
|
|
63
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
64
64
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
65
65
|
} & {
|
|
66
66
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
67
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
67
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
68
68
|
JSON: import("react").FC<any>;
|
|
69
69
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
70
70
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -96,7 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
96
96
|
extraParams?: Record<string, any> | undefined;
|
|
97
97
|
} & {
|
|
98
98
|
dataSource?: any;
|
|
99
|
-
}) => JSX.Element) | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
99
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
100
100
|
onChange: (value: string) => void;
|
|
101
101
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
102
102
|
export { getFieldComponent, formFieldMap };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { DataSourceContainerContextType } from '../../type';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Partial<{
|
|
5
|
+
filterList: import("../../../filter/types").FilterItemProps[];
|
|
6
|
+
formFiltersPrefix?: string | undefined;
|
|
7
|
+
}> & DataSourceContainerContextType & FormInstance<any> & React.RefAttributes<unknown> & {
|
|
8
|
+
refId?: string | undefined;
|
|
9
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import { DataSourceContainerContextType } from '../../type';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Partial<import("../../../sort/types").SortListProps> & DataSourceContainerContextType & {
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
} & FormInstance<any> & React.RefAttributes<unknown> & {
|
|
7
|
+
refId?: string | undefined;
|
|
8
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const pisellQuickFilter: React.ForwardRefExoticComponent<import("antd").FormInstance<any> & {
|
|
3
|
+
hasForm?: boolean | undefined;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
formFiltersPrefix: string;
|
|
6
|
+
filterList?: import("../filter/types").FilterItemProps[] | undefined;
|
|
7
|
+
quickFilterMaxLength: number;
|
|
8
|
+
hiddenQuickFilter: boolean;
|
|
9
|
+
hiddenOtherFilter: boolean;
|
|
10
|
+
} & React.RefAttributes<unknown>>;
|
|
11
|
+
export default pisellQuickFilter;
|