@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,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;
@@ -34,8 +34,8 @@ __export(pisellGoodPassCard_exports, {
34
34
  module.exports = __toCommonJS(pisellGoodPassCard_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
- var import_utils = require("@pisell/utils");
38
37
  var import__ = require("../../index");
38
+ var import_locales = require("../../locales");
39
39
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
40
40
  var import_index = require("./index.less");
41
41
  var clsPrefix = "pisell-good-pass-card";
@@ -90,7 +90,7 @@ var index = (props) => {
90
90
  };
91
91
  const renderMixedMode = () => {
92
92
  const list = dataSource.length > 3 ? dataSource.slice(0, 3) : dataSource;
93
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${clsPrefix}-header` }, /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("pisell2.text.goodpass.product-vouchers")), /* @__PURE__ */ import_react.default.createElement(import_antd.Typography.Text, { underline: true, onClick: () => setShowModal(true) }, import_utils.locales.getText("pisell2.text.goodpass.view-more"))), /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: 4 } }), /* @__PURE__ */ import_react.default.createElement("div", { className: `${clsPrefix}-body` }, list.map(renderVoucherItem)));
93
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: `${clsPrefix}-header` }, /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_locales.getText)("pisell2.text.goodpass.product-vouchers")), /* @__PURE__ */ import_react.default.createElement(import_antd.Typography.Text, { underline: true, onClick: () => setShowModal(true) }, (0, import_locales.getText)("pisell2.text.goodpass.view-more"))), /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: 4 } }), /* @__PURE__ */ import_react.default.createElement("div", { className: `${clsPrefix}-body` }, list.map(renderVoucherItem)));
94
94
  };
95
95
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderModal(), /* @__PURE__ */ import_react.default.createElement(
96
96
  import__.PisellCard,
@@ -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;
@@ -34,7 +34,6 @@ __export(SelectResource_exports, {
34
34
  module.exports = __toCommonJS(SelectResource_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
- var import_Divider = __toESM(require("../../../Divider"));
38
37
  var SelectResource = ({ lists, value, onChange }) => {
39
38
  const [selectedValue, setSelectedValue] = (0, import_react.useState)();
40
39
  (0, import_react.useEffect)(() => {
@@ -45,11 +44,10 @@ var SelectResource = ({ lists, value, onChange }) => {
45
44
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Select.Option, { value: d.id, key: d.id }, d["label"]);
46
45
  });
47
46
  }, [lists]);
48
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Divider.default, null), /* @__PURE__ */ import_react.default.createElement(
47
+ return /* @__PURE__ */ import_react.default.createElement(
49
48
  import_antd.Select,
50
49
  {
51
50
  size: "large",
52
- allowClear: true,
53
51
  showSearch: true,
54
52
  style: { flex: 1 },
55
53
  value: selectedValue,
@@ -60,6 +58,6 @@ var SelectResource = ({ lists, value, onChange }) => {
60
58
  }
61
59
  },
62
60
  renderOptions()
63
- ));
61
+ );
64
62
  };
65
63
  var SelectResource_default = SelectResource;
@@ -59,7 +59,7 @@ var Time = ({
59
59
  const isShow = (0, import_react.useMemo)(() => {
60
60
  return start_date && end_date || isShowHolder && holder_title || resource_id || relation_form_name;
61
61
  }, [start_date, isShowHolder, holder_title, resource_id]);
62
- return isShow ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Divider.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-time-wrap` }, start_date && end_date ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-date` }, (0, import_utils.getServiceTime)(item, start_date)) : null, isShowHolder && holder_title ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-holder-wrap` }, holder_title) : null, isShowChangeResource ? /* @__PURE__ */ import_react.default.createElement(import_Divider.default, null) : null, resource_id || relation_form_name || isShowChangeResource ? /* @__PURE__ */ import_react.default.createElement(
62
+ return isShow ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_Divider.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-time-wrap` }, start_date && end_date ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-date` }, (0, import_utils.getServiceTime)(item, start_date)) : null, isShowHolder && holder_title ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}product-holder-wrap` }, holder_title) : null, isShowChangeResource && (start_date && end_date || isShowHolder && holder_title) ? /* @__PURE__ */ import_react.default.createElement(import_Divider.default, { type: "inside" }) : null, resource_id || relation_form_name || isShowChangeResource ? /* @__PURE__ */ import_react.default.createElement(
63
63
  "div",
64
64
  {
65
65
  className: `${prefix}product-technician ${isShowChangeResource ? "pisell-lowcode-change-resource" : ""}`
@@ -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;
@@ -74,7 +74,7 @@ var getServiceTime = (item, currentDate) => {
74
74
  import_dayjs.default.locale(localeTypes[locale]);
75
75
  let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
76
76
  let endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
77
- const diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, (item == null ? void 0 : item.duration_type) || "day");
77
+ let diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, "day");
78
78
  let _format = isEn2 ? "ddd, DD/MM/YYYY" : "YYYY-MM-DD,ddd";
79
79
  if ((item == null ? void 0 : item.hasOwnProperty("format")) && ((_b = item == null ? void 0 : item.format) == null ? void 0 : _b.length) > 0) {
80
80
  _format = isEn2 ? (_c = item == null ? void 0 : item.format) == null ? void 0 : _c[0] : (_d = item == null ? void 0 : item.format) == null ? void 0 : _d[1];
@@ -83,6 +83,9 @@ var getServiceTime = (item, currentDate) => {
83
83
  startDate = (0, import_dayjs.default)(`${item == null ? void 0 : item.start_date} ${item == null ? void 0 : item.start_time}`);
84
84
  endDate = (0, import_dayjs.default)(`${item == null ? void 0 : item.end_date} ${item == null ? void 0 : item.end_time}`);
85
85
  }
86
+ if ((item == null ? void 0 : item.duration_type) === "minutes") {
87
+ diffInDays = endDate.diff(startDate, "minute");
88
+ }
86
89
  const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
87
90
  let text = import_utils.locales.getText("pisell2.product.card.day")(diffInDays);
88
91
  if (item == null ? void 0 : item.custom_day_count) {
@@ -94,7 +97,7 @@ var getServiceTime = (item, currentDate) => {
94
97
  };
95
98
  text = (textTypes == null ? void 0 : textTypes[item == null ? void 0 : item.duration_type]) || text;
96
99
  let duration = `${diffInDays}${text}`;
97
- return `${date} ${diffInDays ? `(${duration})` : ""}`;
100
+ return `${date} (${duration})`;
98
101
  };
99
102
  // Annotate the CommonJS export names for ESM import in node:
100
103
  0 && (module.exports = {
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.761",
3
+ "version": "1.0.763",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -71,8 +71,8 @@
71
71
  "swiper": "^8.4.7",
72
72
  "react-barcode": "^1.5.3",
73
73
  "vod-js-sdk-v6": "^1.4.11",
74
- "@pisell/date-picker": "1.0.115",
75
74
  "@pisell/utils": "1.0.43",
75
+ "@pisell/date-picker": "1.0.115",
76
76
  "@pisell/icon": "0.0.10"
77
77
  },
78
78
  "peerDependencies": {