@pisell/materials 1.0.931 → 1.0.932

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 (113) 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/preview.js +155 -155
  7. package/build/lowcode/render/default/view.js +42 -23
  8. package/build/lowcode/view.js +49 -30
  9. package/es/components/batch-editor/index.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  15. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  18. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  20. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  21. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  22. package/es/components/date-picker/index.d.ts +1 -0
  23. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  24. package/es/components/list/index.d.ts +1 -0
  25. package/es/components/page/index.d.ts +1 -0
  26. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  27. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  28. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  29. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  30. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  31. package/es/components/pisellInput/index.d.ts +1 -0
  32. package/es/components/pisellTooltip/index.d.ts +1 -0
  33. package/es/components/pisellWalletPassCard/index.d.ts +1 -1
  34. package/es/components/pisellWalletPassCard/index.js +2 -1
  35. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  36. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  37. package/es/components/select-time/index.d.ts +1 -0
  38. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  39. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  40. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  41. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  42. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  43. package/es/components/table/Table/fields/index.d.ts +1 -0
  44. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  45. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  47. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  50. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  51. package/es/components/table/Table/utils.d.ts +1 -1
  52. package/es/components/versionSelect/index.d.ts +1 -0
  53. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  54. package/es/locales/en-US.d.ts +1 -0
  55. package/es/locales/en-US.js +1 -0
  56. package/es/locales/zh-CN.d.ts +1 -0
  57. package/es/locales/zh-CN.js +1 -0
  58. package/es/locales/zh-TW.d.ts +1 -0
  59. package/es/locales/zh-TW.js +1 -0
  60. package/es/utils/index.d.ts +1 -1
  61. package/lib/components/batch-editor/index.d.ts +1 -0
  62. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  63. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  64. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  65. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  66. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  67. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  68. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  69. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  70. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  71. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  72. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  73. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  74. package/lib/components/date-picker/index.d.ts +1 -0
  75. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  76. package/lib/components/list/index.d.ts +1 -0
  77. package/lib/components/page/index.d.ts +1 -0
  78. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  79. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  80. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  81. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  82. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  83. package/lib/components/pisellInput/index.d.ts +1 -0
  84. package/lib/components/pisellTooltip/index.d.ts +1 -0
  85. package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
  86. package/lib/components/pisellWalletPassCard/index.js +2 -1
  87. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
  88. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  89. package/lib/components/select-time/index.d.ts +1 -0
  90. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  91. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  92. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  93. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  94. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  95. package/lib/components/table/Table/fields/index.d.ts +1 -0
  96. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  97. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  98. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  99. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  100. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  101. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  102. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  103. package/lib/components/table/Table/utils.d.ts +1 -1
  104. package/lib/components/versionSelect/index.d.ts +1 -0
  105. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  106. package/lib/locales/en-US.d.ts +1 -0
  107. package/lib/locales/en-US.js +1 -0
  108. package/lib/locales/zh-CN.d.ts +1 -0
  109. package/lib/locales/zh-CN.js +1 -0
  110. package/lib/locales/zh-TW.d.ts +1 -0
  111. package/lib/locales/zh-TW.js +1 -0
  112. package/lib/utils/index.d.ts +1 -1
  113. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const useDataSourceKey: () => {
3
- dataSourceKey: string | undefined;
4
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
3
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
4
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
5
5
  };
