@pisell/materials 6.4.5 → 6.5.1

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 (145) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appVersionControl/index.d.ts +1 -0
  8. package/es/components/batch-editor/index.d.ts +1 -0
  9. package/es/components/cardPro/index.d.ts +4 -0
  10. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  15. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  17. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/Select/index.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 +9 -8
  21. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +3 -0
  22. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +3 -2
  23. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  24. package/es/components/date-picker/index.d.ts +1 -0
  25. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  26. package/es/components/drag-sort-tree/index.d.ts +1 -0
  27. package/es/components/filter/index.d.ts +1 -0
  28. package/es/components/list/index.d.ts +1 -0
  29. package/es/components/page/index.d.ts +3 -0
  30. package/es/components/page/index.js +4 -2
  31. package/es/components/pisell-config-provider/index.d.ts +13 -0
  32. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  33. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  34. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  35. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  36. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  37. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  38. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  39. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  40. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  41. package/es/components/productCard/components/Action/index.d.ts +0 -1
  42. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  43. package/es/components/productCard/components/Header/index.d.ts +0 -1
  44. package/es/components/productCard/components/Sales/index.d.ts +0 -1
  45. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  46. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  47. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
  48. package/es/components/productCard/components/Time/index.d.ts +4 -0
  49. package/es/components/select-time/index.d.ts +1 -0
  50. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  51. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  52. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  53. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  54. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  55. package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  56. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  57. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  58. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  59. package/es/components/table/Actions/index.d.ts +1 -0
  60. package/es/components/table/BasicTable/index.d.ts +1 -0
  61. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  62. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/index.d.ts +3 -2
  65. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  68. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  70. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  71. package/es/components/table/Table/utils.d.ts +1 -1
  72. package/es/components/table/View/index.d.ts +1 -0
  73. package/es/components/table/types.d.ts +251 -0
  74. package/es/components/translation/index.d.ts +14 -0
  75. package/es/components/versionSelect/index.d.ts +1 -0
  76. package/lib/components/appVersionControl/index.d.ts +1 -0
  77. package/lib/components/batch-editor/index.d.ts +1 -0
  78. package/lib/components/cardPro/index.d.ts +4 -0
  79. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  80. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  81. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  82. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  83. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  84. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  85. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  86. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  87. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  88. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  89. package/lib/components/dataSourceComponents/fields/index.d.ts +9 -8
  90. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +3 -0
  91. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +2 -2
  92. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  93. package/lib/components/date-picker/index.d.ts +1 -0
  94. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  95. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  96. package/lib/components/filter/index.d.ts +1 -0
  97. package/lib/components/list/index.d.ts +1 -0
  98. package/lib/components/page/index.d.ts +3 -0
  99. package/lib/components/page/index.js +3 -2
  100. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  101. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  102. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
  103. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
  104. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  105. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  106. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  107. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  108. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  109. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  110. package/lib/components/productCard/components/Action/index.d.ts +0 -1
  111. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  112. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  113. package/lib/components/productCard/components/Sales/index.d.ts +0 -1
  114. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +4 -0
  115. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  116. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +19 -0
  117. package/lib/components/productCard/components/Time/index.d.ts +4 -0
  118. package/lib/components/select-time/index.d.ts +1 -0
  119. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  120. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  121. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  122. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  123. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  124. package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  125. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  126. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  127. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  128. package/lib/components/table/Actions/index.d.ts +1 -0
  129. package/lib/components/table/BasicTable/index.d.ts +1 -0
  130. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  131. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  132. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  133. package/lib/components/table/Table/fields/index.d.ts +3 -2
  134. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  135. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  136. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  137. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  138. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  139. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  140. package/lib/components/table/Table/utils.d.ts +1 -1
  141. package/lib/components/table/View/index.d.ts +1 -0
  142. package/lib/components/table/types.d.ts +251 -0
  143. package/lib/components/translation/index.d.ts +14 -0
  144. package/lib/components/versionSelect/index.d.ts +1 -0
  145. package/package.json +1 -1
@@ -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
  import { SortType } from './types';
3
4
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -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,5 +1,8 @@
1
1
  import { ConfigProviderProps } from '../config-provider';
2
2
  interface PageProps extends ConfigProviderProps {
3
+ variablesConfig?: {
4
+ disabledHistoryListener?: boolean;
5
+ };
3
6
  }
4
7
  declare const Page: (props: PageProps) => JSX.Element;
5
8
  export default Page;
@@ -70,7 +70,7 @@ var localeDateMap = {
70
70
  };
