@oceanbase/ui 0.4.19 → 0.4.21

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 (136) hide show
  1. package/dist/ui.min.css +1 -1
  2. package/dist/ui.min.js +1 -1
  3. package/es/Action/Group.js +121 -15
  4. package/es/Action/style/index.js +8 -4
  5. package/es/BasicLayout/locale/ja-JP.d.ts +13 -0
  6. package/es/BasicLayout/locale/ja-JP.js +12 -0
  7. package/es/BatchOperationBar/locale/ja-JP.d.ts +7 -0
  8. package/es/BatchOperationBar/locale/ja-JP.js +6 -0
  9. package/es/Boundary/locale/ja-JP.d.ts +11 -0
  10. package/es/Boundary/locale/ja-JP.js +10 -0
  11. package/es/DateRanger/Ranger.d.ts +4 -0
  12. package/es/DateRanger/Ranger.js +158 -14
  13. package/es/DateRanger/constant/index.js +1 -1
  14. package/es/DateRanger/index.less +23 -0
  15. package/es/DateRanger/locale/ja-JP.d.ts +56 -0
  16. package/es/DateRanger/locale/ja-JP.js +20 -0
  17. package/es/Dialog/locale/ja-JP.d.ts +5 -0
  18. package/es/Dialog/locale/ja-JP.js +4 -0
  19. package/es/DocDialog/locale/ja-JP.d.ts +2 -0
  20. package/es/DocDialog/locale/ja-JP.js +1 -0
  21. package/es/FullscreenBox/locale/ja-JP.d.ts +2 -0
  22. package/es/FullscreenBox/locale/ja-JP.js +1 -0
  23. package/es/GraphToolbar/locale/ja-JP.d.ts +9 -0
  24. package/es/GraphToolbar/locale/ja-JP.js +8 -0
  25. package/es/Highlight/locale/ja-JP.d.ts +4 -0
  26. package/es/Highlight/locale/ja-JP.js +3 -0
  27. package/es/Login/locale/ja-JP.d.ts +28 -0
  28. package/es/Login/locale/ja-JP.js +27 -0
  29. package/es/PageContainer/locale/ja-JP.d.ts +4 -0
  30. package/es/PageContainer/locale/ja-JP.js +3 -0
  31. package/es/Password/locale/ja-JP.d.ts +13 -0
  32. package/es/Password/locale/ja-JP.js +12 -0
  33. package/es/ProTable/index.js +4 -1
  34. package/es/Ranger/locale/ja-JP.d.ts +28 -0
  35. package/es/Ranger/locale/ja-JP.js +29 -0
  36. package/es/SideTip/locale/ja-JP.d.ts +2 -0
  37. package/es/SideTip/locale/ja-JP.js +1 -0
  38. package/es/TaskGraph/locale/ja-JP.d.ts +13 -0
  39. package/es/TaskGraph/locale/ja-JP.js +12 -0
  40. package/es/Welcome/locale/ja-JP.d.ts +5 -0
  41. package/es/Welcome/locale/ja-JP.js +4 -0
  42. package/es/locale/ja-JP.d.ts +3 -0
  43. package/es/locale/ja-JP.js +42 -0
  44. package/lib/Action/Group.js +122 -46
  45. package/lib/Action/Item.js +14 -9
  46. package/lib/Action/style/index.js +16 -1
  47. package/lib/BackgroundTaskManager/RefreshMan.js +3 -12
  48. package/lib/BackgroundTaskManager/index.js +3 -12
  49. package/lib/BasicLayout/Header.js +120 -62
  50. package/lib/BasicLayout/index.js +166 -143
  51. package/lib/BasicLayout/locale/ja-JP.d.ts +13 -0
  52. package/lib/BasicLayout/locale/ja-JP.js +36 -0
  53. package/lib/BatchOperationBar/index.js +59 -44
  54. package/lib/BatchOperationBar/locale/ja-JP.d.ts +7 -0
  55. package/lib/BatchOperationBar/locale/ja-JP.js +30 -0
  56. package/lib/Boundary/Components/Code.js +11 -5
  57. package/lib/Boundary/Components/Exception.js +33 -23
  58. package/lib/Boundary/Components/Function.js +11 -5
  59. package/lib/Boundary/locale/ja-JP.d.ts +11 -0
  60. package/lib/Boundary/locale/ja-JP.js +34 -0
  61. package/lib/ContentWithIcon/index.js +30 -22
  62. package/lib/ContentWithQuestion/index.js +8 -3
  63. package/lib/DateRanger/PickerPanel.js +235 -217
  64. package/lib/DateRanger/Ranger.d.ts +4 -0
  65. package/lib/DateRanger/Ranger.js +396 -227
  66. package/lib/DateRanger/constant/index.js +1 -1
  67. package/lib/DateRanger/index.less +23 -0
  68. package/lib/DateRanger/locale/ja-JP.d.ts +56 -0
  69. package/lib/DateRanger/locale/ja-JP.js +49 -0
  70. package/lib/Dialog/Anchor.js +8 -5
  71. package/lib/Dialog/EventProxy.js +3 -12
  72. package/lib/Dialog/index.js +132 -108
  73. package/lib/Dialog/locale/ja-JP.d.ts +5 -0
  74. package/lib/Dialog/locale/ja-JP.js +28 -0
  75. package/lib/DocDialog/index.js +3 -2
  76. package/lib/DocDialog/locale/ja-JP.d.ts +2 -0
  77. package/lib/DocDialog/locale/ja-JP.js +25 -0
  78. package/lib/FooterToolbar/index.js +3 -2
  79. package/lib/FullscreenBox/index.js +16 -7
  80. package/lib/FullscreenBox/locale/ja-JP.d.ts +2 -0
  81. package/lib/FullscreenBox/locale/ja-JP.js +25 -0
  82. package/lib/GraphToolbar/index.js +70 -58
  83. package/lib/GraphToolbar/locale/ja-JP.d.ts +9 -0
  84. package/lib/GraphToolbar/locale/ja-JP.js +32 -0
  85. package/lib/Highlight/DiffView/DiffCells.js +17 -10
  86. package/lib/Highlight/DiffView/index.js +35 -31
  87. package/lib/Highlight/HighlightCell.js +13 -10
  88. package/lib/Highlight/JsonView.js +15 -14
  89. package/lib/Highlight/index.js +50 -45
  90. package/lib/Highlight/locale/ja-JP.d.ts +4 -0
  91. package/lib/Highlight/locale/ja-JP.js +27 -0
  92. package/lib/IconFont/index.js +2 -12
  93. package/lib/LightFilter/index.js +3 -2
  94. package/lib/LocaleDropdown/index.js +13 -20
  95. package/lib/Login/ActivateForm.js +53 -60
  96. package/lib/Login/LoginForm.js +118 -109
  97. package/lib/Login/RegisterForm.js +79 -86
  98. package/lib/Login/index.js +92 -64
  99. package/lib/Login/locale/ja-JP.d.ts +28 -0
  100. package/lib/Login/locale/ja-JP.js +51 -0
  101. package/lib/NavMenu/index.js +9 -8
  102. package/lib/PageContainer/ItemRender.js +5 -5
  103. package/lib/PageContainer/index.js +8 -4
  104. package/lib/PageContainer/locale/ja-JP.d.ts +4 -0
  105. package/lib/PageContainer/locale/ja-JP.js +27 -0
  106. package/lib/PageLoading/index.js +6 -16
  107. package/lib/Password/Content.js +38 -42
  108. package/lib/Password/index.js +83 -68
  109. package/lib/Password/locale/ja-JP.d.ts +13 -0
  110. package/lib/Password/locale/ja-JP.js +36 -0
  111. package/lib/ProCard/index.js +4 -3
  112. package/lib/ProTable/index.js +10 -5
  113. package/lib/Ranger/QuickPicker.js +24 -15
  114. package/lib/Ranger/Ranger.js +37 -34
  115. package/lib/Ranger/locale/ja-JP.d.ts +28 -0
  116. package/lib/Ranger/locale/ja-JP.js +53 -0
  117. package/lib/SideTip/Dragger.js +5 -4
  118. package/lib/SideTip/IconLoading.js +25 -25
  119. package/lib/SideTip/index.js +19 -10
  120. package/lib/SideTip/locale/ja-JP.d.ts +2 -0
  121. package/lib/SideTip/locale/ja-JP.js +25 -0
  122. package/lib/TagSelect/Group.js +9 -5
  123. package/lib/TagSelect/Item.js +22 -18
  124. package/lib/TaskGraph/Graph.js +29 -24
  125. package/lib/TaskGraph/index.js +56 -50
  126. package/lib/TaskGraph/locale/ja-JP.d.ts +13 -0
  127. package/lib/TaskGraph/locale/ja-JP.js +36 -0
  128. package/lib/TreeSearch/index.js +30 -35
  129. package/lib/Welcome/index.js +64 -37
  130. package/lib/Welcome/locale/ja-JP.d.ts +5 -0
  131. package/lib/Welcome/locale/ja-JP.js +28 -0
  132. package/lib/Welcome/step.js +11 -4
  133. package/lib/locale/LocaleWrapper.js +15 -14
  134. package/lib/locale/ja-JP.d.ts +3 -0
  135. package/lib/locale/ja-JP.js +71 -0
  136. package/package.json +5 -5
