@pisell/private-materials 6.11.158 → 6.11.159

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 (39) 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/view.css +1 -1
  7. package/es/plus/pisellReservation/PisellReservation.less +18 -0
  8. package/lib/plus/pisellReservation/PisellReservation.less +18 -0
  9. package/package.json +3 -3
  10. package/es/components/index.d.ts +0 -23
  11. package/es/components/list/List.d.ts +0 -5
  12. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  13. package/es/components/list/types.d.ts +0 -181
  14. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -23
  15. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  16. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -32
  17. package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  18. package/es/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
  19. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -8
  20. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  21. package/es/plus/productSelect/ProductCard/index.d.ts +0 -54
  22. package/es/plus/productSelect/ProductCard/utils.d.ts +0 -49
  23. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
  24. package/es/plus/productSelect/index.d.ts +0 -36
  25. package/lib/components/index.d.ts +0 -23
  26. package/lib/components/list/List.d.ts +0 -5
  27. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  28. package/lib/components/list/types.d.ts +0 -181
  29. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -23
  30. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  31. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -32
  32. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  33. package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
  34. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -8
  35. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  36. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -54
  37. package/lib/plus/productSelect/ProductCard/utils.d.ts +0 -49
  38. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
  39. package/lib/plus/productSelect/index.d.ts +0 -36
