@oceanbase/ui 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1 -1
- package/es/Action/Item.d.ts +6 -15
- package/es/Action/Item.js +85 -128
- package/es/Action/index.d.ts +6 -3
- package/es/BasicLayout/style/index.js +30 -18
- package/es/BatchOperationBar/index.d.ts +0 -1
- package/es/BatchOperationBar/index.js +17 -13
- package/es/BatchOperationBar/style/index.d.ts +10 -0
- package/es/BatchOperationBar/style/index.js +51 -0
- package/es/Boundary/Components/Code.js +11 -5
- package/es/Boundary/Components/Exception.js +85 -74
- package/es/Boundary/Components/Function.js +11 -5
- package/es/Boundary/index.d.ts +0 -1
- package/es/Boundary/index.js +0 -1
- package/es/Boundary/style/index.d.ts +10 -0
- package/es/Boundary/style/index.js +46 -0
- package/es/ContentWithIcon/index.d.ts +0 -1
- package/es/ContentWithIcon/index.js +29 -29
- package/es/ContentWithIcon/style/index.d.ts +10 -0
- package/es/ContentWithIcon/style/index.js +26 -0
- package/es/DateRanger/PickerPanel.js +5 -4
- package/es/DateRanger/Ranger.d.ts +0 -1
- package/es/DateRanger/Ranger.js +13 -8
- package/es/DateRanger/style/index.d.ts +10 -0
- package/es/DateRanger/style/index.js +126 -0
- package/es/Dialog/Anchor.d.ts +2 -10
- package/es/Dialog/Anchor.js +67 -96
- package/es/Dialog/index.d.ts +0 -1
- package/es/Dialog/index.js +537 -578
- package/es/Dialog/style/index.d.ts +10 -0
- package/es/Dialog/style/index.js +97 -0
- package/es/FullscreenBox/index.d.ts +0 -1
- package/es/FullscreenBox/index.js +46 -37
- package/es/FullscreenBox/style/index.d.ts +10 -0
- package/es/FullscreenBox/style/index.js +53 -0
- package/es/GraphToolbar/index.d.ts +0 -1
- package/es/GraphToolbar/index.js +19 -16
- package/es/GraphToolbar/style/index.d.ts +10 -0
- package/es/GraphToolbar/style/index.js +60 -0
- package/es/Highlight/DiffView/index.d.ts +0 -1
- package/es/Highlight/DiffView/index.js +5 -5
- package/es/Highlight/JsonView.d.ts +0 -1
- package/es/Highlight/JsonView.js +5 -5
- package/es/Highlight/index.d.ts +0 -1
- package/es/Highlight/index.js +23 -23
- package/es/Highlight/style/index.d.ts +10 -0
- package/es/Highlight/style/index.js +213 -0
- package/es/Login/ActivateForm.d.ts +0 -1
- package/es/Login/ActivateForm.js +12 -9
- package/es/Login/LoginForm.d.ts +0 -1
- package/es/Login/LoginForm.js +20 -15
- package/es/Login/RegisterForm.d.ts +0 -1
- package/es/Login/RegisterForm.js +14 -11
- package/es/Login/index.d.ts +0 -1
- package/es/Login/index.js +24 -22
- package/es/Login/style/index.d.ts +10 -0
- package/es/Login/style/index.js +182 -0
- package/es/NavMenu/index.d.ts +1 -2
- package/es/NavMenu/index.js +11 -8
- package/es/NavMenu/style/index.d.ts +10 -0
- package/es/NavMenu/style/index.js +47 -0
- package/es/Ranger/QuickPicker.js +8 -4
- package/es/Ranger/Ranger.d.ts +0 -1
- package/es/Ranger/Ranger.js +12 -9
- package/es/Ranger/style/index.d.ts +10 -0
- package/es/Ranger/style/index.js +44 -0
- package/es/SideTip/index.d.ts +0 -1
- package/es/SideTip/index.js +24 -22
- package/es/SideTip/style/index.d.ts +10 -0
- package/es/SideTip/style/index.js +162 -0
- package/es/TagSelect/Group.d.ts +6 -6
- package/es/TagSelect/Group.js +5 -3
- package/es/TagSelect/Item.js +5 -3
- package/es/TaskGraph/Graph/style/index.d.ts +10 -0
- package/es/TaskGraph/Graph/style/index.js +28 -0
- package/es/TaskGraph/Graph.d.ts +0 -1
- package/es/TaskGraph/Graph.js +26 -10
- package/es/TaskGraph/index.d.ts +0 -1
- package/es/TaskGraph/index.js +10 -7
- package/es/TaskGraph/style/index.d.ts +10 -0
- package/es/TaskGraph/style/index.js +102 -0
- package/es/Welcome/index.d.ts +0 -1
- package/es/Welcome/index.js +30 -26
- package/es/Welcome/step/style/index.d.ts +10 -0
- package/es/Welcome/step/style/index.js +44 -0
- package/es/Welcome/step.d.ts +0 -1
- package/es/Welcome/step.js +17 -14
- package/es/Welcome/style/index.d.ts +10 -0
- package/es/Welcome/style/index.js +141 -0
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/lib/Action/Item.d.ts +6 -15
- package/lib/Action/Item.js +66 -81
- package/lib/Action/index.d.ts +6 -3
- package/lib/BasicLayout/style/index.js +27 -18
- package/lib/BatchOperationBar/index.d.ts +0 -1
- package/lib/BatchOperationBar/index.js +54 -50
- package/lib/BatchOperationBar/style/index.d.ts +10 -0
- package/lib/BatchOperationBar/style/index.js +82 -0
- package/lib/Boundary/Components/Code.js +23 -17
- package/lib/Boundary/Components/Exception.js +40 -29
- package/lib/Boundary/Components/Function.js +18 -12
- package/lib/Boundary/index.d.ts +0 -1
- package/lib/Boundary/index.js +0 -1
- package/lib/Boundary/style/index.d.ts +10 -0
- package/lib/Boundary/style/index.js +74 -0
- package/lib/ContentWithIcon/index.d.ts +0 -1
- package/lib/ContentWithIcon/index.js +35 -32
- package/lib/ContentWithIcon/style/index.d.ts +10 -0
- package/lib/ContentWithIcon/style/index.js +57 -0
- package/lib/DateRanger/PickerPanel.js +2 -2
- package/lib/DateRanger/Ranger.d.ts +0 -1
- package/lib/DateRanger/Ranger.js +353 -348
- package/lib/DateRanger/style/index.d.ts +10 -0
- package/lib/DateRanger/style/index.js +195 -0
- package/lib/Dialog/Anchor.d.ts +2 -10
- package/lib/Dialog/Anchor.js +58 -60
- package/lib/Dialog/index.d.ts +0 -1
- package/lib/Dialog/index.js +446 -422
- package/lib/Dialog/style/index.d.ts +10 -0
- package/lib/Dialog/style/index.js +135 -0
- package/lib/FullscreenBox/index.d.ts +0 -1
- package/lib/FullscreenBox/index.js +47 -38
- package/lib/FullscreenBox/style/index.d.ts +10 -0
- package/lib/FullscreenBox/style/index.js +86 -0
- package/lib/GraphToolbar/index.d.ts +0 -1
- package/lib/GraphToolbar/index.js +69 -66
- package/lib/GraphToolbar/style/index.d.ts +10 -0
- package/lib/GraphToolbar/style/index.js +91 -0
- package/lib/Highlight/DiffView/index.d.ts +0 -1
- package/lib/Highlight/DiffView/index.js +3 -3
- package/lib/Highlight/JsonView.d.ts +0 -1
- package/lib/Highlight/JsonView.js +3 -3
- package/lib/Highlight/index.d.ts +0 -1
- package/lib/Highlight/index.js +32 -29
- package/lib/Highlight/style/index.d.ts +10 -0
- package/lib/Highlight/style/index.js +293 -0
- package/lib/Login/ActivateForm.d.ts +0 -1
- package/lib/Login/ActivateForm.js +17 -9
- package/lib/Login/LoginForm.d.ts +0 -1
- package/lib/Login/LoginForm.js +25 -13
- package/lib/Login/RegisterForm.d.ts +0 -1
- package/lib/Login/RegisterForm.js +17 -9
- package/lib/Login/index.d.ts +0 -1
- package/lib/Login/index.js +96 -94
- package/lib/Login/style/index.d.ts +10 -0
- package/lib/Login/style/index.js +267 -0
- package/lib/NavMenu/index.d.ts +1 -2
- package/lib/NavMenu/index.js +20 -17
- package/lib/NavMenu/style/index.d.ts +10 -0
- package/lib/NavMenu/style/index.js +78 -0
- package/lib/Ranger/QuickPicker.js +4 -2
- package/lib/Ranger/Ranger.d.ts +0 -1
- package/lib/Ranger/Ranger.js +48 -45
- package/lib/Ranger/style/index.d.ts +10 -0
- package/lib/Ranger/style/index.js +82 -0
- package/lib/SideTip/index.d.ts +0 -1
- package/lib/SideTip/index.js +46 -38
- package/lib/SideTip/style/index.d.ts +10 -0
- package/lib/SideTip/style/index.js +211 -0
- package/lib/TagSelect/Group.d.ts +6 -6
- package/lib/TagSelect/Group.js +3 -2
- package/lib/TagSelect/Item.js +3 -2
- package/lib/TaskGraph/Graph/style/index.d.ts +10 -0
- package/lib/TaskGraph/Graph/style/index.js +56 -0
- package/lib/TaskGraph/Graph.d.ts +0 -1
- package/lib/TaskGraph/Graph.js +16 -7
- package/lib/TaskGraph/index.d.ts +0 -1
- package/lib/TaskGraph/index.js +6 -5
- package/lib/TaskGraph/style/index.d.ts +10 -0
- package/lib/TaskGraph/style/index.js +143 -0
- package/lib/Welcome/index.d.ts +0 -1
- package/lib/Welcome/index.js +64 -59
- package/lib/Welcome/step/style/index.d.ts +10 -0
- package/lib/Welcome/step/style/index.js +74 -0
- package/lib/Welcome/step.d.ts +0 -1
- package/lib/Welcome/step.js +17 -13
- package/lib/Welcome/style/index.d.ts +10 -0
- package/lib/Welcome/style/index.js +188 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/package.json +4 -7
- package/es/BatchOperationBar/index.less +0 -46
- package/es/BatchOperationBar/index.less.d.ts +0 -15
- package/es/Boundary/index.less +0 -36
- package/es/ContentWithIcon/index.less +0 -21
- package/es/DateRanger/index.less +0 -180
- package/es/Dialog/index.less +0 -116
- package/es/FullscreenBox/index.less +0 -51
- package/es/GraphToolbar/index.less +0 -65
- package/es/Highlight/index.less +0 -381
- package/es/Login/index.less +0 -268
- package/es/NavMenu/index.less +0 -50
- package/es/Ranger/index.less +0 -57
- package/es/SideTip/index.less +0 -180
- package/es/TaskGraph/graph.less +0 -23
- package/es/TaskGraph/index.less +0 -117
- package/es/Welcome/index.less +0 -185
- package/es/index.less +0 -1
- package/es/variable.less +0 -54
- package/lib/BatchOperationBar/index.less +0 -46
- package/lib/BatchOperationBar/index.less.d.ts +0 -15
- package/lib/Boundary/index.less +0 -36
- package/lib/ContentWithIcon/index.less +0 -21
- package/lib/DateRanger/index.less +0 -180
- package/lib/Dialog/index.less +0 -116
- package/lib/FullscreenBox/index.less +0 -51
- package/lib/GraphToolbar/index.less +0 -65
- package/lib/Highlight/index.less +0 -381
- package/lib/Login/index.less +0 -268
- package/lib/NavMenu/index.less +0 -50
- package/lib/Ranger/index.less +0 -57
- package/lib/SideTip/index.less +0 -180
- package/lib/TaskGraph/graph.less +0 -23
- package/lib/TaskGraph/index.less +0 -117
- package/lib/Welcome/index.less +0 -185
- package/lib/index.less +0 -1
- package/lib/variable.less +0 -54
package/lib/DateRanger/Ranger.js
CHANGED
|
@@ -40,18 +40,20 @@ var import_lodash = require("lodash");
|
|
|
40
40
|
var import_moment = __toESM(require("moment"));
|
|
41
41
|
var import_classnames = __toESM(require("classnames"));
|
|
42
42
|
var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
|
|
43
|
-
var import_util = require("../_util");
|
|
44
43
|
var import_constant = require("./constant");
|
|
45
44
|
var import_PickerPanel = __toESM(require("./PickerPanel"));
|
|
46
45
|
var import_zh_CN = __toESM(require("./locale/zh-CN"));
|
|
47
|
-
var
|
|
46
|
+
var import_style = __toESM(require("./style"));
|
|
48
47
|
var import_ahooks = require("ahooks");
|
|
49
|
-
var
|
|
48
|
+
var import_util = require("@oceanbase/util");
|
|
50
49
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
50
|
var DefaultMaxHistoryCapacity = 20;
|
|
52
|
-
var prefix = (0, import_util.getPrefix)("date-ranger");
|
|
53
51
|
var Ranger = import_react.default.forwardRef((props, ref) => {
|
|
54
52
|
var _a;
|
|
53
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
54
|
+
const prefixCls = getPrefixCls("date-ranger");
|
|
55
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
56
|
+
const prefix = prefixCls;
|
|
55
57
|
const {
|
|
56
58
|
selects = [
|
|
57
59
|
import_constant.NEAR_1_MINUTES,
|
|
@@ -123,8 +125,9 @@ var Ranger = import_react.default.forwardRef((props, ref) => {
|
|
|
123
125
|
}
|
|
124
126
|
return false;
|
|
125
127
|
}, [historyProp]);
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
+
const localStorageKey = `${prefixCls}-date-ranger-history`;
|
|
129
|
+
const [rangeHistory, setRangeHistory] = (0, import_util.useLocalStorageState)(
|
|
130
|
+
localStorageKey,
|
|
128
131
|
{ defaultValue: [], listenStorageChange: true }
|
|
129
132
|
);
|
|
130
133
|
const updateRangeHistory = (range) => {
|
|
@@ -281,376 +284,378 @@ var Ranger = import_react.default.forwardRef((props, ref) => {
|
|
|
281
284
|
const diffMs = e.diff(s);
|
|
282
285
|
return diffMs > differenceMs;
|
|
283
286
|
}) : selects[rangeNameIndex + 1];
|
|
284
|
-
return
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
287
|
+
return wrapSSR(
|
|
288
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
289
|
+
import_design.Space,
|
|
290
|
+
{
|
|
291
|
+
className: (0, import_classnames.default)(rest.className, {
|
|
292
|
+
[prefix]: true,
|
|
293
|
+
[`${prefix}-show-range`]: true,
|
|
294
|
+
[`${prefix}-back-radio-focused`]: backRadioFocused
|
|
295
|
+
}),
|
|
296
|
+
style: rest.style,
|
|
297
|
+
children: [
|
|
298
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { size: 0, children: [
|
|
299
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
300
|
+
"div",
|
|
301
|
+
{
|
|
302
|
+
className: (0, import_classnames.default)(`${prefix}-wrapper`, {
|
|
303
|
+
[`${prefix}-wrapper-has-jumper`]: hasRewind || hasForward
|
|
304
|
+
}),
|
|
305
|
+
children: [
|
|
306
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
307
|
+
import_design.Dropdown,
|
|
308
|
+
{
|
|
309
|
+
trigger: ["click"],
|
|
310
|
+
open,
|
|
311
|
+
placement: rest.placement,
|
|
312
|
+
autoAdjustOverflow,
|
|
313
|
+
getPopupContainer,
|
|
314
|
+
destroyOnHidden: true,
|
|
315
|
+
onOpenChange: (o) => {
|
|
316
|
+
if (o === false && tooltipOpen) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
setOpen(o);
|
|
320
|
+
},
|
|
321
|
+
popupRender: (originNode) => {
|
|
322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
323
|
+
"div",
|
|
324
|
+
{
|
|
325
|
+
ref: popRef,
|
|
326
|
+
className: (0, import_classnames.default)(`${prefix}-dropdown-picker`, overlayClassName),
|
|
327
|
+
style: overlayStyle,
|
|
328
|
+
children: [
|
|
329
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Flex, { vertical: true, justify: "space-between", children: [
|
|
330
|
+
!historyMenuVisible && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "options", children: originNode }),
|
|
331
|
+
history && historyMenuVisible && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "history", children: [
|
|
332
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
333
|
+
import_design.Button,
|
|
334
|
+
{
|
|
335
|
+
type: "link",
|
|
336
|
+
style: { paddingLeft: 8, color: token.colorTextBase },
|
|
337
|
+
onClick: (e) => {
|
|
338
|
+
setHistoryMenuVisible(false);
|
|
339
|
+
e.stopPropagation();
|
|
340
|
+
},
|
|
341
|
+
children: [
|
|
342
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ArrowLeftOutlined, { color: token.colorTextLabel }),
|
|
343
|
+
getHistoryTitle()
|
|
344
|
+
]
|
|
345
|
+
}
|
|
346
|
+
),
|
|
347
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
348
|
+
import_design.Menu,
|
|
349
|
+
{
|
|
350
|
+
onClick: ({ key: rangeString }) => {
|
|
351
|
+
const vList = rangeString.split(",").map((v) => v.trim());
|
|
352
|
+
rangeChange(
|
|
353
|
+
vList.map((v) => {
|
|
354
|
+
return isMoment ? (0, import_moment.default)(v) : (0, import_dayjs.default)(v);
|
|
355
|
+
})
|
|
356
|
+
);
|
|
357
|
+
handleNameChange(import_constant.CUSTOMIZE);
|
|
358
|
+
},
|
|
359
|
+
style: { maxHeight: 480, overflowY: "auto" },
|
|
360
|
+
items: rangeHistory.map((range) => {
|
|
361
|
+
return {
|
|
362
|
+
key: String(range),
|
|
363
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
364
|
+
import_design.Flex,
|
|
365
|
+
{
|
|
366
|
+
className: `${prefix}-history-menu-item`,
|
|
367
|
+
vertical: true,
|
|
368
|
+
children: [
|
|
369
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
370
|
+
(isMoment ? (0, import_moment.default)(range[0]) : (0, import_dayjs.default)(range[0])).format(
|
|
371
|
+
import_constant.YEAR_DATE_TIME_SECOND_FORMAT_CN
|
|
372
|
+
),
|
|
373
|
+
"~"
|
|
374
|
+
] }),
|
|
375
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: (isMoment ? (0, import_moment.default)(range[1]) : (0, import_dayjs.default)(range[1])).format(
|
|
376
|
+
import_constant.YEAR_DATE_TIME_SECOND_FORMAT_CN
|
|
377
|
+
) }),
|
|
378
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { className: `${prefix}-menu-text-btn-wrapper`, children: [
|
|
379
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
380
|
+
import_design.Button,
|
|
381
|
+
{
|
|
382
|
+
className: `${prefix}-menu-text-btn`,
|
|
383
|
+
type: "text",
|
|
384
|
+
color: "default",
|
|
385
|
+
variant: "filled",
|
|
386
|
+
size: "small",
|
|
387
|
+
onClick: (e) => {
|
|
388
|
+
e.stopPropagation();
|
|
389
|
+
const vList = range.map((v) => v);
|
|
390
|
+
const text = `${vList.join("~")}`;
|
|
391
|
+
navigator.clipboard.writeText(text);
|
|
392
|
+
import_design.message.success(text);
|
|
393
|
+
},
|
|
394
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CopyOutlined, {})
|
|
395
|
+
}
|
|
396
|
+
),
|
|
397
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
398
|
+
import_design.Button,
|
|
399
|
+
{
|
|
400
|
+
className: `${prefix}-menu-text-btn`,
|
|
401
|
+
type: "text",
|
|
402
|
+
color: "default",
|
|
403
|
+
variant: "filled",
|
|
404
|
+
size: "small",
|
|
405
|
+
onClick: (e) => {
|
|
406
|
+
e.stopPropagation();
|
|
407
|
+
delRangeHistory(range);
|
|
408
|
+
},
|
|
409
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.DeleteOutlined, {})
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
] })
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
String(range)
|
|
416
|
+
)
|
|
417
|
+
};
|
|
418
|
+
})
|
|
419
|
+
}
|
|
420
|
+
)
|
|
421
|
+
] }),
|
|
422
|
+
history && !historyMenuVisible && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
329
423
|
import_design.Button,
|
|
330
424
|
{
|
|
331
425
|
type: "link",
|
|
332
|
-
style: {
|
|
426
|
+
style: { width: "max-content" },
|
|
333
427
|
onClick: (e) => {
|
|
334
|
-
setHistoryMenuVisible(
|
|
428
|
+
setHistoryMenuVisible(true);
|
|
335
429
|
e.stopPropagation();
|
|
336
430
|
},
|
|
337
431
|
children: [
|
|
338
|
-
|
|
339
|
-
|
|
432
|
+
getHistoryTitle(),
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.RightOutlined, {})
|
|
340
434
|
]
|
|
341
435
|
}
|
|
342
|
-
),
|
|
343
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
344
|
-
import_design.Menu,
|
|
345
|
-
{
|
|
346
|
-
onClick: ({ key: rangeString }) => {
|
|
347
|
-
const vList = rangeString.split(",").map((v) => v.trim());
|
|
348
|
-
rangeChange(
|
|
349
|
-
vList.map((v) => {
|
|
350
|
-
return isMoment ? (0, import_moment.default)(v) : (0, import_dayjs.default)(v);
|
|
351
|
-
})
|
|
352
|
-
);
|
|
353
|
-
handleNameChange(import_constant.CUSTOMIZE);
|
|
354
|
-
},
|
|
355
|
-
style: { maxHeight: 480, overflowY: "auto" },
|
|
356
|
-
items: rangeHistory.map((range) => {
|
|
357
|
-
return {
|
|
358
|
-
key: String(range),
|
|
359
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
360
|
-
import_design.Flex,
|
|
361
|
-
{
|
|
362
|
-
className: `${prefix}-history-menu-item`,
|
|
363
|
-
vertical: true,
|
|
364
|
-
children: [
|
|
365
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
366
|
-
(isMoment ? (0, import_moment.default)(range[0]) : (0, import_dayjs.default)(range[0])).format(
|
|
367
|
-
import_constant.YEAR_DATE_TIME_SECOND_FORMAT_CN
|
|
368
|
-
),
|
|
369
|
-
"~"
|
|
370
|
-
] }),
|
|
371
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: (isMoment ? (0, import_moment.default)(range[1]) : (0, import_dayjs.default)(range[1])).format(
|
|
372
|
-
import_constant.YEAR_DATE_TIME_SECOND_FORMAT_CN
|
|
373
|
-
) }),
|
|
374
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { className: `${prefix}-menu-text-btn-wrapper`, children: [
|
|
375
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
376
|
-
import_design.Button,
|
|
377
|
-
{
|
|
378
|
-
className: `${prefix}-menu-text-btn`,
|
|
379
|
-
type: "text",
|
|
380
|
-
color: "default",
|
|
381
|
-
variant: "filled",
|
|
382
|
-
size: "small",
|
|
383
|
-
onClick: (e) => {
|
|
384
|
-
e.stopPropagation();
|
|
385
|
-
const vList = range.map((v) => v);
|
|
386
|
-
const text = `${vList.join("~")}`;
|
|
387
|
-
navigator.clipboard.writeText(text);
|
|
388
|
-
import_design.message.success(text);
|
|
389
|
-
},
|
|
390
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CopyOutlined, {})
|
|
391
|
-
}
|
|
392
|
-
),
|
|
393
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
394
|
-
import_design.Button,
|
|
395
|
-
{
|
|
396
|
-
className: `${prefix}-menu-text-btn`,
|
|
397
|
-
type: "text",
|
|
398
|
-
color: "default",
|
|
399
|
-
variant: "filled",
|
|
400
|
-
size: "small",
|
|
401
|
-
onClick: (e) => {
|
|
402
|
-
e.stopPropagation();
|
|
403
|
-
delRangeHistory(range);
|
|
404
|
-
},
|
|
405
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.DeleteOutlined, {})
|
|
406
|
-
}
|
|
407
|
-
)
|
|
408
|
-
] })
|
|
409
|
-
]
|
|
410
|
-
},
|
|
411
|
-
String(range)
|
|
412
|
-
)
|
|
413
|
-
};
|
|
414
|
-
})
|
|
415
|
-
}
|
|
416
436
|
)
|
|
417
437
|
] }),
|
|
418
|
-
|
|
419
|
-
|
|
438
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Divider, { type: "vertical", style: { height: "auto", margin: "0px 4px 0px 0px" } }),
|
|
439
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
440
|
+
import_PickerPanel.default,
|
|
420
441
|
{
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
442
|
+
defaultValue: innerValue || [],
|
|
443
|
+
locale,
|
|
444
|
+
disabledDate: pastOnly ? disabledFuture : disabledDate,
|
|
445
|
+
tip,
|
|
446
|
+
isMoment,
|
|
447
|
+
rules,
|
|
448
|
+
hideSecond,
|
|
449
|
+
onOk: (vList) => {
|
|
450
|
+
setIsPlay(false);
|
|
451
|
+
handleNameChange(import_constant.CUSTOMIZE);
|
|
452
|
+
rangeChange(
|
|
453
|
+
vList.map((v) => {
|
|
454
|
+
return isMoment ? (0, import_moment.default)(v) : (0, import_dayjs.default)(v);
|
|
455
|
+
})
|
|
456
|
+
);
|
|
457
|
+
closeTooltip();
|
|
426
458
|
},
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
]
|
|
459
|
+
onCancel: () => {
|
|
460
|
+
closeTooltip();
|
|
461
|
+
}
|
|
431
462
|
}
|
|
432
463
|
)
|
|
433
|
-
]
|
|
434
|
-
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
);
|
|
467
|
+
},
|
|
468
|
+
menu: {
|
|
469
|
+
selectable: true,
|
|
470
|
+
defaultSelectedKeys: [rangeName],
|
|
471
|
+
onClick: ({ key, domEvent }) => {
|
|
472
|
+
const selected = selects.find((_item) => _item.name === key);
|
|
473
|
+
if (selected == null ? void 0 : selected.range) {
|
|
474
|
+
handleNameChange(key);
|
|
475
|
+
setIsPlay(true);
|
|
476
|
+
rangeChange(selected.range(isMoment ? (0, import_moment.default)() : (0, import_dayjs.default)()));
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
items: selects.filter((item) => {
|
|
480
|
+
return !!item;
|
|
481
|
+
}).map((item) => {
|
|
482
|
+
return {
|
|
483
|
+
key: item.name,
|
|
484
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Space, { size: 8, style: { minWidth: 100 }, children: [
|
|
485
|
+
hasTagInPicker && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefix}-label`, children: item.rangeLabel }),
|
|
486
|
+
isEN ? item.enLabel || item.label : item.label
|
|
487
|
+
] })
|
|
488
|
+
};
|
|
489
|
+
})
|
|
490
|
+
},
|
|
491
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
492
|
+
import_design.Space,
|
|
493
|
+
{
|
|
494
|
+
ref: labelRef,
|
|
495
|
+
size: 0,
|
|
496
|
+
onClick: () => {
|
|
497
|
+
setOpen(true);
|
|
498
|
+
setTooltipOpen(true);
|
|
499
|
+
},
|
|
500
|
+
children: [
|
|
435
501
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
436
|
-
|
|
502
|
+
"span",
|
|
437
503
|
{
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
tip,
|
|
442
|
-
isMoment,
|
|
443
|
-
rules,
|
|
444
|
-
hideSecond,
|
|
445
|
-
onOk: (vList) => {
|
|
446
|
-
setIsPlay(false);
|
|
447
|
-
handleNameChange(import_constant.CUSTOMIZE);
|
|
448
|
-
rangeChange(
|
|
449
|
-
vList.map((v) => {
|
|
450
|
-
return isMoment ? (0, import_moment.default)(v) : (0, import_dayjs.default)(v);
|
|
451
|
-
})
|
|
452
|
-
);
|
|
453
|
-
closeTooltip();
|
|
504
|
+
className: `${prefix}-label`,
|
|
505
|
+
style: {
|
|
506
|
+
marginLeft: 8
|
|
454
507
|
},
|
|
455
|
-
|
|
456
|
-
closeTooltip();
|
|
457
|
-
}
|
|
508
|
+
children: rangeLabel
|
|
458
509
|
}
|
|
459
|
-
)
|
|
510
|
+
),
|
|
511
|
+
simpleMode && isPlay && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-play`, children: label })
|
|
460
512
|
]
|
|
461
513
|
}
|
|
462
|
-
)
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
rangeChange(selected.range(isMoment ? (0, import_moment.default)() : (0, import_dayjs.default)()));
|
|
473
|
-
}
|
|
514
|
+
)
|
|
515
|
+
}
|
|
516
|
+
),
|
|
517
|
+
(!simpleMode || !isPlay) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
518
|
+
"span",
|
|
519
|
+
{
|
|
520
|
+
ref: rangeRef,
|
|
521
|
+
onClick: () => {
|
|
522
|
+
setOpen(true);
|
|
523
|
+
setTooltipOpen(true);
|
|
474
524
|
},
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
},
|
|
487
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
488
|
-
import_design.Space,
|
|
489
|
-
{
|
|
490
|
-
ref: labelRef,
|
|
491
|
-
size: 0,
|
|
492
|
-
onClick: () => {
|
|
493
|
-
setOpen(true);
|
|
494
|
-
setTooltipOpen(true);
|
|
495
|
-
},
|
|
496
|
-
children: [
|
|
497
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
498
|
-
"span",
|
|
499
|
-
{
|
|
500
|
-
className: `${prefix}-label`,
|
|
501
|
-
style: {
|
|
502
|
-
marginLeft: 8
|
|
503
|
-
},
|
|
504
|
-
children: rangeLabel
|
|
525
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
526
|
+
import_design.DatePicker.RangePicker,
|
|
527
|
+
{
|
|
528
|
+
className: (0, import_classnames.default)(`${prefix}-picker`),
|
|
529
|
+
style: {
|
|
530
|
+
// pointerEvents: 'none',
|
|
531
|
+
border: 0
|
|
532
|
+
},
|
|
533
|
+
format: (v) => {
|
|
534
|
+
if (hideYear && isThisYear) {
|
|
535
|
+
return hideSecond ? v.format(isCn ? import_constant.DATE_TIME_FORMAT_CN : import_constant.DATE_TIME_FORMAT) : v.format(isCn ? import_constant.DATE_TIME_SECOND_FORMAT_CN : import_constant.DATE_TIME_SECOND_FORMAT);
|
|
505
536
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
537
|
+
return hideSecond ? v.format(isCn ? import_constant.YEAR_DATE_TIME_FORMAT_CN : import_constant.YEAR_DATE_TIME_FORMAT) : v.format(
|
|
538
|
+
isCn ? import_constant.YEAR_DATE_TIME_SECOND_FORMAT_CN : import_constant.YEAR_DATE_TIME_SECOND_FORMAT
|
|
539
|
+
);
|
|
540
|
+
},
|
|
541
|
+
value: innerValue,
|
|
542
|
+
onChange: datePickerChange,
|
|
543
|
+
allowClear: false,
|
|
544
|
+
size,
|
|
545
|
+
suffixIcon: null,
|
|
546
|
+
...(0, import_lodash.omit)(rest, "value", "onChange", "style", "className"),
|
|
547
|
+
open: false
|
|
548
|
+
}
|
|
549
|
+
)
|
|
550
|
+
}
|
|
551
|
+
)
|
|
552
|
+
]
|
|
553
|
+
}
|
|
554
|
+
),
|
|
555
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
556
|
+
import_design.Radio.Group,
|
|
557
|
+
{
|
|
558
|
+
value: isPlay ? "play" : "",
|
|
559
|
+
className: `${prefix}-playback-control`,
|
|
560
|
+
buttonStyle: "solid",
|
|
561
|
+
children: [
|
|
562
|
+
hasRewind && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
563
|
+
import_design.Tooltip,
|
|
564
|
+
{
|
|
565
|
+
title: locale.jumpBack,
|
|
566
|
+
getPopupContainer: (trigger) => trigger.parentNode,
|
|
567
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
568
|
+
import_design.Radio.Button,
|
|
569
|
+
{
|
|
570
|
+
value: "stepBack",
|
|
571
|
+
style: {
|
|
572
|
+
paddingInline: 8,
|
|
573
|
+
borderInlineStart: 0,
|
|
574
|
+
borderTopLeftRadius: 0,
|
|
575
|
+
borderBottomLeftRadius: 0
|
|
576
|
+
},
|
|
577
|
+
onMouseEnter: () => setBackRadioFocused(true),
|
|
578
|
+
onMouseLeave: () => setBackRadioFocused(false),
|
|
579
|
+
onClick: () => {
|
|
580
|
+
if (isPlay) {
|
|
581
|
+
setIsPlay(false);
|
|
582
|
+
}
|
|
583
|
+
if (startTime && endTime) {
|
|
584
|
+
const newStartTime = startTime.clone().subtract(differenceMs, "milliseconds");
|
|
585
|
+
const newEndTime = startTime == null ? void 0 : startTime.clone();
|
|
586
|
+
rangeChange([newStartTime, newEndTime]);
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.LeftOutlined, {})
|
|
590
|
+
}
|
|
591
|
+
)
|
|
592
|
+
}
|
|
593
|
+
),
|
|
594
|
+
hasForward && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
595
|
+
import_design.Tooltip,
|
|
596
|
+
{
|
|
597
|
+
title: locale.jumpForward,
|
|
598
|
+
getPopupContainer: (trigger) => trigger.parentNode,
|
|
599
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
600
|
+
import_design.Radio.Button,
|
|
601
|
+
{
|
|
602
|
+
value: "stepForward",
|
|
603
|
+
style: {
|
|
604
|
+
paddingInline: 8,
|
|
605
|
+
borderInlineStart: 0,
|
|
606
|
+
borderTopLeftRadius: 0,
|
|
607
|
+
borderBottomLeftRadius: 0
|
|
608
|
+
},
|
|
609
|
+
onClick: () => {
|
|
610
|
+
if (startTime && endTime) {
|
|
611
|
+
const newStartTime = endTime.clone();
|
|
612
|
+
const newEndTime = endTime.clone().add(differenceMs);
|
|
613
|
+
if (newEndTime.isBefore(/* @__PURE__ */ new Date())) {
|
|
614
|
+
rangeChange([newStartTime, newEndTime]);
|
|
615
|
+
} else {
|
|
616
|
+
setIsPlay(true);
|
|
617
|
+
setNow();
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.RightOutlined, {})
|
|
622
|
+
}
|
|
623
|
+
)
|
|
624
|
+
}
|
|
625
|
+
)
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
)
|
|
629
|
+
] }),
|
|
630
|
+
hasSync && rangeName !== import_constant.CUSTOMIZE && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
631
|
+
import_design.Button,
|
|
632
|
+
{
|
|
633
|
+
style: { paddingInline: 8, color: token.colorTextSecondary },
|
|
634
|
+
onClick: () => {
|
|
635
|
+
setNow();
|
|
636
|
+
},
|
|
637
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.SyncOutlined, {})
|
|
549
638
|
}
|
|
550
639
|
),
|
|
551
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
552
|
-
import_design.
|
|
640
|
+
hasZoomOut && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
641
|
+
import_design.Button,
|
|
553
642
|
{
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
{
|
|
566
|
-
value: "stepBack",
|
|
567
|
-
style: {
|
|
568
|
-
paddingInline: 8,
|
|
569
|
-
borderInlineStart: 0,
|
|
570
|
-
borderTopLeftRadius: 0,
|
|
571
|
-
borderBottomLeftRadius: 0
|
|
572
|
-
},
|
|
573
|
-
onMouseEnter: () => setBackRadioFocused(true),
|
|
574
|
-
onMouseLeave: () => setBackRadioFocused(false),
|
|
575
|
-
onClick: () => {
|
|
576
|
-
if (isPlay) {
|
|
577
|
-
setIsPlay(false);
|
|
578
|
-
}
|
|
579
|
-
if (startTime && endTime) {
|
|
580
|
-
const newStartTime = startTime.clone().subtract(differenceMs, "milliseconds");
|
|
581
|
-
const newEndTime = startTime == null ? void 0 : startTime.clone();
|
|
582
|
-
rangeChange([newStartTime, newEndTime]);
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.LeftOutlined, {})
|
|
586
|
-
}
|
|
587
|
-
)
|
|
588
|
-
}
|
|
589
|
-
),
|
|
590
|
-
hasForward && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
591
|
-
import_design.Tooltip,
|
|
592
|
-
{
|
|
593
|
-
title: locale.jumpForward,
|
|
594
|
-
getPopupContainer: (trigger) => trigger.parentNode,
|
|
595
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
596
|
-
import_design.Radio.Button,
|
|
597
|
-
{
|
|
598
|
-
value: "stepForward",
|
|
599
|
-
style: {
|
|
600
|
-
paddingInline: 8,
|
|
601
|
-
borderInlineStart: 0,
|
|
602
|
-
borderTopLeftRadius: 0,
|
|
603
|
-
borderBottomLeftRadius: 0
|
|
604
|
-
},
|
|
605
|
-
onClick: () => {
|
|
606
|
-
if (startTime && endTime) {
|
|
607
|
-
const newStartTime = endTime.clone();
|
|
608
|
-
const newEndTime = endTime.clone().add(differenceMs);
|
|
609
|
-
if (newEndTime.isBefore(/* @__PURE__ */ new Date())) {
|
|
610
|
-
rangeChange([newStartTime, newEndTime]);
|
|
611
|
-
} else {
|
|
612
|
-
setIsPlay(true);
|
|
613
|
-
setNow();
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
},
|
|
617
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.RightOutlined, {})
|
|
618
|
-
}
|
|
619
|
-
)
|
|
620
|
-
}
|
|
621
|
-
)
|
|
622
|
-
]
|
|
643
|
+
disabled: !nextRangeItem,
|
|
644
|
+
style: { color: token.colorTextSecondary },
|
|
645
|
+
onClick: () => {
|
|
646
|
+
setIsPlay(true);
|
|
647
|
+
if (nextRangeItem) {
|
|
648
|
+
setRangeName(nextRangeItem.name);
|
|
649
|
+
rangeChange(nextRangeItem.range(isMoment ? (0, import_moment.default)() : (0, import_dayjs.default)()));
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ZoomOutOutlined, {})
|
|
623
654
|
}
|
|
624
655
|
)
|
|
625
|
-
]
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
{
|
|
629
|
-
style: { paddingInline: 8, color: token.colorTextSecondary },
|
|
630
|
-
onClick: () => {
|
|
631
|
-
setNow();
|
|
632
|
-
},
|
|
633
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.SyncOutlined, {})
|
|
634
|
-
}
|
|
635
|
-
),
|
|
636
|
-
hasZoomOut && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
637
|
-
import_design.Button,
|
|
638
|
-
{
|
|
639
|
-
disabled: !nextRangeItem,
|
|
640
|
-
style: { color: token.colorTextSecondary },
|
|
641
|
-
onClick: () => {
|
|
642
|
-
setIsPlay(true);
|
|
643
|
-
if (nextRangeItem) {
|
|
644
|
-
setRangeName(nextRangeItem.name);
|
|
645
|
-
rangeChange(nextRangeItem.range(isMoment ? (0, import_moment.default)() : (0, import_dayjs.default)()));
|
|
646
|
-
return;
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ZoomOutOutlined, {})
|
|
650
|
-
}
|
|
651
|
-
)
|
|
652
|
-
]
|
|
653
|
-
}
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
)
|
|
654
659
|
);
|
|
655
660
|
});
|
|
656
661
|
var Ranger_default = (0, import_LocaleWrapper.default)({
|