@@ -258,7 +258,7 @@ var THIS_WEEK = {
258
258
  var LAST_WEEK = {
259
259
  label: "上周",
260
260
  enLabel: "Last week",
261
- rangeLabel: "last week",
261
+ rangeLabel: "1w",
262
262
  name: "LAST_WEEK",
263
263
  range: (current = (0, import_moment.default)()) => [
264
264
  current.clone().startOf(WEEK_UNIT).add(-1, WEEK_UNIT),
@@ -155,3 +155,26 @@
155
155
  }
156
156
  }
157
157
  }
158
+
159
+ .@{prefix}-history-menu-item {
160
+ .@{prefix}-menu-text-btn-wrapper {
161
+ justify-content: space-between;
162
+ height: 0;
163
+ transition: height 0.2s;
164
+ overflow: hidden;
165
+ }
166
+ &:hover {
167
+ .@{prefix}-menu-text-btn-wrapper {
168
+ height: 22px;
169
+ }
170
+ }
171
+ }
172
+
173
+ .@{prefix}-menu-text-btn {
174
+ width: 72px;
175
+
176
+ background-color: @colorFillSecondary !important;
177
+ &:hover {
178
+ background-color: @colorFill !important;
179
+ }
180
+ }
@@ -0,0 +1,56 @@
1
+ declare const _default: {
2
+ locale: string;
3
+ dateFormat?: string;
4
+ dateTimeFormat?: string;
5
+ fieldDateTimeFormat?: string;
6
+ fieldDateFormat?: string;
7
+ fieldTimeFormat?: string;
8
+ fieldMonthFormat?: string;
9
+ fieldYearFormat?: string;
10
+ fieldWeekFormat?: string;
11
+ fieldQuarterFormat?: string;
12
+ monthBeforeYear?: boolean;
13
+ yearFormat?: string;
14
+ monthFormat?: string;
15
+ cellYearFormat?: string;
16
+ cellQuarterFormat?: string;
17
+ dayFormat?: string;
18
+ cellDateFormat?: string;
19
+ cellMeridiemFormat?: string;
20
+ today: string;
21
+ now: string;
22
+ backToToday: string;
23
+ ok: string;
24
+ timeSelect: string;
25
+ dateSelect: string;
26
+ weekSelect?: string;
27
+ clear: string;
28
+ week: string;
29
+ month: string;
30
+ year: string;
31
+ previousMonth: string;
32
+ nextMonth: string;
33
+ monthSelect: string;
34
+ yearSelect: string;
35
+ decadeSelect: string;
36
+ previousYear: string;
37
+ nextYear: string;
38
+ previousDecade: string;
39
+ nextDecade: string;
40
+ previousCentury: string;
41
+ nextCentury: string;
42
+ shortWeekDays?: string[];
43
+ shortMonths?: string[];
44
+ customize: string;
45
+ customTime: string;
46
+ startDate: string;
47
+ startTime: string;
48
+ endDate: string;
49
+ endTime: string;
50
+ cancel: string;
51
+ confirm: string;
52
+ current: string;
53
+ jumpBack: string;
54
+ jumpForward: string;
55
+ };
56
+ export default _default;
@@ -0,0 +1,49 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/DateRanger/locale/ja-JP.ts
30
+ var ja_JP_exports = {};
31
+ __export(ja_JP_exports, {
32
+ default: () => ja_JP_default
33
+ });
34
+ module.exports = __toCommonJS(ja_JP_exports);
35
+ var import_ja_JP = __toESM(require("rc-picker/es/locale/ja_JP"));
36
+ var ja_JP_default = {
37
+ customize: "カスタム",
38
+ customTime: "カスタム時間",
39
+ startDate: "開始日",
40
+ startTime: "開始時刻",
41
+ endDate: "終了日",
42
+ endTime: "終了時刻",
43
+ cancel: "キャンセル",
44
+ confirm: "確定",
45
+ current: "現在",
46
+ jumpBack: "前の時間間隔にジャンプ",
47
+ jumpForward: "次の時間間隔にジャンプ",
48
+ ...import_ja_JP.default
49
+ };
@@ -35,6 +35,7 @@ module.exports = __toCommonJS(Anchor_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_util = require("../_util");
37
37
  var import_EventProxy = require("./EventProxy");
38
+ var import_jsx_runtime = require("react/jsx-runtime");
38
39
  var prefix = (0, import_util.getPrefix)("dialog");
39
40
  var Anchor = class extends import_react.default.Component {
40
41
  constructor() {
@@ -89,15 +90,17 @@ var Anchor = class extends import_react.default.Component {
89
90
  }
90
91
  render() {
91
92
  const { children, style, dock } = this.props;
92
- return /* @__PURE__ */ import_react.default.createElement(
93
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
93
94
  "div",
94
95
  {
95
96
  className: `${prefix}-anchor`,
96
97
  style: { ...style, ...dock == null ? void 0 : dock.style },
97
- onPointerDown: this.onDragStart
98
- },
99
- /* @__PURE__ */ import_react.default.createElement(import_EventProxy.EventProxy, { onPointerMove: this.onDragMove, onPointerUp: this.onDragEnd }),
100
- children
98
+ onPointerDown: this.onDragStart,
99
+ children: [
100
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EventProxy.EventProxy, { onPointerMove: this.onDragMove, onPointerUp: this.onDragEnd }),
101
+ children
102
+ ]
103
+ }
101
104
  );
102
105
  }
103
106
  };
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/Dialog/EventProxy.tsx
@@ -33,7 +23,8 @@ __export(EventProxy_exports, {
33
23
  });
