@noah-libjs/components 0.0.8 → 0.0.23

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.
Files changed (135) hide show
  1. package/package.json +4 -4
  2. package/dist/ArrayInput/DispalyInner.d.ts +0 -4
  3. package/dist/ArrayInput/Inner.d.ts +0 -4
  4. package/dist/ArrayInput/components.d.ts +0 -824
  5. package/dist/ArrayInput/index.d.ts +0 -4
  6. package/dist/ArrayInput/types.d.ts +0 -76
  7. package/dist/ArrayInput/utils.d.ts +0 -3
  8. package/dist/ContainerDimensions/index.d.ts +0 -9
  9. package/dist/GlobalModal/index.d.ts +0 -8
  10. package/dist/GlobalModal/utils.d.ts +0 -65
  11. package/dist/LazyAntd/AutoComplete/Inner.d.ts +0 -3
  12. package/dist/LazyAntd/AutoComplete/index.d.ts +0 -9
  13. package/dist/LazyAntd/Checkbox/GroupInner.d.ts +0 -3
  14. package/dist/LazyAntd/Checkbox/Inner.d.ts +0 -2
  15. package/dist/LazyAntd/Checkbox/index.d.ts +0 -9
  16. package/dist/LazyAntd/ColorPicker/Inner.d.ts +0 -3
  17. package/dist/LazyAntd/ColorPicker/index.d.ts +0 -42
  18. package/dist/LazyAntd/DatePicker/Base/Calendar.d.ts +0 -3
  19. package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +0 -37
  20. package/dist/LazyAntd/DatePicker/Base/index.d.ts +0 -62
  21. package/dist/LazyAntd/DatePicker/Calendar.d.ts +0 -5
  22. package/dist/LazyAntd/DatePicker/DatePicker.d.ts +0 -12
  23. package/dist/LazyAntd/DatePicker/MonthPicker.d.ts +0 -11
  24. package/dist/LazyAntd/DatePicker/RangePicker.d.ts +0 -19
  25. package/dist/LazyAntd/DatePicker/TimePicker.d.ts +0 -12
  26. package/dist/LazyAntd/DatePicker/index.d.ts +0 -5
  27. package/dist/LazyAntd/Dropdown/Button.d.ts +0 -2
  28. package/dist/LazyAntd/Dropdown/Inner.d.ts +0 -2
  29. package/dist/LazyAntd/Dropdown/index.d.ts +0 -10
  30. package/dist/LazyAntd/Form/FormItemInner.d.ts +0 -2
  31. package/dist/LazyAntd/Form/Inner.d.ts +0 -2
  32. package/dist/LazyAntd/Form/index.d.ts +0 -9
  33. package/dist/LazyAntd/Modal/Inner.d.ts +0 -3
  34. package/dist/LazyAntd/Modal/index.d.ts +0 -3
  35. package/dist/LazyAntd/Pagination/Inner.d.ts +0 -2
  36. package/dist/LazyAntd/Pagination/index.d.ts +0 -3
  37. package/dist/LazyAntd/QRCode/Inner.d.ts +0 -3
  38. package/dist/LazyAntd/QRCode/index.d.ts +0 -2
  39. package/dist/LazyAntd/Select/Inner.d.ts +0 -2
  40. package/dist/LazyAntd/Select/OptionInner.d.ts +0 -1
  41. package/dist/LazyAntd/Select/index.d.ts +0 -9
  42. package/dist/LazyAntd/Switch/index.d.ts +0 -1
  43. package/dist/LazyAntd/Table/Inner.d.ts +0 -2
  44. package/dist/LazyAntd/Table/index.d.ts +0 -3
  45. package/dist/LazyAntd/Tree/DirectoryTreeInner.d.ts +0 -2
  46. package/dist/LazyAntd/Tree/Inner.d.ts +0 -3
  47. package/dist/LazyAntd/Tree/TreeNodeInner.d.ts +0 -3
  48. package/dist/LazyAntd/Tree/index.d.ts +0 -14
  49. package/dist/LazyAntd/TreeSelect/Inner.d.ts +0 -2
  50. package/dist/LazyAntd/TreeSelect/index.d.ts +0 -3
  51. package/dist/LazyAntd/index.d.ts +0 -14
  52. package/dist/Monaco/Inner.d.ts +0 -4
  53. package/dist/Monaco/index.d.ts +0 -6
  54. package/dist/Monaco/types.d.ts +0 -9
  55. package/dist/MyAutoComplete/Inner.d.ts +0 -3
  56. package/dist/MyAutoComplete/index.d.ts +0 -5
  57. package/dist/MyAutoComplete/types.d.ts +0 -25
  58. package/dist/MyAutoComplete/useConfig.d.ts +0 -11
  59. package/dist/MyButton/index.d.ts +0 -10
  60. package/dist/MyCheckbox/Display.d.ts +0 -6
  61. package/dist/MyCheckbox/Inner.d.ts +0 -5
  62. package/dist/MyCheckbox/components.d.ts +0 -824
  63. package/dist/MyCheckbox/index.d.ts +0 -6
  64. package/dist/MyCheckbox/types.d.ts +0 -64
  65. package/dist/MyCheckbox/utils.d.ts +0 -3
  66. package/dist/MyColor/index.d.ts +0 -4
  67. package/dist/MyColor/types.d.ts +0 -6
  68. package/dist/MyDatePicker/Display.d.ts +0 -3
  69. package/dist/MyDatePicker/Inner.d.ts +0 -5
  70. package/dist/MyDatePicker/index.d.ts +0 -8
  71. package/dist/MyDatePicker/utils.d.ts +0 -26
  72. package/dist/MyIconSelect/index.d.ts +0 -7
  73. package/dist/MyIconSelect/types.d.ts +0 -16
  74. package/dist/MyInput/index.d.ts +0 -5
  75. package/dist/MyInput/types.d.ts +0 -7
  76. package/dist/MyInputNumber/index.d.ts +0 -5
  77. package/dist/MyInputNumber/types.d.ts +0 -9
  78. package/dist/MyLazyComponent/index.d.ts +0 -6
  79. package/dist/MyRangeDate/Display.d.ts +0 -2
  80. package/dist/MyRangeDate/Inner.d.ts +0 -5
  81. package/dist/MyRangeDate/index.d.ts +0 -7
  82. package/dist/MyRangeDate/utils.d.ts +0 -405
  83. package/dist/MySelect/Display.d.ts +0 -3
  84. package/dist/MySelect/Inner.d.ts +0 -4
  85. package/dist/MySelect/components.d.ts +0 -824
  86. package/dist/MySelect/index.d.ts +0 -8
  87. package/dist/MySelect/types.d.ts +0 -27
  88. package/dist/MySelect/utils.d.ts +0 -1
  89. package/dist/MySwitch/index.d.ts +0 -4
  90. package/dist/MySwitch/types.d.ts +0 -10
  91. package/dist/a_chunks/components.js +0 -7
  92. package/dist/a_chunks/index.js +0 -1480
  93. package/dist/a_chunks/index.module.js +0 -10
  94. package/dist/a_chunks/root..js +0 -37
  95. package/dist/a_chunks/root.10.js +0 -9
  96. package/dist/a_chunks/root.11.js +0 -19
  97. package/dist/a_chunks/root.12.js +0 -9
  98. package/dist/a_chunks/root.13.js +0 -9
  99. package/dist/a_chunks/root.14.js +0 -9
  100. package/dist/a_chunks/root.15.js +0 -9
  101. package/dist/a_chunks/root.16.js +0 -9
  102. package/dist/a_chunks/root.17.js +0 -166
  103. package/dist/a_chunks/root.18.js +0 -238
  104. package/dist/a_chunks/root.19.js +0 -19
  105. package/dist/a_chunks/root.2.js +0 -9
  106. package/dist/a_chunks/root.20.js +0 -130
  107. package/dist/a_chunks/root.21.js +0 -79
  108. package/dist/a_chunks/root.22.js +0 -66
  109. package/dist/a_chunks/root.23.js +0 -212
  110. package/dist/a_chunks/root.24.js +0 -118
  111. package/dist/a_chunks/root.25.js +0 -5
  112. package/dist/a_chunks/root.26.js +0 -4
  113. package/dist/a_chunks/root.3.js +0 -9
  114. package/dist/a_chunks/root.4.js +0 -9
  115. package/dist/a_chunks/root.5.js +0 -9
  116. package/dist/a_chunks/root.6.js +0 -9
  117. package/dist/a_chunks/root.7.js +0 -9
  118. package/dist/a_chunks/root.8.js +0 -11
  119. package/dist/a_chunks/root.9.js +0 -9
  120. package/dist/index.d.ts +0 -8
  121. package/dist/index.js +0 -9
  122. package/dist/packs.d.ts +0 -836
  123. package/dist/util-types/comp.d.ts +0 -12
  124. package/dist/util-types/fd/FormItemLayout.d.ts +0 -5
  125. package/dist/util-types/fd/InputType.d.ts +0 -1
  126. package/dist/util-types/fd/Rules.d.ts +0 -4
  127. package/dist/util-types/fd/SpecialConfig.d.ts +0 -33
  128. package/dist/util-types/fd/TranferRules.d.ts +0 -9
  129. package/dist/util-types/fd/index.d.ts +0 -223
  130. package/dist/util-types/index.d.ts +0 -2
  131. package/dist/utils/getInputStyle.d.ts +0 -14
  132. package/dist/utils/index.d.ts +0 -4
  133. package/dist/utils/msmc.d.ts +0 -47
  134. package/dist/utils/new.d.ts +0 -18
  135. package/dist/utils/other.d.ts +0 -4
