@pisell/materials 6.12.61 → 6.12.62
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 +3 -3
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.js +48 -48
- package/build/lowcode/view.js +48 -48
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -1
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -1
- package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -1
- package/es/components/PisellCards/components/TabCard/TabCard.d.ts +2 -1
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +2 -1
- package/es/components/PisellCards/index.d.ts +6 -5
- package/es/components/PisellGroupView/PisellGroupView.d.ts +2 -1
- package/es/components/PisellLayouts/index.d.ts +2 -2
- package/es/components/PisellMetrics/index.d.ts +2 -2
- package/es/components/appVersionControl/index.d.ts +2 -1
- package/es/components/auto-complete-number/index.d.ts +2 -1
- package/es/components/badge/index.d.ts +2 -1
- package/es/components/batch-editor/index.d.ts +2 -1
- package/es/components/calendar/index.d.ts +4 -1
- package/es/components/cardMetricItem/index.d.ts +1 -1
- package/es/components/cardPro/index.d.ts +2 -1
- package/es/components/checkbox/index.d.ts +4 -1
- package/es/components/classicLayout/index.d.ts +2 -1
- package/es/components/config-provider/index.d.ts +2 -1
- package/es/components/customSelect/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +4 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +2 -1
- package/es/components/date-picker/index.d.ts +4 -1
- package/es/components/drag-sort-tree/index.d.ts +2 -1
- package/es/components/dropdown/index.d.ts +3 -1
- package/es/components/filter/index.d.ts +2 -1
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/list/index.d.ts +2 -2
- package/es/components/lowCodePage/index.d.ts +3 -1
- package/es/components/page/dateLocale.js +33 -0
- package/es/components/page/index.d.ts +3 -1
- package/es/components/page/index.js +30 -4
- package/es/components/page-header/index.d.ts +1 -1
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -1
- package/es/components/pisellAdjustPrice/index.d.ts +2 -1
- package/es/components/pisellAlert/index.d.ts +1 -1
- package/es/components/pisellCard/index.d.ts +2 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/es/components/pisellCountdown/index.d.ts +1 -1
- package/es/components/pisellDatePicker/index.d.ts +4 -1
- package/es/components/pisellDraggable/index.d.ts +1 -1
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellFilter/index.d.ts +2 -1
- package/es/components/pisellFloatingPanel/index.d.ts +1 -1
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +3 -2
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/es/components/pisellGoodPassCard/index.d.ts +1 -1
- package/es/components/pisellGridPro/GridView/index.d.ts +2 -1
- package/es/components/pisellInformationEntry/index.d.ts +1 -1
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +5 -5
- package/es/components/pisellLoading/index.d.ts +2 -1
- package/es/components/pisellModal/index.d.ts +2 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +13 -7
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +2 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +6 -6
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +3 -3
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +3 -3
- package/es/components/pisellRecordBoard/types.d.ts +2 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +2 -2
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
- package/es/components/pisellRow/index.d.ts +1 -1
- package/es/components/pisellSort/index.d.ts +2 -1
- package/es/components/pisellStatisticList/index.d.ts +1 -1
- package/es/components/pisellTags/index.d.ts +1 -1
- package/es/components/pisellText/index.d.ts +2 -2
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
- package/es/components/pisellTooltip/index.d.ts +2 -1
- package/es/components/pisellUpload/index.d.ts +2 -1
- package/es/components/pisellWalletPassCard/index.d.ts +1 -1
- package/es/components/qrcode/index.d.ts +3 -1
- package/es/components/radio/index.d.ts +4 -1
- package/es/components/section-footers/index.d.ts +3 -1
- package/es/components/segmented/index.d.ts +2 -1
- package/es/components/select-time/index.d.ts +2 -1
- package/es/components/skeleton/index.d.ts +4 -1
- package/es/components/slider/index.d.ts +3 -1
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +4 -1
- package/es/components/upload/index.d.ts +4 -1
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +2 -1
- package/es/components/virtual-keyboard/Number/index.d.ts +2 -1
- package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/es/components/virtual-keyboard/index.d.ts +1 -1
- package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -2
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -2
- package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -2
- package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +2 -2
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +2 -2
- package/lib/components/PisellCards/index.d.ts +6 -5
- package/lib/components/PisellGroupView/PisellGroupView.d.ts +2 -2
- package/lib/components/PisellLayouts/index.d.ts +2 -2
- package/lib/components/PisellMetrics/index.d.ts +2 -2
- package/lib/components/appVersionControl/index.d.ts +2 -2
- package/lib/components/auto-complete-number/index.d.ts +2 -2
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/batch-editor/index.d.ts +2 -2
- package/lib/components/calendar/index.d.ts +3 -1
- package/lib/components/cardMetricItem/index.d.ts +1 -1
- package/lib/components/cardPro/index.d.ts +2 -2
- package/lib/components/checkbox/index.d.ts +3 -1
- package/lib/components/classicLayout/index.d.ts +2 -2
- package/lib/components/config-provider/index.d.ts +2 -2
- package/lib/components/customSelect/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +3 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +2 -1
- package/lib/components/date-picker/index.d.ts +3 -1
- package/lib/components/drag-sort-tree/index.d.ts +2 -2
- package/lib/components/dropdown/index.d.ts +3 -2
- package/lib/components/filter/index.d.ts +2 -2
- package/lib/components/keyboard/index.d.ts +1 -1
- package/lib/components/list/index.d.ts +2 -2
- package/lib/components/lowCodePage/index.d.ts +3 -2
- package/lib/components/page/dateLocale.js +35 -0
- package/lib/components/page/index.d.ts +3 -2
- package/lib/components/page/index.js +33 -4
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
- package/lib/components/pisellAdjustPrice/index.d.ts +2 -2
- package/lib/components/pisellAlert/index.d.ts +1 -1
- package/lib/components/pisellCard/index.d.ts +2 -2
- package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/lib/components/pisellCountdown/index.d.ts +1 -1
- package/lib/components/pisellDatePicker/index.d.ts +3 -1
- package/lib/components/pisellDraggable/index.d.ts +1 -1
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellFilter/index.d.ts +2 -2
- package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -5
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +3 -2
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -2
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
- package/lib/components/pisellGridPro/GridView/index.d.ts +2 -2
- package/lib/components/pisellInformationEntry/index.d.ts +1 -1
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -1
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -1
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -1
- package/lib/components/pisellInput/index.d.ts +5 -5
- package/lib/components/pisellLoading/index.d.ts +2 -2
- package/lib/components/pisellModal/index.d.ts +2 -2
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.js +12 -6
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -2
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.js +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.js +6 -6
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.js +2 -2
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.js +2 -2
- package/lib/components/pisellRecordBoard/types.d.ts +2 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +2 -2
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -2
- package/lib/components/pisellRow/index.d.ts +1 -1
- package/lib/components/pisellSort/index.d.ts +2 -2
- package/lib/components/pisellStatisticList/index.d.ts +1 -1
- package/lib/components/pisellTags/index.d.ts +1 -1
- package/lib/components/pisellText/index.d.ts +2 -2
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -2
- package/lib/components/pisellTooltip/index.d.ts +2 -2
- package/lib/components/pisellUpload/index.d.ts +2 -2
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
- package/lib/components/qrcode/index.d.ts +3 -2
- package/lib/components/radio/index.d.ts +3 -1
- package/lib/components/section-footers/index.d.ts +3 -1
- package/lib/components/segmented/index.d.ts +2 -2
- package/lib/components/select-time/index.d.ts +2 -2
- package/lib/components/skeleton/index.d.ts +3 -1
- package/lib/components/slider/index.d.ts +3 -2
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +3 -1
- package/lib/components/upload/index.d.ts +3 -1
- package/lib/components/versionSelect/index.d.ts +1 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +2 -2
- package/lib/components/virtual-keyboard/Number/index.d.ts +2 -2
- package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/lib/components/virtual-keyboard/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PisellBasicGridProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/PisellBasicGrid/PisellBasicGrid.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* 使用 memo 优化组件性能
|
|
5
6
|
* @description 当 props 没有变化时,避免不必要的重新渲染
|
|
6
7
|
*/
|
|
7
|
-
declare const MemoizedPisellBasicGrid: <T>(props: PisellBasicGridProps<T>) => JSX.Element;
|
|
8
|
+
declare const MemoizedPisellBasicGrid: <T>(props: PisellBasicGridProps<T>) => React.JSX.Element;
|
|
8
9
|
//#endregion
|
|
9
10
|
export { MemoizedPisellBasicGrid };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { GraphicTextCardProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Provider 包装器
|
|
5
6
|
* 兼容 PisellCards 系统的 props 传递方式
|
|
6
7
|
*/
|
|
7
|
-
declare const Provider: (props: GraphicTextCardProps) => JSX.Element;
|
|
8
|
+
declare const Provider: (props: GraphicTextCardProps) => React.JSX.Element;
|
|
8
9
|
//#endregion
|
|
9
10
|
export { Provider };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PisellImageCardProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Provider 包装器
|
|
5
6
|
* 兼容 PisellCards 系统的 props 传递方式
|
|
6
7
|
*/
|
|
7
|
-
declare const Provider: (props: PisellImageCardProps) => JSX.Element;
|
|
8
|
+
declare const Provider: (props: PisellImageCardProps) => React.JSX.Element;
|
|
8
9
|
//#endregion
|
|
9
10
|
export { Provider };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
//#region src/components/PisellCards/components/TextCard/TextCard.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Provider 包装器
|
|
4
5
|
* 兼容 PisellCards 系统的 props 传递方式
|
|
5
6
|
*/
|
|
6
|
-
declare const Provider: (props: any) => JSX.Element;
|
|
7
|
+
declare const Provider: (props: any) => React.JSX.Element;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { Provider };
|
|
@@ -4,14 +4,15 @@ import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./componen
|
|
|
4
4
|
import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
|
|
5
5
|
import { BadgeConfig, TabCardProps } from "./components/TabCard/types.js";
|
|
6
6
|
import { MultilevelCardProps } from "./components/MultilevelCard/types.js";
|
|
7
|
+
import * as _$react from "react";
|
|
7
8
|
|
|
8
9
|
//#region src/components/PisellCards/index.d.ts
|
|
9
10
|
declare const PisellCards: {
|
|
10
|
-
TabCard: (props: any) => JSX.Element;
|
|
11
|
-
TextCard: (props: any) => JSX.Element;
|
|
12
|
-
GraphicTextCard: (props: GraphicTextCardProps) => JSX.Element;
|
|
13
|
-
MultilevelCard: (props: any) => JSX.Element;
|
|
14
|
-
PisellImageCard: (props: PisellImageCardProps) => JSX.Element;
|
|
11
|
+
TabCard: (props: any) => _$react.JSX.Element;
|
|
12
|
+
TextCard: (props: any) => _$react.JSX.Element;
|
|
13
|
+
GraphicTextCard: (props: GraphicTextCardProps) => _$react.JSX.Element;
|
|
14
|
+
MultilevelCard: (props: any) => _$react.JSX.Element;
|
|
15
|
+
PisellImageCard: (props: PisellImageCardProps) => _$react.JSX.Element;
|
|
15
16
|
};
|
|
16
17
|
//#endregion
|
|
17
18
|
export { PisellCards };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PisellGroupViewProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/PisellGroupView/PisellGroupView.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* 使用 memo 优化性能:props 未变化时跳过重渲染
|
|
5
6
|
*/
|
|
6
|
-
declare const MemoizedPisellGroupView: <T>(props: PisellGroupViewProps<T>) => JSX.Element;
|
|
7
|
+
declare const MemoizedPisellGroupView: <T>(props: PisellGroupViewProps<T>) => React.JSX.Element;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { MemoizedPisellGroupView };
|
|
@@ -31,7 +31,7 @@ import * as _$react from "react";
|
|
|
31
31
|
* </PisellLayouts.ScrollView>
|
|
32
32
|
*/
|
|
33
33
|
declare const PisellLayouts: {
|
|
34
|
-
BasicGrid: <T>(props: PisellBasicGridProps<T>) => JSX.Element;
|
|
34
|
+
BasicGrid: <T>(props: PisellBasicGridProps<T>) => _$react.JSX.Element;
|
|
35
35
|
ScrollView: _$react.ForwardRefExoticComponent<Omit<PisellScrollViewProps, "ref"> & _$react.RefAttributes<PisellScrollViewRef>>;
|
|
36
36
|
FloorMapLayout: <T_1 extends FloorMapItemBase = FloorMapItemBase>(props: PisellFloorMapLayoutProps<T_1> & {
|
|
37
37
|
ref?: _$react.Ref<PisellFloorMapLayoutRef | null> | undefined;
|
|
@@ -42,7 +42,7 @@ declare const PisellLayouts: {
|
|
|
42
42
|
Header: _$react.FC<PisellHeaderProps>;
|
|
43
43
|
Sider: _$react.FC<PisellSiderProps>;
|
|
44
44
|
Container: <T_2 extends RenderType>(props: PisellContainerProps<T_2>) => any;
|
|
45
|
-
Row: (props: PisellRowProps) => JSX.Element;
|
|
45
|
+
Row: (props: PisellRowProps) => _$react.JSX.Element;
|
|
46
46
|
ViewGrid: _$react.FC<PisellViewGridProps>;
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
@@ -22,8 +22,8 @@ import * as _$react from "react";
|
|
|
22
22
|
*/
|
|
23
23
|
declare const PisellMetrics: {
|
|
24
24
|
MetricCard: _$react.FC<PisellMetricCardProps>;
|
|
25
|
-
StatisticList: (props: PisellStatisticListProps) => JSX.Element;
|
|
26
|
-
MetricItem: (props: PisellStatisticProps) => JSX.Element;
|
|
25
|
+
StatisticList: (props: PisellStatisticListProps) => _$react.JSX.Element;
|
|
26
|
+
MetricItem: (props: PisellStatisticProps) => _$react.JSX.Element;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { PisellMetrics };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AppVersionControlProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/appVersionControl/index.d.ts
|
|
3
|
-
declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
|
|
4
|
+
declare const AppVersionControl: (props: AppVersionControlProps) => React.JSX.Element;
|
|
4
5
|
//#endregion
|
|
5
6
|
export { AppVersionControl };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { AutoCompleteProps, InputNumberProps } from "antd";
|
|
2
3
|
|
|
3
4
|
//#region src/components/auto-complete-number/index.d.ts
|
|
@@ -7,6 +8,6 @@ interface AutoCompleteNumberProps {
|
|
|
7
8
|
value?: any;
|
|
8
9
|
onChange?: any;
|
|
9
10
|
}
|
|
10
|
-
declare const AutoCompleteNumber: (props: AutoCompleteNumberProps) => JSX.Element;
|
|
11
|
+
declare const AutoCompleteNumber: (props: AutoCompleteNumberProps) => React.JSX.Element;
|
|
11
12
|
//#endregion
|
|
12
13
|
export { AutoCompleteNumber };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
//#region src/components/batch-editor/index.d.ts
|
|
2
3
|
interface BatchEditorProps {
|
|
3
4
|
columns: any[];
|
|
@@ -6,6 +7,6 @@ interface BatchEditorProps {
|
|
|
6
7
|
rowKey: string;
|
|
7
8
|
otherTableProps: any;
|
|
8
9
|
}
|
|
9
|
-
declare const BatchEditor: (props: BatchEditorProps) => JSX.Element;
|
|
10
|
+
declare const BatchEditor: (props: BatchEditorProps) => React.JSX.Element;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { BatchEditor };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
1
4
|
//#region src/components/calendar/index.d.ts
|
|
2
|
-
declare const Calendar: (props: any) => JSX.Element;
|
|
5
|
+
declare const Calendar: (props: any) => _$react.JSX.Element;
|
|
3
6
|
//#endregion
|
|
4
7
|
export { Calendar };
|
|
@@ -11,6 +11,6 @@ interface PisellStatisticProps {
|
|
|
11
11
|
showCurrencySymbol?: boolean;
|
|
12
12
|
style?: any;
|
|
13
13
|
}
|
|
14
|
-
declare const CardMetricItem: (props: PisellStatisticProps) => JSX.Element;
|
|
14
|
+
declare const CardMetricItem: (props: PisellStatisticProps) => React.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { CardMetricItem, PisellStatisticProps };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
1
4
|
//#region src/components/checkbox/index.d.ts
|
|
2
|
-
declare const Checkbox: (props: any) => JSX.Element;
|
|
5
|
+
declare const Checkbox: (props: any) => _$react.JSX.Element;
|
|
3
6
|
//#endregion
|
|
4
7
|
export { Checkbox };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ConfigProviderProps } from "antd/es/config-provider";
|
|
2
3
|
|
|
3
4
|
//#region src/components/config-provider/index.d.ts
|
|
4
5
|
interface ConfigProviderProps$1 extends ConfigProviderProps {
|
|
5
6
|
[key: string]: any;
|
|
6
7
|
}
|
|
7
|
-
declare const ConfigProvider: (props: ConfigProviderProps$1) => JSX.Element;
|
|
8
|
+
declare const ConfigProvider: (props: ConfigProviderProps$1) => React.JSX.Element;
|
|
8
9
|
//#endregion
|
|
9
10
|
export { ConfigProvider, ConfigProviderProps$1 as ConfigProviderProps };
|
|
@@ -13,6 +13,6 @@ interface CustomSelectProps<T extends BaseOption> extends Omit<SelectProps<T['va
|
|
|
13
13
|
className?: string;
|
|
14
14
|
style?: React.CSSProperties;
|
|
15
15
|
}
|
|
16
|
-
declare const CustomSelect: <T extends BaseOption>(props: CustomSelectProps<T>) => JSX.Element;
|
|
16
|
+
declare const CustomSelect: <T extends BaseOption>(props: CustomSelectProps<T>) => React.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { CustomSelect };
|
|
@@ -16,6 +16,6 @@ interface FormGroupProps {
|
|
|
16
16
|
* @Author: shengjie.zuo
|
|
17
17
|
* @Date: 2024-11-25 17:14:25
|
|
18
18
|
*/
|
|
19
|
-
declare const FormGroup: (props: FormGroupProps) => JSX.Element;
|
|
19
|
+
declare const FormGroup: (props: FormGroupProps) => React.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { FormGroup };
|
|
@@ -35,6 +35,6 @@ interface SubmitButtonProps extends ButtonProps {
|
|
|
35
35
|
placement: 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight';
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
declare const SubmitButton: (props: SubmitButtonProps) => JSX.Element | null;
|
|
38
|
+
declare const SubmitButton: (props: SubmitButtonProps) => React.JSX.Element | null;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { SubmitButton };
|
|
@@ -6,6 +6,6 @@ import React from "react";
|
|
|
6
6
|
* @title: 数据源表单组件
|
|
7
7
|
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
8
8
|
*/
|
|
9
|
-
declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
|
|
9
|
+
declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => React.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { DataSourceMenu };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ParsedProps } from "../utils.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts
|
|
5
|
-
declare const DataSourceImage: (props: ParsedProps) => JSX.Element;
|
|
5
|
+
declare const DataSourceImage: (props: ParsedProps) => React.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { DataSourceImage };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
1
4
|
//#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
|
|
2
|
-
declare const DataSourceQRCode: (props: any) => JSX.Element;
|
|
5
|
+
declare const DataSourceQRCode: (props: any) => _$react.JSX.Element;
|
|
3
6
|
//#endregion
|
|
4
7
|
export { DataSourceQRCode };
|
|
@@ -7,8 +7,8 @@ interface DataSourceTypographyProps {
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
}
|
|
9
9
|
declare const DataSourceTypography: {
|
|
10
|
-
(props: DataSourceTypographyProps): JSX.Element;
|
|
11
|
-
Text: (props: ParsedProps) => JSX.Element;
|
|
10
|
+
(props: DataSourceTypographyProps): React.JSX.Element;
|
|
11
|
+
Text: (props: ParsedProps) => React.JSX.Element;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DataSourceTypography };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataSourceContextProps } from "../provider/dataSource/DataSourceContext.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/dataSourceComponents/dataSourceWrapper/index.d.ts
|
|
4
|
-
declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
|
|
5
|
+
declare const DataSourceWrapper: (props: DataSourceContextProps) => React.JSX.Element;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { DataSourceWrapper };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
3
2
|
import { RecordListWrapperProps } from "./type.js";
|
|
3
|
+
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts
|
|
6
6
|
declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps & WithModeProps & WithFormItemProps & {
|
|
@@ -12,6 +12,6 @@ declare const RecordListWrapperWithDataSource: (props: RecordListWrapperProps &
|
|
|
12
12
|
} & {
|
|
13
13
|
dataSource?: any;
|
|
14
14
|
extraParams?: Record<string, any> | undefined;
|
|
15
|
-
}) => JSX.Element;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { RecordListWrapperWithDataSource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
import * as _$antd from "antd";
|
|
4
4
|
import * as _$antd_es_select0 from "antd/es/select";
|
|
5
5
|
|
|
@@ -13,6 +13,6 @@ declare const SelectWithDataSource: (props: _$antd.SelectProps<any, _$antd_es_se
|
|
|
13
13
|
} & {
|
|
14
14
|
dataSource?: any;
|
|
15
15
|
extraParams?: Record<string, any> | undefined;
|
|
16
|
-
}) => JSX.Element;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SelectWithDataSource };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
|
|
3
3
|
import { TabsProps } from "./type.js";
|
|
4
|
+
import * as _$react from "react";
|
|
4
5
|
|
|
5
6
|
//#region src/components/dataSourceComponents/fields/Tabs/index.d.ts
|
|
6
7
|
/** 包装 DataSource 层(提供数据源上下文) */
|
|
@@ -13,6 +14,6 @@ declare const FormItemTabs: (props: TabsProps & WithModeProps & WithFormItemProp
|
|
|
13
14
|
} & {
|
|
14
15
|
dataSource?: any;
|
|
15
16
|
extraParams?: Record<string, any> | undefined;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
+
}) => _$react.JSX.Element;
|
|
17
18
|
//#endregion
|
|
18
19
|
export { FormItemTabs };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
1
4
|
//#region src/components/date-picker/index.d.ts
|
|
2
|
-
declare const DatePicker: (props: any) => JSX.Element;
|
|
5
|
+
declare const DatePicker: (props: any) => _$react.JSX.Element;
|
|
3
6
|
//#endregion
|
|
4
7
|
export { DatePicker };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SortType } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/drag-sort-tree/index.d.ts
|
|
3
|
-
declare const DragSortTree: (props: SortType) => JSX.Element;
|
|
4
|
+
declare const DragSortTree: (props: SortType) => React.JSX.Element;
|
|
4
5
|
//#endregion
|
|
5
6
|
export { DragSortTree };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/filter/index.d.ts
|
|
4
|
-
declare const Filter: (props: FilterProps) => JSX.Element | null;
|
|
5
|
+
declare const Filter: (props: FilterProps) => React.JSX.Element | null;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { Filter };
|
|
@@ -18,6 +18,6 @@ interface KeyboardProps {
|
|
|
18
18
|
rightItems?: Item[];
|
|
19
19
|
keydown?: boolean;
|
|
20
20
|
}
|
|
21
|
-
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
21
|
+
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => React.JSX.Element>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { _default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import * as _$antd_es_list_Item0 from "antd/es/list/Item";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/index.d.ts
|
|
5
5
|
declare const List: {
|
|
6
|
-
(props: any): JSX.Element;
|
|
6
|
+
(props: any): React.JSX.Element;
|
|
7
7
|
Item: _$antd_es_list_Item0.ListItemTypeProps;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
1
3
|
//#region src/components/lowCodePage/index.d.ts
|
|
2
4
|
type LowCodePageProps = {
|
|
3
5
|
id: number;
|
|
4
6
|
};
|
|
5
|
-
declare const LowCodePage: (props: LowCodePageProps) => JSX.Element;
|
|
7
|
+
declare const LowCodePage: (props: LowCodePageProps) => React.JSX.Element;
|
|
6
8
|
//#endregion
|
|
7
9
|
export { LowCodePage };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/components/page/dateLocale.ts
|
|
2
|
+
const COUNTRY_WEEK_STARTS_ON = {
|
|
3
|
+
US: 0,
|
|
4
|
+
CA: 0,
|
|
5
|
+
AU: 1,
|
|
6
|
+
NZ: 1,
|
|
7
|
+
SG: 0,
|
|
8
|
+
HK: 0,
|
|
9
|
+
TW: 0,
|
|
10
|
+
CN: 1,
|
|
11
|
+
JP: 0,
|
|
12
|
+
KR: 0,
|
|
13
|
+
MY: 1,
|
|
14
|
+
GB: 1,
|
|
15
|
+
FR: 1,
|
|
16
|
+
IT: 1
|
|
17
|
+
};
|
|
18
|
+
function normalizePageCountryCode(value) {
|
|
19
|
+
const countryCode = String(value !== null && value !== void 0 ? value : "").trim().toUpperCase();
|
|
20
|
+
return /^[A-Z]{2}$/.test(countryCode) ? countryCode : void 0;
|
|
21
|
+
}
|
|
22
|
+
/** Undefined tells Page to preserve its previous locale behaviour. */
|
|
23
|
+
function getPageWeekStartsOn(countryCode) {
|
|
24
|
+
const normalized = normalizePageCountryCode(countryCode);
|
|
25
|
+
return normalized ? COUNTRY_WEEK_STARTS_ON[normalized] : void 0;
|
|
26
|
+
}
|
|
27
|
+
function getPageEnglishAdapterLocale(countryCode) {
|
|
28
|
+
const weekStartsOn = getPageWeekStartsOn(countryCode);
|
|
29
|
+
if (weekStartsOn === void 0) return void 0;
|
|
30
|
+
return weekStartsOn === 1 ? "en-gb" : "en";
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { getPageEnglishAdapterLocale, getPageWeekStartsOn, normalizePageCountryCode };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ConfigProviderProps } from "../config-provider/index.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/page/index.d.ts
|
|
4
5
|
interface PageProps extends ConfigProviderProps {
|
|
6
|
+
countryCode?: string;
|
|
5
7
|
variablesConfig?: {
|
|
6
8
|
disabledHistoryListener?: boolean;
|
|
7
9
|
};
|
|
8
10
|
}
|
|
9
|
-
declare const Page: (props: PageProps) => JSX.Element;
|
|
11
|
+
declare const Page: (props: PageProps) => React.JSX.Element;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { Page };
|
|
@@ -5,25 +5,31 @@ import ConfigProvider$1 from "../config-provider/index.js";
|
|
|
5
5
|
import VariablesProvider from "../dataSourceComponents/provider/variables/VariablesProvider.js";
|
|
6
6
|
import PisellConfigProvider from "../pisell-config-provider/index.js";
|
|
7
7
|
import { getThemeConfig } from "../../theme/tokens.js";
|
|
8
|
+
import { getPageEnglishAdapterLocale, getPageWeekStartsOn, normalizePageCountryCode } from "./dateLocale.js";
|
|
8
9
|
import React, { useEffect, useMemo } from "react";
|
|
9
10
|
import { App } from "antd";
|
|
11
|
+
import dayjs from "dayjs";
|
|
10
12
|
import { LocaleProvider, LocalizationProvider, ThemeProvider, createTheme } from "@pisell/date-picker";
|
|
11
13
|
import zhCN from "antd/es/locale/zh_CN";
|
|
12
14
|
import { AdapterDayjs } from "@pisell/date-picker/es/AdapterDayjs";
|
|
13
15
|
import enUS from "antd/es/locale/en_US";
|
|
16
|
+
import enGB from "antd/es/locale/en_GB";
|
|
14
17
|
import zhTW from "antd/es/locale/zh_TW";
|
|
15
18
|
import zhHK from "antd/es/locale/zh_HK";
|
|
16
19
|
import jaJP from "antd/es/locale/ja_JP";
|
|
17
20
|
import ptPT from "antd/es/locale/pt_PT";
|
|
21
|
+
import enGbLocale from "dayjs/locale/en-gb";
|
|
18
22
|
//#region src/components/page/index.tsx
|
|
19
23
|
const _excluded = [
|
|
20
24
|
"children",
|
|
21
25
|
"style",
|
|
22
26
|
"className",
|
|
23
27
|
"locale",
|
|
28
|
+
"countryCode",
|
|
24
29
|
"variablesConfig",
|
|
25
30
|
"isRenderPisellConfigProvider"
|
|
26
31
|
];
|
|
32
|
+
dayjs.locale(enGbLocale, void 0, true);
|
|
27
33
|
const localMap = {
|
|
28
34
|
"zh-TW": zhTW,
|
|
29
35
|
"zh-CN": zhCN,
|
|
@@ -43,11 +49,31 @@ const localeDateMap = {
|
|
|
43
49
|
"pt": { adapterLocale: "pt" }
|
|
44
50
|
};
|
|
45
51
|
const Page = (props) => {
|
|
46
|
-
var _context$appHelper, _context$engine, _localeDateMap, _context$engine2;
|
|
47
|
-
const { children, style, className, locale: propsLocale, variablesConfig, isRenderPisellConfigProvider = true } = props, others = _objectWithoutProperties(props, _excluded);
|
|
52
|
+
var _context$appHelper, _context$engine, _context$appHelper2, _localeDateMap, _context$engine2;
|
|
53
|
+
const { children, style, className, locale: propsLocale, countryCode: propsCountryCode, variablesConfig, isRenderPisellConfigProvider = true } = props, others = _objectWithoutProperties(props, _excluded);
|
|
48
54
|
const context = useEngineContext();
|
|
49
55
|
const { platform, themeColor } = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.constants) || {};
|
|
50
56
|
const locale = propsLocale || (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || "en";
|
|
57
|
+
const utils = context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils;
|
|
58
|
+
let countryCode = normalizePageCountryCode(propsCountryCode);
|
|
59
|
+
try {
|
|
60
|
+
var _utils$getStore, _utils$getStore$getSt, _utils$store, _utils$store$getState, _utils$getApp, _utils$getApp$getStor, _utils$getApp$getStor2, _hostState$global, _utils$getData, _context$appHelper3, _context$appHelper4, _context$appHelper5;
|
|
61
|
+
const hostState = (utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 || (_utils$getStore$getSt = _utils$getStore.getState) === null || _utils$getStore$getSt === void 0 ? void 0 : _utils$getStore$getSt.call(_utils$getStore)) || (utils === null || utils === void 0 || (_utils$store = utils.store) === null || _utils$store === void 0 || (_utils$store$getState = _utils$store.getState) === null || _utils$store$getState === void 0 ? void 0 : _utils$store$getState.call(_utils$store));
|
|
62
|
+
const appCore = utils === null || utils === void 0 || (_utils$getApp = utils.getApp) === null || _utils$getApp === void 0 || (_utils$getApp = _utils$getApp.call(utils)) === null || _utils$getApp === void 0 || (_utils$getApp = _utils$getApp.data) === null || _utils$getApp === void 0 || (_utils$getApp = _utils$getApp.store) === null || _utils$getApp === void 0 || (_utils$getApp$getStor = _utils$getApp.getStore) === null || _utils$getApp$getStor === void 0 || (_utils$getApp$getStor = _utils$getApp$getStor.call(_utils$getApp)) === null || _utils$getApp$getStor === void 0 || (_utils$getApp$getStor2 = _utils$getApp$getStor.getDataByModel) === null || _utils$getApp$getStor2 === void 0 ? void 0 : _utils$getApp$getStor2.call(_utils$getApp$getStor, "core", "core");
|
|
63
|
+
countryCode = [
|
|
64
|
+
countryCode,
|
|
65
|
+
hostState === null || hostState === void 0 || (_hostState$global = hostState.global) === null || _hostState$global === void 0 || (_hostState$global = _hostState$global.shopDetail) === null || _hostState$global === void 0 ? void 0 : _hostState$global.country_code,
|
|
66
|
+
utils === null || utils === void 0 || (_utils$getData = utils.getData) === null || _utils$getData === void 0 || (_utils$getData = _utils$getData.call(utils, "shop_info")) === null || _utils$getData === void 0 ? void 0 : _utils$getData.country_code,
|
|
67
|
+
appCore === null || appCore === void 0 ? void 0 : appCore.country_code,
|
|
68
|
+
context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.constants) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.countryCode,
|
|
69
|
+
context === null || context === void 0 || (_context$appHelper4 = context.appHelper) === null || _context$appHelper4 === void 0 || (_context$appHelper4 = _context$appHelper4.constants) === null || _context$appHelper4 === void 0 ? void 0 : _context$appHelper4.country_code,
|
|
70
|
+
context === null || context === void 0 || (_context$appHelper5 = context.appHelper) === null || _context$appHelper5 === void 0 || (_context$appHelper5 = _context$appHelper5.constants) === null || _context$appHelper5 === void 0 ? void 0 : _context$appHelper5.country
|
|
71
|
+
].map(normalizePageCountryCode).find((candidate) => candidate !== void 0);
|
|
72
|
+
} catch (_unused) {}
|
|
73
|
+
const englishAdapterLocale = getPageEnglishAdapterLocale(countryCode);
|
|
74
|
+
const weekStartsOn = getPageWeekStartsOn(countryCode);
|
|
75
|
+
const isEnglish = String(locale).toLowerCase().startsWith("en");
|
|
76
|
+
const antdLocale = isEnglish && weekStartsOn !== void 0 ? weekStartsOn === 1 ? enGB : enUS : localMap[locale];
|
|
51
77
|
const theme = useMemo(() => {
|
|
52
78
|
if (props === null || props === void 0 ? void 0 : props.theme) {
|
|
53
79
|
var _props$theme;
|
|
@@ -64,7 +90,7 @@ const Page = (props) => {
|
|
|
64
90
|
document.body.id = "body";
|
|
65
91
|
}, []);
|
|
66
92
|
return /* @__PURE__ */ React.createElement(ConfigProvider$1, _objectSpread2(_objectSpread2({}, others), {}, {
|
|
67
|
-
locale:
|
|
93
|
+
locale: antdLocale,
|
|
68
94
|
prefixCls: props.prefixCls || "pisell-lowcode",
|
|
69
95
|
theme
|
|
70
96
|
}), /* @__PURE__ */ React.createElement(App, {
|
|
@@ -72,7 +98,7 @@ const Page = (props) => {
|
|
|
72
98
|
message: { maxCount: 1 }
|
|
73
99
|
}, /* @__PURE__ */ React.createElement(LocalizationProvider, {
|
|
74
100
|
dateAdapter: AdapterDayjs,
|
|
75
|
-
adapterLocale: (localeDateMap === null || localeDateMap === void 0 || (_localeDateMap = localeDateMap[locale]) === null || _localeDateMap === void 0 ? void 0 : _localeDateMap.adapterLocale) || "en"
|
|
101
|
+
adapterLocale: isEnglish && englishAdapterLocale || (localeDateMap === null || localeDateMap === void 0 || (_localeDateMap = localeDateMap[locale]) === null || _localeDateMap === void 0 ? void 0 : _localeDateMap.adapterLocale) || "en"
|
|
76
102
|
}, /* @__PURE__ */ React.createElement(ThemeProvider, { theme: datePickerTheme }, /* @__PURE__ */ React.createElement(LocaleProvider, { value: { locale } }, /* @__PURE__ */ React.createElement(PisellConfigProvid, { locale }, /* @__PURE__ */ React.createElement(VariablesProvider, {
|
|
77
103
|
variables: ((_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.variables) || {},
|
|
78
104
|
config: variablesConfig
|
|
@@ -10,6 +10,6 @@ interface PageHeaderProps {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
}
|
|
13
|
-
declare const PageHeader: (props: PageHeaderProps) => JSX.Element | null;
|
|
13
|
+
declare const PageHeader: (props: PageHeaderProps) => React.JSX.Element | null;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { PageHeader };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InputNumberProps } from "antd/es/input-number";
|
|
2
3
|
|
|
3
4
|
//#region src/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts
|
|
@@ -7,6 +8,6 @@ interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onCh
|
|
|
7
8
|
defaultValue?: number;
|
|
8
9
|
onChange?: (val: number) => void;
|
|
9
10
|
}
|
|
10
|
-
declare const PisellAdjustPriceInputNumber: (props: PisellAdjustPriceInputNumberProps) => JSX.Element;
|
|
11
|
+
declare const PisellAdjustPriceInputNumber: (props: PisellAdjustPriceInputNumberProps) => React.JSX.Element;
|
|
11
12
|
//#endregion
|
|
12
13
|
export { PisellAdjustPriceInputNumber };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PisellAdjustPriceProps } from "./type.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/pisellAdjustPrice/index.d.ts
|
|
3
|
-
declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
|
|
4
|
+
declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => React.JSX.Element;
|
|
4
5
|
//#endregion
|
|
5
6
|
export { PisellAdjustPrice };
|
|
@@ -18,6 +18,6 @@ interface PisellAlertProps extends AlertProps {
|
|
|
18
18
|
* @param props
|
|
19
19
|
* @constructor
|
|
20
20
|
*/
|
|
21
|
-
declare const PisellAlert: (props: PisellAlertProps) => false | JSX.Element;
|
|
21
|
+
declare const PisellAlert: (props: PisellAlertProps) => false | React.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PisellAlert };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { CardProps } from "antd";
|
|
2
3
|
//#region src/components/pisellCard/index.d.ts
|
|
3
4
|
interface PisellCardProps extends CardProps {
|
|
@@ -15,6 +16,6 @@ interface PisellCardProps extends CardProps {
|
|
|
15
16
|
* @param props
|
|
16
17
|
* @constructor
|
|
17
18
|
*/
|
|
18
|
-
declare const PisellCard: (props: PisellCardProps) => JSX.Element;
|
|
19
|
+
declare const PisellCard: (props: PisellCardProps) => React.JSX.Element;
|
|
19
20
|
//#endregion
|
|
20
21
|
export { PisellCard };
|