34
24
  module.exports = __toCommonJS(EventProxy_exports);
35
25
  var import_lodash = require("lodash");
36
- var import_react = __toESM(require("react"));
26
+ var import_react = require("react");
27
+ var import_jsx_runtime = require("react/jsx-runtime");
37
28
  var EventProxy = (props) => {
38
29
  const handlers = (0, import_react.useMemo)(() => {
39
30
  return Object.entries(props).reduce((list, [name, handler]) => {
@@ -61,7 +52,7 @@ var EventProxy = (props) => {
61
52
  unbind();
62
53
  };
63
54
  }, [bind, unbind]);
64
- return /* @__PURE__ */ import_react.default.createElement("div", { id: "event-proxy" });
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { id: "event-proxy" });
65
56
  };
66
57
  // Annotate the CommonJS export names for ESM import in node:
67
58
  0 && (module.exports = {
@@ -42,6 +42,7 @@ var import_Dock = require("./Dock");
42
42
  var import_EventProxy = require("./EventProxy");
43
43
  var import_zh_CN = __toESM(require("./locale/zh-CN"));
44
44
  var import_index = require("./index.less");
45
+ var import_jsx_runtime = require("react/jsx-runtime");
45
46
  var prefix = (0, import_util.getPrefix)("dialog");
46
47
  var DEFAULT_LEFT = 0.1;
47
48
  var DEFAULT_TOP = 0.1;
@@ -306,71 +307,83 @@ var _DialogComp = class extends import_react.default.PureComponent {
306
307
  ...minimize ? { boxShadow: "0 2px 20px 0 rgba(4, 1, 30, 0.07)" } : {},
307
308
  ...isEmbed ? { cursor: "initial" } : {}
308
309
  };
309
- return /* @__PURE__ */ import_react.default.createElement(
310
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
310
311
  "header",
311
312
  {
312
313
  className: `${prefix}-header`,
313
314
  style,
314
315
  onPointerDown: this.onDragStart,
315
- onDoubleClick: this.toggleMaximization
316
- },
317
- /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-title` }, title || locale.helpDocument),
318
- this.renderControls()
316
+ onDoubleClick: this.toggleMaximization,
317
+ children: [
318
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefix}-title`, children: title || locale.helpDocument }),
319
+ this.renderControls()
320
+ ]
321
+ }
319
322
  );
