@pisell/materials 1.0.682 → 1.0.684

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 (106) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.js +2 -2
  8. package/es/components/batch-editor/index.d.ts +0 -1
  9. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -2
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +4 -2
  11. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  12. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  13. package/es/components/dataSourceComponents/fields/index.d.ts +7 -7
  14. package/es/components/filter/index.d.ts +0 -1
  15. package/es/components/list/index.d.ts +0 -1
  16. package/es/components/lowCodePage/index.d.ts +0 -1
  17. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  18. package/es/components/pisellAdjustPrice/index.d.ts +0 -1
  19. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  20. package/es/components/pisellInput/index.d.ts +0 -1
  21. package/es/components/pisellLoading/index.d.ts +0 -1
  22. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  23. package/es/components/pisellModal/components/index.d.ts +0 -1
  24. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  25. package/es/components/qrcode/index.d.ts +0 -1
  26. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  27. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  28. package/es/components/table/BasicTable/index.d.ts +0 -1
  29. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  30. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  31. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  32. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  33. package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
  34. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  35. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  36. package/es/components/table/Table/fields/index.d.ts +0 -1
  37. package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
  38. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  39. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  40. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  41. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  42. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  43. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  44. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  45. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  46. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  47. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  48. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  49. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  50. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  51. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  52. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  53. package/es/components/table/View/index.d.ts +0 -1
  54. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  55. package/es/components/walletCard/index.js +48 -57
  56. package/lib/components/batch-editor/index.d.ts +0 -1
  57. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -2
  58. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +3 -1
  59. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
  60. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  61. package/lib/components/dataSourceComponents/fields/index.d.ts +7 -7
  62. package/lib/components/filter/index.d.ts +0 -1
  63. package/lib/components/list/index.d.ts +0 -1
  64. package/lib/components/lowCodePage/index.d.ts +0 -1
  65. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  66. package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
  67. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  68. package/lib/components/pisellInput/index.d.ts +0 -1
  69. package/lib/components/pisellLoading/index.d.ts +0 -1
  70. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  71. package/lib/components/pisellModal/components/index.d.ts +0 -1
  72. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  73. package/lib/components/qrcode/index.d.ts +0 -1
  74. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  75. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  76. package/lib/components/table/BasicTable/index.d.ts +0 -1
  77. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  78. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  79. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  80. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  81. package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
  82. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  83. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  84. package/lib/components/table/Table/fields/index.d.ts +0 -1
  85. package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
  86. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  87. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  88. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  89. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  90. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  91. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  92. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  93. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  94. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  95. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  96. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  97. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  98. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  99. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  100. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  101. package/lib/components/table/View/index.d.ts +0 -1
  102. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  103. package/lib/components/walletCard/index.js +1 -5
  104. package/lowcode/data-source-form/meta.ts +30 -30
  105. package/lowcode/data-source-table/meta.ts +25 -21
  106. package/package.json +3 -3
@@ -59,11 +59,7 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
- } & {
65
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
66
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
67
63
  JSON: import("react").FC<any>;
68
64
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
69
65
  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>;
@@ -83,7 +79,11 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
83
79
  name?: string | undefined;
84
80
  fieldKey?: string | undefined;
85
81
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
86
- }) | (import("react").FC<{}> & {
82
+ }) | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
83
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
84
+ } & {
85
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
86
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
87
87
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
88
  } & {
89
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -97,5 +97,5 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
97
97
  dataSource?: any;
98
98
  }) => JSX.Element) | import("react").FC<any> | 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 & {
99
99
  onChange: (value: string) => void;
100
- } & 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>;
100
+ } & 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>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type LowCodePageProps = {
3
2
  id: number;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellAdjustPriceProps {
4
3
  value?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps, ButtonProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  export interface CopyProps extends InputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SpinProps } from 'antd';
3
2
  import './index.less';
4
3
  declare type MaskType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  export interface IpadModalProps extends PcModalProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import IpadModal from './IpadModal';
3
2
  import MobileModal from './MobileModal';
4
3
  import PcModal from './PcModal';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id?: number;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const QRCode: (props: any) => JSX.Element;
3
2
  export default QRCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, ModeType } from "../../../types";
3
2
  import "./index.less";
4
3
  declare type GallerySettingProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceGroupType } from "../../../types";
