@pisell/materials 1.0.761 → 1.0.763

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +4 -4
  7. package/build/lowcode/render/default/view.js +13 -13
  8. package/build/lowcode/view.js +14 -14
  9. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  13. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  14. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/index.d.ts +6 -5
  16. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  17. package/es/components/date-picker/index.d.ts +1 -0
  18. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  19. package/es/components/list/index.d.ts +1 -0
  20. package/es/components/page/index.d.ts +1 -0
  21. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  22. package/es/components/pisellAdjustPrice/index.d.ts +1 -0
  23. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  24. package/es/components/pisellGoodPassCard/index.js +3 -3
  25. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  26. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  27. package/es/components/pisellInput/index.d.ts +1 -0
  28. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  29. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  30. package/es/components/productCard/components/Time/components/SelectResource/index.js +2 -4
  31. package/es/components/productCard/components/Time/index.js +3 -1
  32. package/es/components/productCard/locales.d.ts +48 -0
  33. package/es/components/productCard/types.d.ts +82 -0
  34. package/es/components/productCard/utils.d.ts +31 -0
  35. package/es/components/productCard/utils.js +7 -2
  36. package/es/components/select-time/index.d.ts +1 -0
  37. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  38. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  39. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  40. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  41. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  42. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  43. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  44. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  45. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  46. package/es/components/table/Actions/index.d.ts +1 -0
  47. package/es/components/table/BasicTable/index.d.ts +1 -0
  48. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  49. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  50. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  51. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  52. package/es/components/table/Table/fields/index.d.ts +1 -0
  53. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  54. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  55. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  56. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  57. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  58. package/es/components/table/Table/utils.d.ts +1 -1
  59. package/es/components/table/View/index.d.ts +1 -0
  60. package/es/components/versionSelect/index.d.ts +1 -0
  61. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  62. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  63. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  64. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  65. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
  66. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  67. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -5
  68. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  69. package/lib/components/date-picker/index.d.ts +1 -0
  70. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  71. package/lib/components/list/index.d.ts +1 -0
  72. package/lib/components/page/index.d.ts +1 -0
  73. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  74. package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
  75. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  76. package/lib/components/pisellGoodPassCard/index.js +2 -2
  77. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  78. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  79. package/lib/components/pisellInput/index.d.ts +1 -0
  80. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  81. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  82. package/lib/components/productCard/components/Time/components/SelectResource/index.js +2 -4
  83. package/lib/components/productCard/components/Time/index.js +1 -1
  84. package/lib/components/productCard/locales.d.ts +48 -0
  85. package/lib/components/productCard/types.d.ts +82 -0
  86. package/lib/components/productCard/utils.d.ts +31 -0
  87. package/lib/components/productCard/utils.js +5 -2
  88. package/lib/components/select-time/index.d.ts +1 -0
  89. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  90. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  91. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  92. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  93. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  94. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  95. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  96. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  97. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  98. package/lib/components/table/Actions/index.d.ts +1 -0
  99. package/lib/components/table/BasicTable/index.d.ts +1 -0
  100. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  101. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  102. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  103. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  104. package/lib/components/table/Table/fields/index.d.ts +1 -0
  105. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  106. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  107. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  108. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  109. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  110. package/lib/components/table/Table/utils.d.ts +1 -1
  111. package/lib/components/table/View/index.d.ts +1 -0
  112. package/lib/components/versionSelect/index.d.ts +1 -0
  113. package/package.json +2 -2
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
4
5
  labelField: string;
5
6
  valueField: string;
6
7
  extraParams?: Record<string, any> | undefined;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -34,7 +35,7 @@ declare const formFieldMap: {
34
35
  };
35
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
37
  options?: any;
37
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
38
39
  labelField: string;
39
40
  valueField: string;
40
41
  extraParams?: Record<string, any> | undefined;
@@ -59,7 +60,7 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -89,13 +90,13 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
89
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
91
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
92
  options?: any;
92
- optionSourceType?: "default" | "custom" | "api" | undefined;
93
+ optionSourceType?: "custom" | "default" | "api" | undefined;
93
94
  labelField: string;
94
95
  valueField: string;
95
96
  extraParams?: Record<string, any> | undefined;
96
97
  } & {
97
98
  dataSource?: any;
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
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
100
  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>;
101
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ValueProps, SortType } from '../types';
3
4
  declare type IdType = string | number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputNumberProps } from 'antd/es/input-number';