320
323
  }
321
324
  renderControlLink() {
322
325
  const { extLink } = this.props;
323
- return /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-item` }, /* @__PURE__ */ import_react.default.createElement(
326
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefix}-item`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
324
327
  "a",
325
328
  {
326
329
  className: `${prefix}-item-link`,
327
330
  href: extLink == null ? void 0 : extLink.link,
328
331
  target: "_blank",
329
- rel: "noopener noreferrer"
330
- },
331
- /* @__PURE__ */ import_react.default.createElement(
332
- "svg",
333
- {
334
- className: "icon",
335
- viewBox: "0 0 1024 1024",
336
- version: "1.1",
337
- xmlns: "http://www.w3.org/2000/svg",
338
- width: "16",
339
- height: "16"
340
- },
341
- /* @__PURE__ */ import_react.default.createElement(
342
- "path",
332
+ rel: "noopener noreferrer",
333
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
334
+ "svg",
343
335
  {
344
- d: "M880.0256 912.0256H144.0256a31.9488 31.9488 0 0 1-32.0512-32V144.0256c0-17.7152 14.336-32.0512 32.0512-32.0512h359.936c4.4544 0 8.0384 3.584 8.0384 8.0384v56.0128c0 4.352-3.584 7.9872-7.9872 7.9872h-320v655.9744h655.9744v-320c0-4.4032 3.584-7.9872 8.0384-7.9872h55.9616c4.4032 0 8.0384 3.584 8.0384 7.9872v359.9872c0 17.7152-14.336 32-32 32zM770.8672 199.1168l-52.224-52.224a8.0384 8.0384 0 0 1 4.7104-13.568l179.4048-20.992c5.12-0.6144 9.5232 3.6864 8.9088 8.9088l-20.992 179.4048a8.0384 8.0384 0 0 1-13.6192 4.6592L824.6784 252.928l-256.2048 256.2048c-3.072 3.072-8.192 3.072-11.264 0l-42.4448-42.3936a8.0384 8.0384 0 0 1 0-11.264l256.1024-256.3584z"
336
+ className: "icon",
337
+ viewBox: "0 0 1024 1024",
338
+ version: "1.1",
339
+ xmlns: "http://www.w3.org/2000/svg",
340
+ width: "16",
341
+ height: "16",
342
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
343
+ "path",
344
+ {
345
+ d: "M880.0256 912.0256H144.0256a31.9488 31.9488 0 0 1-32.0512-32V144.0256c0-17.7152 14.336-32.0512 32.0512-32.0512h359.936c4.4544 0 8.0384 3.584 8.0384 8.0384v56.0128c0 4.352-3.584 7.9872-7.9872 7.9872h-320v655.9744h655.9744v-320c0-4.4032 3.584-7.9872 8.0384-7.9872h55.9616c4.4032 0 8.0384 3.584 8.0384 7.9872v359.9872c0 17.7152-14.336 32-32 32zM770.8672 199.1168l-52.224-52.224a8.0384 8.0384 0 0 1 4.7104-13.568l179.4048-20.992c5.12-0.6144 9.5232 3.6864 8.9088 8.9088l-20.992 179.4048a8.0384 8.0384 0 0 1-13.6192 4.6592L824.6784 252.928l-256.2048 256.2048c-3.072 3.072-8.192 3.072-11.264 0l-42.4448-42.3936a8.0384 8.0384 0 0 1 0-11.264l256.1024-256.3584z"
346
+ }
347
+ )
345
348
  }
346
349
  )
347
- )
348
- ));
350
+ }
351
+ ) });
349
352
  }
