@pisell/materials 6.11.239 → 6.11.241
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 +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +16 -16
- package/build/lowcode/view.js +15 -15
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +2 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +47 -22
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/pisellFind/index.d.ts +2 -0
- package/es/components/pisellFind/index.js +11 -0
- package/es/components/pisellLookup/PisellLookup.js +22 -6
- package/es/components/pisellLookup/components/LookupResultHost.js +56 -38
- package/es/components/pisellLookup/components/LookupTrigger.js +2 -0
- package/es/components/pisellLookup/types.d.ts +36 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +2 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +71 -35
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/pisellFind/index.d.ts +2 -0
- package/lib/components/pisellFind/index.js +19 -0
- package/lib/components/pisellLookup/PisellLookup.js +18 -4
- package/lib/components/pisellLookup/components/LookupResultHost.js +50 -35
- package/lib/components/pisellLookup/components/LookupTrigger.js +2 -0
- package/lib/components/pisellLookup/types.d.ts +36 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -0
- package/package.json +3 -3
- package/es/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/es/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/es/components/PisellGroupView/index.d.ts +0 -6
- package/es/components/PisellGroupView/types.d.ts +0 -124
- package/es/components/PisellGroupView/utils/index.d.ts +0 -20
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/es/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/es/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/types.d.ts +0 -119
- package/es/components/buttonGroupPreview/index.d.ts +0 -19
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -39
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
- package/es/components/pisellFloorMapLayout/types.d.ts +0 -769
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/es/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +0 -24
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/es/components/pisellRecordBoard/types.d.ts +0 -899
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
- package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -15
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/es/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/es/components/productCard/lineItem/index.d.ts +0 -72
- package/es/components/productCard/lineItem/locales.d.ts +0 -38
- package/es/components/productCard/types.d.ts +0 -98
- package/es/components/select-time/RightPanel/index.d.ts +0 -10
- package/es/components/select-time/index.d.ts +0 -16
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/hooks/useTranslationOriginal.d.ts +0 -4
- package/es/locales/en-US.d.ts +0 -566
- package/es/locales/ja.d.ts +0 -534
- package/es/locales/pt.d.ts +0 -534
- package/es/locales/zh-CN.d.ts +0 -561
- package/es/locales/zh-TW.d.ts +0 -561
- package/lib/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/lib/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/lib/components/PisellGroupView/index.d.ts +0 -6
- package/lib/components/PisellGroupView/types.d.ts +0 -124
- package/lib/components/PisellGroupView/utils/index.d.ts +0 -20
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/lib/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/lib/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/types.d.ts +0 -119
- package/lib/components/buttonGroupPreview/index.d.ts +0 -19
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -39
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
- package/lib/components/pisellFloorMapLayout/types.d.ts +0 -769
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/lib/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +0 -24
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/lib/components/pisellRecordBoard/types.d.ts +0 -899
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
- package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -15
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/lib/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/lib/components/productCard/lineItem/index.d.ts +0 -72
- package/lib/components/productCard/lineItem/locales.d.ts +0 -38
- package/lib/components/productCard/types.d.ts +0 -98
- package/lib/components/select-time/RightPanel/index.d.ts +0 -10
- package/lib/components/select-time/index.d.ts +0 -16
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/hooks/useTranslationOriginal.d.ts +0 -4
- package/lib/locales/en-US.d.ts +0 -566
- package/lib/locales/ja.d.ts +0 -534
- package/lib/locales/pt.d.ts +0 -534
- package/lib/locales/zh-CN.d.ts +0 -561
- package/lib/locales/zh-TW.d.ts +0 -561
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'dayjs/locale/zh-cn';
|
|
3
|
-
import 'dayjs/locale/en';
|
|
4
|
-
import type { PisellTimeRangeDisplayProps } from './types';
|
|
5
|
-
import './PisellTimeRangeDisplay.less';
|
|
6
|
-
/**
|
|
7
|
-
* PisellTimeRangeDisplay 组件
|
|
8
|
-
*
|
|
9
|
-
* @description
|
|
10
|
-
* 纯展示型时间区间组件,将 startAt / endAt 格式化为「时间区间 + 持续时间」。
|
|
11
|
-
* - 同一天:HH:mm-HH:mm,可选显示日期/星期
|
|
12
|
-
* - 跨天:起止日期时间
|
|
13
|
-
* - 持续时间:d h m s 格式
|
|
14
|
-
* - 字段顺序由 fieldOrder 控制,可将 duration 放在中间
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* <PisellTimeRangeDisplay
|
|
18
|
-
* startAt="2026-02-04 09:00"
|
|
19
|
-
* endAt="2026-02-04 18:00"
|
|
20
|
-
* />
|
|
21
|
-
* // => "09:00-18:00" + "9h"
|
|
22
|
-
*
|
|
23
|
-
* <PisellTimeRangeDisplay
|
|
24
|
-
* startAt={start}
|
|
25
|
-
* endAt={end}
|
|
26
|
-
* fields={{ fieldOrder: ['time', 'duration', 'date', 'weekday'] }}
|
|
27
|
-
* showDateForSameDay
|
|
28
|
-
* />
|
|
29
|
-
*/
|
|
30
|
-
export declare const PisellTimeRangeDisplay: React.FC<PisellTimeRangeDisplayProps>;
|
|
31
|
-
declare const _default: React.NamedExoticComponent<PisellTimeRangeDisplayProps>;
|
|
32
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type Dayjs } from 'dayjs';
|
|
3
|
-
import type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, TextStyleConfig } from '../types';
|
|
4
|
-
export interface TimeRangeBlockProps {
|
|
5
|
-
/** 开始时间 */
|
|
6
|
-
start: Dayjs;
|
|
7
|
-
/** 结束时间 */
|
|
8
|
-
end: Dayjs;
|
|
9
|
-
/** 是否同一天 */
|
|
10
|
-
isSameDay: boolean;
|
|
11
|
-
/** 时间格式配置 */
|
|
12
|
-
timeFormat?: TimeFormatConfig;
|
|
13
|
-
/** 日期格式配置(跨天时用于起止日期,含 showRelativeDay) */
|
|
14
|
-
dateFormat?: DateFormatConfig;
|
|
15
|
-
/** 星期格式配置(跨天时用于「Sat, 22 Jan」) */
|
|
16
|
-
weekdayFormat?: WeekdayFormatConfig;
|
|
17
|
-
/** 跨天时是否展示星期 */
|
|
18
|
-
showWeekdayInCrossDay?: boolean;
|
|
19
|
-
/** 参考日期,用于相对日判定,默认 dayjs() */
|
|
20
|
-
referenceDate?: Dayjs;
|
|
21
|
-
/** 文本样式 */
|
|
22
|
-
style?: TextStyleConfig;
|
|
23
|
-
/** 开始时间文本样式,会覆盖 style 中的同名字段 */
|
|
24
|
-
startStyle?: TextStyleConfig;
|
|
25
|
-
/** 结束时间文本样式,会覆盖 style 中的同名字段 */
|
|
26
|
-
endStyle?: TextStyleConfig;
|
|
27
|
-
/** 自定义类名 */
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* 时间区间展示块
|
|
32
|
-
* - 同一天:HH:mm-HH:mm
|
|
33
|
-
* - 跨天:起止完整日期时间;若某端为相对日(今天/昨天/明天)则只显示「时间 相对日」,不显示星期+日期
|
|
34
|
-
*/
|
|
35
|
-
export declare const TimeRangeBlock: React.FC<TimeRangeBlockProps>;
|
|
36
|
-
export default TimeRangeBlock;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
|
-
import type { Dayjs } from 'dayjs';
|
|
3
|
-
import type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, ContainerStyleConfig, TextStyleConfig, TextAlign } from '../pisellDateTimeDisplay/types';
|
|
4
|
-
export type { TimeFormatConfig, DateFormatConfig, WeekdayFormatConfig, ContainerStyleConfig, TextStyleConfig, TextAlign, };
|
|
5
|
-
/**
|
|
6
|
-
* 字段类型(时间区间、日期、星期、持续时长)
|
|
7
|
-
* - time: 时间区间块(HH:mm-HH:mm 或跨天起止)
|
|
8
|
-
* - date: 日期块
|
|
9
|
-
* - weekday: 星期块
|
|
10
|
-
* - duration: 持续时长块
|
|
11
|
-
*/
|
|
12
|
-
export declare type TimeRangeFieldType = 'time' | 'date' | 'weekday' | 'duration';
|
|
13
|
-
/**
|
|
14
|
-
* 持续时长格式配置
|
|
15
|
-
*/
|
|
16
|
-
export interface DurationFormatConfig {
|
|
17
|
-
/**
|
|
18
|
-
* 是否显示秒
|
|
19
|
-
* @default false
|
|
20
|
-
* @example true -> "2h30m23s" | false -> "2h30m"
|
|
21
|
-
*/
|
|
22
|
-
showSeconds?: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 字段配置
|
|
26
|
-
*/
|
|
27
|
-
export interface TimeRangeFieldConfig {
|
|
28
|
-
/**
|
|
29
|
-
* 是否显示时间区间块
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
showTimeRange?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 是否显示日期块
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
showDate?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* 是否显示星期块
|
|
40
|
-
* @default true
|
|
41
|
-
*/
|
|
42
|
-
showWeekday?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* 是否显示持续时长块
|
|
45
|
-
* @default true
|
|
46
|
-
*/
|
|
47
|
-
showDuration?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* 字段顺序(四类块可任意排序;默认 时间 日期 星期 持续时长,可实现「持续时间在前」等)
|
|
50
|
-
* @default ['weekday', 'date', 'time', 'duration'] 换行顺序:先持续时间 → 结束时间(跨天)→ 开始/结束时间与日期 → 星期
|
|
51
|
-
*/
|
|
52
|
-
fieldOrder?: TimeRangeFieldType[];
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* startAt / endAt 的 dayjs 兼容值
|
|
56
|
-
*/
|
|
57
|
-
export declare type DayjsLike = Dayjs | string | number;
|
|
58
|
-
/**
|
|
59
|
-
* PisellTimeRangeDisplay 组件 Props
|
|
60
|
-
*/
|
|
61
|
-
export interface PisellTimeRangeDisplayProps {
|
|
62
|
-
/**
|
|
63
|
-
* 开始时间(dayjs 兼容值)
|
|
64
|
-
*/
|
|
65
|
-
startAt: DayjsLike;
|
|
66
|
-
/**
|
|
67
|
-
* 结束时间(dayjs 兼容值)
|
|
68
|
-
*/
|
|
69
|
-
endAt: DayjsLike;
|
|
70
|
-
/**
|
|
71
|
-
* 文本对齐方式(单行/多行均生效)
|
|
72
|
-
* @default 'center'
|
|
73
|
-
*/
|
|
74
|
-
textAlign?: TextAlign;
|
|
75
|
-
/**
|
|
76
|
-
* 字段显示与排序配置
|
|
77
|
-
*/
|
|
78
|
-
fields?: TimeRangeFieldConfig;
|
|
79
|
-
/**
|
|
80
|
-
* 同一天时是否显示具体日期
|
|
81
|
-
* @default true
|
|
82
|
-
*/
|
|
83
|
-
showDateForSameDay?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* 时间格式配置(复用 PisellDateTimeDisplay)
|
|
86
|
-
*/
|
|
87
|
-
timeFormat?: TimeFormatConfig;
|
|
88
|
-
/**
|
|
89
|
-
* 日期格式配置(复用 PisellDateTimeDisplay)
|
|
90
|
-
*/
|
|
91
|
-
dateFormat?: DateFormatConfig;
|
|
92
|
-
/**
|
|
93
|
-
* 星期格式配置(复用 PisellDateTimeDisplay)
|
|
94
|
-
*/
|
|
95
|
-
weekdayFormat?: WeekdayFormatConfig;
|
|
96
|
-
/**
|
|
97
|
-
* 持续时长格式配置
|
|
98
|
-
*/
|
|
99
|
-
durationFormat?: DurationFormatConfig;
|
|
100
|
-
/**
|
|
101
|
-
* 容器样式
|
|
102
|
-
*/
|
|
103
|
-
containerStyle?: ContainerStyleConfig;
|
|
104
|
-
/**
|
|
105
|
-
* 时间区间文本样式
|
|
106
|
-
*/
|
|
107
|
-
timeStyle?: TextStyleConfig;
|
|
108
|
-
/**
|
|
109
|
-
* 开始时间文本样式,会覆盖 timeStyle 中的同名字段
|
|
110
|
-
*/
|
|
111
|
-
startTimeStyle?: TextStyleConfig;
|
|
112
|
-
/**
|
|
113
|
-
* 结束时间文本样式,会覆盖 timeStyle 中的同名字段
|
|
114
|
-
*/
|
|
115
|
-
endTimeStyle?: TextStyleConfig;
|
|
116
|
-
/**
|
|
117
|
-
* 日期文本样式
|
|
118
|
-
*/
|
|
119
|
-
dateStyle?: TextStyleConfig;
|
|
120
|
-
/**
|
|
121
|
-
* 星期文本样式
|
|
122
|
-
*/
|
|
123
|
-
weekdayStyle?: TextStyleConfig;
|
|
124
|
-
/**
|
|
125
|
-
* 持续时长文本样式
|
|
126
|
-
*/
|
|
127
|
-
durationStyle?: TextStyleConfig;
|
|
128
|
-
/**
|
|
129
|
-
* dayjs locale(语言代码)
|
|
130
|
-
* @default 优先使用全局配置,其次浏览器语言
|
|
131
|
-
*/
|
|
132
|
-
locale?: string;
|
|
133
|
-
/**
|
|
134
|
-
* 自定义类名
|
|
135
|
-
*/
|
|
136
|
-
className?: string;
|
|
137
|
-
/**
|
|
138
|
-
* 自定义样式
|
|
139
|
-
*/
|
|
140
|
-
style?: CSSProperties;
|
|
141
|
-
/**
|
|
142
|
-
* 点击回调
|
|
143
|
-
*/
|
|
144
|
-
onClick?: () => void;
|
|
145
|
-
}
|
|
@@ -1,36 +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
|
-
isShowOriginalPrice?: boolean;
|
|
31
|
-
isShowEditProduct?: boolean;
|
|
32
|
-
onEditProduct?: (val: any) => void;
|
|
33
|
-
disabledEditClick?: boolean;
|
|
34
|
-
}
|
|
35
|
-
declare const BasicInfo: (props: IProps) => React.JSX.Element;
|
|
36
|
-
export default BasicInfo;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface InlineActionItem {
|
|
5
|
-
key: string | number;
|
|
6
|
-
text: ReactNode;
|
|
7
|
-
color?: string;
|
|
8
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
|
-
style?: CSSProperties;
|
|
10
|
-
}
|
|
11
|
-
interface InlineActionsProps {
|
|
12
|
-
actions: InlineActionItem[];
|
|
13
|
-
}
|
|
14
|
-
declare const InlineActions: ({ actions }: InlineActionsProps) => React.JSX.Element | null;
|
|
15
|
-
export default InlineActions;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface SpecsProps {
|
|
4
|
-
/** 数据源 */
|
|
5
|
-
dataSource?: {
|
|
6
|
-
bundle?: Array<{
|
|
7
|
-
title: string;
|
|
8
|
-
}>;
|
|
9
|
-
options?: Array<{
|
|
10
|
-
name: string;
|
|
11
|
-
price: number;
|
|
12
|
-
num: number;
|
|
13
|
-
}>;
|
|
14
|
-
product_option_string?: string;
|
|
15
|
-
symbol?: string;
|
|
16
|
-
};
|
|
17
|
-
/** 最大展示数量,默认为 1 */
|
|
18
|
-
maxSpecsCount?: number;
|
|
19
|
-
type?: 'a2' | 'a5' | 'a9';
|
|
20
|
-
}
|
|
21
|
-
declare const Specs: (props: SpecsProps) => React.JSX.Element | null;
|
|
22
|
-
export default Specs;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare type WeightUnit = 'KILOGRAMS' | 'GRAMS' | 'POUNDS' | 'OUNCES';
|
|
4
|
-
declare type WeighingMode = 'auto' | 'manual';
|
|
5
|
-
interface WeighingInfo {
|
|
6
|
-
mode?: WeighingMode;
|
|
7
|
-
weight?: string | number;
|
|
8
|
-
tare?: {
|
|
9
|
-
id?: string;
|
|
10
|
-
label?: string;
|
|
11
|
-
value?: string | number;
|
|
12
|
-
unit?: WeightUnit;
|
|
13
|
-
};
|
|
14
|
-
net_weight?: string | number;
|
|
15
|
-
unit_price?: string | number;
|
|
16
|
-
unit?: WeightUnit;
|
|
17
|
-
}
|
|
18
|
-
interface WeighingProps {
|
|
19
|
-
dataSource?: WeighingInfo;
|
|
20
|
-
symbol?: string;
|
|
21
|
-
}
|
|
22
|
-
declare const Weighing: (props: WeighingProps) => React.JSX.Element | null;
|
|
23
|
-
export default Weighing;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
import { ProductCardTypes } from '../types';
|
|
4
|
-
interface ISKUCardProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
5
|
-
dataSource: any;
|
|
6
|
-
itemType?: 'booking' | 'product';
|
|
7
|
-
type: 'a2' | 'a5' | 'a9';
|
|
8
|
-
rightActions: any[];
|
|
9
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
10
|
-
escapeDom?: string;
|
|
11
|
-
isShowRelatedProduct?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const PREFIX = "pisell-cart-sku-card";
|
|
14
|
-
declare const CartSkuCard: (props: ISKUCardProps) => React.JSX.Element | null;
|
|
15
|
-
export default CartSkuCard;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ProductCardTypes } from '../types';
|
|
3
|
-
import type { LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
|
|
4
|
-
interface BookingLineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
5
|
-
dataSource: any;
|
|
6
|
-
type: LineItemType;
|
|
7
|
-
cartSkuType: 'a2' | 'a5' | 'a9';
|
|
8
|
-
isShowBookingHeader: boolean;
|
|
9
|
-
relatedProductDataSource?: any;
|
|
10
|
-
addTimeProductDataSources?: any[];
|
|
11
|
-
rightActions?: any[];
|
|
12
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
13
|
-
escapeDom?: string;
|
|
14
|
-
statusOptions?: LineItemStatusOption[];
|
|
15
|
-
statusLoading?: boolean;
|
|
16
|
-
statusDisabled?: boolean;
|
|
17
|
-
isShowRelatedProduct?: boolean;
|
|
18
|
-
holderOptions?: LineItemHolderOption[];
|
|
19
|
-
onBookingStatusChange?: (status: string, item: any) => void;
|
|
20
|
-
onAddTimeProductCard?: (item: any) => void;
|
|
21
|
-
}
|
|
22
|
-
declare const BookingLineItem: (props: BookingLineItemProps) => React.JSX.Element | null;
|
|
23
|
-
export default BookingLineItem;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { LineItemHolderOption } from '../../types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface LineItemHoldersProps {
|
|
5
|
-
dataSource?: any;
|
|
6
|
-
holderOptions?: LineItemHolderOption[];
|
|
7
|
-
isFormSubject?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const LineItemHolders: (props: LineItemHoldersProps) => React.JSX.Element | null;
|
|
10
|
-
export default LineItemHolders;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '../../../cartSkuCard/components/resources/index.less';
|
|
3
|
-
interface LineItemResourcesProps {
|
|
4
|
-
dataSource?: any;
|
|
5
|
-
}
|
|
6
|
-
declare const LineItemResources: (props: LineItemResourcesProps) => React.JSX.Element | null;
|
|
7
|
-
export default LineItemResources;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ProductCardTypes } from '../types';
|
|
3
|
-
import type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export declare const PREFIX = "pisell-line-item";
|
|
6
|
-
export type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType, } from './types';
|
|
7
|
-
declare type LocalizedText = string | Record<string, unknown> | null | undefined;
|
|
8
|
-
export interface LineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
9
|
-
dataSource: any;
|
|
10
|
-
itemType?: itemType;
|
|
11
|
-
type?: LineItemType;
|
|
12
|
-
isShowBookingHeader: boolean;
|
|
13
|
-
rightActions?: any[];
|
|
14
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
15
|
-
escapeDom?: string;
|
|
16
|
-
statusOptions?: LineItemStatusOption[];
|
|
17
|
-
statusLoading?: boolean;
|
|
18
|
-
statusDisabled?: boolean;
|
|
19
|
-
isShowRelatedProduct?: boolean;
|
|
20
|
-
holderOptions?: LineItemHolderOption[];
|
|
21
|
-
onBookingStatusChange?: (status: string, item: any) => void;
|
|
22
|
-
onAddTimeProductCard?: (item: any) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare const convertProductToLineItemProduct: (product: any, translationOriginal: (text: LocalizedText) => string, symbol: string) => {
|
|
25
|
-
_id: any;
|
|
26
|
-
id: any;
|
|
27
|
-
product_id: any;
|
|
28
|
-
product_variant_id: any;
|
|
29
|
-
title: string;
|
|
30
|
-
product_title: string;
|
|
31
|
-
name: string;
|
|
32
|
-
cover: any;
|
|
33
|
-
image: any;
|
|
34
|
-
num: any;
|
|
35
|
-
quantity: any;
|
|
36
|
-
price: any;
|
|
37
|
-
total: any;
|
|
38
|
-
origin_total: string | number | undefined;
|
|
39
|
-
original_total: string | number | undefined;
|
|
40
|
-
source_product_price: any;
|
|
41
|
-
selling_price: any;
|
|
42
|
-
payment_price: any;
|
|
43
|
-
tax_fee: any;
|
|
44
|
-
symbol: string;
|
|
45
|
-
note: any;
|
|
46
|
-
product_sku: any;
|
|
47
|
-
product_bundle: any;
|
|
48
|
-
bundle: any;
|
|
49
|
-
product_option_string: any;
|
|
50
|
-
options: any[];
|
|
51
|
-
discount_list: any;
|
|
52
|
-
promotions: any;
|
|
53
|
-
discount_reason: any;
|
|
54
|
-
isGift: boolean;
|
|
55
|
-
giftData: any;
|
|
56
|
-
_origin: any;
|
|
57
|
-
_extend: {
|
|
58
|
-
other: {
|
|
59
|
-
product_id: any;
|
|
60
|
-
option: any[];
|
|
61
|
-
bundle: any;
|
|
62
|
-
product_variant_id: any;
|
|
63
|
-
quantity: any;
|
|
64
|
-
};
|
|
65
|
-
note: any;
|
|
66
|
-
total: any;
|
|
67
|
-
origin_total: string | number | undefined;
|
|
68
|
-
payment_price: any;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
declare const LineItem: (props: LineItemProps) => React.JSX.Element;
|
|
72
|
-
export default LineItem;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell2.line-item.resource': string;
|
|
4
|
-
'pisell2.line-item.time': string;
|
|
5
|
-
'pisell2.line-item.add-time-products': string;
|
|
6
|
-
'pisell2.line-item.show-all': string;
|
|
7
|
-
'pisell2.line-item.collapse': string;
|
|
8
|
-
};
|
|
9
|
-
'zh-CN': {
|
|
10
|
-
'pisell2.line-item.resource': string;
|
|
11
|
-
'pisell2.line-item.time': string;
|
|
12
|
-
'pisell2.line-item.add-time-products': string;
|
|
13
|
-
'pisell2.line-item.show-all': string;
|
|
14
|
-
'pisell2.line-item.collapse': string;
|
|
15
|
-
};
|
|
16
|
-
'zh-HK': {
|
|
17
|
-
'pisell2.line-item.resource': string;
|
|
18
|
-
'pisell2.line-item.time': string;
|
|
19
|
-
'pisell2.line-item.add-time-products': string;
|
|
20
|
-
'pisell2.line-item.show-all': string;
|
|
21
|
-
'pisell2.line-item.collapse': string;
|
|
22
|
-
};
|
|
23
|
-
ja: {
|
|
24
|
-
'pisell2.line-item.resource': string;
|
|
25
|
-
'pisell2.line-item.time': string;
|
|
26
|
-
'pisell2.line-item.add-time-products': string;
|
|
27
|
-
'pisell2.line-item.show-all': string;
|
|
28
|
-
'pisell2.line-item.collapse': string;
|
|
29
|
-
};
|
|
30
|
-
pt: {
|
|
31
|
-
'pisell2.line-item.resource': string;
|
|
32
|
-
'pisell2.line-item.time': string;
|
|
33
|
-
'pisell2.line-item.add-time-products': string;
|
|
34
|
-
'pisell2.line-item.show-all': string;
|
|
35
|
-
'pisell2.line-item.collapse': string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export default _default;
|
|
@@ -1,98 +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
|
-
promotions?: any[];
|
|
60
|
-
isGift?: boolean;
|
|
61
|
-
giftData?: any;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* 排序总配置
|
|
65
|
-
*/
|
|
66
|
-
export declare type ProductCardTypes = {
|
|
67
|
-
dataSource: productType;
|
|
68
|
-
isFormSubject?: boolean;
|
|
69
|
-
isShowImage?: boolean;
|
|
70
|
-
isShowOriginalPrice?: boolean;
|
|
71
|
-
isShowHolder?: boolean;
|
|
72
|
-
isShowNote?: boolean;
|
|
73
|
-
isShowPackageNote?: boolean;
|
|
74
|
-
isShowDelete?: boolean;
|
|
75
|
-
isShowInlineDelete?: boolean;
|
|
76
|
-
rightActionsDisplay?: 'swipe' | 'inline';
|
|
77
|
-
isShowEditProduct?: boolean;
|
|
78
|
-
isShowAmountFooter?: boolean;
|
|
79
|
-
disabledEdit?: boolean;
|
|
80
|
-
locale?: string;
|
|
81
|
-
symbol?: string;
|
|
82
|
-
isShowChangeHolder?: boolean;
|
|
83
|
-
isShowChangeResource?: boolean;
|
|
84
|
-
isShowChangeDate?: boolean;
|
|
85
|
-
disabledClick?: boolean;
|
|
86
|
-
disabledEditClick?: boolean;
|
|
87
|
-
onAction?: (val: any) => void;
|
|
88
|
-
onDelete?: (val: any) => void;
|
|
89
|
-
onNote?: (val: any) => void;
|
|
90
|
-
onLike?: (val: any) => void;
|
|
91
|
-
onCard?: (val: any) => void;
|
|
92
|
-
onChangeResource?: (val: any) => void;
|
|
93
|
-
onPromotion?: (val: any) => void;
|
|
94
|
-
onEditProduct?: (val: any) => void;
|
|
95
|
-
onGift?: (val: any) => void;
|
|
96
|
-
osWarnTips?: Array<string>;
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface RightPanelProps {
|
|
4
|
-
value: string;
|
|
5
|
-
onChange: (value: string) => void;
|
|
6
|
-
slice: number;
|
|
7
|
-
theme?: 'light' | 'dark';
|
|
8
|
-
}
|
|
9
|
-
declare const RightPanel: (props: RightPanelProps) => React.JSX.Element;
|
|
10
|
-
export default RightPanel;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
|
|
3
|
-
import { PopoverProps, TimePickerProps } from "antd";
|
|
4
|
-
import "./index.less";
|
|
5
|
-
export interface SelectTimeProps {
|
|
6
|
-
value: any;
|
|
7
|
-
onChange: (e: string) => void;
|
|
8
|
-
popoverProps?: PopoverProps;
|
|
9
|
-
timePickerProps?: TimePickerProps;
|
|
10
|
-
timeProps?: VirtualKeyboardTimeProps;
|
|
11
|
-
slice?: number;
|
|
12
|
-
theme?: 'light' | 'dark';
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
declare const SelectTime: (props: SelectTimeProps) => React.JSX.Element;
|
|
16
|
-
export default SelectTime;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FilterType } from "../../filter/types";
|
|
2
|
-
import { ColumnSettingType, DataSourceGroupType, GallerySettingType, GridViewType, ModeType, SortType, ExportImportModeType, LocalSettingsType } from "../types";
|
|
3
|
-
declare type UseTableSettingProps = {
|
|
4
|
-
tableId?: string;
|
|
5
|
-
filter: FilterType;
|
|
6
|
-
columns: Record<string, any>[];
|
|
7
|
-
columnSetting?: ColumnSettingType;
|
|
8
|
-
dataSourceGroup?: DataSourceGroupType;
|
|
9
|
-
sort?: SortType;
|
|
10
|
-
view: GridViewType;
|
|
11
|
-
currentViewMode: ModeType;
|
|
12
|
-
gallery?: GallerySettingType;
|
|
13
|
-
currentSettingHash: string;
|
|
14
|
-
exportImport?: ExportImportModeType;
|
|
15
|
-
localSettings?: LocalSettingsType;
|
|
16
|
-
};
|
|
17
|
-
declare const useTableSetting: (params: UseTableSettingProps) => {
|
|
18
|
-
setTableSetting: (this: unknown, values: Record<string, any>) => void;
|
|
19
|
-
tableSetting: any;
|
|
20
|
-
};
|
|
21
|
-
export default useTableSetting;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Item } from "../Keyboard";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
export interface VirtualKeyboardTimeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
selectType?: 'light' | 'dark';
|
|
7
|
-
onChange?: (value?: any) => void;
|
|
8
|
-
value?: any;
|
|
9
|
-
items?: Item[];
|
|
10
|
-
onEnter?: (value: any) => void;
|
|
11
|
-
rightPanel?: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
declare const VirtualKeyboardTime: (props: VirtualKeyboardTimeProps) => React.JSX.Element;
|
|
14
|
-
export default VirtualKeyboardTime;
|