@pisell/materials 6.9.5 → 6.11.2

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 (163) 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.css +1 -1
  8. package/build/lowcode/render/default/view.js +15 -15
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +15 -15
  11. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
  12. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
  13. package/es/components/dataSourceComponents/fields/index.d.ts +5 -4
  14. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +54 -1
  15. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +13 -0
  16. package/es/components/pisellDateTimeDisplay/types.d.ts +1 -1
  17. package/es/components/translation/index.d.ts +1 -0
  18. package/es/index.d.ts +165 -165
  19. package/es/index.js +179 -195
  20. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +6 -3
  21. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
  22. package/lib/components/dataSourceComponents/fields/index.d.ts +5 -4
  23. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +53 -1
  24. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +13 -0
  25. package/lib/components/pisellDateTimeDisplay/types.d.ts +1 -1
  26. package/lib/components/translation/index.d.ts +1 -0
  27. package/lib/index.d.ts +165 -165
  28. package/lib/index.js +138 -136
  29. package/package.json +3 -3
  30. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  31. package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
  32. package/es/components/cardPro/index.d.ts +0 -3
  33. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  34. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  35. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  36. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  37. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  38. package/es/components/iconfont/index.d.ts +0 -8
  39. package/es/components/page/index.d.ts +0 -8
  40. package/es/components/pisell-config-provider/context.d.ts +0 -22
  41. package/es/components/pisell-config-provider/index.d.ts +0 -13
  42. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  43. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  44. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  45. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  46. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +0 -28
  47. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +0 -22
  48. package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
  49. package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +0 -9
  50. package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +0 -14
  51. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  52. package/es/components/pisellToast/index.d.ts +0 -17
  53. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  54. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  55. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  56. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  57. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  58. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  59. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  60. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  61. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -32
  62. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  63. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  64. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  65. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  66. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  67. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  68. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
  69. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  70. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  71. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  72. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -99
  73. package/es/components/productCard/components/Action/index.d.ts +0 -3
  74. package/es/components/productCard/components/Header/index.d.ts +0 -3
  75. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  76. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  77. package/es/components/productCard/locales.d.ts +0 -84
  78. package/es/components/productCard/status.d.ts +0 -32
  79. package/es/components/productCard/types.d.ts +0 -85
  80. package/es/components/productCard/utils.d.ts +0 -31
  81. package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
  82. package/es/components/table/index.d.ts +0 -4
  83. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
  84. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  85. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  86. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  87. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  88. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  89. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  90. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  91. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  92. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  93. package/es/components/virtual-keyboard/index.d.ts +0 -25
  94. package/es/locales/en-US.d.ts +0 -333
  95. package/es/locales/zh-CN.d.ts +0 -328
  96. package/es/locales/zh-TW.d.ts +0 -328
  97. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  98. package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
  99. package/lib/components/cardPro/index.d.ts +0 -3
  100. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
  101. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  102. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  103. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
  104. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  105. package/lib/components/iconfont/index.d.ts +0 -8
  106. package/lib/components/page/index.d.ts +0 -8
  107. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  108. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  109. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  110. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  111. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  112. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  113. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +0 -28
  114. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +0 -22
  115. package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
  116. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +0 -9
  117. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +0 -14
  118. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  119. package/lib/components/pisellToast/index.d.ts +0 -17
  120. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  121. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  122. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  123. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  124. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  125. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  126. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  127. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  128. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -32
  129. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  130. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  131. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  132. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  133. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  134. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  135. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
  136. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  137. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  138. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  139. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -99
  140. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  141. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  142. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  143. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  144. package/lib/components/productCard/locales.d.ts +0 -84
  145. package/lib/components/productCard/status.d.ts +0 -32
  146. package/lib/components/productCard/types.d.ts +0 -85
  147. package/lib/components/productCard/utils.d.ts +0 -31
  148. package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
  149. package/lib/components/table/index.d.ts +0 -4
  150. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
  151. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  152. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  153. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  154. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  155. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  156. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  157. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  158. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  159. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  160. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  161. package/lib/locales/en-US.d.ts +0 -333
  162. package/lib/locales/zh-CN.d.ts +0 -328
  163. package/lib/locales/zh-TW.d.ts +0 -328
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- export declare const saveColumnSettingToLocal: ({ componentId, columnSetting, }: {
3
- componentId: string;
4
- columnSetting: Array<{
5
- key: string;
6
- dataIndex: string;
7
- title?: React.ReactNode;
8
- titleString?: string;
9
- isShow: boolean;
10
- sortIndex?: number;
11
- fixed?: 'left' | 'right' | boolean;
12
- }>;
13
- }) => void;
14
- export declare const getColumnSettingFromLocal: (componentId?: string) => any;
15
- export declare const mergeColumnSettingSimple: ({ columns, componentId, }: {
16
- columns: Record<string, any>[];
17
- componentId?: string | undefined;
18
- }) => {
19
- isShow: any;
20
- sortIndex: any;
21
- }[];
22
- export declare const clearColumnSettingFromLocal: (componentId?: string) => void;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { DataSourceContainerContextType } from '../../type';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Partial<import("antd").PaginationProps> & DataSourceContainerContextType & React.RefAttributes<unknown> & {
4
- refId?: string | undefined;
5
- }, "ref"> & React.RefAttributes<any>>;
6
- export default _default;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { DataSourceContainerContextType } from '../../type';
3
- declare const _default: React.ForwardRefExoticComponent<Omit<Partial<import("antd").TableProps<any>> & DataSourceContainerContextType & {
4
- scopeId?: string | undefined;
5
- __id?: string | undefined;
6
- } & React.RefAttributes<unknown> & {
7
- refId?: string | undefined;
8
- }, "ref"> & React.RefAttributes<any>>;
9
- export default _default;
@@ -1,14 +0,0 @@
1
- import { RefManagerContextType } from '../../type';
2
- /**
3
- * useColumns Hook 参数
4
- */
5
- interface UseColumnsParams {
6
- columns: any[];
7
- scopeId: string;
8
- refManager: RefManagerContextType;
9
- __id?: string;
10
- }
11
- declare const useColumns: (params: UseColumnsParams) => {
12
- visibleColumns: any[];
13
- };
14
- export default useColumns;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../../../pisell-config-provider/context';
3
- export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
- /** 平台 */
5
- platform?: PisellContextType['platform'];
6
- /** 当前数值 */
7
- value?: number | string;
8
- /** 小数点后位数 默认是小数点后2位 */
9
- precision?: number;
10
- /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
- showCurrencySymbol?: boolean;
12
- /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
- useThousandsSeparator?: boolean;
14
- /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
- hideDecimalForWholeNumbers?: boolean;
16
- /** 货币符号 */
17
- symbol?: string;
18
- }
19
- declare const Amount: (props: AmountProps) => JSX.Element;
20
- export default Amount;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellToastProps {
4
- /** 提示内容 */
5
- content: React.ReactNode;
6
- /** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
7
- duration?: number;
8
- /** 是否展示action */
9
- showAction?: boolean;
10
- /** action文案 */
11
- actionText?: string;
12
- /** 关闭时触发的回调函数 */
13
- onClose?: () => void;
14
- }
15
- declare const PisellToast: (props: PisellToastProps) => void;
16
- export { useToast } from './squareToast';
17
- export default PisellToast;
@@ -1,15 +0,0 @@
1
- import { clear, show, success, info, loading, fail, hide } from './methods';
2
- import './index.less';
3
- interface ToastInstance {
4
- show: typeof show;
5
- clear: typeof clear;
6
- success: typeof success;
7
- info: typeof info;
8
- loading: typeof loading;
9
- fail: typeof fail;
10
- error: typeof fail;
11
- hide: typeof hide;
12
- }
13
- declare const Toast: ToastInstance;
14
- export declare const useToast: () => ToastInstance;
15
- export default Toast;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { ToastProps } from './toast';
3
- interface ToastInstance {
4
- close: () => void;
5
- }
6
- declare const show: (configOrContent: Partial<ToastProps> | React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
7
- declare const clear: () => void;
8
- declare const success: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
9
- declare const info: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
10
- declare const loading: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
11
- declare const fail: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
12
- declare const hide: () => void;
13
- export { show, clear, success, info, loading, fail, hide };
@@ -1,28 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import type { Root } from 'react-dom/client';
3
- import React from 'react';
4
- declare type ImperativeProps = {
5
- open?: boolean;
6
- onCancel?: () => void;
7
- afterClose?: () => void;
8
- };
9
- declare type TargetElement = ReactElement<ImperativeProps>;
10
- export declare type ImperativeHandler = {
11
- close: () => void;
12
- replace: (element: TargetElement) => void;
13
- isRendered?: () => boolean;
14
- };
15
- export declare type UnmountType = () => Promise<void>;
16
- export declare type RenderType = (node: React.ReactElement, container: Element | DocumentFragment) => UnmountType;
17
- declare const MARK = "__pisell_react_root__";
18
- declare type ContainerType = (Element | DocumentFragment) & {
19
- [MARK]?: Root;
20
- };
21
- export declare function render(node: React.ReactElement, container: ContainerType): void;
22
- export declare function unmount(container: ContainerType): Promise<void>;
23
- /**
24
- * @deprecated 设置 React 渲染函数以兼容使用。
25
- */
26
- export declare function unstableSetRender(render?: RenderType): RenderType;
27
- export declare function renderImperatively(element: TargetElement): ImperativeHandler;
28
- export {};
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
4
- export interface ToastProps {
5
- /** Toast 类型 */
6
- icon?: ToastType | React.ReactNode;
7
- /** 显示的内容,支持文本或 React 节点 */
8
- content: React.ReactNode;
9
- /** 是否显示 */
10
- open?: boolean;
11
- /** 自动关闭时间,单位毫秒,0 表示不自动关闭 */
12
- duration?: number;
13
- /** 关闭 */
14
- onCancel?: () => void;
15
- /** 关闭后回调 */
16
- afterClose?: () => void;
17
- /** 自定义样式类名 */
18
- className?: string;
19
- /** 自定义样式 */
20
- style?: React.CSSProperties;
21
- /** 是否显示遮罩 */
22
- mask?: boolean;
23
- }
24
- declare const Toast: React.FC<ToastProps>;
25
- export default Toast;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
- export default Footer;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
- export default MultiDay;
@@ -1,14 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Note: (props: any) => JSX.Element | null;
3
- export default Note;
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface IProps {
4
- isShowImage?: boolean;
5
- dataSource: {
6
- image?: string;
7
- bundle?: any[];
8
- options?: any[];
9
- product_option_string?: string;
10
- name?: string;
11
- symbol?: string;
12
- price?: string | number;
13
- total?: number;
14
- origin_total?: number;
15
- num?: number;
16
- holder_id?: any;
17
- isFormSubject?: boolean;
18
- totalDifference?: number;
19
- };
20
- style?: React.CSSProperties;
21
- /** 作为主商品卡片展示
22
- * 1. 影响商品数量 tag 的位置
23
- * 2. isMain 且 type 为 a5,展示holder
24
- */
25
- isMainProduct?: boolean;
26
- maxSpecsCount?: number;
27
- type?: 'a2' | 'a5' | 'a9';
28
- isBundle?: boolean;
29
- showFooter?: boolean;
30
- }
31
- declare const BasicInfo: (props: IProps) => JSX.Element;
32
- export default BasicInfo;
@@ -1,2 +0,0 @@
1
- declare const DiscountReason: (props: any) => JSX.Element;
2
- export default DiscountReason;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Holders: (props: any) => JSX.Element | null;
3
- export default Holders;
@@ -1,11 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- isShowImage?: boolean;
4
- dataSource: {
5
- bundle?: any[];
6
- symbol?: string;
7
- };
8
- type?: 'a2' | 'a5' | 'a9';
9
- }
10
- declare const Packages: ({ isShowImage, dataSource, type }: IProps) => JSX.Element | null;
11
- export default Packages;
@@ -1,20 +0,0 @@
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) => any;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Resources: (props: any) => JSX.Element | null;
3
- export default Resources;
@@ -1,12 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- hideDivider?: boolean;
4
- dataSource: {
5
- symbol?: string;
6
- relation_products?: any[];
7
- bundle?: any[];
8
- };
9
- isShowImage?: boolean;
10
- }
11
- declare const Sales: ({ hideDivider, dataSource, isShowImage }: IProps) => JSX.Element | null;
12
- export default Sales;
@@ -1,21 +0,0 @@
1
- import './index.less';
2
- interface SpecsProps {
3
- /** 数据源 */
4
- dataSource?: {
5
- bundle?: Array<{
6
- title: string;
7
- }>;
8
- options?: Array<{
9
- name: string;
10
- price: number;
11
- num: number;
12
- }>;
13
- product_option_string?: string;
14
- symbol?: string;
15
- };
16
- /** 最大展示数量,默认为 1 */
17
- maxSpecsCount?: number;
18
- type?: 'a2' | 'a5' | 'a9';
19
- }
20
- declare const Specs: (props: SpecsProps) => JSX.Element | null;
21
- export default Specs;
@@ -1,46 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- declare type NativeProps<S extends string = never> = {
4
- className?: string;
5
- style?: React.CSSProperties & Partial<Record<S, string>>;
6
- };
7
- declare type PropagationEvent = 'click';
8
- import './index.less';
9
- declare type SideType = 'left' | 'right';
10
- export declare type SwipeActionRef = {
11
- close: () => void;
12
- show: (side?: SideType) => void;
13
- };
14
- declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
- export declare type Action = {
16
- key: string | number;
17
- text: ReactNode;
18
- color?: ActionColor | string;
19
- onClick?: (e: React.MouseEvent) => void;
20
- style?: React.CSSProperties;
21
- };
22
- export declare type SwipeActionProps = {
23
- rightActions?: Action[];
24
- leftActions?: Action[];
25
- onAction?: (action: Action, e: React.MouseEvent) => void;
26
- closeOnTouchOutside?: boolean;
27
- closeOnAction?: boolean;
28
- children: ReactNode;
29
- stopPropagation?: PropagationEvent[];
30
- onActionsReveal?: (side: SideType) => void;
31
- onClose?: () => void;
32
- escapeDom?: string;
33
- } & NativeProps<'--background'>;
34
- export declare const SwipeAction: React.ForwardRefExoticComponent<{
35
- rightActions?: Action[] | undefined;
36
- leftActions?: Action[] | undefined;
37
- onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
38
- closeOnTouchOutside?: boolean | undefined;
39
- closeOnAction?: boolean | undefined;
40
- children: ReactNode;
41
- stopPropagation?: "click"[] | undefined;
42
- onActionsReveal?: ((side: SideType) => void) | undefined;
43
- onClose?: (() => void) | undefined;
44
- escapeDom?: string | undefined;
45
- } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
46
- export {};
@@ -1,6 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import 'dayjs/locale/en';
3
- import 'dayjs/locale/zh-tw';
4
- import './index.less';
5
- declare const TimeRange: (props: any) => JSX.Element | null;
6
- export default TimeRange;
@@ -1,10 +0,0 @@
1
- import './index.less';
2
- import { ProductCardTypes } from '../types';
3
- interface ISKUCardProps extends ProductCardTypes {
4
- type: 'a2' | 'a5' | 'a9';
5
- rightActions: any[];
6
- escapeDom?: string;
7
- }
8
- export declare const PREFIX = "pisell-cart-sku-card";
9
- declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
10
- export default CartSkuCard;
@@ -1,99 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.product.card.discount.reason': string;
4
- 'pisell2.cart.sku-card.more': string;
5
- 'pisell2.cart.sku-card.packages.title': string;
6
- 'pisell2.cart.sku-card.sales.title': string;
7
- 'pisell2.cart.sku-card.actions.delete': string;
8
- 'pisell2.cart.sku-card.unassigned': string;
9
- 'pisell2.product.card.day': (val: number) => string;
10
- 'pisell2.product.card.day.event': (val: number) => string;
11
- 'pisell2.product.card.minute': (val: number) => string;
12
- 'pisell2.product.card.discount.note': string;
13
- 'pisell2.product.card.edit': string;
14
- 'pisell2.product.card.discount.add.note': string;
15
- 'pisell2.product.card.discount.edit.note': string;
16
- 'pisell2.product.card.confirm': string;
17
- 'pisell2.product.card.cancel': string;
18
- 'pisell2.product.card.note.pla': string;
19
- 'pisell2.product.card.items.package': string;
20
- 'pisell2.product.card.view-all': string;
21
- 'pisell2.product.card.view-less': string;
22
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
23
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
24
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
25
- 'pisell2.product.card.add.holder.modal.title.1': string;
26
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
27
- 'pisell2.product.card.sales': string;
28
- 'pisell2.product.card.add.holder.modal.cancel': string;
29
- 'pisell2.product.card.add.holder.modal.clear': string;
30
- 'pisell2.product.card.add.holder.modal.apply': string;
31
- 'pisell2.product.card.add.holder.modal.add': string;
32
- 'pisell2.product.card.closing-soon.warning': string;
33
- };
34
- 'zh-CN': {
35
- 'pisell2.product.card.discount.reason': string;
36
- 'pisell2.cart.sku-card.more': string;
37
- 'pisell2.cart.sku-card.packages.title': string;
38
- 'pisell2.cart.sku-card.sales.title': string;
39
- 'pisell2.cart.sku-card.actions.delete': string;
40
- 'pisell2.cart.sku-card.unassigned': string;
41
- 'pisell2.product.card.edit': string;
42
- 'pisell2.product.card.day': (val: number) => string;
43
- 'pisell2.product.card.day.event': (val: number) => string;
44
- 'pisell2.product.card.minute': (val: number) => string;
45
- 'pisell2.product.card.discount.note': string;
46
- 'pisell2.product.card.discount.add.note': string;
47
- 'pisell2.product.card.discount.edit.note': string;
48
- 'pisell2.product.card.confirm': string;
49
- 'pisell2.product.card.cancel': string;
50
- 'pisell2.product.card.note.pla': string;
51
- 'pisell2.product.card.items.package': string;
52
- 'pisell2.product.card.view-all': string;
53
- 'pisell2.product.card.view-less': string;
54
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
55
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
56
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
57
- 'pisell2.product.card.add.holder.modal.title.1': string;
58
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
59
- 'pisell2.product.card.sales': string;
60
- 'pisell2.product.card.add.holder.modal.cancel': string;
61
- 'pisell2.product.card.add.holder.modal.clear': string;
62
- 'pisell2.product.card.add.holder.modal.apply': string;
63
- 'pisell2.product.card.add.holder.modal.add': string;
64
- 'pisell2.product.card.closing-soon.warning': string;
65
- };
66
- 'zh-HK': {
67
- 'pisell2.product.card.discount.reason': string;
68
- 'pisell2.cart.sku-card.more': string;
69
- 'pisell2.cart.sku-card.packages.title': string;
70
- 'pisell2.cart.sku-card.sales.title': string;
71
- 'pisell2.cart.sku-card.actions.delete': string;
72
- 'pisell2.cart.sku-card.unassigned': string;
73
- 'pisell2.product.card.edit': string;
74
- 'pisell2.product.card.day': (val: number) => string;
75
- 'pisell2.product.card.day.event': (val: number) => string;
76
- 'pisell2.product.card.minute': (val: number) => string;
77
- 'pisell2.product.card.discount.note': string;
78
- 'pisell2.product.card.discount.add.note': string;
79
- 'pisell2.product.card.discount.edit.note': string;
80
- 'pisell2.product.card.confirm': string;
81
- 'pisell2.product.card.cancel': string;
82
- 'pisell2.product.card.note.pla': string;
83
- 'pisell2.product.card.items.package': string;
84
- 'pisell2.product.card.view-all': string;
85
- 'pisell2.product.card.view-less': string;
86
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
87
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
88
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
89
- 'pisell2.product.card.add.holder.modal.title.1': string;
90
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
91
- 'pisell2.product.card.sales': string;
92
- 'pisell2.product.card.add.holder.modal.cancel': string;
93
- 'pisell2.product.card.add.holder.modal.clear': string;
94
- 'pisell2.product.card.add.holder.modal.apply': string;
95
- 'pisell2.product.card.add.holder.modal.add': string;
96
- 'pisell2.product.card.closing-soon.warning': string;
97
- };
98
- };
99
- export default _default;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Action: ({ item, onAction }: any) => JSX.Element;
3
- export default Action;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Header: (props: any) => JSX.Element;
3
- export default Header;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
- export default Sales;
@@ -1,13 +0,0 @@
1
- import './index.less';
2
- interface SelectHolderModalProps {
3
- visible: boolean;
4
- onClose: () => void;
5
- onConfirm: (value: any) => void;
6
- lists: any[];
7
- value: any[];
8
- holderMaxCount: number;
9
- addHolderButtonText: string;
10
- onAdd: () => void;
11
- }
12
- declare const SelectHolderModal: (props: SelectHolderModalProps) => JSX.Element;
13
- export default SelectHolderModal;
@@ -1,84 +0,0 @@
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.edit': string;
9
- 'pisell2.product.card.discount.add.note': string;
10
- 'pisell2.product.card.discount.edit.note': string;
11
- 'pisell2.product.card.confirm': string;
12
- 'pisell2.product.card.cancel': string;
13
- 'pisell2.product.card.note.pla': string;
14
- 'pisell2.product.card.items.package': string;
15
- 'pisell2.product.card.view-all': string;
16
- 'pisell2.product.card.view-less': string;
17
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
18
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
19
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
20
- 'pisell2.product.card.add.holder.modal.title.1': string;
21
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
22
- 'pisell2.product.card.sales': string;
23
- 'pisell2.product.card.add.holder.modal.cancel': string;
24
- 'pisell2.product.card.add.holder.modal.clear': string;
25
- 'pisell2.product.card.add.holder.modal.apply': string;
26
- 'pisell2.product.card.add.holder.modal.add': string;
27
- 'pisell2.product.card.closing-soon.warning': string;
28
- };
29
- 'zh-CN': {
30
- 'pisell2.product.card.edit': string;
31
- 'pisell2.product.card.day': (val: number) => string;
32
- 'pisell2.product.card.day.event': (val: number) => string;
33
- 'pisell2.product.card.minute': (val: number) => string;
34
- 'pisell2.product.card.discount.reason': string;
35
- 'pisell2.product.card.discount.note': string;
36
- 'pisell2.product.card.discount.add.note': string;
37
- 'pisell2.product.card.discount.edit.note': string;
38
- 'pisell2.product.card.confirm': string;
39
- 'pisell2.product.card.cancel': string;
40
- 'pisell2.product.card.note.pla': string;
41
- 'pisell2.product.card.items.package': string;
42
- 'pisell2.product.card.view-all': string;
43
- 'pisell2.product.card.view-less': string;
44
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
45
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
46
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
47
- 'pisell2.product.card.add.holder.modal.title.1': string;
48
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
49
- 'pisell2.product.card.sales': string;
50
- 'pisell2.product.card.add.holder.modal.cancel': string;
51
- 'pisell2.product.card.add.holder.modal.clear': string;
52
- 'pisell2.product.card.add.holder.modal.apply': string;
53
- 'pisell2.product.card.add.holder.modal.add': string;
54
- 'pisell2.product.card.closing-soon.warning': string;
55
- };
56
- 'zh-HK': {
57
- 'pisell2.product.card.edit': string;
58
- 'pisell2.product.card.day': (val: number) => string;
59
- 'pisell2.product.card.day.event': (val: number) => string;
60
- 'pisell2.product.card.minute': (val: number) => string;
61
- 'pisell2.product.card.discount.reason': string;
62
- 'pisell2.product.card.discount.note': string;
63
- 'pisell2.product.card.discount.add.note': string;
64
- 'pisell2.product.card.discount.edit.note': string;
65
- 'pisell2.product.card.confirm': string;
66
- 'pisell2.product.card.cancel': string;
67
- 'pisell2.product.card.note.pla': string;
68
- 'pisell2.product.card.items.package': string;
69
- 'pisell2.product.card.view-all': string;
70
- 'pisell2.product.card.view-less': string;
71
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
72
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
73
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
74
- 'pisell2.product.card.add.holder.modal.title.1': string;
75
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
76
- 'pisell2.product.card.sales': string;
77
- 'pisell2.product.card.add.holder.modal.cancel': string;
78
- 'pisell2.product.card.add.holder.modal.clear': string;
79
- 'pisell2.product.card.add.holder.modal.apply': string;
80
- 'pisell2.product.card.add.holder.modal.add': string;
81
- 'pisell2.product.card.closing-soon.warning': string;
82
- };
83
- };
84
- export default _default;
@@ -1,32 +0,0 @@
1
- import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
- /**
3
- * @title: 套餐数据
4
- * @description:
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2025-01-02 23:21
8
- */
9
- export declare const defaultBundle: bundleType;
10
- /**
11
- * @description: 单规格
12
- * @return {*}
13
- * @Author: WangHan
14
- * @Date: 2025-01-02 23:00
15
- */
16
- export declare const defaultOption: optionType;
17
- /**
18
- * @title: 商品商品类型
19
- * @description:
20
- * @return {*}
21
- * @Author: WangHan
22
- * @Date: 2025-01-02 22:48
23
- */
24
- export declare const defaultProduct: productType;
25
- /**
26
- * @title: 默认数据
27
- * @description:
28
- * @return {*}
29
- * @Author: WangHan
30
- * @Date: 2024-12-12 16:49
31
- */
32
- export declare const defaultValue: ProductCardTypes;