@pisell/materials 6.0.4 → 6.0.5
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/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +11 -9
- package/es/components/select/index.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +8 -14
- package/lib/components/select/index.js +1 -1
- package/package.json +2 -2
|
@@ -109,15 +109,17 @@ var PhoneInput = function PhoneInput(_ref) {
|
|
|
109
109
|
},
|
|
110
110
|
onBlur: handleBlur,
|
|
111
111
|
popupMatchSelectWidth: false,
|
|
112
|
-
optionLabelProp: "
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
optionLabelProp: "inputValue",
|
|
113
|
+
optionFilterProp: "label",
|
|
114
|
+
showSearch: true,
|
|
115
|
+
options: countries.map(function (country) {
|
|
116
|
+
return {
|
|
117
|
+
value: country.code,
|
|
118
|
+
label: "".concat(translationOriginal(country.name), " (").concat(country.prefix, ")"),
|
|
119
|
+
inputValue: country.prefix
|
|
120
|
+
};
|
|
121
|
+
})
|
|
122
|
+
}), /*#__PURE__*/React.createElement(Input, _extends({}, props, {
|
|
121
123
|
status: status,
|
|
122
124
|
type: "tel",
|
|
123
125
|
value: phoneNumber,
|
|
@@ -41,7 +41,7 @@ var SelectBase = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
41
41
|
setSearchValue = _useState2[1];
|
|
42
42
|
var filteredOptions = useMemo(function () {
|
|
43
43
|
if (!searchValue) return options;
|
|
44
|
-
return options.filter(function (option) {
|
|
44
|
+
return (options || []).filter(function (option) {
|
|
45
45
|
var _option$optionFilterP;
|
|
46
46
|
var optionValue = ((_option$optionFilterP = option[optionFilterProp]) === null || _option$optionFilterP === void 0 ? void 0 : _option$optionFilterP.toString().toLowerCase()) || '';
|
|
47
47
|
return optionValue.includes(searchValue.toLowerCase());
|
|
@@ -111,21 +111,15 @@ var PhoneInput = ({ value: propsValue, onChange, isVerification, ...props }) =>
|
|
|
111
111
|
style: { width: "90px" },
|
|
112
112
|
onBlur: handleBlur,
|
|
113
113
|
popupMatchSelectWidth: false,
|
|
114
|
-
optionLabelProp: "
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
Option,
|
|
119
|
-
{
|
|
120
|
-
key: country.code,
|
|
114
|
+
optionLabelProp: "inputValue",
|
|
115
|
+
optionFilterProp: "label",
|
|
116
|
+
showSearch: true,
|
|
117
|
+
options: countries.map((country) => ({
|
|
121
118
|
value: country.code,
|
|
122
|
-
label: country.prefix
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
country.prefix,
|
|
127
|
-
")"
|
|
128
|
-
))
|
|
119
|
+
label: `${translationOriginal(country.name)} (${country.prefix})`,
|
|
120
|
+
inputValue: country.prefix
|
|
121
|
+
}))
|
|
122
|
+
}
|
|
129
123
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
130
124
|
import_antd.Input,
|
|
131
125
|
{
|
|
@@ -63,7 +63,7 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
63
63
|
const filteredOptions = (0, import_react.useMemo)(() => {
|
|
64
64
|
if (!searchValue)
|
|
65
65
|
return options;
|
|
66
|
-
return options.filter(
|
|
66
|
+
return (options || []).filter(
|
|
67
67
|
(option) => {
|
|
68
68
|
var _a;
|
|
69
69
|
const optionValue = ((_a = option[optionFilterProp]) == null ? void 0 : _a.toString().toLowerCase()) || "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
66
66
|
"crypto-js": "^4.2.0",
|
|
67
67
|
"@zxing/library": "0.21.2",
|
|
68
|
-
"@pisell/icon": "0.0.11",
|
|
69
68
|
"@pisell/utils": "1.0.42",
|
|
69
|
+
"@pisell/icon": "0.0.11",
|
|
70
70
|
"@pisell/date-picker": "1.0.100"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|