@pisell/materials 6.4.7 → 6.4.8
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/batch-editor/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +11 -4
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +9 -10
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +92 -6
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +12 -11
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/filter/types.d.ts +1 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +73 -5
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
- package/es/components/productCard/cartSkuCard/index.js +2 -11
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/Table/utils.js +22 -1
- package/es/components/table/hooks/useTableSetting.d.ts +3 -4
- package/es/components/table/hooks/useTableSetting.js +113 -5
- package/es/components/table/index.js +14 -3
- package/es/components/table/types.d.ts +17 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/components/batch-editor/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +8 -2
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.js +7 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +9 -10
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +11 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +2 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +78 -7
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +12 -11
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/filter/types.d.ts +1 -0
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +45 -11
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +39 -0
- package/lib/components/productCard/cartSkuCard/index.js +2 -13
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/Table/utils.js +18 -1
- package/lib/components/table/hooks/useTableSetting.d.ts +3 -4
- package/lib/components/table/hooks/useTableSetting.js +114 -4
- package/lib/components/table/index.js +12 -1
- package/lib/components/table/types.d.ts +17 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/data-source-table/meta.ts +239 -0
- package/lowcode/table/meta.ts +104 -0
- package/package.json +3 -3
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/es/components/productCard/components/Action/index.d.ts +0 -3
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -84
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/walletCard/Guide/index.d.ts +0 -3
- package/es/components/walletCard/index.d.ts +0 -67
- package/es/locales/en-US.d.ts +0 -285
- package/es/locales/zh-CN.d.ts +0 -280
- package/es/locales/zh-TW.d.ts +0 -280
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +0 -37
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
- package/lib/components/productCard/components/Action/index.d.ts +0 -3
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -84
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/walletCard/Guide/index.d.ts +0 -3
- package/lib/components/walletCard/index.d.ts +0 -67
- package/lib/locales/en-US.d.ts +0 -285
- package/lib/locales/zh-CN.d.ts +0 -280
- package/lib/locales/zh-TW.d.ts +0 -280
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
|
|
2
|
-
import type { UploadValue, UploadChangeHandler } from './types';
|
|
3
|
-
export interface UploadFile extends AntdUploadFile {
|
|
4
|
-
metadata?: {
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
duration?: number;
|
|
8
|
-
bitrate?: number;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface UploadProps {
|
|
12
|
-
renderMode?: string;
|
|
13
|
-
fieldKey: string;
|
|
14
|
-
maxSize?: number;
|
|
15
|
-
minCount?: number;
|
|
16
|
-
maxCount?: number;
|
|
17
|
-
multiple?: boolean;
|
|
18
|
-
presetType?: string[];
|
|
19
|
-
presetTypeString?: string[];
|
|
20
|
-
customType?: string[];
|
|
21
|
-
enablePresetType?: boolean;
|
|
22
|
-
enableCustomType?: boolean;
|
|
23
|
-
allowPreview?: boolean;
|
|
24
|
-
value?: UploadValue;
|
|
25
|
-
typeMaxSizeMap?: Record<string, number>;
|
|
26
|
-
enableMultilingual?: boolean;
|
|
27
|
-
onChange?: UploadChangeHandler;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
mediaUploadUrl?: string;
|
|
30
|
-
getHeaders?: () => Record<string, string>;
|
|
31
|
-
mediaConfig?: {
|
|
32
|
-
data: {
|
|
33
|
-
upload_onetime_limit: number;
|
|
34
|
-
upload_maxsize: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
import { ValueProps, SortType } from '../types';
|
|
3
|
-
declare type IdType = string | number;
|
|
4
|
-
declare type TreeItemProps = {
|
|
5
|
-
id: string | number;
|
|
6
|
-
key: string | number;
|
|
7
|
-
item: ValueProps | any;
|
|
8
|
-
depth: number;
|
|
9
|
-
lists: any[];
|
|
10
|
-
childrenProps?: SortType;
|
|
11
|
-
sensors?: any;
|
|
12
|
-
expandedKeys?: IdType[];
|
|
13
|
-
setExpandedKeys?: any;
|
|
14
|
-
onSelectKeys?: (ids: IdType) => void;
|
|
15
|
-
onChange?: (value: any[]) => void;
|
|
16
|
-
};
|
|
17
|
-
declare const TreeItem: (props: TreeItemProps) => JSX.Element;
|
|
18
|
-
export default TreeItem;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IconFontProps extends IconComponentProps {
|
|
4
|
-
type: string;
|
|
5
|
-
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
6
|
-
}
|
|
7
|
-
declare const IconFont: React.FC<IconFontProps>;
|
|
8
|
-
export default IconFont;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface PisellContextType {
|
|
3
|
-
platform: 'h5' | 'pc' | 'ipad';
|
|
4
|
-
/** 货币符号 */
|
|
5
|
-
symbol?: string;
|
|
6
|
-
/** 当前语言环境 */
|
|
7
|
-
locale?: string;
|
|
8
|
-
/** 获取货币符号 */
|
|
9
|
-
getSymbolic?: () => string;
|
|
10
|
-
}
|
|
11
|
-
export declare const PisellContext: import("react").Context<PisellContextType>;
|
|
12
|
-
/**
|
|
13
|
-
* provider外获取当前全局配置
|
|
14
|
-
*/
|
|
15
|
-
declare class GlobalConfig {
|
|
16
|
-
private config;
|
|
17
|
-
constructor();
|
|
18
|
-
setConfig(config: PisellContextType): void;
|
|
19
|
-
getConfig(): PisellContextType;
|
|
20
|
-
}
|
|
21
|
-
export declare const globalConfig: GlobalConfig;
|
|
22
|
-
export default PisellContext;
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
getSymbolic?: () => string;
|
|
11
|
-
}
|
|
12
|
-
declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
|
|
13
|
-
export default PisellConfigProvider;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const defaultConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
isShowMainText: boolean;
|
|
13
|
-
mainTextColor: string;
|
|
14
|
-
isShowSubText: boolean;
|
|
15
|
-
subTextColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
isShowMainText: boolean;
|
|
28
|
-
mainTextColor: string;
|
|
29
|
-
isShowSubText: boolean;
|
|
30
|
-
subTextColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface PisellAdjustPriceProps {
|
|
2
|
-
value?: number;
|
|
3
|
-
originValue: number;
|
|
4
|
-
defaultValue?: number;
|
|
5
|
-
onChange?: (val: number) => void;
|
|
6
|
-
selectType?: 'light' | 'dark';
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
containerBackgroundColor?: string;
|
|
9
|
-
buttonBackgroundColor?: string;
|
|
10
|
-
textColor?: string;
|
|
11
|
-
resetButtonBackgroundColor?: string;
|
|
12
|
-
resetButtonTextColor?: string;
|
|
13
|
-
isDoneButtonFollowTheme?: boolean;
|
|
14
|
-
doneButtonBackgroundColor?: string;
|
|
15
|
-
doneButtonTextColor?: string;
|
|
16
|
-
isShowMainText?: boolean;
|
|
17
|
-
mainTextColor?: string;
|
|
18
|
-
isShowSubText?: boolean;
|
|
19
|
-
subTextColor?: string;
|
|
20
|
-
resetText?: string;
|
|
21
|
-
doneText?: string;
|
|
22
|
-
}
|
|
@@ -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,29 +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 renderToBody(element: ReactElement): UnmountType;
|
|
28
|
-
export declare function renderImperatively(element: TargetElement): ImperativeHandler;
|
|
29
|
-
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,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,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,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;
|
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
osWarnTips?: Array<string>;
|
|
83
|
-
[key: string]: any;
|
|
84
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const amountThemeConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
keyboardBackgroundColor: string;
|
|
13
|
-
keyboardButtonBackgroundColor: string;
|
|
14
|
-
keyboardButtonTextColor: string;
|
|
15
|
-
keyboardButtonHoverColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
keyboardBackgroundColor: string;
|
|
28
|
-
keyboardButtonBackgroundColor: string;
|
|
29
|
-
keyboardButtonTextColor: string;
|
|
30
|
-
keyboardButtonHoverColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|