@noah-libjs/components 0.0.6 → 0.0.8
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/dist/ArrayInput/components.d.ts +787 -4
- package/dist/LazyAntd/ColorPicker/index.d.ts +1 -1
- package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +3 -1
- package/dist/LazyAntd/DatePicker/Base/index.d.ts +6 -2
- package/dist/LazyAntd/DatePicker/RangePicker.d.ts +3 -1
- package/dist/LazyAntd/Tree/Inner.d.ts +2 -1
- package/dist/LazyAntd/Tree/index.d.ts +3 -2
- package/dist/MyAutoComplete/types.d.ts +4 -1
- package/dist/MyButton/index.d.ts +10 -0
- package/dist/MyCheckbox/components.d.ts +807 -24
- package/dist/MyCheckbox/types.d.ts +3 -1
- package/dist/MyDatePicker/Display.d.ts +1 -1
- package/dist/MyIconSelect/index.d.ts +7 -0
- package/dist/MyIconSelect/types.d.ts +16 -0
- package/dist/MyInput/index.d.ts +1 -1
- package/dist/MyRangeDate/Inner.d.ts +3 -5
- package/dist/MyRangeDate/index.d.ts +6 -7
- package/dist/MyRangeDate/utils.d.ts +32 -30
- package/dist/MySelect/components.d.ts +787 -4
- package/dist/MySelect/types.d.ts +1 -1
- package/dist/MySwitch/types.d.ts +5 -2
- package/dist/a_chunks/index.js +561 -91
- package/dist/a_chunks/index.module.js +1 -24
- package/dist/a_chunks/root.17.js +2 -2
- package/dist/a_chunks/root.18.js +5 -5
- package/dist/a_chunks/root.19.js +2 -1
- package/dist/a_chunks/root.20.js +2 -1
- package/dist/a_chunks/root.21.js +2 -1
- package/dist/a_chunks/root.22.js +54 -196
- package/dist/a_chunks/root.23.js +198 -95
- package/dist/a_chunks/root.24.js +118 -5
- package/dist/a_chunks/root.25.js +4 -3
- package/dist/a_chunks/root.26.js +4 -0
- package/dist/a_chunks/root.8.js +7 -5
- package/dist/index.js +2 -1
- package/dist/packs.d.ts +788 -0
- package/dist/util-types/fd/InputType.d.ts +1 -1
- package/dist/util-types/fd/index.d.ts +33 -10
- package/dist/utils/getInputStyle.d.ts +3 -2
- package/dist/utils/msmc.d.ts +8 -2
- package/dist/utils/new.d.ts +12 -0
- package/package.json +4 -4
package/dist/a_chunks/root.23.js
CHANGED
|
@@ -1,109 +1,212 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
|
+
var _excluded = ["popupMatchSelectWidth", "getPopupContainer", "options", "style", "defaultValue", "value", "placeholder", "width", "onChange"];
|
|
4
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import '
|
|
8
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
9
|
+
import { AutoComplete, Button } from 'antd';
|
|
10
|
+
import React__default, { useState, useEffect } from 'react';
|
|
11
|
+
import { i as parse_MC_option, g as getInputStyle, j as get_status_cls } from './index.js';
|
|
12
|
+
import { getSearchParamsValue } from '@noah-libjs/utils';
|
|
13
|
+
import { safe_fetch_options, request } from '@noah-libjs/request';
|
|
14
|
+
import 'dayjs';
|
|
13
15
|
import 'rc-select';
|
|
14
16
|
import 'rc-tree';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
|
|
18
|
+
// import { ICommonOption, getPresetOptions, getSameOptions } from '@lm_fe/env';
|
|
19
|
+
var defaultOptions = [];
|
|
20
|
+
function useConfig_MyAutoComplete(props) {
|
|
21
|
+
var form = props.form,
|
|
22
|
+
optionKey = props.optionKey,
|
|
23
|
+
_props$options = props.options,
|
|
24
|
+
options = _props$options === void 0 ? defaultOptions : _props$options,
|
|
25
|
+
searchKey = props.searchKey,
|
|
26
|
+
value = props.value,
|
|
27
|
+
memorable = props.memorable,
|
|
28
|
+
memorieskey = props.memorieskey,
|
|
29
|
+
memoriesname = props.memoriesname,
|
|
30
|
+
_props$formName = props.formName,
|
|
31
|
+
formName = _props$formName === void 0 ? 'unsetFormName' : _props$formName,
|
|
32
|
+
name = props.name,
|
|
33
|
+
fetch_options = props.fetch_options,
|
|
34
|
+
onChange = props.onChange,
|
|
35
|
+
onBlur = props.onBlur;
|
|
36
|
+
var _useState = useState([]),
|
|
37
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
38
|
+
__options = _useState2[0],
|
|
39
|
+
set__options = _useState2[1];
|
|
40
|
+
var _useState3 = useState(),
|
|
41
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
42
|
+
init_value = _useState4[0],
|
|
43
|
+
setInit_value = _useState4[1];
|
|
44
|
+
var _memorieskey = memorieskey !== null && memorieskey !== void 0 ? memorieskey : "".concat(formName, ".").concat(name);
|
|
45
|
+
// const _memoriesname = memoriesname ?? SLocal_State.getUserData()?.login
|
|
46
|
+
var _memoriesname = memoriesname !== null && memoriesname !== void 0 ? memoriesname : 'unset';
|
|
47
|
+
var _memorable = memorable || !!memorieskey;
|
|
48
|
+
useEffect(function () {
|
|
49
|
+
if (!fetch_options) init();
|
|
50
|
+
return function () {};
|
|
51
|
+
}, [optionKey, options, searchKey]);
|
|
52
|
+
useEffect(function () {
|
|
53
|
+
if (fetch_options) {
|
|
54
|
+
safe_fetch_options(fetch_options, form).then(set__options);
|
|
35
55
|
}
|
|
36
|
-
return
|
|
56
|
+
return function () {};
|
|
37
57
|
}, []);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
useEffect(function () {
|
|
59
|
+
// if (!init_value && value) {
|
|
60
|
+
// setInit_value(value)
|
|
61
|
+
// }
|
|
62
|
+
setInit_value(value);
|
|
63
|
+
return function () {};
|
|
64
|
+
}, [value]);
|
|
65
|
+
function safeOnChange(str) {
|
|
66
|
+
setInit_value(str);
|
|
67
|
+
onChange === null || onChange === void 0 || onChange(str);
|
|
68
|
+
}
|
|
69
|
+
function init() {
|
|
70
|
+
var searchValue = searchKey ? getSearchParamsValue(searchKey) : null;
|
|
71
|
+
var _options = parse_MC_option(_objectSpread(_objectSpread({}, props), {}, {
|
|
72
|
+
useString: true
|
|
73
|
+
}));
|
|
74
|
+
if (searchValue) {
|
|
75
|
+
_options.push({
|
|
76
|
+
value: searchValue,
|
|
77
|
+
label: searchValue
|
|
78
|
+
});
|
|
46
79
|
}
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
80
|
+
if (_memorable) {
|
|
81
|
+
request.get("/api/text-memories", {
|
|
82
|
+
ignore_usr: true,
|
|
83
|
+
params: {
|
|
84
|
+
'key.equals': _memorieskey,
|
|
85
|
+
size: 9999
|
|
86
|
+
}
|
|
87
|
+
}).then(function (r) {
|
|
88
|
+
var _r$data;
|
|
89
|
+
var arr = (_r$data = r.data) !== null && _r$data !== void 0 ? _r$data : [];
|
|
90
|
+
_options.push.apply(_options, _toConsumableArray(arr.map(function (_) {
|
|
91
|
+
return {
|
|
92
|
+
label: _.value,
|
|
93
|
+
value: _.value,
|
|
94
|
+
id: _.id
|
|
95
|
+
};
|
|
96
|
+
})));
|
|
97
|
+
set__options(_options);
|
|
98
|
+
});
|
|
99
|
+
} else {
|
|
100
|
+
set__options(_options);
|
|
52
101
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
102
|
+
}
|
|
103
|
+
function _OnBlur(e) {
|
|
104
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
105
|
+
setTimeout(function () {
|
|
106
|
+
var thisValue = value;
|
|
107
|
+
if (!_memorable || !thisValue || __options.some(function (_) {
|
|
108
|
+
return _.value === thisValue;
|
|
109
|
+
})) return;
|
|
110
|
+
var data = {
|
|
111
|
+
key: _memorieskey,
|
|
112
|
+
name: _memoriesname,
|
|
113
|
+
value: thisValue
|
|
114
|
+
};
|
|
115
|
+
request.post("/api/text-memories", data, {
|
|
116
|
+
ignore_usr: true
|
|
117
|
+
}).then(init);
|
|
118
|
+
}, 10);
|
|
119
|
+
}
|
|
120
|
+
function remove(item) {
|
|
121
|
+
request["delete"]("/api/text-memories/".concat(item.id), {
|
|
122
|
+
params: {},
|
|
123
|
+
ignore_usr: true
|
|
124
|
+
}).then(function (r) {
|
|
125
|
+
init();
|
|
126
|
+
if (value === item.label) {
|
|
127
|
+
safeOnChange('');
|
|
56
128
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
safeOnChange: safeOnChange,
|
|
133
|
+
onBlur: _OnBlur,
|
|
134
|
+
init: init,
|
|
135
|
+
options: __options,
|
|
136
|
+
remove: remove,
|
|
137
|
+
init_value: init_value
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function MyAutoCompleteInner(props) {
|
|
141
|
+
var _props$popupMatchSele = props.popupMatchSelectWidth,
|
|
142
|
+
popupMatchSelectWidth = _props$popupMatchSele === void 0 ? 140 : _props$popupMatchSele,
|
|
143
|
+
_props$getPopupContai = props.getPopupContainer,
|
|
144
|
+
getPopupContainer = _props$getPopupContai === void 0 ? function () {
|
|
145
|
+
return document.body;
|
|
146
|
+
} : _props$getPopupContai,
|
|
147
|
+
_options = props.options,
|
|
148
|
+
_props$style = props.style,
|
|
149
|
+
style = _props$style === void 0 ? {} : _props$style,
|
|
150
|
+
defaultValue = props.defaultValue,
|
|
151
|
+
value = props.value,
|
|
152
|
+
placeholder = props.placeholder,
|
|
153
|
+
width = props.width,
|
|
154
|
+
onChange = props.onChange,
|
|
155
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
156
|
+
var _style = getInputStyle(_objectSpread({}, props));
|
|
157
|
+
var _useConfig_MyAutoComp = useConfig_MyAutoComplete(props),
|
|
158
|
+
safeOnChange = _useConfig_MyAutoComp.safeOnChange,
|
|
159
|
+
onBlur = _useConfig_MyAutoComp.onBlur,
|
|
160
|
+
options = _useConfig_MyAutoComp.options,
|
|
161
|
+
remove = _useConfig_MyAutoComp.remove,
|
|
162
|
+
init_value = _useConfig_MyAutoComp.init_value;
|
|
163
|
+
return /*#__PURE__*/React__default.createElement(AutoComplete
|
|
164
|
+
// dropdownStyle={{ minWidth: 180 }}
|
|
165
|
+
, _objectSpread(_objectSpread({
|
|
166
|
+
// dropdownStyle={{ minWidth: 180 }}
|
|
167
|
+
classNames: {
|
|
168
|
+
root: get_status_cls(props.status)
|
|
169
|
+
},
|
|
170
|
+
popupMatchSelectWidth: popupMatchSelectWidth,
|
|
68
171
|
style: _style,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
getPopupContainer: getPopupContainer,
|
|
72
|
-
value: isUnknown ? null : transValue(value),
|
|
73
|
-
onChange: handleChange,
|
|
74
|
-
disabledDate: disabledDate,
|
|
75
|
-
format: format,
|
|
76
|
-
presets: presets_date()
|
|
172
|
+
// bordered={false}
|
|
173
|
+
allowClear: true
|
|
77
174
|
}, rest), {}, {
|
|
78
|
-
|
|
79
|
-
|
|
175
|
+
value: init_value !== null && init_value !== void 0 ? init_value : defaultValue,
|
|
176
|
+
onBlur: onBlur,
|
|
177
|
+
onChange: safeOnChange,
|
|
178
|
+
// options={options}
|
|
179
|
+
getPopupContainer: getPopupContainer,
|
|
180
|
+
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : "请选择或输入"
|
|
181
|
+
}), options.map(function (item) {
|
|
182
|
+
return /*#__PURE__*/React__default.createElement(AutoComplete.Option, {
|
|
183
|
+
key: item.value,
|
|
184
|
+
value: item.value
|
|
185
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
186
|
+
style: {
|
|
187
|
+
display: 'flex',
|
|
188
|
+
justifyContent: 'space-between'
|
|
189
|
+
}
|
|
190
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
191
|
+
title: item.label,
|
|
192
|
+
style: {
|
|
193
|
+
flex: 1,
|
|
194
|
+
textOverflow: 'ellipsis',
|
|
195
|
+
overflow: 'hidden',
|
|
196
|
+
whiteSpace: 'nowrap',
|
|
197
|
+
color: item.warning ? 'red' : ''
|
|
198
|
+
}
|
|
199
|
+
}, item.label), item.id ? /*#__PURE__*/React__default.createElement(Button, {
|
|
200
|
+
title: "\u5220\u9664",
|
|
201
|
+
size: 'small',
|
|
202
|
+
type: 'dashed',
|
|
203
|
+
icon: /*#__PURE__*/React__default.createElement(CloseOutlined, null),
|
|
204
|
+
onClick: function onClick(e) {
|
|
205
|
+
e.stopPropagation();
|
|
206
|
+
var ok = confirm('确定删除吗?');
|
|
207
|
+
ok && remove(item);
|
|
208
|
+
}
|
|
209
|
+
}) : null));
|
|
80
210
|
}));
|
|
81
|
-
return get_unknown_conf(props) ? /*#__PURE__*/React__default.createElement("span", {
|
|
82
|
-
style: {
|
|
83
|
-
display: 'flex',
|
|
84
|
-
alignItems: 'center'
|
|
85
|
-
}
|
|
86
|
-
}, node, /*#__PURE__*/React__default.createElement("span", {
|
|
87
|
-
style: {
|
|
88
|
-
marginLeft: 6,
|
|
89
|
-
flex: 1
|
|
90
|
-
}
|
|
91
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
92
|
-
checked: isUnknown,
|
|
93
|
-
skipGroup: true,
|
|
94
|
-
onChange: function onChange(e) {
|
|
95
|
-
var _value = e.target.checked ? UNKNOWN_TIME_SYMBOL : null;
|
|
96
|
-
var value = handleChangeValue(props, _value);
|
|
97
|
-
_onChange === null || _onChange === void 0 || _onChange(value);
|
|
98
|
-
}
|
|
99
|
-
}), /*#__PURE__*/React__default.createElement("span", {
|
|
100
|
-
style: {
|
|
101
|
-
marginLeft: 6
|
|
102
|
-
}
|
|
103
|
-
}, "\u4E0D\u8BE6"))) : node;
|
|
104
211
|
}
|
|
105
|
-
|
|
106
|
-
// const df = memo<IMyDatePickerProps>(CusDatePicker, areEqual)
|
|
107
|
-
CusDatePicker.MonthPicker = MonthPicker_L;
|
|
108
|
-
var MyDatePickerInner = df;
|
|
109
|
-
export { MyDatePickerInner as default };
|
|
212
|
+
export { MyAutoCompleteInner as default };
|
package/dist/a_chunks/root.24.js
CHANGED
|
@@ -1,5 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["value", "onBlur", "onChange", "valueType", "minDate", "maxDate", "validDate", "getPopupContainer", "time_only", "format", "style"];
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
import { presets_date } from '@noah-libjs/utils';
|
|
7
|
+
import { Checkbox } from 'antd';
|
|
8
|
+
import dayjs from 'dayjs';
|
|
9
|
+
import React__default, { useCallback } from 'react';
|
|
10
|
+
import { M as MonthPicker_L, k as formatDatePickerProps, l as getIsUnknown, g as getInputStyle, T as TimePicker_L, D as DatePicker_L, m as get_unknown_conf, U as UNKNOWN_TIME_SYMBOL, n as handleChangeValue } from './index.js';
|
|
11
|
+
export { U as UNKNOWN_TIME_SYMBOL } from './index.js';
|
|
12
|
+
import '@ant-design/icons';
|
|
13
|
+
import 'rc-select';
|
|
14
|
+
import 'rc-tree';
|
|
15
|
+
import '@noah-libjs/request';
|
|
16
|
+
function CusDatePicker(_props) {
|
|
17
|
+
var props = formatDatePickerProps(_props);
|
|
18
|
+
var _props$value = props.value,
|
|
19
|
+
value = _props$value === void 0 ? undefined : _props$value,
|
|
20
|
+
onBlur = props.onBlur,
|
|
21
|
+
_onChange = props.onChange,
|
|
22
|
+
valueType = props.valueType,
|
|
23
|
+
minDate = props.minDate,
|
|
24
|
+
maxDate = props.maxDate,
|
|
25
|
+
validDate = props.validDate,
|
|
26
|
+
getPopupContainer = props.getPopupContainer,
|
|
27
|
+
time_only = props.time_only,
|
|
28
|
+
format = props.format,
|
|
29
|
+
style = props.style,
|
|
30
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
31
|
+
var isUnknown = getIsUnknown(props);
|
|
32
|
+
var _style = getInputStyle(props);
|
|
33
|
+
var transValue = useCallback(function (date) {
|
|
34
|
+
var result = undefined;
|
|
35
|
+
if (!!date) {
|
|
36
|
+
result = dayjs(date, format);
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}, []);
|
|
40
|
+
var handleChange = function handleChange(date, dateString) {
|
|
41
|
+
var newValue = handleChangeValue(props, date);
|
|
42
|
+
_onChange === null || _onChange === void 0 || _onChange(newValue);
|
|
43
|
+
setTimeout(function () {
|
|
44
|
+
onBlur === null || onBlur === void 0 || onBlur({}, {
|
|
45
|
+
range: 'end'
|
|
46
|
+
});
|
|
47
|
+
}, 10);
|
|
48
|
+
};
|
|
49
|
+
var disabledDate = useCallback(function (current) {
|
|
50
|
+
var dateStr = dayjs(current).format('YYYY-MM-DD');
|
|
51
|
+
if (validDate) {
|
|
52
|
+
return dateStr.includes(validDate);
|
|
53
|
+
}
|
|
54
|
+
if (minDate) {
|
|
55
|
+
if (minDate === 'now') {
|
|
56
|
+
return current < dayjs().endOf('day');
|
|
57
|
+
}
|
|
58
|
+
return current < dayjs(minDate).endOf('day');
|
|
59
|
+
}
|
|
60
|
+
if (maxDate) {
|
|
61
|
+
if (maxDate === 'now') {
|
|
62
|
+
return current > dayjs().endOf('day');
|
|
63
|
+
}
|
|
64
|
+
return current > dayjs(maxDate).endOf('day');
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
}, [validDate, maxDate, minDate]);
|
|
68
|
+
var node = props.time_only ? /*#__PURE__*/React__default.createElement(TimePicker_L, _objectSpread(_objectSpread({
|
|
69
|
+
getPopupContainer: getPopupContainer,
|
|
70
|
+
value: isUnknown ? null : transValue(value),
|
|
71
|
+
onChange: handleChange,
|
|
72
|
+
disabledDate: disabledDate,
|
|
73
|
+
format: format
|
|
74
|
+
}, rest), {}, {
|
|
75
|
+
// onBlur={undefined}
|
|
76
|
+
// onBlurCapture={undefined}
|
|
77
|
+
style: _style,
|
|
78
|
+
placeholder: '请选择'
|
|
79
|
+
})) : /*#__PURE__*/React__default.createElement(DatePicker_L, _objectSpread(_objectSpread({
|
|
80
|
+
getPopupContainer: getPopupContainer,
|
|
81
|
+
value: isUnknown ? null : transValue(value),
|
|
82
|
+
onChange: handleChange,
|
|
83
|
+
disabledDate: disabledDate,
|
|
84
|
+
format: format,
|
|
85
|
+
presets: presets_date()
|
|
86
|
+
}, rest), {}, {
|
|
87
|
+
style: _style,
|
|
88
|
+
placeholder: '请选择'
|
|
89
|
+
}));
|
|
90
|
+
return get_unknown_conf(props) ? /*#__PURE__*/React__default.createElement("span", {
|
|
91
|
+
style: {
|
|
92
|
+
display: 'flex',
|
|
93
|
+
alignItems: 'center'
|
|
94
|
+
}
|
|
95
|
+
}, node, /*#__PURE__*/React__default.createElement("span", {
|
|
96
|
+
style: {
|
|
97
|
+
marginLeft: 6,
|
|
98
|
+
flex: 1
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
101
|
+
checked: isUnknown,
|
|
102
|
+
skipGroup: true,
|
|
103
|
+
onChange: function onChange(e) {
|
|
104
|
+
var _value = e.target.checked ? UNKNOWN_TIME_SYMBOL : null;
|
|
105
|
+
var value = handleChangeValue(props, _value);
|
|
106
|
+
_onChange === null || _onChange === void 0 || _onChange(value);
|
|
107
|
+
}
|
|
108
|
+
}), /*#__PURE__*/React__default.createElement("span", {
|
|
109
|
+
style: {
|
|
110
|
+
marginLeft: 6
|
|
111
|
+
}
|
|
112
|
+
}, "\u4E0D\u8BE6"))) : node;
|
|
113
|
+
}
|
|
114
|
+
var df = CusDatePicker;
|
|
115
|
+
// const df = memo<IMyDatePickerProps>(CusDatePicker, areEqual)
|
|
116
|
+
CusDatePicker.MonthPicker = MonthPicker_L;
|
|
117
|
+
var MyDatePickerInner = df;
|
|
118
|
+
export { MyDatePickerInner as default };
|
package/dist/a_chunks/root.25.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export { Dayjs } from 'dayjs';
|
|
1
2
|
import dayjsGenerateConfig from 'rc-picker/es/generate/dayjs';
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
export {
|
|
3
|
+
import generatePicker from 'antd/es/date-picker/generatePicker';
|
|
4
|
+
var DatePicker = generatePicker(dayjsGenerateConfig);
|
|
5
|
+
export { DatePicker };
|
package/dist/a_chunks/root.8.js
CHANGED
|
@@ -2,8 +2,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import Tree from 'antd/es/tree';
|
|
5
|
-
import React__default from 'react';
|
|
6
|
-
function LazyInner(props) {
|
|
7
|
-
return /*#__PURE__*/React__default.createElement(Tree, _objectSpread({}, props)
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import React__default, { forwardRef } from 'react';
|
|
6
|
+
var Inner = /*#__PURE__*/forwardRef(function LazyInner(props, ref) {
|
|
7
|
+
return /*#__PURE__*/React__default.createElement(Tree, _objectSpread(_objectSpread({}, props), {}, {
|
|
8
|
+
ref: ref
|
|
9
|
+
}));
|
|
10
|
+
});
|
|
11
|
+
export { Inner as default };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ArrayInput,
|
|
1
|
+
export { A as ArrayInput, $ as AutoComplete_L, _ as Calendar_L, C as Checkbox_L, a0 as ColorPicker_L, ab as ContainerDimensions, D as DatePicker_L, a2 as Dropdown_L, a1 as Form_L, I as GlobalModal, H as GlobalModal_, a5 as Modal_L, M as MonthPicker_L, G as MountGlobalModal, E as MyAutoComplete, F as MyButton, t as MyCheckbox, r as MyCheckbox_Display, y as MyColor, z as MyIcon, B as MyIconSelect, o as MyInput, K as MyLazyComponent, J as MyMonaco, w as MyRangeDate, x as MyRangeDateTime, v as MyRangePicker, q as MySelect, a6 as Pagination_L, a9 as QRCode_L, R as RangePicker_L, a7 as SelectOption_L, S as Select_L, aa as Switch_L, a3 as Table_L, T as TimePicker_L, a8 as TreeSelect_L, a4 as Tree_L, U as UNKNOWN_TIME_SYMBOL, c as check_multiple, Z as displayValue, V as form_validate, k as formatDatePickerProps, W as fuck_focus, N as getArray, O as getFormat, g as getInputStyle, a as getMarshal, P as getParamByName, X as get_check_invert_values, b as get_mode, j as get_status_cls, m as get_unknown_conf, Q as handle_form_error, L as isUrl, p as packs, Y as parse_MC_dict_options, i as parse_MC_option, d as parse_MC_value, u as use_options } from './a_chunks/index.js';
|
|
2
2
|
export { Dayjs } from 'dayjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@ant-design/icons';
|
|
@@ -6,3 +6,4 @@ import '@noah-libjs/utils';
|
|
|
6
6
|
import 'antd';
|
|
7
7
|
import 'rc-select';
|
|
8
8
|
import 'rc-tree';
|
|
9
|
+
import '@noah-libjs/request';
|