6
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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
22
+ title: string | number | boolean | JSX.Element | React.ReactFragment | (() => 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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
31
+ subTitle: string | number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: any;
34
34
  onRow: (record: any) => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
5
  labelField: string;
5
6
  valueField: string;
6
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CameraPopover: (props: {
2
3
  onLocalFileClick: () => void;
3
4
  onCameraChange: (file: any) => void;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -20,7 +20,7 @@ declare const formFieldMap: {
20
20
  Subdomain: import("react").FC<import("antd").InputProps & {
21
21
  onChange: (value: string) => void;
22
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "xzero" | "saas";
23
+ rootDomain: "custom" | "saas" | "xzero";
24
24
  customDomain?: string | undefined;
25
25
  value?: string | undefined;
26
26
  tenantId: string;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -60,7 +60,7 @@ 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<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
64
64
  JSON: import("react").FC<any>;
65
65
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
66
66
  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>;
@@ -73,14 +73,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
73
73
  Subdomain: import("react").FC<import("antd").InputProps & {
74
74
  onChange: (value: string) => void;
75
75
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
76
- rootDomain: "custom" | "xzero" | "saas";
76
+ rootDomain: "custom" | "saas" | "xzero";
77
77
  customDomain?: string | undefined;
78
78
  value?: string | undefined;
79
79
  tenantId: string;
80
80
  name?: string | undefined;
81
81
  fieldKey?: string | undefined;
82
82
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
83
- }) | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & 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<{}> & {
83
+ }) | (import("react").FC<{}> & {
84
84
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
85
85
  } & {
86
86
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -90,13 +90,13 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
90
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
91
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
92
  options?: any;
93
- optionSourceType?: "default" | "custom" | "api" | undefined;
93
+ optionSourceType?: "custom" | "default" | "api" | undefined;
94
94
  labelField: string;
95
95
  valueField: string;
96
96
  extraParams?: Record<string, any> | undefined;
97
97
  } & {
98
98
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & 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
- } & 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>;
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("./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>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ValueProps, SortType } from '../types';
3
4
  declare type IdType = string | number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './detePickerCpt.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface ScanProps {
3
4
  onChange: (val: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import './index.less';
3
4
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
2
3
  import { PisellContextType } from "../pisell-config-provider/context";
3
4
  import './index.less';
@@ -117,7 +117,7 @@ export interface PisellWalletPassCardProps {
117
117
  color: string;
118
118
  };
119
119
  /** 卡片状态 */
120
- cardStatus?: 'used' | 'expired' | 'disabled' | 'conflict';
120
+ cardStatus?: 'used' | 'expired' | 'disabled' | 'conflict' | 'lastPayment';
121
121
  /** 自定义余额格式化函数,如果提供则优先使用 */
122
122
  formatBalance?: (balance?: number, option?: FormatOption) => React.ReactNode;
123
123
  /** 自定义余额标题格式化函数,如果提供则优先使用 */
@@ -34,7 +34,8 @@ var cardStatusMap = {
34
34
  used: 'warning',
35
35
  expired: 'error',
36
36
  conflict: 'error',
37
- disabled: 'gray'
37
+ disabled: 'gray',
38
+ lastPayment: 'gray'
38
39
  };
39
40
  var PisellWalletPassCard = function PisellWalletPassCard(props) {
40
41
  var _React$useState = React.useState(false),
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DiscountReason: (props: any) => JSX.Element;
2
3
  export default DiscountReason;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
2
3
  import { PopoverProps, TimePickerProps } from "antd";
3
4
  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
  import './PopoverContent.less';
2
3
  declare type FieldType = string | number;
3
4
  export declare type GroupValue = {
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -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
  export declare const fieldMaps: {
2
3
  text: {
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: {
@@ -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
- }): boolean;
5
+ }): any;
@@ -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 { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -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
- }): boolean;
5
+ }): any;
@@ -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" | "column_setting" | "group_by" | "order_by" | "view_mode" | "filter_setting" | "gallery_setting")[];
164
+ }) => ("filters" | "order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./Presets.less";
2
3
  export declare type PresetsItem = {
3
4
  label: string;
@@ -314,6 +314,7 @@ declare const _default: {
314
314
  'pisell-wallet-pass-card-status-expired': string;
315
315
  'pisell-wallet-pass-card-status-disabled': string;
316
316
  'pisell-wallet-pass-card-status-conflict': string;
317
+ 'pisell-wallet-pass-card-status-lastPayment': string;
317
318
  'pisell-wallet-pass-card-reset': string;
318
319
  'pisell-wallet-pass-card-done': string;
319
320
  'pisell-list-tab-group-default': string;
@@ -384,6 +384,7 @@ export default {
384
384
  'pisell-wallet-pass-card-status-expired': 'Expired',
385
385
  'pisell-wallet-pass-card-status-disabled': 'Disabled',
386
386
  'pisell-wallet-pass-card-status-conflict': 'Conflict',
387
+ 'pisell-wallet-pass-card-status-lastPayment': 'Last Payment',
387
388
  'pisell-wallet-pass-card-reset': 'Reset',
388
389
  'pisell-wallet-pass-card-done': 'Done',
389
390
  // 列表组件
@@ -309,6 +309,7 @@ declare const _default: {
309
309
  'pisell-wallet-pass-card-status-expired': string;
310
310
  'pisell-wallet-pass-card-status-disabled': string;
311
311
  'pisell-wallet-pass-card-status-conflict': string;
312
+ 'pisell-wallet-pass-card-status-lastPayment': string;
312
313
  'pisell-wallet-pass-card-reset': string;
313
314
  'pisell-wallet-pass-card-done': string;
314
315
  'pisell-list-tab-group-default': string;
@@ -375,6 +375,7 @@ export default {
375
375
  'pisell-wallet-pass-card-status-expired': '已过期',
376
376
  'pisell-wallet-pass-card-status-disabled': '已禁用',
377
377
  'pisell-wallet-pass-card-status-conflict': '冲突',
378
+ 'pisell-wallet-pass-card-status-lastPayment': '上次结算',
378
379
  'pisell-wallet-pass-card-reset': '清空',
379
380
  'pisell-wallet-pass-card-done': '保存',
380
381
  // 列表组件
@@ -309,6 +309,7 @@ declare const _default: {
309
309
  'pisell-wallet-pass-card-status-expired': string;
310
310
  'pisell-wallet-pass-card-status-disabled': string;
311
311
  'pisell-wallet-pass-card-status-conflict': string;
312
+ 'pisell-wallet-pass-card-status-lastPayment': string;
312
313
  'pisell-wallet-pass-card-reset': string;
313
314
  'pisell-wallet-pass-card-done': string;
314
315
  'pisell-list-tab-group-default': string;
@@ -381,6 +381,7 @@ export default (_tableFilterSearch$ = {
381
381
  'pisell-wallet-pass-card-status-expired': '已過期',
382
382
  'pisell-wallet-pass-card-status-disabled': '已禁用',
383
383
  'pisell-wallet-pass-card-status-conflict': '衝突',
384
+ 'pisell-wallet-pass-card-status-lastPayment': '上次結算',
384
385
  'pisell-wallet-pass-card-reset': '清空',
385
386
  'pisell-wallet-pass-card-done': '保存',
386
387
  // 列表組件
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const useDataSourceKey: () => {
3
- dataSourceKey: string | undefined;
4
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
3
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
4
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
5
5
  };
6
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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
22
+ title: string | number | boolean | JSX.Element | React.ReactFragment | (() => 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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
31
+ subTitle: string | number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: any;
34
34
  onRow: (record: any) => any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
5
  labelField: string;
5
6
  valueField: string;
6
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CameraPopover: (props: {
2
3
  onLocalFileClick: () => void;
3
4
  onCameraChange: (file: any) => void;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;