2
3
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
3
4
  value?: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellAdjustPriceProps {
3
4
  value?: number;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellCustomCheckboxGroupProps {
4
+ dataSource?: any[];
5
+ disabled?: boolean;
6
+ allowAdd?: boolean;
7
+ isMultiple?: boolean;
8
+ id?: string | string[];
9
+ onClick?: (value: any) => void;
10
+ onAdd?: () => void;
11
+ renderAddItem?: (item: any) => React.ReactNode;
12
+ [key: string]: any;
13
+ className?: string;
14
+ }
15
+ declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
16
+ export default PisellCustomCheckboxGroup;
@@ -12,8 +12,8 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { useState } from 'react';
14
14
  import { Checkbox, Divider, Typography } from 'antd';
15
- import { locales } from '@pisell/utils';
16
15
  import { PisellText, PisellCard, PisellModal } from "../../index";
16
+ import { getText } from "../../locales";
17
17
  import useEngineContext from "../../hooks/useEngineContext";
18
18
  import "./index.less";
19
19
  var clsPrefix = 'pisell-good-pass-card';
@@ -90,12 +90,12 @@ var index = function index(props) {
90
90
  var list = dataSource.length > 3 ? dataSource.slice(0, 3) : dataSource;
91
91
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
92
92
  className: "".concat(clsPrefix, "-header")
93
- }, /*#__PURE__*/React.createElement("div", null, locales.getText('pisell2.text.goodpass.product-vouchers')), /*#__PURE__*/React.createElement(Typography.Text, {
93
+ }, /*#__PURE__*/React.createElement("div", null, getText('pisell2.text.goodpass.product-vouchers')), /*#__PURE__*/React.createElement(Typography.Text, {
94
94
  underline: true,
95
95
  onClick: function onClick() {
96
96
  return setShowModal(true);
97
97
  }
98
- }, locales.getText('pisell2.text.goodpass.view-more'))), /*#__PURE__*/React.createElement(Divider, {
98
+ }, getText('pisell2.text.goodpass.view-more'))), /*#__PURE__*/React.createElement(Divider, {
99
99
  style: {
100
100
  margin: 4
101
101
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface ScanProps {
3
4
  onChange: (val: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import { PisellContextType } from '../pisell-config-provider/context';
3
4
  declare const PisellInput: {
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1 @@
1
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -6,7 +6,6 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useCallback, useEffect, useState } from 'react';
8
8
  import { Select } from 'antd';
9
- import Divider from "../../../Divider";
10
9
  var SelectResource = function SelectResource(_ref) {
11
10
  var lists = _ref.lists,
12
11
  value = _ref.value,
@@ -35,9 +34,8 @@ var SelectResource = function SelectResource(_ref) {
35
34
  }, d['label']);
36
35
  });
37
36
  }, [lists]);
38
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Select, {
37
+ return /*#__PURE__*/React.createElement(Select, {
39
38
  size: "large",
40
- allowClear: true,
41
39
  showSearch: true,
42
40
  style: {
43
41
  flex: 1
@@ -50,6 +48,6 @@ var SelectResource = function SelectResource(_ref) {
50
48
  });
51
49
  _onChange(item);
52
50
  }
53
- }, renderOptions()));
51
+ }, renderOptions());
54
52
  };
55
53
  export default SelectResource;
