@pisell/materials 1.0.697 → 1.0.699

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 (134) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  8. package/es/components/collapse/index.d.ts +15 -0
  9. package/es/components/colorPicker/index.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  11. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  12. package/es/components/drag-sort-tree/index.d.ts +3 -0
  13. package/es/components/filter/components/items/index.d.ts +1 -0
  14. package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
  15. package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
  16. package/es/components/filter/components/items/text/index.d.ts +1 -0
  17. package/es/components/picker-view/index.d.ts +2 -0
  18. package/es/components/pisell-config-provider/index.d.ts +12 -0
  19. package/es/components/pisellAvatar/index.d.ts +19 -0
  20. package/es/components/pisellCard/index.d.ts +19 -0
  21. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  22. package/es/components/pisellDropdown/index.d.ts +20 -0
  23. package/es/components/pisellEmpty/index.d.ts +19 -0
  24. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  25. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  26. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  27. package/es/components/pisellList01/index.d.ts +17 -0
  28. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  29. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  30. package/es/components/productCard/components/Action/index.d.ts +3 -0
  31. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  32. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  33. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  34. package/es/components/productCard/components/Header/index.d.ts +3 -0
  35. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  36. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  37. package/es/components/productCard/components/Note/index.d.ts +3 -0
  38. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  39. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  40. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  41. package/es/components/productCard/components/Packages/index.d.ts +3 -0
  42. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  43. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  44. package/es/components/productCard/components/Time/components/Like/index.d.ts +8 -0
  45. package/es/components/productCard/components/Time/index.d.ts +3 -0
  46. package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
  47. package/es/components/productCard/index.d.ts +5 -0
  48. package/es/components/productCard/locales.d.ts +45 -0
  49. package/es/components/productCard/status.d.ts +32 -0
  50. package/es/components/productCard/types.d.ts +78 -0
  51. package/es/components/productCard/utils.d.ts +31 -0
  52. package/es/components/section-footers/index.d.ts +9 -0
  53. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  54. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  55. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  56. package/es/components/table/Gallery/index.d.ts +5 -0
  57. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  58. package/es/components/table/Table/index.d.ts +4 -0
  59. package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
  60. package/es/components/table/Table/utils.d.ts +173 -0
  61. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  62. package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
  63. package/es/components/table/types.d.ts +253 -0
  64. package/es/components/walletCard/Guest/index.js +9 -8
  65. package/es/index.d.ts +141 -0
  66. package/es/locales/en-US.d.ts +241 -0
  67. package/es/locales/index.d.ts +1 -0
  68. package/es/locales/zh-CN.d.ts +236 -0
  69. package/es/locales/zh-TW.d.ts +236 -0
  70. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  71. package/lib/components/collapse/index.d.ts +15 -0
  72. package/lib/components/colorPicker/index.d.ts +1 -0
  73. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  74. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  75. package/lib/components/drag-sort-tree/index.d.ts +3 -0
  76. package/lib/components/filter/components/items/index.d.ts +1 -0
  77. package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
  78. package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
  79. package/lib/components/filter/components/items/text/index.d.ts +1 -0
  80. package/lib/components/picker-view/index.d.ts +2 -0
  81. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  82. package/lib/components/pisellAvatar/index.d.ts +19 -0
  83. package/lib/components/pisellCard/index.d.ts +19 -0
  84. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  85. package/lib/components/pisellDropdown/index.d.ts +20 -0
  86. package/lib/components/pisellEmpty/index.d.ts +19 -0
  87. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  88. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  89. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  90. package/lib/components/pisellList01/index.d.ts +17 -0
  91. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  92. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  93. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  94. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  95. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  96. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  97. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  98. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  99. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  100. package/lib/components/productCard/components/Note/index.d.ts +3 -0
  101. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  102. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  103. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  104. package/lib/components/productCard/components/Packages/index.d.ts +3 -0
  105. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  106. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  107. package/lib/components/productCard/components/Time/components/Like/index.d.ts +8 -0
  108. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  109. package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
  110. package/lib/components/productCard/index.d.ts +5 -0
  111. package/lib/components/productCard/locales.d.ts +45 -0
  112. package/lib/components/productCard/status.d.ts +32 -0
  113. package/lib/components/productCard/types.d.ts +78 -0
  114. package/lib/components/productCard/utils.d.ts +31 -0
  115. package/lib/components/section-footers/index.d.ts +9 -0
  116. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  117. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  118. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  119. package/lib/components/table/Gallery/index.d.ts +5 -0
  120. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  121. package/lib/components/table/Table/index.d.ts +4 -0
  122. package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
  123. package/lib/components/table/Table/utils.d.ts +173 -0
  124. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  125. package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
  126. package/lib/components/table/types.d.ts +253 -0
  127. package/lib/components/walletCard/Guest/index.js +10 -1
  128. package/lib/index.d.ts +141 -0
  129. package/lib/locales/en-US.d.ts +241 -0
  130. package/lib/locales/index.d.ts +1 -0
  131. package/lib/locales/zh-CN.d.ts +236 -0
  132. package/lib/locales/zh-TW.d.ts +236 -0
  133. package/lowcode/wallet-card/meta.ts +16 -2
  134. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface TimeSlot {
4
+ value: string;
5
+ label: string;
6
+ time: string;
7
+ remainingCount: number;
8
+ disabled?: boolean;
9
+ }
10
+ export interface TimeResourceSelectorProps {
11
+ timeSlots?: TimeSlot[];
12
+ multiple?: boolean;
13
+ showUnavailable?: boolean;
14
+ defaultExpanded?: boolean;
15
+ defaultSelectFirst?: boolean;
16
+ onChange?: (values: string | string[]) => void;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
21
+ export default TimeResourceSelector;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapseProps {
4
+ panelBackground?: string;
5
+ panelMarginBottom?: string | 0;
6
+ panelBorderRadius?: string | 0;
7
+ items: any[];
8
+ showHeader?: boolean;
9
+ headerColor?: string | '#101828';
10
+ headerFontSize?: string | 14;
11
+ expandIcon?: any;
12
+ [key: string]: any;
13
+ }
14
+ declare const Collapse: React.FC<CollapseProps>;
15
+ export default Collapse;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ColorPickerProps } from 'antd';
2
3
  declare const ColorPicker: (props: ColorPickerProps) => JSX.Element;