@@ -1,1480 +0,0 @@
1
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
2
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
5
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
- import _createClass from "@babel/runtime/helpers/createClass";
7
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
8
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
9
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
10
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
- var _excluded = ["placeholder"],
12
- _excluded2 = ["placeholder"],
13
- _excluded3 = ["value", "onChange", "placeholder", "warning", "disabled"],
14
- _excluded4 = ["width", "style", "placeholder", "name", "warning", "form", "value", "onChange", "type"],
15
- _excluded5 = ["icon_type", "value", "onChange", "form"],
16
- _excluded6 = ["btn_text", "defaultIcon", "onClick", "form", "children", "icon", "loading", "primary", "hidden", "on_btn_click"],
17
- _excluded7 = ["storeKey", "cb"],
18
- _excluded8 = ["storeKey", "cb"];
19
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
20
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21
- import _regeneratorRuntime from "@babel/runtime/regenerator";
22
- 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; }
23
- 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; }
24
- import * as React from 'react';
25
- import React__default, { lazy, forwardRef, useRef, useState, useEffect, Suspense, Component } from 'react';
26
- import { CloseOutlined, CheckOutlined, LoadingOutlined } from '@ant-design/icons';
27
- import { getMomentRange, isString, get, isEmpty, numberLikeCompare, isNumber, isBoolean, isNull, getPresetOptions, getDictionariesEnumerations, isFunction, isArray, getDualModeOptions, safe_json_parse_arr, safe_json_parse, isNil, formatDateTimeNoSecond, formatDate, getMomentObj, EMPTY_PLACEHOLDER, safe_json_stringify, safe_async_call, sleep } from '@noah-libjs/utils';
28
- import { Space, Button as Button$1, InputNumber, Checkbox, Input, Card, List, Skeleton, Modal } from 'antd';
29
- import dayjs from 'dayjs';
30
- import { Option } from 'rc-select';
31
- import RCTree, { TreeNode } from 'rc-tree';
32
- import { safe_fetch_options } from '@noah-libjs/request';
33
- var ArrayInput = /*#__PURE__*/lazy(function () {
34
- return import('./root.20.js');
35
- });
36
- ArrayInput.DisplayFC = /*#__PURE__*/lazy(function () {
37
- return import('./root.21.js');
38
- });
39
- var MyAutoComplete = /*#__PURE__*/lazy(function () {
40
- return import('./root.23.js');
41
- });
42
- MyAutoComplete.DisplayFC = function (props) {
43
- return /*#__PURE__*/React__default.createElement("span", null, props.value);
44
- };
45
- var MyCheckbox = /*#__PURE__*/lazy(function () {
46
- return import('./root.18.js');
47
- });
48
- var MyCheckbox_Display = /*#__PURE__*/lazy(function () {
49
- return import('./root.19.js');
50
- });
51
- MyCheckbox.DisplayFC = MyCheckbox_Display;
52
- var DatePickerInner = /*#__PURE__*/lazy(function () {
53
- return import('./root.25.js').then(function (r) {
54
- return {
55
- "default": r.DatePicker
56
- };
57
- });
58
- });
59
- var RangePickerInner = /*#__PURE__*/lazy(function () {
60
- return import('./root.25.js').then(function (r) {
61
- return {
62
- "default": r.DatePicker.RangePicker
63
- };
64
- });
65
- });
66
- var MonthPickerInner = /*#__PURE__*/lazy(function () {
67
- return import('./root.25.js').then(function (r) {
68
- return {
69
- "default": r.DatePicker.MonthPicker
70
- };
71
- });
72
- });
73
- var TimePickerInner = /*#__PURE__*/lazy(function () {
74
- return import('./root.25.js').then(function (r) {
75
- return {
76
- "default": r.DatePicker.TimePicker
77
- };
78
- });
79
- });
80
- var CalendarInner = /*#__PURE__*/lazy(function () {
81
- return import('./root.26.js');
82
- });
83
- var DatePicker_L = /*#__PURE__*/React.forwardRef(function (props, ref) {
84
- return /*#__PURE__*/React.createElement(DatePickerInner, _objectSpread(_objectSpread({}, props), {}, {
85
- ref: ref
86
- }));
87
- });
88
- DatePicker_L.displayName = 'TimePicker';
89
- var TimePicker_L = /*#__PURE__*/React.forwardRef(function (props, ref) {
90
- return /*#__PURE__*/React.createElement(TimePickerInner, _objectSpread(_objectSpread({}, props), {}, {
91
- ref: ref
92
- }));
93
- });
94
- TimePicker_L.displayName = 'TimePicker';
95
- var MonthPicker_L = /*#__PURE__*/React.forwardRef(function (props, ref) {
96
- return /*#__PURE__*/React.createElement(MonthPickerInner, _objectSpread(_objectSpread({}, props), {}, {
97
- ref: ref
98
- }));
99
- });
100
- MonthPicker_L.displayName = 'MonthPicker';
101
- var RangePicker_L = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
102
- return /*#__PURE__*/React__default.createElement(RangePickerInner, _objectSpread(_objectSpread({
103
- ranges: getMomentRange()
104
- }, props), {}, {
105
- ref: ref
106
- }));
107
- });
108
- RangePicker_L.displayName = 'RangePicker';
109
- var Calendar_L = /*#__PURE__*/React.forwardRef(function (props, ref) {
110
- return /*#__PURE__*/React.createElement(CalendarInner, _objectSpread({}, props));
111
- });
112
- Calendar_L.displayName = 'TimePicker';
113
- var SelectOption_L = Option;
114
- var Inner$b = /*#__PURE__*/React__default.lazy(function () {
115
- return import('./root.12.js');
116
- });
117
- function Select_(props) {
118
- return /*#__PURE__*/React__default.createElement(Inner$b, _objectSpread({}, props));
119
- }
120
- var Select_L = Object.assign(Select_, {
121
- Option: SelectOption_L
122
- });
123
- var Inner$a = /*#__PURE__*/React.lazy(function () {
124
- return import('antd/es/auto-complete');
125
- });
126
- var AutoComplete_ = /*#__PURE__*/React.forwardRef(function (props, ref) {
127
- return /*#__PURE__*/React.createElement(Inner$a, _objectSpread(_objectSpread({}, props), {}, {
128
- ref: ref
129
- }));
130
- });
131
- AutoComplete_.displayName = 'AutoComplete';
132
- var AutoComplete_L = Object.assign(AutoComplete_, {
133
- Option: SelectOption_L
134
- });
135
- var Inner$9 = /*#__PURE__*/React.lazy(function () {
136
- return import('./root.2.js');
137
- });
138
- var ColorPicker_L = /*#__PURE__*/React.forwardRef(function (props, ref) {
139
- return /*#__PURE__*/React.createElement(Inner$9, _objectSpread({}, props));
140
- });
141
- ColorPicker_L.displayName = 'ColorPicker';
142
- var Inner$8 = /*#__PURE__*/React__default.lazy(function () {
143
- return import('./root.3.js');
144
- });
145
- var FormItemInner = /*#__PURE__*/React__default.lazy(function () {
146
- return import('./root.4.js');
147
- });
148
- function Form_(props) {
149
- return /*#__PURE__*/React__default.createElement(Inner$8, _objectSpread({}, props));
150
- }
151
- var Form_L = Object.assign(Form_, {
152
- Item: FormItemInner
153
- });
154
- var Inner$7 = /*#__PURE__*/React__default.lazy(function () {
155
- return import('./root.5.js');
156
- });
157
- var ButtonInner = /*#__PURE__*/React__default.lazy(function () {
158
- return import('./root.6.js');
159
- });
160
- var Dropdown_ = function Dropdown_(props) {
161
- return /*#__PURE__*/React__default.createElement(Inner$7, _objectSpread({}, props));
162
- };
163
- function Button(props) {
164
- return /*#__PURE__*/React__default.createElement(ButtonInner, _objectSpread({}, props));
165
- }
166
- var Dropdown_L = Object.assign(Dropdown_, {
167
- Button: Button
168
- });
169
- var Inner$6 = /*#__PURE__*/React__default.lazy(function () {
170
- return import('./root.7.js');
171
- });
172
- function Table_L(props) {
173
- return /*#__PURE__*/React__default.createElement(Inner$6, _objectSpread({}, props));
174
- }
175
- var Inner$5 = /*#__PURE__*/React__default.lazy(function () {
176
- return import('./root.8.js');
177
- });
178
- var DirectoryTreeInner = /*#__PURE__*/React__default.lazy(function () {
179
- return import('./root.9.js');
180
- });
181
- var Tree_ = /*#__PURE__*/forwardRef(function Tree_(props, ref) {
182
- return /*#__PURE__*/React__default.createElement(Inner$5, _objectSpread(_objectSpread({}, props), {}, {
183
- ref: ref
184
- }));
185
- });
186
- function DirectoryTree(props) {
187
- return /*#__PURE__*/React__default.createElement(DirectoryTreeInner, _objectSpread({}, props));
188
- }
189
- //@ts-ignore
190
- var Tree_L = Object.assign(Tree_, {
191
- TreeNode: TreeNode,
192
- DirectoryTree: DirectoryTree,
193
- RCTree: RCTree
194
- });
195
- var Inner$4 = /*#__PURE__*/React__default.lazy(function () {
196
- return import('./root.10.js');
197
- });
198
- function Modal_L(props) {
199
- return /*#__PURE__*/React__default.createElement(Inner$4, _objectSpread({}, props));
200
- }
201
- var Inner$3 = /*#__PURE__*/React__default.lazy(function () {
202
- return import('./root.11.js');
203
- });
204
- function Pagination_L(props) {
205
- return /*#__PURE__*/React__default.createElement(Inner$3, _objectSpread({}, props));
206
- }
207
- var Inner$2 = /*#__PURE__*/React__default.lazy(function () {
208
- return import('./root.13.js');
209
- });
210
- function TreeSelect_L(props) {
211
- return /*#__PURE__*/React__default.createElement(Inner$2, _objectSpread({}, props));
212
- }
213
- var Inner$1 = /*#__PURE__*/React__default.lazy(function () {
214
- return import('./root.14.js');
215
- });
216
- var GroupInner = /*#__PURE__*/React__default.lazy(function () {
217
- return import('./root.15.js');
218
- });
219
- function Checkbox_(props) {
220
- return /*#__PURE__*/React__default.createElement(Inner$1, _objectSpread({}, props));
221
- }
222
- var Checkbox_L = Object.assign(Checkbox_, {
223
- Group: GroupInner
224
- });
225
- var QRCode_L = /*#__PURE__*/lazy(function () {
226
- return import('./root.16.js');
227
- });
228
- var Switch_L = /*#__PURE__*/lazy(function () {
229
- return import('antd/es/switch');
230
- });
231
- var MyColor = function MyColor(props) {
232
- var value = props.value,
233
- _onChange = props.onChange,
234
- size = props.size,
235
- _props$allowClear = props.allowClear,
236
- allowClear = _props$allowClear === void 0 ? true : _props$allowClear;
237
- return /*#__PURE__*/React__default.createElement(Space.Compact, null, /*#__PURE__*/React__default.createElement(ColorPicker_L, {
238
- size: size,
239
- value: isString(value) ? value : undefined,
240
- onChange: function onChange(value, css) {
241
- return _onChange === null || _onChange === void 0 ? void 0 : _onChange(css);
242
- }
243
- }), allowClear ? /*#__PURE__*/React__default.createElement(Button$1, {
244
- size: size,
245
- icon: /*#__PURE__*/React__default.createElement(CloseOutlined, null),
246
- onClick: function onClick() {
247
- return _onChange === null || _onChange === void 0 ? void 0 : _onChange(null);
248
- }
249
- }) : null);
250
- };
251
- MyColor.DisplayFC = function (props) {
252
- return /*#__PURE__*/React__default.createElement("div", {
253
- style: {
254
- display: 'inline-block',
255
- width: 24,
256
- height: 24,
257
- background: props.value
258
- }
259
- });
260
- };
261
- function styleInject(css, ref) {
262
- if (ref === void 0) ref = {};
263
- var insertAt = ref.insertAt;
264
- if (!css || typeof document === 'undefined') {
265
- return;
266
- }
267
- var head = document.head || document.getElementsByTagName('head')[0];
268
- var style = document.createElement('style');
269
- style.type = 'text/css';
270
- if (insertAt === 'top') {
271
- if (head.firstChild) {
272
- head.insertBefore(style, head.firstChild);
273
- } else {
274
- head.appendChild(style);
275
- }
276
- } else {
277
- head.appendChild(style);
278
- }
279
- if (style.styleSheet) {
280
- style.styleSheet.cssText = css;
281
- } else {
282
- style.appendChild(document.createTextNode(css));
283
- }
284
- }
285
- var css_248z = ".theme_warning__83Ww2 {\n color: orange !important;\n}\n.theme_warning__83Ww2 input {\n color: orange !important;\n}\n.theme_error__i4RPC {\n color: red !important;\n}\n.theme_error__i4RPC input {\n color: red !important;\n}\n";
286
- var theme = {
287
- "warning": "theme_warning__83Ww2",
288
- "error": "theme_error__i4RPC"
289
- };
290
- styleInject(css_248z);
291
- function get_status_cls(status) {
292
- if (status === 'error') return theme['error'];
293
- if (status === 'warning') return theme['warning'];
294
- }
295
- function getInputStyle() {
296
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
297
- var _props$style = props.style,
298
- style = _props$style === void 0 ? {} : _props$style,
299
- width = props.width,
300
- inputWidth = props.inputWidth,
301
- status = props.status;
302
- if (width) {
303
- style.width = style.width || width;
304
- }
305
- if (inputWidth) {
306
- style.minWidth = style.minWidth || inputWidth;
307
- }
308
- if (status === 'error') {
309
- style.color = 'red !important';
310
- }
311
- if (status === 'warning') {
312
- style.color = 'yellow !important';
313
- }
314
- // if (isInt(popupMatchSelectWidth))
315
- // style.width = style.width || (popupMatchSelectWidth / 2)
316
- // style.width = style.width ?? '100%'
317
- return _objectSpread({}, style);
318
- }
319
- function isUrl(string) {
320
- var protocolRE = /^(?:\w+:)?\/\/(\S+)$/;
321
- // const domainRE = /^[^\s\.]+\.\S{2,}$/;
322
- if (typeof string !== 'string') return false;
323
- return protocolRE.test(string);
324
- }
325
- var getArray = function getArray(arr) {
326
- var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
327
- if (Array.isArray(arr)) return arr;
328
- return defaultValue;
329
- };
330
- function getFormat(format) {
331
- var dateFormat;
332
- switch (format) {
333
- case 'date':
334
- dateFormat = 'YYYY-MM-DD';
335
- break;
336
- case 'time':
337
- dateFormat = 'HH:mm:ss';
338
- break;
339
- case 'dateTime':
340
- dateFormat = 'YYYY-MM-DD HH:mm:ss';
341
- break;
342
- case 'week':
343
- dateFormat = 'YYYY-w';
344
- break;
345
- case 'year':
346
- dateFormat = 'YYYY';
347
- break;
348
- case 'quarter':
349
- dateFormat = 'YYYY-Q';
350
- break;
351
- case 'month':
352
- dateFormat = 'YYYY-MM';
353
- break;
354
- default:
355
- // dateTime
356
- if (typeof format === 'string') {
357
- dateFormat = format;
358
- } else {
359
- dateFormat = 'YYYY-MM-DD';
360
- }
361
- }
362
- return dateFormat;
363
- }
364
- function getParamByName(name) {
365
- var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.href;
366
- name = name.replace(/[\[\]]/g, '\\$&');
367
- var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
368
- results = regex.exec(url);
369
- if (!results) return null;
370
- if (!results[2]) return '';
371
- return decodeURIComponent(results[2].replace(/\+/g, ' '));
372
- }
373
- function handle_form_error(error, form) {
374
- var err_filed = get(error, 'errorFields[0]');
375
- if (err_filed) {
376
- var name = err_filed.name,
377
- errors = err_filed.errors;
378
- if (name) {
379
- form === null || form === void 0 || form.scrollToField(name, {
380
- behavior: 'smooth',
381
- block: 'center'
382
- });
383
- }
384
- return _objectSpread(_objectSpread({}, err_filed), {}, {
385
- text: isEmpty(errors) ? null : errors.join(',')
386
- });
387
- }
388
- return null;
389
- }
390
- function form_validate(form) {
391
- return new Promise(function (res, rej) {
392
- if (!form) {
393
- rej({
394
- text: 'form 不存在'
395
- });
396
- return;
397
- }
398
- form.validateFields().then(function () {
399
- var formData = form.getFieldsValue();
400
- res(formData);
401
- })["catch"](function (error) {
402
- var first_err = handle_form_error(error, form);
403
- rej(first_err);
404
- });
405
- });
406
- }
407
- function fuck_focus(props) {
408
- var onBlur = props.onBlur;
409
- var forcusInfo = useRef({});
410
- function child_focus() {
411
- var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
412
- forcusInfo.current = {
413
- index: index,
414
- type: 'child'
415
- };
416
- }
417
- function child_blur() {
418
- var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
419
- forcusInfo.current = {
420
- index: undefined,
421
- type: undefined
422
- };
423
- }
424
- function parent_blur(e) {
425
- var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
426
- setTimeout(function () {
427
- if (forcusInfo.current.index === index && forcusInfo.current.type === 'child') return;
428
- forcusInfo.current = {
429
- index: undefined,
430
- type: undefined
431
- };
432
- onBlur === null || onBlur === void 0 || onBlur(e);
433
- }, 10);
434
- }
435
- function parent_focus() {
436
- var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
437
- } // setTimeout(() => {
438
- // forcusInfo.current = { index, type: 'parent' }
439
- // }, 10);
440
- return {
441
- child_blur: child_blur,
442
- child_focus: child_focus,
443
- parent_blur: parent_blur,
444
- parent_focus: parent_focus
445
- };
446
- }
447
- function get_check_invert_values(configs) {
448
- if (!Array.isArray(configs)) return {};
449
- var children = configs.filter(function (_) {
450
- return ['MC', 'MA', 'MS', 'MSW'].includes(_ === null || _ === void 0 ? void 0 : _.inputType) || Array.isArray(_ === null || _ === void 0 ? void 0 : _.children);
451
- });
452
- var check_invert_values = children.filter(function (_) {
453
- return !(_ !== null && _ !== void 0 && _.disabled_check);
454
- }).reduce(function (a, item, idx) {
455
- // const name = SMchc_FormDescriptions.get_form_item_name_raw(item)
456
- var cArr = item === null || item === void 0 ? void 0 : item.children;
457
- if (Array.isArray(cArr)) {
458
- var cObj = {};
459
- cObj = get_check_invert_values(cArr);
460
- return _objectSpread(_objectSpread({}, a), cObj);
461
- } else {
462
- var _item$inputProps, _ref, _item$name;
463
- var props = _objectSpread(_objectSpread({}, (_item$inputProps = item === null || item === void 0 ? void 0 : item.inputProps) !== null && _item$inputProps !== void 0 ? _item$inputProps : {}), {}, {
464
- config: item
465
- });
466
- var name = (_ref = (_item$name = item === null || item === void 0 ? void 0 : item.name) !== null && _item$name !== void 0 ? _item$name : item === null || item === void 0 ? void 0 : item.key) !== null && _ref !== void 0 ? _ref : item === null || item === void 0 ? void 0 : item.dataIndex;
467
- var inputType = item === null || item === void 0 ? void 0 : item.inputType;
468
- var options = parse_MC_option(props);
469
- if (inputType === 'MSW') {
470
- var _props$checked_value, _props$unchecked_valu;
471
- return _objectSpread(_objectSpread({}, a), {}, _defineProperty({}, "".concat(name), [(_props$checked_value = props.checked_value) !== null && _props$checked_value !== void 0 ? _props$checked_value : true, (_props$unchecked_valu = props.unchecked_value) !== null && _props$unchecked_valu !== void 0 ? _props$unchecked_valu : false]));
472
- }
473
- if (inputType === 'MA' && isEmpty(options)) {
474
- return a;
475
- }
476
- var firstOption = options[0];
477
- return _objectSpread(_objectSpread({}, a), {}, _defineProperty({}, "".concat(name), [parse_MC_value(props, [firstOption]), null, {
478
- props: props,
479
- options: options
480
- }]));
481
- }
482
- }, {});
483
- return check_invert_values;
484
- }
485
- function getMarshal(props) {
486
- if (!props) return 1;
487
- var marshal = props.marshal,
488
- value = props.value,
489
- uniqueKey = props.uniqueKey;
490
- if (marshal === undefined && uniqueKey !== undefined) {
491
- return 0;
492
- }
493
- var _marshal = marshal !== null && marshal !== void 0 ? marshal : 1;
494
- if (typeof _marshal === 'number') return _marshal;
495
- var m = typeof value !== 'number' && (_marshal !== null && _marshal !== void 0 ? _marshal : true);
496
- return Number(m);
497
- }
498
- function parse_MC_value(props, changedValue) {
499
- var _props$config, _changedValue$, _changedValue$2;
500
- var _props$linker = props.linker,
501
- linker = _props$linker === void 0 ? ',' : _props$linker;
502
- if (((_props$config = props.config) === null || _props$config === void 0 ? void 0 : _props$config.inputType) === 'MA') return changedValue === null || changedValue === void 0 || (_changedValue$ = changedValue[0]) === null || _changedValue$ === void 0 ? void 0 : _changedValue$.value;
503
- var marshal = getMarshal(props);
504
- var type = get_mode(props);
505
- if (!changedValue.length) return null;
506
- if (marshal) {
507
- var frugal_value = process_frugal_local(props, changedValue);
508
- return marshal === 2 ? frugal_value : JSON.stringify(frugal_value);
509
- }
510
- if (type === 'multiple' || type === 'tags') return changedValue.map(function (_) {
511
- return _.value;
512
- }).join(linker);
513
- return (_changedValue$2 = changedValue[0]) === null || _changedValue$2 === void 0 ? void 0 : _changedValue$2.value;
514
- }
515
- function check_multiple(props) {
516
- var type = get_mode(props);
517
- return ['tags', 'multiple'].includes(type);
518
- }
519
- function get_mode(props) {
520
- var _props$mode;
521
- return (_props$mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props$mode !== void 0 ? _props$mode : props.type;
522
- }
523
- function use_options(props) {
524
- var _data$;
525
- var fetch_options = props.fetch_options,
526
- optionKey = props.optionKey,
527
- _options = props.options,
528
- uniqueKey = props.uniqueKey,
529
- form = props.form,
530
- _props$linker2 = props.linker,
531
- linker = _props$linker2 === void 0 ? ',' : _props$linker2,
532
- frugal = props.frugal,
533
- display_linker = props.display_linker;
534
- var _useState = useState([]),
535
- _useState2 = _slicedToArray(_useState, 2),
536
- options = _useState2[0],
537
- set_options = _useState2[1];
538
- var _useState3 = useState(false),
539
- _useState4 = _slicedToArray(_useState3, 2),
540
- loading = _useState4[0],
541
- setLoading = _useState4[1];
542
- var _useState5 = useState([]),
543
- _useState6 = _slicedToArray(_useState5, 2),
544
- data = _useState6[0],
545
- setData = _useState6[1];
546
- var value = props.value;
547
- var marshal = getMarshal(props);
548
- var type = get_mode(props);
549
- useEffect(function () {
550
- var safeData = getData(value, options, marshal, type, linker, frugal);
551
- setData(safeData);
552
- }, [value, options]);
553
- useEffect(function () {
554
- if (fetch_options) {
555
- setLoading(true);
556
- safe_fetch_options(fetch_options, form).then(set_options)["finally"](function () {
557
- return setLoading(false);
558
- });
559
- }
560
- }, []);
561
- useEffect(function () {
562
- if (!fetch_options) {
563
- set_options(parse_MC_option(props));
564
- }
565
- }, [optionKey, _options, uniqueKey]);
566
- var is_multiple = check_multiple(props);
567
- // mchcLogger.log('MySelect', { data, options, props })
568
- var label = is_multiple ? data.map(function (_) {
569
- return _.label;
570
- }).join(display_linker !== null && display_linker !== void 0 ? display_linker : linker) : (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.label;
571
- var safe_node = label !== null && label !== void 0 ? label : '';
572
- var display_node = /*#__PURE__*/React__default.createElement("span", {
573
- title: safe_node
574
- }, loading ? '数据加载中...' : safe_node);
575
- return {
576
- loading: loading,
577
- options: options,
578
- data: data,
579
- setData: setData,
580
- display_node: display_node
581
- };
582
- }
583
- function process_frugal_local(props, changedValue) {
584
- var frugal = props.frugal;
585
- if (!frugal) return changedValue;
586
- console.log('frugal_value local', changedValue[0]);
587
- return changedValue[0];
588
- }
589
- function process_frugal_remote(value, frugal) {
590
- if (!frugal) return safe_json_parse_arr(value, value);
591
- var frugal_value = safe_json_parse(value);
592
- console.log('frugal_value remote', frugal_value);
593
- if (isNil(frugal_value === null || frugal_value === void 0 ? void 0 : frugal_value.value)) return [];
594
- return [frugal_value];
595
- }
596
- function getData(value, options, marshal, type) {
597
- var l = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ',';
598
- var frugal = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
599
- var unMarshalData = process_frugal_remote(value, frugal);
600
- var splitValue = function splitValue() {
601
- return isString(value) ? value.split(l).filter(function (_) {
602
- return _;
603
- }) : [];
604
- };
605
- var v = [1, 2].includes(marshal) ? unMarshalData : (type === 'multiple' || type === 'tags') && isString(value) ? splitValue().map(function (value) {
606
- var _options$find;
607
- return (_options$find = options.find(function (_) {
608
- return numberLikeCompare(value, _.value);
609
- })) !== null && _options$find !== void 0 ? _options$find : {
610
- value: value,
611
- label: value
612
- };
613
- }) : value;
614
- var safeData = Array.isArray(v) ? v : isNumber(v) || isString(v) || isBoolean(v) || isNull(v)
615
- // ? options.filter(_ => _.value === v)
616
- ? options.filter(function (_) {
617
- return numberLikeCompare(_.value, v);
618
- }) : [];
619
- // mchcLogger.log('MySelect', { numberLikeCompare, v, options })
620
- return safeData;
621
- }
622
- function parse_MC_option(props) {
623
- var _props$marshal, _ref2, _ref3;
624
- if (!props) return [];
625
- props.type;
626
- var marshal = (_props$marshal = props.marshal) !== null && _props$marshal !== void 0 ? _props$marshal : 1;
627
- var optionKey = props.optionKey;
628
- var preOptions = optionKey ? getPresetOptions(optionKey, marshal === 0) : null;
629
- var dicOptions = parse_MC_dict_options(props);
630
- var options = (_ref2 = (_ref3 = dicOptions !== null && dicOptions !== void 0 ? dicOptions : preOptions) !== null && _ref3 !== void 0 ? _ref3 : parse_MC_string_options(props)) !== null && _ref2 !== void 0 ? _ref2 : defaultOptions;
631
- // const multiple_compatible_options = options.map(_ => ({ value:}))
632
- return options;
633
- }
634
- function parse_MC_dict_options(props) {
635
- if (!(props !== null && props !== void 0 && props.uniqueKey)) return;
636
- var uniqueKey = props.uniqueKey,
637
- useString = props.useString;
638
- var fixed_uniqueKey = uniqueKey.includes('.') ? uniqueKey : "uniqueKey.".concat(uniqueKey);
639
- var enums = getDictionariesEnumerations(fixed_uniqueKey);
640
- if (!enums.length) return;
641
- var options = enums.sort(function (a, b) {
642
- return a.id - b.id;
643
- }).map(function (e) {
644
- var _e$value, _e$note;
645
- var dict_value = (_e$value = e.value) !== null && _e$value !== void 0 ? _e$value : e.note;
646
- var value = useString ? (_e$note = e.note) !== null && _e$note !== void 0 ? _e$note : e.label : dict_value;
647
- return {
648
- label: e.label,
649
- value: value
650
- };
651
- });
652
- return options;
653
- }
654
- function parse_MC_string_options(props) {
655
- var _config$inputType;
656
- if (!props) return [];
657
- var useString = props.useString,
658
- type = props.type,
659
- config = props.config,
660
- startIndex = props.startIndex,
661
- sp = props.sp;
662
- var _options = isFunction(props.options) ? props.options() : props.options;
663
- if (!isString(_options)) return isArray(_options) ? _options.map(function (_) {
664
- return isString(_) ? {
665
- value: _,
666
- label: _
667
- } : _;
668
- }) : [];
669
- var input_type = (_config$inputType = config === null || config === void 0 ? void 0 : config.inputType) !== null && _config$inputType !== void 0 ? _config$inputType : 'MC';
670
- var multiple = type === 'multiple';
671
- var marshal = getMarshal(props);
672
- var options = getDualModeOptions(_options, {
673
- sp: sp,
674
- useString: multiple && !marshal || useString,
675
- start: startIndex
676
- });
677
- return input_type === 'MA' ? options[1] : options[0];
678
- }
679
- function displayValue(_options, value) {
680
- var l = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ',';
681
- var _value = _options.filter(function (o) {
682
- return value.find(function (v) {
683
- return v.value == o.value;
684
- });
685
- });
686
- return _value.map(function (_) {
687
- return _.label;
688
- }).join(l);
689
- }
690
- function get_unknown_conf(props) {
691
- var showUnknown = props.showUnknown,
692
- unknown = props.unknown;
693
- return showUnknown || unknown;
694
- }
695
- var defaultOptions = [];
696
- var defaultGetPopupContainer$1 = function defaultGetPopupContainer$1() {
697
- return document.body;
698
- };
699
- var UNKNOWN_TIME_SYMBOL = '1970-01-01 00:00:00';
700
- function formatDatePickerProps(props) {
701
- var _data$getPopupContain;
702
- var data = _objectSpread({}, props);
703
- if (data.format === undefined) {
704
- if (props.time_only) {
705
- data.format = 'HH:mm';
706
- } else {
707
- data.format = data.showTime ? formatDateTimeNoSecond.format : formatDate.format;
708
- }
709
- }
710
- data.getPopupContainer = (_data$getPopupContain = data.getPopupContainer) !== null && _data$getPopupContain !== void 0 ? _data$getPopupContain : defaultGetPopupContainer$1;
711
- return data;
712
- }
713
- function getIsUnknown(props) {
714
- var value = props.value;
715
- var symbolValue = handleChangeValue$1(props, UNKNOWN_TIME_SYMBOL);
716
- var _value = handleChangeValue$1(props, value);
717
- var isUnknown = _value === symbolValue && get_unknown_conf(props);
718
- return isUnknown;
719
- }
720
- var handleChangeValue$1 = function handleChangeValue$1(_ref4, date) {
721
- var valueType = _ref4.valueType,
722
- format = _ref4.format;
723
- var result = date;
724
- if (valueType && date) {
725
- result = dayjs(date).format(valueType);
726
- }
727
- if (format && date) {
728
- result = dayjs(date).format(format);
729
- }
730
- return result;
731
- };
732
- var DisplayFC$3 = function DisplayFC$3(_props) {
733
- var props = formatDatePickerProps(_props);
734
- var value = props.value,
735
- format = props.format;
736
- if (!value) return null;
737
- var isUnknown = getIsUnknown(props);
738
- var m = getMomentObj(value);
739
- return /*#__PURE__*/React__default.createElement("span", null, isUnknown ? '不详' : m.isValid() ? m.format(format) : EMPTY_PLACEHOLDER);
740
- };
741
- var MyDatePicker = /*#__PURE__*/lazy(function () {
742
- return import('./root.24.js');
743
- });
744
- MyDatePicker.DisplayFC = DisplayFC$3;
745
- var defaultGetPopupContainer = function defaultGetPopupContainer() {
746
- return document.body;
747
- };
748
- function areEqual(prevProps, nextProps) {
749
- if (prevProps.value !== nextProps.value) {
750
- return false;
751
- }
752
- return true;
753
- }
754
- function process_value_remote(value, marshal, linker) {
755
- var _value = value;
756
- var safeValue = [];
757
- if (isArray(_value)) return _value;
758
- switch (marshal) {
759
- case 0:
760
- if (isString(_value)) safeValue = _value.split(linker);
761
- break;
762
- case 1:
763
- if (isString(_value)) safeValue = safe_json_parse_arr(_value);
764
- break;
765
- default:
766
- if (isArray(_value)) safeValue = _value;
767
- break;
768
- }
769
- return Array.isArray(safeValue) ? safeValue : [];
770
- }
771
- function format_range_props(props) {
772
- var _data$format, _data$marshal, _data$linker, _data$getPopupContain2;
773
- var data = _objectSpread({}, props);
774
- data.format = (_data$format = data.format) !== null && _data$format !== void 0 ? _data$format : 'YYYY-MM-DD';
775
- data.marshal = (_data$marshal = data.marshal) !== null && _data$marshal !== void 0 ? _data$marshal : 1;
776
- data.linker = (_data$linker = data.linker) !== null && _data$linker !== void 0 ? _data$linker : ',';
777
- var _value = props.value;
778
- var safeValue = process_value_remote(_value, data.marshal, data.linker);
779
- data.value = safeValue.map(function (_) {
780
- return dayjs(_, data.format);
781
- });
782
- data.display_value = safeValue;
783
- data.getPopupContainer = (_data$getPopupContain2 = data.getPopupContainer) !== null && _data$getPopupContain2 !== void 0 ? _data$getPopupContain2 : defaultGetPopupContainer;
784
- return data;
785
- }
786
- var handleChangeValue = function handleChangeValue(_ref5, date) {
787
- var format = _ref5.format,
788
- marshal = _ref5.marshal,
789
- linker = _ref5.linker;
790
- if (!date) return null;
791
- var format_date = date.map(function (_) {
792
- var _$format;
793
- return (_$format = _ === null || _ === void 0 ? void 0 : _.format(format)) !== null && _$format !== void 0 ? _$format : null;
794
- });
795
- console.log('format change', {
796
- marshal: marshal,
797
- format_date: format_date
798
- });
799
- switch (marshal) {
800
- case 0:
801
- return format_date.join(linker);
802
- case 1:
803
- return safe_json_stringify(format_date);
804
- default:
805
- return format_date;
806
- }
807
- };
808
- var DisplayFC$2 = function DisplayFC$2(_props) {
809
- var props = format_range_props(_props);
810
- var linker = props.linker;
811
- var disPlay_value = props.display_value;
812
- return disPlay_value.join(linker);
813
- };
814
- var MyRangePicker = /*#__PURE__*/lazy(function () {
815
- return import('./root.22.js');
816
- });
817
- var MyRangeDate = function MyRangeDate(props) {
818
- var placeholder = props.placeholder,
819
- rest = _objectWithoutProperties(props, _excluded);
820
- return /*#__PURE__*/React__default.createElement(MyRangePicker
821
- // ranges={getMomentRange(dayjs) as any}
822
- , _objectSpread({
823
- // ranges={getMomentRange(dayjs) as any}
824
- format: "YYYY-MM-DD",
825
- style: {
826
- width: 230
827
- }
828
- }, rest));
829
- };
830
- var MyRangeDateTime = function MyRangeDateTime(props) {
831
- var placeholder = props.placeholder,
832
- rest = _objectWithoutProperties(props, _excluded2);
833
- return /*#__PURE__*/React__default.createElement(MyRangePicker
834
- // ranges={getMomentRange(dayjs) as any}
835
- , _objectSpread({
836
- // ranges={getMomentRange(dayjs) as any}
837
- showTime: {
838
- defaultValue: [dayjs('00:00', 'HH:mm'), dayjs('23:59', 'HH:mm')]
839
- },
840
- format: "YYYY-MM-DD HH:mm",
841
- style: {
842
- width: 320
843
- }
844
- }, rest));
845
- };
846
- MyRangeDate.DisplayFC = DisplayFC$2;
847
- MyRangeDateTime.DisplayFC = DisplayFC$2;
848
- MyRangePicker.DisplayFC = DisplayFC$2;
849
-
850
- // .ant-input-affix-wrapper-borderless
851
- var UNKNOWN_NUMBER_SYMBOL = 2147483647;
852
- var MyInputNumber = function MyInputNumber_(props) {
853
- var value = props.value,
854
- _onChange2 = props.onChange,
855
- placeholder = props.placeholder,
856
- warning = props.warning,
857
- disabled = props.disabled,
858
- others = _objectWithoutProperties(props, _excluded3);
859
- var _style = getInputStyle(props);
860
- var unkown_conf = get_unknown_conf(props);
861
- var isUnkown = unkown_conf && value === UNKNOWN_NUMBER_SYMBOL;
862
- if (unkown_conf) {
863
- _style.flex = 1;
864
- }
865
- // const node = <Input disabled={disabled} {...others} placeholder={placeholder ?? '请输入数值'} allowClear style={_style} type='number' value={isUnkown ? undefined : value!} onChange={e => onChange?.(e.target.value)} />
866
- var node = /*#__PURE__*/React__default.createElement(InputNumber, _objectSpread(_objectSpread({
867
- className: get_status_cls(props.status),
868
- controls: false
869
- }, others), {}, {
870
- disabled: disabled,
871
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : '请输入',
872
- style: _objectSpread({
873
- width: '100%'
874
- }, _style),
875
- value: isUnkown ? undefined : value,
876
- onChange: _onChange2
877
- }));
878
- return unkown_conf ? /*#__PURE__*/React__default.createElement("span", {
879
- style: {
880
- display: 'flex',
881
- alignItems: 'center'
882
- }
883
- }, node, /*#__PURE__*/React__default.createElement("span", {
884
- style: {
885
- marginLeft: 6
886
- }
887
- }, /*#__PURE__*/React__default.createElement(Checkbox, {
888
- disabled: disabled,
889
- checked: isUnkown,
890
- skipGroup: true,
891
- onChange: function onChange(e) {
892
- var _value = e.target.checked ? UNKNOWN_NUMBER_SYMBOL : null;
893
- _onChange2 === null || _onChange2 === void 0 || _onChange2(_value);
894
- }
895
- }), /*#__PURE__*/React__default.createElement("span", {
896
- style: {
897
- marginLeft: 6
898
- }
899
- }, "\u4E0D\u8BE6"))) : node;
900
- };
901
- function DisplayFC$1(props) {
902
- var value = props.value;
903
- var unkown_conf = get_unknown_conf(props);
904
- var _style = getInputStyle(props);
905
- var isUnkown = unkown_conf && value === UNKNOWN_NUMBER_SYMBOL;
906
- if (isUnkown) {
907
- return /*#__PURE__*/React__default.createElement("span", null, "\u4E0D\u8BE6");
908
- }
909
- return /*#__PURE__*/React__default.createElement("span", {
910
- title: 'DisplayFC',
911
- style: _style
912
- }, value);
913
- }
914
- MyInputNumber.DisplayFC = DisplayFC$1;
915
- var MyInput = /*#__PURE__*/forwardRef(function (props, myRef) {
916
- var width = props.width,
917
- _props$style2 = props.style,
918
- style = _props$style2 === void 0 ? {} : _props$style2,
919
- placeholder = props.placeholder,
920
- name = props.name,
921
- warning = props.warning,
922
- form = props.form,
923
- value = props.value,
924
- _onChange3 = props.onChange,
925
- type = props.type,
926
- others = _objectWithoutProperties(props, _excluded4);
927
- if (type === 'number') return /*#__PURE__*/React__default.createElement(MyInputNumber, _objectSpread({}, props));
928
- var _useState7 = useState(value),
929
- _useState8 = _slicedToArray(_useState7, 2),
930
- _value = _useState8[0],
931
- set_value = _useState8[1];
932
- useEffect(function () {
933
- set_value(value);
934
- }, [value]);
935
- var _style = getInputStyle(props);
936
- return /*#__PURE__*/React__default.createElement(Input, _objectSpread(_objectSpread({
937
- ref: myRef,
938
- value: _value,
939
- onChange: function onChange(e) {
940
- var v = e.target.value;
941
- set_value(v);
942
- _onChange3 === null || _onChange3 === void 0 || _onChange3(v);
943
- },
944
- classNames: {
945
- input: get_status_cls(props.status)
946
- },
947
- style: _style
948
- }, others), {}, {
949
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : '请输入'
950
- }));
951
- });
952
- MyInput.DisplayFC = function (props) {
953
- return props.value;
954
- };
955
- function DisplayFC(props) {
956
- var _use_options = use_options(props),
957
- loading = _use_options.loading,
958
- data = _use_options.data,
959
- display_node = _use_options.display_node;
960
- return display_node;
961
- }
962
- var Inner = /*#__PURE__*/lazy(function () {
963
- return import('./root.17.js');
964
- });
965
- var MySelect = Object.assign(Inner, {
966
- DisplayFC: DisplayFC
967
- });
968
- var MySwitch = function MySwitch(props) {
969
- var _props$checked_value2 = props.checked_value,
970
- checked_value = _props$checked_value2 === void 0 ? true : _props$checked_value2,
971
- _props$unchecked_valu2 = props.unchecked_value,
972
- unchecked_value = _props$unchecked_valu2 === void 0 ? false : _props$unchecked_valu2,
973
- _onChange4 = props.onChange,
974
- value = props.value;
975
- if (props.switch_type === 'checkbox') return /*#__PURE__*/React__default.createElement(MyCheckbox, _objectSpread(_objectSpread({}, props), {}, {
976
- options: [{
977
- value: checked_value
978
- }],
979
- marshal: 0,
980
- value: value === checked_value ? checked_value : null,
981
- onChange: function onChange(v) {
982
- console.log('switch', v);
983
- _onChange4 === null || _onChange4 === void 0 || _onChange4(v === null ? unchecked_value : checked_value);
984
- }
985
- }));
986
- return /*#__PURE__*/React__default.createElement(Switch_L, _objectSpread(_objectSpread({}, props), {}, {
987
- value: value === checked_value,
988
- onChange: function onChange(v) {
989
- _onChange4 === null || _onChange4 === void 0 || _onChange4(v !== true ? unchecked_value : checked_value);
990
- }
991
- }));
992
- };
993
- MySwitch.DisplayFC = function (_ref6) {
994
- var _ref7, _ref8;
995
- var value = _ref6.value,
996
- checkedChildren = _ref6.checkedChildren,
997
- checked_text = _ref6.checked_text,
998
- unCheckedChildren = _ref6.unCheckedChildren,
999
- unchecked_text = _ref6.unchecked_text;
1000
- if (isNil(value)) return '';
1001
- return value ? (_ref7 = checkedChildren !== null && checkedChildren !== void 0 ? checkedChildren : checked_text) !== null && _ref7 !== void 0 ? _ref7 : /*#__PURE__*/React__default.createElement(CheckOutlined, null) : (_ref8 = unCheckedChildren !== null && unCheckedChildren !== void 0 ? unCheckedChildren : unchecked_text) !== null && _ref8 !== void 0 ? _ref8 : /*#__PURE__*/React__default.createElement(CloseOutlined, null);
1002
- };
1003
- function use_icon(props) {
1004
- var _props$icon_type = props.icon_type,
1005
- icon_type = _props$icon_type === void 0 ? '' : _props$icon_type,
1006
- value = props.value,
1007
- onChange = props.onChange,
1008
- form = props.form,
1009
- others = _objectWithoutProperties(props, _excluded5);
1010
- var _useState9 = useState({}),
1011
- _useState10 = _slicedToArray(_useState9, 2),
1012
- all_icons = _useState10[0],
1013
- set_all_icons = _useState10[1];
1014
- var _useState11 = useState([]),
1015
- _useState12 = _slicedToArray(_useState11, 2),
1016
- all_keys = _useState12[0],
1017
- set_all_keys = _useState12[1];
1018
- var QuestionOutlined = all_icons['QuestionOutlined'] || function () {
1019
- return /*#__PURE__*/React__default.createElement("span", null, "?");
1020
- };
1021
- function render_Icon(t) {
1022
- var _all_icons$default, _all_icons$default2;
1023
- var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1024
- if (!((_all_icons$default = all_icons["default"]) !== null && _all_icons$default !== void 0 && _all_icons$default.render)) return null;
1025
- var R = (_all_icons$default2 = all_icons["default"]) === null || _all_icons$default2 === void 0 ? void 0 : _all_icons$default2.render;
1026
- if (!t) return null;
1027
- if (!all_keys.includes(t)) return /*#__PURE__*/React__default.createElement(R, _objectSpread(_objectSpread({
1028
- title: t,
1029
- component: QuestionOutlined
1030
- }, p), others));
1031
- var C = all_icons[t];
1032
- return /*#__PURE__*/React__default.createElement(R, _objectSpread(_objectSpread({
1033
- title: t,
1034
- component: C
1035
- }, p), others));
1036
- }
1037
- useEffect(function () {
1038
- import('@ant-design/icons').then(function (mod) {
1039
- /*#__PURE__*/React__default.createElement(mod["default"], null);
1040
- set_all_icons(mod);
1041
- var keys = Object.keys(mod).filter(function (_) {
1042
- return ['Outlined'].some(function (limit) {
1043
- return _.includes(limit);
1044
- });
1045
- });
1046
- set_all_keys(keys);
1047
- });
1048
- }, []);
1049
- return {
1050
- all_keys: all_keys,
1051
- render_Icon: render_Icon
1052
- };
1053
- }
1054
- var MyIconSelect = /*#__PURE__*/forwardRef(function (props, myRef) {
1055
- var value = props.value,
1056
- onChange = props.onChange;
1057
- var _use_icon = use_icon(props),
1058
- all_keys = _use_icon.all_keys,
1059
- render_Icon = _use_icon.render_Icon;
1060
- return /*#__PURE__*/React__default.createElement(Dropdown_L, {
1061
- arrow: true,
1062
- trigger: ['click'],
1063
- popupRender: function popupRender(node) {
1064
- return /*#__PURE__*/React__default.createElement(Card, {
1065
- size: 'small',
1066
- styles: {
1067
- body: {
1068
- width: 580,
1069
- height: 360,
1070
- overflowY: 'auto'
1071
- }
1072
- }
1073
- }, /*#__PURE__*/React__default.createElement(List, {
1074
- style: {},
1075
- grid: {
1076
- column: 12
1077
- },
1078
- dataSource: all_keys,
1079
- renderItem: function renderItem(key) {
1080
- return /*#__PURE__*/React__default.createElement(List.Item, {
1081
- style: {
1082
- cursor: 'pointer',
1083
- background: key === value ? '#aaa' : '',
1084
- padding: 12,
1085
- display: 'flex',
1086
- alignItems: 'center',
1087
- justifyContent: 'center'
1088
- },
1089
- key: key,
1090
- onClick: function onClick() {
1091
- return onChange === null || onChange === void 0 ? void 0 : onChange(key);
1092
- }
1093
- }, render_Icon(key, {
1094
- style: {
1095
- fontSize: 20
1096
- }
1097
- }), node);
1098
- }
1099
- }));
1100
- }
1101
- }, /*#__PURE__*/React__default.createElement(MyInput, {
1102
- addonBefore: render_Icon(value),
1103
- placeholder: '请选择',
1104
- value: value,
1105
- allowClear: true,
1106
- onChange: onChange,
1107
- onClear: function onClear() {
1108
- return onChange === null || onChange === void 0 ? void 0 : onChange('');
1109
- }
1110
- }));
1111
- });
1112
- function MyIcon(props) {
1113
- var _use_icon2 = use_icon(props),
1114
- render_Icon = _use_icon2.render_Icon;
1115
- return render_Icon(props.value);
1116
- }
1117
- MyIconSelect.DisplayFC = MyIcon;
1118
- function MyButton(props) {
1119
- var btn_text = props.btn_text,
1120
- defaultIcon = props.defaultIcon,
1121
- onClick = props.onClick,
1122
- form = props.form,
1123
- children = props.children,
1124
- icon = props.icon,
1125
- loading = props.loading,
1126
- primary = props.primary,
1127
- hidden = props.hidden,
1128
- on_btn_click = props.on_btn_click,
1129
- others = _objectWithoutProperties(props, _excluded6);
1130
- if (hidden) return null;
1131
- var type = props.type;
1132
- var _useState13 = useState(false),
1133
- _useState14 = _slicedToArray(_useState13, 2),
1134
- visible = _useState14[0],
1135
- setVisible = _useState14[1];
1136
- var _icon = visible ? defaultIcon !== null && defaultIcon !== void 0 ? defaultIcon : /*#__PURE__*/React__default.createElement(LoadingOutlined, null) : icon;
1137
- if (primary) {
1138
- type = 'primary';
1139
- }
1140
- useEffect(function () {
1141
- if (loading) setVisible(false);
1142
- }, [loading]);
1143
- function on_click_call(_x) {
1144
- return _on_click_call.apply(this, arguments);
1145
- }
1146
- function _on_click_call() {
1147
- _on_click_call = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(e) {
1148
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
1149
- while (1) switch (_context2.prev = _context2.next) {
1150
- case 0:
1151
- _context2.next = 2;
1152
- return safe_async_call(onClick, e);
1153
- case 2:
1154
- _context2.next = 4;
1155
- return safe_async_call(on_btn_click, e, form);
1156
- case 4:
1157
- case "end":
1158
- return _context2.stop();
1159
- }
1160
- }, _callee2);
1161
- }));
1162
- return _on_click_call.apply(this, arguments);
1163
- }
1164
- function on_click(e) {
1165
- if (visible) return;
1166
- setVisible(true);
1167
- safe_async_call(on_click_call, e)["finally"](/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
1168
- return _regeneratorRuntime.wrap(function _callee$(_context) {
1169
- while (1) switch (_context.prev = _context.next) {
1170
- case 0:
1171
- _context.next = 2;
1172
- return sleep(200);
1173
- case 2:
1174
- setVisible(false);
1175
- case 3:
1176
- case "end":
1177
- return _context.stop();
1178
- }
1179
- }, _callee);
1180
- })));
1181
- }
1182
- // const node = (visible) ? tip : (text ?? children)
1183
- return /*#__PURE__*/React__default.createElement(Button$1, _objectSpread(_objectSpread({}, others), {}, {
1184
- title: btn_text,
1185
- icon: _icon,
1186
- type: type,
1187
- onClick: on_click
1188
- }), btn_text !== null && btn_text !== void 0 ? btn_text : children);
1189
- }
1190
- var packs = {
1191
- MyIconSelect: MyIconSelect,
1192
- MI: MyInput,
1193
- input: MyInput,
1194
- Input: MyInput,
1195
- MyInput: MyInput,
1196
- MyInputNumber: MyInputNumber,
1197
- InputNumber: MyInputNumber,
1198
- input_number: MyInputNumber,
1199
- MyDatePicker: MyDatePicker,
1200
- DatePicker: MyDatePicker,
1201
- DP: MyDatePicker,
1202
- single_date_picker: MyDatePicker,
1203
- CusDatePicker: MyDatePicker,
1204
- date: MyDatePicker,
1205
- MyRangePicker: MyRangePicker,
1206
- RangePicker: MyRangePicker,
1207
- rangePicker: MyRangePicker,
1208
- range_picker: MyRangePicker,
1209
- MyRangeDate: MyRangeDate,
1210
- RangeDate: MyRangeDate,
1211
- rangeDate: MyRangeDate,
1212
- range_date: MyRangeDate,
1213
- MyRangeDateTime: MyRangeDateTime,
1214
- RangeDateTime: MyRangeDateTime,
1215
- rangeDateTime: MyRangeDateTime,
1216
- range_date_time: MyRangeDateTime,
1217
- MyColor: MyColor,
1218
- MySwitch: MySwitch,
1219
- "switch": MySwitch,
1220
- Switch: MySwitch,
1221
- MSW: MySwitch,
1222
- ArrayInput: ArrayInput,
1223
- MArr: ArrayInput,
1224
- MySelect: MySelect,
1225
- MS: MySelect,
1226
- Select: MySelect,
1227
- select: MySelect,
1228
- MyCheckbox: MyCheckbox,
1229
- Checkbox: MyCheckbox,
1230
- MC: MyCheckbox,
1231
- checkbox: MyCheckbox,
1232
- // CheckboxWithInput: MyCheckbox,
1233
- MyButton: MyButton,
1234
- MyAutoComplete: MyAutoComplete,
1235
- MA: MyAutoComplete,
1236
- AutoComplete: MyAutoComplete,
1237
- autocomplete: MyAutoComplete
1238
- };
1239
- var MyLazyComponent = function MyLazyComponent(props) {
1240
- var children = props.children,
1241
- fallback = props.fallback,
1242
- _props$size = props.size,
1243
- size = _props$size === void 0 ? 'small' : _props$size;
1244
- var m = {
1245
- tiny: 2,
1246
- small: 4,
1247
- middle: 8,
1248
- large: 16
1249
- };
1250
- var rows = m[size];
1251
- return /*#__PURE__*/React__default.createElement(Suspense, {
1252
- fallback: fallback !== null && fallback !== void 0 ? fallback : /*#__PURE__*/React__default.createElement("div", {
1253
- style: {
1254
- padding: 24
1255
- }
1256
- }, /*#__PURE__*/React__default.createElement(Skeleton, {
1257
- paragraph: {
1258
- rows: rows
1259
- }
1260
- }))
1261
- }, children);
1262
- };
1263
- var GlobalModal_ = /*#__PURE__*/function () {
1264
- function GlobalModal_() {
1265
- _classCallCheck(this, GlobalModal_);
1266
- _defineProperty(this, "open", void 0);
1267
- _defineProperty(this, "openOne", void 0);
1268
- _defineProperty(this, "pop", void 0);
1269
- _defineProperty(this, "destroyAll", void 0);
1270
- }
1271
- return _createClass(GlobalModal_, [{
1272
- key: "confirmOnce",
1273
- value: function confirmOnce(_ref10) {
1274
- var storeKey = _ref10.storeKey,
1275
- cb = _ref10.cb,
1276
- others = _objectWithoutProperties(_ref10, _excluded7);
1277
- var isAllow = localStorage.get(storeKey);
1278
- if (isNil(isAllow)) {
1279
- Modal.confirm(_objectSpread(_objectSpread({}, others), {}, {
1280
- onOk: function onOk() {
1281
- localStorage.set(storeKey, true);
1282
- cb();
1283
- },
1284
- onCancel: function onCancel() {
1285
- localStorage.set(storeKey, false);
1286
- }
1287
- }));
1288
- } else if (isAllow) {
1289
- cb();
1290
- }
1291
- }
1292
- }]);
1293
- }();
1294
- var GlobalModal = /*#__PURE__*/function () {
1295
- function GlobalModal() {
1296
- _classCallCheck(this, GlobalModal);
1297
- _defineProperty(this, "stack", []);
1298
- _defineProperty(this, "setStack", void 0);
1299
- }
1300
- return _createClass(GlobalModal, [{
1301
- key: "init",
1302
- value: function init(stack, setStack) {
1303
- this.stack = stack;
1304
- this.setStack = setStack;
1305
- }
1306
- }, {
1307
- key: "open",
1308
- value: function open(name, data) {
1309
- var id = +new Date();
1310
- this.stack.push({
1311
- name: name,
1312
- data: data,
1313
- id: id
1314
- });
1315
- this.setStack(_toConsumableArray(this.stack));
1316
- return id;
1317
- }
1318
- }, {
1319
- key: "openOne",
1320
- value: function openOne(id, name, data) {
1321
- var _id = id > 0 ? id : +new Date();
1322
- var idx = this.stack.findIndex(function (_) {
1323
- return _.id === _id;
1324
- });
1325
- if (idx === -1) {
1326
- this.stack.push({
1327
- name: name,
1328
- data: data,
1329
- id: _id
1330
- });
1331
- } else {
1332
- this.stack.splice(idx, 1, _objectSpread(_objectSpread({}, this.stack[idx]), {}, {
1333
- name: name,
1334
- data: data
1335
- }));
1336
- }
1337
- this.setStack(_toConsumableArray(this.stack));
1338
- return _id;
1339
- }
1340
- }, {
1341
- key: "pop",
1342
- value: function pop(status, e) {
1343
- var last = this.stack.pop();
1344
- this.clear_one(last, status, e);
1345
- this.setStack(_toConsumableArray(this.stack));
1346
- }
1347
- }, {
1348
- key: "clear_one",
1349
- value: function clear_one(item, status, e) {
1350
- var config = item === null || item === void 0 ? void 0 : item.data;
1351
- if (config) {
1352
- var _config$onClose;
1353
- if (status) {
1354
- var _config$onOk;
1355
- (_config$onOk = config.onOk) === null || _config$onOk === void 0 || _config$onOk.call(config, e);
1356
- } else {
1357
- var _config$onCancel;
1358
- (_config$onCancel = config.onCancel) === null || _config$onCancel === void 0 || _config$onCancel.call(config, e);
1359
- }
1360
- (_config$onClose = config.onClose) === null || _config$onClose === void 0 || _config$onClose.call(config, status);
1361
- }
1362
- }
1363
- }, {
1364
- key: "destroyAll",
1365
- value: function destroyAll() {
1366
- var _this = this;
1367
- this.stack.forEach(function (_) {
1368
- return _this.clear_one(_, false, undefined);
1369
- });
1370
- this.setStack([]);
1371
- }
1372
- }, {
1373
- key: "confirmOnce",
1374
- value: function confirmOnce(_ref11) {
1375
- var storeKey = _ref11.storeKey,
1376
- cb = _ref11.cb,
1377
- others = _objectWithoutProperties(_ref11, _excluded8);
1378
- var isAllow = localStorage.get(storeKey);
1379
- if (isNil(isAllow)) {
1380
- Modal.confirm(_objectSpread(_objectSpread({}, others), {}, {
1381
- onOk: function onOk() {
1382
- localStorage.set(storeKey, true);
1383
- cb();
1384
- },
1385
- onCancel: function onCancel() {
1386
- localStorage.set(storeKey, false);
1387
- }
1388
- }));
1389
- } else if (isAllow) {
1390
- cb();
1391
- }
1392
- }
1393
- }]);
1394
- }();
1395
- function MountGlobalModal(props) {
1396
- var meta = props.meta,
1397
- globalModal = props.globalModal;
1398
- // useNotification()
1399
- var _useState15 = useState([]),
1400
- _useState16 = _slicedToArray(_useState15, 2),
1401
- modalQueue = _useState16[0],
1402
- setModalQueue = _useState16[1];
1403
- useEffect(function () {
1404
- globalModal.init(modalQueue, setModalQueue);
1405
- }, [modalQueue]);
1406
- function do_pop(status, e) {
1407
- globalModal.pop(status, e);
1408
- }
1409
- return /*#__PURE__*/React__default.createElement(Suspense, {
1410
- fallback: /*#__PURE__*/React__default.createElement("div", null, "loading MountGlobalModal ...")
1411
- }, modalQueue.map(function (_ref12) {
1412
- var name = _ref12.name,
1413
- data = _ref12.data,
1414
- id = _ref12.id;
1415
- var C = meta[name] || function () {
1416
- return null;
1417
- };
1418
- return /*#__PURE__*/React__default.createElement(MyLazyComponent, {
1419
- fallback: ''
1420
- }, /*#__PURE__*/React__default.createElement(C, _objectSpread(_objectSpread({
1421
- maskClosable: false,
1422
- key: id,
1423
- visible: true,
1424
- centered: true
1425
- }, data), {}, {
1426
- close: do_pop,
1427
- onOk: function onOk(e) {
1428
- do_pop(true, e);
1429
- },
1430
- onCancel: function onCancel(e) {
1431
- do_pop(false, e);
1432
- }
1433
- })));
1434
- }));
1435
- }
1436
- var MonacoInner = /*#__PURE__*/lazy(function () {
1437
- return import('./root..js');
1438
- });
1439
- var MyMonaco = Object.assign(MonacoInner, {
1440
- config: function config(vs) {
1441
- import('@monaco-editor/react/dist/index').then(function (mod) {
1442
- mod.loader.config({
1443
- paths: {
1444
- vs: vs
1445
- }
1446
- });
1447
- });
1448
- }
1449
- });
1450
- var ContainerDimensions = /*#__PURE__*/function (_Component) {
1451
- // const[Comp, setComp] = useState<FC<ContainerDimensionsProps>>()
1452
- function ContainerDimensions(props) {
1453
- var _this2;
1454
- _classCallCheck(this, ContainerDimensions);
1455
- _this2 = _callSuper(this, ContainerDimensions, [props]);
1456
- _this2.state = {
1457
- Comp: null
1458
- };
1459
- return _this2;
1460
- }
1461
- _inherits(ContainerDimensions, _Component);
1462
- return _createClass(ContainerDimensions, [{
1463
- key: "componentDidMount",
1464
- value: function componentDidMount() {
1465
- var _this3 = this;
1466
- import('react-container-dimensions').then(function (res) {
1467
- _this3.setState({
1468
- Comp: res["default"]
1469
- });
1470
- });
1471
- }
1472
- }, {
1473
- key: "render",
1474
- value: function render() {
1475
- var Comp = this.state.Comp;
1476
- return Comp ? /*#__PURE__*/React__default.createElement(Comp, _objectSpread({}, this.props)) : /*#__PURE__*/React__default.createElement("span", null, "loading ContainerDimensions ...");
1477
- }
1478
- }]);
1479
- }(Component);
1480
- export { AutoComplete_L as $, ArrayInput as A, MyIconSelect as B, Checkbox_L as C, DatePicker_L as D, MyAutoComplete as E, MyButton as F, MountGlobalModal as G, GlobalModal_ as H, GlobalModal as I, MyMonaco as J, MyLazyComponent as K, isUrl as L, MonthPicker_L as M, getArray as N, getFormat as O, getParamByName as P, handle_form_error as Q, RangePicker_L as R, Select_L as S, TimePicker_L as T, UNKNOWN_TIME_SYMBOL as U, form_validate as V, fuck_focus as W, get_check_invert_values as X, parse_MC_dict_options as Y, displayValue as Z, Calendar_L as _, getMarshal as a, ColorPicker_L as a0, Form_L as a1, Dropdown_L as a2, Table_L as a3, Tree_L as a4, Modal_L as a5, Pagination_L as a6, SelectOption_L as a7, TreeSelect_L as a8, QRCode_L as a9, Switch_L as aa, ContainerDimensions as ab, get_mode as b, check_multiple as c, parse_MC_value as d, areEqual as e, format_range_props as f, getInputStyle as g, handleChangeValue as h, parse_MC_option as i, get_status_cls as j, formatDatePickerProps as k, getIsUnknown as l, get_unknown_conf as m, handleChangeValue$1 as n, MyInput as o, packs as p, MySelect as q, MyCheckbox_Display as r, styleInject as s, MyCheckbox as t, use_options as u, MyRangePicker as v, MyRangeDate as w, MyRangeDateTime as x, MyColor as y, MyIcon as z };