350
353
  renderControls() {
351
354
  const { maximization, minimize } = this.state;
352
355
  const { enableMaximization, isEmbed } = this.props;
353
356
  if (isEmbed) {
354
- return /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-controls` }, this.renderControlLink(), /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-item`, onClick: this.onClose }, /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null)));
357
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: `${prefix}-controls`, children: [
358
+ this.renderControlLink(),
359
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefix}-item`, onClick: this.onClose, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseOutlined, {}) })
360
+ ] });
355
361
  }
356
- return /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-controls` }, this.renderControlLink(), /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-item`, onClick: this.toggleMinimize }, minimize ? /* @__PURE__ */ import_react.default.createElement(import_icons.ExpandAltOutlined, null) : /* @__PURE__ */ import_react.default.createElement(import_icons.MinusOutlined, null)), enableMaximization && /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-item`, onClick: this.toggleMaximization }, maximization ? /* @__PURE__ */ import_react.default.createElement(import_icons.FullscreenExitOutlined, null) : /* @__PURE__ */ import_react.default.createElement(import_icons.FullscreenOutlined, null)), /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}-item`, onClick: this.onClose }, /* @__PURE__ */ import_react.default.createElement(import_icons.CloseOutlined, null)));
362
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: `${prefix}-controls`, children: [
363
+ this.renderControlLink(),
364
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefix}-item`, onClick: this.toggleMinimize, children: minimize ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ExpandAltOutlined, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.MinusOutlined, {}) }),
365
+ enableMaximization && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefix}-item`, onClick: this.toggleMaximization, children: maximization ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.FullscreenExitOutlined, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.FullscreenOutlined, {}) }),
366
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefix}-item`, onClick: this.onClose, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.CloseOutlined, {}) })
367
+ ] });
357
368
  }
