@pisell/materials 2.2.111 → 2.2.112

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 (149) 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/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  6. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  7. package/es/components/date-picker/index.d.ts +1 -0
  8. package/es/components/page/index.d.ts +1 -0
  9. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  10. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  11. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  12. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  13. package/es/components/table/Table/fields/index.d.ts +3 -2
  14. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  15. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  16. package/es/components/table/Table/utils.d.ts +1 -1
  17. package/es/utils/index.d.ts +1 -1
  18. package/es/utils/platform.d.ts +1 -1
  19. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  20. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  21. package/lib/components/date-picker/index.d.ts +1 -0
  22. package/lib/components/page/index.d.ts +1 -0
  23. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  24. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  25. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  26. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  27. package/lib/components/table/Table/fields/index.d.ts +3 -2
  28. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  29. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  30. package/lib/components/table/Table/utils.d.ts +1 -1
  31. package/lib/utils/index.d.ts +1 -1
  32. package/lib/utils/platform.d.ts +1 -1
  33. package/package.json +11 -11
  34. package/es/components/appVersionControl/index.d.ts +0 -4
  35. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  36. package/es/components/auto-resize-text/index.d.ts +0 -6
  37. package/es/components/cardPro/index.d.ts +0 -3
  38. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  39. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  40. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  41. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  42. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
  43. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
  44. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  45. package/es/components/drag-sort-tree/index.d.ts +0 -4
  46. package/es/components/iconfont/index.d.ts +0 -8
  47. package/es/components/keyboard/index.d.ts +0 -22
  48. package/es/components/login-and-register/index.d.ts +0 -82
  49. package/es/components/pisell-config-provider/context.d.ts +0 -22
  50. package/es/components/pisell-config-provider/index.d.ts +0 -13
  51. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  52. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  53. package/es/components/pisellCardList/index.d.ts +0 -103
  54. package/es/components/pisellEmpty/index.d.ts +0 -19
  55. package/es/components/pisellQRScanner/index.d.ts +0 -24
  56. package/es/components/pisellText/index.d.ts +0 -8
  57. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  58. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  59. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  60. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  61. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  62. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  63. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  64. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  65. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  66. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  67. package/es/components/productCard/components/Action/index.d.ts +0 -3
  68. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  69. package/es/components/productCard/components/Time/index.d.ts +0 -3
  70. package/es/components/productCard/locales.d.ts +0 -84
  71. package/es/components/select/index.d.ts +0 -9
  72. package/es/components/sortableList/index.d.ts +0 -11
  73. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  74. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  75. package/es/components/table/Table/index.d.ts +0 -4
  76. package/es/components/table/serve.d.ts +0 -13
  77. package/es/components/table/types.d.ts +0 -268
  78. package/es/components/versionModal/index.d.ts +0 -23
  79. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  80. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  81. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  82. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  83. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  84. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  85. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  86. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  87. package/es/components/virtualInput/index.d.ts +0 -24
  88. package/es/components/walletCard/index.d.ts +0 -71
  89. package/es/locales/en-US.d.ts +0 -307
  90. package/es/locales/zh-CN.d.ts +0 -302
  91. package/es/locales/zh-TW.d.ts +0 -302
  92. package/lib/components/appVersionControl/index.d.ts +0 -4
  93. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  94. package/lib/components/auto-resize-text/index.d.ts +0 -6
  95. package/lib/components/cardPro/index.d.ts +0 -3
  96. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  97. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  98. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  99. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  100. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +0 -3
  101. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +0 -5
  102. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  103. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  104. package/lib/components/iconfont/index.d.ts +0 -8
  105. package/lib/components/keyboard/index.d.ts +0 -22
  106. package/lib/components/login-and-register/index.d.ts +0 -82
  107. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  108. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  109. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  110. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  111. package/lib/components/pisellCardList/index.d.ts +0 -103
  112. package/lib/components/pisellEmpty/index.d.ts +0 -19
  113. package/lib/components/pisellQRScanner/index.d.ts +0 -24
  114. package/lib/components/pisellText/index.d.ts +0 -8
  115. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  116. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  117. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  118. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  119. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  120. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  121. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  122. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  123. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  124. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  125. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  126. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  127. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  128. package/lib/components/productCard/locales.d.ts +0 -84
  129. package/lib/components/select/index.d.ts +0 -9
  130. package/lib/components/sortableList/index.d.ts +0 -11
  131. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +0 -7
  132. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  133. package/lib/components/table/Table/index.d.ts +0 -4
  134. package/lib/components/table/serve.d.ts +0 -13
  135. package/lib/components/table/types.d.ts +0 -268
  136. package/lib/components/versionModal/index.d.ts +0 -23
  137. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  138. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  139. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  140. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  141. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  142. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  143. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  144. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  145. package/lib/components/virtualInput/index.d.ts +0 -24
  146. package/lib/components/walletCard/index.d.ts +0 -71
  147. package/lib/locales/en-US.d.ts +0 -307
  148. package/lib/locales/zh-CN.d.ts +0 -302
  149. package/lib/locales/zh-TW.d.ts +0 -302
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
4
4
  };