3
4
  export default ColorPicker;
@@ -0,0 +1,98 @@
1
+ import React from 'react';
2
+ import { DataSourceTableProps } from '../type';
3
+ import { OperationItem } from '../type';
4
+ interface UseTablePropsProps {
5
+ data: any;
6
+ originProps: DataSourceTableProps;
7
+ openDrawer: (type: OperationItem) => void;
8
+ closeDrawer: () => void;
9
+ refreshData: () => void;
10
+ handleFilterChange: (changedFields: any, allFields: any) => void;
11
+ tableRef: any;
12
+ }
13
+ /**
14
+ * 处理table的props
15
+ * 转换title
16
+ * @param props
17
+ * @returns
18
+ */
19
+ declare const useTableProps: (props: UseTablePropsProps) => {
20
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
21
+ pagination: {
22
+ total: number;
23
+ current: number;
24
+ pageSize: number;
25
+ size: string;
26
+ showSizeChanger: boolean;
27
+ };
28
+ columns: import("./useColumns").Column[];
29
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
30
+ buttons: any[] | null;
31
+ filter: JSX.Element | null;
32
+ onRow: (record: any) => any;
33
+ actionButtons: any[] | null;
34
+ titleButtons?: {
35
+ show: boolean;
36
+ maxCount: number;
37
+ items: OperationItem[];
38
+ } | undefined;
39
+ tableButtons?: {
40
+ show: boolean;
41
+ maxCount: number;
42
+ items: OperationItem[];
43
+ } | undefined;
44
+ operation?: {
45
+ show: boolean;
46
+ title: string; /**
47
+ * 处理table的props
48
+ * 转换title
49
+ * @param props
50
+ * @returns
51
+ */
52
+ width: number;
53
+ align: "center" | "left" | "right";
54
+ fixed: false | "left" | "right";
55
+ type: "button" | "link";
56
+ items: OperationItem[];
57
+ } | undefined;
58
+ operationContent?: {
59
+ [key: string]: React.ReactNode;
60
+ } | undefined;
61
+ dataSource: import("../../provider/dataSource/DataSourceContext").DataSourceType;
62
+ search?: {
63
+ show: boolean;
64
+ placeholder: string;
65
+ } | undefined;
66
+ __designMode: string;
67
+ componentId: string;
68
+ clickToDetail?: {
69
+ show: boolean;
70
+ useCustomAction: boolean;
71
+ actionType: string;
72
+ openMode: "modal" | "drawer";
73
+ openContentSize: "large" | "small" | "middle";
74
+ openTitle: string;
75
+ key: string;
76
+ } | undefined;
77
+ filterBy?: Record<string, any> | undefined;
78
+ sortBy: string;
79
+ tabs?: {
80
+ show: boolean;
81
+ type: string;
82
+ items: {
83
+ name: string;
84
+ filterBy: Record<string, any>;
85
+ sortBy: string;
86
+ }[];
87
+ } | undefined;
88
+ onValuesChange?: ((changedValues: any, values: any) => void) | undefined;
89
+ onDeleteFinish?: ((record: Record<string, any>) => void) | undefined;
90
+ extraParams?: {
91
+ list?: Record<string, any> | undefined;
92
+ get?: Record<string, any> | undefined;
93
+ update?: Record<string, any> | undefined;
94
+ create?: Record<string, any> | undefined;
95
+ destroy?: Record<string, any> | undefined;
96
+ } | undefined;
97
+ };
98
+ export default useTableProps;
@@ -0,0 +1,79 @@
1
+ /// <reference types="react" />
2
+ import { ColumnType } from 'antd/es/table';
3
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
4
+ export declare type OperationItem = {
5
+ label?: string;
6
+ openMode: 'modal' | 'drawer' | 'custom';
7
+ openContentSize: 'small' | 'middle' | 'large';
8
+ openTitle: string;
9
+ actionType: 'detail' | 'edit' | 'delete' | 'custom';
10
+ key: string;
11
+ buttonProps?: any;
12
+ onClick?: (record: any) => void;
13
+ };
14
+ export interface DataSourceTableProps {
15
+ title?: string | React.ReactNode | (() => React.ReactNode);
16
+ subTitle?: string | React.ReactNode | (() => React.ReactNode);
17
+ titleButtons?: {
18
+ show: boolean;
19
+ maxCount: number;
20
+ items: OperationItem[];
21
+ };
22
+ tableButtons?: {
23
+ show: boolean;
24
+ maxCount: number;
25
+ items: OperationItem[];
26
+ };
27
+ buttons?: any[];
28
+ operation?: {
29
+ show: boolean;
30
+ title: string;
31
+ width: number;
32
+ align: 'left' | 'center' | 'right';
33
+ fixed: 'left' | 'right' | false;
34
+ type: 'link' | 'button';
35
+ items: OperationItem[];
36
+ };
37
+ operationContent?: {
38
+ [key: string]: React.ReactNode;
39
+ };
40
+ dataSource: DataSourceType;
41
+ columns: ColumnType<any>[];
42
+ filter: any;
43
+ search?: {
44
+ show: boolean;
45
+ placeholder: string;
46
+ };
47
+ __designMode: string;
48
+ componentId: string;
49
+ clickToDetail?: {
50
+ show: boolean;
51
+ useCustomAction: boolean;
52
+ actionType: string;
53
+ openMode: 'modal' | 'drawer';
54
+ openContentSize: 'small' | 'middle' | 'large';
55
+ openTitle: string;
56
+ key: string;
57
+ };
58
+ onRow?: any;
59
+ filterBy?: Record<string, any>;
60
+ sortBy: string;
61
+ tabs?: {
62
+ show: boolean;
63
+ type: string;
64
+ items: {
65
+ name: string;
66
+ filterBy: Record<string, any>;
67
+ sortBy: string;
68
+ }[];
69
+ };
70
+ onValuesChange?: (changedValues: any, values: any) => void;
71
+ onDeleteFinish?: (record: Record<string, any>) => void;
72
+ extraParams?: {
73
+ list?: Record<string, any>;
74
+ get?: Record<string, any>;
75
+ update?: Record<string, any>;
76
+ create?: Record<string, any>;
77
+ destroy?: Record<string, any>;
78
+ };
79
+ }
@@ -0,0 +1,3 @@
1
+ import { SortType } from './types';
2
+ declare const DragSortTree: (props: SortType) => JSX.Element;
3
+ export default DragSortTree;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Text: () => JSX.Element;
2
3
  export default Text;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Text: (props: any) => JSX.Element;
