@lm_fe/components 0.2.2
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/README.md +47 -0
- package/dist/keep-alive/common.d.ts +46 -0
- package/dist/keep-alive/components/AsyncComponent.d.ts +27 -0
- package/dist/keep-alive/components/Comment.d.ts +18 -0
- package/dist/keep-alive/components/Consumer.d.ts +20 -0
- package/dist/keep-alive/components/keepAlive.d.ts +4 -0
- package/dist/keep-alive/components/provider.d.ts +31 -0
- package/dist/keep-alive/contexts/IdentificationContext.d.ts +12 -0
- package/dist/keep-alive/contexts/KeepAliveContext.d.ts +5 -0
- package/dist/keep-alive/index.d.ts +7 -0
- package/dist/keep-alive/index.js +1901 -0
- package/dist/keep-alive/utils/bindLifecycle.d.ts +3 -0
- package/dist/keep-alive/utils/changePositionByComment.d.ts +1 -0
- package/dist/keep-alive/utils/createEventEmitter.d.ts +11 -0
- package/dist/keep-alive/utils/createStoreElement.d.ts +1 -0
- package/dist/keep-alive/utils/createUniqueIdentification.d.ts +8 -0
- package/dist/keep-alive/utils/debug.d.ts +3 -0
- package/dist/keep-alive/utils/getDisplayName.d.ts +2 -0
- package/dist/keep-alive/utils/getKeepAlive.d.ts +3 -0
- package/dist/keep-alive/utils/getKeyByFiberNode.d.ts +1 -0
- package/dist/keep-alive/utils/isRegExp.d.ts +1 -0
- package/dist/keep-alive/utils/keepAliveDecorator.d.ts +17 -0
- package/dist/keep-alive/utils/md5.d.ts +1 -0
- package/dist/keep-alive/utils/noop.d.ts +2 -0
- package/dist/keep-alive/utils/shallowEqual.d.ts +2 -0
- package/dist/keep-alive/utils/useKeepAliveEffect.d.ts +2 -0
- package/dist/keep-alive/utils/withIdentificationContextConsumer.d.ts +10 -0
- package/dist/keep-alive/utils/withKeepAliveContextConsumer.d.ts +10 -0
- package/dist/src/ArraySingle/Inner.d.ts +3 -0
- package/dist/src/ArraySingle/index.d.ts +2 -0
- package/dist/src/CaseTempleteEdit/Inner.d.ts +4 -0
- package/dist/src/CaseTempleteEdit/config.d.ts +20 -0
- package/dist/src/CaseTempleteEdit/index.d.ts +4 -0
- package/dist/src/CaseTempleteEdit/types.d.ts +19 -0
- package/dist/src/CaseTempleteEdit/utils.d.ts +2 -0
- package/dist/src/CaseTempleteEditEmr/Inner.d.ts +3 -0
- package/dist/src/CaseTempleteEditEmr/demo_text.d.ts +1 -0
- package/dist/src/CaseTempleteEditEmr/index.d.ts +2 -0
- package/dist/src/CaseTempleteEditEmr/types.d.ts +6 -0
- package/dist/src/CaseTempleteEditEmr/utils.d.ts +3 -0
- package/dist/src/ContainerDimensions/index.d.ts +10 -0
- package/dist/src/GlobalModal/index.d.ts +8 -0
- package/dist/src/GlobalModal/utils.d.ts +65 -0
- package/dist/src/Monaco/Inner.d.ts +12 -0
- package/dist/src/Monaco/index.d.ts +1 -0
- package/dist/src/MyAddress/Inner.d.ts +3 -0
- package/dist/src/MyAddress/Old/InnerOld.d.ts +3 -0
- package/dist/src/MyAddress/Old/index.d.ts +3 -0
- package/dist/src/MyAddress/Old/options.d.ts +25 -0
- package/dist/src/MyAddress/index.d.ts +6 -0
- package/dist/src/MyAddress/type.d.ts +16 -0
- package/dist/src/MyAddress/utils.d.ts +6 -0
- package/dist/src/MyImageEditor/Inner.d.ts +4 -0
- package/dist/src/MyImageEditor/index.d.ts +16 -0
- package/dist/src/MyImageEditor/init_delete_control.d.ts +1 -0
- package/dist/src/MyImageEditor/utils.d.ts +36 -0
- package/dist/src/MyInput/index.d.ts +5 -0
- package/dist/src/MyInput/types.d.ts +9 -0
- package/dist/src/MyLazyComponent/index.d.ts +6 -0
- package/dist/src/PDF_Frame_View/Inner.d.ts +3 -0
- package/dist/src/PDF_Frame_View/index.d.ts +5 -0
- package/dist/src/PDF_Frame_View/types.d.ts +32 -0
- package/dist/src/PDF_Frame_View/utils.d.ts +9 -0
- package/dist/src/PatientSelect/Inner.d.ts +16 -0
- package/dist/src/PatientSelect/index.d.ts +3 -0
- package/dist/src/SimpleForm/Inner.d.ts +5 -0
- package/dist/src/SimpleForm/components/TabForm/index.d.ts +15 -0
- package/dist/src/SimpleForm/components/extra/Custom.d.ts +8 -0
- package/dist/src/SimpleForm/components/extra/MultiInput.d.ts +6 -0
- package/dist/src/SimpleForm/components/extra/SimpleSelect.d.ts +6 -0
- package/dist/src/SimpleForm/components/extra/SwitchSelect.d.ts +4 -0
- package/dist/src/SimpleForm/components/index.d.ts +34 -0
- package/dist/src/SimpleForm/index.d.ts +17 -0
- package/dist/src/SimpleForm/types/help.d.ts +3 -0
- package/dist/src/SimpleForm/types/metaTypes.d.ts +29 -0
- package/dist/src/SimpleForm/types.d.ts +24 -0
- package/dist/src/a_chunks/index.js +550 -0
- package/dist/src/a_chunks/root..js +187 -0
- package/dist/src/a_chunks/root.2.js +318 -0
- package/dist/src/a_chunks/root.3.js +622 -0
- package/dist/src/a_chunks/root.4.js +235 -0
- package/dist/src/a_chunks/root.5.js +156 -0
- package/dist/src/a_chunks/root.6.js +310 -0
- package/dist/src/a_chunks/root.7.js +867 -0
- package/dist/src/a_chunks/root.8.js +281 -0
- package/dist/src/a_chunks/root.9.js +19 -0
- package/dist/src/a_chunks/style-inject.es.js +25 -0
- package/dist/src/config.d.ts +1 -0
- package/dist/src/hooks/index.d.ts +3 -0
- package/dist/src/hooks/useMchcDriverStatus.d.ts +3 -0
- package/dist/src/hooks/useMyEffect.d.ts +4 -0
- package/dist/src/hooks/use_fuck.d.ts +5 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.js +10 -0
- package/dist/src/pack_components.d.ts +213 -0
- package/dist/src/style/index.d.ts +1 -0
- package/dist/src/utils/getInputStyle.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/other.d.ts +3 -0
- package/package.json +67 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
6
|
+
var _excluded = ["onChange", "form", "onPatientSelect", "name", "width", "value", "PatientSelect_url", "PatientSelect_filterKey", "PatientSelect_displayKey", "style", "popupMatchSelectWidth"];
|
|
7
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
|
+
import { mchcLogger, mchcEvent } from '@lm_fe/env';
|
|
11
|
+
import { request, isEmpty, group, mapValues, flat } from '@lm_fe/utils';
|
|
12
|
+
import { getInputStyle, AutoComplete_L } from '@noah-libjs/components';
|
|
13
|
+
import { Row, Col, Divider } from 'antd';
|
|
14
|
+
import { debounce, get } from 'lodash';
|
|
15
|
+
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
16
|
+
var mode_reg = /^.*(\[[0-9]\])$/;
|
|
17
|
+
var default_url = '/api/pregnancies';
|
|
18
|
+
var default_keys = [{
|
|
19
|
+
label: '门诊号',
|
|
20
|
+
value: 'outpatientNO'
|
|
21
|
+
}, {
|
|
22
|
+
label: '姓名',
|
|
23
|
+
value: 'name'
|
|
24
|
+
}, {
|
|
25
|
+
label: '末次月经',
|
|
26
|
+
value: 'lmp'
|
|
27
|
+
}, {
|
|
28
|
+
label: '电话',
|
|
29
|
+
value: __DEV__ ? 'id' : 'telephone'
|
|
30
|
+
}];
|
|
31
|
+
var is_err = false;
|
|
32
|
+
function PatientSelect(props) {
|
|
33
|
+
var _onChange = props.onChange,
|
|
34
|
+
form = props.form,
|
|
35
|
+
onPatientSelect = props.onPatientSelect,
|
|
36
|
+
_props$name = props.name,
|
|
37
|
+
name = _props$name === void 0 ? 'unKnown' : _props$name,
|
|
38
|
+
width = props.width,
|
|
39
|
+
value = props.value,
|
|
40
|
+
_props$PatientSelect_ = props.PatientSelect_url,
|
|
41
|
+
PatientSelect_url = _props$PatientSelect_ === void 0 ? default_url : _props$PatientSelect_,
|
|
42
|
+
_props$PatientSelect_2 = props.PatientSelect_filterKey,
|
|
43
|
+
PatientSelect_filterKey = _props$PatientSelect_2 === void 0 ? 'outpatientNO' : _props$PatientSelect_2,
|
|
44
|
+
_props$PatientSelect_3 = props.PatientSelect_displayKey,
|
|
45
|
+
PatientSelect_displayKey = _props$PatientSelect_3 === void 0 ? default_keys : _props$PatientSelect_3,
|
|
46
|
+
style = props.style,
|
|
47
|
+
popupMatchSelectWidth = props.popupMatchSelectWidth,
|
|
48
|
+
inputProps = _objectWithoutProperties(props, _excluded);
|
|
49
|
+
var url = useRef(is_err ? default_url : PatientSelect_url);
|
|
50
|
+
var keys__ = useRef(is_err ? default_keys : PatientSelect_displayKey);
|
|
51
|
+
var _style = getInputStyle(props);
|
|
52
|
+
var init = useRef(false);
|
|
53
|
+
var _useState = useState([]),
|
|
54
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
55
|
+
raw_opts = _useState2[0],
|
|
56
|
+
set_raw_opts = _useState2[1];
|
|
57
|
+
var nice_key = keys__.current[0].value;
|
|
58
|
+
var scrollPage = useRef(0);
|
|
59
|
+
var key_len = keys__.current.length;
|
|
60
|
+
var pre_col = key_len <= 1 ? 24 : ~~(24 / key_len);
|
|
61
|
+
var last_col = key_len <= 1 ? 0 : 24 - pre_col * (key_len - 1);
|
|
62
|
+
var _useState3 = useState(value),
|
|
63
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
64
|
+
local_value = _useState4[0],
|
|
65
|
+
set_local_value = _useState4[1];
|
|
66
|
+
function safe_set_options(arr) {
|
|
67
|
+
set_raw_opts(arr);
|
|
68
|
+
}
|
|
69
|
+
function process_repeated(arr) {
|
|
70
|
+
var x = group(arr, function (_) {
|
|
71
|
+
return get(_, nice_key);
|
|
72
|
+
}); // {aa:[{key:'aa'},{key:'aa'}]}
|
|
73
|
+
var xx = mapValues(x, function (arr) {
|
|
74
|
+
return arr.map(function (_, idx) {
|
|
75
|
+
return _objectSpread(_objectSpread({}, _), {}, _defineProperty({}, nice_key, _[nice_key] + "[".concat(idx + 1, "]")));
|
|
76
|
+
});
|
|
77
|
+
}); // {aa: [{key:'aa[0]'}, {key: 'aa[1]'} ]}
|
|
78
|
+
var xxx = flat(Object.values(xx)); // [{key:'aa[0]'}, {key: 'aa[1]']
|
|
79
|
+
return xxx;
|
|
80
|
+
}
|
|
81
|
+
useEffect(function () {
|
|
82
|
+
if (!init.current && value) {
|
|
83
|
+
init.current = true;
|
|
84
|
+
_handleSearch(value);
|
|
85
|
+
}
|
|
86
|
+
console.log('set_local_value', value);
|
|
87
|
+
set_local_value(value);
|
|
88
|
+
}, [value]);
|
|
89
|
+
var _handleSearch = /*#__PURE__*/function () {
|
|
90
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(text) {
|
|
91
|
+
var result, res;
|
|
92
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
93
|
+
while (1) switch (_context.prev = _context.next) {
|
|
94
|
+
case 0:
|
|
95
|
+
result = [];
|
|
96
|
+
_context.prev = 1;
|
|
97
|
+
_context.next = 4;
|
|
98
|
+
return request.get("".concat(url.current), {
|
|
99
|
+
params: _defineProperty({
|
|
100
|
+
size: 10,
|
|
101
|
+
page: 0
|
|
102
|
+
}, "".concat(PatientSelect_filterKey, ".contains"), text)
|
|
103
|
+
});
|
|
104
|
+
case 4:
|
|
105
|
+
result = _context.sent.data;
|
|
106
|
+
_context.next = 15;
|
|
107
|
+
break;
|
|
108
|
+
case 7:
|
|
109
|
+
_context.prev = 7;
|
|
110
|
+
_context.t0 = _context["catch"](1);
|
|
111
|
+
if (!is_err) {
|
|
112
|
+
_context.next = 11;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
return _context.abrupt("return", []);
|
|
116
|
+
case 11:
|
|
117
|
+
is_err = true;
|
|
118
|
+
url.current = default_url;
|
|
119
|
+
keys__.current = default_keys;
|
|
120
|
+
return _context.abrupt("return", _handleSearch(text));
|
|
121
|
+
case 15:
|
|
122
|
+
res = result !== null && result !== void 0 ? result : [];
|
|
123
|
+
safe_set_options(res);
|
|
124
|
+
scrollPage.current = 0;
|
|
125
|
+
return _context.abrupt("return", res);
|
|
126
|
+
case 19:
|
|
127
|
+
case "end":
|
|
128
|
+
return _context.stop();
|
|
129
|
+
}
|
|
130
|
+
}, _callee, null, [[1, 7]]);
|
|
131
|
+
}));
|
|
132
|
+
return function handleSearch(_x) {
|
|
133
|
+
return _ref.apply(this, arguments);
|
|
134
|
+
};
|
|
135
|
+
}();
|
|
136
|
+
var scrollSearch = /*#__PURE__*/function () {
|
|
137
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(value) {
|
|
138
|
+
var page,
|
|
139
|
+
result,
|
|
140
|
+
_args2 = arguments;
|
|
141
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
142
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
143
|
+
case 0:
|
|
144
|
+
page = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : 0;
|
|
145
|
+
_context2.next = 3;
|
|
146
|
+
return request.get("".concat(url.current), {
|
|
147
|
+
params: _defineProperty(_defineProperty(_defineProperty({}, "".concat(PatientSelect_filterKey, ".contains"), value), "size", 10), "page", page)
|
|
148
|
+
});
|
|
149
|
+
case 3:
|
|
150
|
+
result = _context2.sent;
|
|
151
|
+
safe_set_options([].concat(_toConsumableArray(raw_opts), _toConsumableArray(result.data)));
|
|
152
|
+
case 5:
|
|
153
|
+
case "end":
|
|
154
|
+
return _context2.stop();
|
|
155
|
+
}
|
|
156
|
+
}, _callee2);
|
|
157
|
+
}));
|
|
158
|
+
return function scrollSearch(_x2) {
|
|
159
|
+
return _ref2.apply(this, arguments);
|
|
160
|
+
};
|
|
161
|
+
}();
|
|
162
|
+
var debounce_serach = useMemo(function () {
|
|
163
|
+
return debounce(/*#__PURE__*/function () {
|
|
164
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(text) {
|
|
165
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
166
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
167
|
+
case 0:
|
|
168
|
+
return _context3.abrupt("return", _handleSearch(text));
|
|
169
|
+
case 1:
|
|
170
|
+
case "end":
|
|
171
|
+
return _context3.stop();
|
|
172
|
+
}
|
|
173
|
+
}, _callee3);
|
|
174
|
+
}));
|
|
175
|
+
return function (_x3) {
|
|
176
|
+
return _ref3.apply(this, arguments);
|
|
177
|
+
};
|
|
178
|
+
}(), 400);
|
|
179
|
+
}, []);
|
|
180
|
+
var onPopupScroll = function onPopupScroll(e) {
|
|
181
|
+
e.persist();
|
|
182
|
+
var target = e.target;
|
|
183
|
+
if (target.scrollTop + target.offsetHeight === target.scrollHeight) {
|
|
184
|
+
var nextScrollPage = scrollPage.current + 1;
|
|
185
|
+
scrollPage.current = nextScrollPage;
|
|
186
|
+
scrollSearch(local_value, nextScrollPage);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
return /*#__PURE__*/React.createElement(AutoComplete_L, _objectSpread(_objectSpread({
|
|
190
|
+
dropdownRender: function dropdownRender(menu) {
|
|
191
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
192
|
+
style: {
|
|
193
|
+
padding: 6
|
|
194
|
+
}
|
|
195
|
+
}, keys__.current.map(function (k, idx) {
|
|
196
|
+
var key = k.label;
|
|
197
|
+
return /*#__PURE__*/React.createElement(Col, {
|
|
198
|
+
key: key,
|
|
199
|
+
span: idx === key_len - 1 ? last_col : pre_col
|
|
200
|
+
}, key);
|
|
201
|
+
})), /*#__PURE__*/React.createElement(Divider, {
|
|
202
|
+
style: {
|
|
203
|
+
margin: '4px 0'
|
|
204
|
+
}
|
|
205
|
+
}), menu);
|
|
206
|
+
},
|
|
207
|
+
onClick: function onClick() {
|
|
208
|
+
// 点击触发
|
|
209
|
+
if (isEmpty(raw_opts) && isEmpty(local_value)) {
|
|
210
|
+
_handleSearch();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}, inputProps), {}, {
|
|
214
|
+
allowClear: true,
|
|
215
|
+
style: _style,
|
|
216
|
+
value: local_value,
|
|
217
|
+
popupMatchSelectWidth: popupMatchSelectWidth || key_len * 150,
|
|
218
|
+
options: process_repeated(raw_opts || []).map(function (_) {
|
|
219
|
+
var label = get(_, keys__.current[0].value);
|
|
220
|
+
var opts = {
|
|
221
|
+
label: label,
|
|
222
|
+
value: label,
|
|
223
|
+
key: _ === null || _ === void 0 ? void 0 : _.id,
|
|
224
|
+
option_data: _
|
|
225
|
+
};
|
|
226
|
+
return opts;
|
|
227
|
+
}),
|
|
228
|
+
onChange: function onChange(value, option) {
|
|
229
|
+
var v = get_raw_value(value);
|
|
230
|
+
_onChange === null || _onChange === void 0 || _onChange(v);
|
|
231
|
+
set_local_value(v);
|
|
232
|
+
debounce_serach(v);
|
|
233
|
+
},
|
|
234
|
+
onSelect: function onSelect(text, opt) {
|
|
235
|
+
mchcLogger.log('PatientSelect onSelect', {
|
|
236
|
+
text: text,
|
|
237
|
+
opt: opt
|
|
238
|
+
});
|
|
239
|
+
var option_data = opt.option_data;
|
|
240
|
+
var v = get_raw_value(text);
|
|
241
|
+
var raw_item = raw_opts.find(function (r) {
|
|
242
|
+
return r.id === get(option_data, 'id');
|
|
243
|
+
});
|
|
244
|
+
if (raw_item && v) {
|
|
245
|
+
mchcEvent.emit('my_form', {
|
|
246
|
+
name: name,
|
|
247
|
+
type: 'onSearch',
|
|
248
|
+
value: {
|
|
249
|
+
text: v,
|
|
250
|
+
data: raw_item
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
onPatientSelect === null || onPatientSelect === void 0 || onPatientSelect(raw_item, form);
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
optionRender: function optionRender(_ref4) {
|
|
257
|
+
var data = _ref4.data;
|
|
258
|
+
var option_data = data.option_data;
|
|
259
|
+
var id = option_data.id;
|
|
260
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
261
|
+
key: id
|
|
262
|
+
}, keys__.current.map(function (k, idx) {
|
|
263
|
+
var value = get(option_data, k.value);
|
|
264
|
+
return /*#__PURE__*/React.createElement(Col, {
|
|
265
|
+
key: k.label + id,
|
|
266
|
+
span: idx === key_len - 1 ? last_col : pre_col
|
|
267
|
+
}, value);
|
|
268
|
+
}));
|
|
269
|
+
},
|
|
270
|
+
onPopupScroll: onPopupScroll
|
|
271
|
+
}));
|
|
272
|
+
}
|
|
273
|
+
function get_raw_value(mixed_value) {
|
|
274
|
+
var v = mixed_value !== null && mixed_value !== void 0 ? mixed_value : '';
|
|
275
|
+
var match_result = v.match(mode_reg);
|
|
276
|
+
if (match_result) {
|
|
277
|
+
return v.replace(match_result[1], '');
|
|
278
|
+
}
|
|
279
|
+
return mixed_value;
|
|
280
|
+
}
|
|
281
|
+
export { PatientSelect as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
+
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
|
+
import { ArraySingle } from '@noah-libjs/components';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { p as pack_components } from './index.js';
|
|
7
|
+
import '@lm_fe/env';
|
|
8
|
+
import 'lodash';
|
|
9
|
+
import 'antd';
|
|
10
|
+
import '@lm_fe/static';
|
|
11
|
+
import '@lm_fe/service';
|
|
12
|
+
import '@lm_fe/provoke';
|
|
13
|
+
import '@lm_fe/utils';
|
|
14
|
+
var ArraySingle_Inner = function ArraySingle_Inner(props) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ArraySingle, _objectSpread(_objectSpread({}, props), {}, {
|
|
16
|
+
component_map: pack_components
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
export { ArraySingle_Inner as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function styleInject(css, ref) {
|
|
2
|
+
if (ref === void 0) ref = {};
|
|
3
|
+
var insertAt = ref.insertAt;
|
|
4
|
+
if (!css || typeof document === 'undefined') {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8
|
+
var style = document.createElement('style');
|
|
9
|
+
style.type = 'text/css';
|
|
10
|
+
if (insertAt === 'top') {
|
|
11
|
+
if (head.firstChild) {
|
|
12
|
+
head.insertBefore(style, head.firstChild);
|
|
13
|
+
} else {
|
|
14
|
+
head.appendChild(style);
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
head.appendChild(style);
|
|
18
|
+
}
|
|
19
|
+
if (style.styleSheet) {
|
|
20
|
+
style.styleSheet.cssText = css;
|
|
21
|
+
} else {
|
|
22
|
+
style.appendChild(document.createTextNode(css));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export { styleInject as s };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './config';
|
|
2
|
+
export * from '@noah-libjs/components';
|
|
3
|
+
export * from './hooks';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './LazyAntd';
|
|
6
|
+
export * from './pack_components';
|
|
7
|
+
export * from './PDF_Frame_View';
|
|
8
|
+
export * from './SimpleForm';
|
|
9
|
+
export * from './CaseTempleteEdit';
|
|
10
|
+
export * from './CaseTempleteEditEmr';
|
|
11
|
+
export declare function get_echarat(): Promise<typeof import("echarts/types/dist/echarts")>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { x as CaseTempleteEdit, C as CaseTempleteEditEmr, G as GynaecologyImageEditor, L as LazyAntd, n as MyAddress, o as MyAddressNew, q as MyAddressOld, s as MyImageEditor, M as MyImageEditorEvents, P as PatientSelect, w as PdfFrameView, S as SimpleForm, g as get_PdfFrameView_version, i as get_echarat, d as get_old_address_options, p as pack_components, y as preload_tpl_editor, k as useMchcDriverStatus, u as useMyEffect, j as useMyEffectSafe, t as usePatientSelect, m as use_fuck, v as validate_form } from './a_chunks/index.js';
|
|
2
|
+
export * from '@noah-libjs/components';
|
|
3
|
+
import '@lm_fe/env';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'lodash';
|
|
6
|
+
import 'antd';
|
|
7
|
+
import '@lm_fe/static';
|
|
8
|
+
import '@lm_fe/service';
|
|
9
|
+
import '@lm_fe/provoke';
|
|
10
|
+
import '@lm_fe/utils';
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { MyAddress } from './MyAddress';
|
|
2
|
+
export * from './MyAddress';
|
|
3
|
+
export * from './MyImageEditor';
|
|
4
|
+
export * from './PatientSelect';
|
|
5
|
+
export declare const pack_components: {
|
|
6
|
+
MyAddress: typeof MyAddress;
|
|
7
|
+
MyImageEditor: ((props: import("./MyImageEditor").IMyImageEditorProps) => import("react").JSX.Element) & {
|
|
8
|
+
events: {
|
|
9
|
+
save: string;
|
|
10
|
+
create: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
ArraySingle: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IArraySingleProps, string>;
|
|
14
|
+
PatientSelect: import("react").LazyExoticComponent<typeof import("./PatientSelect/Inner").default>;
|
|
15
|
+
Divider: import("react").FC<import("antd").DividerProps>;
|
|
16
|
+
MyIconSelect: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyIconSelectProps, string>;
|
|
17
|
+
MI: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyInputProps, string>;
|
|
18
|
+
input: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyInputProps, string>;
|
|
19
|
+
Input: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyInputProps, string>;
|
|
20
|
+
MyInput: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyInputProps, string>;
|
|
21
|
+
MyInputNumber: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MyInputNumber").IMyInputNumberProps>;
|
|
22
|
+
InputNumber: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MyInputNumber").IMyInputNumberProps>;
|
|
23
|
+
input_number: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MyInputNumber").IMyInputNumberProps>;
|
|
24
|
+
MyDatePicker: import("@noah-libjs/components").TMyDatePicker;
|
|
25
|
+
DatePicker: import("@noah-libjs/components").TMyDatePicker;
|
|
26
|
+
DP: import("@noah-libjs/components").TMyDatePicker;
|
|
27
|
+
single_date_picker: import("@noah-libjs/components").TMyDatePicker;
|
|
28
|
+
CusDatePicker: import("@noah-libjs/components").TMyDatePicker;
|
|
29
|
+
date: import("@noah-libjs/components").TMyDatePicker;
|
|
30
|
+
MyRangePicker: import("react").FunctionComponent<{
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
33
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
34
|
+
isDisplay?: boolean;
|
|
35
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
36
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
39
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
40
|
+
isDisplay?: boolean;
|
|
41
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
42
|
+
};
|
|
43
|
+
RangePicker: import("react").FunctionComponent<{
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
46
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
47
|
+
isDisplay?: boolean;
|
|
48
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
49
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
52
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
53
|
+
isDisplay?: boolean;
|
|
54
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
55
|
+
};
|
|
56
|
+
rangePicker: import("react").FunctionComponent<{
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
59
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
60
|
+
isDisplay?: boolean;
|
|
61
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
62
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
65
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
66
|
+
isDisplay?: boolean;
|
|
67
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
68
|
+
};
|
|
69
|
+
range_picker: import("react").FunctionComponent<{
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
72
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
73
|
+
isDisplay?: boolean;
|
|
74
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
75
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
78
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
79
|
+
isDisplay?: boolean;
|
|
80
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
81
|
+
};
|
|
82
|
+
MyRangeDate: import("react").FunctionComponent<{
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
85
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
86
|
+
isDisplay?: boolean;
|
|
87
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
88
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
91
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
92
|
+
isDisplay?: boolean;
|
|
93
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
94
|
+
};
|
|
95
|
+
RangeDate: import("react").FunctionComponent<{
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
98
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
99
|
+
isDisplay?: boolean;
|
|
100
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
101
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
104
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
105
|
+
isDisplay?: boolean;
|
|
106
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
107
|
+
};
|
|
108
|
+
rangeDate: import("react").FunctionComponent<{
|
|
109
|
+
disabled?: boolean;
|
|
110
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
111
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
112
|
+
isDisplay?: boolean;
|
|
113
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
114
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
115
|
+
disabled?: boolean;
|
|
116
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
117
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
118
|
+
isDisplay?: boolean;
|
|
119
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
120
|
+
};
|
|
121
|
+
range_date: import("react").FunctionComponent<{
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
124
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
125
|
+
isDisplay?: boolean;
|
|
126
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
127
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
128
|
+
disabled?: boolean;
|
|
129
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
130
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
131
|
+
isDisplay?: boolean;
|
|
132
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
133
|
+
};
|
|
134
|
+
MyRangeDateTime: import("react").FunctionComponent<{
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
137
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
138
|
+
isDisplay?: boolean;
|
|
139
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
140
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
143
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
144
|
+
isDisplay?: boolean;
|
|
145
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
146
|
+
};
|
|
147
|
+
RangeDateTime: import("react").FunctionComponent<{
|
|
148
|
+
disabled?: boolean;
|
|
149
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
150
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
151
|
+
isDisplay?: boolean;
|
|
152
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
153
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
154
|
+
disabled?: boolean;
|
|
155
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
156
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
157
|
+
isDisplay?: boolean;
|
|
158
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
159
|
+
};
|
|
160
|
+
rangeDateTime: import("react").FunctionComponent<{
|
|
161
|
+
disabled?: boolean;
|
|
162
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
163
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
164
|
+
isDisplay?: boolean;
|
|
165
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
166
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
169
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
170
|
+
isDisplay?: boolean;
|
|
171
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
172
|
+
};
|
|
173
|
+
range_date_time: import("react").FunctionComponent<{
|
|
174
|
+
disabled?: boolean;
|
|
175
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
176
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
177
|
+
isDisplay?: boolean;
|
|
178
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> & {
|
|
179
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
180
|
+
disabled?: boolean;
|
|
181
|
+
value?: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue;
|
|
182
|
+
onChange?(v: import("@noah-libjs/components/dist/MyRangeDate/utils").MyValue, v2?: any): void;
|
|
183
|
+
isDisplay?: boolean;
|
|
184
|
+
} & import("@noah-libjs/components").IMyRangePickerProps> | undefined;
|
|
185
|
+
};
|
|
186
|
+
MyColor: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MyColor/types").IMyColorProps>;
|
|
187
|
+
MySwitch: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MySwitch/types").IMySwitchProps, boolean>;
|
|
188
|
+
switch: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MySwitch/types").IMySwitchProps, boolean>;
|
|
189
|
+
Switch: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MySwitch/types").IMySwitchProps, boolean>;
|
|
190
|
+
MSW: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components/dist/MySwitch/types").IMySwitchProps, boolean>;
|
|
191
|
+
ArrayInput: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IArrayInputProps, string>;
|
|
192
|
+
MySelect: import("react").LazyExoticComponent<import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMySelectProps, string | number>> & {
|
|
193
|
+
DisplayFC: typeof import("@noah-libjs/components/dist/MySelect/Display").DisplayFC;
|
|
194
|
+
};
|
|
195
|
+
MS: import("react").LazyExoticComponent<import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMySelectProps, string | number>> & {
|
|
196
|
+
DisplayFC: typeof import("@noah-libjs/components/dist/MySelect/Display").DisplayFC;
|
|
197
|
+
};
|
|
198
|
+
Select: import("react").LazyExoticComponent<import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMySelectProps, string | number>> & {
|
|
199
|
+
DisplayFC: typeof import("@noah-libjs/components/dist/MySelect/Display").DisplayFC;
|
|
200
|
+
};
|
|
201
|
+
select: import("react").LazyExoticComponent<import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMySelectProps, string | number>> & {
|
|
202
|
+
DisplayFC: typeof import("@noah-libjs/components/dist/MySelect/Display").DisplayFC;
|
|
203
|
+
};
|
|
204
|
+
MyCheckbox: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyCheckboxProps>;
|
|
205
|
+
Checkbox: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyCheckboxProps>;
|
|
206
|
+
MC: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyCheckboxProps>;
|
|
207
|
+
checkbox: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").IMyCheckboxProps>;
|
|
208
|
+
MyButton: typeof import("@noah-libjs/components").MyButton;
|
|
209
|
+
MyAutoComplete: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").MyAutoCompleteProps>;
|
|
210
|
+
MA: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").MyAutoCompleteProps>;
|
|
211
|
+
AutoComplete: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").MyAutoCompleteProps>;
|
|
212
|
+
autocomplete: import("@noah-libjs/components").TCommonComponent<import("@noah-libjs/components").MyAutoCompleteProps>;
|
|
213
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './other';
|