5
5
  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 | React.ReactFragment | 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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
31
+ subTitle: string | number | boolean | React.ReactFragment | 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" | "middle" | "large";
75
+ openContentSize: "large" | "middle" | "small";
76
76
  openTitle: string;
77
77
  key: string;
78
78
  } | undefined;
@@ -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 { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -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) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -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) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -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
  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;
@@ -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;
@@ -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;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filters" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
158
+ }) => ("filters" | "filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -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 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
4
4
  };
5
5
  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 | React.ReactFragment | 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: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
31
+ subTitle: string | number | boolean | React.ReactFragment | 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" | "middle" | "large";
75
+ openContentSize: "large" | "middle" | "small";
76
76
  openTitle: string;
77
77
  key: string;
78
78
  } | undefined;
@@ -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 { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -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) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -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) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -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
  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;
@@ -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;
@@ -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;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filters" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
158
+ }) => ("filters" | "filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -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 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.111",
3
+ "version": "2.2.112",
4
+ "scripts": {
5
+ "dev": "father dev",
6
+ "build": "father build",
7
+ "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
8
+ "lowcode:build": " build-scripts build --config ./build.lowcode.js"
9
+ },
4
10
  "main": "./lib/index.js",
5
11
  "module": "./es/index.js",
6
12
  "types": "./lib/index.d.ts",
@@ -55,6 +61,9 @@
55
61
  "@dnd-kit/modifiers": "^6.0.1",
56
62
  "@dnd-kit/sortable": "^7.0.2",
57
63
  "@dnd-kit/utilities": "^3.2.1",
64
+ "@pisell/date-picker": "workspace:*",
65
+ "@pisell/icon": "workspace:*",
66
+ "@pisell/utils": "workspace:*",
58
67
  "@react-spring/web": "^9.6.1",
59
68
  "@use-gesture/react": "^10.3.1",
60
69
  "@zxing/library": "0.21.2",
@@ -74,10 +83,7 @@
74
83
  "swiper": "^8.4.7",
75
84
  "antd-mobile": "^5.38.1",
76
85
  "vod-js-sdk-v6": "^1.4.11",
77
- "react-camera-pro": "1.4.0",
78
- "@pisell/date-picker": "1.0.102",
79
- "@pisell/icon": "0.0.11",
80
- "@pisell/utils": "2.0.2"
86
+ "react-camera-pro": "1.4.0"
81
87
  },
82
88
  "peerDependencies": {
83
89
  "react": "^18.0.0",
@@ -85,11 +91,5 @@
85
91
  },
86
92
  "componentConfig": {
87
93
  "materialSchema": "https://unpkg.com/@pisell/materials@1.0.1/build/lowcode/assets-prod.json"
88
- },
89
- "scripts": {
90
- "dev": "father dev",
91
- "build": "father build",
92
- "lowcode:dev": "build-scripts start --config ./build.lowcode.js",
93
- "lowcode:build": " build-scripts build --config ./build.lowcode.js"
94
94
  }
