@pisell/materials 1.0.1073 → 1.0.1074

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 (135) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +2 -2
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +2 -2
  10. package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
  11. package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
  12. package/es/components/PisellCards/index.d.ts +1 -0
  13. package/es/components/PisellFields/index.d.ts +1 -0
  14. package/es/components/PisellLayouts/index.d.ts +1 -0
  15. package/es/components/PisellMetrics/index.d.ts +1 -0
  16. package/es/components/batch-editor/fields/index.d.ts +1 -0
  17. package/es/components/calendar/index.d.ts +1 -0
  18. package/es/components/checkbox/index.d.ts +1 -0
  19. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/index.d.ts +10 -9
  25. package/es/components/date-picker/index.d.ts +1 -0
  26. package/es/components/filter/components/items/index.d.ts +1 -0
  27. package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
  28. package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
  29. package/es/components/filter/components/items/text/index.d.ts +1 -0
  30. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +3 -2
  31. package/es/components/pisellDatePicker/index.d.ts +1 -0
  32. package/es/components/pisellModal/components/index.d.ts +1 -0
  33. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  34. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  35. package/es/components/radio/index.d.ts +1 -0
  36. package/es/components/skeleton/index.d.ts +1 -0
  37. package/es/components/table/Actions/component/GallerySetting/index.js +10 -9
  38. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  39. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  40. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  41. package/es/components/table/Table/fields/index.d.ts +3 -2
  42. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  43. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  44. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  45. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  50. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  51. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  53. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  54. package/es/components/table/Table/utils.d.ts +1 -1
  55. package/es/components/time-picker/index.d.ts +1 -0
  56. package/es/components/upload/index.d.ts +1 -0
  57. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  58. package/es/hooks/useResponsive.d.ts +1 -1
  59. package/es/locales/en-US.d.ts +9 -0
  60. package/es/locales/en-US.js +9 -0
  61. package/es/locales/ja.d.ts +9 -0
  62. package/es/locales/ja.js +9 -0
  63. package/es/locales/pt.d.ts +9 -0
  64. package/es/locales/pt.js +9 -0
  65. package/es/locales/zh-CN.d.ts +9 -0
  66. package/es/locales/zh-CN.js +9 -0
  67. package/es/locales/zh-TW.d.ts +9 -0
  68. package/es/locales/zh-TW.js +9 -0
  69. package/es/pisell-materials.tw.css +1 -1
  70. package/es/utils/index.d.ts +1 -1
  71. package/es/utils/platform.d.ts +1 -1
  72. package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +1 -0
  73. package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +1 -0
  74. package/lib/components/PisellCards/index.d.ts +1 -0
  75. package/lib/components/PisellFields/index.d.ts +1 -0
  76. package/lib/components/PisellLayouts/index.d.ts +1 -0
  77. package/lib/components/PisellMetrics/index.d.ts +1 -0
  78. package/lib/components/batch-editor/fields/index.d.ts +1 -0
  79. package/lib/components/calendar/index.d.ts +1 -0
  80. package/lib/components/checkbox/index.d.ts +1 -0
  81. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  82. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  83. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  84. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  85. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -0
  86. package/lib/components/dataSourceComponents/fields/index.d.ts +10 -9
  87. package/lib/components/date-picker/index.d.ts +1 -0
  88. package/lib/components/filter/components/items/index.d.ts +1 -0
  89. package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
  90. package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
  91. package/lib/components/filter/components/items/text/index.d.ts +1 -0
  92. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +3 -2
  93. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  94. package/lib/components/pisellModal/components/index.d.ts +1 -0
  95. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  96. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  97. package/lib/components/radio/index.d.ts +1 -0
  98. package/lib/components/skeleton/index.d.ts +1 -0
  99. package/lib/components/table/Actions/component/GallerySetting/index.js +22 -9
  100. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  101. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  102. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  103. package/lib/components/table/Table/fields/index.d.ts +3 -2
  104. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  105. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  106. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  107. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  108. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  109. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  110. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  111. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  112. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  113. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  114. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  115. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  116. package/lib/components/table/Table/utils.d.ts +1 -1
  117. package/lib/components/time-picker/index.d.ts +1 -0
  118. package/lib/components/upload/index.d.ts +1 -0
  119. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  120. package/lib/hooks/useResponsive.d.ts +1 -1
  121. package/lib/locales/en-US.d.ts +9 -0
  122. package/lib/locales/en-US.js +9 -0
  123. package/lib/locales/ja.d.ts +9 -0
  124. package/lib/locales/ja.js +9 -0
  125. package/lib/locales/pt.d.ts +9 -0
  126. package/lib/locales/pt.js +9 -0
  127. package/lib/locales/zh-CN.d.ts +9 -0
  128. package/lib/locales/zh-CN.js +9 -0
  129. package/lib/locales/zh-TW.d.ts +9 -0
  130. package/lib/locales/zh-TW.js +9 -0
  131. package/lib/pisell-materials.tw.css +1 -1
  132. package/lib/utils/index.d.ts +1 -1
  133. package/lib/utils/platform.d.ts +1 -1
  134. package/lowcode/pisell-record-board-calendar-view/meta.ts +1 -1
  135. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MultilevelCardTrigger } from '../types';