@@ -34,7 +34,9 @@ var Time = function Time(_ref) {
34
34
  className: "".concat(prefix, "product-date")
35
35
  }, getServiceTime(item, start_date)) : null, isShowHolder && holder_title ? /*#__PURE__*/React.createElement("div", {
36
36
  className: "".concat(prefix, "product-holder-wrap")
37
- }, holder_title) : null, isShowChangeResource ? /*#__PURE__*/React.createElement(Divider, null) : null, resource_id || relation_form_name || isShowChangeResource ? /*#__PURE__*/React.createElement("div", {
37
+ }, holder_title) : null, isShowChangeResource && (start_date && end_date || isShowHolder && holder_title) ? /*#__PURE__*/React.createElement(Divider, {
38
+ type: "inside"
39
+ }) : null, resource_id || relation_form_name || isShowChangeResource ? /*#__PURE__*/React.createElement("div", {
38
40
  className: "".concat(prefix, "product-technician ").concat(isShowChangeResource ? 'pisell-lowcode-change-resource' : '')
39
41
  }, resource_id && !is_hide_like ? /*#__PURE__*/React.createElement("div", {
40
42
  className: "".concat(prefix, "product-card-like-wrap")
@@ -0,0 +1,48 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
5
+ 'pisell2.product.card.minute': (val: number) => string;
6
+ 'pisell2.product.card.discount.reason': string;
7
+ 'pisell2.product.card.discount.note': string;
8
+ 'pisell2.product.card.discount.add.note': string;
9
+ 'pisell2.product.card.discount.edit.note': string;
10
+ 'pisell2.product.card.confirm': string;
11
+ 'pisell2.product.card.cancel': string;
12
+ 'pisell2.product.card.note.pla': string;
13
+ 'pisell2.product.card.items.package': string;
14
+ 'pisell2.product.card.view-all': string;
15
+ 'pisell2.product.card.view-less': string;
16
+ };
17
+ 'zh-CN': {
18
+ 'pisell2.product.card.day': (val: number) => string;
19
+ 'pisell2.product.card.day.event': (val: number) => string;
20
+ 'pisell2.product.card.minute': (val: number) => string;
21
+ 'pisell2.product.card.discount.reason': string;
22
+ 'pisell2.product.card.discount.note': string;
23
+ 'pisell2.product.card.discount.add.note': string;
24
+ 'pisell2.product.card.discount.edit.note': string;
25
+ 'pisell2.product.card.confirm': string;
26
+ 'pisell2.product.card.cancel': string;
27
+ 'pisell2.product.card.note.pla': string;
28
+ 'pisell2.product.card.items.package': string;
29
+ 'pisell2.product.card.view-all': string;
30
+ 'pisell2.product.card.view-less': string;
31
+ };
32
+ 'zh-HK': {
33
+ 'pisell2.product.card.day': (val: number) => string;
34
+ 'pisell2.product.card.day.event': (val: number) => string;
35
+ 'pisell2.product.card.minute': (val: number) => string;
36
+ 'pisell2.product.card.discount.reason': string;
37
+ 'pisell2.product.card.discount.note': string;
38
+ 'pisell2.product.card.discount.add.note': string;
39
+ 'pisell2.product.card.discount.edit.note': string;
40
+ 'pisell2.product.card.confirm': string;
41
+ 'pisell2.product.card.cancel': string;
42
+ 'pisell2.product.card.note.pla': string;
43
+ 'pisell2.product.card.items.package': string;
44
+ 'pisell2.product.card.view-all': string;
45
+ 'pisell2.product.card.view-less': string;
46
+ };
47
+ };
48
+ export default _default;
@@ -0,0 +1,82 @@
1
+ export declare type bundleType = {
2
+ id: number;
3
+ name: string;
4
+ num: number;
5
+ price: number;
6
+ total: number;
7
+ origin_total?: number;
8
+ price_type?: string;
9
+ options?: optionType[];
10
+ };
11
+ /**
12
+ * @description:
13
+ * @return {*}
14
+ * @Author: WangHan
15
+ * @Date: 2025-01-02 23:00
16
+ */
17
+ export declare type optionType = {
18
+ id: number;
19
+ name: string;
20
+ num: number;
21
+ price: number;
22
+ total: number;
23
+ origin_total?: number;
24
+ };
25
+ /**
26
+ * @title: 商品商品类型
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2025-01-02 22:48
31
+ */
32
+ export declare type productType = {
33
+ _id: string | number;
34
+ id: number;
35
+ name: string;
36
+ price: number;
37
+ total: number;
38
+ num: number;
39
+ origin_total?: number;
40
+ image?: string;
41
+ isShowNote?: boolean;
42
+ note?: string;
43
+ like_status?: string;
44
+ bundle?: bundleType[];
45
+ options?: optionType[];
46
+ isShowAction?: boolean;
47
+ actionText?: string;
48
+ errorMessage?: string;
49
+ product_option_string?: string;
50
+ discount_reason?: string;
51
+ relation_products?: any[];
52
+ resource_id?: string | number;
53
+ relation_form_name?: string;
54
+ holder_title?: string;
55
+ start_date?: string;
56
+ end_date?: string;
57
+ is_show_duration?: boolean;
58
+ is_show_week?: boolean;
59
+ };
60
+ /**
61
+ * 排序总配置
62
+ */
63
+ export declare type ProductCardTypes = {
64
+ dataSource: productType;
65
+ isShowImage?: boolean;
66
+ isShowHolder?: boolean;
67
+ isShowNote?: boolean;
68
+ isShowPackageNote?: boolean;
69
+ isShowDelete?: boolean;
70
+ disabledEdit?: boolean;
71
+ locale?: string;
72
+ symbol?: string;
73
+ isShowChangeHolder?: boolean;
74
+ isShowChangeResource?: boolean;
75
+ isShowChangeDate?: boolean;
76
+ onAction?: (val: any) => void;
77
+ onDelete?: (val: any) => void;
78
+ onNote?: (val: any) => void;
79
+ onLike?: (val: any) => void;
80
+ onCard?: (val: any) => void;
81
+ onChangeResource?: (val: any) => void;
82
+ };
@@ -0,0 +1,31 @@
1
+ import 'dayjs/locale/zh-cn';
2
+ import 'dayjs/locale/en';
3
+ import 'dayjs/locale/zh-tw';
4
+ /**
5
+ * @title: 是否英文
6
+ * @description:
7
+ * @param {any} item
8
+ * @return {*}
9
+ * @Author: WangHan
10
+ * @Date: 2024-12-28 22:49
11
+ */
12
+ export declare const isEn: (item: any) => boolean;
13
+ /**
14
+ * @title: 跨日预约时间
15
+ * @description:
16
+ * @param {any} item
17
+ * @return {*}
18
+ * @Author: WangHan
19
+ * @Date: 2024-12-28 22:50
20
+ */
21
+ export declare const formatMultiDayDate: (item: any) => string;
22
+ /**
23
+ * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
24
+ * @description:
25
+ * @param {any} item
26
+ * @param {any} currentDate
27
+ * @return {*}
28
+ * @Author: zhiwei.Wang
29
+ * @Date: 2024-04-26 14:04
30
+ */
31
+ export declare const getServiceTime: (item: any, currentDate: any) => string;
@@ -68,7 +68,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
68
68
  dayjs.locale(localeTypes[locale]);
69
69
  var startDate = dayjs(item === null || item === void 0 ? void 0 : item.start_date);
70
70
  var endDate = dayjs(item === null || item === void 0 ? void 0 : item.end_date);
71
- var diffInDays = (item === null || item === void 0 ? void 0 : item.custom_day_count) || endDate.diff(startDate, (item === null || item === void 0 ? void 0 : item.duration_type) || 'day');
71
+ var diffInDays = (item === null || item === void 0 ? void 0 : item.custom_day_count) || endDate.diff(startDate, 'day');
72
72
  var _format = isEn ? 'ddd, DD/MM/YYYY' : 'YYYY-MM-DD,ddd';
73
73
 
74
74
  // 是否自定义格式
@@ -82,6 +82,11 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
82
82
  startDate = dayjs("".concat(item === null || item === void 0 ? void 0 : item.start_date, " ").concat(item === null || item === void 0 ? void 0 : item.start_time));
83
83
  endDate = dayjs("".concat(item === null || item === void 0 ? void 0 : item.end_date, " ").concat(item === null || item === void 0 ? void 0 : item.end_time));
84
84
  }