2
3
  export default Text;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -0,0 +1,2 @@
1
+ import { PickerView } from 'antd-mobile';
2
+ export default PickerView;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from './context';
3
+ interface PisellConfigProviderType {
4
+ platform?: PisellContextType['platform'];
5
+ children: React.ReactNode;
6
+ /** 货币符号 */
7
+ symbol?: string;
8
+ /** 当前语言环境 */
9
+ locale?: string;
10
+ }
11
+ declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
+ export default PisellConfigProvider;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { AvatarProps } from 'antd';
3
+ import './index.less';
4
+ export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
5
+ export interface PisellAvatarProps extends Omit<AvatarProps, 'size' | 'shape'> {
6
+ shape?: 'circle' | 'square';
7
+ size?: AvatarSize;
8
+ src?: string;
9
+ alt?: string;
10
+ icon?: React.ReactNode;
11
+ children?: React.ReactNode;
12
+ className?: string;
13
+ style?: React.CSSProperties;
14
+ useTextAvatar?: boolean;
15
+ borderRadius?: number;
16
+ onError?: () => boolean;
17
+ }
18
+ declare const PisellAvatar: React.FC<PisellAvatarProps>;
19
+ export default PisellAvatar;
@@ -0,0 +1,19 @@
1
+ import { CardProps } from 'antd';
2
+ import './index.less';
3
+ export interface PisellCardProps extends CardProps {
4
+ bordered?: boolean;
5
+ selected?: boolean;
6
+ loading?: boolean;
7
+ padding?: number;
8
+ borderRadius?: number;
9
+ disabled?: boolean;
10
+ onClick?: () => void;
11
+ isClickable?: boolean;
12
+ }
13
+ /**
14
+ * Pisell 卡片容器组件
15
+ * @param props
16
+ * @constructor
17
+ */
18
+ declare const PisellCard: (props: PisellCardProps) => JSX.Element;
19
+ export default PisellCard;
@@ -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;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface MenuItemType {
4
+ key: string;
5
+ label: string;
6
+ icon?: React.ReactNode;
7
+ shortcut?: string;
8
+ divider?: boolean;
9
+ }
10
+ export interface PisellDropdownProps {
11
+ trigger?: React.ReactNode;
12
+ items?: MenuItemType[];
13
+ showShortcut?: boolean;
14
+ triggerType?: ('click' | 'hover')[];
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onSelect?: (key: string) => void;
18
+ }
19
+ declare const PisellDropdown: React.FC<PisellDropdownProps>;
20
+ export default PisellDropdown;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { EmptyProps } from 'antd';
3
+ import { PisellContextType } from '../pisell-config-provider/context';
4
+ import './index.less';
5
+ export interface PisellEmptyProps extends EmptyProps {
6
+ /** 平台 */
7
+ platform?: PisellContextType['platform'];
8
+ /** 额外内容描述 */
9
+ extraDescription?: React.ReactNode;
10
+ /** 额外内容描述 */
11
+ icon?: React.ReactNode;
12
+ /** 自定义底部额外操作区域 */
13
+ footer?: React.ReactNode;
14
+ /** 最大宽度 */
15
+ maxWidth?: number;
16
+ [key: string]: any;
17
+ }
18
+ declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
19
+ export default PisellEmpty;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellHeaderProgressBarProps {
4
+ title?: React.ReactNode;
5
+ stepText?: React.ReactNode;
6
+ showClose?: boolean;
7
+ /** 是否启用投影 */
8
+ enableShadow?: boolean;
9
+ /** 是否启用描边 */
10
+ enableBorder?: boolean;
11
+ /** 描边粗细 */
12
+ borderWidth?: number;
13
+ /** 描边颜色 */
14
+ borderColor?: string;
15
+ /** 头部背景颜色 */
16
+ backgroundColor?: string;
17
+ /** 自定义类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示返回键 */
22
+ showBack?: boolean;
23
+ /** 返回按钮点击事件 */
24
+ onBack?: () => void;
25
+ /** 关闭按钮点击事件 */
26
+ onClose?: () => void;
27
+ }
28
+ declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
29
+ export default PisellHeaderProgressBar;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import 'swiper/swiper-bundle.css';
3
+ import './index.less';
4
+ export interface PisellImageCarouselsProps {
5
+ dataSource?: string[];
6
+ width?: number | string;
7
+ height?: number;
8
+ showArrows?: boolean;
9
+ showDots?: boolean;
10
+ autoplay?: boolean;
11
+ interval?: number;
12
+ borderRadius?: number;
13
+ loop?: boolean;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ }
17
+ declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
18
+ export default PisellImageCarousels;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export declare type EntryModeType = {
5
+ /**
6
+ * 录入模式名称
7
+ * scanCode: 扫码录入
8
+ * input: 手动录入
9
+ * scanner: 扫码枪录入
10
+ * nfc: NFC录入
11
+ */
12
+ type: 'scanCode' | 'input' | 'scanner' | 'nfc';
13
+ /**
14
+ * 录入模式文案 没有使用默认文案
15
+ */
16
+ name?: string;
17
+ };
18
+ export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
19
+ /** 平台 */
20
+ platform?: PisellContextType['platform'];
21
+ /** 录入模式 */
22
+ entryModes: EntryModeType[];
23
+ /** 标题文案 */
24
+ title?: React.ReactNode;
25
+ /** 搜索框描述文案 */
26
+ searchDescribe?: React.ReactNode;
27
+ /** 录入信息值改变 */
28
+ onChange?: (val: string) => void;
29
+ /** 录入类型切换时候触发的 */
30
+ onChangeType?: (val: null | EntryModeType['type']) => void;
31
+ }
32
+ declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
33
+ export default PisellInformationEntry;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellList01Props {
4
+ dataSource?: any[];
5
+ showSearch: boolean;
6
+ showCategory: boolean;
7
+ placeholder?: string;
8
+ renderItem?: (item: any, index: number) => React.ReactNode;
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ onChange?: (anchor: string) => void;
12
+ onSearch?: (value: any) => void;
13
+ isShowEmpty?: boolean;
14
+ description?: any;
15
+ }
16
+ declare const PisellList01: React.FC<PisellList01Props>;
17
+ export default PisellList01;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { PisellNavigationMenuProps } from './types';
3
+ import './PisellNavigationMenu.less';
4
+ declare const PisellNavigationMenu: React.FC<PisellNavigationMenuProps>;
5
+ export default PisellNavigationMenu;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellSectionHeadersProps {
4
+ /** 是否占据空间(true: 占据空间, false: 不占据空间) */
5
+ /** 左侧返回区域 */
6
+ backNode?: React.ReactNode;
7
+ /** 中间内容区域 */
8
+ centerNode?: React.ReactNode;
9
+ /** 右侧操作区域 */
10
+ actionNode?: React.ReactNode;
11
+ /** 自定义类名 */
12
+ className?: string;
13
+ /** 自定义样式 */
14
+ style?: React.CSSProperties;
15
+ /** 返回按钮点击事件 */
16
+ onBack?: () => void;
17
+ /** 操作区域点击事件 */
18
+ onAction?: () => void;
19
+ }
20
+ declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
21
+ export default PisellSectionHeaders;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
3
+ export default Action;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
+ export default Footer;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Divider: ({ type }: any) => JSX.Element;
3
+ export default Divider;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
3
+ export default DeleteButton;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: (props: any) => JSX.Element;
3
+ export default Header;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Note: (props: any) => JSX.Element | null;
3
+ export default Note;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapsibleListProps<T> {
4
+ list: T[];
5
+ renderItem: (item: T, index: number) => React.ReactNode;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ }
9
+ declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
10
+ export default CollapsibleList;
@@ -0,0 +1 @@
1
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
+ export default Options;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
+ export default Packages;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @title: 金额是否是负
3
+ * @description:
4
+ * @param {string} type
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-11-22 10:01
8
+ */
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
+ /**
11
+ * @title: 金额格式化
12
+ * @description:
13
+ * @param {number} price
14
+ * @param {string} amountSymbol
15
+ * @param {number} digit
16
+ * @return {*}
17
+ * @Author: WangHan
18
+ * @Date: 2024-11-22 10:58
19
+ */
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
+ export default Sales;
@@ -0,0 +1,8 @@
1
+ import './index.less';
2
+ declare const Like: ({ status, onLike, className, style, }: {
3
+ style?: any;
4
+ status: string;
5
+ onLike?: any;
6
+ className?: string | undefined;
7
+ }) => JSX.Element;
8
+ export default Like;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Time: ({ item, isShowHolder, onLike }: any) => JSX.Element | null;
3
+ export default Time;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ProductCardTypes } from './types';
3
+ import './index.less';
4
+ declare const ProductCard: React.FC<ProductCardTypes>;
5
+ export default ProductCard;