3
2
  declare type GroupProps = {
4
3
  setting: DataSourceGroupType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from 'antd';
3
2
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
4
3
  export default BasicTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
3
2
  declare type CoverProps = {
4
3
  cover?: GallerySettingType["cover"];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type RenderFieldsProps = {
4
3
  fields: string[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
4
3
  export default SortRow;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from '../types';
3
2
  declare const View: (props: GridViewProps & {
4
3
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface NumberProps {
3
2
  max?: number;
4
3
  min?: number;
@@ -100,10 +100,6 @@ var useCodeModal = (cardNo, onCodeClick) => {
100
100
  closeModal
101
101
  };
102
102
  };
103
- var CardIcon = ({ icon }) => {
104
- if (!icon) return null;
105
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-icon" }, typeof icon === "string" ? /* @__PURE__ */ import_react.default.createElement("img", { src: icon, alt: "wallet icon", style: { width: "20px", height: "20px" } }) : icon);
106
- };
107
103
  var CardHeader = ({
108
104
  showIcon = true,
109
105
  showWalletName = true,
@@ -118,7 +114,7 @@ var CardHeader = ({
118
114
  codeType = "barCode",
119
115
  onCodeClick
120
116
  }) => {
121
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level" }, showIcon && iconImg && /* @__PURE__ */ import_react.default.createElement(CardIcon, { icon: iconImg }), showWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), showShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), showCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-right" }, showCode && cardStyle === "normal" && /* @__PURE__ */ import_react.default.createElement(
117
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level" }, showIcon && iconImg && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-icon" }, /* @__PURE__ */ import_react.default.createElement("img", { src: iconImg, alt: "wallet icon", style: { width: "20px", height: "20px" } })), showWalletName && walletName && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-level-text" }, walletName)), showShopName && shopName && /* @__PURE__ */ import_react.default.createElement("div", null, shopName), showCardNo && cardNo && /* @__PURE__ */ import_react.default.createElement("div", null, cardNo)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-card-header-right" }, showCode && cardStyle === "normal" && /* @__PURE__ */ import_react.default.createElement(
122
118
  "div",
123
119
  {
124
120
  className: "pisell-wallet-card-icon-wrapper",
@@ -109,25 +109,25 @@ const dataSourceForm: MetaType = {
109
109
  if (value.isSelect) {
110
110
  target.getProps().setPropValue('title', '');
111
111
  target.node.children.importSchema([]);
112
- }
113
112
 
114
- let childrenSchemas = fields2ChildrenSchemas(
115
- value.item.fields,
116
- target.getProps().getPropValue('renderMode')
117
- );
113
+ let childrenSchemas = fields2ChildrenSchemas(
114
+ value.item.fields,
115
+ target.getProps().getPropValue('renderMode')
116
+ );
118
117
 
119
- if (target.node.children.isEmptyNode) {
120
- target.node.children.importSchema([
121
- createFormGroup(childrenSchemas),
122
- createSubmitButton(),
123
- ]);
124
- }
125
- // 如果Title是空:选择Source后,自动把Source的名称填写到Title里
126
- if (
127
- !target.node.getProps().getPropValue('title') &&
128
- value.title
129
- ) {
130
- target.getProps().setPropValue('title', value.title);
118
+ if (target.node.children.isEmptyNode) {
119
+ target.node.children.importSchema([
120
+ createFormGroup(childrenSchemas),
121
+ createSubmitButton(),
122
+ ]);
123
+ }
124
+ // 如果Title是空:选择Source后,自动把Source的名称填写到Title里
125
+ if (
126
+ !target.node.getProps().getPropValue('title') &&
127
+ value.title
128
+ ) {
129
+ target.getProps().setPropValue('title', value.title);
130
+ }
131
131
  }
132
132
 
133
133
  const dataSource = value.isVariable ? value.value : value.item;
@@ -156,7 +156,7 @@ const dataSourceForm: MetaType = {
156
156
  return {
157
157
  filters: {
158
158
  tables: 'all',
159
- variables: {}
159
+ variables: {},
160
160
  },
161
161
  mode: target.getProps().getPropValue('renderMode'),
162
162
  variables: getDataSourceVariables(target),
@@ -168,7 +168,7 @@ const dataSourceForm: MetaType = {
168
168
  title: '字段',
169
169
  display: 'entry',
170
170
  type: 'group',
171
- name: "_fields1",
171
+ name: '_fields1',
172
172
  items: [
173
173
  {
174
174
  title: {
@@ -261,7 +261,7 @@ const dataSourceForm: MetaType = {
261
261
  props: (target) => {
262
262
  return {
263
263
  filters: {
264
- variables: {}
264
+ variables: {},
265
265
  },
266
266
  variables: getCurrentValueVariables(target),
267
267
  };
@@ -270,7 +270,7 @@ const dataSourceForm: MetaType = {
270
270
  },
271
271
  {
272
272
  type: 'group',
273
- name: "_extraParams",
273
+ name: '_extraParams',
274
274
  title: '额外参数',
275
275
  display: 'entry',
276
276
  items: [
@@ -281,7 +281,7 @@ const dataSourceForm: MetaType = {
281
281
  'en-US': 'List Params',
282
282
  'zh-CN': '列表参数',
283
283
  },
284
- setter: 'StringSetter'
284
+ setter: 'StringSetter',
285
285
  },
286
286
  {
287
287
  name: 'extraParams.get',
@@ -290,7 +290,7 @@ const dataSourceForm: MetaType = {
290
290
  'en-US': 'Get Params',
291
291
  'zh-CN': '获取参数',
292
292
  },
293
- setter: 'JsonSetter'
293
+ setter: 'JsonSetter',
294
294
  },
295
295
  {
296
296
  name: 'extraParams.update',
@@ -299,7 +299,7 @@ const dataSourceForm: MetaType = {
299
299
  'en-US': 'Update Params',
300
300
  'zh-CN': '更新参数',
301
301
  },
302
- setter: 'JsonSetter'
302
+ setter: 'JsonSetter',
303
303
  },
304
304
  // {
305
305
  // name: 'extraParams.create',
@@ -319,8 +319,8 @@ const dataSourceForm: MetaType = {
319
319
  // },
320
320
  // setter: 'StringSetter'
321
321
  // }
322
- ]
323
- }
322
+ ],
323
+ },
324
324
  ],
325
325
  },
326
326
  {
@@ -607,7 +607,7 @@ const dataSourceForm: MetaType = {
607
607
  },
608
608
  },
609
609
  },
610
- ]
610
+ ],
611
611
  },
612
612
  ],
613
613
  configure: {
@@ -667,7 +667,7 @@ const dataSourceForm: MetaType = {
667
667
  componentName: 'FunctionSetter',
668
668
  props: {
669
669
  template:
670
- "customSubmit(values,${extParams}){\n// 格式化数据\nreturn values}",
670
+ 'customSubmit(values,${extParams}){\n// 格式化数据\nreturn values}',
671
671
  },
672
672
  },
673
673
  },
@@ -684,7 +684,7 @@ const dataSourceForm: MetaType = {
684
684
  componentName: 'FunctionSetter',
685
685
  props: {
686
686
  template:
687
- "formatSubmitValues(values,${extParams}){\n// 格式化数据\nreturn values}",
687
+ 'formatSubmitValues(values,${extParams}){\n// 格式化数据\nreturn values}',
688
688
  },
689
689
  },
690
690
  },
@@ -701,7 +701,7 @@ const dataSourceForm: MetaType = {
701
701
  componentName: 'FunctionSetter',
702
702
  props: {
703
703
  template:
704
- "formatInitialValues(values,${extParams}){\n// 格式化数据\nreturn values}",
704
+ 'formatInitialValues(values,${extParams}){\n// 格式化数据\nreturn values}',
705
705
  },
706
706
  },
707
707
  },
@@ -80,16 +80,6 @@ const dataSourceTable = {
80
80
  return target.getProps().setPropValue('dataSource', '');
81
81
  }
82
82
 
83
- // 如果重新选择选择数据源,则清空表格
84
- if (value.isSelect) {
85
- resetTableProps(target);
86
- }
87
-
88
- const columns = fields2Columns(value.item.fields);
89
-
90
- target.getProps().setPropValue('columns', columns);
91
- target.getProps().setPropValue('title', value.title);
92
-
93
83
  setBatchVariables(target, [
94
84
  {
95
85
  label: 'currentFields',
@@ -121,19 +111,29 @@ const dataSourceTable = {
121
111
  },
122
112
  ]);
123
113
 
124
- // 生成默认操作列和标题行按钮
125
- setDefaultOperationAndTitleButtons(target);
114
+ // 如果重新选择选择数据源,则清空表格
115
+ if (value.isSelect) {
116
+ resetTableProps(target);
117
+
118
+ const columns = fields2Columns(value.item.fields);
119
+
120
+ target.getProps().setPropValue('columns', columns);
121
+ target.getProps().setPropValue('title', value.title);
126
122
 
127
- if (
128
- !['pisell2-api', 'mypisell-api'].includes(
129
- value.item.headerDataSource
130
- )
131
- ) {
132
- // 生成默认搜索筛选
133
- setDefaultSearchFilter(target, value.item.fields);
123
+ // 生成默认操作列和标题行按钮
124
+ setDefaultOperationAndTitleButtons(target);
134
125
 
135
- // 生成默认排序
136
- setDefaultSort(target, value.item.fields);
126
+ if (
127
+ !['pisell2-api', 'mypisell-api'].includes(
128
+ value.item.headerDataSource
129
+ )
130
+ ) {
131
+ // 生成默认搜索筛选
132
+ setDefaultSearchFilter(target, value.item.fields);
133
+
134
+ // 生成默认排序
135
+ setDefaultSort(target, value.item.fields);
136
+ }
137
137
  }
138
138
 
139
139
  return target.getProps().setPropValue('dataSource', value.item);
@@ -5456,6 +5456,10 @@ const dataSourceTable = {
5456
5456
  name: 'onDataSourceChange',
5457
5457
  template: 'onDataSourceChange(currentDataSource) {}',
5458
5458
  },
5459
+ {
5460
+ name: 'onDeleteFinish',
5461
+ template: 'onDeleteFinish(record){\n// 无代码 删除成功回调\nconsole.log("onDeleteFinish", record);}',
5462
+ },
5459
5463
  {
5460
5464
  name: 'rowSelection.onChange',
5461
5465
  template:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.682",
3
+ "version": "1.0.684",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -72,8 +72,8 @@
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
74
  "@pisell/date-picker": "1.0.115",
75
- "@pisell/utils": "1.0.43",
76
- "@pisell/icon": "0.0.10"
75
+ "@pisell/icon": "0.0.10",
76
+ "@pisell/utils": "1.0.43"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "^18.0.0",