95
95
  }
@@ -1,4 +0,0 @@
1
- import { AppVersionControlProps } from './types';
2
- import './index.less';
3
- declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
- export default AppVersionControl;
@@ -1,20 +0,0 @@
1
- export declare type Options = {
2
- mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
3
- minFontSizePx?: number | undefined;
4
- maxFontSizePx?: number | undefined;
5
- fontSizePrecisionPx?: number | undefined;
6
- scrollToEnd?: boolean | undefined;
7
- };
8
- export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
9
- innerEl: HTMLElement;
10
- containerEl: HTMLElement;
11
- }): void;
12
- declare type DisconnectableFunction = {
13
- (): void;
14
- disconnect: () => void;
15
- };
16
- export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
17
- innerEl: HTMLElement;
18
- containerEl: HTMLElement;
19
- }): DisconnectableFunction;
20
- export {};
@@ -1,6 +0,0 @@
1
- import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
2
- import { Options } from './auto-text-size-standalone';
3
- export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
4
- as?: keyof ReactHTML | React.ComponentType<any>;
5
- children?: React.ReactNode;
6
- } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const _default: (props: any) => JSX.Element;
3
- export default _default;
@@ -1,38 +0,0 @@
1
- import { Drawer } from 'antd';
2
- import { OperationItem } from '../type';
3
- declare const useDrawerState: (operationContent?: {
4
- [key: string]: import("react").ReactNode;
5
- } | undefined) => {
6
- drawerVisible: boolean;
7
- setDrawerVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
8
- openDrawer: (item: OperationItem) => void;
9
- closeDrawer: () => void;
10
- drawerContent: import("react").ReactNode;
11
- Container: {
12
- (props: import("../../../pisellModal").PisellModalProps): JSX.Element;
13
- confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
14
- destroy: () => void;
15
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
16
- };
17
- info: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
18
- destroy: () => void;
19
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
- };
21
- error: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
22
- destroy: () => void;
23
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
24
- };
25
- warn: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => any;
26
- warning: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
27
- destroy: () => void;
28
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
29
- };
30
- success: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
31
- destroy: () => void;
32
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
33
- };
34
- Information: (props: import("../../../pisellModal/components/Information").InformationProps) => JSX.Element;
35
- } | typeof Drawer;
36
- containerProps: {};
37
- };
38
- export default useDrawerState;
@@ -1,84 +0,0 @@
1
- /// <reference types="react" />
2
- import { ColumnType } from 'antd/es/table';
3
- import { LocalSettingsType } from '../../table/types';
4
- import { DataSourceType } from '../provider/dataSource/DataSourceContext';
5
- export declare type OperationItem = {
6
- label?: string;
7
- openMode: 'modal' | 'drawer' | 'custom';
8
- openContentSize: 'small' | 'middle' | 'large';
9
- openTitle: string;
10
- actionType: 'detail' | 'edit' | 'delete' | 'custom';
11
- key: string;
12
- buttonProps?: any;
13
- onClick?: (record: any) => void;
14
- afterClose?: () => void;
15
- };
16
- export interface DataSourceTableProps {
17
- __id?: string;
18
- currentComponentId?: string;
19
- currentSettingKey?: string;
20
- title?: string | React.ReactNode | (() => React.ReactNode);
21
- subTitle?: string | React.ReactNode | (() => React.ReactNode);
22
- titleButtons?: {
23
- show: boolean;
24
- maxCount: number;
25
- items: OperationItem[];
26
- };
27
- tableButtons?: {
28
- show: boolean;
29
- maxCount: number;
30
- items: OperationItem[];
31
- };
32
- buttons?: any[];
33
- operation?: {
34
- show: boolean;
35
- title: string;
36
- width: number;
37
- align: 'left' | 'center' | 'right';
38
- fixed: 'left' | 'right' | false;
39
- type: 'link' | 'button';
40
- items: OperationItem[];
41
- };
42
- operationContent?: {
43
- [key: string]: React.ReactNode;
44
- };
45
- dataSource: DataSourceType;
46
- columns: ColumnType<any>[];
47
- filter: any;
48
- search?: {
49
- show: boolean;
50
- placeholder: string;
51
- };
52
- __designMode: string;
53
- componentId: string;
54
- clickToDetail?: {
55
- show: boolean;
56
- useCustomAction: boolean;
57
- actionType: string;
58
- openMode: 'modal' | 'drawer';
59
- openContentSize: 'small' | 'middle' | 'large';
60
- openTitle: string;
61
- key: string;
62
- };
63
- onRow?: any;
64
- filterBy?: Record<string, any>;
65
- sortBy: string;
66
- tabs?: {
67
- show: boolean;
68
- type: string;
69
- items: {
70
- name: string;
71
- filterBy: Record<string, any>;
72
- sortBy: string;
73
- }[];
74
- };
75
- onValuesChange?: (changedValues: any, values: any) => void;
76
- extraParams?: {
77
- list?: Record<string, any>;
78
- get?: Record<string, any>;
79
- update?: Record<string, any>;
80
- create?: Record<string, any>;
81
- destroy?: Record<string, any>;
82
- };
83
- localSettings?: LocalSettingsType;
84
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * 获取nocobase数据列表
3
- */
4
- export declare const getCountryDataList: () => Promise<any>;
5
- export interface Country {
6
- id: number;
7
- name: {
8
- en: string;
9
- 'zh-CN': string;
10
- 'zh-HK': string;
11
- original: string;
12
- };
13
- code: string;
14
- calling_code: string;
15
- currency_code: string;
16
- sort: number;
17
- status: string;
18
- created_at: string;
19
- updated_at: string;
20
- prefix: string;
21
- }
22
- export declare const useCountries: () => {
23
- data: Country[];
24
- };
@@ -1,25 +0,0 @@
1
- /**
2
- * 获取nocobase数据列表
3
- */
4
- export declare const getCountryDataList: () => Promise<any>;
5
- export declare const getShopCountryDataList: (locale?: any) => Promise<any>;
6
- export interface Country {
7
- id: number;
8
- name: {
9
- en: string;
10
- 'zh-CN': string;
11
- 'zh-HK': string;
12
- original: string;
13
- };
14
- code: string;
15
- calling_code: string;
16
- currency_code: string;
17
- sort: number;
18
- status: string;
19
- created_at: string;
20
- updated_at: string;
21
- prefix: string;
22
- }
23
- export declare const useCountries: () => {
24
- data: Country[];
25
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Upload: React.FC<import("./type").UploadProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
3
- export default Upload;
@@ -1,5 +0,0 @@
1
- declare const usePlatform: () => any;
2
- declare const useIsShop: () => boolean;
3
- declare const useIsH5: () => boolean;
4
- declare const useIsPc: () => boolean;
5
- export { usePlatform, useIsShop, useIsH5, useIsPc };
@@ -1,18 +0,0 @@
1
- import './index.less';
2
- import { ValueProps, SortType } from '../types';
3
- declare type IdType = string | number;
4
- declare type TreeItemProps = {
5
- id: string | number;
6
- key: string | number;
7
- item: ValueProps | any;
8
- depth: number;
9
- lists: any[];
10
- childrenProps?: SortType;
11
- sensors?: any;
12
- expandedKeys?: IdType[];
13
- setExpandedKeys?: any;
14
- onSelectKeys?: (ids: IdType) => void;
15
- onChange?: (value: any[]) => void;
16
- };
17
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
18
- export default TreeItem;
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { SortType } from './types';
3
- declare const DragSortTree: (props: SortType) => JSX.Element;
4
- export default DragSortTree;
@@ -1,8 +0,0 @@
1
- import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
- import React from 'react';
3
- interface IconFontProps extends IconComponentProps {
4
- type: string;
5
- onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
- }
7
- declare const IconFont: React.FC<IconFontProps>;
8
- export default IconFont;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- id?: string;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- onChange?: (value?: ItemValue) => void;
17
- items?: Item[];
18
- rightItems?: Item[];
19
- keydown?: boolean;
20
- }
21
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
22
- export default _default;