358
369
  renderContent() {
359
370
  const { children } = this.props;
360
- return /* @__PURE__ */ import_react.default.createElement(
371
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
361
372
  "main",
362
373
  {
363
374
  className: `${prefix}-main`,
364
- style: this.state.minimize ? { visibility: "hidden" } : {}
365
- },
366
- this.renderMask(),
367
- children
375
+ style: this.state.minimize ? { visibility: "hidden" } : {},
376
+ children: [
377
+ this.renderMask(),
378
+ children
379
+ ]
380
+ }
368
381
  );
369
382
  }
370
383
  renderMask() {
371
384
  if (!this.hasMask)
372
385
  return;
373
- return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-mask` });
386
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-mask` });
374
387
  }
375
388
  // 将比例转换为绝对数值,各个端的渲染依据视口大小会有不同
376
389
  getCompatAbsPostion(info) {
@@ -416,19 +429,21 @@ var _DialogComp = class extends import_react.default.PureComponent {
416
429
  renderDialog() {
417
430
  const style = this.getStyle();
418
431
  const { className, isEmbed } = this.props;
419
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
432
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
420
433
  "div",
421
434
  {
422
435
  className: `${prefix}-container ${className} ${isEmbed ? `${prefix}-container-embed` : ""}`,
423
436
  style,
424
- ...this.state.minimize ? {} : { tabIndex: 0 }
425
- },
426
- this.renderHeader(),
427
- this.renderContent(),
428
- isEmbed ? this.renderEmbedBorders() : this.renderBorders(),
429
- /* @__PURE__ */ import_react.default.createElement(import_EventProxy.EventProxy, { onPointerMove: this.onDragMove, onPointerUp: this.onDragEnd }),
430
- /* @__PURE__ */ import_react.default.createElement(import_EventProxy.EventProxy, { onPointerUp: this.detectPointUp })
431
- ));
437
+ ...this.state.minimize ? {} : { tabIndex: 0 },
438
+ children: [
439
+ this.renderHeader(),
440
+ this.renderContent(),
441
+ isEmbed ? this.renderEmbedBorders() : this.renderBorders(),
442
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EventProxy.EventProxy, { onPointerMove: this.onDragMove, onPointerUp: this.onDragEnd }),
443
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EventProxy.EventProxy, { onPointerUp: this.detectPointUp })
444
+ ]
445
+ }
446
+ ) });
432
447
  }
