@para-ui/core 4.0.0-rc.7 → 4.0.1
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/Button/index.js +1 -1
- package/ButtonGroup/index.js +1 -1
- package/Cascader/index.js +4 -5
- package/ComboSelect/index.js +14 -16
- package/ComboSelect/lang/en_US.d.ts +1 -0
- package/ComboSelect/lang/index.d.ts +2 -0
- package/ComboSelect/lang/zh_CN.d.ts +1 -0
- package/CopyText/index.js +8 -6
- package/DatePicker/index.js +2 -4
- package/Descriptions/index.js +1 -1
- package/Desktop/index.js +1 -1
- package/Drawer/index.js +1 -1
- package/Dropdown/index.js +1 -1
- package/DynamicMultiBox/index.js +6 -9
- package/Form/index.js +5 -9
- package/FormItem/index.js +5 -9
- package/FunctionModal/index.js +3 -3
- package/InputLang/index.js +1 -1
- package/Modal/index.js +1 -1
- package/MultiBox/index.js +1 -1
- package/OperateBtn/index.js +1 -1
- package/PageHeader/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/PopConfirm/index.js +2 -2
- package/Popover/index.js +1 -1
- package/QuickReply/index.js +2 -2
- package/README.md +6 -105
- package/Search/index.d.ts +1 -1
- package/Search/index.js +5 -3
- package/Select/index.js +3 -2
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +328 -5
- package/SelectorPicker/index.js +3 -4
- package/SingleBox/index.js +1 -1
- package/Switch/index.js +8 -8
- package/Table/index.js +411 -473
- package/Tabs/index.js +3 -3
- package/Tag/index.js +53 -82
- package/TextEditor/index.js +3 -3
- package/TextField/index.js +2 -2
- package/TimePicker/index.js +2 -4
- package/Timeline/index.js +20 -14
- package/ToggleButton/index.js +27 -26
- package/Tooltip/index.js +27 -26
- package/Transfer/index.js +45 -50
- package/Tree/index.js +4 -8
- package/Upload/index.js +409 -626
- package/_verture/{index-f518e244.js → index-00dc302a.js} +1 -1
- package/_verture/{index-da9097d3.js → index-389675ab.js} +1 -1
- package/_verture/{index-466a3496.js → index-9784b09c.js} +18 -3
- package/_verture/{index-3156e3ef.js → index-e3011376.js} +312 -394
- package/_verture/{slicedToArray-75fa4188.js → slicedToArray-8223a2ef.js} +1 -1
- package/index.js +8 -10
- package/locale/en-US.d.ts +1 -0
- package/locale/index.d.ts +2 -0
- package/locale/index.js +4 -2
- package/locale/zh-CN.d.ts +1 -0
- package/package.json +3 -2
- package/umd/AutoBox.js +1 -1
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +1 -1
- package/umd/ButtonGroup.js +1 -1
- package/umd/ComboSelect.js +2 -2
- package/umd/CopyText.js +2 -2
- package/umd/DatePicker.js +1 -1
- package/umd/Descriptions.js +1 -1
- package/umd/Desktop.js +1 -1
- package/umd/Drawer.js +1 -1
- package/umd/Dropdown.js +1 -1
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +2 -2
- package/umd/FunctionModal.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/Modal.js +1 -1
- package/umd/MultiBox.js +1 -1
- package/umd/OperateBtn.js +1 -1
- package/umd/PageHeader.js +1 -1
- package/umd/Pagination.js +2 -2
- package/umd/PopConfirm.js +1 -1
- package/umd/Popover.js +1 -1
- package/umd/QuickReply.js +1 -1
- package/umd/Search.js +2 -2
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +1 -1
- package/umd/Switch.js +1 -1
- package/umd/Table.js +2 -2
- package/umd/Tabs.js +1 -1
- package/umd/TextField.js +1 -1
- package/umd/TimePicker.js +1 -1
- package/umd/ToggleButton.js +1 -1
- package/umd/Transfer.js +2 -2
- package/umd/Upload.js +1 -1
- package/umd/locale.js +1 -1
- package/_verture/index-d63bd287.js +0 -327
- package/_verture/toConsumableArray-c7a8028f.js +0 -19
- /package/_verture/{index-d6093d1c.js → index-28a6bc3a.js} +0 -0
- /package/_verture/{modalContext-7b512b0c.js → modalContext-ea977824.js} +0 -0
- /package/_verture/{typeof-b240b062.js → typeof-c310ee4a.js} +0 -0
package/Selector/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as __awaiter, _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useEffect, Fragment as Fragment$1 } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { b as _slicedToArray } from '../_verture/slicedToArray-8223a2ef.js';
|
|
5
|
+
import { _ as _typeof } from '../_verture/typeof-c310ee4a.js';
|
|
6
6
|
import { Radio } from '../Radio/index.js';
|
|
7
7
|
import { Checkbox } from '../Checkbox/index.js';
|
|
8
8
|
import { Popover } from '../Popover/index.js';
|
|
@@ -19,7 +19,6 @@ import SearchIcon from '@para-ui/icons/Search';
|
|
|
19
19
|
import Refresh from '@para-ui/icons/Refresh';
|
|
20
20
|
import { ArrayToObject, Get, Post, Cancel } from '@paraview/lib';
|
|
21
21
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-1e416658.js';
|
|
22
|
-
import '../_verture/typeof-b240b062.js';
|
|
23
22
|
import '../Label/index.js';
|
|
24
23
|
import '../Help/index.js';
|
|
25
24
|
import '../Tooltip/index.js';
|
|
@@ -36,12 +35,336 @@ import '@para-ui/icons/PreviewClose';
|
|
|
36
35
|
import '@para-ui/icons/PreviewOpen';
|
|
37
36
|
import '@para-ui/icons/CloseCircleF';
|
|
38
37
|
import '../HelperText/index.js';
|
|
39
|
-
import '../_verture/index-
|
|
38
|
+
import '../_verture/index-389675ab.js';
|
|
40
39
|
import 'rc-dropdown';
|
|
41
40
|
import 'dayjs';
|
|
42
41
|
import '@para-ui/icons/More';
|
|
43
42
|
import '@para-ui/icons/Return';
|
|
44
43
|
|
|
44
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
45
|
+
|
|
46
|
+
(function (module) {
|
|
47
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
48
|
+
function _regeneratorRuntime() {
|
|
49
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
50
|
+
return e;
|
|
51
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
52
|
+
var t,
|
|
53
|
+
e = {},
|
|
54
|
+
r = Object.prototype,
|
|
55
|
+
n = r.hasOwnProperty,
|
|
56
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
57
|
+
t[e] = r.value;
|
|
58
|
+
},
|
|
59
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
60
|
+
a = i.iterator || "@@iterator",
|
|
61
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
62
|
+
u = i.toStringTag || "@@toStringTag";
|
|
63
|
+
function define(t, e, r) {
|
|
64
|
+
return Object.defineProperty(t, e, {
|
|
65
|
+
value: r,
|
|
66
|
+
enumerable: !0,
|
|
67
|
+
configurable: !0,
|
|
68
|
+
writable: !0
|
|
69
|
+
}), t[e];
|
|
70
|
+
}
|
|
71
|
+
try {
|
|
72
|
+
define({}, "");
|
|
73
|
+
} catch (t) {
|
|
74
|
+
define = function define(t, e, r) {
|
|
75
|
+
return t[e] = r;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function wrap(t, e, r, n) {
|
|
79
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
80
|
+
a = Object.create(i.prototype),
|
|
81
|
+
c = new Context(n || []);
|
|
82
|
+
return o(a, "_invoke", {
|
|
83
|
+
value: makeInvokeMethod(t, r, c)
|
|
84
|
+
}), a;
|
|
85
|
+
}
|
|
86
|
+
function tryCatch(t, e, r) {
|
|
87
|
+
try {
|
|
88
|
+
return {
|
|
89
|
+
type: "normal",
|
|
90
|
+
arg: t.call(e, r)
|
|
91
|
+
};
|
|
92
|
+
} catch (t) {
|
|
93
|
+
return {
|
|
94
|
+
type: "throw",
|
|
95
|
+
arg: t
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
e.wrap = wrap;
|
|
100
|
+
var h = "suspendedStart",
|
|
101
|
+
l = "suspendedYield",
|
|
102
|
+
f = "executing",
|
|
103
|
+
s = "completed",
|
|
104
|
+
y = {};
|
|
105
|
+
function Generator() {}
|
|
106
|
+
function GeneratorFunction() {}
|
|
107
|
+
function GeneratorFunctionPrototype() {}
|
|
108
|
+
var p = {};
|
|
109
|
+
define(p, a, function () {
|
|
110
|
+
return this;
|
|
111
|
+
});
|
|
112
|
+
var d = Object.getPrototypeOf,
|
|
113
|
+
v = d && d(d(values([])));
|
|
114
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
115
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
116
|
+
function defineIteratorMethods(t) {
|
|
117
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
118
|
+
define(t, e, function (t) {
|
|
119
|
+
return this._invoke(e, t);
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function AsyncIterator(t, e) {
|
|
124
|
+
function invoke(r, o, i, a) {
|
|
125
|
+
var c = tryCatch(t[r], t, o);
|
|
126
|
+
if ("throw" !== c.type) {
|
|
127
|
+
var u = c.arg,
|
|
128
|
+
h = u.value;
|
|
129
|
+
return h && "object" == _typeof$1(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
130
|
+
invoke("next", t, i, a);
|
|
131
|
+
}, function (t) {
|
|
132
|
+
invoke("throw", t, i, a);
|
|
133
|
+
}) : e.resolve(h).then(function (t) {
|
|
134
|
+
u.value = t, i(u);
|
|
135
|
+
}, function (t) {
|
|
136
|
+
return invoke("throw", t, i, a);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
a(c.arg);
|
|
140
|
+
}
|
|
141
|
+
var r;
|
|
142
|
+
o(this, "_invoke", {
|
|
143
|
+
value: function value(t, n) {
|
|
144
|
+
function callInvokeWithMethodAndArg() {
|
|
145
|
+
return new e(function (e, r) {
|
|
146
|
+
invoke(t, n, e, r);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function makeInvokeMethod(e, r, n) {
|
|
154
|
+
var o = h;
|
|
155
|
+
return function (i, a) {
|
|
156
|
+
if (o === f) throw new Error("Generator is already running");
|
|
157
|
+
if (o === s) {
|
|
158
|
+
if ("throw" === i) throw a;
|
|
159
|
+
return {
|
|
160
|
+
value: t,
|
|
161
|
+
done: !0
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
for (n.method = i, n.arg = a;;) {
|
|
165
|
+
var c = n.delegate;
|
|
166
|
+
if (c) {
|
|
167
|
+
var u = maybeInvokeDelegate(c, n);
|
|
168
|
+
if (u) {
|
|
169
|
+
if (u === y) continue;
|
|
170
|
+
return u;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
174
|
+
if (o === h) throw o = s, n.arg;
|
|
175
|
+
n.dispatchException(n.arg);
|
|
176
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
177
|
+
o = f;
|
|
178
|
+
var p = tryCatch(e, r, n);
|
|
179
|
+
if ("normal" === p.type) {
|
|
180
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
181
|
+
return {
|
|
182
|
+
value: p.arg,
|
|
183
|
+
done: n.done
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function maybeInvokeDelegate(e, r) {
|
|
191
|
+
var n = r.method,
|
|
192
|
+
o = e.iterator[n];
|
|
193
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
194
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
195
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
196
|
+
var a = i.arg;
|
|
197
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
198
|
+
}
|
|
199
|
+
function pushTryEntry(t) {
|
|
200
|
+
var e = {
|
|
201
|
+
tryLoc: t[0]
|
|
202
|
+
};
|
|
203
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
204
|
+
}
|
|
205
|
+
function resetTryEntry(t) {
|
|
206
|
+
var e = t.completion || {};
|
|
207
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
208
|
+
}
|
|
209
|
+
function Context(t) {
|
|
210
|
+
this.tryEntries = [{
|
|
211
|
+
tryLoc: "root"
|
|
212
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
213
|
+
}
|
|
214
|
+
function values(e) {
|
|
215
|
+
if (e || "" === e) {
|
|
216
|
+
var r = e[a];
|
|
217
|
+
if (r) return r.call(e);
|
|
218
|
+
if ("function" == typeof e.next) return e;
|
|
219
|
+
if (!isNaN(e.length)) {
|
|
220
|
+
var o = -1,
|
|
221
|
+
i = function next() {
|
|
222
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
223
|
+
return next.value = t, next.done = !0, next;
|
|
224
|
+
};
|
|
225
|
+
return i.next = i;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
throw new TypeError(_typeof$1(e) + " is not iterable");
|
|
229
|
+
}
|
|
230
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
231
|
+
value: GeneratorFunctionPrototype,
|
|
232
|
+
configurable: !0
|
|
233
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
234
|
+
value: GeneratorFunction,
|
|
235
|
+
configurable: !0
|
|
236
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
237
|
+
var e = "function" == typeof t && t.constructor;
|
|
238
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
239
|
+
}, e.mark = function (t) {
|
|
240
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
241
|
+
}, e.awrap = function (t) {
|
|
242
|
+
return {
|
|
243
|
+
__await: t
|
|
244
|
+
};
|
|
245
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
246
|
+
return this;
|
|
247
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
248
|
+
void 0 === i && (i = Promise);
|
|
249
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
250
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
251
|
+
return t.done ? t.value : a.next();
|
|
252
|
+
});
|
|
253
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
254
|
+
return this;
|
|
255
|
+
}), define(g, "toString", function () {
|
|
256
|
+
return "[object Generator]";
|
|
257
|
+
}), e.keys = function (t) {
|
|
258
|
+
var e = Object(t),
|
|
259
|
+
r = [];
|
|
260
|
+
for (var n in e) r.push(n);
|
|
261
|
+
return r.reverse(), function next() {
|
|
262
|
+
for (; r.length;) {
|
|
263
|
+
var t = r.pop();
|
|
264
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
265
|
+
}
|
|
266
|
+
return next.done = !0, next;
|
|
267
|
+
};
|
|
268
|
+
}, e.values = values, Context.prototype = {
|
|
269
|
+
constructor: Context,
|
|
270
|
+
reset: function reset(e) {
|
|
271
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
272
|
+
},
|
|
273
|
+
stop: function stop() {
|
|
274
|
+
this.done = !0;
|
|
275
|
+
var t = this.tryEntries[0].completion;
|
|
276
|
+
if ("throw" === t.type) throw t.arg;
|
|
277
|
+
return this.rval;
|
|
278
|
+
},
|
|
279
|
+
dispatchException: function dispatchException(e) {
|
|
280
|
+
if (this.done) throw e;
|
|
281
|
+
var r = this;
|
|
282
|
+
function handle(n, o) {
|
|
283
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
284
|
+
}
|
|
285
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
286
|
+
var i = this.tryEntries[o],
|
|
287
|
+
a = i.completion;
|
|
288
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
289
|
+
if (i.tryLoc <= this.prev) {
|
|
290
|
+
var c = n.call(i, "catchLoc"),
|
|
291
|
+
u = n.call(i, "finallyLoc");
|
|
292
|
+
if (c && u) {
|
|
293
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
294
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
295
|
+
} else if (c) {
|
|
296
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
297
|
+
} else {
|
|
298
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
299
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
abrupt: function abrupt(t, e) {
|
|
305
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
306
|
+
var o = this.tryEntries[r];
|
|
307
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
308
|
+
var i = o;
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
313
|
+
var a = i ? i.completion : {};
|
|
314
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
315
|
+
},
|
|
316
|
+
complete: function complete(t, e) {
|
|
317
|
+
if ("throw" === t.type) throw t.arg;
|
|
318
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
319
|
+
},
|
|
320
|
+
finish: function finish(t) {
|
|
321
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
322
|
+
var r = this.tryEntries[e];
|
|
323
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"catch": function _catch(t) {
|
|
327
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
328
|
+
var r = this.tryEntries[e];
|
|
329
|
+
if (r.tryLoc === t) {
|
|
330
|
+
var n = r.completion;
|
|
331
|
+
if ("throw" === n.type) {
|
|
332
|
+
var o = n.arg;
|
|
333
|
+
resetTryEntry(r);
|
|
334
|
+
}
|
|
335
|
+
return o;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
throw new Error("illegal catch attempt");
|
|
339
|
+
},
|
|
340
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
341
|
+
return this.delegate = {
|
|
342
|
+
iterator: values(e),
|
|
343
|
+
resultName: r,
|
|
344
|
+
nextLoc: n
|
|
345
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
346
|
+
}
|
|
347
|
+
}, e;
|
|
348
|
+
}
|
|
349
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
350
|
+
} (regeneratorRuntime$1));
|
|
351
|
+
|
|
352
|
+
// TODO(Babel 8): Remove this file.
|
|
353
|
+
|
|
354
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
355
|
+
var regenerator = runtime;
|
|
356
|
+
|
|
357
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
358
|
+
try {
|
|
359
|
+
regeneratorRuntime = runtime;
|
|
360
|
+
} catch (accidentalStrictMode) {
|
|
361
|
+
if (typeof globalThis === "object") {
|
|
362
|
+
globalThis.regeneratorRuntime = runtime;
|
|
363
|
+
} else {
|
|
364
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
45
368
|
var en = {
|
|
46
369
|
root: 'root',
|
|
47
370
|
selectAll: 'Select all',
|
|
@@ -762,7 +1085,7 @@ const SelectorMain = props => {
|
|
|
762
1085
|
placeholder: searchPlaceholder || intl({
|
|
763
1086
|
id: 'pleaseEnter'
|
|
764
1087
|
}),
|
|
765
|
-
|
|
1088
|
+
onClickBtn: onClickRightIcon
|
|
766
1089
|
})
|
|
767
1090
|
});
|
|
768
1091
|
};
|
package/SelectorPicker/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useState, useRef, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import HelperText from '../HelperText/index.js';
|
|
5
5
|
import Label from '../Label/index.js';
|
|
6
|
-
import { D as Dropdown } from '../_verture/index-
|
|
6
|
+
import { D as Dropdown } from '../_verture/index-389675ab.js';
|
|
7
7
|
import Selector, { handFieldConfig } from '../Selector/index.js';
|
|
8
8
|
import AutoTips from '../AutoTips/index.js';
|
|
9
9
|
import { Popover } from '../Popover/index.js';
|
|
@@ -24,9 +24,8 @@ import 'rc-dropdown';
|
|
|
24
24
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
25
25
|
import 'dayjs';
|
|
26
26
|
import '@paraview/lib';
|
|
27
|
-
import '../_verture/slicedToArray-
|
|
28
|
-
import '../_verture/
|
|
29
|
-
import '../_verture/typeof-b240b062.js';
|
|
27
|
+
import '../_verture/slicedToArray-8223a2ef.js';
|
|
28
|
+
import '../_verture/typeof-c310ee4a.js';
|
|
30
29
|
import '../Radio/index.js';
|
|
31
30
|
import '../Checkbox/index.js';
|
|
32
31
|
import '../Loading/index.js';
|
package/SingleBox/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import '../Loading/index.js';
|
|
|
23
23
|
import '@para-ui/icons/LoadingF';
|
|
24
24
|
import '../_verture/useGlobalProps-1e416658.js';
|
|
25
25
|
import '@para-ui/core/GlobalContext';
|
|
26
|
-
import '../_verture/index-
|
|
26
|
+
import '../_verture/index-389675ab.js';
|
|
27
27
|
import 'rc-dropdown';
|
|
28
28
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
29
29
|
import 'dayjs';
|
package/Switch/index.js
CHANGED
|
@@ -25,8 +25,8 @@ var zh = {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
var localeJson = {
|
|
28
|
-
zh
|
|
29
|
-
en
|
|
28
|
+
zh,
|
|
29
|
+
en
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/3 下午5:58\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-switch {\n position: relative;\n display: inline-block;\n width: 32px;\n height: 16px;\n vertical-align: middle;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n}\n.paraui-v4-switch .component-switch {\n border: none;\n cursor: pointer;\n}\n.paraui-v4-switch:before {\n position: absolute;\n top: 0px;\n left: 0;\n width: 100%;\n height: 16px;\n border-radius: 8px;\n background-color: rgb(212, 218, 227);\n content: \"\";\n transition: all 0.2s;\n}\na .paraui-v4-switch:focus {\n outline: 0;\n box-shadow: none;\n}\n.paraui-v4-switch.component-switch-checked:focus {\n box-shadow: none;\n}\n.paraui-v4-switch:focus:hover {\n box-shadow: none;\n}\n.paraui-v4-switch.component-switch-checked:before {\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-switch-loading *, .paraui-v4-switch.component-switch-disabled * {\n box-shadow: none;\n}\n.paraui-v4-switch-loading .component-switch-inner::before, .paraui-v4-switch.component-switch-disabled .component-switch-inner::before {\n position: absolute;\n top: 0px;\n left: 0;\n width: 100%;\n height: 16px;\n background-color: rgba(255, 255, 255, 0.5);\n content: \"\";\n z-index: 100;\n}\n.paraui-v4-switch .component-switch-inner {\n display: block;\n margin: 0 7px 0 25px;\n font-size: 14px;\n transition: margin 0.2s;\n}\n.paraui-v4-switch.component-switch-checked .component-switch-inner {\n margin: 0 25px 0 7px;\n}\n.paraui-v4-switch .component-switch-handle {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 12px;\n height: 12px;\n transition: all 0.2s ease-in-out;\n}\n.paraui-v4-switch .component-switch-handle::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgb(255, 255, 255);\n border-radius: 9px;\n box-shadow: none;\n transition: all 0.2s ease-in-out;\n content: \"\";\n}\n.paraui-v4-switch.component-switch-checked .component-switch-handle {\n left: calc(100% - 14px);\n}\n.paraui-v4-switch.component-switch-checked .component-switch-handle::before {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-switch:not(.paraui-v4-switch-disabled):active .component-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.paraui-v4-switch:not(.paraui-v4-switch-disabled):active.component-switch-checked .component-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.paraui-v4-switch .component-switch-loading-icon {\n position: relative;\n top: 1px;\n color: rgb(46, 101, 230);\n font-size: 10px;\n vertical-align: top;\n animation: switchLoadingCircle 1s infinite linear;\n}\n.paraui-v4-switch.component-switch-checked .component-switch-loading-icon {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-switch-small {\n min-width: 28px;\n height: 14px;\n line-height: 14px;\n}\n.paraui-v4-switch-small .component-switch-inner {\n margin: 0 5px 0 18px;\n font-size: 14px;\n}\n.paraui-v4-switch-small .component-switch-handle {\n width: 12px;\n height: 12px;\n top: 3px;\n left: 2px;\n}\n.paraui-v4-switch-small .component-switch-loading-icon {\n top: 1.5px;\n font-size: 9px;\n}\n.paraui-v4-switch-small.component-switch-checked .component-switch-inner {\n margin: 0 18px 0 5px;\n}\n.paraui-v4-switch-small.component-switch-checked .component-switch-handle {\n left: calc(100% - 12px - 2px);\n}\n@keyframes switchLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.paraui-v4-switch-disabled::before {\n background-color: rgb(225, 229, 236);\n}\n.paraui-v4-switch-disabled.component-switch-checked::before {\n background-color: rgb(151, 178, 242);\n}\n\n.component-label-box {\n display: flex;\n align-items: center;\n}\n.component-label-box .sup-text {\n color: rgb(92, 101, 115);\n font-size: 14px;\n margin-left: 10px;\n line-height: 16px;\n}\n.component-label-box .sup-text > a {\n text-decoration: none;\n cursor: pointer;\n color: rgb(46, 101, 230);\n}\n.component-label-box .sup-text > a:hover {\n color: rgb(87, 131, 235);\n}\n\n.paraui-v4-switch-label {\n display: inline-flex;\n align-items: flex-end;\n}\n.paraui-v4-switch-label .component-disabled-text {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-switch-label .component-desc-text {\n margin-bottom: 0;\n margin-right: 10px;\n line-height: 16px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-switch-label .component-desc-text .paraui-v4-help {\n line-height: 1;\n}\n.paraui-v4-switch-label .component-desc-text .paraui-v4-help svg {\n top: 0;\n}\n.paraui-v4-switch-label .paraui-v4-label-text-container {\n display: flex;\n flex-direction: column;\n}\n\n.paraui-v4-switch-desc-end {\n flex-direction: row-reverse;\n}\n.paraui-v4-switch-desc-end .component-desc-text {\n margin-right: 0;\n}\n\n.component-switch-disabled > div:nth-child(1)::before {\n transition: all 2s ease-in-out;\n}";
|
|
@@ -84,10 +84,10 @@ const Switch = props => {
|
|
|
84
84
|
prefixCls: "".concat($rcPrefixCls, "-switch"),
|
|
85
85
|
disabled: disabled || loading,
|
|
86
86
|
loadingIcon: loadingIcon
|
|
87
|
-
})), jsx("span", Object.assign({
|
|
87
|
+
})), supText && jsx("span", Object.assign({
|
|
88
88
|
className: "sup-text"
|
|
89
89
|
}, {
|
|
90
|
-
children: supText
|
|
90
|
+
children: supText
|
|
91
91
|
}))]
|
|
92
92
|
}))
|
|
93
93
|
})) : jsx(Fragment, {
|
|
@@ -103,10 +103,10 @@ const Switch = props => {
|
|
|
103
103
|
className: classes,
|
|
104
104
|
disabled: disabled || loading,
|
|
105
105
|
loadingIcon: loadingIcon
|
|
106
|
-
})), jsx("span", Object.assign({
|
|
106
|
+
})), supText && jsx("span", Object.assign({
|
|
107
107
|
className: "sup-text"
|
|
108
108
|
}, {
|
|
109
|
-
children: supText
|
|
109
|
+
children: supText
|
|
110
110
|
}))]
|
|
111
111
|
}))
|
|
112
112
|
})) : jsxs("div", Object.assign({
|
|
@@ -117,10 +117,10 @@ const Switch = props => {
|
|
|
117
117
|
className: classes,
|
|
118
118
|
disabled: disabled || loading,
|
|
119
119
|
loadingIcon: loadingIcon
|
|
120
|
-
})), jsx("span", Object.assign({
|
|
120
|
+
})), supText && jsx("span", Object.assign({
|
|
121
121
|
className: "sup-text"
|
|
122
122
|
}, {
|
|
123
|
-
children: supText
|
|
123
|
+
children: supText
|
|
124
124
|
}))]
|
|
125
125
|
}))
|
|
126
126
|
});
|