71
71
  var Page = (props) => {
72
72
  var _a, _b, _c, _d, _e, _f;
73
- const { children, style, className, locale: propsLocale, ...others } = props;
73
+ const { children, style, className, locale: propsLocale, variablesConfig, ...others } = props;
74
74
  const context = (0, import_useEngineContext.default)();
75
75
  const { platform, themeColor } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
76
76
  const locale = propsLocale || ((_c = (_b = context == null ? void 0 : context.engine) == null ? void 0 : _b.props) == null ? void 0 : _c.locale) || "en";
@@ -240,7 +240,8 @@ var Page = (props) => {
240
240
  /* @__PURE__ */ import_react.default.createElement(import_date_picker.ThemeProvider, { theme: datePickerTheme }, /* @__PURE__ */ import_react.default.createElement(import_date_picker.LocaleProvider, { value: { locale } }, /* @__PURE__ */ import_react.default.createElement(import_pisell_config_provider.default, { locale }, /* @__PURE__ */ import_react.default.createElement(
241
241
  import_VariablesProvider.default,
242
242
  {
243
- variables: ((_f = (_e = context.engine) == null ? void 0 : _e.props) == null ? void 0 : _f.variables) || {}
243
+ variables: ((_f = (_e = context.engine) == null ? void 0 : _e.props) == null ? void 0 : _f.variables) || {},
244
+ config: variablesConfig
244
245
  },
245
246
  /* @__PURE__ */ import_react.default.createElement(
246
247
  "div",
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from './context';
3
+ interface PisellConfigProviderType {
4
+ platform?: PisellContextType['platform'];
5
+ children: React.ReactNode;
6
+ /** 货币符号 */
7
+ symbol?: string;
8
+ /** 当前语言环境 */
9
+ locale?: string;
10
+ getSymbolic?: () => string;
11
+ }
12
+ declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
13
+ export default PisellConfigProvider;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
3
  export default MultiDay;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Note: (props: any) => JSX.Element | null;
4
3
  export default Note;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Holders: (props: any) => JSX.Element | null;
4
3
  export default Holders;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  isShowImage?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: (props: any) => JSX.Element | null;
4
3
  export default Resources;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  hideDivider?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Specs: (props: any) => JSX.Element | null;
4
3
  export default Specs;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import 'dayjs/locale/zh-cn';
3
2
  import 'dayjs/locale/en';
4
3
  import 'dayjs/locale/zh-tw';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Action: ({ item, onAction }: any) => JSX.Element;
4
3
  export default Action;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
4
+ export default DeleteButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: (props: any) => JSX.Element;
4
3
  export default Header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
4
3
  export default Sales;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
4
+ export default SelectHolder;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface SelectHolderModalProps {
4
3
  visible: boolean;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ interface ResourceItem {
4
+ id: string | number;
5
+ label: string;
6
+ isError?: boolean;
7
+ [key: string]: any;
8
+ }
9
+ interface SelectResourceProps {
10
+ lists: ResourceItem[];
11
+ value: any;
12
+ onChange: (val: any) => void;
13
+ resourceMode?: 'multiple' | 'tags' | undefined;
14
+ maxLength?: number;
15
+ isParallelResource?: boolean;
16
+ [key: string]: any;
17
+ }
18
+ declare const SelectResource: ({ lists, value, onChange, resourceMode, allowClear, onClearResource, maxLength, isErrorResource, resourceErrorText, ...props }: SelectResourceProps) => JSX.Element;
19
+ export default SelectResource;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
4
+ export default Time;
@@ -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 { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare const ExportFile: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare const ExportTable: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare const ImportLog: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare type ImportTableProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../types';
2
3
  import './index.less';
3
4
  declare type ExportImportProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from 'antd';
2
3
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
3
4
  export default BasicTable;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { GallerySettingType, GallerySettingValueType } from "../../../types";
3
+ import "./index.less";
4
+ declare type GalleryItemProps = {
5
+ record: Record<string, any>;
6
+ gallery: GallerySettingType;
7
+ columnsMap: Map<string, Record<string, any>>;
8
+ index: number;
9
+ gallerySetting: GallerySettingValueType;
10
+ columns: Record<string, any>[];
11
+ onClick: React.MouseEventHandler<HTMLDivElement>;
12
+ };
13
+ declare const GalleryItem: (props: GalleryItemProps) => JSX.Element;
14
+ export default GalleryItem;
@@ -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: {
@@ -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
  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
  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: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
3
4
  export default SortRow;
@@ -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
- }) => ("column_setting" | "group_by" | "order_by" | "view_mode" | "filter_setting" | "gallery_setting")[];
158
+ }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -0,0 +1,251 @@
1
+ import { FilterType } from "../filter/types";
2
+ import { SortItemProps } from "../sort/types";
3
+ import React from "react";
4
+ export declare type StorageMode = "" | "localStorage";
5
+ /**
6
+ * 排序总配置
7
+ */
8
+ export declare type SortType = {
9
+ /** 排序是否展示 */
10
+ show: boolean;
11
+ /** 排序存储模式 */
12
+ storageMode: StorageMode;
13
+ list: SortItemProps[];
14
+ };
15
+ /**
16
+ * 列展示总配置
17
+ */
18
+ export declare type ColumnSettingType = {
19
+ /** 列设置是否展示 */
20
+ show: boolean;
21
+ /** 列设置存储模式 */
22
+ storageMode: StorageMode;
23
+ };
24
+ declare type DataSourceListItemType = {
25
+ isCustom: boolean;
26
+ columnKey?: string;
27
+ label?: string;
28
+ name?: string | string[];
29
+ isHidden?: boolean;
30
+ };
31
+ /**
32
+ * 数据源分组总配置
33
+ */
34
+ export declare type DataSourceGroupType = {
35
+ /** 分组设置是否展示 */
36
+ show: boolean;
37
+ /** 分组设置存储模式 */
38
+ storageMode: StorageMode;
39
+ /** */
40
+ list: DataSourceListItemType[];
41
+ };
42
+ /**
43
+ * Gallery封面总配置
44
+ */
45
+ declare type GalleryCoverType = {
46
+ /** 封面是否展示 */
47
+ show: boolean;
48
+ /**
49
+ * 封面图片可以使用的字段
50
+ */
51
+ fields: string[];
52
+ /**
53
+ * 封面高度
54
+ */
55
+ height: number;
56
+ /** 图片裁剪方式 */
57
+ objectFit: "fill" | "cover";
58
+ };
59
+ /**
60
+ * Gallery标题总配置
61
+ */
62
+ declare type GalleryTitleType = {
63
+ /** 标题使用的字段 */
64
+ field: string;
65
+ /** 标题行数 */
66
+ line: number;
67
+ };
68
+ /**
69
+ * Gallery头部区域总配置
70
+ */
71
+ declare type GalleryHeaderType = {
72
+ /** 头部区域插槽 */
73
+ slot?: (record: Record<string, any>, index: number) => React.ReactNode;
74
+ /** 头部区域其他字段设置 */
75
+ fields: {
76
+ /** 头部区域其他字段是否展示 */
77
+ show: boolean;
78
+ /** 头部区域其他字段 */
79
+ list: string[];
80
+ };
81
+ };
82
+ /**
83
+ * Gallery内容区域总配置
84
+ */
85
+ declare type GalleryContentType = {
86
+ /** 内容区域字段配置 */
87
+ fields: {
88
+ columnKey: string;
89
+ show: boolean;
90
+ }[];
91
+ };
92
+ export declare type GallerySettingValueType = {
93
+ coverField: string | "noCover";
94
+ coverObjectFit: "fill" | "cover";
95
+ compactMode: "default" | "compact";
96
+ isShowLabel: boolean;
97
+ };
98
+ /**
99
+ * Gallery底部区域总配置
100
+ */
101
+ declare type GalleryFooterType = {
102
+ /** 底部区域自定义渲染 */
103
+ render: (record: Record<string, any>, index: number) => React.ReactNode;
104
+ /** 底部区域高度 */
105
+ height: number;
106
+ };
107
+ /**
108
+ * Gallery模式总配置
109
+ */
110
+ export declare type GallerySettingType = {
111
+ /** 卡片最小宽度 */
112
+ cardMinWidth: number;
113
+ /** 卡片最大宽度 */
114
+ cardMaxWidth: number;
115
+ /** 水平间隔 */
116
+ horizontalGutter: number;
117
+ /** 垂直间隔 */
118
+ verticalGutter: number;
119
+ /** 封面配置 */
120
+ cover: GalleryCoverType;
121
+ /** 标题配置 */
122
+ title: GalleryTitleType;
123
+ /** 头部区域 */
124
+ header: GalleryHeaderType;
125
+ /** 内容区域 */
126
+ content: GalleryContentType;
127
+ /** 固定高度 */
128
+ fixedHeight: boolean;
129
+ /** 固定的卡片高度 */
130
+ cardHeight: number;
131
+ /** 固定顶部 */
132
+ fixedHeader: boolean;
133
+ /** 固定底部 */
134
+ fixedFooter: boolean;
135
+ /** 底部区域 */
136
+ footer: GalleryFooterType;
137
+ /** 卡片点击时间 */
138
+ onItem: (record: Record<string, any>, index: number) => void;
139
+ };
140
+ /** 视图模式 */
141
+ export declare type ModeType = "grid" | "gallery" | "kanban";
142
+ /**
143
+ * 视图模式总配置
144
+ */
145
+ export declare type GridViewType = {
146
+ /** 默认视图模式 */
147
+ defaultViewMode: ModeType;
148
+ /** 开启多视图模式可进行页面内转换 */
149
+ multiple: boolean;
150
+ /** 当前可用的视图模式列表 */
151
+ modeList: ModeType[];
152
+ };
153
+ declare type SortDetail = {
154
+ fromIndex: number;
155
+ toIndex: number;
156
+ dataSource: Record<string, any>[];
157
+ fromId: number | string;
158
+ toId: number | string;
159
+ fromItem: Record<string, any>;
160
+ toItem: Record<string, any>;
161
+ };
162
+ /** 导入导出模式 */
163
+ export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
164
+ /**
165
+ * @title: 导出导入api
166
+ * @description:
167
+ * @return {*}
168
+ * @Author: WangHan
169
+ * @Date: 2024-09-11 15:44
170
+ */
171
+ export declare type ApiProps = {
172
+ export?: string;
173
+ import?: string;
174
+ export_file: string;
175
+ import_log?: string;
176
+ template?: string;
177
+ };
178
+ /**
179
+ * 导入导出配置
180
+ */
181
+ export declare type ExportImportType = {
182
+ /** 是否展示 */
183
+ show: boolean;
184
+ /** 当前所选项 */
185
+ selectLists: string[];
186
+ /** 导入模版链接 */
187
+ templateFileUrl: string;
188
+ /** 标题 */
189
+ title: string;
190
+ hiddenKeys?: string[];
191
+ apiUrl?: ApiProps;
192
+ otherParams?: any;
193
+ };
194
+ export declare type GridViewProps = {
195
+ columns: any;
196
+ dataSource: any[];
197
+ dispatch: any;
198
+ /**
199
+ * 画册模式的配置
200
+ */
201
+ gallery: GallerySettingType;
202
+ /**
203
+ * 视图设置
204
+ */
205
+ view: GridViewType;
206
+ style: React.CSSProperties;
207
+ pagination: any;
208
+ filter: FilterType;
209
+ buttons: React.ReactNode | any[];
210
+ actionButtons: any;
211
+ sort: SortType;
212
+ title?: React.ReactNode | (() => React.ReactNode);
213
+ showTitle?: boolean;
214
+ subTitle?: React.ReactNode | (() => React.ReactNode);
215
+ showSubTitle?: boolean;
216
+ exportImport: ExportImportType;
217
+ onValuesChange: (changedValues: any, values: any) => void;
218
+ summary: any;
219
+ utils: any;
220
+ rowKey: ((record: Record<string, any>) => string) | string;
221
+ columnSetting?: ColumnSettingType;
222
+ dataSourceGroup?: DataSourceGroupType;
223
+ loading: boolean;
224
+ dragSort: boolean;
225
+ onSortChange?: (detail: SortDetail) => boolean;
226
+ __id?: string;
227
+ __designMode?: "design";
228
+ /**
229
+ * 当前本地配置的key 用此hash是否改变用来判断是否清空本地配置 不填默认使用columns数据生成hash
230
+ */
231
+ currentSettingKey?: string;
232
+ /**
233
+ * 当前本地配置的唯一值, 不填默认使用currentSettingKey
234
+ */
235
+ currentComponentId?: string;
236
+ /**
237
+ * 当前表格中数据发生变化事件 包含本地筛选和外部传入数据变化
238
+ * @param currentDataSource
239
+ */
240
+ onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
241
+ tabs: {
242
+ show: boolean;
243
+ type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
244
+ items: {
245
+ name: string;
246
+ filterBy?: Record<string, any>;
247
+ sortBy?: string;
248
+ }[];
249
+ };
250
+ };
251
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare type Value = {
4
+ en: string;
5
+ 'zh-CN': string;
6
+ 'zh-HK': string;
7
+ };
8
+ interface TranslationProps {
9
+ value: Value;
10
+ onChange: (value: Value) => void;
11
+ maxLength?: number;
12
+ }
13
+ declare const Translation: React.FC<TranslationProps>;
14
+ export default Translation;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {