@pisell/materials 1.0.879 → 1.0.881

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 (65) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +3 -3
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +2 -2
  9. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +6 -6
  10. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -0
  11. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +1 -1
  12. package/es/components/productCard/cartSkuCard/index.js +2 -2
  13. package/es/components/productCard/cartSkuCard/index.less +4 -0
  14. package/es/components/productCard/locales.js +3 -3
  15. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +2 -2
  16. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -0
  17. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +1 -1
  18. package/lib/components/productCard/cartSkuCard/index.js +2 -2
  19. package/lib/components/productCard/cartSkuCard/index.less +4 -0
  20. package/lib/components/productCard/locales.js +3 -3
  21. package/package.json +1 -1
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  23. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
  24. package/es/components/dataSourceComponents/fields/utils.d.ts +0 -3
  25. package/es/components/pisellGoodPassCard/index.d.ts +0 -50
  26. package/es/components/pisellToast/index.d.ts +0 -16
  27. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  28. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  29. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  30. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  31. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  32. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  33. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  34. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  35. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  36. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  37. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  38. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
  39. package/es/components/productCard/components/Header/index.d.ts +0 -3
  40. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  41. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  42. package/es/components/translation/index.d.ts +0 -14
  43. package/es/components/virtual-keyboard/index.d.ts +0 -25
  44. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -32
  45. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +0 -5
  46. package/lib/components/dataSourceComponents/fields/utils.d.ts +0 -3
  47. package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
  48. package/lib/components/pisellToast/index.d.ts +0 -16
  49. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  50. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  51. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  52. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  53. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  54. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  55. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  56. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  57. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  58. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  59. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  60. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
  61. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  62. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  63. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  64. package/lib/components/translation/index.d.ts +0 -14
  65. package/lib/components/virtual-keyboard/index.d.ts +0 -25
@@ -1,32 +0,0 @@
1
- import { DataSourceTableProps } from '../type';
2
- declare type Params = {
3
- pagination?: {
4
- page: number;
5
- size: number;
6
- };
7
- order_by?: string;
8
- tabs?: {
9
- name: string;
10
- filterBy: Record<string, any>;
11
- sortBy: string;
12
- };
13
- };
14
- declare const useTableQuery: (props: DataSourceTableProps) => {
15
- queryPageConfig: {
16
- page: number;
17
- pageSize: number;
18
- filter: Record<string, any>;
19
- sort: string;
20
- };
21
- setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
22
- page: number;
23
- pageSize: number;
24
- filter: Record<string, any>;
25
- sort: string;
26
- }>>;
27
- handleValuesChange: (params: Params, allParams: Params) => void;
28
- refreshData: () => void;
29
- handleFilterChange: (changedFields: any, allFields: any) => void;
30
- refreshCurrentPage: () => void;
31
- };
32
- export default useTableQuery;
@@ -1,5 +0,0 @@
1
- import type { FC } from 'react';
2
- import { DatePickerProps } from './type';
3
- import './ReadPretty.less';
4
- declare const DatePickerReadPretty: FC<DatePickerProps>;
5
- export default DatePickerReadPretty;
@@ -1,3 +0,0 @@
1
- import { FormFieldFilterFuncMapType } from './type';
2
- declare const formFieldFilterFuncMap: FormFieldFilterFuncMapType;
3
- export { formFieldFilterFuncMap };
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ApplicableProductDetails {
4
- amount: string;
5
- type: string;
6
- resource_id: number;
7
- title: string;
8
- original_amount: string;
9
- }
10
- interface Discount {
11
- id: number;
12
- product_name: string;
13
- encoded: string;
14
- code: string;
15
- tag: string;
16
- expire_time?: string;
17
- product_id: number;
18
- relation_type: string;
19
- par_value: string;
20
- used_par_value: string;
21
- limit_status: string;
22
- limited_relation_product_data: any;
23
- balance: string;
24
- format_title: any;
25
- product: any;
26
- savedAmount: number;
27
- isDisabled: boolean;
28
- isSelected?: boolean;
29
- isAvailable?: boolean;
30
- isUsed?: boolean;
31
- applicableProductIds?: number[];
32
- applicableProductDetails: ApplicableProductDetails[];
33
- appliedProductDetails: any[];
34
- }
35
- export interface PisellGoodPassCardProps {
36
- /**数据源 */
37
- dataSource: Array<Discount>;
38
- /**事件 */
39
- onChange?: (current: {
40
- id: string | number;
41
- isSelected: boolean;
42
- }) => void;
43
- /**样式 */
44
- style: React.CSSProperties;
45
- /**快捷展示排序 */
46
- mixedSort?: (val: Discount[]) => Discount[];
47
- isInModal: boolean;
48
- }
49
- declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
50
- export default index;
@@ -1,16 +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 default PisellToast;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Note: (props: any) => JSX.Element | null;
3
- export default Note;
@@ -1,27 +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
- };
18
- style?: React.CSSProperties;
19
- /** 作为主商品卡片展示
20
- * 1. 影响商品数量 tag 的位置
21
- * 2. isMain 且 type 为 a5,展示holder
22
- */
23
- isMainProduct?: boolean;
24
- type?: 'a2' | 'a5';
25
- }
26
- declare const BasicInfo: (props: IProps) => JSX.Element;
27
- export default BasicInfo;
@@ -1,2 +0,0 @@
1
- declare const DiscountReason: (props: any) => JSX.Element;
2
- export default DiscountReason;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Holders: (props: any) => JSX.Element | null;
4
- export default Holders;
@@ -1,10 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- isShowImage?: boolean;
4
- dataSource: {
5
- bundle?: any[];
6
- symbol?: string;
7
- };
8
- }
9
- declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
- 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,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,3 +0,0 @@
1
- import './index.less';
2
- declare const Specs: (props: any) => JSX.Element | null;
3
- export default Specs;
@@ -1,45 +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
- };
21
- export declare type SwipeActionProps = {
22
- rightActions?: Action[];
23
- leftActions?: Action[];
24
- onAction?: (action: Action, e: React.MouseEvent) => void;
25
- closeOnTouchOutside?: boolean;
26
- closeOnAction?: boolean;
27
- children: ReactNode;
28
- stopPropagation?: PropagationEvent[];
29
- onActionsReveal?: (side: SideType) => void;
30
- onClose?: () => void;
31
- escapeDom?: string;
32
- } & NativeProps<'--background'>;
33
- export declare const SwipeAction: React.ForwardRefExoticComponent<{
34
- rightActions?: Action[] | undefined;
35
- leftActions?: Action[] | undefined;
36
- onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
37
- closeOnTouchOutside?: boolean | undefined;
38
- closeOnAction?: boolean | undefined;
39
- children: ReactNode;
40
- stopPropagation?: "click"[] | undefined;
41
- onActionsReveal?: ((side: SideType) => void) | undefined;
42
- onClose?: (() => void) | undefined;
43
- escapeDom?: string | undefined;
44
- } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
45
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import 'dayjs/locale/zh-cn';
3
- import 'dayjs/locale/en';
4
- import 'dayjs/locale/zh-tw';
5
- import './index.less';
6
- declare const TimeRange: (props: any) => JSX.Element | null;
7
- export default TimeRange;
@@ -1,96 +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.product.card.day': (val: number) => string;
9
- 'pisell2.product.card.day.event': (val: number) => string;
10
- 'pisell2.product.card.minute': (val: number) => string;
11
- 'pisell2.product.card.discount.note': string;
12
- 'pisell2.product.card.edit': string;
13
- 'pisell2.product.card.discount.add.note': string;
14
- 'pisell2.product.card.discount.edit.note': string;
15
- 'pisell2.product.card.confirm': string;
16
- 'pisell2.product.card.cancel': string;
17
- 'pisell2.product.card.note.pla': string;
18
- 'pisell2.product.card.items.package': string;
19
- 'pisell2.product.card.view-all': string;
20
- 'pisell2.product.card.view-less': string;
21
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
22
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
23
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
24
- 'pisell2.product.card.add.holder.modal.title.1': string;
25
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
26
- 'pisell2.product.card.sales': string;
27
- 'pisell2.product.card.add.holder.modal.cancel': string;
28
- 'pisell2.product.card.add.holder.modal.clear': string;
29
- 'pisell2.product.card.add.holder.modal.apply': string;
30
- 'pisell2.product.card.add.holder.modal.add': string;
31
- 'pisell2.product.card.closing-soon.warning': string;
32
- };
33
- 'zh-CN': {
34
- 'pisell2.product.card.discount.reason': string;
35
- 'pisell2.cart.sku-card.more': string;
36
- 'pisell2.cart.sku-card.packages.title': string;
37
- 'pisell2.cart.sku-card.sales.title': string;
38
- 'pisell2.cart.sku-card.actions.delete': string;
39
- 'pisell2.product.card.edit': string;
40
- 'pisell2.product.card.day': (val: number) => string;
41
- 'pisell2.product.card.day.event': (val: number) => string;
42
- 'pisell2.product.card.minute': (val: number) => string;
43
- 'pisell2.product.card.discount.note': string;
44
- 'pisell2.product.card.discount.add.note': string;
45
- 'pisell2.product.card.discount.edit.note': string;
46
- 'pisell2.product.card.confirm': string;
47
- 'pisell2.product.card.cancel': string;
48
- 'pisell2.product.card.note.pla': string;
49
- 'pisell2.product.card.items.package': string;
50
- 'pisell2.product.card.view-all': string;
51
- 'pisell2.product.card.view-less': string;
52
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
53
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
54
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
55
- 'pisell2.product.card.add.holder.modal.title.1': string;
56
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
57
- 'pisell2.product.card.sales': string;
58
- 'pisell2.product.card.add.holder.modal.cancel': string;
59
- 'pisell2.product.card.add.holder.modal.clear': string;
60
- 'pisell2.product.card.add.holder.modal.apply': string;
61
- 'pisell2.product.card.add.holder.modal.add': string;
62
- 'pisell2.product.card.closing-soon.warning': string;
63
- };
64
- 'zh-HK': {
65
- 'pisell2.product.card.discount.reason': string;
66
- 'pisell2.cart.sku-card.more': string;
67
- 'pisell2.cart.sku-card.packages.title': string;
68
- 'pisell2.cart.sku-card.sales.title': string;
69
- 'pisell2.cart.sku-card.actions.delete': string;
70
- 'pisell2.product.card.edit': string;
71
- 'pisell2.product.card.day': (val: number) => string;
72
- 'pisell2.product.card.day.event': (val: number) => string;
73
- 'pisell2.product.card.minute': (val: number) => string;
74
- 'pisell2.product.card.discount.note': string;
75
- 'pisell2.product.card.discount.add.note': string;
76
- 'pisell2.product.card.discount.edit.note': string;
77
- 'pisell2.product.card.confirm': string;
78
- 'pisell2.product.card.cancel': string;
79
- 'pisell2.product.card.note.pla': string;
80
- 'pisell2.product.card.items.package': string;
81
- 'pisell2.product.card.view-all': string;
82
- 'pisell2.product.card.view-less': string;
83
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
84
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
85
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
86
- 'pisell2.product.card.add.holder.modal.title.1': string;
87
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
88
- 'pisell2.product.card.sales': string;
89
- 'pisell2.product.card.add.holder.modal.cancel': string;
90
- 'pisell2.product.card.add.holder.modal.clear': string;
91
- 'pisell2.product.card.add.holder.modal.apply': string;
92
- 'pisell2.product.card.add.holder.modal.add': string;
93
- 'pisell2.product.card.closing-soon.warning': string;
94
- };
95
- };
96
- export default _default;
@@ -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 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,14 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare type Value = {
4
- en: string;
5
- 'zh-CN': string;
6
- 'zh-HK': string;
7
- };
8
- interface TranslationProps {
9
- value: Value;
10
- onChange: (value: Value) => void;
11
- maxLength?: number;
12
- }
13
- declare const Translation: React.FC<TranslationProps>;
14
- export default Translation;
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { KeyboardProps } from "./Keyboard";
3
- import { VirtualKeyInputProps } from "./VirtualKeyInput";
4
- import "./index.less";
5
- interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
6
- keyboardProps?: KeyboardProps;
7
- virtualKeyInputProps?: VirtualKeyInputProps;
8
- rightPanel?: React.ReactNode;
9
- style?: React.CSSProperties;
10
- onChange?: (value?: any) => void;
11
- value?: string;
12
- selectType?: 'light' | 'dark';
13
- backgroundColor?: string;
14
- containerBackgroundColor?: string;
15
- buttonBackgroundColor?: string;
16
- textColor?: string;
17
- keyboardBackgroundColor?: string;
18
- keyboardButtonBackgroundColor?: string;
19
- keyboardButtonTextColor?: string;
20
- keyboardButtonHoverColor?: string;
21
- primaryButtonBackgroundColor?: string;
22
- primaryButtonTextColor?: string;
23
- }
24
- declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
25
- export default VirtualKeyboard;