@@ -1,54 +0,0 @@
1
- import React from 'react';
2
- import ProductCardSkeleton from './ProductCardSkeleton';
3
- import { ProductCardConfig as SkuCardAllConfig } from './SkuCard/type';
4
- import './index.less';
5
- declare type BoolConfigVal = 0 | 1;
6
- export interface ProductCardConfig {
7
- isProductCover?: BoolConfigVal;
8
- imgWidth?: string;
9
- imgHeight?: string;
10
- radius?: number;
11
- isTitle?: BoolConfigVal;
12
- isSubtitle?: BoolConfigVal;
13
- showSpec?: boolean;
14
- isTag?: BoolConfigVal;
15
- isPrice?: BoolConfigVal;
16
- isOriginPrice?: BoolConfigVal;
17
- showZeroPrice?: boolean;
18
- showMarketingTag?: boolean;
19
- showRemark?: boolean;
20
- isStock?: BoolConfigVal;
21
- layoutDirection?: 'row' | 'column';
22
- gap?: number;
23
- rightStyle?: React.CSSProperties;
24
- }
25
- export interface ProductCardProps {
26
- item: any;
27
- index: number;
28
- context?: {
29
- onItemIntersectionIn: (item: any) => void;
30
- onItemIntersectionOut: (item: any) => void;
31
- };
32
- className?: string;
33
- onSelectProduct?: (item: any) => void;
34
- currentProductId?: number;
35
- onSelect?: (item: any) => void;
36
- onSelectCover?: (item: any) => void;
37
- onSelectInfo?: (item: any) => void;
38
- isSelected?: boolean;
39
- decorateConfig?: ProductCardConfig;
40
- /** 场景类型:决定渲染卡片样式 */
41
- scenario?: 'booking2' | 'default';
42
- customSkuCardAllConfig?: SkuCardAllConfig;
43
- }
44
- export declare const ProductCard: React.MemoExoticComponent<({ item, index, context, onSelect, onSelectCover, onSelectInfo, isSelected, className, decorateConfig, scenario, customSkuCardAllConfig, }: ProductCardProps) => React.JSX.Element>;
45
- export declare const DefaultItemContent: React.MemoExoticComponent<(props: {
46
- item: any;
47
- index: number;
48
- context?: {
49
- onItemIntersectionIn: (item: any) => void;
50
- onItemIntersectionOut: (item: any) => void;
51
- } | undefined;
52
- }) => React.JSX.Element>;
53
- export default ProductCard;
54
- export { ProductCardSkeleton };
@@ -1,49 +0,0 @@
1
- import { ProductCardConfig } from './index';
2
- export declare const formatProductPrice: (item: any) => {
3
- price: any;
4
- original_price: any;
5
- };
6
- /**
7
- * @description: 获取sku卡配置
8
- * @param {ProductCardConfig} finalConfig
9
- * @return {*}
10
- */
11
- export declare const getSkuCardConfig: (finalConfig: ProductCardConfig) => {
12
- skuCardConfig: {
13
- displayMode: string;
14
- paddingY: number;
15
- paddingX: number;
16
- isBorderVisible: boolean;
17
- layoutDirection: "row" | "column";
18
- };
19
- skuActionConfig: {
20
- isOpen: boolean;
21
- };
22
- skuExtraConfig: {
23
- isOpen: boolean;
24
- };
25
- skuTextConfig: {
26
- skuSubtitleConfig: {
27
- isOpen: (0 | 1) | undefined;
28
- };
29
- skuNameConfig: {
30
- isOpen: (0 | 1) | undefined;
31
- };
32
- skuPriceConfig: {
33
- isOpen: (0 | 1) | undefined;
34
- isPrice: (0 | 1) | undefined;
35
- isShowZeroPrice: boolean | undefined;
36
- isOriginPrice: (0 | 1) | undefined;
37
- };
38
- skuStockConfig: {
39
- isOpen: (0 | 1) | undefined;
40
- };
41
- };
42
- skuImageConfig: {
43
- isCover: (0 | 1) | undefined;
44
- width: string | undefined;
45
- height: string | undefined;
46
- isTextFallback: boolean;
47
- radius: number | undefined;
48
- };
49
- };
@@ -1,46 +0,0 @@
1
- import React from 'react';
2
- export interface GridConfig {
3
- grid: boolean;
4
- config: string;
5
- }
6
- export declare const parseGridConfig: (config: string) => number[];
7
- export declare const createGridComponents: (layout?: GridConfig | null, { tabSwitchMode }?: {
8
- tabSwitchMode?: "switch" | "anchor" | undefined;
9
- }) => {
10
- List: React.MemoExoticComponent<({ children, ...props }: any) => React.JSX.Element>;
11
- Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => React.JSX.Element | null>;
12
- };
13
- export declare const GRID_LAYOUTS: {
14
- readonly SINGLE_COLUMN: {
15
- readonly grid: false;
16
- readonly config: "12";
17
- };
18
- readonly TWO_COLUMNS: {
19
- readonly grid: true;
20
- readonly config: "12:12";
21
- };
22
- readonly THREE_COLUMNS: {
23
- readonly grid: true;
24
- readonly config: "8:8:8";
25
- };
26
- readonly FOUR_COLUMNS: {
27
- readonly grid: true;
28
- readonly config: "6:6:6:6";
29
- };
30
- readonly UNEQUAL_TWO: {
31
- readonly grid: true;
32
- readonly config: "8:16";
33
- };
34
- readonly UNEQUAL_THREE: {
35
- readonly grid: true;
36
- readonly config: "6:12:6";
37
- };
38
- };
39
- export declare const createTwoColumnGrid: () => {
40
- List: React.MemoExoticComponent<({ children, ...props }: any) => React.JSX.Element>;
41
- Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => React.JSX.Element | null>;
42
- };
43
- export declare const createCustomGrid: (config: string) => {
44
- List: React.MemoExoticComponent<({ children, ...props }: any) => React.JSX.Element>;
45
- Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => React.JSX.Element | null>;
46
- };
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface ProductSelectProps {
4
- dataSource: any[];
5
- showSearch?: boolean;
6
- showTab?: boolean;
7
- layout?: {
8
- grid: boolean;
9
- config: string;
10
- };
11
- onChange: (value: any, type?: string) => void;
12
- value?: number;
13
- loading?: boolean;
14
- style?: React.CSSProperties;
15
- emptyDescription?: string;
16
- /** 当前滚动元素 */
17
- scrollDom?: string;
18
- /** 商品列表上方的其它组件 */
19
- offsetDom?: any;
20
- /** 样式变量 */
21
- token?: Partial<any>;
22
- /** 后台装修单选模式下的已选中项 */
23
- selectedItems?: Array<any>;
24
- /** 后台装修配置 */
25
- productListSetting?: Partial<any>;
26
- /** 兼容scrollDom */
27
- customScrollParent?: HTMLElement | string;
28
- hideCategoryWhenOne?: boolean;
29
- /** tab切换模式 */
30
- tabSwitchMode?: 'switch' | 'anchor';
31
- /** 场景类型:决定渲染卡片样式 */
32
- scenario?: 'booking2' | 'default';
33
- }
34
- export declare const PREFIX = "pisell-product-select";
35
- declare const index: ({ dataSource, emptyDescription, showSearch, scrollDom, offsetDom, style, token: customToken, onChange, value, selectedItems, productListSetting, customScrollParent, loading, layout, hideCategoryWhenOne, tabSwitchMode, scenario, ...rest }: ProductSelectProps) => React.JSX.Element;
36
- export default index;