@pisell/materials 6.11.240 → 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/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/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 -123
- 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 -123
- 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
|
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
54
54
|
width: number;
|
|
55
55
|
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
|
-
type: "
|
|
57
|
+
type: "link" | "button";
|
|
58
58
|
items: OperationItem[];
|
|
59
59
|
} | undefined;
|
|
60
60
|
operationContent?: {
|
|
@@ -19,7 +19,7 @@ declare const formFieldMap: {
|
|
|
19
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
20
20
|
onChange: (value: string) => void;
|
|
21
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
22
|
-
rootDomain: "custom" | "
|
|
22
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
23
23
|
customDomain?: string | undefined;
|
|
24
24
|
value?: string | undefined;
|
|
25
25
|
tenantId: string;
|
|
@@ -80,13 +80,11 @@ declare const formFieldMap: {
|
|
|
80
80
|
extraParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => import("react").JSX.Element;
|
|
82
82
|
};
|
|
83
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
83
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
84
84
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
85
85
|
} & {
|
|
86
86
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
87
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> |
|
|
88
|
-
onChange: (value: string) => void;
|
|
89
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
87
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
90
88
|
JSON: import("react").FC<any>;
|
|
91
89
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
92
90
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -99,14 +97,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
99
97
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
100
98
|
onChange: (value: string) => void;
|
|
101
99
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
102
|
-
rootDomain: "custom" | "
|
|
100
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
103
101
|
customDomain?: string | undefined;
|
|
104
102
|
value?: string | undefined;
|
|
105
103
|
tenantId: string;
|
|
106
104
|
name?: string | undefined;
|
|
107
105
|
fieldKey?: string | undefined;
|
|
108
106
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
109
|
-
}) |
|
|
107
|
+
}) | (import("react").FC<{}> & {
|
|
110
108
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
111
109
|
} & {
|
|
112
110
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -119,7 +117,9 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
119
117
|
} & {
|
|
120
118
|
dataSource?: any;
|
|
121
119
|
extraParams?: Record<string, any> | undefined;
|
|
122
|
-
}) => import("react").JSX.Element) | import("react").FC<
|
|
120
|
+
}) => import("react").JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
121
|
+
onChange: (value: string) => void;
|
|
122
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
123
123
|
options?: any;
|
|
124
124
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
125
125
|
labelField: string;
|
|
@@ -4,6 +4,8 @@ import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
|
|
|
4
4
|
* 原生扫码事件名,对齐宿主端约定。
|
|
5
5
|
*/
|
|
6
6
|
export declare const SCAN_RESULT_EVENT = "nativeScanResult";
|
|
7
|
+
/** 无扫码焦点栈时,供页面级全局扫码监听避让 Find 的回退计数。 */
|
|
8
|
+
export declare const FIND_FALLBACK_SCANNER_COUNT_KEY = "__pisellFindFallbackScannerCount";
|
|
7
9
|
/**
|
|
8
10
|
* 扫码枪回传数据(对齐宿主 ScanResultPayload)
|
|
9
11
|
* - code: 条码标识(如条码格式 / 业务字段)
|
|
@@ -17,6 +17,8 @@ import pt from "../../locales/pt";
|
|
|
17
17
|
* 原生扫码事件名,对齐宿主端约定。
|
|
18
18
|
*/
|
|
19
19
|
export var SCAN_RESULT_EVENT = 'nativeScanResult';
|
|
20
|
+
/** 无扫码焦点栈时,供页面级全局扫码监听避让 Find 的回退计数。 */
|
|
21
|
+
export var FIND_FALLBACK_SCANNER_COUNT_KEY = '__pisellFindFallbackScannerCount';
|
|
20
22
|
var pisellFindLocaleTexts = {
|
|
21
23
|
en: enUS,
|
|
22
24
|
'zh-CN': zhCN,
|
|
@@ -196,6 +198,10 @@ export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
196
198
|
}
|
|
197
199
|
try {
|
|
198
200
|
pubsub.subscribe(SCAN_RESULT_EVENT, onScan);
|
|
201
|
+
if (typeof window !== 'undefined') {
|
|
202
|
+
var current = Number(window[FIND_FALLBACK_SCANNER_COUNT_KEY] || 0);
|
|
203
|
+
window[FIND_FALLBACK_SCANNER_COUNT_KEY] = current + 1;
|
|
204
|
+
}
|
|
199
205
|
} catch (e) {
|
|
200
206
|
console.warn('[PisellFind] subscribe scanner failed:', e);
|
|
201
207
|
return undefined;
|
|
@@ -206,6 +212,11 @@ export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
206
212
|
(_pubsub$unsubscribe = pubsub.unsubscribe) === null || _pubsub$unsubscribe === void 0 || _pubsub$unsubscribe.call(pubsub, SCAN_RESULT_EVENT, onScan);
|
|
207
213
|
} catch (e) {
|
|
208
214
|
console.warn('[PisellFind] unsubscribe scanner failed:', e);
|
|
215
|
+
} finally {
|
|
216
|
+
if (typeof window !== 'undefined') {
|
|
217
|
+
var _current = Number(window[FIND_FALLBACK_SCANNER_COUNT_KEY] || 0);
|
|
218
|
+
window[FIND_FALLBACK_SCANNER_COUNT_KEY] = Math.max(0, _current - 1);
|
|
219
|
+
}
|
|
209
220
|
}
|
|
210
221
|
};
|
|
211
222
|
}, [enableScanner]);
|
|
@@ -32,7 +32,9 @@ import "./PisellLookup.less";
|
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
34
|
var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
35
|
-
var _props$
|
|
35
|
+
var _props$showTrigger = props.showTrigger,
|
|
36
|
+
showTrigger = _props$showTrigger === void 0 ? true : _props$showTrigger,
|
|
37
|
+
_props$triggerType = props.triggerType,
|
|
36
38
|
triggerType = _props$triggerType === void 0 ? 'input' : _props$triggerType,
|
|
37
39
|
trigger = props.trigger,
|
|
38
40
|
triggerText = props.triggerText,
|
|
@@ -65,6 +67,8 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
65
67
|
searchMode = _props$searchMode === void 0 ? 'realtime' : _props$searchMode,
|
|
66
68
|
_props$debounceTime = props.debounceTime,
|
|
67
69
|
debounceTime = _props$debounceTime === void 0 ? 300 : _props$debounceTime,
|
|
70
|
+
_props$allowRepeatSea = props.allowRepeatSearch,
|
|
71
|
+
allowRepeatSearch = _props$allowRepeatSea === void 0 ? false : _props$allowRepeatSea,
|
|
68
72
|
_props$showScan = props.showScan,
|
|
69
73
|
showScan = _props$showScan === void 0 ? true : _props$showScan,
|
|
70
74
|
onScan = props.onScan,
|
|
@@ -92,9 +96,15 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
92
96
|
emptyRender = props.emptyRender,
|
|
93
97
|
modalWidth = props.modalWidth,
|
|
94
98
|
modalStyle = props.modalStyle,
|
|
99
|
+
_props$modalCentered = props.modalCentered,
|
|
100
|
+
modalCentered = _props$modalCentered === void 0 ? false : _props$modalCentered,
|
|
101
|
+
modalTransitionName = props.modalTransitionName,
|
|
95
102
|
getContainer = props.getContainer,
|
|
96
103
|
drawerWidth = props.drawerWidth,
|
|
104
|
+
drawerHeight = props.drawerHeight,
|
|
97
105
|
drawerPlacement = props.drawerPlacement,
|
|
106
|
+
drawerTitle = props.drawerTitle,
|
|
107
|
+
drawerClosable = props.drawerClosable,
|
|
98
108
|
popupWidth = props.popupWidth,
|
|
99
109
|
containerStyle = props.containerStyle,
|
|
100
110
|
containerClassName = props.containerClassName,
|
|
@@ -111,6 +121,7 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
111
121
|
_props$autoFocusOnOpe = props.autoFocusOnOpen,
|
|
112
122
|
autoFocusOnOpen = _props$autoFocusOnOpe === void 0 ? true : _props$autoFocusOnOpe,
|
|
113
123
|
inputRender = props.inputRender,
|
|
124
|
+
headerRender = props.headerRender,
|
|
114
125
|
className = props.className,
|
|
115
126
|
style = props.style,
|
|
116
127
|
zIndex = props.zIndex;
|
|
@@ -355,7 +366,7 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
355
366
|
*/
|
|
356
367
|
var handleConfirmSearch = useCallback(function (searchKeyword) {
|
|
357
368
|
// 避免重复触发相同关键词的搜索
|
|
358
|
-
if (lastSearchKeywordRef.current === searchKeyword) {
|
|
369
|
+
if (!allowRepeatSearch && lastSearchKeywordRef.current === searchKeyword) {
|
|
359
370
|
return;
|
|
360
371
|
}
|
|
361
372
|
lastSearchKeywordRef.current = searchKeyword;
|
|
@@ -367,7 +378,7 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
367
378
|
|
|
368
379
|
// 触发搜索回调
|
|
369
380
|
onSearch === null || onSearch === void 0 || onSearch(searchKeyword);
|
|
370
|
-
}, [showHistory, addHistory, onSearch]);
|
|
381
|
+
}, [allowRepeatSearch, showHistory, addHistory, onSearch]);
|
|
371
382
|
|
|
372
383
|
/**
|
|
373
384
|
* 防抖搜索(实时搜索模式)
|
|
@@ -613,7 +624,7 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
613
624
|
return /*#__PURE__*/React.createElement("div", {
|
|
614
625
|
className: "pisell-lookup pisell-lookup-".concat(displayType, " ").concat(className || ''),
|
|
615
626
|
style: style
|
|
616
|
-
}, renderTrigger(), /*#__PURE__*/React.createElement(LookupResultHost, {
|
|
627
|
+
}, showTrigger ? renderTrigger() : null, /*#__PURE__*/React.createElement(LookupResultHost, {
|
|
617
628
|
displayType: displayType,
|
|
618
629
|
visible: visible,
|
|
619
630
|
onClose: close,
|
|
@@ -630,22 +641,27 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
630
641
|
return /*#__PURE__*/React.createElement("div", {
|
|
631
642
|
className: "pisell-lookup ".concat(className || ''),
|
|
632
643
|
style: style
|
|
633
|
-
}, renderTrigger(), /*#__PURE__*/React.createElement(LookupResultHost, {
|
|
644
|
+
}, showTrigger ? renderTrigger() : null, /*#__PURE__*/React.createElement(LookupResultHost, {
|
|
634
645
|
displayType: displayType,
|
|
635
646
|
visible: visible,
|
|
636
647
|
onClose: close,
|
|
637
648
|
modalWidth: modalWidth,
|
|
638
649
|
modalStyle: modalStyle,
|
|
650
|
+
modalCentered: modalCentered,
|
|
651
|
+
modalTransitionName: modalTransitionName,
|
|
639
652
|
getContainer: getContainer,
|
|
640
653
|
drawerWidth: drawerWidth,
|
|
654
|
+
drawerHeight: drawerHeight,
|
|
641
655
|
drawerPlacement: drawerPlacement,
|
|
656
|
+
drawerTitle: drawerTitle,
|
|
657
|
+
drawerClosable: drawerClosable,
|
|
642
658
|
containerStyle: containerStyle,
|
|
643
659
|
containerClassName: containerClassName,
|
|
644
660
|
mask: mask,
|
|
645
661
|
maskClosable: maskClosable,
|
|
646
662
|
zIndex: zIndex,
|
|
647
663
|
onAfterOpen: handleAfterOpen
|
|
648
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
664
|
+
}, displayType === 'modal' || displayType === 'drawer' ? typeof headerRender === 'function' ? headerRender() : headerRender : null, /*#__PURE__*/React.createElement("div", {
|
|
649
665
|
className: "pisell-lookup-search-area-with-close"
|
|
650
666
|
}, /*#__PURE__*/React.createElement(LookupTrigger, {
|
|
651
667
|
ref: modalInputRef,
|
|
@@ -5,9 +5,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import { CloseOutlined } from '@ant-design/icons';
|
|
8
|
+
import { Dropdown } from 'antd';
|
|
10
9
|
import { getText } from "../../../locales";
|
|
10
|
+
import PisellContainer from "../../pisellContainer";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* LookupResultHost 组件
|
|
@@ -21,11 +21,19 @@ export var LookupResultHost = function LookupResultHost(props) {
|
|
|
21
21
|
_props$modalWidth = props.modalWidth,
|
|
22
22
|
modalWidth = _props$modalWidth === void 0 ? 834 : _props$modalWidth,
|
|
23
23
|
modalStyle = props.modalStyle,
|
|
24
|
+
_props$modalCentered = props.modalCentered,
|
|
25
|
+
modalCentered = _props$modalCentered === void 0 ? false : _props$modalCentered,
|
|
26
|
+
modalTransitionName = props.modalTransitionName,
|
|
24
27
|
getContainer = props.getContainer,
|
|
25
28
|
_props$drawerWidth = props.drawerWidth,
|
|
26
29
|
drawerWidth = _props$drawerWidth === void 0 ? 378 : _props$drawerWidth,
|
|
30
|
+
drawerHeight = props.drawerHeight,
|
|
27
31
|
_props$drawerPlacemen = props.drawerPlacement,
|
|
28
32
|
drawerPlacement = _props$drawerPlacemen === void 0 ? 'right' : _props$drawerPlacemen,
|
|
33
|
+
_props$drawerTitle = props.drawerTitle,
|
|
34
|
+
drawerTitle = _props$drawerTitle === void 0 ? getText('pisell-lookup-confirm-button-text') : _props$drawerTitle,
|
|
35
|
+
_props$drawerClosable = props.drawerClosable,
|
|
36
|
+
drawerClosable = _props$drawerClosable === void 0 ? true : _props$drawerClosable,
|
|
29
37
|
popupWidth = props.popupWidth,
|
|
30
38
|
containerStyle = props.containerStyle,
|
|
31
39
|
containerClassName = props.containerClassName,
|
|
@@ -93,27 +101,33 @@ export var LookupResultHost = function LookupResultHost(props) {
|
|
|
93
101
|
// wrapClassName 用于控制 modal-wrap
|
|
94
102
|
// 只要使用了自定义挂载点,就应用特殊样式
|
|
95
103
|
var wrapClassName = hasCustomContainer ? 'pisell-lookup-modal-custom-container' : '';
|
|
96
|
-
return /*#__PURE__*/React.createElement(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
104
|
+
return /*#__PURE__*/React.createElement(PisellContainer, {
|
|
105
|
+
renderType: "modal",
|
|
106
|
+
props: {
|
|
107
|
+
open: visible,
|
|
108
|
+
onCancel: onClose,
|
|
109
|
+
footer: null,
|
|
110
|
+
header: false,
|
|
111
|
+
closable: false,
|
|
112
|
+
width: modalWidth,
|
|
113
|
+
centered: modalCentered,
|
|
114
|
+
transitionName: modalTransitionName,
|
|
115
|
+
style: _objectSpread({
|
|
116
|
+
top: 0
|
|
117
|
+
}, modalStyle),
|
|
118
|
+
getContainer: getContainer,
|
|
119
|
+
mask: mask,
|
|
120
|
+
maskClosable: effectiveMaskClosable,
|
|
121
|
+
zIndex: zIndex,
|
|
122
|
+
rootClassName: modalRootClassName,
|
|
123
|
+
className: modalClassName,
|
|
124
|
+
wrapClassName: wrapClassName,
|
|
125
|
+
destroyOnClose: true,
|
|
126
|
+
title: null,
|
|
127
|
+
afterOpenChange: function afterOpenChange(open) {
|
|
128
|
+
if (open && onAfterOpen) {
|
|
129
|
+
onAfterOpen();
|
|
130
|
+
}
|
|
117
131
|
}
|
|
118
132
|
}
|
|
119
133
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -131,21 +145,25 @@ export var LookupResultHost = function LookupResultHost(props) {
|
|
|
131
145
|
|
|
132
146
|
// 如果没有遮罩层,添加特殊类名以支持点击穿透
|
|
133
147
|
var drawerClassName = "pisell-lookup-drawer-container ".concat(!mask ? 'pisell-lookup-drawer-no-mask' : '', " ").concat(containerClassName || '');
|
|
134
|
-
return /*#__PURE__*/React.createElement(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
return /*#__PURE__*/React.createElement(PisellContainer, {
|
|
149
|
+
renderType: "drawer",
|
|
150
|
+
props: {
|
|
151
|
+
open: visible,
|
|
152
|
+
onClose: onClose,
|
|
153
|
+
width: drawerWidth,
|
|
154
|
+
height: drawerHeight,
|
|
155
|
+
placement: drawerPlacement,
|
|
156
|
+
mask: mask,
|
|
157
|
+
maskClosable: effectiveMaskClosable,
|
|
158
|
+
zIndex: zIndex,
|
|
159
|
+
className: drawerClassName,
|
|
160
|
+
closable: drawerClosable,
|
|
161
|
+
destroyOnClose: true,
|
|
162
|
+
title: drawerTitle,
|
|
163
|
+
afterOpenChange: function afterOpenChange(open) {
|
|
164
|
+
if (open && onAfterOpen) {
|
|
165
|
+
onAfterOpen();
|
|
166
|
+
}
|
|
149
167
|
}
|
|
150
168
|
}
|
|
151
169
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -268,6 +268,8 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
268
268
|
}), showConfirmButton && /*#__PURE__*/React.createElement(Button, {
|
|
269
269
|
type: "primary",
|
|
270
270
|
size: size,
|
|
271
|
+
loading: loading,
|
|
272
|
+
disabled: disabled,
|
|
271
273
|
onClick: handleConfirm,
|
|
272
274
|
className: "pisell-lookup-input-confirm"
|
|
273
275
|
}, confirmButtonText));
|
|
@@ -84,6 +84,11 @@ export interface LookupInputRenderContext {
|
|
|
84
84
|
* PisellLookup 组件 Props
|
|
85
85
|
*/
|
|
86
86
|
export interface PisellLookupProps {
|
|
87
|
+
/**
|
|
88
|
+
* 是否渲染外部触发器;受控打开浮层时可关闭。
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
showTrigger?: boolean;
|
|
87
92
|
/**
|
|
88
93
|
* 预设触发器类型(与 trigger 互斥)
|
|
89
94
|
* @default 'input'
|
|
@@ -189,6 +194,12 @@ export interface PisellLookupProps {
|
|
|
189
194
|
* @param keyword 搜索关键词
|
|
190
195
|
*/
|
|
191
196
|
onSearch?: (keyword: string) => void;
|
|
197
|
+
/**
|
|
198
|
+
* 是否允许重复确认同一个关键词。
|
|
199
|
+
* 适用于提交失败后需要原值重试的场景;默认保持去重行为。
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
allowRepeatSearch?: boolean;
|
|
192
203
|
/**
|
|
193
204
|
* 是否显示扫码按钮
|
|
194
205
|
* @default true
|
|
@@ -299,6 +310,13 @@ export interface PisellLookupProps {
|
|
|
299
310
|
* Modal 自定义样式
|
|
300
311
|
*/
|
|
301
312
|
modalStyle?: React.CSSProperties;
|
|
313
|
+
/**
|
|
314
|
+
* Modal 是否使用容器原生的垂直居中布局。
|
|
315
|
+
* @default false
|
|
316
|
+
*/
|
|
317
|
+
modalCentered?: boolean;
|
|
318
|
+
/** Modal 进出场动画名称。 */
|
|
319
|
+
modalTransitionName?: string;
|
|
302
320
|
/**
|
|
303
321
|
* Modal 挂载节点
|
|
304
322
|
* - HTMLElement: 挂载到指定的 DOM 节点
|
|
@@ -313,11 +331,17 @@ export interface PisellLookupProps {
|
|
|
313
331
|
* @default 378
|
|
314
332
|
*/
|
|
315
333
|
drawerWidth?: number | string;
|
|
334
|
+
/** Drawer 高度;placement 为 top / bottom 时生效。 */
|
|
335
|
+
drawerHeight?: number | string;
|
|
316
336
|
/**
|
|
317
337
|
* Drawer 位置
|
|
318
338
|
* @default 'right'
|
|
319
339
|
*/
|
|
320
340
|
drawerPlacement?: DrawerPlacement;
|
|
341
|
+
/** Drawer 标题;传 null 可隐藏默认标题。 */
|
|
342
|
+
drawerTitle?: React.ReactNode | null;
|
|
343
|
+
/** 是否展示 Drawer 自带关闭按钮。 */
|
|
344
|
+
drawerClosable?: boolean;
|
|
321
345
|
/**
|
|
322
346
|
* Popup 宽度
|
|
323
347
|
*/
|
|
@@ -394,6 +418,8 @@ export interface PisellLookupProps {
|
|
|
394
418
|
* ```
|
|
395
419
|
*/
|
|
396
420
|
inputRender?: (ctx: LookupInputRenderContext) => React.ReactNode;
|
|
421
|
+
/** Modal / Drawer 内置搜索栏上方的自定义内容。 */
|
|
422
|
+
headerRender?: React.ReactNode | (() => React.ReactNode);
|
|
397
423
|
/**
|
|
398
424
|
* 自定义类名
|
|
399
425
|
*/
|
|
@@ -631,6 +657,10 @@ export interface LookupResultHostProps {
|
|
|
631
657
|
* Modal 宽度
|
|
632
658
|
*/
|
|
633
659
|
modalWidth?: number | string;
|
|
660
|
+
/** Modal 是否垂直居中 */
|
|
661
|
+
modalCentered?: boolean;
|
|
662
|
+
/** Modal 进出场动画名称 */
|
|
663
|
+
modalTransitionName?: string;
|
|
634
664
|
/**
|
|
635
665
|
* Modal 样式
|
|
636
666
|
*/
|
|
@@ -643,10 +673,16 @@ export interface LookupResultHostProps {
|
|
|
643
673
|
* Drawer 宽度
|
|
644
674
|
*/
|
|
645
675
|
drawerWidth?: number | string;
|
|
676
|
+
/** Drawer 高度 */
|
|
677
|
+
drawerHeight?: number | string;
|
|
646
678
|
/**
|
|
647
679
|
* Drawer 位置
|
|
648
680
|
*/
|
|
649
681
|
drawerPlacement?: DrawerPlacement;
|
|
682
|
+
/** Drawer 标题 */
|
|
683
|
+
drawerTitle?: React.ReactNode | null;
|
|
684
|
+
/** 是否展示 Drawer 自带关闭按钮 */
|
|
685
|
+
drawerClosable?: boolean;
|
|
650
686
|
/**
|
|
651
687
|
* Popup 宽度
|
|
652
688
|
*/
|
package/es/index.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ export { default as PisellUpload } from './components/pisellUpload';
|
|
|
128
128
|
export { default as Translation } from './components/translation';
|
|
129
129
|
export { PisellLookup } from './components/pisellLookup';
|
|
130
130
|
export type { PisellLookupProps, PisellLookupRef, LookupInputRenderContext, } from './components/pisellLookup';
|
|
131
|
-
export { PisellFind } from './components/pisellFind';
|
|
131
|
+
export { FIND_FALLBACK_SCANNER_COUNT_KEY, PisellFind, } from './components/pisellFind';
|
|
132
132
|
export type { PisellFindProps, PisellFindRef } from './components/pisellFind';
|
|
133
133
|
export { default as DataSourceForm } from './components/dataSourceComponents/dataSourceForm';
|
|
134
134
|
export { default as FormGroup } from './components/dataSourceComponents/dataSourceForm/group';
|
package/es/index.js
CHANGED
|
@@ -130,7 +130,7 @@ export { default as CustomSelect } from "./components/customSelect";
|
|
|
130
130
|
export { default as PisellUpload } from "./components/pisellUpload";
|
|
131
131
|
export { default as Translation } from "./components/translation";
|
|
132
132
|
export { PisellLookup } from "./components/pisellLookup";
|
|
133
|
-
export { PisellFind } from "./components/pisellFind";
|
|
133
|
+
export { FIND_FALLBACK_SCANNER_COUNT_KEY, PisellFind } from "./components/pisellFind";
|
|
134
134
|
// ==================== 数据源组件 (DataSource) ====================
|
|
135
135
|
// 数据源绑定相关组件,用于低代码场景
|
|
136
136
|
export { default as DataSourceForm } from "./components/dataSourceComponents/dataSourceForm";
|
|
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
54
54
|
width: number;
|
|
55
55
|
align: "center" | "left" | "right";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
|
-
type: "
|
|
57
|
+
type: "link" | "button";
|
|
58
58
|
items: OperationItem[];
|
|
59
59
|
} | undefined;
|
|
60
60
|
operationContent?: {
|
|
@@ -19,7 +19,7 @@ declare const formFieldMap: {
|
|
|
19
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
20
20
|
onChange: (value: string) => void;
|
|
21
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
22
|
-
rootDomain: "custom" | "
|
|
22
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
23
23
|
customDomain?: string | undefined;
|
|
24
24
|
value?: string | undefined;
|
|
25
25
|
tenantId: string;
|
|
@@ -80,13 +80,11 @@ declare const formFieldMap: {
|
|
|
80
80
|
extraParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => import("react").JSX.Element;
|
|
82
82
|
};
|
|
83
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
83
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
84
84
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
85
85
|
} & {
|
|
86
86
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
87
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> |
|
|
88
|
-
onChange: (value: string) => void;
|
|
89
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
87
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
90
88
|
JSON: import("react").FC<any>;
|
|
91
89
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
92
90
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -99,14 +97,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
99
97
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
100
98
|
onChange: (value: string) => void;
|
|
101
99
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
102
|
-
rootDomain: "custom" | "
|
|
100
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
103
101
|
customDomain?: string | undefined;
|
|
104
102
|
value?: string | undefined;
|
|
105
103
|
tenantId: string;
|
|
106
104
|
name?: string | undefined;
|
|
107
105
|
fieldKey?: string | undefined;
|
|
108
106
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
109
|
-
}) |
|
|
107
|
+
}) | (import("react").FC<{}> & {
|
|
110
108
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
111
109
|
} & {
|
|
112
110
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -119,7 +117,9 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
119
117
|
} & {
|
|
120
118
|
dataSource?: any;
|
|
121
119
|
extraParams?: Record<string, any> | undefined;
|
|
122
|
-
}) => import("react").JSX.Element) | import("react").FC<
|
|
120
|
+
}) => import("react").JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
121
|
+
onChange: (value: string) => void;
|
|
122
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
123
123
|
options?: any;
|
|
124
124
|
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
125
125
|
labelField: string;
|
|
@@ -4,6 +4,8 @@ import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
|
|
|
4
4
|
* 原生扫码事件名,对齐宿主端约定。
|
|
5
5
|
*/
|
|
6
6
|
export declare const SCAN_RESULT_EVENT = "nativeScanResult";
|
|
7
|
+
/** 无扫码焦点栈时,供页面级全局扫码监听避让 Find 的回退计数。 */
|
|
8
|
+
export declare const FIND_FALLBACK_SCANNER_COUNT_KEY = "__pisellFindFallbackScannerCount";
|
|
7
9
|
/**
|
|
8
10
|
* 扫码枪回传数据(对齐宿主 ScanResultPayload)
|
|
9
11
|
* - code: 条码标识(如条码格式 / 业务字段)
|
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/pisellFind/index.tsx
|
|
30
30
|
var pisellFind_exports = {};
|
|
31
31
|
__export(pisellFind_exports, {
|
|
32
|
+
FIND_FALLBACK_SCANNER_COUNT_KEY: () => FIND_FALLBACK_SCANNER_COUNT_KEY,
|
|
32
33
|
PisellFind: () => PisellFind,
|
|
33
34
|
SCAN_RESULT_EVENT: () => SCAN_RESULT_EVENT
|
|
34
35
|
});
|
|
@@ -44,6 +45,7 @@ var import_zh_TW = __toESM(require("../../locales/zh-TW"));
|
|
|
44
45
|
var import_ja = __toESM(require("../../locales/ja"));
|
|
45
46
|
var import_pt = __toESM(require("../../locales/pt"));
|
|
46
47
|
var SCAN_RESULT_EVENT = "nativeScanResult";
|
|
48
|
+
var FIND_FALLBACK_SCANNER_COUNT_KEY = "__pisellFindFallbackScannerCount";
|
|
47
49
|
var pisellFindLocaleTexts = {
|
|
48
50
|
en: import_en_US.default,
|
|
49
51
|
"zh-CN": import_zh_CN.default,
|
|
@@ -158,6 +160,12 @@ var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
|
158
160
|
}
|
|
159
161
|
try {
|
|
160
162
|
pubsub.subscribe(SCAN_RESULT_EVENT, onScan);
|
|
163
|
+
if (typeof window !== "undefined") {
|
|
164
|
+
const current = Number(
|
|
165
|
+
window[FIND_FALLBACK_SCANNER_COUNT_KEY] || 0
|
|
166
|
+
);
|
|
167
|
+
window[FIND_FALLBACK_SCANNER_COUNT_KEY] = current + 1;
|
|
168
|
+
}
|
|
161
169
|
} catch (e) {
|
|
162
170
|
console.warn("[PisellFind] subscribe scanner failed:", e);
|
|
163
171
|
return void 0;
|
|
@@ -168,6 +176,16 @@ var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
|
168
176
|
(_a2 = pubsub.unsubscribe) == null ? void 0 : _a2.call(pubsub, SCAN_RESULT_EVENT, onScan);
|
|
169
177
|
} catch (e) {
|
|
170
178
|
console.warn("[PisellFind] unsubscribe scanner failed:", e);
|
|
179
|
+
} finally {
|
|
180
|
+
if (typeof window !== "undefined") {
|
|
181
|
+
const current = Number(
|
|
182
|
+
window[FIND_FALLBACK_SCANNER_COUNT_KEY] || 0
|
|
183
|
+
);
|
|
184
|
+
window[FIND_FALLBACK_SCANNER_COUNT_KEY] = Math.max(
|
|
185
|
+
0,
|
|
186
|
+
current - 1
|
|
187
|
+
);
|
|
188
|
+
}
|
|
171
189
|
}
|
|
172
190
|
};
|
|
173
191
|
}, [enableScanner]);
|
|
@@ -190,6 +208,7 @@ var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
|
190
208
|
PisellFind.displayName = "PisellFind";
|
|
191
209
|
// Annotate the CommonJS export names for ESM import in node:
|
|
192
210
|
0 && (module.exports = {
|
|
211
|
+
FIND_FALLBACK_SCANNER_COUNT_KEY,
|
|
193
212
|
PisellFind,
|
|
194
213
|
SCAN_RESULT_EVENT
|
|
195
214
|
});
|