85
+
86
+ // 显示时长分钟
87
+ if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'minutes') {
88
+ diffInDays = endDate.diff(startDate, 'minute');
89
+ }
85
90
  var date = "".concat(startDate.format(_format), " ~ ").concat(endDate.format(_format));
86
91
 
87
92
  // 自定义文案
@@ -95,5 +100,5 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
95
100
  };
96
101
  text = (textTypes === null || textTypes === void 0 ? void 0 : textTypes[item === null || item === void 0 ? void 0 : item.duration_type]) || text;
97
102
  var duration = "".concat(diffInDays).concat(text);
98
- return "".concat(date, " ").concat(diffInDays ? "(".concat(duration, ")") : '');
103
+ return "".concat(date, " (").concat(duration, ")");
99
104
  };
@@ -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 { 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 { GridViewType, ModeType } from "../../../types";
2
3
  declare type ViewModeProps = {
3
4
  view: GridViewType;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -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 "./index.less";
2
3
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
3
4
  export default SortRow;
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
167
167
  sort?: SortType | undefined;
168
168
  mode: "" | "localStorage" | "remote";
169
169
  currentViewMode: ModeType;
170
- }) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
170
+ }) => ("filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
171
171
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
172
  export declare const stringify: (obj: Record<string, any>) => string;
173
173
  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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface Version {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {