@pisell/materials 3.3.87 → 3.3.88
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/index.js +1 -1
- package/build/lowcode/meta.js +4 -4
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +25 -25
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +15 -15
- package/es/components/PisellLayouts/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/index.js +274 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/index.less +19 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +544 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/schema-simple-example.json +174 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/types.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.js +61 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +176 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +12 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.js +11 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Tabs/ReadPretty.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/Tabs/ReadPretty.js +16 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.js +93 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +64 -0
- package/es/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/Tabs/WithMode.js +9 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +12 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.js +18 -0
- package/es/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
- package/es/components/dataSourceComponents/fields/Tabs/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +44 -7
- package/es/components/dataSourceComponents/fields/index.js +5 -1
- package/es/components/dataSourceComponents/fields/utils.js +3 -0
- package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/es/components/pisellLookup/PisellLookup.js +8 -1
- package/es/components/productCard/components/Packages/utils.d.ts +2 -2
- package/es/index.d.ts +4 -0
- package/es/index.js +3 -0
- package/lib/components/PisellLayouts/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.d.ts +13 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.js +229 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/index.less +19 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/schema-full-example.json +544 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/schema-simple-example.json +174 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/types.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.js +64 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/WithMode.js +157 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +12 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.js +40 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Tabs/ReadPretty.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/Tabs/ReadPretty.js +45 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.js +95 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +64 -0
- package/lib/components/dataSourceComponents/fields/Tabs/WithMode.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Tabs/WithMode.js +39 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +12 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.js +40 -0
- package/lib/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
- package/lib/components/dataSourceComponents/fields/Tabs/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +44 -7
- package/lib/components/dataSourceComponents/fields/index.js +5 -1
- package/lib/components/dataSourceComponents/fields/utils.js +3 -0
- package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/lib/components/pisellLookup/PisellLookup.js +5 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
- package/lib/index.d.ts +4 -0
- package/lib/index.js +9 -0
- package/lowcode/auto-resize-text/meta.ts +9 -9
- package/lowcode/data-source-form/constants.ts +3 -0
- package/lowcode/data-source-form/utils.ts +31 -5
- package/lowcode/data-source-sub-form/meta.ts +259 -0
- package/lowcode/data-source-sub-form/snippets.ts +21 -0
- package/lowcode/form-item-record-list-wrapper/meta.ts +180 -0
- package/lowcode/form-item-record-list-wrapper/snippets.ts +18 -0
- package/lowcode/form-item-tabs/meta.ts +172 -0
- package/package.json +3 -3
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
- package/es/components/PisellCards/components/TextCard/index.d.ts +0 -5
- package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/es/components/PisellCards/index.d.ts +0 -15
- package/es/components/config-provider/index.d.ts +0 -10
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/es/components/drag-sort-tree/index.d.ts +0 -5
- package/es/components/filter/components/Dropdown/types.d.ts +0 -13
- package/es/components/filter/components/FilterButton/types.d.ts +0 -24
- package/es/components/filter/types.d.ts +0 -48
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellCurrency/PisellCurrency.d.ts +0 -39
- package/es/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
- package/es/components/pisellEmail/PisellEmail.d.ts +0 -37
- package/es/components/pisellFilter/type.d.ts +0 -5
- package/es/components/pisellGridPro/index.d.ts +0 -4
- package/es/components/pisellLongText/PisellLongText.d.ts +0 -39
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
- package/es/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
- package/es/components/pisellNumber/PisellNumber.d.ts +0 -42
- package/es/components/pisellPhone/PisellPhone.d.ts +0 -36
- package/es/components/pisellPhone/components/EditView.d.ts +0 -19
- package/es/components/pisellPhone/constants/countryCodes.d.ts +0 -20
- package/es/components/pisellPhone/types.d.ts +0 -209
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
- package/es/components/pisellQuickFilter/type.d.ts +0 -12
- package/es/components/pisellRating/PisellRating.d.ts +0 -31
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
- package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
- package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/es/components/pisellUrl/PisellUrl.d.ts +0 -37
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -19
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/types.d.ts +0 -268
- package/es/components/translation/index.d.ts +0 -17
- package/es/components/translation/utils.d.ts +0 -9
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
- package/lib/components/PisellCards/components/TextCard/index.d.ts +0 -5
- package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/lib/components/PisellCards/index.d.ts +0 -15
- package/lib/components/config-provider/index.d.ts +0 -10
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/lib/components/drag-sort-tree/index.d.ts +0 -5
- package/lib/components/filter/components/Dropdown/types.d.ts +0 -13
- package/lib/components/filter/components/FilterButton/types.d.ts +0 -24
- package/lib/components/filter/types.d.ts +0 -48
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellCurrency/PisellCurrency.d.ts +0 -39
- package/lib/components/pisellDateTimeDisplay/utils/relativeDay.d.ts +0 -24
- package/lib/components/pisellEmail/PisellEmail.d.ts +0 -37
- package/lib/components/pisellFilter/type.d.ts +0 -5
- package/lib/components/pisellGridPro/index.d.ts +0 -4
- package/lib/components/pisellLongText/PisellLongText.d.ts +0 -39
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
- package/lib/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
- package/lib/components/pisellNumber/PisellNumber.d.ts +0 -42
- package/lib/components/pisellPhone/PisellPhone.d.ts +0 -36
- package/lib/components/pisellPhone/components/EditView.d.ts +0 -19
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +0 -20
- package/lib/components/pisellPhone/types.d.ts +0 -209
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
- package/lib/components/pisellQuickFilter/type.d.ts +0 -12
- package/lib/components/pisellRating/PisellRating.d.ts +0 -31
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.d.ts +0 -16
- package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
- package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/lib/components/pisellUrl/PisellUrl.d.ts +0 -37
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -19
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/translation/index.d.ts +0 -17
- package/lib/components/translation/utils.d.ts +0 -9
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/dataSourceComponents/fields/Tabs/Tabs.tsx
|
|
30
|
+
var Tabs_exports = {};
|
|
31
|
+
__export(Tabs_exports, {
|
|
32
|
+
default: () => Tabs_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Tabs_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_Tabs = require("./Tabs.less");
|
|
38
|
+
var Tabs = ({
|
|
39
|
+
value,
|
|
40
|
+
defaultValue,
|
|
41
|
+
options = [],
|
|
42
|
+
disabled = false,
|
|
43
|
+
onChange,
|
|
44
|
+
className,
|
|
45
|
+
style
|
|
46
|
+
}) => {
|
|
47
|
+
const [internalValue, setInternalValue] = import_react.default.useState(defaultValue);
|
|
48
|
+
const selectedValue = value !== void 0 ? value : internalValue;
|
|
49
|
+
const handleSelect = (option) => {
|
|
50
|
+
if (disabled || option.disabled) return;
|
|
51
|
+
const newValue = option.value;
|
|
52
|
+
if (value === void 0) {
|
|
53
|
+
setInternalValue(newValue);
|
|
54
|
+
}
|
|
55
|
+
onChange == null ? void 0 : onChange(newValue);
|
|
56
|
+
};
|
|
57
|
+
const tabItems = (0, import_react.useMemo)(() => {
|
|
58
|
+
return options.map((option) => {
|
|
59
|
+
const isActive = selectedValue != null && selectedValue !== void 0 && String(selectedValue) === String(option.value);
|
|
60
|
+
const isDisabled = disabled || option.disabled;
|
|
61
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
key: option.value,
|
|
65
|
+
className: (0, import_classnames.default)("pisell-form-tabs-item", {
|
|
66
|
+
"pisell-form-tabs-item--active": isActive,
|
|
67
|
+
"pisell-form-tabs-item--disabled": isDisabled
|
|
68
|
+
}),
|
|
69
|
+
onClick: () => handleSelect(option),
|
|
70
|
+
role: "tab",
|
|
71
|
+
"aria-selected": isActive,
|
|
72
|
+
"aria-disabled": isDisabled,
|
|
73
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
74
|
+
onKeyDown: (e) => {
|
|
75
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
handleSelect(option);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-form-tabs-item-label" }, option.label)
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
}, [options, selectedValue, disabled]);
|
|
85
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: (0, import_classnames.default)("pisell-form-tabs", className),
|
|
89
|
+
style,
|
|
90
|
+
role: "tablist"
|
|
91
|
+
},
|
|
92
|
+
tabItems
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
var Tabs_default = Tabs;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.pisell-form-tabs {
|
|
2
|
+
height: 40px;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
background-color: #f5f5f5;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
padding: 2px;
|
|
9
|
+
gap: 2px;
|
|
10
|
+
flex-wrap: nowrap;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
color: rgba(0, 0, 0, .65);
|
|
13
|
+
background-color: rgba(0, 0, 0, .04);
|
|
14
|
+
overflow-x: auto;
|
|
15
|
+
|
|
16
|
+
/* 隐藏滚动条:兼容 WebKit(Chrome/Safari/Edge)、Firefox、IE/Edge 旧版 */
|
|
17
|
+
-ms-overflow-style: none;
|
|
18
|
+
scrollbar-width: none;
|
|
19
|
+
|
|
20
|
+
&::-webkit-scrollbar {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-item {
|
|
25
|
+
min-height: 36px;
|
|
26
|
+
min-width: 90px;
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
padding: 0 12px;
|
|
31
|
+
border-radius: 6px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
transition: background-color 0.2s ease, box-shadow 0.2s ease,
|
|
34
|
+
color 0.2s ease;
|
|
35
|
+
user-select: none;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
flex: 0 0 auto;
|
|
38
|
+
outline: none;
|
|
39
|
+
|
|
40
|
+
&-label {
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
color: rgba(0, 0, 0, 0.65);
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:hover:not(&--active):not(&--disabled) {
|
|
47
|
+
background-color: rgba(0, 0, 0, 0.06);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--active {
|
|
51
|
+
background-color: #ffffff;
|
|
52
|
+
|
|
53
|
+
.pisell-form-tabs-item-label {
|
|
54
|
+
color: #262626;
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&--disabled {
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
opacity: 0.4;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/dataSourceComponents/fields/Tabs/WithMode.tsx
|
|
30
|
+
var WithMode_exports = {};
|
|
31
|
+
__export(WithMode_exports, {
|
|
32
|
+
default: () => WithMode_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WithMode_exports);
|
|
35
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
36
|
+
var import_Tabs = __toESM(require("./Tabs"));
|
|
37
|
+
var import_ReadPretty = __toESM(require("./ReadPretty"));
|
|
38
|
+
var TabsWithMode = (0, import_utils.withMode)(import_Tabs.default, import_ReadPretty.default);
|
|
39
|
+
var WithMode_default = TabsWithMode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** 包装 DataSource 层(提供数据源上下文) */
|
|
2
|
+
declare const FormItemTabs: (props: import("./type").TabsProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
|
+
options?: any;
|
|
4
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
5
|
+
labelField: string;
|
|
6
|
+
valueField: string;
|
|
7
|
+
extraParams?: Record<string, any> | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
dataSource?: any;
|
|
10
|
+
extraParams?: Record<string, any> | undefined;
|
|
11
|
+
}) => import("react").JSX.Element;
|
|
12
|
+
export default FormItemTabs;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/dataSourceComponents/fields/Tabs/index.tsx
|
|
30
|
+
var Tabs_exports = {};
|
|
31
|
+
__export(Tabs_exports, {
|
|
32
|
+
default: () => Tabs_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Tabs_exports);
|
|
35
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
36
|
+
var import_WithMode = __toESM(require("./WithMode"));
|
|
37
|
+
var TabsWithFormItem = (0, import_utils.withFormItem)(import_WithMode.default);
|
|
38
|
+
var TabsWithOptions = (0, import_utils.withOptions)(TabsWithFormItem);
|
|
39
|
+
var FormItemTabs = (0, import_utils.withDataSource)(TabsWithOptions);
|
|
40
|
+
var Tabs_default = FormItemTabs;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModeType } from '../../dataSourceForm/type';
|
|
3
|
+
/**
|
|
4
|
+
* Tabs 选项配置
|
|
5
|
+
*/
|
|
6
|
+
export interface TabOption {
|
|
7
|
+
/** 选项显示文本 */
|
|
8
|
+
label: React.ReactNode;
|
|
9
|
+
/** 选项对应的值 */
|
|
10
|
+
value: string | number;
|
|
11
|
+
/** 是否禁用该选项 */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Tabs 基础 Props(编辑态组件使用,不含 renderMode)
|
|
16
|
+
*/
|
|
17
|
+
export interface TabsProps {
|
|
18
|
+
/** 当前选中的值(受控) */
|
|
19
|
+
value?: string | number;
|
|
20
|
+
/** 默认选中的值(非受控) */
|
|
21
|
+
defaultValue?: string | number;
|
|
22
|
+
/** 选项列表 */
|
|
23
|
+
options?: TabOption[];
|
|
24
|
+
/** 是否禁用整个组件 */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** 选中值变化时的回调 */
|
|
27
|
+
onChange?: (value: string | number) => void;
|
|
28
|
+
/** 自定义类名 */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** 自定义样式 */
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Tabs ReadPretty Props(只读态组件使用,包含必填 renderMode)
|
|
35
|
+
*/
|
|
36
|
+
export interface TabsReadPrettyProps extends TabsProps {
|
|
37
|
+
renderMode: ModeType;
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/dataSourceComponents/fields/Tabs/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const formFieldMap: {
|
|
3
2
|
FormItemCheckbox: import("react").FC<{}> & {
|
|
4
3
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -20,7 +19,7 @@ declare const formFieldMap: {
|
|
|
20
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
20
|
onChange: (value: string) => void;
|
|
22
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "
|
|
22
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
24
23
|
customDomain?: string | undefined;
|
|
25
24
|
value?: string | undefined;
|
|
26
25
|
tenantId: string;
|
|
@@ -35,7 +34,7 @@ declare const formFieldMap: {
|
|
|
35
34
|
};
|
|
36
35
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
36
|
options?: any;
|
|
38
|
-
optionSourceType?: "default" | "
|
|
37
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
39
38
|
labelField: string;
|
|
40
39
|
valueField: string;
|
|
41
40
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -60,8 +59,37 @@ declare const formFieldMap: {
|
|
|
60
59
|
FormItemUpload: import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
60
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
61
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
62
|
+
FormItemRecordListWrapper: (props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
63
|
+
options?: any;
|
|
64
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
65
|
+
labelField: string;
|
|
66
|
+
valueField: string;
|
|
67
|
+
extraParams?: Record<string, any> | undefined;
|
|
68
|
+
} & {
|
|
69
|
+
dataSource?: any;
|
|
70
|
+
extraParams?: Record<string, any> | undefined;
|
|
71
|
+
}) => import("react").JSX.Element;
|
|
72
|
+
FormItemTabs: (props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
73
|
+
options?: any;
|
|
74
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
75
|
+
labelField: string;
|
|
76
|
+
valueField: string;
|
|
77
|
+
extraParams?: Record<string, any> | undefined;
|
|
78
|
+
} & {
|
|
79
|
+
dataSource?: any;
|
|
80
|
+
extraParams?: Record<string, any> | undefined;
|
|
81
|
+
}) => import("react").JSX.Element;
|
|
63
82
|
};
|
|
64
|
-
declare const getFieldComponent: (fieldComponent: string) =>
|
|
83
|
+
declare const getFieldComponent: (fieldComponent: string) => ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
84
|
+
options?: any;
|
|
85
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
86
|
+
labelField: string;
|
|
87
|
+
valueField: string;
|
|
88
|
+
extraParams?: Record<string, any> | undefined;
|
|
89
|
+
} & {
|
|
90
|
+
dataSource?: any;
|
|
91
|
+
extraParams?: Record<string, any> | undefined;
|
|
92
|
+
}) => import("react").JSX.Element) | (import("react").FC<{}> & {
|
|
65
93
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
66
94
|
} & {
|
|
67
95
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -78,7 +106,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
78
106
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
79
107
|
onChange: (value: string) => void;
|
|
80
108
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
81
|
-
rootDomain: "
|
|
109
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
82
110
|
customDomain?: string | undefined;
|
|
83
111
|
value?: string | undefined;
|
|
84
112
|
tenantId: string;
|
|
@@ -91,7 +119,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
91
119
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
92
120
|
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
93
121
|
options?: any;
|
|
94
|
-
optionSourceType?: "default" | "
|
|
122
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
95
123
|
labelField: string;
|
|
96
124
|
valueField: string;
|
|
97
125
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -100,5 +128,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
100
128
|
extraParams?: Record<string, any> | undefined;
|
|
101
129
|
}) => 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 & {
|
|
102
130
|
onChange: (value: string) => void;
|
|
103
|
-
} & 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("./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
|
|
131
|
+
} & 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("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
132
|
+
options?: any;
|
|
133
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
134
|
+
labelField: string;
|
|
135
|
+
valueField: string;
|
|
136
|
+
extraParams?: Record<string, any> | undefined;
|
|
137
|
+
} & {
|
|
138
|
+
dataSource?: any;
|
|
139
|
+
extraParams?: Record<string, any> | undefined;
|
|
140
|
+
}) => import("react").JSX.Element);
|
|
104
141
|
export { getFieldComponent, formFieldMap };
|
|
@@ -45,6 +45,8 @@ var import_DateRangePicker = __toESM(require("./DateRangePicker"));
|
|
|
45
45
|
var import_Upload = __toESM(require("./Upload"));
|
|
46
46
|
var import_Translation = __toESM(require("./Translation"));
|
|
47
47
|
var import_IconSelect = __toESM(require("./IconSelect"));
|
|
48
|
+
var import_RecordListWrapper = __toESM(require("./RecordListWrapper"));
|
|
49
|
+
var import_Tabs = __toESM(require("./Tabs"));
|
|
48
50
|
var formFieldMap = {
|
|
49
51
|
FormItemCheckbox: import_Checkbox.default,
|
|
50
52
|
FormItemColorPicker: import_ColorPicker.default,
|
|
@@ -66,7 +68,9 @@ var formFieldMap = {
|
|
|
66
68
|
FormItemDateRangePicker: import_DateRangePicker.default,
|
|
67
69
|
FormItemUpload: import_Upload.default,
|
|
68
70
|
FormItemTranslation: import_Translation.default,
|
|
69
|
-
FormItemIconSelect: import_IconSelect.default
|
|
71
|
+
FormItemIconSelect: import_IconSelect.default,
|
|
72
|
+
FormItemRecordListWrapper: import_RecordListWrapper.default,
|
|
73
|
+
FormItemTabs: import_Tabs.default
|
|
70
74
|
};
|
|
71
75
|
var getFieldComponent = (fieldComponent) => {
|
|
72
76
|
return formFieldMap[fieldComponent];
|
|
@@ -271,11 +271,15 @@ var PisellLookupComponent = (0, import_react.forwardRef)((props, ref) => {
|
|
|
271
271
|
}, [setKeyword, onSearch, debounceTime]);
|
|
272
272
|
const handleScan = (0, import_react.useCallback)(
|
|
273
273
|
(code) => {
|
|
274
|
+
isManualSelectRef.current = true;
|
|
274
275
|
setKeyword(code);
|
|
275
276
|
handleConfirmSearch(code);
|
|
276
277
|
onScan == null ? void 0 : onScan(code);
|
|
278
|
+
setTimeout(() => {
|
|
279
|
+
isManualSelectRef.current = false;
|
|
280
|
+
}, debounceTime + 100);
|
|
277
281
|
},
|
|
278
|
-
[setKeyword, handleConfirmSearch, onScan]
|
|
282
|
+
[setKeyword, handleConfirmSearch, onScan, debounceTime]
|
|
279
283
|
);
|
|
280
284
|
const handleSelectAuxiliary = (0, import_react.useCallback)(
|
|
281
285
|
(selectedKeyword) => {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @Author: WangHan
|
|
7
7
|
* @Date: 2024-11-22 10:01
|
|
8
8
|
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "
|
|
9
|
+
export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
10
10
|
/**
|
|
11
11
|
* @title: 金额格式化
|
|
12
12
|
* @description:
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "-" | "";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
package/lib/index.d.ts
CHANGED
|
@@ -166,6 +166,10 @@ export { default as FormItemTranslation } from './components/dataSourceComponent
|
|
|
166
166
|
export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
|
|
167
167
|
export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
|
|
168
168
|
export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
|
|
169
|
+
export { default as DataSourceSubForm } from './components/dataSourceComponents/dataSourceSubForm';
|
|
170
|
+
export type { DataSourceSubFormProps } from './components/dataSourceComponents/dataSourceSubForm/types';
|
|
171
|
+
export { default as FormItemRecordListWrapper } from './components/dataSourceComponents/fields/RecordListWrapper';
|
|
172
|
+
export { default as FormItemTabs } from './components/dataSourceComponents/fields/Tabs';
|
|
169
173
|
export { default as PisellMenu } from './components/pisellMenu';
|
|
170
174
|
export type { PisellMenuProps } from './components/pisellMenu/types';
|
|
171
175
|
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
package/lib/index.js
CHANGED
|
@@ -63,6 +63,7 @@ __export(src_exports, {
|
|
|
63
63
|
DataSourceImage: () => import_dataSourceImage.default,
|
|
64
64
|
DataSourceMenu: () => import_dataSourceMenu.default,
|
|
65
65
|
DataSourceQRCode: () => import_dataSourceQRCode.default,
|
|
66
|
+
DataSourceSubForm: () => import_dataSourceSubForm.default,
|
|
66
67
|
DataSourceTable: () => import_dataSourceTable.default,
|
|
67
68
|
DataSourceTypography: () => import_dataSourceTypography.default,
|
|
68
69
|
DataSourceWrapper: () => import_dataSourceWrapper.default,
|
|
@@ -84,8 +85,10 @@ __export(src_exports, {
|
|
|
84
85
|
FormItemInput: () => import_Input.default,
|
|
85
86
|
FormItemInputNumber: () => import_InputNumber.default,
|
|
86
87
|
FormItemRadio: () => import_Radio.default,
|
|
88
|
+
FormItemRecordListWrapper: () => import_RecordListWrapper.default,
|
|
87
89
|
FormItemSelect: () => import_Select.default,
|
|
88
90
|
FormItemSwitch: () => import_Switch.default,
|
|
91
|
+
FormItemTabs: () => import_Tabs.default,
|
|
89
92
|
FormItemTimePicker: () => import_TimePicker.default,
|
|
90
93
|
FormItemTranslation: () => import_Translation.default,
|
|
91
94
|
FormItemUpload: () => import_Upload.default,
|
|
@@ -382,6 +385,9 @@ var import_Translation = __toESM(require("./components/dataSourceComponents/fiel
|
|
|
382
385
|
var import_Upload = __toESM(require("./components/dataSourceComponents/fields/Upload"));
|
|
383
386
|
var import_IconSelect = __toESM(require("./components/dataSourceComponents/fields/IconSelect"));
|
|
384
387
|
var import_BaseTranslation = __toESM(require("./components/dataSourceComponents/fields/Translation/BaseTranslation"));
|
|
388
|
+
var import_dataSourceSubForm = __toESM(require("./components/dataSourceComponents/dataSourceSubForm"));
|
|
389
|
+
var import_RecordListWrapper = __toESM(require("./components/dataSourceComponents/fields/RecordListWrapper"));
|
|
390
|
+
var import_Tabs = __toESM(require("./components/dataSourceComponents/fields/Tabs"));
|
|
385
391
|
var import_pisellMenu = __toESM(require("./components/pisellMenu"));
|
|
386
392
|
var import_pisellNavigationMenu = __toESM(require("./components/pisellNavigationMenu"));
|
|
387
393
|
var import_page_header = __toESM(require("./components/page-header"));
|
|
@@ -473,6 +479,7 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
473
479
|
DataSourceImage,
|
|
474
480
|
DataSourceMenu,
|
|
475
481
|
DataSourceQRCode,
|
|
482
|
+
DataSourceSubForm,
|
|
476
483
|
DataSourceTable,
|
|
477
484
|
DataSourceTypography,
|
|
478
485
|
DataSourceWrapper,
|
|
@@ -494,8 +501,10 @@ var import_usePisellConfig = __toESM(require("./components/pisell-config-provide
|
|
|
494
501
|
FormItemInput,
|
|
495
502
|
FormItemInputNumber,
|
|
496
503
|
FormItemRadio,
|
|
504
|
+
FormItemRecordListWrapper,
|
|
497
505
|
FormItemSelect,
|
|
498
506
|
FormItemSwitch,
|
|
507
|
+
FormItemTabs,
|
|
499
508
|
FormItemTimePicker,
|
|
500
509
|
FormItemTranslation,
|
|
501
510
|
FormItemUpload,
|
|
@@ -9,7 +9,7 @@ const AutoResizeTextMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "3.3.
|
|
12
|
+
"version": "3.3.87",
|
|
13
13
|
"exportName": "AutoResizeText",
|
|
14
14
|
"main": "src/index.tsx",
|
|
15
15
|
"destructuring": true,
|
|
@@ -277,6 +277,10 @@ const AutoResizeTextMeta: ComponentMetadata = {
|
|
|
277
277
|
"label": "progress",
|
|
278
278
|
"value": "progress"
|
|
279
279
|
},
|
|
280
|
+
{
|
|
281
|
+
"label": "label",
|
|
282
|
+
"value": "label"
|
|
283
|
+
},
|
|
280
284
|
{
|
|
281
285
|
"label": "title",
|
|
282
286
|
"value": "title"
|
|
@@ -549,10 +553,6 @@ const AutoResizeTextMeta: ComponentMetadata = {
|
|
|
549
553
|
"label": "kbd",
|
|
550
554
|
"value": "kbd"
|
|
551
555
|
},
|
|
552
|
-
{
|
|
553
|
-
"label": "label",
|
|
554
|
-
"value": "label"
|
|
555
|
-
},
|
|
556
556
|
{
|
|
557
557
|
"label": "legend",
|
|
558
558
|
"value": "legend"
|
|
@@ -751,6 +751,10 @@ const AutoResizeTextMeta: ComponentMetadata = {
|
|
|
751
751
|
"label": "progress",
|
|
752
752
|
"value": "progress"
|
|
753
753
|
},
|
|
754
|
+
{
|
|
755
|
+
"label": "label",
|
|
756
|
+
"value": "label"
|
|
757
|
+
},
|
|
754
758
|
{
|
|
755
759
|
"label": "title",
|
|
756
760
|
"value": "title"
|
|
@@ -1023,10 +1027,6 @@ const AutoResizeTextMeta: ComponentMetadata = {
|
|
|
1023
1027
|
"label": "kbd",
|
|
1024
1028
|
"value": "kbd"
|
|
1025
1029
|
},
|
|
1026
|
-
{
|
|
1027
|
-
"label": "label",
|
|
1028
|
-
"value": "label"
|
|
1029
|
-
},
|
|
1030
1030
|
{
|
|
1031
1031
|
"label": "legend",
|
|
1032
1032
|
"value": "legend"
|
|
@@ -17,6 +17,7 @@ import formItemRadioGroupMeta from '../form-item-radio.group/meta';
|
|
|
17
17
|
import formItemSelectMeta from '../form-item-select/meta';
|
|
18
18
|
import formItemTimePickerMeta from '../form-item-time-picker/meta';
|
|
19
19
|
import formItemUploadMeta from '../form-item-upload/meta';
|
|
20
|
+
import formItemRecordListWrapperMeta from '../form-item-record-list-wrapper/meta';
|
|
20
21
|
|
|
21
22
|
export const metaAll = [
|
|
22
23
|
formItemCheckboxMeta,
|
|
@@ -38,6 +39,7 @@ export const metaAll = [
|
|
|
38
39
|
formItemSelectMeta,
|
|
39
40
|
formItemTimePickerMeta,
|
|
40
41
|
formItemUploadMeta,
|
|
42
|
+
formItemRecordListWrapperMeta,
|
|
41
43
|
]
|
|
42
44
|
|
|
43
45
|
export const formItemMetaMap: Record<string, any> = metaAll.reduce((p, c) => {
|
|
@@ -75,6 +77,7 @@ export const nocobaseCpt2PisellCptMap: Record<string, any> = {
|
|
|
75
77
|
Upload: 'FormItemUpload',
|
|
76
78
|
Translation: "FormItemTranslation",
|
|
77
79
|
IconPicker: "FormItemIconSelect",
|
|
80
|
+
RecordListWrapper: 'FormItemRecordListWrapper',
|
|
78
81
|
};
|
|
79
82
|
|
|
80
83
|
|