2
3
  /**
3
4
  * 管理 MultilevelCard 的展开/收起状态
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * 图片加载状态管理 Hook
3
4
  * @param src - 图片地址
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PisellEntityCard } from '../pisellEntityCard';
2
3
  declare const PisellCards: {
3
4
  TabCard: (props: any) => import("react").JSX.Element;
@@ -9,6 +9,7 @@
9
9
  * <PisellFields.Number value={123} viewMode="readonly" />
10
10
  * <PisellFields.Currency value={1000} currencySymbol="$" />
11
11
  */
12
+ /// <reference types="react" />
12
13
  declare const PisellFields: {
13
14
  SingleLineText: import("react").NamedExoticComponent<import("../pisellSingleLineText").PisellSingleLineTextProps>;
14
15
  LongText: import("react").NamedExoticComponent<import("../pisellLongText").PisellLongTextProps>;
@@ -13,6 +13,7 @@
13
13
  * <Content />
14
14
  * </PisellLayouts.ScrollView>
15
15
  */
16
+ /// <reference types="react" />
16
17
  declare const PisellLayouts: {
17
18
  BasicGrid: <T>(props: import("../PisellBasicGrid").PisellBasicGridProps<T>) => import("react").JSX.Element;
18
19
  ScrollView: import("react").ForwardRefExoticComponent<Omit<import("../PisellScrollView").PisellScrollViewProps, "ref"> & import("react").RefAttributes<import("../PisellScrollView").PisellScrollViewRef>>;
@@ -13,6 +13,7 @@
13
13
  * />
14
14
  * <PisellMetrics.StatisticList data={[...]} />
15
15
  */
16
+ /// <reference types="react" />
16
17
  declare const PisellMetrics: {
17
18
  MetricCard: import("react").FC<import("../pisellMetricCard").PisellMetricCardProps>;
18
19
  StatisticList: (props: import("../pisellStatisticList").PisellStatisticListProps) => import("react").JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  price: import("react").FC<import("./Price").PriceProps>;
3
4
  image: (props: import("./Image").ImageProps) => import("react").JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Calendar: (props: any) => import("react").JSX.Element;
2
3
  export default Calendar;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Checkbox: (props: any) => import("react").JSX.Element;
2
3
  export default Checkbox;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => import("react").JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
3
+ dataSourceKey: string | undefined;
4
+ dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
4
5
  };
5
6
  export default useDataSourceKey;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
22
+ title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
31
+ subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: {
34
34
  dom: any;
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
54
54
  width: number;
55
55
  align: "center" | "left" | "right";
56
56
  fixed: false | "left" | "right";
57
- type: "link" | "button";
57
+ type: "button" | "link";
58
58
  items: OperationItem[];
59
59
  } | undefined;
60
60
  operationContent?: {
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
72
72
  useCustomAction: boolean;
73
73
  actionType: string;
74
74
  openMode: "modal" | "drawer";
75
- openContentSize: "small" | "large" | "middle";
75
+ openContentSize: "small" | "middle" | "large";
76
76
  openTitle: string;
77
77
  key: string;
78
78
  } | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /** 包装 DataSource 层(提供数据源上下文) */
2
3
  declare const FormItemTabs: (props: import("./type").TabsProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
4
  options?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -80,7 +81,13 @@ declare const formFieldMap: {
80
81
  extraParams?: Record<string, any> | undefined;
81
82
  }) => import("react").JSX.Element;
82
83
  };
83
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
84
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
85
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
86
+ } & {
87
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DatePicker").DataSourceDatePickerProps> | 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("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
89
+ onChange: (value: string) => void;
90
+ } & 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("./Input/type").InputProps> & {
84
91
  JSON: import("react").FC<any>;
85
92
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
86
93
  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>;
@@ -100,11 +107,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
100
107
  name?: string | undefined;
101
108
  fieldKey?: string | undefined;
102
109
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
103
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DatePicker").DataSourceDatePickerProps> | (import("react").FC<{}> & {
104
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
105
- } & {
106
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
107
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
110
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
108
111
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
109
112
  } & {
110
113
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -117,9 +120,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
117
120
  } & {
118
121
  dataSource?: any;
119
122
  extraParams?: Record<string, any> | undefined;
120
- }) => import("react").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 & {
121
- onChange: (value: string) => void;
122
- } & 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("./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("./Upload/type").UploadProps & 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> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
123
+ }) => import("react").JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & 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("./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> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
123
124
  options?: any;
124
125
  optionSourceType?: "default" | "custom" | "api" | undefined;
125
126
  labelField: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => import("react").JSX.Element;
2
3
  export default DatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Text: () => import("react").JSX.Element;
2
3
  export default Text;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Text: (props: any) => import("react").JSX.Element;
2
3
  export default Text;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | import("../../dataSourceComponents/provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | import("../../dataSourceComponents/provider/dataSource/DataSourceContext").DataSourceType | undefined>;
3
+ dataSourceKey: string | undefined;
4
+ dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
4
5
  };
5
6
  export default useDataSourceKey;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PisellDatePicker: (props: any) => import("react").JSX.Element;
2
3
  export default PisellDatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  import PcModal from './PcModal';
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Radio: (props: any) => import("react").JSX.Element;
2
3
  export default Radio;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Skeleton: (props: any) => import("react").JSX.Element;
2
3
  export default Skeleton;
@@ -8,6 +8,7 @@ import React, { useMemo } from "react";
8
8
  import { EyeInvisibleOutlined, EyeOutlined } from "@ant-design/icons";
9
9
  import { Divider, Popover, Select, Segmented, Space, Form } from "antd";
10
10
  import PopoverContent from "../ColumnsSetting/PopoverContent";
11
+ import { getText } from "../../../../../locales";
11
12
  import { useSharedState } from "../../../../../hooks";
12
13
  import { Context } from "../../../model";
13
14
  import ButtonIcon from "../ButtonIcon";
@@ -47,7 +48,7 @@ var GallerySetting = function GallerySetting(props) {
47
48
  var coverFieldOptions = useMemo(function () {
48
49
  return [{
49
50
  value: "noCover",
50
- label: "无封面"
51
+ label: getText("table-action-gallery-no-cover")
51
52
  }].concat(_toConsumableArray((fields || []).map(function (field) {
52
53
  var column = defaultColumns.find(function (col) {
53
54
  return col.key === field;
@@ -68,7 +69,7 @@ var GallerySetting = function GallerySetting(props) {
68
69
  }
69
70
  }, show && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
70
71
  className: "".concat(prefix, "gallery-setting-header-item")
71
- }, /*#__PURE__*/React.createElement("div", null, "\u5C01\u9762\u5185\u5BB9"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
72
+ }, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-cover-content")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
72
73
  name: ["gallery_setting", "coverField"],
73
74
  noStyle: true
74
75
  }, /*#__PURE__*/React.createElement(Select, {
@@ -86,15 +87,15 @@ var GallerySetting = function GallerySetting(props) {
86
87
  var getFieldValue = _ref.getFieldValue;
87
88
  return getFieldValue(["gallery_setting", "coverField"]) !== "noCover" ? /*#__PURE__*/React.createElement("div", {
88
89
  className: "".concat(prefix, "gallery-setting-header-item")
89
- }, /*#__PURE__*/React.createElement("div", null, "\u5C01\u9762\u6548\u679C"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
90
+ }, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-cover-effect")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
90
91
  name: ["gallery_setting", "coverObjectFit"],
91
92
  noStyle: true
92
93
  }, /*#__PURE__*/React.createElement(Segmented, {
93
94
  options: [{
94
- label: "适应",
95
+ label: getText("table-action-gallery-cover-fit-fill"),
95
96
  value: "fill"
96
97
  }, {
97
- label: "剪裁",
98
+ label: getText("table-action-gallery-cover-fit-cover"),
98
99
  value: "cover"
99
100
  }]
100
101
  })))) : null;
@@ -104,15 +105,15 @@ var GallerySetting = function GallerySetting(props) {
104
105
  }
105
106
  })), /*#__PURE__*/React.createElement("div", {
106
107
  className: "".concat(prefix, "gallery-setting-header-item")
107
- }, /*#__PURE__*/React.createElement("div", null, "\u5C55\u793A\u6A21\u5F0F"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
108
+ }, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-display-mode")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
108
109
  name: ["gallery_setting", "compactMode"],
109
110
  noStyle: true
110
111
  }, /*#__PURE__*/React.createElement(Segmented, {
111
112
  options: [{
112
- label: "常规",
113
+ label: getText("table-action-gallery-display-mode-default"),
113
114
  value: "default"
114
115
  }, {
115
- label: "紧凑",
116
+ label: getText("table-action-gallery-display-mode-compact"),
116
117
  value: "compact"
117
118
  }]
118
119
  })))), /*#__PURE__*/React.createElement(Form.Item, {
@@ -125,7 +126,7 @@ var GallerySetting = function GallerySetting(props) {
125
126
  var getFieldValue = _ref2.getFieldValue;
126
127
  return getFieldValue(["gallery_setting", "compactMode"]) === "default" ? /*#__PURE__*/React.createElement("div", {
127
128
  className: "".concat(prefix, "gallery-setting-header-item")
128
- }, /*#__PURE__*/React.createElement("div", null, "\u5C55\u793A\u5B57\u6BB5\u540D"), /*#__PURE__*/React.createElement("div", {
129
+ }, /*#__PURE__*/React.createElement("div", null, getText("table-action-gallery-display-field-name")), /*#__PURE__*/React.createElement("div", {
129
130
  className: "".concat(prefix, "gallery-setting-header-item-icon-wrap")
130
131
  }, /*#__PURE__*/React.createElement(Form.Item, {
131
132
  name: ["gallery_setting", "isShowLabel"],
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: any;
3
- vertical: any;
2
+ horizontal: number;
3
+ vertical: number;
4
4
  };
5
5
  export default useGapSize;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -197,12 +198,12 @@ export declare const fieldList: ({
197
198
  field_icon: string;
198
199
  field_name: string;
199
200
  field_type: string;
200
- default_value: boolean;
201
+ default_value: string;
201
202
  } | {
202
203
  field_icon: string;
203
204
  field_name: string;
204
205
  field_type: string;
205
- default_value: string;
206
+ default_value: boolean;
206
207
  } | {
207
208
  field_icon: string;
208
209
  field_name: string;
@@ -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
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -161,7 +161,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
161
161
  sort?: SortType | undefined;
162
162
  mode: "" | "localStorage" | "remote";
163
163
  currentViewMode: ModeType;
164
- }) => ("filters" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
164
+ }) => ("filters" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
165
165
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
166
166
  export declare const stringify: (obj: Record<string, any>) => string;
167
167
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TimePicker: (props: any) => import("react").JSX.Element;
2
3
  export default TimePicker;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Upload: (props: any) => import("react").JSX.Element;
2
3
  export default Upload;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const formatStringToTime: (value: string) => {
2
3
  valueArray: string[];
3
4
  valueString: string;
@@ -1,4 +1,4 @@
1
1
  declare type ResponsiveConfig = Record<string, number>;
2
2
  export declare function configResponsive(config: ResponsiveConfig): void;
3
- export default function useResponsive(): "phone" | "pc" | "ipad";
3
+ export default function useResponsive(): "pc" | "ipad" | "phone";
4
4
  export {};
@@ -32,6 +32,15 @@ declare const _default: {
32
32
  'table-action-group-by-title': string;
33
33
  'table-action-group-by-title-tip': string;
34
34
  'table-action-column-title': string;
35
+ 'table-action-gallery-display-mode': string;
36
+ 'table-action-gallery-display-mode-default': string;
37
+ 'table-action-gallery-display-mode-compact': string;
38
+ 'table-action-gallery-display-field-name': string;
39
+ 'table-action-gallery-no-cover': string;
40
+ 'table-action-gallery-cover-content': string;
41
+ 'table-action-gallery-cover-effect': string;
42
+ 'table-action-gallery-cover-fit-fill': string;
43
+ 'table-action-gallery-cover-fit-cover': string;
35
44
  'table-column-group-records': string;
36
45
  'table-column-group-lock-tip': string;
37
46
  'record-board-uniform-summary-empty': string;
@@ -38,6 +38,15 @@ export default {
38
38
  'table-action-group-by-title': 'Group by',
39
39
  'table-action-group-by-title-tip': 'Please select the field from the dropdown menu to group the data for better organization and browsing.',
40
40
  'table-action-column-title': 'Header settings',
41
+ 'table-action-gallery-display-mode': 'Display mode',
42
+ 'table-action-gallery-display-mode-default': 'Default',
43
+ 'table-action-gallery-display-mode-compact': 'Compact',
44
+ 'table-action-gallery-display-field-name': 'Display field name',
45
+ 'table-action-gallery-no-cover': 'No cover',
46
+ 'table-action-gallery-cover-content': 'Cover content',
47
+ 'table-action-gallery-cover-effect': 'Cover effect',
48
+ 'table-action-gallery-cover-fit-fill': 'Fit',
49
+ 'table-action-gallery-cover-fit-cover': 'Crop',
41
50
  'table-column-group-records': 'records',
42
51
  'table-column-group-lock-tip': 'Fixed column immutable order',
43
52
  'record-board-uniform-summary-empty': '-',
@@ -29,6 +29,15 @@ declare const _default: {
29
29
  'table-action-group-by-title': string;
30
30
  'table-action-group-by-title-tip': string;
31
31
  'table-action-column-title': string;
32
+ 'table-action-gallery-display-mode': string;
33
+ 'table-action-gallery-display-mode-default': string;
34
+ 'table-action-gallery-display-mode-compact': string;
35
+ 'table-action-gallery-display-field-name': string;
36
+ 'table-action-gallery-no-cover': string;
37
+ 'table-action-gallery-cover-content': string;
38
+ 'table-action-gallery-cover-effect': string;
39
+ 'table-action-gallery-cover-fit-fill': string;
40
+ 'table-action-gallery-cover-fit-cover': string;
32
41
  'table-column-group-records': string;
33
42
  'table-column-group-lock-tip': string;
34
43
  'record-board-uniform-summary-empty': string;
package/es/locales/ja.js CHANGED
@@ -35,6 +35,15 @@ export default {
35
35
  'table-action-group-by-title': 'グループ化',
36
36
  'table-action-group-by-title-tip': 'データをより適切に整理して閲覧するために、ドロップダウンメニューからフィールドを選択してグループ化してください。',
37
37
  'table-action-column-title': 'ヘッダー設定',
38
+ 'table-action-gallery-display-mode': '表示モード',
39
+ 'table-action-gallery-display-mode-default': '標準',
40
+ 'table-action-gallery-display-mode-compact': 'コンパクト',
41
+ 'table-action-gallery-display-field-name': 'フィールド名を表示',
42
+ 'table-action-gallery-no-cover': 'カバーなし',
43
+ 'table-action-gallery-cover-content': 'カバー内容',
44
+ 'table-action-gallery-cover-effect': 'カバー効果',
45
+ 'table-action-gallery-cover-fit-fill': 'フィット',
46
+ 'table-action-gallery-cover-fit-cover': 'トリミング',
38
47
  'table-column-group-records': '件のレコード',
39
48
  'table-column-group-lock-tip': '固定列は順序を変更できません',
40
49
  'record-board-uniform-summary-empty': '-',
@@ -29,6 +29,15 @@ declare const _default: {
29
29
  'table-action-group-by-title': string;
30
30
  'table-action-group-by-title-tip': string;
31
31
  'table-action-column-title': string;
32
+ 'table-action-gallery-display-mode': string;
33
+ 'table-action-gallery-display-mode-default': string;
34
+ 'table-action-gallery-display-mode-compact': string;
35
+ 'table-action-gallery-display-field-name': string;
36
+ 'table-action-gallery-no-cover': string;
37
+ 'table-action-gallery-cover-content': string;
38
+ 'table-action-gallery-cover-effect': string;
39
+ 'table-action-gallery-cover-fit-fill': string;
40
+ 'table-action-gallery-cover-fit-cover': string;
32
41
  'table-column-group-records': string;
33
42
  'table-column-group-lock-tip': string;
34
43
  'record-board-uniform-summary-empty': string;
package/es/locales/pt.js CHANGED
@@ -35,6 +35,15 @@ export default {
35
35
  'table-action-group-by-title': 'Agrupar por',
36
36
  'table-action-group-by-title-tip': 'Selecione o campo no menu suspenso para agrupar os dados para melhor organização e navegação.',
37
37
  'table-action-column-title': 'Configurações do cabeçalho',
38
+ 'table-action-gallery-display-mode': 'Modo de exibição',
39
+ 'table-action-gallery-display-mode-default': 'Padrão',
40
+ 'table-action-gallery-display-mode-compact': 'Compacto',
41
+ 'table-action-gallery-display-field-name': 'Exibir nome do campo',
42
+ 'table-action-gallery-no-cover': 'Sem capa',
43
+ 'table-action-gallery-cover-content': 'Conteúdo da capa',
44
+ 'table-action-gallery-cover-effect': 'Efeito da capa',
45
+ 'table-action-gallery-cover-fit-fill': 'Ajustar',
46
+ 'table-action-gallery-cover-fit-cover': 'Cortar',
38
47
  'table-column-group-records': 'registros',
39
48
  'table-column-group-lock-tip': 'Ordem da coluna fixa imutável',
40
49
  'record-board-uniform-summary-empty': '-',
@@ -32,6 +32,15 @@ declare const _default: {
32
32
  'table-action-group-by-title': string;
33
33
  'table-action-group-by-title-tip': string;
34
34
  'table-action-column-title': string;
35
+ 'table-action-gallery-display-mode': string;
36
+ 'table-action-gallery-display-mode-default': string;
37
+ 'table-action-gallery-display-mode-compact': string;
38
+ 'table-action-gallery-display-field-name': string;
39
+ 'table-action-gallery-no-cover': string;
40
+ 'table-action-gallery-cover-content': string;
41
+ 'table-action-gallery-cover-effect': string;
42
+ 'table-action-gallery-cover-fit-fill': string;
43
+ 'table-action-gallery-cover-fit-cover': string;
35
44
  'table-column-group-records': string;
36
45
  'table-column-group-lock-tip': string;
37
46
  'record-board-uniform-summary-empty': string;