@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.
Files changed (56) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
  8. package/es/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
  9. package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
  10. package/es/components/PisellProcedure/index.d.ts +5 -0
  11. package/es/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  12. package/es/components/PisellTabbar/components/index.d.ts +1 -0
  13. package/es/components/PisellTabbar/index.d.ts +9 -0
  14. package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  15. package/es/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
  16. package/es/components/PisellTabbar2/components/index.d.ts +1 -0
  17. package/es/components/PisellTabbar3/index.d.ts +6 -0
  18. package/es/components/batch-editor/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
  20. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/index.d.ts +3 -3
  22. package/es/components/pisellDataSourceContainer/components/Filter/QuickFilter.d.ts +10 -0
  23. package/es/components/pisellDataSourceContainer/components/Sort/index.d.ts +9 -0
  24. package/es/components/pisellQuickFilter/index.d.ts +11 -0
  25. package/es/components/pisellSort/index.d.ts +4 -0
  26. package/es/components/select-time/index.d.ts +0 -1
  27. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  28. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  29. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  30. package/es/components/translation/index.d.ts +1 -0
  31. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
  32. package/lib/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
  33. package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
  34. package/lib/components/PisellProcedure/index.d.ts +5 -0
  35. package/lib/components/PisellTabbar/PisellTabbar.d.ts +20 -0
  36. package/lib/components/PisellTabbar/components/index.d.ts +1 -0
  37. package/lib/components/PisellTabbar/index.d.ts +9 -0
  38. package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
  39. package/lib/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
  40. package/lib/components/PisellTabbar2/components/index.d.ts +1 -0
  41. package/lib/components/PisellTabbar3/index.d.ts +6 -0
  42. package/lib/components/batch-editor/index.d.ts +1 -0
  43. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
  44. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
  45. package/lib/components/dataSourceComponents/fields/index.d.ts +3 -3
  46. package/lib/components/pisellDataSourceContainer/components/Filter/QuickFilter.d.ts +10 -0
  47. package/lib/components/pisellDataSourceContainer/components/Sort/index.d.ts +9 -0
  48. package/lib/components/pisellQuickFilter/index.d.ts +11 -0
  49. package/lib/components/pisellSort/index.d.ts +4 -0
  50. package/lib/components/select-time/index.d.ts +0 -1
  51. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  52. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  53. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  54. package/lib/components/translation/index.d.ts +1 -0
  55. package/lowcode/auto-resize-text/meta.ts +1 -1
  56. 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';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * PisellTabbar 组件导出文件
3
+ * @module PisellTabbar
4
+ */
5
+ export { default } from './PisellTabbar';
6
+ export type { PisellTabbarProps, TabbarDataSource, LevelType } from './types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -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,
@@ -13,4 +13,5 @@ export interface TranslationProps {
13
13
  placeholder?: string;
14
14
  className?: string;
15
15
  type?: 'text' | 'textarea';
16
+ maxLength?: number;
16
17
  }
@@ -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("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & 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<{}> & {
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;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PisellSortProps } from './type';
3
+ declare const PisellSort: (props: PisellSortProps) => JSX.Element;
4
+ export default PisellSort;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -9,6 +9,7 @@ interface TranslationProps {
9
9
  value: Value;
10
10
  onChange: (value: Value) => void;
11
11
  maxLength?: number;
12
+ id?: string;
12
13
  }
13
14
  declare const Translation: React.FC<TranslationProps>;
14
15
  export default Translation;
@@ -9,7 +9,7 @@ const AutoResizeTextMeta: ComponentMetadata = {
9
9
  "devMode": "proCode",
10
10
  "npm": {
11
11
  "package": "@pisell/materials",
12
- "version": "3.3.79",
12
+ "version": "3.3.80",
13
13
  "exportName": "AutoResizeText",
14
14
  "main": "src/index.tsx",
15
15
  "destructuring": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "3.3.80",
3
+ "version": "3.3.81",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",