433
448
  /**
434
449
  * width,height 是否在最大最小值的范围内
@@ -460,7 +475,7 @@ var _DialogComp = class extends import_react.default.PureComponent {
460
475
  return result;
461
476
  }
462
477
  renderEmbedBorders() {
463
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
478
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
464
479
  import_Anchor.Anchor,
465
480
  {
466
481
  dock: import_Dock.Dock.left,
@@ -468,79 +483,88 @@ var _DialogComp = class extends import_react.default.PureComponent {
468
483
  onMove: this.onResizeMove,
469
484
  onEnd: this.onResizeEnd
470
485
  }
471
- ));
486
+ ) });
472
487
  }
473
488
  renderBorders() {
474
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
475
- import_Anchor.Anchor,
476
- {
477
- dock: import_Dock.Dock.top,
478
- onStart: this.onResizeStart,
479
- onMove: this.onResizeMove,
480
- onEnd: this.onResizeEnd
481
- }
482
- ), /* @__PURE__ */ import_react.default.createElement(
483
- import_Anchor.Anchor,
484
- {
485
- dock: import_Dock.Dock.right,
486
- onStart: this.onResizeStart,
487
- onMove: this.onResizeMove,
488
- onEnd: this.onResizeEnd
489
- }
490
- ), /* @__PURE__ */ import_react.default.createElement(
491
- import_Anchor.Anchor,
492
- {
493
- dock: import_Dock.Dock.bottom,
494
- onStart: this.onResizeStart,
495
- onMove: this.onResizeMove,
496
- onEnd: this.onResizeEnd
497
- }
498
- ), /* @__PURE__ */ import_react.default.createElement(
499
- import_Anchor.Anchor,
500
- {
501
- dock: import_Dock.Dock.left,
502
- onStart: this.onResizeStart,
503
- onMove: this.onResizeMove,
504
- onEnd: this.onResizeEnd
505
- }
506
- ), /* @__PURE__ */ import_react.default.createElement(
507
- import_Anchor.Anchor,
508
- {
509
- dock: import_Dock.Dock.topLeft,
510
- onStart: this.onResizeStart,
511
- onMove: this.onResizeMove,
512
- onEnd: this.onResizeEnd
513
- }
514
- ), /* @__PURE__ */ import_react.default.createElement(
515
- import_Anchor.Anchor,
516
- {
517
- dock: import_Dock.Dock.topRight,
518
- onStart: this.onResizeStart,
519
- onMove: this.onResizeMove,
520
- onEnd: this.onResizeEnd
521
- }
522
- ), /* @__PURE__ */ import_react.default.createElement(
523
- import_Anchor.Anchor,
524
- {
525
- dock: import_Dock.Dock.bottomLeft,
526
- onStart: this.onResizeStart,
527
- onMove: this.onResizeMove,
528
- onEnd: this.onResizeEnd
529
- }
530
- ), /* @__PURE__ */ import_react.default.createElement(
531
- import_Anchor.Anchor,
532
- {
533
- dock: import_Dock.Dock.bottomRight,
534
- onStart: this.onResizeStart,
535
- onMove: this.onResizeMove,
536
- onEnd: this.onResizeEnd
537
- }
538
- ));
489
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
490
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
491
+ import_Anchor.Anchor,
492
+ {
493
+ dock: import_Dock.Dock.top,
494
+ onStart: this.onResizeStart,
495
+ onMove: this.onResizeMove,
496
+ onEnd: this.onResizeEnd
497
+ }
498
+ ),
499
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
500
+ import_Anchor.Anchor,
501
+ {
502
+ dock: import_Dock.Dock.right,
503
+ onStart: this.onResizeStart,
504
+ onMove: this.onResizeMove,
505
+ onEnd: this.onResizeEnd
506
+ }
507
+ ),
508
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
509
+ import_Anchor.Anchor,
510
+ {
511
+ dock: import_Dock.Dock.bottom,
512
+ onStart: this.onResizeStart,
513
+ onMove: this.onResizeMove,
514
+ onEnd: this.onResizeEnd
515
+ }
516
+ ),
517
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
518
+ import_Anchor.Anchor,
519
+ {
520
+ dock: import_Dock.Dock.left,
521
+ onStart: this.onResizeStart,
522
+ onMove: this.onResizeMove,
523
+ onEnd: this.onResizeEnd
524
+ }
525
+ ),
526
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
527
+ import_Anchor.Anchor,
528
+ {
529
+ dock: import_Dock.Dock.topLeft,
530
+ onStart: this.onResizeStart,
531
+ onMove: this.onResizeMove,
532
+ onEnd: this.onResizeEnd
533
+ }
534
+ ),
535
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
536
+ import_Anchor.Anchor,
537
+ {
538
+ dock: import_Dock.Dock.topRight,
539
+ onStart: this.onResizeStart,
540
+ onMove: this.onResizeMove,
541
+ onEnd: this.onResizeEnd
542
+ }
543
+ ),
544
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
545
+ import_Anchor.Anchor,
546
+ {
547
+ dock: import_Dock.Dock.bottomLeft,
548
+ onStart: this.onResizeStart,
549
+ onMove: this.onResizeMove,
550
+ onEnd: this.onResizeEnd
551
+ }
552
+ ),
553
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
554
+ import_Anchor.Anchor,
555
+ {
556
+ dock: import_Dock.Dock.bottomRight,
557
+ onStart: this.onResizeStart,
558
+ onMove: this.onResizeMove,
559
+ onEnd: this.onResizeEnd
560
+ }
561
+ )
562
+ ] });
539
563
  }
540
564
  render() {
541
565
  const { visible, isEmbed } = this.props;
542
566
  if (!visible && !isEmbed)
543
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null);
567
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.default.Fragment, {});
544
568
  return (0, import_react_dom.createPortal)(this.renderDialog(), _DialogComp.container);
545
569
  }
546
570
  };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ helpDocument: string;
3
+ openHelpCenter: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/Dialog/locale/ja-JP.ts
20
+ var ja_JP_exports = {};
21
+ __export(ja_JP_exports, {
22
+ default: () => ja_JP_default
23
+ });
24
+ module.exports = __toCommonJS(ja_JP_exports);
25
+ var ja_JP_default = {
26
+ helpDocument: "ヘルプドキュメント",
27
+ openHelpCenter: "ドキュメントセンターを開く"
28
+ };
@@ -33,10 +33,11 @@ __export(DocDialog_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(DocDialog_exports);
35
35
  var import_lodash = require("lodash");
36
- var import_react = __toESM(require("react"));
36
+ var import_react = require("react");
37
37
  var import_Dialog = __toESM(require("../Dialog"));
38
38
  var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
39
39
  var import_zh_CN = __toESM(require("./locale/zh-CN"));
40
+ var import_jsx_runtime = require("react/jsx-runtime");
40
41
  var DEFAULT_EMBDED_WIDTH = 0.4;
41
42
  var MAX_EMBED_WIDTH = 0.5;
42
43
  var MIN_EMBED_WIDTH = 0.3;
@@ -126,7 +127,7 @@ var DocDialogComp = (props) => {
126
127
  setRootWidth,
127
128
  setVisible
128
129
  ]);
129
- return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(import_Dialog.default, { ...DialogProps }, /* @__PURE__ */ import_react.default.createElement("iframe", { src: currentLink })));
130
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Dialog.default, { ...DialogProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("iframe", { src: currentLink }) }) });
130
131
  };
131
132
  var DocDialog_default = (0, import_LocaleWrapper.default)({
132
133
  componentName: "DocDialog",
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,25 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/DocDialog/locale/ja-JP.ts
20
+ var ja_JP_exports = {};
21
+ __export(ja_JP_exports, {
22
+ default: () => ja_JP_default
23
+ });
24
+ module.exports = __toCommonJS(ja_JP_exports);
25
+ var ja_JP_default = {};
@@ -32,10 +32,11 @@ __export(FooterToolbar_exports, {
32
32
  default: () => FooterToolbar_default
33
33
  });
34
34
  module.exports = __toCommonJS(FooterToolbar_exports);
35
- var import_react = __toESM(require("react"));
35
+ var import_react = require("react");
36
36
  var import_pro_components = require("@ant-design/pro-components");
37
37
  var import_design = require("@oceanbase/design");
38
38
  var import_style = __toESM(require("./style"));
39
+ var import_jsx_runtime = require("react/jsx-runtime");
39
40
  var FooterToolbar = ({
40
41
  // render footer under parent instead of body by default
41
42
  portalDom = false,
@@ -46,7 +47,7 @@ var FooterToolbar = ({
46
47
  const prefixCls = getPrefixCls("pro-footer-bar", customizePrefixCls);
47
48
  const { wrapSSR } = (0, import_style.default)(prefixCls);
48
49
  return wrapSSR(
49
- /* @__PURE__ */ import_react.default.createElement(import_pro_components.FooterToolbar, { portalDom, prefixCls: customizePrefixCls, ...restProps })
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_pro_components.FooterToolbar, { portalDom, prefixCls: customizePrefixCls, ...restProps })
50
51
  );
51
52
  };
52
53
  var FooterToolbar_default = FooterToolbar;