@mxmweb/xviewer 1.0.39 → 1.0.41
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/index.js +551 -856
- package/package.json +1 -1
- package/stats.html +1 -1
package/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
1
2
|
import * as d from "react";
|
|
2
3
|
import d__default, { useState, useEffect, useCallback, useDebugValue, createElement, useRef, useContext, createContext, useLayoutEffect as useLayoutEffect$2, forwardRef, useMemo as useMemo$1, Children, useImperativeHandle, isValidElement, cloneElement as cloneElement$1 } from "react";
|
|
3
4
|
import { Button as POr, MoreDropdown as htd, DashboardContainer as Hod, DropDownButton as Lod } from "./zui-BGw9Otpd.js";
|
|
@@ -5,330 +6,24 @@ import { S as Search$1, X as X$1, i as isFragment$1, _ as _typeof, t as toProper
|
|
|
5
6
|
import * as Ol from "react-dom";
|
|
6
7
|
import Ol__default, { createPortal, unstable_batchedUpdates, flushSync } from "react-dom";
|
|
7
8
|
import { q as qHd } from "./rtext-BreKQvSW.js";
|
|
8
|
-
var jsxRuntime = { exports: {} };
|
|
9
|
-
var reactJsxRuntime_production = {};
|
|
10
|
-
/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
var hasRequiredReactJsxRuntime_production;
|
|
20
|
-
function requireReactJsxRuntime_production() {
|
|
21
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
22
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
23
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
24
|
-
function jsxProd(type4, config, maybeKey) {
|
|
25
|
-
var key = null;
|
|
26
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
27
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
28
|
-
if ("key" in config) {
|
|
29
|
-
maybeKey = {};
|
|
30
|
-
for (var propName in config)
|
|
31
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
32
|
-
} else maybeKey = config;
|
|
33
|
-
config = maybeKey.ref;
|
|
34
|
-
return {
|
|
35
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
36
|
-
type: type4,
|
|
37
|
-
key,
|
|
38
|
-
ref: void 0 !== config ? config : null,
|
|
39
|
-
props: maybeKey
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
43
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
44
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
45
|
-
return reactJsxRuntime_production;
|
|
46
|
-
}
|
|
47
|
-
var reactJsxRuntime_development = {};
|
|
48
|
-
/**
|
|
49
|
-
* @license React
|
|
50
|
-
* react-jsx-runtime.development.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/
|
|
57
|
-
var hasRequiredReactJsxRuntime_development;
|
|
58
|
-
function requireReactJsxRuntime_development() {
|
|
59
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
60
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
61
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
62
|
-
function getComponentNameFromType(type4) {
|
|
63
|
-
if (null == type4) return null;
|
|
64
|
-
if ("function" === typeof type4)
|
|
65
|
-
return type4.$$typeof === REACT_CLIENT_REFERENCE ? null : type4.displayName || type4.name || null;
|
|
66
|
-
if ("string" === typeof type4) return type4;
|
|
67
|
-
switch (type4) {
|
|
68
|
-
case REACT_FRAGMENT_TYPE:
|
|
69
|
-
return "Fragment";
|
|
70
|
-
case REACT_PROFILER_TYPE:
|
|
71
|
-
return "Profiler";
|
|
72
|
-
case REACT_STRICT_MODE_TYPE:
|
|
73
|
-
return "StrictMode";
|
|
74
|
-
case REACT_SUSPENSE_TYPE:
|
|
75
|
-
return "Suspense";
|
|
76
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
77
|
-
return "SuspenseList";
|
|
78
|
-
case REACT_ACTIVITY_TYPE:
|
|
79
|
-
return "Activity";
|
|
80
|
-
}
|
|
81
|
-
if ("object" === typeof type4)
|
|
82
|
-
switch ("number" === typeof type4.tag && void 0, type4.$$typeof) {
|
|
83
|
-
case REACT_PORTAL_TYPE:
|
|
84
|
-
return "Portal";
|
|
85
|
-
case REACT_CONTEXT_TYPE:
|
|
86
|
-
return (type4.displayName || "Context") + ".Provider";
|
|
87
|
-
case REACT_CONSUMER_TYPE:
|
|
88
|
-
return (type4._context.displayName || "Context") + ".Consumer";
|
|
89
|
-
case REACT_FORWARD_REF_TYPE:
|
|
90
|
-
var innerType = type4.render;
|
|
91
|
-
type4 = type4.displayName;
|
|
92
|
-
type4 || (type4 = innerType.displayName || innerType.name || "", type4 = "" !== type4 ? "ForwardRef(" + type4 + ")" : "ForwardRef");
|
|
93
|
-
return type4;
|
|
94
|
-
case REACT_MEMO_TYPE:
|
|
95
|
-
return innerType = type4.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type4.type) || "Memo";
|
|
96
|
-
case REACT_LAZY_TYPE:
|
|
97
|
-
innerType = type4._payload;
|
|
98
|
-
type4 = type4._init;
|
|
99
|
-
try {
|
|
100
|
-
return getComponentNameFromType(type4(innerType));
|
|
101
|
-
} catch (x2) {
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
function testStringCoercion(value) {
|
|
107
|
-
return "" + value;
|
|
108
|
-
}
|
|
109
|
-
function checkKeyStringCoercion(value) {
|
|
110
|
-
try {
|
|
111
|
-
testStringCoercion(value);
|
|
112
|
-
var JSCompiler_inline_result = false;
|
|
113
|
-
} catch (e2) {
|
|
114
|
-
JSCompiler_inline_result = true;
|
|
115
|
-
}
|
|
116
|
-
if (JSCompiler_inline_result) {
|
|
117
|
-
JSCompiler_inline_result = console;
|
|
118
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
119
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
120
|
-
JSCompiler_temp_const.call(
|
|
121
|
-
JSCompiler_inline_result,
|
|
122
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
123
|
-
JSCompiler_inline_result$jscomp$0
|
|
124
|
-
);
|
|
125
|
-
return testStringCoercion(value);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
function getTaskName(type4) {
|
|
129
|
-
if (type4 === REACT_FRAGMENT_TYPE) return "<>";
|
|
130
|
-
if ("object" === typeof type4 && null !== type4 && type4.$$typeof === REACT_LAZY_TYPE)
|
|
131
|
-
return "<...>";
|
|
132
|
-
try {
|
|
133
|
-
var name = getComponentNameFromType(type4);
|
|
134
|
-
return name ? "<" + name + ">" : "<...>";
|
|
135
|
-
} catch (x2) {
|
|
136
|
-
return "<...>";
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
function getOwner() {
|
|
140
|
-
var dispatcher = ReactSharedInternals.A;
|
|
141
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
142
|
-
}
|
|
143
|
-
function UnknownOwner() {
|
|
144
|
-
return Error("react-stack-top-frame");
|
|
145
|
-
}
|
|
146
|
-
function hasValidKey(config) {
|
|
147
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
148
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
149
|
-
if (getter && getter.isReactWarning) return false;
|
|
150
|
-
}
|
|
151
|
-
return void 0 !== config.key;
|
|
152
|
-
}
|
|
153
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
154
|
-
function warnAboutAccessingKey() {
|
|
155
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, void 0);
|
|
156
|
-
}
|
|
157
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
158
|
-
Object.defineProperty(props, "key", {
|
|
159
|
-
get: warnAboutAccessingKey,
|
|
160
|
-
configurable: true
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
164
|
-
var componentName = getComponentNameFromType(this.type);
|
|
165
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, void 0);
|
|
166
|
-
componentName = this.props.ref;
|
|
167
|
-
return void 0 !== componentName ? componentName : null;
|
|
168
|
-
}
|
|
169
|
-
function ReactElement(type4, key, self2, source, owner, props, debugStack, debugTask) {
|
|
170
|
-
self2 = props.ref;
|
|
171
|
-
type4 = {
|
|
172
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
173
|
-
type: type4,
|
|
174
|
-
key,
|
|
175
|
-
props,
|
|
176
|
-
_owner: owner
|
|
177
|
-
};
|
|
178
|
-
null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type4, "ref", {
|
|
179
|
-
enumerable: false,
|
|
180
|
-
get: elementRefGetterWithDeprecationWarning
|
|
181
|
-
}) : Object.defineProperty(type4, "ref", { enumerable: false, value: null });
|
|
182
|
-
type4._store = {};
|
|
183
|
-
Object.defineProperty(type4._store, "validated", {
|
|
184
|
-
configurable: false,
|
|
185
|
-
enumerable: false,
|
|
186
|
-
writable: true,
|
|
187
|
-
value: 0
|
|
188
|
-
});
|
|
189
|
-
Object.defineProperty(type4, "_debugInfo", {
|
|
190
|
-
configurable: false,
|
|
191
|
-
enumerable: false,
|
|
192
|
-
writable: true,
|
|
193
|
-
value: null
|
|
194
|
-
});
|
|
195
|
-
Object.defineProperty(type4, "_debugStack", {
|
|
196
|
-
configurable: false,
|
|
197
|
-
enumerable: false,
|
|
198
|
-
writable: true,
|
|
199
|
-
value: debugStack
|
|
200
|
-
});
|
|
201
|
-
Object.defineProperty(type4, "_debugTask", {
|
|
202
|
-
configurable: false,
|
|
203
|
-
enumerable: false,
|
|
204
|
-
writable: true,
|
|
205
|
-
value: debugTask
|
|
206
|
-
});
|
|
207
|
-
Object.freeze && (Object.freeze(type4.props), Object.freeze(type4));
|
|
208
|
-
return type4;
|
|
209
|
-
}
|
|
210
|
-
function jsxDEVImpl(type4, config, maybeKey, isStaticChildren, source, self2, debugStack, debugTask) {
|
|
211
|
-
var children = config.children;
|
|
212
|
-
if (void 0 !== children)
|
|
213
|
-
if (isStaticChildren)
|
|
214
|
-
if (isArrayImpl(children)) {
|
|
215
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
216
|
-
validateChildKeys(children[isStaticChildren]);
|
|
217
|
-
Object.freeze && Object.freeze(children);
|
|
218
|
-
} else
|
|
219
|
-
;
|
|
220
|
-
else validateChildKeys(children);
|
|
221
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
222
|
-
children = getComponentNameFromType(type4);
|
|
223
|
-
var keys2 = Object.keys(config).filter(function(k2) {
|
|
224
|
-
return "key" !== k2;
|
|
225
|
-
});
|
|
226
|
-
isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
227
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", void 0, didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
228
|
-
}
|
|
229
|
-
children = null;
|
|
230
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
231
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
232
|
-
if ("key" in config) {
|
|
233
|
-
maybeKey = {};
|
|
234
|
-
for (var propName in config)
|
|
235
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
236
|
-
} else maybeKey = config;
|
|
237
|
-
children && defineKeyPropWarningGetter(
|
|
238
|
-
maybeKey,
|
|
239
|
-
"function" === typeof type4 ? type4.displayName || type4.name || "Unknown" : type4
|
|
240
|
-
);
|
|
241
|
-
return ReactElement(
|
|
242
|
-
type4,
|
|
243
|
-
children,
|
|
244
|
-
self2,
|
|
245
|
-
source,
|
|
246
|
-
getOwner(),
|
|
247
|
-
maybeKey,
|
|
248
|
-
debugStack,
|
|
249
|
-
debugTask
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
function validateChildKeys(node2) {
|
|
253
|
-
"object" === typeof node2 && null !== node2 && node2.$$typeof === REACT_ELEMENT_TYPE && node2._store && (node2._store.validated = 1);
|
|
254
|
-
}
|
|
255
|
-
var React = d__default, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
256
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty2 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
257
|
-
return null;
|
|
258
|
-
};
|
|
259
|
-
React = {
|
|
260
|
-
"react-stack-bottom-frame": function(callStackForError) {
|
|
261
|
-
return callStackForError();
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
var specialPropKeyWarningShown;
|
|
265
|
-
var didWarnAboutElementRef = {};
|
|
266
|
-
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
267
|
-
React,
|
|
268
|
-
UnknownOwner
|
|
269
|
-
)();
|
|
270
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
271
|
-
var didWarnAboutKeySpread = {};
|
|
272
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
273
|
-
reactJsxRuntime_development.jsx = function(type4, config, maybeKey, source, self2) {
|
|
274
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
275
|
-
return jsxDEVImpl(
|
|
276
|
-
type4,
|
|
277
|
-
config,
|
|
278
|
-
maybeKey,
|
|
279
|
-
false,
|
|
280
|
-
source,
|
|
281
|
-
self2,
|
|
282
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
283
|
-
trackActualOwner ? createTask(getTaskName(type4)) : unknownOwnerDebugTask
|
|
284
|
-
);
|
|
285
|
-
};
|
|
286
|
-
reactJsxRuntime_development.jsxs = function(type4, config, maybeKey, source, self2) {
|
|
287
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
288
|
-
return jsxDEVImpl(
|
|
289
|
-
type4,
|
|
290
|
-
config,
|
|
291
|
-
maybeKey,
|
|
292
|
-
true,
|
|
293
|
-
source,
|
|
294
|
-
self2,
|
|
295
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
296
|
-
trackActualOwner ? createTask(getTaskName(type4)) : unknownOwnerDebugTask
|
|
297
|
-
);
|
|
298
|
-
};
|
|
299
|
-
})();
|
|
300
|
-
return reactJsxRuntime_development;
|
|
301
|
-
}
|
|
302
|
-
var hasRequiredJsxRuntime;
|
|
303
|
-
function requireJsxRuntime() {
|
|
304
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
305
|
-
hasRequiredJsxRuntime = 1;
|
|
306
|
-
if (process.env.NODE_ENV === "production") {
|
|
307
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
308
|
-
} else {
|
|
309
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
310
|
-
}
|
|
311
|
-
return jsxRuntime.exports;
|
|
312
|
-
}
|
|
313
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
314
9
|
var TreeModelStyle = /* @__PURE__ */ ((TreeModelStyle2) => {
|
|
315
10
|
TreeModelStyle2["FLAT"] = "files";
|
|
316
11
|
TreeModelStyle2["NAV"] = "nav";
|
|
317
12
|
return TreeModelStyle2;
|
|
318
13
|
})(TreeModelStyle || {});
|
|
319
|
-
const DefaultAppLoading = () => /* @__PURE__ */
|
|
320
|
-
const DefaultAppError = () => /* @__PURE__ */
|
|
321
|
-
const DefaultContainerLoading = () => /* @__PURE__ */
|
|
322
|
-
const DefaultContainerError = () => /* @__PURE__ */
|
|
323
|
-
const DefaultContentLoading = () => /* @__PURE__ */
|
|
324
|
-
const DefaultContentError = () => /* @__PURE__ */
|
|
14
|
+
const DefaultAppLoading = () => /* @__PURE__ */ jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "text-2xl font-bold", children: "\u5E94\u7528\u52A0\u8F7D\u4E2D..." }) });
|
|
15
|
+
const DefaultAppError = () => /* @__PURE__ */ jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "text-2xl font-bold", children: "\u5E94\u7528\u9519\u8BEF" }) });
|
|
16
|
+
const DefaultContainerLoading = () => /* @__PURE__ */ jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "text-lg font-medium", children: "\u5BB9\u5668\u52A0\u8F7D\u4E2D..." }) });
|
|
17
|
+
const DefaultContainerError = () => /* @__PURE__ */ jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "text-lg font-medium", children: "\u5BB9\u5668\u9519\u8BEF" }) });
|
|
18
|
+
const DefaultContentLoading = () => /* @__PURE__ */ jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "text-base font-medium", children: "\u5185\u5BB9\u52A0\u8F7D\u4E2D..." }) });
|
|
19
|
+
const DefaultContentError = () => /* @__PURE__ */ jsx("div", { className: "main relative h-full w-full flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "text-base font-medium", children: "\u5185\u5BB9\u9519\u8BEF" }) });
|
|
325
20
|
const DefaultEmptyData = ({
|
|
326
21
|
viewType,
|
|
327
22
|
cardType
|
|
328
|
-
}) => /* @__PURE__ */
|
|
329
|
-
/* @__PURE__ */
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
/* @__PURE__ */
|
|
23
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "main relative h-full w-full flex flex-col items-center justify-center", children: [
|
|
24
|
+
/* @__PURE__ */ jsx("div", { className: "text-6xl mb-4", style: { color: "#d1d5db" }, children: "\u{1F4ED}" }),
|
|
25
|
+
/* @__PURE__ */ jsx("div", { className: "text-lg font-medium mb-2", style: { color: "#6b7280" }, children: viewType === "card" ? "\u6682\u65E0\u6570\u636E" : viewType === "table" ? "\u6682\u65E0\u8868\u683C\u6570\u636E" : "\u6682\u65E0\u6570\u636E" }),
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm", style: { color: "#9ca3af" }, children: viewType === "card" ? "\u70B9\u51FB\u4E0A\u65B9\u6309\u94AE\u6DFB\u52A0\u6570\u636E" : viewType === "table" ? "\u8BF7\u5148\u6DFB\u52A0\u6570\u636E\u5230\u8868\u683C\u4E2D" : "\u8BF7\u5148\u6DFB\u52A0\u6570\u636E" })
|
|
332
27
|
] });
|
|
333
28
|
const findNodeById = (nodes, id) => {
|
|
334
29
|
for (const node2 of nodes) {
|
|
@@ -1996,8 +1691,8 @@ const FuzzySearchInput = dt.div`
|
|
|
1996
1691
|
}
|
|
1997
1692
|
}
|
|
1998
1693
|
`;
|
|
1999
|
-
const SearchInput = ({ value, onChange, placeholder = "\u6A21\u7CCA\u641C\u7D22" }) => /* @__PURE__ */
|
|
2000
|
-
/* @__PURE__ */
|
|
1694
|
+
const SearchInput = ({ value, onChange, placeholder = "\u6A21\u7CCA\u641C\u7D22" }) => /* @__PURE__ */ jsxs(FuzzySearchInput, { children: [
|
|
1695
|
+
/* @__PURE__ */ jsx(
|
|
2001
1696
|
"input",
|
|
2002
1697
|
{
|
|
2003
1698
|
type: "text",
|
|
@@ -2009,8 +1704,8 @@ const SearchInput = ({ value, onChange, placeholder = "\u6A21\u7CCA\u641C\u7D22"
|
|
|
2009
1704
|
}
|
|
2010
1705
|
}
|
|
2011
1706
|
),
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
value && /* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ jsx("span", { className: "icon-search", children: /* @__PURE__ */ jsx(Search$1, { size: 18 }) }),
|
|
1708
|
+
value && /* @__PURE__ */ jsx("span", { className: "icon-clear", onClick: () => onChange(""), children: /* @__PURE__ */ jsx(X$1, { size: 16 }) })
|
|
2014
1709
|
] });
|
|
2015
1710
|
const ToolbarRenderer = ({
|
|
2016
1711
|
activeNode,
|
|
@@ -2028,7 +1723,7 @@ const ToolbarRenderer = ({
|
|
|
2028
1723
|
const renderItems = (items) => {
|
|
2029
1724
|
return items.map((item) => {
|
|
2030
1725
|
if (item.type === "button") {
|
|
2031
|
-
return /* @__PURE__ */
|
|
1726
|
+
return /* @__PURE__ */ jsx(
|
|
2032
1727
|
POr,
|
|
2033
1728
|
{
|
|
2034
1729
|
mode: item.btnType || "default",
|
|
@@ -2046,7 +1741,7 @@ const ToolbarRenderer = ({
|
|
|
2046
1741
|
);
|
|
2047
1742
|
}
|
|
2048
1743
|
if (item.type === "fuzzy_search") {
|
|
2049
|
-
return /* @__PURE__ */
|
|
1744
|
+
return /* @__PURE__ */ jsx(
|
|
2050
1745
|
SearchInput,
|
|
2051
1746
|
{
|
|
2052
1747
|
value: fuzzyValue,
|
|
@@ -2059,7 +1754,7 @@ const ToolbarRenderer = ({
|
|
|
2059
1754
|
if (item.type === "customized") {
|
|
2060
1755
|
if (item.component) {
|
|
2061
1756
|
const CustomComponent = item.component;
|
|
2062
|
-
return /* @__PURE__ */
|
|
1757
|
+
return /* @__PURE__ */ jsx(
|
|
2063
1758
|
CustomComponent,
|
|
2064
1759
|
{
|
|
2065
1760
|
onAction: (action, data) => {
|
|
@@ -2070,13 +1765,13 @@ const ToolbarRenderer = ({
|
|
|
2070
1765
|
);
|
|
2071
1766
|
}
|
|
2072
1767
|
if (typeof item.render === "function") {
|
|
2073
|
-
return /* @__PURE__ */
|
|
1768
|
+
return /* @__PURE__ */ jsx(d__default.Fragment, { children: item.render() }, item.key);
|
|
2074
1769
|
}
|
|
2075
1770
|
}
|
|
2076
1771
|
return null;
|
|
2077
1772
|
});
|
|
2078
1773
|
};
|
|
2079
|
-
return /* @__PURE__ */
|
|
1774
|
+
return /* @__PURE__ */ jsxs(
|
|
2080
1775
|
"div",
|
|
2081
1776
|
{
|
|
2082
1777
|
className: "flex items-center w-full",
|
|
@@ -2089,8 +1784,8 @@ const ToolbarRenderer = ({
|
|
|
2089
1784
|
background: "transparent"
|
|
2090
1785
|
},
|
|
2091
1786
|
children: [
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
/* @__PURE__ */
|
|
1787
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", style: { gap: 12, flex: 1 }, children: renderItems(leftItems) }),
|
|
1788
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end", style: { gap: 12 }, children: renderItems(rightItems) })
|
|
2094
1789
|
]
|
|
2095
1790
|
}
|
|
2096
1791
|
);
|
|
@@ -53463,20 +53158,20 @@ var relativeTimeExports = requireRelativeTime();
|
|
|
53463
53158
|
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
53464
53159
|
dayjs.extend(relativeTime);
|
|
53465
53160
|
const DigitalClockDate = ({ value }) => {
|
|
53466
|
-
if (!value) return /* @__PURE__ */
|
|
53161
|
+
if (!value) return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
53467
53162
|
const date4 = dayjs(value);
|
|
53468
53163
|
const dateStr = date4.format("YYYY-MM-DD");
|
|
53469
53164
|
const time = date4.format("HH:mm");
|
|
53470
53165
|
const full = date4.format("YYYY-MM-DD HH:mm:ss");
|
|
53471
53166
|
const relative = date4.fromNow();
|
|
53472
|
-
return /* @__PURE__ */
|
|
53167
|
+
return /* @__PURE__ */ jsx(
|
|
53473
53168
|
Tooltip2,
|
|
53474
53169
|
{
|
|
53475
|
-
title: /* @__PURE__ */
|
|
53476
|
-
/* @__PURE__ */
|
|
53477
|
-
/* @__PURE__ */
|
|
53170
|
+
title: /* @__PURE__ */ jsxs("div", { style: { minWidth: 84 }, children: [
|
|
53171
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: 500 }, children: full }),
|
|
53172
|
+
/* @__PURE__ */ jsx("div", { style: { color: "#aaa", fontSize: 10, marginTop: 1 }, children: relative })
|
|
53478
53173
|
] }),
|
|
53479
|
-
children: /* @__PURE__ */
|
|
53174
|
+
children: /* @__PURE__ */ jsxs(
|
|
53480
53175
|
"div",
|
|
53481
53176
|
{
|
|
53482
53177
|
style: {
|
|
@@ -53487,7 +53182,7 @@ const DigitalClockDate = ({ value }) => {
|
|
|
53487
53182
|
minWidth: 56
|
|
53488
53183
|
},
|
|
53489
53184
|
children: [
|
|
53490
|
-
/* @__PURE__ */
|
|
53185
|
+
/* @__PURE__ */ jsx(
|
|
53491
53186
|
"span",
|
|
53492
53187
|
{
|
|
53493
53188
|
style: {
|
|
@@ -53500,7 +53195,7 @@ const DigitalClockDate = ({ value }) => {
|
|
|
53500
53195
|
children: dateStr
|
|
53501
53196
|
}
|
|
53502
53197
|
),
|
|
53503
|
-
/* @__PURE__ */
|
|
53198
|
+
/* @__PURE__ */ jsx(
|
|
53504
53199
|
"span",
|
|
53505
53200
|
{
|
|
53506
53201
|
style: {
|
|
@@ -53522,17 +53217,17 @@ const DigitalClockDate = ({ value }) => {
|
|
|
53522
53217
|
};
|
|
53523
53218
|
dayjs.extend(relativeTime);
|
|
53524
53219
|
const MobileLockDate = ({ value }) => {
|
|
53525
|
-
if (!value) return /* @__PURE__ */
|
|
53220
|
+
if (!value) return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
53526
53221
|
const date4 = dayjs(value);
|
|
53527
53222
|
const time = date4.format("HH:mm");
|
|
53528
53223
|
const dateStr = date4.format("YYYY\u5E74M\u6708D\u65E5 dddd");
|
|
53529
53224
|
date4.format("YYYY-MM-DD HH:mm:ss");
|
|
53530
53225
|
const relative = date4.fromNow();
|
|
53531
|
-
return /* @__PURE__ */
|
|
53226
|
+
return /* @__PURE__ */ jsx(
|
|
53532
53227
|
Tooltip2,
|
|
53533
53228
|
{
|
|
53534
|
-
title: /* @__PURE__ */
|
|
53535
|
-
children: /* @__PURE__ */
|
|
53229
|
+
title: /* @__PURE__ */ jsx("div", { style: { minWidth: 120 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#aaa", fontSize: 12, marginTop: 2 }, children: relative }) }),
|
|
53230
|
+
children: /* @__PURE__ */ jsxs(
|
|
53536
53231
|
"div",
|
|
53537
53232
|
{
|
|
53538
53233
|
style: {
|
|
@@ -53543,7 +53238,7 @@ const MobileLockDate = ({ value }) => {
|
|
|
53543
53238
|
minWidth: 70
|
|
53544
53239
|
},
|
|
53545
53240
|
children: [
|
|
53546
|
-
/* @__PURE__ */
|
|
53241
|
+
/* @__PURE__ */ jsx(
|
|
53547
53242
|
"span",
|
|
53548
53243
|
{
|
|
53549
53244
|
style: {
|
|
@@ -53556,7 +53251,7 @@ const MobileLockDate = ({ value }) => {
|
|
|
53556
53251
|
children: time
|
|
53557
53252
|
}
|
|
53558
53253
|
),
|
|
53559
|
-
/* @__PURE__ */
|
|
53254
|
+
/* @__PURE__ */ jsx(
|
|
53560
53255
|
"span",
|
|
53561
53256
|
{
|
|
53562
53257
|
style: {
|
|
@@ -53675,7 +53370,7 @@ const Button = ({
|
|
|
53675
53370
|
onClick();
|
|
53676
53371
|
}
|
|
53677
53372
|
};
|
|
53678
|
-
return /* @__PURE__ */
|
|
53373
|
+
return /* @__PURE__ */ jsxs(
|
|
53679
53374
|
StyledButton,
|
|
53680
53375
|
{
|
|
53681
53376
|
$btnType: mode,
|
|
@@ -53687,8 +53382,8 @@ const Button = ({
|
|
|
53687
53382
|
className,
|
|
53688
53383
|
...rest,
|
|
53689
53384
|
children: [
|
|
53690
|
-
icon && /* @__PURE__ */
|
|
53691
|
-
label && /* @__PURE__ */
|
|
53385
|
+
icon && /* @__PURE__ */ jsx("span", { className: "button-icon", style: { marginRight: 4 }, children: icon }),
|
|
53386
|
+
label && /* @__PURE__ */ jsx("span", { className: "button-label", children: label }),
|
|
53692
53387
|
children
|
|
53693
53388
|
]
|
|
53694
53389
|
}
|
|
@@ -53727,11 +53422,11 @@ function renderDefaultDate(val) {
|
|
|
53727
53422
|
const date4 = dayjs(val);
|
|
53728
53423
|
const display = date4.format("YYYY\u5E74M\u6708D\u65E5 HH:mm");
|
|
53729
53424
|
const relative = date4.fromNow();
|
|
53730
|
-
return /* @__PURE__ */
|
|
53425
|
+
return /* @__PURE__ */ jsx(
|
|
53731
53426
|
Tooltip2,
|
|
53732
53427
|
{
|
|
53733
|
-
title: /* @__PURE__ */
|
|
53734
|
-
children: /* @__PURE__ */
|
|
53428
|
+
title: /* @__PURE__ */ jsx("div", { style: { minWidth: 120 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#aaa", fontSize: 12, marginTop: 2 }, children: relative }) }),
|
|
53429
|
+
children: /* @__PURE__ */ jsx("span", { style: { fontWeight: 500, opacity: 0.6 }, children: display })
|
|
53735
53430
|
}
|
|
53736
53431
|
);
|
|
53737
53432
|
}
|
|
@@ -53820,7 +53515,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53820
53515
|
"default"
|
|
53821
53516
|
/* default */
|
|
53822
53517
|
];
|
|
53823
|
-
return /* @__PURE__ */
|
|
53518
|
+
return /* @__PURE__ */ jsx(Tag, { color, children: val });
|
|
53824
53519
|
}
|
|
53825
53520
|
};
|
|
53826
53521
|
case "date":
|
|
@@ -53828,10 +53523,10 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53828
53523
|
...col,
|
|
53829
53524
|
render: (val) => {
|
|
53830
53525
|
if (col.dateDisplayStyle === "digital") {
|
|
53831
|
-
return /* @__PURE__ */
|
|
53526
|
+
return /* @__PURE__ */ jsx(DigitalClockDate, { value: val });
|
|
53832
53527
|
}
|
|
53833
53528
|
if (col.dateDisplayStyle === "mobile") {
|
|
53834
|
-
return /* @__PURE__ */
|
|
53529
|
+
return /* @__PURE__ */ jsx(MobileLockDate, { value: val });
|
|
53835
53530
|
}
|
|
53836
53531
|
return renderDefaultDate(val);
|
|
53837
53532
|
}
|
|
@@ -53841,7 +53536,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53841
53536
|
...col,
|
|
53842
53537
|
render: (val) => {
|
|
53843
53538
|
const style2 = col.numberStyle || "float";
|
|
53844
|
-
return /* @__PURE__ */
|
|
53539
|
+
return /* @__PURE__ */ jsx(
|
|
53845
53540
|
"span",
|
|
53846
53541
|
{
|
|
53847
53542
|
style: {
|
|
@@ -53860,7 +53555,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53860
53555
|
case "image":
|
|
53861
53556
|
return {
|
|
53862
53557
|
...col,
|
|
53863
|
-
render: (val) => val ? /* @__PURE__ */
|
|
53558
|
+
render: (val) => val ? /* @__PURE__ */ jsx(
|
|
53864
53559
|
"img",
|
|
53865
53560
|
{
|
|
53866
53561
|
src: val,
|
|
@@ -53904,13 +53599,13 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53904
53599
|
width: "100%",
|
|
53905
53600
|
display: "block"
|
|
53906
53601
|
};
|
|
53907
|
-
return /* @__PURE__ */
|
|
53602
|
+
return /* @__PURE__ */ jsx("span", { style: style2, children: val });
|
|
53908
53603
|
}
|
|
53909
53604
|
};
|
|
53910
53605
|
case "tag":
|
|
53911
53606
|
return {
|
|
53912
53607
|
...col,
|
|
53913
|
-
render: (val) => Array.isArray(val) ? /* @__PURE__ */
|
|
53608
|
+
render: (val) => Array.isArray(val) ? /* @__PURE__ */ jsx(
|
|
53914
53609
|
"div",
|
|
53915
53610
|
{
|
|
53916
53611
|
style: {
|
|
@@ -53920,7 +53615,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53920
53615
|
minWidth: "200px",
|
|
53921
53616
|
maxWidth: "100%"
|
|
53922
53617
|
},
|
|
53923
|
-
children: val.map((tag, i) => /* @__PURE__ */
|
|
53618
|
+
children: val.map((tag, i) => /* @__PURE__ */ jsx(
|
|
53924
53619
|
"span",
|
|
53925
53620
|
{
|
|
53926
53621
|
style: {
|
|
@@ -53966,7 +53661,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53966
53661
|
if (actions.length >= 3) {
|
|
53967
53662
|
const visibleActions = actions.slice(0, 2);
|
|
53968
53663
|
const moreActions = actions.slice(2);
|
|
53969
|
-
return /* @__PURE__ */
|
|
53664
|
+
return /* @__PURE__ */ jsxs(
|
|
53970
53665
|
"div",
|
|
53971
53666
|
{
|
|
53972
53667
|
style: {
|
|
@@ -53976,7 +53671,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53976
53671
|
alignItems: "center"
|
|
53977
53672
|
},
|
|
53978
53673
|
children: [
|
|
53979
|
-
visibleActions.map((action2, index2) => /* @__PURE__ */
|
|
53674
|
+
visibleActions.map((action2, index2) => /* @__PURE__ */ jsx(
|
|
53980
53675
|
Button,
|
|
53981
53676
|
{
|
|
53982
53677
|
mode: action2.mode || "text",
|
|
@@ -53989,7 +53684,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
53989
53684
|
},
|
|
53990
53685
|
index2
|
|
53991
53686
|
)),
|
|
53992
|
-
/* @__PURE__ */
|
|
53687
|
+
/* @__PURE__ */ jsx(
|
|
53993
53688
|
htd,
|
|
53994
53689
|
{
|
|
53995
53690
|
actions: moreActions.map((action2, idx) => ({
|
|
@@ -54010,7 +53705,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
54010
53705
|
}
|
|
54011
53706
|
);
|
|
54012
53707
|
} else {
|
|
54013
|
-
return /* @__PURE__ */
|
|
53708
|
+
return /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 4, justifyContent: "center" }, children: actions.map((action2, index2) => /* @__PURE__ */ jsx(
|
|
54014
53709
|
Button,
|
|
54015
53710
|
{
|
|
54016
53711
|
mode: action2.mode || "text",
|
|
@@ -54026,7 +53721,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
54026
53721
|
}
|
|
54027
53722
|
}
|
|
54028
53723
|
const action = cell || {};
|
|
54029
|
-
return /* @__PURE__ */
|
|
53724
|
+
return /* @__PURE__ */ jsx(
|
|
54030
53725
|
Button,
|
|
54031
53726
|
{
|
|
54032
53727
|
mode: action.mode || "text",
|
|
@@ -54043,7 +53738,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
54043
53738
|
case "label":
|
|
54044
53739
|
return {
|
|
54045
53740
|
...col,
|
|
54046
|
-
render: (val) => /* @__PURE__ */
|
|
53741
|
+
render: (val) => /* @__PURE__ */ jsx("span", { className: "font-bold", children: val })
|
|
54047
53742
|
// 移除 text-center,让 getColWidth 控制对齐
|
|
54048
53743
|
};
|
|
54049
53744
|
case "title":
|
|
@@ -54057,7 +53752,7 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
54057
53752
|
3: "text-base font-medium"
|
|
54058
53753
|
};
|
|
54059
53754
|
const fontSize = fontSizeMap[level] || fontSizeMap[1];
|
|
54060
|
-
return /* @__PURE__ */
|
|
53755
|
+
return /* @__PURE__ */ jsxs(
|
|
54061
53756
|
"div",
|
|
54062
53757
|
{
|
|
54063
53758
|
className: `${fontSize} text-gray-800 ${(cell == null ? void 0 : cell.className) || ""}`,
|
|
@@ -54067,8 +53762,8 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
54067
53762
|
fontWeight: level === 1 ? 700 : level === 2 ? 600 : 400
|
|
54068
53763
|
},
|
|
54069
53764
|
children: [
|
|
54070
|
-
/* @__PURE__ */
|
|
54071
|
-
/* @__PURE__ */
|
|
53765
|
+
/* @__PURE__ */ jsx("span", { className: "h-full w-1 bg-gray-500 rounded-full mr-2" }),
|
|
53766
|
+
/* @__PURE__ */ jsx("span", { className: "text-gray-500", children: val })
|
|
54072
53767
|
]
|
|
54073
53768
|
}
|
|
54074
53769
|
);
|
|
@@ -54084,19 +53779,19 @@ function useDynamicTableColumns(configs, options, styles = {}) {
|
|
|
54084
53779
|
overflow: "hidden",
|
|
54085
53780
|
textOverflow: "ellipsis"
|
|
54086
53781
|
};
|
|
54087
|
-
return /* @__PURE__ */
|
|
53782
|
+
return /* @__PURE__ */ jsx("div", { style: style2, title: val, children: val });
|
|
54088
53783
|
}
|
|
54089
53784
|
};
|
|
54090
53785
|
case "text":
|
|
54091
53786
|
return {
|
|
54092
53787
|
...col,
|
|
54093
|
-
render: (val) => /* @__PURE__ */
|
|
53788
|
+
render: (val) => /* @__PURE__ */ jsx("span", { children: val })
|
|
54094
53789
|
// 移除 text-center,让 getColWidth 控制对齐
|
|
54095
53790
|
};
|
|
54096
53791
|
default:
|
|
54097
53792
|
return {
|
|
54098
53793
|
...col,
|
|
54099
|
-
render: (val) => /* @__PURE__ */
|
|
53794
|
+
render: (val) => /* @__PURE__ */ jsx("span", { children: val })
|
|
54100
53795
|
// 移除 text-center,让 getColWidth 控制对齐
|
|
54101
53796
|
};
|
|
54102
53797
|
}
|
|
@@ -55659,10 +55354,10 @@ const SharedPagination = ({
|
|
|
55659
55354
|
lineHeight: `${metrics.height}px`,
|
|
55660
55355
|
borderRadius: finalTheme.space.radius
|
|
55661
55356
|
};
|
|
55662
|
-
return /* @__PURE__ */
|
|
55663
|
-
showSizeChanger && /* @__PURE__ */
|
|
55664
|
-
/* @__PURE__ */
|
|
55665
|
-
/* @__PURE__ */
|
|
55357
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 select-none", children: [
|
|
55358
|
+
showSizeChanger && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mr-3", children: [
|
|
55359
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: metrics.fontSize, color: finalTheme.colors.text }, children: "\u6BCF\u9875" }),
|
|
55360
|
+
/* @__PURE__ */ jsx(
|
|
55666
55361
|
"select",
|
|
55667
55362
|
{
|
|
55668
55363
|
value: pageSize,
|
|
@@ -55677,12 +55372,12 @@ const SharedPagination = ({
|
|
|
55677
55372
|
fontSize: metrics.fontSize
|
|
55678
55373
|
},
|
|
55679
55374
|
"aria-label": "\u6BCF\u9875\u6761\u6570",
|
|
55680
|
-
children: pageSizeOptions.map((opt) => /* @__PURE__ */
|
|
55375
|
+
children: pageSizeOptions.map((opt) => /* @__PURE__ */ jsx("option", { value: opt, children: opt }, opt))
|
|
55681
55376
|
}
|
|
55682
55377
|
),
|
|
55683
|
-
/* @__PURE__ */
|
|
55378
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: metrics.fontSize, color: finalTheme.colors.text }, children: "\u6761" })
|
|
55684
55379
|
] }),
|
|
55685
|
-
/* @__PURE__ */
|
|
55380
|
+
/* @__PURE__ */ jsx(
|
|
55686
55381
|
"button",
|
|
55687
55382
|
{
|
|
55688
55383
|
disabled: current === 1,
|
|
@@ -55696,7 +55391,7 @@ const SharedPagination = ({
|
|
|
55696
55391
|
e2.currentTarget.style.color = current === 1 ? "#bfbfbf" : finalTheme.colors.text;
|
|
55697
55392
|
},
|
|
55698
55393
|
"aria-label": "\u4E0A\u4E00\u9875",
|
|
55699
|
-
children: /* @__PURE__ */
|
|
55394
|
+
children: /* @__PURE__ */ jsx(
|
|
55700
55395
|
"svg",
|
|
55701
55396
|
{
|
|
55702
55397
|
width: metrics.fontSize + 4,
|
|
@@ -55708,14 +55403,14 @@ const SharedPagination = ({
|
|
|
55708
55403
|
strokeLinecap: "round",
|
|
55709
55404
|
strokeLinejoin: "round",
|
|
55710
55405
|
style: { color: current === 1 ? "#bfbfbf" : void 0 },
|
|
55711
|
-
children: /* @__PURE__ */
|
|
55406
|
+
children: /* @__PURE__ */ jsx("polyline", { points: "15,18 9,12 15,6" })
|
|
55712
55407
|
}
|
|
55713
55408
|
)
|
|
55714
55409
|
}
|
|
55715
55410
|
),
|
|
55716
55411
|
showPageNumbers && visiblePages.map((page, index2) => {
|
|
55717
55412
|
if (page === "...") {
|
|
55718
|
-
return /* @__PURE__ */
|
|
55413
|
+
return /* @__PURE__ */ jsx(
|
|
55719
55414
|
"span",
|
|
55720
55415
|
{
|
|
55721
55416
|
style: { ...baseBtnStyle, color: "#bfbfbf" },
|
|
@@ -55725,7 +55420,7 @@ const SharedPagination = ({
|
|
|
55725
55420
|
);
|
|
55726
55421
|
}
|
|
55727
55422
|
const isCurrent = page === current;
|
|
55728
|
-
return /* @__PURE__ */
|
|
55423
|
+
return /* @__PURE__ */ jsx(
|
|
55729
55424
|
"button",
|
|
55730
55425
|
{
|
|
55731
55426
|
onClick: () => onChange(page),
|
|
@@ -55750,7 +55445,7 @@ const SharedPagination = ({
|
|
|
55750
55445
|
page
|
|
55751
55446
|
);
|
|
55752
55447
|
}),
|
|
55753
|
-
/* @__PURE__ */
|
|
55448
|
+
/* @__PURE__ */ jsx(
|
|
55754
55449
|
"button",
|
|
55755
55450
|
{
|
|
55756
55451
|
disabled: current === totalPages,
|
|
@@ -55764,7 +55459,7 @@ const SharedPagination = ({
|
|
|
55764
55459
|
e2.currentTarget.style.color = current === totalPages ? "#bfbfbf" : finalTheme.colors.text;
|
|
55765
55460
|
},
|
|
55766
55461
|
"aria-label": "\u4E0B\u4E00\u9875",
|
|
55767
|
-
children: /* @__PURE__ */
|
|
55462
|
+
children: /* @__PURE__ */ jsx(
|
|
55768
55463
|
"svg",
|
|
55769
55464
|
{
|
|
55770
55465
|
width: metrics.fontSize + 4,
|
|
@@ -55776,14 +55471,14 @@ const SharedPagination = ({
|
|
|
55776
55471
|
strokeLinecap: "round",
|
|
55777
55472
|
strokeLinejoin: "round",
|
|
55778
55473
|
style: { color: current === totalPages ? "#bfbfbf" : void 0 },
|
|
55779
|
-
children: /* @__PURE__ */
|
|
55474
|
+
children: /* @__PURE__ */ jsx("polyline", { points: "9,18 15,12 9,6" })
|
|
55780
55475
|
}
|
|
55781
55476
|
)
|
|
55782
55477
|
}
|
|
55783
55478
|
),
|
|
55784
|
-
/* @__PURE__ */
|
|
55785
|
-
/* @__PURE__ */
|
|
55786
|
-
/* @__PURE__ */
|
|
55479
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 ml-4", children: [
|
|
55480
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: metrics.fontSize, color: finalTheme.colors.text }, children: "\u524D\u5F80" }),
|
|
55481
|
+
/* @__PURE__ */ jsx(
|
|
55787
55482
|
"input",
|
|
55788
55483
|
{
|
|
55789
55484
|
type: "number",
|
|
@@ -55812,14 +55507,14 @@ const SharedPagination = ({
|
|
|
55812
55507
|
"aria-label": "\u8DF3\u8F6C\u9875\u7801\u8F93\u5165"
|
|
55813
55508
|
}
|
|
55814
55509
|
),
|
|
55815
|
-
/* @__PURE__ */
|
|
55510
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: metrics.fontSize, color: finalTheme.colors.text }, children: "\u9875" })
|
|
55816
55511
|
] })
|
|
55817
55512
|
] });
|
|
55818
55513
|
};
|
|
55819
55514
|
function renderTableHeader(column2) {
|
|
55820
|
-
return /* @__PURE__ */
|
|
55821
|
-
/* @__PURE__ */
|
|
55822
|
-
column2.helpText && /* @__PURE__ */
|
|
55515
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
55516
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-gray-800 text-sm", children: column2.title }),
|
|
55517
|
+
column2.helpText && /* @__PURE__ */ jsx(Tooltip2, { title: column2.helpText, placement: "top", children: /* @__PURE__ */ jsx(
|
|
55823
55518
|
CircleQuestionMark,
|
|
55824
55519
|
{
|
|
55825
55520
|
className: "text-gray-400 hover:text-gray-600 cursor-help transition-colors",
|
|
@@ -55949,7 +55644,7 @@ const Tr = dt.tr`
|
|
|
55949
55644
|
}
|
|
55950
55645
|
`;
|
|
55951
55646
|
const TrWithRef = d__default.forwardRef(
|
|
55952
|
-
(props, ref) => /* @__PURE__ */
|
|
55647
|
+
(props, ref) => /* @__PURE__ */ jsx(Tr, { ...props, ref })
|
|
55953
55648
|
);
|
|
55954
55649
|
const stickyShadowStyle = `
|
|
55955
55650
|
.sticky-shadow-left {
|
|
@@ -56227,7 +55922,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56227
55922
|
};
|
|
56228
55923
|
}, [cleanupStaggerAnimation]);
|
|
56229
55924
|
const Wrapper2 = props.isSubTable ? SubTableWrapper : TableWrapper;
|
|
56230
|
-
return /* @__PURE__ */
|
|
55925
|
+
return /* @__PURE__ */ jsxs(
|
|
56231
55926
|
Wrapper2,
|
|
56232
55927
|
{
|
|
56233
55928
|
theme: theme2,
|
|
@@ -56240,7 +55935,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56240
55935
|
flexDirection: "column"
|
|
56241
55936
|
},
|
|
56242
55937
|
children: [
|
|
56243
|
-
/* @__PURE__ */
|
|
55938
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
56244
55939
|
.removing-row {
|
|
56245
55940
|
pointer-events: none;
|
|
56246
55941
|
overflow: hidden;
|
|
@@ -56268,7 +55963,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56268
55963
|
100% { transform: rotate(360deg); }
|
|
56269
55964
|
}
|
|
56270
55965
|
` }),
|
|
56271
|
-
/* @__PURE__ */
|
|
55966
|
+
/* @__PURE__ */ jsx(
|
|
56272
55967
|
"div",
|
|
56273
55968
|
{
|
|
56274
55969
|
ref: scrollRef,
|
|
@@ -56283,7 +55978,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56283
55978
|
position: "relative",
|
|
56284
55979
|
boxSizing: "border-box"
|
|
56285
55980
|
},
|
|
56286
|
-
children: /* @__PURE__ */
|
|
55981
|
+
children: /* @__PURE__ */ jsxs(
|
|
56287
55982
|
"table",
|
|
56288
55983
|
{
|
|
56289
55984
|
ref: tableRef,
|
|
@@ -56294,7 +55989,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56294
55989
|
tableLayout: "auto"
|
|
56295
55990
|
},
|
|
56296
55991
|
children: [
|
|
56297
|
-
/* @__PURE__ */
|
|
55992
|
+
/* @__PURE__ */ jsx(
|
|
56298
55993
|
"thead",
|
|
56299
55994
|
{
|
|
56300
55995
|
style: {
|
|
@@ -56303,8 +55998,8 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56303
55998
|
zIndex: 3,
|
|
56304
55999
|
background: theme2.colors.disabledBackground
|
|
56305
56000
|
},
|
|
56306
|
-
children: /* @__PURE__ */
|
|
56307
|
-
props.allowMultiSelect && /* @__PURE__ */
|
|
56001
|
+
children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
56002
|
+
props.allowMultiSelect && /* @__PURE__ */ jsx(
|
|
56308
56003
|
Th,
|
|
56309
56004
|
{
|
|
56310
56005
|
theme: theme2,
|
|
@@ -56319,7 +56014,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56319
56014
|
textAlign: "center"
|
|
56320
56015
|
},
|
|
56321
56016
|
className: showLeftShadow ? "sticky-shadow-left" : "",
|
|
56322
|
-
children: /* @__PURE__ */
|
|
56017
|
+
children: /* @__PURE__ */ jsx(
|
|
56323
56018
|
"input",
|
|
56324
56019
|
{
|
|
56325
56020
|
type: "checkbox",
|
|
@@ -56343,7 +56038,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56343
56038
|
zIndex: 2,
|
|
56344
56039
|
background: theme2.colors.disabledBackground
|
|
56345
56040
|
} : {};
|
|
56346
|
-
return /* @__PURE__ */
|
|
56041
|
+
return /* @__PURE__ */ jsx(
|
|
56347
56042
|
Th,
|
|
56348
56043
|
{
|
|
56349
56044
|
theme: theme2,
|
|
@@ -56363,15 +56058,15 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56363
56058
|
] })
|
|
56364
56059
|
}
|
|
56365
56060
|
),
|
|
56366
|
-
/* @__PURE__ */
|
|
56061
|
+
/* @__PURE__ */ jsx("tbody", { children: pagedData.map((row, idx) => {
|
|
56367
56062
|
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
56368
56063
|
const baseRowProps = props.rowProps ? props.rowProps(row, idx) : {};
|
|
56369
56064
|
const animationRowProps = getRowProps(row);
|
|
56370
56065
|
const rowProps = { ...baseRowProps, ...animationRowProps };
|
|
56371
56066
|
const rowHasChildren = hasChildren(row);
|
|
56372
56067
|
const rowExpanded = isExpanded(row.id) || row.__autoExpand && rowHasChildren;
|
|
56373
|
-
return /* @__PURE__ */
|
|
56374
|
-
/* @__PURE__ */
|
|
56068
|
+
return /* @__PURE__ */ jsxs(d__default.Fragment, { children: [
|
|
56069
|
+
/* @__PURE__ */ jsxs(
|
|
56375
56070
|
TrWithRef,
|
|
56376
56071
|
{
|
|
56377
56072
|
theme: theme2,
|
|
@@ -56384,7 +56079,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56384
56079
|
}
|
|
56385
56080
|
},
|
|
56386
56081
|
children: [
|
|
56387
|
-
props.allowMultiSelect && /* @__PURE__ */
|
|
56082
|
+
props.allowMultiSelect && /* @__PURE__ */ jsx(
|
|
56388
56083
|
Td,
|
|
56389
56084
|
{
|
|
56390
56085
|
theme: theme2,
|
|
@@ -56399,7 +56094,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56399
56094
|
textAlign: "center"
|
|
56400
56095
|
},
|
|
56401
56096
|
className: showLeftShadow ? "sticky-shadow-left" : "",
|
|
56402
|
-
children: /* @__PURE__ */
|
|
56097
|
+
children: /* @__PURE__ */ jsx(
|
|
56403
56098
|
"input",
|
|
56404
56099
|
{
|
|
56405
56100
|
type: "checkbox",
|
|
@@ -56435,8 +56130,8 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56435
56130
|
);
|
|
56436
56131
|
const renderCellContent = () => {
|
|
56437
56132
|
if (isFirst && rowHasChildren) {
|
|
56438
|
-
return /* @__PURE__ */
|
|
56439
|
-
/* @__PURE__ */
|
|
56133
|
+
return /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
56134
|
+
/* @__PURE__ */ jsx(
|
|
56440
56135
|
"button",
|
|
56441
56136
|
{
|
|
56442
56137
|
onClick: () => handleToggleExpand(row.id),
|
|
@@ -56450,16 +56145,16 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56450
56145
|
justifyContent: "center",
|
|
56451
56146
|
color: theme2.colors.text
|
|
56452
56147
|
},
|
|
56453
|
-
children: rowExpanded ? /* @__PURE__ */
|
|
56148
|
+
children: rowExpanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 16 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 16 })
|
|
56454
56149
|
}
|
|
56455
56150
|
),
|
|
56456
|
-
/* @__PURE__ */
|
|
56151
|
+
/* @__PURE__ */ jsxs("span", { style: { paddingLeft: level * 16 }, children: [
|
|
56457
56152
|
" ",
|
|
56458
56153
|
cells.length > 0 ? col.type === "action" ? col.render ? col.render(
|
|
56459
56154
|
cells.length > 1 ? cells.map((cell) => cell) : cells[0],
|
|
56460
56155
|
row,
|
|
56461
56156
|
cells.length > 1 ? void 0 : cells[0]
|
|
56462
|
-
) : null : cells.map((cell, i) => /* @__PURE__ */
|
|
56157
|
+
) : null : cells.map((cell, i) => /* @__PURE__ */ jsx(
|
|
56463
56158
|
"span",
|
|
56464
56159
|
{
|
|
56465
56160
|
style: {
|
|
@@ -56470,20 +56165,20 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56470
56165
|
textOverflow: "ellipsis",
|
|
56471
56166
|
verticalAlign: "middle"
|
|
56472
56167
|
},
|
|
56473
|
-
children: col.render ? col.render(cell.value, row, cell) : /* @__PURE__ */
|
|
56168
|
+
children: col.render ? col.render(cell.value, row, cell) : /* @__PURE__ */ jsx("span", { children: cell.value })
|
|
56474
56169
|
},
|
|
56475
56170
|
i
|
|
56476
56171
|
)) : null
|
|
56477
56172
|
] })
|
|
56478
56173
|
] });
|
|
56479
56174
|
} else {
|
|
56480
|
-
return /* @__PURE__ */
|
|
56175
|
+
return /* @__PURE__ */ jsxs("span", { style: { paddingLeft: level * 16 }, children: [
|
|
56481
56176
|
" ",
|
|
56482
56177
|
cells.length > 0 ? col.type === "action" ? col.render ? col.render(
|
|
56483
56178
|
cells.length > 1 ? cells.map((cell) => cell) : cells[0],
|
|
56484
56179
|
row,
|
|
56485
56180
|
cells.length > 1 ? void 0 : cells[0]
|
|
56486
|
-
) : null : cells.map((cell, i) => /* @__PURE__ */
|
|
56181
|
+
) : null : cells.map((cell, i) => /* @__PURE__ */ jsx(
|
|
56487
56182
|
"span",
|
|
56488
56183
|
{
|
|
56489
56184
|
style: {
|
|
@@ -56494,14 +56189,14 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56494
56189
|
textOverflow: "ellipsis",
|
|
56495
56190
|
verticalAlign: "middle"
|
|
56496
56191
|
},
|
|
56497
|
-
children: col.render ? col.render(cell.value, row, cell) : /* @__PURE__ */
|
|
56192
|
+
children: col.render ? col.render(cell.value, row, cell) : /* @__PURE__ */ jsx("span", { children: cell.value })
|
|
56498
56193
|
},
|
|
56499
56194
|
i
|
|
56500
56195
|
)) : null
|
|
56501
56196
|
] });
|
|
56502
56197
|
}
|
|
56503
56198
|
};
|
|
56504
|
-
return /* @__PURE__ */
|
|
56199
|
+
return /* @__PURE__ */ jsx(
|
|
56505
56200
|
Td,
|
|
56506
56201
|
{
|
|
56507
56202
|
theme: theme2,
|
|
@@ -56515,21 +56210,21 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56515
56210
|
]
|
|
56516
56211
|
}
|
|
56517
56212
|
),
|
|
56518
|
-
rowHasChildren && rowExpanded && row.children !== void 0 && /* @__PURE__ */
|
|
56213
|
+
rowHasChildren && rowExpanded && row.children !== void 0 && /* @__PURE__ */ jsx(
|
|
56519
56214
|
"tr",
|
|
56520
56215
|
{
|
|
56521
56216
|
className: " relative ",
|
|
56522
56217
|
style: {
|
|
56523
56218
|
width: parentWidth > 0 ? `${parentWidth}px` : "100%"
|
|
56524
56219
|
},
|
|
56525
|
-
children: /* @__PURE__ */
|
|
56220
|
+
children: /* @__PURE__ */ jsx(
|
|
56526
56221
|
"td",
|
|
56527
56222
|
{
|
|
56528
56223
|
style: {
|
|
56529
56224
|
width: parentWidth > 0 ? `${parentWidth}px` : "100%"
|
|
56530
56225
|
},
|
|
56531
56226
|
colSpan: dynamicColumns.length + (props.allowMultiSelect ? 1 : 0),
|
|
56532
|
-
children: /* @__PURE__ */
|
|
56227
|
+
children: /* @__PURE__ */ jsxs(
|
|
56533
56228
|
"div",
|
|
56534
56229
|
{
|
|
56535
56230
|
style: {
|
|
@@ -56546,7 +56241,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56546
56241
|
boxSizing: "border-box"
|
|
56547
56242
|
},
|
|
56548
56243
|
children: [
|
|
56549
|
-
row.tableLoading && /* @__PURE__ */
|
|
56244
|
+
row.tableLoading && /* @__PURE__ */ jsx(
|
|
56550
56245
|
"div",
|
|
56551
56246
|
{
|
|
56552
56247
|
style: {
|
|
@@ -56562,7 +56257,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56562
56257
|
zIndex: 10,
|
|
56563
56258
|
borderRadius: theme2.space.radius
|
|
56564
56259
|
},
|
|
56565
|
-
children: /* @__PURE__ */
|
|
56260
|
+
children: /* @__PURE__ */ jsxs(
|
|
56566
56261
|
"div",
|
|
56567
56262
|
{
|
|
56568
56263
|
style: {
|
|
@@ -56572,7 +56267,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56572
56267
|
gap: 8
|
|
56573
56268
|
},
|
|
56574
56269
|
children: [
|
|
56575
|
-
/* @__PURE__ */
|
|
56270
|
+
/* @__PURE__ */ jsx(
|
|
56576
56271
|
"div",
|
|
56577
56272
|
{
|
|
56578
56273
|
style: {
|
|
@@ -56585,14 +56280,14 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56585
56280
|
}
|
|
56586
56281
|
}
|
|
56587
56282
|
),
|
|
56588
|
-
/* @__PURE__ */
|
|
56283
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: 14, color: theme2.colors.text }, children: "\u52A0\u8F7D\u4E2D..." })
|
|
56589
56284
|
]
|
|
56590
56285
|
}
|
|
56591
56286
|
)
|
|
56592
56287
|
}
|
|
56593
56288
|
),
|
|
56594
|
-
/* @__PURE__ */
|
|
56595
|
-
Array.isArray((_b = props.subTableConfig) == null ? void 0 : _b.toolbar) && props.subTableConfig.toolbar.length > 0 && /* @__PURE__ */
|
|
56289
|
+
/* @__PURE__ */ jsxs("div", { style: { marginBottom: "16px" }, children: [
|
|
56290
|
+
Array.isArray((_b = props.subTableConfig) == null ? void 0 : _b.toolbar) && props.subTableConfig.toolbar.length > 0 && /* @__PURE__ */ jsx(
|
|
56596
56291
|
"div",
|
|
56597
56292
|
{
|
|
56598
56293
|
style: {
|
|
@@ -56608,7 +56303,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56608
56303
|
default: "text"
|
|
56609
56304
|
};
|
|
56610
56305
|
const mode = modeMap[item.btnType] || "text";
|
|
56611
|
-
return /* @__PURE__ */
|
|
56306
|
+
return /* @__PURE__ */ jsx(
|
|
56612
56307
|
Button,
|
|
56613
56308
|
{
|
|
56614
56309
|
mode,
|
|
@@ -56627,7 +56322,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56627
56322
|
})
|
|
56628
56323
|
}
|
|
56629
56324
|
),
|
|
56630
|
-
/* @__PURE__ */
|
|
56325
|
+
/* @__PURE__ */ jsx(
|
|
56631
56326
|
SubTableScrollContainer,
|
|
56632
56327
|
{
|
|
56633
56328
|
theme: theme2,
|
|
@@ -56644,7 +56339,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56644
56339
|
width: "100%",
|
|
56645
56340
|
maxWidth: "100%"
|
|
56646
56341
|
},
|
|
56647
|
-
children: /* @__PURE__ */
|
|
56342
|
+
children: /* @__PURE__ */ jsx(
|
|
56648
56343
|
DynamicTable,
|
|
56649
56344
|
{
|
|
56650
56345
|
columns: ((_c = props.subTableConfig) == null ? void 0 : _c.columns) || [],
|
|
@@ -56698,7 +56393,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56698
56393
|
)
|
|
56699
56394
|
}
|
|
56700
56395
|
),
|
|
56701
|
-
props.viewBehavior === "pagination" && /* @__PURE__ */
|
|
56396
|
+
props.viewBehavior === "pagination" && /* @__PURE__ */ jsx(
|
|
56702
56397
|
"div",
|
|
56703
56398
|
{
|
|
56704
56399
|
style: {
|
|
@@ -56711,7 +56406,7 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56711
56406
|
flexShrink: 0,
|
|
56712
56407
|
paddingRight: 16
|
|
56713
56408
|
},
|
|
56714
|
-
children: /* @__PURE__ */
|
|
56409
|
+
children: /* @__PURE__ */ jsx(
|
|
56715
56410
|
SharedPagination,
|
|
56716
56411
|
{
|
|
56717
56412
|
current: page,
|
|
@@ -56760,10 +56455,10 @@ const DynamicTable = d__default.memo((props) => {
|
|
|
56760
56455
|
});
|
|
56761
56456
|
function renderLabel(item) {
|
|
56762
56457
|
if (!item.label) return null;
|
|
56763
|
-
return /* @__PURE__ */
|
|
56764
|
-
/* @__PURE__ */
|
|
56765
|
-
item.required && /* @__PURE__ */
|
|
56766
|
-
(item.helpText || item.description) && /* @__PURE__ */
|
|
56458
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
56459
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-gray-800 text-sm", children: item.label }),
|
|
56460
|
+
item.required && /* @__PURE__ */ jsx("span", { className: "text-red-500 font-bold text-sm", children: "*" }),
|
|
56461
|
+
(item.helpText || item.description) && /* @__PURE__ */ jsx(Tooltip2, { title: item.helpText || item.description, placement: "top", children: /* @__PURE__ */ jsx(
|
|
56767
56462
|
CircleQuestionMark,
|
|
56768
56463
|
{
|
|
56769
56464
|
className: "text-gray-400 hover:text-gray-600 cursor-help transition-colors",
|
|
@@ -57027,7 +56722,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57027
56722
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
57028
56723
|
if (item.name && hiddenItems.has(item.name)) return null;
|
|
57029
56724
|
if (item.type === "divider") {
|
|
57030
|
-
return /* @__PURE__ */
|
|
56725
|
+
return /* @__PURE__ */ jsx(
|
|
57031
56726
|
"div",
|
|
57032
56727
|
{
|
|
57033
56728
|
className: "my-3 border-b border-solid border-gray-200"
|
|
@@ -57043,7 +56738,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57043
56738
|
3: "text-[12px]"
|
|
57044
56739
|
};
|
|
57045
56740
|
const fontSize2 = fontSizeMap[level] || fontSizeMap[1];
|
|
57046
|
-
return /* @__PURE__ */
|
|
56741
|
+
return /* @__PURE__ */ jsx(
|
|
57047
56742
|
"div",
|
|
57048
56743
|
{
|
|
57049
56744
|
className: `${fontSize2} text-gray-800 mb-4 mt-6 ${item.className || ""} df-stagger`,
|
|
@@ -57053,9 +56748,9 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57053
56748
|
fontWeight: level === 1 ? 700 : level === 2 ? 600 : 500,
|
|
57054
56749
|
animationDelay: `${idx * 30}ms`
|
|
57055
56750
|
},
|
|
57056
|
-
children: /* @__PURE__ */
|
|
57057
|
-
/* @__PURE__ */
|
|
57058
|
-
/* @__PURE__ */
|
|
56751
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
56752
|
+
/* @__PURE__ */ jsx("span", { className: "mr-3", children: item.label }),
|
|
56753
|
+
/* @__PURE__ */ jsx(
|
|
57059
56754
|
"div",
|
|
57060
56755
|
{
|
|
57061
56756
|
className: "flex-1 border-b-[1px] border-dashed border-gray-200",
|
|
@@ -57095,7 +56790,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57095
56790
|
const baseInputClassName = `${childItem.className || ""} ${size === "sm" ? "h-7" : "h-10"}`;
|
|
57096
56791
|
switch (childItem.type) {
|
|
57097
56792
|
case "divider":
|
|
57098
|
-
return /* @__PURE__ */
|
|
56793
|
+
return /* @__PURE__ */ jsx(
|
|
57099
56794
|
"div",
|
|
57100
56795
|
{
|
|
57101
56796
|
className: "my-3 border-b border-solid border-gray-200"
|
|
@@ -57103,7 +56798,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57103
56798
|
childItem.name || childItem.id || `divider-${cidx}`
|
|
57104
56799
|
);
|
|
57105
56800
|
case "input":
|
|
57106
|
-
return /* @__PURE__ */
|
|
56801
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57107
56802
|
Input2,
|
|
57108
56803
|
{
|
|
57109
56804
|
placeholder: childItem.placeholder,
|
|
@@ -57112,7 +56807,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57112
56807
|
}
|
|
57113
56808
|
) }, formItemKey);
|
|
57114
56809
|
case "select":
|
|
57115
|
-
return /* @__PURE__ */
|
|
56810
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57116
56811
|
Select,
|
|
57117
56812
|
{
|
|
57118
56813
|
placeholder: childItem.placeholder,
|
|
@@ -57120,14 +56815,14 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57120
56815
|
className: baseInputClassName,
|
|
57121
56816
|
value: elementStates[childItem.name || ""],
|
|
57122
56817
|
onChange: (value) => handleElementChange(childItem.name || "", value, childItem.controlledItems),
|
|
57123
|
-
children: (_a2 = childItem.options) == null ? void 0 : _a2.map((option, index2) => /* @__PURE__ */
|
|
56818
|
+
children: (_a2 = childItem.options) == null ? void 0 : _a2.map((option, index2) => /* @__PURE__ */ jsx(Select.Option, { value: option.value, children: option.render ? option.render() : option.label }, option.value || index2))
|
|
57124
56819
|
}
|
|
57125
56820
|
) }, formItemKey);
|
|
57126
56821
|
case "number":
|
|
57127
|
-
return /* @__PURE__ */
|
|
56822
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57128
56823
|
TypedInputNumber,
|
|
57129
56824
|
{
|
|
57130
|
-
addonAfter: childItem.unit ? /* @__PURE__ */
|
|
56825
|
+
addonAfter: childItem.unit ? /* @__PURE__ */ jsx("span", { className: "text-[10px] text-gray-300", children: childItem.unit }) : null,
|
|
57131
56826
|
min: (_b2 = childItem.range) == null ? void 0 : _b2.min,
|
|
57132
56827
|
max: (_c2 = childItem.range) == null ? void 0 : _c2.max,
|
|
57133
56828
|
step: childItem.step,
|
|
@@ -57138,7 +56833,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57138
56833
|
}
|
|
57139
56834
|
) }, formItemKey);
|
|
57140
56835
|
case "password":
|
|
57141
|
-
return /* @__PURE__ */
|
|
56836
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57142
56837
|
Input2.Password,
|
|
57143
56838
|
{
|
|
57144
56839
|
placeholder: childItem.placeholder,
|
|
@@ -57147,7 +56842,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57147
56842
|
}
|
|
57148
56843
|
) }, formItemKey);
|
|
57149
56844
|
case "textarea":
|
|
57150
|
-
return /* @__PURE__ */
|
|
56845
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57151
56846
|
Input2.TextArea,
|
|
57152
56847
|
{
|
|
57153
56848
|
placeholder: childItem.placeholder,
|
|
@@ -57157,7 +56852,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57157
56852
|
}
|
|
57158
56853
|
) }, formItemKey);
|
|
57159
56854
|
case "date":
|
|
57160
|
-
return /* @__PURE__ */
|
|
56855
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57161
56856
|
DatePicker,
|
|
57162
56857
|
{
|
|
57163
56858
|
placeholder: childItem.placeholder,
|
|
@@ -57167,7 +56862,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57167
56862
|
}
|
|
57168
56863
|
) }, formItemKey);
|
|
57169
56864
|
case "radio":
|
|
57170
|
-
return /* @__PURE__ */
|
|
56865
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57171
56866
|
Radio.Group,
|
|
57172
56867
|
{
|
|
57173
56868
|
options: childItem.options,
|
|
@@ -57176,7 +56871,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57176
56871
|
}
|
|
57177
56872
|
) }, formItemKey);
|
|
57178
56873
|
case "switch":
|
|
57179
|
-
return /* @__PURE__ */
|
|
56874
|
+
return /* @__PURE__ */ jsx(
|
|
57180
56875
|
Form2.Item,
|
|
57181
56876
|
{
|
|
57182
56877
|
label: null,
|
|
@@ -57184,9 +56879,9 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57184
56879
|
className: "mb-6",
|
|
57185
56880
|
labelCol: { span: 24 },
|
|
57186
56881
|
wrapperCol: { span: 24 },
|
|
57187
|
-
children: /* @__PURE__ */
|
|
57188
|
-
/* @__PURE__ */
|
|
57189
|
-
/* @__PURE__ */
|
|
56882
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
56883
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: childItem.label ? renderLabel(childItem) : null }),
|
|
56884
|
+
/* @__PURE__ */ jsx(Form2.Item, { name: childItem.name, valuePropName: "checked", noStyle: true, children: /* @__PURE__ */ jsx(
|
|
57190
56885
|
Switch,
|
|
57191
56886
|
{
|
|
57192
56887
|
disabled: childItem.disabled,
|
|
@@ -57199,11 +56894,11 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57199
56894
|
childItem.name || `switch-${Math.random()}`
|
|
57200
56895
|
);
|
|
57201
56896
|
case "slider":
|
|
57202
|
-
return /* @__PURE__ */
|
|
57203
|
-
/* @__PURE__ */
|
|
57204
|
-
/* @__PURE__ */
|
|
57205
|
-
/* @__PURE__ */
|
|
57206
|
-
/* @__PURE__ */
|
|
56897
|
+
return /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
56898
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-3", children: [
|
|
56899
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: childItem.label ? renderLabel(childItem) : null }),
|
|
56900
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
56901
|
+
/* @__PURE__ */ jsx(Form2.Item, { name: childItem.name, noStyle: true, children: /* @__PURE__ */ jsx(
|
|
57207
56902
|
TypedInputNumber,
|
|
57208
56903
|
{
|
|
57209
56904
|
min: (_d2 = childItem.range) == null ? void 0 : _d2.min,
|
|
@@ -57213,10 +56908,10 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57213
56908
|
className: "h-8 w-20"
|
|
57214
56909
|
}
|
|
57215
56910
|
) }),
|
|
57216
|
-
childItem.unit && /* @__PURE__ */
|
|
56911
|
+
childItem.unit && /* @__PURE__ */ jsx("span", { className: "text-sm text-gray-500", children: childItem.unit })
|
|
57217
56912
|
] })
|
|
57218
56913
|
] }),
|
|
57219
|
-
/* @__PURE__ */
|
|
56914
|
+
/* @__PURE__ */ jsx(Form2.Item, { name: childItem.name, noStyle: true, children: /* @__PURE__ */ jsx(
|
|
57220
56915
|
Slider2,
|
|
57221
56916
|
{
|
|
57222
56917
|
min: (_f2 = childItem.range) == null ? void 0 : _f2.min,
|
|
@@ -57228,7 +56923,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57228
56923
|
) })
|
|
57229
56924
|
] }, childItem.name || `slider-${Math.random()}`);
|
|
57230
56925
|
case "checkbox":
|
|
57231
|
-
return /* @__PURE__ */
|
|
56926
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57232
56927
|
Checkbox.Group,
|
|
57233
56928
|
{
|
|
57234
56929
|
options: childItem.options,
|
|
@@ -57237,7 +56932,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57237
56932
|
}
|
|
57238
56933
|
) }, formItemKey);
|
|
57239
56934
|
case "email":
|
|
57240
|
-
return /* @__PURE__ */
|
|
56935
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57241
56936
|
Input2,
|
|
57242
56937
|
{
|
|
57243
56938
|
type: "email",
|
|
@@ -57247,7 +56942,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57247
56942
|
}
|
|
57248
56943
|
) }, formItemKey);
|
|
57249
56944
|
case "time":
|
|
57250
|
-
return /* @__PURE__ */
|
|
56945
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57251
56946
|
TimePicker,
|
|
57252
56947
|
{
|
|
57253
56948
|
placeholder: childItem.placeholder,
|
|
@@ -57257,7 +56952,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57257
56952
|
}
|
|
57258
56953
|
) }, formItemKey);
|
|
57259
56954
|
case "datetime":
|
|
57260
|
-
return /* @__PURE__ */
|
|
56955
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57261
56956
|
DatePicker,
|
|
57262
56957
|
{
|
|
57263
56958
|
showTime: true,
|
|
@@ -57268,7 +56963,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57268
56963
|
}
|
|
57269
56964
|
) }, formItemKey);
|
|
57270
56965
|
case "file":
|
|
57271
|
-
return /* @__PURE__ */
|
|
56966
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57272
56967
|
Input2,
|
|
57273
56968
|
{
|
|
57274
56969
|
type: "file",
|
|
@@ -57278,7 +56973,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57278
56973
|
}
|
|
57279
56974
|
) }, formItemKey);
|
|
57280
56975
|
case "color":
|
|
57281
|
-
return /* @__PURE__ */
|
|
56976
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57282
56977
|
Input2,
|
|
57283
56978
|
{
|
|
57284
56979
|
type: "color",
|
|
@@ -57293,7 +56988,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57293
56988
|
}
|
|
57294
56989
|
) }, formItemKey);
|
|
57295
56990
|
case "json":
|
|
57296
|
-
return /* @__PURE__ */
|
|
56991
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57297
56992
|
Input2.TextArea,
|
|
57298
56993
|
{
|
|
57299
56994
|
placeholder: childItem.placeholder,
|
|
@@ -57303,7 +56998,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57303
56998
|
}
|
|
57304
56999
|
) }, formItemKey);
|
|
57305
57000
|
case "markdown":
|
|
57306
|
-
return /* @__PURE__ */
|
|
57001
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(
|
|
57307
57002
|
Input2.TextArea,
|
|
57308
57003
|
{
|
|
57309
57004
|
placeholder: childItem.placeholder,
|
|
@@ -57316,7 +57011,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57316
57011
|
const UploaderComponent = d__default.lazy(
|
|
57317
57012
|
() => import("./zui-BGw9Otpd.js").then((module2) => ({ default: module2.Uploader }))
|
|
57318
57013
|
);
|
|
57319
|
-
return /* @__PURE__ */
|
|
57014
|
+
return /* @__PURE__ */ jsx(Form2.Item, { ...baseFormItemProps, children: /* @__PURE__ */ jsx(d__default.Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "\u52A0\u8F7D\u4E2D..." }), children: /* @__PURE__ */ jsx(
|
|
57320
57015
|
UploaderComponent,
|
|
57321
57016
|
{
|
|
57322
57017
|
multiple: ((_h2 = childItem.uploaderConfig) == null ? void 0 : _h2.multiple) ?? true,
|
|
@@ -57362,7 +57057,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57362
57057
|
}
|
|
57363
57058
|
return "flex-1";
|
|
57364
57059
|
};
|
|
57365
|
-
return /* @__PURE__ */
|
|
57060
|
+
return /* @__PURE__ */ jsx(
|
|
57366
57061
|
"div",
|
|
57367
57062
|
{
|
|
57368
57063
|
className: `flex justify-between items-start gap-x-2 ${item.className || ""}`,
|
|
@@ -57373,7 +57068,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57373
57068
|
justifyContent: item.justify || "space-between",
|
|
57374
57069
|
alignItems: item.align || "start"
|
|
57375
57070
|
},
|
|
57376
|
-
children: childItems.map((childItem, index2) => /* @__PURE__ */
|
|
57071
|
+
children: childItems.map((childItem, index2) => /* @__PURE__ */ jsx(
|
|
57377
57072
|
"div",
|
|
57378
57073
|
{
|
|
57379
57074
|
style: {
|
|
@@ -57406,7 +57101,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57406
57101
|
}
|
|
57407
57102
|
});
|
|
57408
57103
|
}
|
|
57409
|
-
return /* @__PURE__ */
|
|
57104
|
+
return /* @__PURE__ */ jsx(
|
|
57410
57105
|
Form2.Item,
|
|
57411
57106
|
{
|
|
57412
57107
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57416,7 +57111,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57416
57111
|
labelCol: { span: 24 },
|
|
57417
57112
|
wrapperCol: { span: 24 },
|
|
57418
57113
|
required: false,
|
|
57419
|
-
children: /* @__PURE__ */
|
|
57114
|
+
children: /* @__PURE__ */ jsx(
|
|
57420
57115
|
Input2,
|
|
57421
57116
|
{
|
|
57422
57117
|
placeholder: item.placeholder,
|
|
@@ -57431,7 +57126,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57431
57126
|
);
|
|
57432
57127
|
}
|
|
57433
57128
|
if (item.type === "select") {
|
|
57434
|
-
return /* @__PURE__ */
|
|
57129
|
+
return /* @__PURE__ */ jsx(
|
|
57435
57130
|
Form2.Item,
|
|
57436
57131
|
{
|
|
57437
57132
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57441,7 +57136,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57441
57136
|
labelCol: { span: 24 },
|
|
57442
57137
|
wrapperCol: { span: 24 },
|
|
57443
57138
|
required: false,
|
|
57444
|
-
children: /* @__PURE__ */
|
|
57139
|
+
children: /* @__PURE__ */ jsx(
|
|
57445
57140
|
Select,
|
|
57446
57141
|
{
|
|
57447
57142
|
placeholder: item.placeholder,
|
|
@@ -57449,7 +57144,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57449
57144
|
className: `${item.className || ""} ${size === "sm" ? "h-7" : "h-10"}`,
|
|
57450
57145
|
value: elementStates[item.name || ""],
|
|
57451
57146
|
onChange: (value) => handleElementChange(item.name || "", value, item.controlledItems),
|
|
57452
|
-
children: (_a = item.options) == null ? void 0 : _a.map((option, index2) => /* @__PURE__ */
|
|
57147
|
+
children: (_a = item.options) == null ? void 0 : _a.map((option, index2) => /* @__PURE__ */ jsx(Select.Option, { value: option.value, children: option.render ? option.render() : option.label }, option.value || index2))
|
|
57453
57148
|
}
|
|
57454
57149
|
)
|
|
57455
57150
|
},
|
|
@@ -57457,7 +57152,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57457
57152
|
);
|
|
57458
57153
|
}
|
|
57459
57154
|
if (item.type === "number") {
|
|
57460
|
-
return /* @__PURE__ */
|
|
57155
|
+
return /* @__PURE__ */ jsx(
|
|
57461
57156
|
Form2.Item,
|
|
57462
57157
|
{
|
|
57463
57158
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57467,10 +57162,10 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57467
57162
|
labelCol: { span: 24 },
|
|
57468
57163
|
wrapperCol: { span: 24 },
|
|
57469
57164
|
required: false,
|
|
57470
|
-
children: /* @__PURE__ */
|
|
57165
|
+
children: /* @__PURE__ */ jsx(
|
|
57471
57166
|
TypedInputNumber,
|
|
57472
57167
|
{
|
|
57473
|
-
addonAfter: item.unit ? /* @__PURE__ */
|
|
57168
|
+
addonAfter: item.unit ? /* @__PURE__ */ jsx("span", { className: "text-[10px] text-gray-300", children: item.unit }) : null,
|
|
57474
57169
|
min: (_b = item.range) == null ? void 0 : _b.min,
|
|
57475
57170
|
max: (_c = item.range) == null ? void 0 : _c.max,
|
|
57476
57171
|
step: item.step,
|
|
@@ -57485,11 +57180,11 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57485
57180
|
);
|
|
57486
57181
|
}
|
|
57487
57182
|
if (item.type === "slider") {
|
|
57488
|
-
return /* @__PURE__ */
|
|
57489
|
-
/* @__PURE__ */
|
|
57490
|
-
/* @__PURE__ */
|
|
57491
|
-
/* @__PURE__ */
|
|
57492
|
-
/* @__PURE__ */
|
|
57183
|
+
return /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
57184
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-3", children: [
|
|
57185
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: item.label ? renderLabel(item) : null }),
|
|
57186
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
57187
|
+
/* @__PURE__ */ jsx(Form2.Item, { name: item.name, noStyle: true, children: /* @__PURE__ */ jsx(
|
|
57493
57188
|
TypedInputNumber,
|
|
57494
57189
|
{
|
|
57495
57190
|
min: (_d = item.range) == null ? void 0 : _d.min,
|
|
@@ -57499,10 +57194,10 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57499
57194
|
className: "h-8 w-20"
|
|
57500
57195
|
}
|
|
57501
57196
|
) }),
|
|
57502
|
-
item.unit && /* @__PURE__ */
|
|
57197
|
+
item.unit && /* @__PURE__ */ jsx("span", { className: "text-sm text-gray-500", children: item.unit })
|
|
57503
57198
|
] })
|
|
57504
57199
|
] }),
|
|
57505
|
-
/* @__PURE__ */
|
|
57200
|
+
/* @__PURE__ */ jsx(Form2.Item, { name: item.name, noStyle: true, children: /* @__PURE__ */ jsx(
|
|
57506
57201
|
Slider2,
|
|
57507
57202
|
{
|
|
57508
57203
|
min: (_f = item.range) == null ? void 0 : _f.min,
|
|
@@ -57515,7 +57210,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57515
57210
|
] }, item.name || `slider-${Math.random()}`);
|
|
57516
57211
|
}
|
|
57517
57212
|
if (item.type === "switch") {
|
|
57518
|
-
return /* @__PURE__ */
|
|
57213
|
+
return /* @__PURE__ */ jsx(
|
|
57519
57214
|
Form2.Item,
|
|
57520
57215
|
{
|
|
57521
57216
|
label: null,
|
|
@@ -57523,9 +57218,9 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57523
57218
|
className: "mb-6",
|
|
57524
57219
|
labelCol: { span: 24 },
|
|
57525
57220
|
wrapperCol: { span: 24 },
|
|
57526
|
-
children: /* @__PURE__ */
|
|
57527
|
-
/* @__PURE__ */
|
|
57528
|
-
/* @__PURE__ */
|
|
57221
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
57222
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: item.label ? renderLabel(item) : null }),
|
|
57223
|
+
/* @__PURE__ */ jsx(Form2.Item, { name: item.name, valuePropName: "checked", noStyle: true, children: /* @__PURE__ */ jsx(
|
|
57529
57224
|
Switch,
|
|
57530
57225
|
{
|
|
57531
57226
|
disabled: item.disabled,
|
|
@@ -57556,7 +57251,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57556
57251
|
}
|
|
57557
57252
|
});
|
|
57558
57253
|
}
|
|
57559
|
-
return /* @__PURE__ */
|
|
57254
|
+
return /* @__PURE__ */ jsx(
|
|
57560
57255
|
Form2.Item,
|
|
57561
57256
|
{
|
|
57562
57257
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57566,7 +57261,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57566
57261
|
labelCol: { span: 24 },
|
|
57567
57262
|
wrapperCol: { span: 24 },
|
|
57568
57263
|
required: false,
|
|
57569
|
-
children: /* @__PURE__ */
|
|
57264
|
+
children: /* @__PURE__ */ jsx(
|
|
57570
57265
|
Input2.TextArea,
|
|
57571
57266
|
{
|
|
57572
57267
|
placeholder: item.placeholder,
|
|
@@ -57584,7 +57279,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57584
57279
|
);
|
|
57585
57280
|
}
|
|
57586
57281
|
if (item.type === "date") {
|
|
57587
|
-
return /* @__PURE__ */
|
|
57282
|
+
return /* @__PURE__ */ jsx(
|
|
57588
57283
|
Form2.Item,
|
|
57589
57284
|
{
|
|
57590
57285
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57594,7 +57289,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57594
57289
|
labelCol: { span: 24 },
|
|
57595
57290
|
wrapperCol: { span: 24 },
|
|
57596
57291
|
required: false,
|
|
57597
|
-
children: /* @__PURE__ */
|
|
57292
|
+
children: /* @__PURE__ */ jsx(
|
|
57598
57293
|
DatePicker,
|
|
57599
57294
|
{
|
|
57600
57295
|
placeholder: item.placeholder,
|
|
@@ -57608,7 +57303,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57608
57303
|
);
|
|
57609
57304
|
}
|
|
57610
57305
|
if (item.type === "radio") {
|
|
57611
|
-
return /* @__PURE__ */
|
|
57306
|
+
return /* @__PURE__ */ jsx(
|
|
57612
57307
|
Form2.Item,
|
|
57613
57308
|
{
|
|
57614
57309
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57618,13 +57313,13 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57618
57313
|
labelCol: { span: 24 },
|
|
57619
57314
|
wrapperCol: { span: 24 },
|
|
57620
57315
|
required: false,
|
|
57621
|
-
children: /* @__PURE__ */
|
|
57316
|
+
children: /* @__PURE__ */ jsx(Radio.Group, { options: item.options, disabled: item.disabled, className: item.className })
|
|
57622
57317
|
},
|
|
57623
57318
|
item.name || `radio-${Math.random()}`
|
|
57624
57319
|
);
|
|
57625
57320
|
}
|
|
57626
57321
|
if (item.type === "password") {
|
|
57627
|
-
return /* @__PURE__ */
|
|
57322
|
+
return /* @__PURE__ */ jsx(
|
|
57628
57323
|
Form2.Item,
|
|
57629
57324
|
{
|
|
57630
57325
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57634,7 +57329,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57634
57329
|
labelCol: { span: 24 },
|
|
57635
57330
|
wrapperCol: { span: 24 },
|
|
57636
57331
|
required: false,
|
|
57637
|
-
children: /* @__PURE__ */
|
|
57332
|
+
children: /* @__PURE__ */ jsx(
|
|
57638
57333
|
Input2.Password,
|
|
57639
57334
|
{
|
|
57640
57335
|
placeholder: item.placeholder,
|
|
@@ -57647,7 +57342,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57647
57342
|
);
|
|
57648
57343
|
}
|
|
57649
57344
|
if (item.type === "checkbox") {
|
|
57650
|
-
return /* @__PURE__ */
|
|
57345
|
+
return /* @__PURE__ */ jsx(
|
|
57651
57346
|
Form2.Item,
|
|
57652
57347
|
{
|
|
57653
57348
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57657,7 +57352,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57657
57352
|
labelCol: { span: 24 },
|
|
57658
57353
|
wrapperCol: { span: 24 },
|
|
57659
57354
|
required: false,
|
|
57660
|
-
children: /* @__PURE__ */
|
|
57355
|
+
children: /* @__PURE__ */ jsx(
|
|
57661
57356
|
Checkbox.Group,
|
|
57662
57357
|
{
|
|
57663
57358
|
options: item.options,
|
|
@@ -57670,7 +57365,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57670
57365
|
);
|
|
57671
57366
|
}
|
|
57672
57367
|
if (item.type === "email") {
|
|
57673
|
-
return /* @__PURE__ */
|
|
57368
|
+
return /* @__PURE__ */ jsx(
|
|
57674
57369
|
Form2.Item,
|
|
57675
57370
|
{
|
|
57676
57371
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57683,7 +57378,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57683
57378
|
labelCol: { span: 24 },
|
|
57684
57379
|
wrapperCol: { span: 24 },
|
|
57685
57380
|
required: false,
|
|
57686
|
-
children: /* @__PURE__ */
|
|
57381
|
+
children: /* @__PURE__ */ jsx(
|
|
57687
57382
|
Input2,
|
|
57688
57383
|
{
|
|
57689
57384
|
type: "email",
|
|
@@ -57697,7 +57392,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57697
57392
|
);
|
|
57698
57393
|
}
|
|
57699
57394
|
if (item.type === "time") {
|
|
57700
|
-
return /* @__PURE__ */
|
|
57395
|
+
return /* @__PURE__ */ jsx(
|
|
57701
57396
|
Form2.Item,
|
|
57702
57397
|
{
|
|
57703
57398
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57707,7 +57402,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57707
57402
|
labelCol: { span: 24 },
|
|
57708
57403
|
wrapperCol: { span: 24 },
|
|
57709
57404
|
required: false,
|
|
57710
|
-
children: /* @__PURE__ */
|
|
57405
|
+
children: /* @__PURE__ */ jsx(
|
|
57711
57406
|
TimePicker,
|
|
57712
57407
|
{
|
|
57713
57408
|
placeholder: item.placeholder,
|
|
@@ -57721,7 +57416,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57721
57416
|
);
|
|
57722
57417
|
}
|
|
57723
57418
|
if (item.type === "datetime") {
|
|
57724
|
-
return /* @__PURE__ */
|
|
57419
|
+
return /* @__PURE__ */ jsx(
|
|
57725
57420
|
Form2.Item,
|
|
57726
57421
|
{
|
|
57727
57422
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57731,7 +57426,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57731
57426
|
labelCol: { span: 24 },
|
|
57732
57427
|
wrapperCol: { span: 24 },
|
|
57733
57428
|
required: false,
|
|
57734
|
-
children: /* @__PURE__ */
|
|
57429
|
+
children: /* @__PURE__ */ jsx(
|
|
57735
57430
|
DatePicker,
|
|
57736
57431
|
{
|
|
57737
57432
|
showTime: true,
|
|
@@ -57746,7 +57441,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57746
57441
|
);
|
|
57747
57442
|
}
|
|
57748
57443
|
if (item.type === "file") {
|
|
57749
|
-
return /* @__PURE__ */
|
|
57444
|
+
return /* @__PURE__ */ jsx(
|
|
57750
57445
|
Form2.Item,
|
|
57751
57446
|
{
|
|
57752
57447
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57756,7 +57451,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57756
57451
|
labelCol: { span: 24 },
|
|
57757
57452
|
wrapperCol: { span: 24 },
|
|
57758
57453
|
required: false,
|
|
57759
|
-
children: /* @__PURE__ */
|
|
57454
|
+
children: /* @__PURE__ */ jsx(
|
|
57760
57455
|
Input2,
|
|
57761
57456
|
{
|
|
57762
57457
|
type: "file",
|
|
@@ -57770,7 +57465,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57770
57465
|
);
|
|
57771
57466
|
}
|
|
57772
57467
|
if (item.type === "color") {
|
|
57773
|
-
return /* @__PURE__ */
|
|
57468
|
+
return /* @__PURE__ */ jsx(
|
|
57774
57469
|
Form2.Item,
|
|
57775
57470
|
{
|
|
57776
57471
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57780,7 +57475,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57780
57475
|
labelCol: { span: 24 },
|
|
57781
57476
|
wrapperCol: { span: 24 },
|
|
57782
57477
|
required: false,
|
|
57783
|
-
children: /* @__PURE__ */
|
|
57478
|
+
children: /* @__PURE__ */ jsx(
|
|
57784
57479
|
Input2,
|
|
57785
57480
|
{
|
|
57786
57481
|
type: "color",
|
|
@@ -57795,7 +57490,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57795
57490
|
);
|
|
57796
57491
|
}
|
|
57797
57492
|
if (item.type === "json") {
|
|
57798
|
-
return /* @__PURE__ */
|
|
57493
|
+
return /* @__PURE__ */ jsx(
|
|
57799
57494
|
Form2.Item,
|
|
57800
57495
|
{
|
|
57801
57496
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57818,7 +57513,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57818
57513
|
labelCol: { span: 24 },
|
|
57819
57514
|
wrapperCol: { span: 24 },
|
|
57820
57515
|
required: false,
|
|
57821
|
-
children: /* @__PURE__ */
|
|
57516
|
+
children: /* @__PURE__ */ jsx(
|
|
57822
57517
|
Input2.TextArea,
|
|
57823
57518
|
{
|
|
57824
57519
|
placeholder: item.placeholder,
|
|
@@ -57832,7 +57527,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57832
57527
|
);
|
|
57833
57528
|
}
|
|
57834
57529
|
if (item.type === "markdown") {
|
|
57835
|
-
return /* @__PURE__ */
|
|
57530
|
+
return /* @__PURE__ */ jsx(
|
|
57836
57531
|
Form2.Item,
|
|
57837
57532
|
{
|
|
57838
57533
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57842,7 +57537,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57842
57537
|
labelCol: { span: 24 },
|
|
57843
57538
|
wrapperCol: { span: 24 },
|
|
57844
57539
|
required: false,
|
|
57845
|
-
children: /* @__PURE__ */
|
|
57540
|
+
children: /* @__PURE__ */ jsx(
|
|
57846
57541
|
Input2.TextArea,
|
|
57847
57542
|
{
|
|
57848
57543
|
placeholder: item.placeholder,
|
|
@@ -57859,7 +57554,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57859
57554
|
const UploaderComponent = d__default.lazy(
|
|
57860
57555
|
() => import("./zui-BGw9Otpd.js").then((module2) => ({ default: module2.Uploader }))
|
|
57861
57556
|
);
|
|
57862
|
-
return /* @__PURE__ */
|
|
57557
|
+
return /* @__PURE__ */ jsx(
|
|
57863
57558
|
Form2.Item,
|
|
57864
57559
|
{
|
|
57865
57560
|
label: item.label ? renderLabel(item) : void 0,
|
|
@@ -57869,7 +57564,7 @@ function useDynamicFormItems(config = [], styles, initialValues = {}, size = "md
|
|
|
57869
57564
|
labelCol: { span: 24 },
|
|
57870
57565
|
wrapperCol: { span: 24 },
|
|
57871
57566
|
required: false,
|
|
57872
|
-
children: /* @__PURE__ */
|
|
57567
|
+
children: /* @__PURE__ */ jsx(d__default.Suspense, { fallback: /* @__PURE__ */ jsx("div", { children: "\u52A0\u8F7D\u4E2D..." }), children: /* @__PURE__ */ jsx(
|
|
57873
57568
|
UploaderComponent,
|
|
57874
57569
|
{
|
|
57875
57570
|
multiple: ((_h = item.uploaderConfig) == null ? void 0 : _h.multiple) ?? true,
|
|
@@ -58220,9 +57915,9 @@ const DynamicForm = d__default.forwardRef(
|
|
|
58220
57915
|
}),
|
|
58221
57916
|
[form, getAllFormData, handleSubmit, handleReset, handleCancel]
|
|
58222
57917
|
);
|
|
58223
|
-
return /* @__PURE__ */
|
|
58224
|
-
/* @__PURE__ */
|
|
58225
|
-
/* @__PURE__ */
|
|
57918
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57919
|
+
/* @__PURE__ */ jsx("style", { children: passwordIconStyles }),
|
|
57920
|
+
/* @__PURE__ */ jsxs(
|
|
58226
57921
|
"div",
|
|
58227
57922
|
{
|
|
58228
57923
|
style: {
|
|
@@ -58235,8 +57930,8 @@ const DynamicForm = d__default.forwardRef(
|
|
|
58235
57930
|
// 确保最大宽度不超过设定值
|
|
58236
57931
|
},
|
|
58237
57932
|
children: [
|
|
58238
|
-
(title || description) && /* @__PURE__ */
|
|
58239
|
-
title && /* @__PURE__ */
|
|
57933
|
+
(title || description) && /* @__PURE__ */ jsxs("div", { style: { marginBottom: "24px" }, children: [
|
|
57934
|
+
title && /* @__PURE__ */ jsx(
|
|
58240
57935
|
"h2",
|
|
58241
57936
|
{
|
|
58242
57937
|
style: {
|
|
@@ -58248,7 +57943,7 @@ const DynamicForm = d__default.forwardRef(
|
|
|
58248
57943
|
children: title
|
|
58249
57944
|
}
|
|
58250
57945
|
),
|
|
58251
|
-
description && /* @__PURE__ */
|
|
57946
|
+
description && /* @__PURE__ */ jsx(
|
|
58252
57947
|
"p",
|
|
58253
57948
|
{
|
|
58254
57949
|
style: {
|
|
@@ -58261,7 +57956,7 @@ const DynamicForm = d__default.forwardRef(
|
|
|
58261
57956
|
}
|
|
58262
57957
|
)
|
|
58263
57958
|
] }),
|
|
58264
|
-
/* @__PURE__ */
|
|
57959
|
+
/* @__PURE__ */ jsxs(
|
|
58265
57960
|
Form2,
|
|
58266
57961
|
{
|
|
58267
57962
|
form,
|
|
@@ -58278,7 +57973,7 @@ const DynamicForm = d__default.forwardRef(
|
|
|
58278
57973
|
className: "dynamic-form",
|
|
58279
57974
|
children: [
|
|
58280
57975
|
items,
|
|
58281
|
-
((formConfig == null ? void 0 : formConfig.showSubmit) || (formConfig == null ? void 0 : formConfig.showReset)) && /* @__PURE__ */
|
|
57976
|
+
((formConfig == null ? void 0 : formConfig.showSubmit) || (formConfig == null ? void 0 : formConfig.showReset)) && /* @__PURE__ */ jsxs(
|
|
58282
57977
|
"div",
|
|
58283
57978
|
{
|
|
58284
57979
|
style: {
|
|
@@ -58290,7 +57985,7 @@ const DynamicForm = d__default.forwardRef(
|
|
|
58290
57985
|
justifyContent: "flex-end"
|
|
58291
57986
|
},
|
|
58292
57987
|
children: [
|
|
58293
|
-
(formConfig == null ? void 0 : formConfig.showReset) && /* @__PURE__ */
|
|
57988
|
+
(formConfig == null ? void 0 : formConfig.showReset) && /* @__PURE__ */ jsx(
|
|
58294
57989
|
Button$2,
|
|
58295
57990
|
{
|
|
58296
57991
|
onClick: handleReset,
|
|
@@ -58301,7 +57996,7 @@ const DynamicForm = d__default.forwardRef(
|
|
|
58301
57996
|
children: (formConfig == null ? void 0 : formConfig.resetText) || "\u91CD\u7F6E"
|
|
58302
57997
|
}
|
|
58303
57998
|
),
|
|
58304
|
-
(formConfig == null ? void 0 : formConfig.showSubmit) && /* @__PURE__ */
|
|
57999
|
+
(formConfig == null ? void 0 : formConfig.showSubmit) && /* @__PURE__ */ jsx(
|
|
58305
58000
|
Button$2,
|
|
58306
58001
|
{
|
|
58307
58002
|
type: "primary",
|
|
@@ -58459,12 +58154,12 @@ const iconSize = 32;
|
|
|
58459
58154
|
const dbTypeIcon = (dbType) => {
|
|
58460
58155
|
switch (dbType || "") {
|
|
58461
58156
|
case "MySQL":
|
|
58462
|
-
return /* @__PURE__ */
|
|
58157
|
+
return /* @__PURE__ */ jsx("img", { src: MySQL$1, alt: "mysql", style: { width: iconSize, height: iconSize } });
|
|
58463
58158
|
case "postgres":
|
|
58464
58159
|
case "PostgreSQL":
|
|
58465
|
-
return /* @__PURE__ */
|
|
58160
|
+
return /* @__PURE__ */ jsx("img", { src: PostgreSQL$1, alt: "mysql", style: { width: iconSize, height: iconSize } });
|
|
58466
58161
|
case "mongodb":
|
|
58467
|
-
return /* @__PURE__ */
|
|
58162
|
+
return /* @__PURE__ */ jsx(
|
|
58468
58163
|
"img",
|
|
58469
58164
|
{
|
|
58470
58165
|
src: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/mongodb.svg",
|
|
@@ -58473,7 +58168,7 @@ const dbTypeIcon = (dbType) => {
|
|
|
58473
58168
|
}
|
|
58474
58169
|
);
|
|
58475
58170
|
case "sqlite":
|
|
58476
|
-
return /* @__PURE__ */
|
|
58171
|
+
return /* @__PURE__ */ jsx(
|
|
58477
58172
|
"img",
|
|
58478
58173
|
{
|
|
58479
58174
|
src: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/sqlite.svg",
|
|
@@ -58482,7 +58177,7 @@ const dbTypeIcon = (dbType) => {
|
|
|
58482
58177
|
}
|
|
58483
58178
|
);
|
|
58484
58179
|
case "Oracle":
|
|
58485
|
-
return /* @__PURE__ */
|
|
58180
|
+
return /* @__PURE__ */ jsx(
|
|
58486
58181
|
"img",
|
|
58487
58182
|
{
|
|
58488
58183
|
src: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/oracle.svg",
|
|
@@ -58492,11 +58187,11 @@ const dbTypeIcon = (dbType) => {
|
|
|
58492
58187
|
);
|
|
58493
58188
|
case "SQLServer":
|
|
58494
58189
|
case "mssql":
|
|
58495
|
-
return /* @__PURE__ */
|
|
58190
|
+
return /* @__PURE__ */ jsx("img", { src: SQLServer$1, alt: "sqlserver", style: { width: iconSize, height: iconSize } });
|
|
58496
58191
|
case "Doris":
|
|
58497
|
-
return /* @__PURE__ */
|
|
58192
|
+
return /* @__PURE__ */ jsx("img", { src: Doris$1, alt: "sqlserver", style: { width: iconSize, height: iconSize } });
|
|
58498
58193
|
case "redis":
|
|
58499
|
-
return /* @__PURE__ */
|
|
58194
|
+
return /* @__PURE__ */ jsx(
|
|
58500
58195
|
"img",
|
|
58501
58196
|
{
|
|
58502
58197
|
src: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/redis.svg",
|
|
@@ -58505,7 +58200,7 @@ const dbTypeIcon = (dbType) => {
|
|
|
58505
58200
|
}
|
|
58506
58201
|
);
|
|
58507
58202
|
case "elasticsearch":
|
|
58508
|
-
return /* @__PURE__ */
|
|
58203
|
+
return /* @__PURE__ */ jsx(
|
|
58509
58204
|
"img",
|
|
58510
58205
|
{
|
|
58511
58206
|
src: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/elasticsearch.svg",
|
|
@@ -58514,7 +58209,7 @@ const dbTypeIcon = (dbType) => {
|
|
|
58514
58209
|
}
|
|
58515
58210
|
);
|
|
58516
58211
|
case "clickhouse":
|
|
58517
|
-
return /* @__PURE__ */
|
|
58212
|
+
return /* @__PURE__ */ jsx(
|
|
58518
58213
|
"img",
|
|
58519
58214
|
{
|
|
58520
58215
|
src: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/clickhouse.svg",
|
|
@@ -58523,7 +58218,7 @@ const dbTypeIcon = (dbType) => {
|
|
|
58523
58218
|
}
|
|
58524
58219
|
);
|
|
58525
58220
|
case "hive":
|
|
58526
|
-
return /* @__PURE__ */
|
|
58221
|
+
return /* @__PURE__ */ jsx(
|
|
58527
58222
|
"img",
|
|
58528
58223
|
{
|
|
58529
58224
|
src: "https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/apachehive.svg",
|
|
@@ -58532,14 +58227,14 @@ const dbTypeIcon = (dbType) => {
|
|
|
58532
58227
|
}
|
|
58533
58228
|
);
|
|
58534
58229
|
case "csv":
|
|
58535
|
-
return /* @__PURE__ */
|
|
58230
|
+
return /* @__PURE__ */ jsx(FileText, { size: iconSize, className: "text-gray-400" });
|
|
58536
58231
|
case "json":
|
|
58537
|
-
return /* @__PURE__ */
|
|
58232
|
+
return /* @__PURE__ */ jsx(FileText, { size: iconSize, className: "text-gray-400" });
|
|
58538
58233
|
case "xls":
|
|
58539
58234
|
case "xlsx":
|
|
58540
|
-
return /* @__PURE__ */
|
|
58235
|
+
return /* @__PURE__ */ jsx(FileSpreadsheet, { size: iconSize, className: "text-gray-400" });
|
|
58541
58236
|
default:
|
|
58542
|
-
return /* @__PURE__ */
|
|
58237
|
+
return /* @__PURE__ */ jsx("img", { src: Database, width: iconSize, className: "text-blue-500" });
|
|
58543
58238
|
}
|
|
58544
58239
|
};
|
|
58545
58240
|
const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
@@ -58562,7 +58257,7 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58562
58257
|
var _a;
|
|
58563
58258
|
const datasourceType = data.datasourceType || (((_a = data.dbHost) == null ? void 0 : _a.startsWith("DataTable://")) ? "DataTable" : "DirectDB");
|
|
58564
58259
|
if (datasourceType === "DataTable") {
|
|
58565
|
-
return /* @__PURE__ */
|
|
58260
|
+
return /* @__PURE__ */ jsx(
|
|
58566
58261
|
"div",
|
|
58567
58262
|
{
|
|
58568
58263
|
className: "flex items-center rounded-[4px] text-xs ",
|
|
@@ -58570,7 +58265,7 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58570
58265
|
backgroundColor: "#E8F5FF",
|
|
58571
58266
|
padding: "4px 8px"
|
|
58572
58267
|
},
|
|
58573
|
-
children: /* @__PURE__ */
|
|
58268
|
+
children: /* @__PURE__ */ jsx(
|
|
58574
58269
|
"span",
|
|
58575
58270
|
{
|
|
58576
58271
|
className: "text-blue-800 text-[11px] font-medium",
|
|
@@ -58583,8 +58278,8 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58583
58278
|
}
|
|
58584
58279
|
);
|
|
58585
58280
|
} else {
|
|
58586
|
-
return /* @__PURE__ */
|
|
58587
|
-
/* @__PURE__ */
|
|
58281
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
58282
|
+
/* @__PURE__ */ jsx(
|
|
58588
58283
|
"div",
|
|
58589
58284
|
{
|
|
58590
58285
|
className: "flex items-center rounded-[4px] text-xs ",
|
|
@@ -58592,7 +58287,7 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58592
58287
|
backgroundColor: "#F2FFFC",
|
|
58593
58288
|
padding: "4px 8px"
|
|
58594
58289
|
},
|
|
58595
|
-
children: /* @__PURE__ */
|
|
58290
|
+
children: /* @__PURE__ */ jsx(
|
|
58596
58291
|
"span",
|
|
58597
58292
|
{
|
|
58598
58293
|
className: "text-[11px] font-medium",
|
|
@@ -58604,7 +58299,7 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58604
58299
|
)
|
|
58605
58300
|
}
|
|
58606
58301
|
),
|
|
58607
|
-
data.dbType && /* @__PURE__ */
|
|
58302
|
+
data.dbType && /* @__PURE__ */ jsx(
|
|
58608
58303
|
"div",
|
|
58609
58304
|
{
|
|
58610
58305
|
className: "flex items-center px-2.5 py-1 rounded-[4px] text-xs ",
|
|
@@ -58612,7 +58307,7 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58612
58307
|
backgroundColor: "#F2FFFC",
|
|
58613
58308
|
padding: "4px 8px"
|
|
58614
58309
|
},
|
|
58615
|
-
children: /* @__PURE__ */
|
|
58310
|
+
children: /* @__PURE__ */ jsx(
|
|
58616
58311
|
"span",
|
|
58617
58312
|
{
|
|
58618
58313
|
className: " text-[11px] font-medium",
|
|
@@ -58627,16 +58322,16 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58627
58322
|
] });
|
|
58628
58323
|
}
|
|
58629
58324
|
};
|
|
58630
|
-
return /* @__PURE__ */
|
|
58631
|
-
/* @__PURE__ */
|
|
58632
|
-
/* @__PURE__ */
|
|
58325
|
+
return /* @__PURE__ */ jsxs(CardWrapper, { theme: theme2, className: "group", children: [
|
|
58326
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
58327
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
58633
58328
|
dbTypeIcon(data.dbType),
|
|
58634
|
-
/* @__PURE__ */
|
|
58635
|
-
/* @__PURE__ */
|
|
58636
|
-
/* @__PURE__ */
|
|
58329
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col ml-3 items-start justify-start gap-2 flex-1 min-w-0", children: [
|
|
58330
|
+
/* @__PURE__ */ jsx(CardTitle, { title: data.name, children: data.name }),
|
|
58331
|
+
/* @__PURE__ */ jsx("div", { className: "flex-shrink-0", children: renderDatabaseType() })
|
|
58637
58332
|
] })
|
|
58638
58333
|
] }) }),
|
|
58639
|
-
data.description && /* @__PURE__ */
|
|
58334
|
+
data.description && /* @__PURE__ */ jsx(
|
|
58640
58335
|
CardDesc,
|
|
58641
58336
|
{
|
|
58642
58337
|
$minHeight: data.datasourceType === "DataTable" ? "85px" : "32px",
|
|
@@ -58644,23 +58339,23 @@ const DatabaseCard$1 = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58644
58339
|
children: data.description
|
|
58645
58340
|
}
|
|
58646
58341
|
),
|
|
58647
|
-
/* @__PURE__ */
|
|
58648
|
-
data.dbHost && /* @__PURE__ */
|
|
58649
|
-
/* @__PURE__ */
|
|
58650
|
-
/* @__PURE__ */
|
|
58342
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 mt-2", children: [
|
|
58343
|
+
data.dbHost && /* @__PURE__ */ jsx(CardMeta, { children: /* @__PURE__ */ jsxs("span", { className: "font-normal text-[#888888]", children: [
|
|
58344
|
+
/* @__PURE__ */ jsx("span", { className: "inline-block", style: { width: "60px" }, children: "\u4E3B\u673A\u5730\u5740:" }),
|
|
58345
|
+
/* @__PURE__ */ jsx("span", { className: "underline text-blue-500 cursor-pointer hover:text-blue-600 transition-colors", children: data.dbHost })
|
|
58651
58346
|
] }) }),
|
|
58652
|
-
data.dbPort && /* @__PURE__ */
|
|
58653
|
-
/* @__PURE__ */
|
|
58654
|
-
/* @__PURE__ */
|
|
58347
|
+
data.dbPort && /* @__PURE__ */ jsx(CardMeta, { children: /* @__PURE__ */ jsxs("span", { className: "font-normal text-[#888888]", children: [
|
|
58348
|
+
/* @__PURE__ */ jsx("span", { className: "inline-block", style: { width: "60px" }, children: "\u7AEF\u53E3:" }),
|
|
58349
|
+
/* @__PURE__ */ jsx("span", { className: " text-[#2A2A2A]", children: data.dbPort })
|
|
58655
58350
|
] }) }),
|
|
58656
|
-
data.dbDatabase && /* @__PURE__ */
|
|
58657
|
-
/* @__PURE__ */
|
|
58658
|
-
/* @__PURE__ */
|
|
58351
|
+
data.dbDatabase && /* @__PURE__ */ jsx(CardMeta, { children: /* @__PURE__ */ jsxs("span", { className: "font-normal text-[#888888]", children: [
|
|
58352
|
+
/* @__PURE__ */ jsx("span", { className: "inline-block", style: { width: "60px" }, children: "\u6570\u636E\u5E93\u540D:" }),
|
|
58353
|
+
/* @__PURE__ */ jsx("span", { className: "text-[#2A2A2A]", children: data.dbDatabase })
|
|
58659
58354
|
] }) })
|
|
58660
58355
|
] }),
|
|
58661
|
-
/* @__PURE__ */
|
|
58356
|
+
/* @__PURE__ */ jsx("div", { style: { flex: 1, minHeight: "32px" } })
|
|
58662
58357
|
] }),
|
|
58663
|
-
dropdownActions.length > 0 && /* @__PURE__ */
|
|
58358
|
+
dropdownActions.length > 0 && /* @__PURE__ */ jsx(CardActions, { children: /* @__PURE__ */ jsx(htd, { actions: dropdownActions, onAction: handleAction }) })
|
|
58664
58359
|
] });
|
|
58665
58360
|
};
|
|
58666
58361
|
const DropdownMenu = ({
|
|
@@ -58728,7 +58423,7 @@ const DropdownMenu = ({
|
|
|
58728
58423
|
colors: { ...defaultTheme2.colors, ...styles.theme.colors },
|
|
58729
58424
|
space: { ...defaultTheme2.space, ...styles.theme.space }
|
|
58730
58425
|
} : defaultTheme2;
|
|
58731
|
-
const menu = /* @__PURE__ */
|
|
58426
|
+
const menu = /* @__PURE__ */ jsx(
|
|
58732
58427
|
"div",
|
|
58733
58428
|
{
|
|
58734
58429
|
ref: menuRef,
|
|
@@ -58745,9 +58440,9 @@ const DropdownMenu = ({
|
|
|
58745
58440
|
minWidth: 128,
|
|
58746
58441
|
zIndex: 9999
|
|
58747
58442
|
},
|
|
58748
|
-
children: /* @__PURE__ */
|
|
58443
|
+
children: /* @__PURE__ */ jsx("div", { className: "py-1", children: actions.map((action, index2) => {
|
|
58749
58444
|
if (action.type === "divider") {
|
|
58750
|
-
return /* @__PURE__ */
|
|
58445
|
+
return /* @__PURE__ */ jsx(
|
|
58751
58446
|
"div",
|
|
58752
58447
|
{
|
|
58753
58448
|
className: "my-2 bg-gray-100",
|
|
@@ -58758,7 +58453,7 @@ const DropdownMenu = ({
|
|
|
58758
58453
|
action.key || `divider-${index2}`
|
|
58759
58454
|
);
|
|
58760
58455
|
}
|
|
58761
|
-
return /* @__PURE__ */
|
|
58456
|
+
return /* @__PURE__ */ jsxs(
|
|
58762
58457
|
"button",
|
|
58763
58458
|
{
|
|
58764
58459
|
className: "w-full flex cursor-pointer items-center px-3 py-1 text-sm transition whitespace-nowrap",
|
|
@@ -58779,7 +58474,7 @@ const DropdownMenu = ({
|
|
|
58779
58474
|
onMouseOver: (e2) => e2.currentTarget.style.background = theme2.colors.disabledBackground,
|
|
58780
58475
|
onMouseOut: (e2) => e2.currentTarget.style.background = "transparent",
|
|
58781
58476
|
children: [
|
|
58782
|
-
action.icon && /* @__PURE__ */
|
|
58477
|
+
action.icon && /* @__PURE__ */ jsx("span", { className: "mr-2", children: action.icon }),
|
|
58783
58478
|
action.label
|
|
58784
58479
|
]
|
|
58785
58480
|
},
|
|
@@ -58788,8 +58483,8 @@ const DropdownMenu = ({
|
|
|
58788
58483
|
}) })
|
|
58789
58484
|
}
|
|
58790
58485
|
);
|
|
58791
|
-
return /* @__PURE__ */
|
|
58792
|
-
/* @__PURE__ */
|
|
58486
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
58487
|
+
/* @__PURE__ */ jsx(
|
|
58793
58488
|
"button",
|
|
58794
58489
|
{
|
|
58795
58490
|
ref: btnRef,
|
|
@@ -58806,7 +58501,7 @@ const DropdownMenu = ({
|
|
|
58806
58501
|
tabIndex: 0,
|
|
58807
58502
|
"aria-label": "\u66F4\u591A\u64CD\u4F5C",
|
|
58808
58503
|
type: "button",
|
|
58809
|
-
children: /* @__PURE__ */
|
|
58504
|
+
children: /* @__PURE__ */ jsx(Ellipsis, { size: 18, className: "text-blue-500" })
|
|
58810
58505
|
}
|
|
58811
58506
|
),
|
|
58812
58507
|
open2 && createPortal(menu, document.body)
|
|
@@ -58840,12 +58535,12 @@ const DesignCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58840
58535
|
if (action == null ? void 0 : action.onClick) action.onClick();
|
|
58841
58536
|
else onAction == null ? void 0 : onAction(key, data);
|
|
58842
58537
|
};
|
|
58843
|
-
return /* @__PURE__ */
|
|
58844
|
-
/* @__PURE__ */
|
|
58845
|
-
/* @__PURE__ */
|
|
58846
|
-
/* @__PURE__ */
|
|
58847
|
-
/* @__PURE__ */
|
|
58848
|
-
data.status && /* @__PURE__ */
|
|
58538
|
+
return /* @__PURE__ */ jsxs(CardWrapper, { theme: theme2, className: "group", children: [
|
|
58539
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
58540
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
58541
|
+
/* @__PURE__ */ jsx(Palette$1, { size: 20, className: "text-purple-500" }),
|
|
58542
|
+
/* @__PURE__ */ jsx(CardTitle, { children: data.name || "\u8BBE\u8BA1\u7A3F" }),
|
|
58543
|
+
data.status && /* @__PURE__ */ jsx("span", { style: { position: "absolute", right: -5, top: -10, margin: 12 }, children: /* @__PURE__ */ jsx(StatusDotWrapper, { children: /* @__PURE__ */ jsx(
|
|
58849
58544
|
StatusDot,
|
|
58850
58545
|
{
|
|
58851
58546
|
status: data.status,
|
|
@@ -58853,23 +58548,23 @@ const DesignCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58853
58548
|
}
|
|
58854
58549
|
) }) })
|
|
58855
58550
|
] }),
|
|
58856
|
-
/* @__PURE__ */
|
|
58857
|
-
/* @__PURE__ */
|
|
58551
|
+
/* @__PURE__ */ jsx(CardDesc, { children: data.description || "\u6682\u65E0\u63CF\u8FF0" }),
|
|
58552
|
+
/* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58858
58553
|
"\u8BBE\u8BA1\u5DE5\u5177: ",
|
|
58859
|
-
/* @__PURE__ */
|
|
58554
|
+
/* @__PURE__ */ jsx("b", { children: data.designType || "Unknown" })
|
|
58860
58555
|
] }),
|
|
58861
|
-
data.version && /* @__PURE__ */
|
|
58556
|
+
data.version && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58862
58557
|
"\u7248\u672C: ",
|
|
58863
|
-
/* @__PURE__ */
|
|
58558
|
+
/* @__PURE__ */ jsx("b", { children: data.version })
|
|
58864
58559
|
] }),
|
|
58865
|
-
data.url && /* @__PURE__ */
|
|
58866
|
-
data.lastModified && /* @__PURE__ */
|
|
58560
|
+
data.url && /* @__PURE__ */ jsx("span", { className: "text-blue-500 font-normal", children: /* @__PURE__ */ jsx("span", { className: "underline cursor-pointer", children: data.url }) }),
|
|
58561
|
+
data.lastModified && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58867
58562
|
"\u4FEE\u6539\u65F6\u95F4: ",
|
|
58868
|
-
/* @__PURE__ */
|
|
58563
|
+
/* @__PURE__ */ jsx("b", { children: data.lastModified })
|
|
58869
58564
|
] }),
|
|
58870
|
-
/* @__PURE__ */
|
|
58565
|
+
/* @__PURE__ */ jsx("div", { style: { flex: 1 } })
|
|
58871
58566
|
] }),
|
|
58872
|
-
dropdownActions.length > 0 && /* @__PURE__ */
|
|
58567
|
+
dropdownActions.length > 0 && /* @__PURE__ */ jsx(CardActions, { children: /* @__PURE__ */ jsx(DropdownMenu, { actions: dropdownActions, onAction: handleAction }) })
|
|
58873
58568
|
] });
|
|
58874
58569
|
};
|
|
58875
58570
|
const PrototypeCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
@@ -58888,12 +58583,12 @@ const PrototypeCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58888
58583
|
if (action == null ? void 0 : action.onClick) action.onClick();
|
|
58889
58584
|
else onAction == null ? void 0 : onAction(key, data);
|
|
58890
58585
|
};
|
|
58891
|
-
return /* @__PURE__ */
|
|
58892
|
-
/* @__PURE__ */
|
|
58893
|
-
/* @__PURE__ */
|
|
58894
|
-
/* @__PURE__ */
|
|
58895
|
-
/* @__PURE__ */
|
|
58896
|
-
data.status && /* @__PURE__ */
|
|
58586
|
+
return /* @__PURE__ */ jsxs(CardWrapper, { theme: theme2, className: "group", children: [
|
|
58587
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
58588
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
58589
|
+
/* @__PURE__ */ jsx(Layers, { size: 20, className: "text-orange-500" }),
|
|
58590
|
+
/* @__PURE__ */ jsx(CardTitle, { children: data.name || "\u539F\u578B\u8BBE\u8BA1" }),
|
|
58591
|
+
data.status && /* @__PURE__ */ jsx("span", { style: { position: "absolute", right: -5, top: -10, margin: 12 }, children: /* @__PURE__ */ jsx(StatusDotWrapper, { children: /* @__PURE__ */ jsx(
|
|
58897
58592
|
StatusDot,
|
|
58898
58593
|
{
|
|
58899
58594
|
status: data.status,
|
|
@@ -58901,23 +58596,23 @@ const PrototypeCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58901
58596
|
}
|
|
58902
58597
|
) }) })
|
|
58903
58598
|
] }),
|
|
58904
|
-
/* @__PURE__ */
|
|
58905
|
-
/* @__PURE__ */
|
|
58599
|
+
/* @__PURE__ */ jsx(CardDesc, { children: data.description || "\u6682\u65E0\u63CF\u8FF0" }),
|
|
58600
|
+
/* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58906
58601
|
"\u539F\u578B\u5DE5\u5177: ",
|
|
58907
|
-
/* @__PURE__ */
|
|
58602
|
+
/* @__PURE__ */ jsx("b", { children: data.prototypeType || "Unknown" })
|
|
58908
58603
|
] }),
|
|
58909
|
-
data.pages && /* @__PURE__ */
|
|
58604
|
+
data.pages && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58910
58605
|
"\u9875\u9762\u6570: ",
|
|
58911
|
-
/* @__PURE__ */
|
|
58606
|
+
/* @__PURE__ */ jsx("b", { children: data.pages })
|
|
58912
58607
|
] }),
|
|
58913
|
-
data.url && /* @__PURE__ */
|
|
58914
|
-
data.lastModified && /* @__PURE__ */
|
|
58608
|
+
data.url && /* @__PURE__ */ jsx("span", { className: "text-blue-500 font-normal", children: /* @__PURE__ */ jsx("span", { className: "underline cursor-pointer", children: data.url }) }),
|
|
58609
|
+
data.lastModified && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58915
58610
|
"\u4FEE\u6539\u65F6\u95F4: ",
|
|
58916
|
-
/* @__PURE__ */
|
|
58611
|
+
/* @__PURE__ */ jsx("b", { children: data.lastModified })
|
|
58917
58612
|
] }),
|
|
58918
|
-
/* @__PURE__ */
|
|
58613
|
+
/* @__PURE__ */ jsx("div", { style: { flex: 1 } })
|
|
58919
58614
|
] }),
|
|
58920
|
-
dropdownActions.length > 0 && /* @__PURE__ */
|
|
58615
|
+
dropdownActions.length > 0 && /* @__PURE__ */ jsx(CardActions, { children: /* @__PURE__ */ jsx(DropdownMenu, { actions: dropdownActions, onAction: handleAction }) })
|
|
58921
58616
|
] });
|
|
58922
58617
|
};
|
|
58923
58618
|
const RepositoryCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
@@ -58936,12 +58631,12 @@ const RepositoryCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58936
58631
|
if (action == null ? void 0 : action.onClick) action.onClick();
|
|
58937
58632
|
else onAction == null ? void 0 : onAction(key, data);
|
|
58938
58633
|
};
|
|
58939
|
-
return /* @__PURE__ */
|
|
58940
|
-
/* @__PURE__ */
|
|
58941
|
-
/* @__PURE__ */
|
|
58942
|
-
/* @__PURE__ */
|
|
58943
|
-
/* @__PURE__ */
|
|
58944
|
-
data.status && /* @__PURE__ */
|
|
58634
|
+
return /* @__PURE__ */ jsxs(CardWrapper, { theme: theme2, className: "group", children: [
|
|
58635
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
58636
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
58637
|
+
/* @__PURE__ */ jsx(GitBranch, { size: 20, className: "text-green-500" }),
|
|
58638
|
+
/* @__PURE__ */ jsx(CardTitle, { children: data.name || "\u4EE3\u7801\u4ED3\u5E93" }),
|
|
58639
|
+
data.status && /* @__PURE__ */ jsx("span", { style: { position: "absolute", right: -5, top: -10, margin: 12 }, children: /* @__PURE__ */ jsx(StatusDotWrapper, { children: /* @__PURE__ */ jsx(
|
|
58945
58640
|
StatusDot,
|
|
58946
58641
|
{
|
|
58947
58642
|
status: data.status,
|
|
@@ -58949,37 +58644,37 @@ const RepositoryCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
58949
58644
|
}
|
|
58950
58645
|
) }) })
|
|
58951
58646
|
] }),
|
|
58952
|
-
/* @__PURE__ */
|
|
58953
|
-
/* @__PURE__ */
|
|
58647
|
+
/* @__PURE__ */ jsx(CardDesc, { children: data.description || "\u6682\u65E0\u63CF\u8FF0" }),
|
|
58648
|
+
/* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58954
58649
|
"\u8BED\u8A00: ",
|
|
58955
|
-
/* @__PURE__ */
|
|
58650
|
+
/* @__PURE__ */ jsx("b", { children: data.language || "Unknown" })
|
|
58956
58651
|
] }),
|
|
58957
|
-
data.stars && /* @__PURE__ */
|
|
58652
|
+
data.stars && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58958
58653
|
"\u2B50 ",
|
|
58959
|
-
/* @__PURE__ */
|
|
58654
|
+
/* @__PURE__ */ jsx("b", { children: data.stars })
|
|
58960
58655
|
] }),
|
|
58961
|
-
data.deployment && /* @__PURE__ */
|
|
58656
|
+
data.deployment && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58962
58657
|
"\u90E8\u7F72: ",
|
|
58963
|
-
/* @__PURE__ */
|
|
58658
|
+
/* @__PURE__ */ jsx("b", { children: data.deployment })
|
|
58964
58659
|
] }),
|
|
58965
|
-
data.url && /* @__PURE__ */
|
|
58966
|
-
data.lastCommit && /* @__PURE__ */
|
|
58660
|
+
data.url && /* @__PURE__ */ jsx("span", { className: "text-blue-500 font-normal", children: /* @__PURE__ */ jsx("span", { className: "underline cursor-pointer", children: data.url }) }),
|
|
58661
|
+
data.lastCommit && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58967
58662
|
"\u6700\u540E\u63D0\u4EA4: ",
|
|
58968
|
-
/* @__PURE__ */
|
|
58663
|
+
/* @__PURE__ */ jsx("b", { children: data.lastCommit })
|
|
58969
58664
|
] }),
|
|
58970
|
-
data.lastDeploy && /* @__PURE__ */
|
|
58665
|
+
data.lastDeploy && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
58971
58666
|
"\u6700\u540E\u90E8\u7F72: ",
|
|
58972
|
-
/* @__PURE__ */
|
|
58667
|
+
/* @__PURE__ */ jsx("b", { children: data.lastDeploy })
|
|
58973
58668
|
] }),
|
|
58974
|
-
/* @__PURE__ */
|
|
58669
|
+
/* @__PURE__ */ jsx("div", { style: { flex: 1 } })
|
|
58975
58670
|
] }),
|
|
58976
|
-
dropdownActions.length > 0 && /* @__PURE__ */
|
|
58671
|
+
dropdownActions.length > 0 && /* @__PURE__ */ jsx(CardActions, { children: /* @__PURE__ */ jsx(DropdownMenu, { actions: dropdownActions, onAction: handleAction }) })
|
|
58977
58672
|
] });
|
|
58978
58673
|
};
|
|
58979
58674
|
const DefaultCard = ({ data, theme: theme2 }) => {
|
|
58980
|
-
return /* @__PURE__ */
|
|
58981
|
-
/* @__PURE__ */
|
|
58982
|
-
/* @__PURE__ */
|
|
58675
|
+
return /* @__PURE__ */ jsxs(CardWrapper, { theme: theme2, children: [
|
|
58676
|
+
/* @__PURE__ */ jsx(CardTitle, { children: data.title || "\u5361\u7247\u6807\u9898" }),
|
|
58677
|
+
/* @__PURE__ */ jsx(CardDesc, { children: data.content || "\u5185\u5BB9..." })
|
|
58983
58678
|
] });
|
|
58984
58679
|
};
|
|
58985
58680
|
const DatabaseCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
@@ -59000,26 +58695,26 @@ const DatabaseCard = ({ data, theme: theme2, actions = [], onAction }) => {
|
|
|
59000
58695
|
if (action == null ? void 0 : action.onClick) action.onClick();
|
|
59001
58696
|
else onAction == null ? void 0 : onAction(key, data);
|
|
59002
58697
|
};
|
|
59003
|
-
return /* @__PURE__ */
|
|
59004
|
-
/* @__PURE__ */
|
|
59005
|
-
/* @__PURE__ */
|
|
59006
|
-
data.fileCount && /* @__PURE__ */
|
|
58698
|
+
return /* @__PURE__ */ jsxs(CardWrapper, { theme: theme2, className: "group", children: [
|
|
58699
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
58700
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx("div", { className: "flex items-start justify-between w-full", children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "truncate", children: data.kbName }) }) }) }),
|
|
58701
|
+
data.fileCount && /* @__PURE__ */ jsx(CardMeta, { children: /* @__PURE__ */ jsxs("span", { className: "font-normal", children: [
|
|
59007
58702
|
"\u6587\u4EF6\u6570:",
|
|
59008
|
-
/* @__PURE__ */
|
|
58703
|
+
/* @__PURE__ */ jsxs("span", { className: "underline text-blue-500 cursor-pointer", children: [
|
|
59009
58704
|
" ",
|
|
59010
58705
|
data.fileCount
|
|
59011
58706
|
] })
|
|
59012
58707
|
] }) }),
|
|
59013
|
-
data.fileTotalSize && /* @__PURE__ */
|
|
58708
|
+
data.fileTotalSize && /* @__PURE__ */ jsxs(CardMeta, { children: [
|
|
59014
58709
|
"\u5927\u5C0F: ",
|
|
59015
|
-
/* @__PURE__ */
|
|
58710
|
+
/* @__PURE__ */ jsxs("b", { children: [
|
|
59016
58711
|
data.fileTotalSize,
|
|
59017
58712
|
"M"
|
|
59018
58713
|
] })
|
|
59019
58714
|
] }),
|
|
59020
|
-
/* @__PURE__ */
|
|
58715
|
+
/* @__PURE__ */ jsx("div", { style: { flex: 1 } })
|
|
59021
58716
|
] }),
|
|
59022
|
-
dropdownActions.length > 0 && /* @__PURE__ */
|
|
58717
|
+
dropdownActions.length > 0 && /* @__PURE__ */ jsx(CardActions, { children: /* @__PURE__ */ jsx(DropdownMenu, { actions: dropdownActions, onAction: handleAction }) })
|
|
59023
58718
|
] });
|
|
59024
58719
|
};
|
|
59025
58720
|
function useDynamicCards(configs, cardType, options) {
|
|
@@ -59036,7 +58731,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59036
58731
|
...card,
|
|
59037
58732
|
// 保持所有原始属性,包括 removing 状态
|
|
59038
58733
|
render: (data) => {
|
|
59039
|
-
return /* @__PURE__ */
|
|
58734
|
+
return /* @__PURE__ */ jsx(
|
|
59040
58735
|
"div",
|
|
59041
58736
|
{
|
|
59042
58737
|
onClick: (e2) => {
|
|
@@ -59048,7 +58743,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59048
58743
|
e2.stopPropagation();
|
|
59049
58744
|
},
|
|
59050
58745
|
style: { cursor: "pointer", height: "100%" },
|
|
59051
|
-
children: /* @__PURE__ */
|
|
58746
|
+
children: /* @__PURE__ */ jsx(
|
|
59052
58747
|
DatabaseCard,
|
|
59053
58748
|
{
|
|
59054
58749
|
data,
|
|
@@ -59065,7 +58760,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59065
58760
|
return {
|
|
59066
58761
|
...card,
|
|
59067
58762
|
// 保持所有原始属性,包括 removing 状态
|
|
59068
|
-
render: (data) => /* @__PURE__ */
|
|
58763
|
+
render: (data) => /* @__PURE__ */ jsx(
|
|
59069
58764
|
"div",
|
|
59070
58765
|
{
|
|
59071
58766
|
onClick: (e2) => {
|
|
@@ -59077,7 +58772,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59077
58772
|
if (options == null ? void 0 : options.onCardDoubleClick) options.onCardDoubleClick(data, e2);
|
|
59078
58773
|
},
|
|
59079
58774
|
style: { cursor: "pointer", height: "100%" },
|
|
59080
|
-
children: /* @__PURE__ */
|
|
58775
|
+
children: /* @__PURE__ */ jsx(
|
|
59081
58776
|
DatabaseCard$1,
|
|
59082
58777
|
{
|
|
59083
58778
|
data,
|
|
@@ -59093,7 +58788,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59093
58788
|
return {
|
|
59094
58789
|
...card,
|
|
59095
58790
|
// 保持所有原始属性,包括 removing 状态
|
|
59096
|
-
render: (data) => /* @__PURE__ */
|
|
58791
|
+
render: (data) => /* @__PURE__ */ jsx(
|
|
59097
58792
|
"div",
|
|
59098
58793
|
{
|
|
59099
58794
|
onClick: (e2) => {
|
|
@@ -59105,7 +58800,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59105
58800
|
e2.stopPropagation();
|
|
59106
58801
|
},
|
|
59107
58802
|
style: { cursor: "pointer", height: "100%" },
|
|
59108
|
-
children: /* @__PURE__ */
|
|
58803
|
+
children: /* @__PURE__ */ jsx(
|
|
59109
58804
|
DesignCard,
|
|
59110
58805
|
{
|
|
59111
58806
|
data,
|
|
@@ -59121,7 +58816,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59121
58816
|
return {
|
|
59122
58817
|
...card,
|
|
59123
58818
|
// 保持所有原始属性,包括 removing 状态
|
|
59124
|
-
render: (data) => /* @__PURE__ */
|
|
58819
|
+
render: (data) => /* @__PURE__ */ jsx(
|
|
59125
58820
|
"div",
|
|
59126
58821
|
{
|
|
59127
58822
|
onClick: (e2) => {
|
|
@@ -59133,7 +58828,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59133
58828
|
e2.stopPropagation();
|
|
59134
58829
|
},
|
|
59135
58830
|
style: { cursor: "pointer", height: "100%" },
|
|
59136
|
-
children: /* @__PURE__ */
|
|
58831
|
+
children: /* @__PURE__ */ jsx(
|
|
59137
58832
|
PrototypeCard,
|
|
59138
58833
|
{
|
|
59139
58834
|
data,
|
|
@@ -59149,7 +58844,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59149
58844
|
return {
|
|
59150
58845
|
...card,
|
|
59151
58846
|
// 保持所有原始属性,包括 removing 状态
|
|
59152
|
-
render: (data) => /* @__PURE__ */
|
|
58847
|
+
render: (data) => /* @__PURE__ */ jsx(
|
|
59153
58848
|
"div",
|
|
59154
58849
|
{
|
|
59155
58850
|
onClick: (e2) => {
|
|
@@ -59161,7 +58856,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59161
58856
|
e2.stopPropagation();
|
|
59162
58857
|
},
|
|
59163
58858
|
style: { cursor: "pointer", height: "100%" },
|
|
59164
|
-
children: /* @__PURE__ */
|
|
58859
|
+
children: /* @__PURE__ */ jsx(
|
|
59165
58860
|
RepositoryCard,
|
|
59166
58861
|
{
|
|
59167
58862
|
data,
|
|
@@ -59177,7 +58872,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59177
58872
|
return {
|
|
59178
58873
|
...card,
|
|
59179
58874
|
// 保持所有原始属性,包括 removing 状态
|
|
59180
|
-
render: (data, extra) => /* @__PURE__ */
|
|
58875
|
+
render: (data, extra) => /* @__PURE__ */ jsx(
|
|
59181
58876
|
"div",
|
|
59182
58877
|
{
|
|
59183
58878
|
onClick: (e2) => {
|
|
@@ -59189,7 +58884,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59189
58884
|
e2.stopPropagation();
|
|
59190
58885
|
},
|
|
59191
58886
|
style: { cursor: "pointer", height: "100%" },
|
|
59192
|
-
children: card.render ? card.render(data, options) : /* @__PURE__ */
|
|
58887
|
+
children: card.render ? card.render(data, options) : /* @__PURE__ */ jsx("div", { children: "\u81EA\u5B9A\u4E49\u5361\u7247" })
|
|
59193
58888
|
}
|
|
59194
58889
|
)
|
|
59195
58890
|
};
|
|
@@ -59198,7 +58893,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59198
58893
|
return {
|
|
59199
58894
|
...card,
|
|
59200
58895
|
// 保持所有原始属性,包括 removing 状态
|
|
59201
|
-
render: (data) => /* @__PURE__ */
|
|
58896
|
+
render: (data) => /* @__PURE__ */ jsx(
|
|
59202
58897
|
"div",
|
|
59203
58898
|
{
|
|
59204
58899
|
onClick: (e2) => {
|
|
@@ -59210,7 +58905,7 @@ function useDynamicCards(configs, cardType, options) {
|
|
|
59210
58905
|
e2.stopPropagation();
|
|
59211
58906
|
},
|
|
59212
58907
|
style: { cursor: "pointer", height: "100%" },
|
|
59213
|
-
children: /* @__PURE__ */
|
|
58908
|
+
children: /* @__PURE__ */ jsx(DefaultCard, { data, theme: theme2 })
|
|
59214
58909
|
}
|
|
59215
58910
|
)
|
|
59216
58911
|
};
|
|
@@ -59439,8 +59134,8 @@ const DynamicCards = ({
|
|
|
59439
59134
|
return "";
|
|
59440
59135
|
};
|
|
59441
59136
|
if (behavior === "scroll") {
|
|
59442
|
-
return /* @__PURE__ */
|
|
59443
|
-
/* @__PURE__ */
|
|
59137
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59138
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
59444
59139
|
.removing-card {
|
|
59445
59140
|
animation: card-flip-out 0.5s forwards;
|
|
59446
59141
|
will-change: transform, opacity;
|
|
@@ -59464,7 +59159,7 @@ const DynamicCards = ({
|
|
|
59464
59159
|
}
|
|
59465
59160
|
}
|
|
59466
59161
|
` }),
|
|
59467
|
-
/* @__PURE__ */
|
|
59162
|
+
/* @__PURE__ */ jsx(
|
|
59468
59163
|
"div",
|
|
59469
59164
|
{
|
|
59470
59165
|
ref: containerRef,
|
|
@@ -59475,7 +59170,7 @@ const DynamicCards = ({
|
|
|
59475
59170
|
overflow: "auto",
|
|
59476
59171
|
...styles
|
|
59477
59172
|
},
|
|
59478
|
-
children: /* @__PURE__ */
|
|
59173
|
+
children: /* @__PURE__ */ jsx(
|
|
59479
59174
|
"div",
|
|
59480
59175
|
{
|
|
59481
59176
|
style: {
|
|
@@ -59492,7 +59187,7 @@ const DynamicCards = ({
|
|
|
59492
59187
|
children: cardList.map((card, idx) => {
|
|
59493
59188
|
const isSelected = selectedIds.includes(card.id);
|
|
59494
59189
|
typeof card === "object" && "removing" in card && card.removing;
|
|
59495
|
-
return /* @__PURE__ */
|
|
59190
|
+
return /* @__PURE__ */ jsxs(
|
|
59496
59191
|
"div",
|
|
59497
59192
|
{
|
|
59498
59193
|
...getCardProps(card),
|
|
@@ -59516,7 +59211,7 @@ const DynamicCards = ({
|
|
|
59516
59211
|
}
|
|
59517
59212
|
},
|
|
59518
59213
|
children: [
|
|
59519
|
-
(pendingIds == null ? void 0 : pendingIds.includes(card.id)) && /* @__PURE__ */
|
|
59214
|
+
(pendingIds == null ? void 0 : pendingIds.includes(card.id)) && /* @__PURE__ */ jsx(
|
|
59520
59215
|
"div",
|
|
59521
59216
|
{
|
|
59522
59217
|
style: {
|
|
@@ -59536,10 +59231,10 @@ const DynamicCards = ({
|
|
|
59536
59231
|
color: "#2563eb",
|
|
59537
59232
|
fontWeight: 500
|
|
59538
59233
|
},
|
|
59539
|
-
children: /* @__PURE__ */
|
|
59234
|
+
children: /* @__PURE__ */ jsx("span", { children: "\u64CD\u4F5C\u4E2D..." })
|
|
59540
59235
|
}
|
|
59541
59236
|
),
|
|
59542
|
-
allowMultiSelect && /* @__PURE__ */
|
|
59237
|
+
allowMultiSelect && /* @__PURE__ */ jsx(
|
|
59543
59238
|
"input",
|
|
59544
59239
|
{
|
|
59545
59240
|
type: "checkbox",
|
|
@@ -59561,7 +59256,7 @@ const DynamicCards = ({
|
|
|
59561
59256
|
)
|
|
59562
59257
|
] });
|
|
59563
59258
|
}
|
|
59564
|
-
return /* @__PURE__ */
|
|
59259
|
+
return /* @__PURE__ */ jsxs(
|
|
59565
59260
|
"div",
|
|
59566
59261
|
{
|
|
59567
59262
|
style: {
|
|
@@ -59572,7 +59267,7 @@ const DynamicCards = ({
|
|
|
59572
59267
|
...styles
|
|
59573
59268
|
},
|
|
59574
59269
|
children: [
|
|
59575
|
-
/* @__PURE__ */
|
|
59270
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
59576
59271
|
.removing-card {
|
|
59577
59272
|
animation: card-flip-out 0.5s forwards;
|
|
59578
59273
|
will-change: transform, opacity;
|
|
@@ -59596,7 +59291,7 @@ const DynamicCards = ({
|
|
|
59596
59291
|
}
|
|
59597
59292
|
}
|
|
59598
59293
|
` }),
|
|
59599
|
-
/* @__PURE__ */
|
|
59294
|
+
/* @__PURE__ */ jsx(
|
|
59600
59295
|
"div",
|
|
59601
59296
|
{
|
|
59602
59297
|
ref: containerRef,
|
|
@@ -59605,7 +59300,7 @@ const DynamicCards = ({
|
|
|
59605
59300
|
overflow: "auto",
|
|
59606
59301
|
position: "relative"
|
|
59607
59302
|
},
|
|
59608
|
-
children: /* @__PURE__ */
|
|
59303
|
+
children: /* @__PURE__ */ jsx(
|
|
59609
59304
|
"div",
|
|
59610
59305
|
{
|
|
59611
59306
|
style: {
|
|
@@ -59621,7 +59316,7 @@ const DynamicCards = ({
|
|
|
59621
59316
|
children: pagedCards.map((card) => {
|
|
59622
59317
|
const isRemoving = card.removing;
|
|
59623
59318
|
const isAdding = addingIds == null ? void 0 : addingIds.includes(card.id);
|
|
59624
|
-
return /* @__PURE__ */
|
|
59319
|
+
return /* @__PURE__ */ jsxs(
|
|
59625
59320
|
"div",
|
|
59626
59321
|
{
|
|
59627
59322
|
className: `${isRemoving ? "removing-card" : ""} ${isAdding ? "adding-card" : ""}`,
|
|
@@ -59641,7 +59336,7 @@ const DynamicCards = ({
|
|
|
59641
59336
|
}
|
|
59642
59337
|
},
|
|
59643
59338
|
children: [
|
|
59644
|
-
(pendingIds == null ? void 0 : pendingIds.includes(card.id)) && /* @__PURE__ */
|
|
59339
|
+
(pendingIds == null ? void 0 : pendingIds.includes(card.id)) && /* @__PURE__ */ jsx(
|
|
59645
59340
|
"div",
|
|
59646
59341
|
{
|
|
59647
59342
|
style: {
|
|
@@ -59661,7 +59356,7 @@ const DynamicCards = ({
|
|
|
59661
59356
|
color: "#2563eb",
|
|
59662
59357
|
fontWeight: 500
|
|
59663
59358
|
},
|
|
59664
|
-
children: /* @__PURE__ */
|
|
59359
|
+
children: /* @__PURE__ */ jsx("span", { children: "\u64CD\u4F5C\u4E2D..." })
|
|
59665
59360
|
}
|
|
59666
59361
|
),
|
|
59667
59362
|
card.render ? card.render(card) : null
|
|
@@ -59674,7 +59369,7 @@ const DynamicCards = ({
|
|
|
59674
59369
|
)
|
|
59675
59370
|
}
|
|
59676
59371
|
),
|
|
59677
|
-
/* @__PURE__ */
|
|
59372
|
+
/* @__PURE__ */ jsx(
|
|
59678
59373
|
"div",
|
|
59679
59374
|
{
|
|
59680
59375
|
style: {
|
|
@@ -59688,7 +59383,7 @@ const DynamicCards = ({
|
|
|
59688
59383
|
flexShrink: 0,
|
|
59689
59384
|
padding: "0 16px"
|
|
59690
59385
|
},
|
|
59691
|
-
children: /* @__PURE__ */
|
|
59386
|
+
children: /* @__PURE__ */ jsx(
|
|
59692
59387
|
SharedPagination,
|
|
59693
59388
|
{
|
|
59694
59389
|
current: page,
|
|
@@ -59755,16 +59450,16 @@ const ContentRenderer = ({
|
|
|
59755
59450
|
}) => {
|
|
59756
59451
|
var _a, _b, _c, _d, _e2;
|
|
59757
59452
|
if (!activeNode || !activeNode.type) {
|
|
59758
|
-
return /* @__PURE__ */
|
|
59453
|
+
return /* @__PURE__ */ jsx("div", { className: "text-gray-400 p-4", children: "\u8BF7\u9009\u62E9\u5185\u5BB9" });
|
|
59759
59454
|
}
|
|
59760
59455
|
const isEmptyData = activeNode.type !== "form" && (!innerData || !Array.isArray(innerData) || innerData.length === 0);
|
|
59761
59456
|
if (isEmptyData) {
|
|
59762
59457
|
const EmptyDataComponent = (CustomComponents2 == null ? void 0 : CustomComponents2.EmptyData) || DefaultEmptyData;
|
|
59763
|
-
return /* @__PURE__ */
|
|
59458
|
+
return /* @__PURE__ */ jsx(EmptyDataComponent, { viewType: activeNode.type, cardType: activeNode.cardType });
|
|
59764
59459
|
}
|
|
59765
59460
|
switch (activeNode.type) {
|
|
59766
59461
|
case "table":
|
|
59767
|
-
return /* @__PURE__ */
|
|
59462
|
+
return /* @__PURE__ */ jsx(
|
|
59768
59463
|
DynamicTable,
|
|
59769
59464
|
{
|
|
59770
59465
|
columns: activeNode.columns || [],
|
|
@@ -59787,7 +59482,7 @@ const ContentRenderer = ({
|
|
|
59787
59482
|
}
|
|
59788
59483
|
);
|
|
59789
59484
|
case "form":
|
|
59790
|
-
return /* @__PURE__ */
|
|
59485
|
+
return /* @__PURE__ */ jsx(
|
|
59791
59486
|
"div",
|
|
59792
59487
|
{
|
|
59793
59488
|
style: {
|
|
@@ -59797,7 +59492,7 @@ const ContentRenderer = ({
|
|
|
59797
59492
|
justifyContent: "center",
|
|
59798
59493
|
alignItems: "center"
|
|
59799
59494
|
},
|
|
59800
|
-
children: /* @__PURE__ */
|
|
59495
|
+
children: /* @__PURE__ */ jsx(
|
|
59801
59496
|
DynamicForm$1,
|
|
59802
59497
|
{
|
|
59803
59498
|
ref: (formRef) => {
|
|
@@ -59831,7 +59526,7 @@ const ContentRenderer = ({
|
|
|
59831
59526
|
case "card": {
|
|
59832
59527
|
const cardType = activeNode.cardType || "default";
|
|
59833
59528
|
const allowMultiSelect = !!activeNode.allowMultiSelect;
|
|
59834
|
-
return /* @__PURE__ */
|
|
59529
|
+
return /* @__PURE__ */ jsx(
|
|
59835
59530
|
DynamicCards,
|
|
59836
59531
|
{
|
|
59837
59532
|
cards: innerData,
|
|
@@ -59889,11 +59584,11 @@ const ContentRenderer = ({
|
|
|
59889
59584
|
);
|
|
59890
59585
|
}
|
|
59891
59586
|
case "markdown":
|
|
59892
|
-
return /* @__PURE__ */
|
|
59587
|
+
return /* @__PURE__ */ jsx("div", { className: "p-4 prose max-w-none", children: /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: ((_e2 = innerData == null ? void 0 : innerData[0]) == null ? void 0 : _e2.content) || "" } }) });
|
|
59893
59588
|
// case 'customized':
|
|
59894
59589
|
// return innerData?.[0]?.component || null;
|
|
59895
59590
|
default:
|
|
59896
|
-
return /* @__PURE__ */
|
|
59591
|
+
return /* @__PURE__ */ jsx("div", { className: "text-gray-400 p-4", children: "\u672A\u77E5\u7C7B\u578B" });
|
|
59897
59592
|
}
|
|
59898
59593
|
};
|
|
59899
59594
|
d__default.memo(ContentRenderer);
|
|
@@ -59903,7 +59598,7 @@ const TabsRenderer = ({ views, activeId, onSelect, theme: theme2 }) => {
|
|
|
59903
59598
|
if (node2.children) {
|
|
59904
59599
|
const childrenArray = Array.isArray(node2.children) ? node2.children : Object.values(node2.children);
|
|
59905
59600
|
if (childrenArray.length > 0) {
|
|
59906
|
-
return /* @__PURE__ */
|
|
59601
|
+
return /* @__PURE__ */ jsx(
|
|
59907
59602
|
Dropdown,
|
|
59908
59603
|
{
|
|
59909
59604
|
menu: {
|
|
@@ -59927,7 +59622,7 @@ const TabsRenderer = ({ views, activeId, onSelect, theme: theme2 }) => {
|
|
|
59927
59622
|
}
|
|
59928
59623
|
return {
|
|
59929
59624
|
key: gchild.id,
|
|
59930
|
-
label: /* @__PURE__ */
|
|
59625
|
+
label: /* @__PURE__ */ jsx("span", { onClick: () => onSelect(gchild), children: gchild.label })
|
|
59931
59626
|
};
|
|
59932
59627
|
})
|
|
59933
59628
|
};
|
|
@@ -59935,12 +59630,12 @@ const TabsRenderer = ({ views, activeId, onSelect, theme: theme2 }) => {
|
|
|
59935
59630
|
}
|
|
59936
59631
|
return {
|
|
59937
59632
|
key: child.id,
|
|
59938
|
-
label: /* @__PURE__ */
|
|
59633
|
+
label: /* @__PURE__ */ jsx("span", { onClick: () => onSelect(child), children: child.label })
|
|
59939
59634
|
};
|
|
59940
59635
|
})
|
|
59941
59636
|
},
|
|
59942
59637
|
trigger: ["hover"],
|
|
59943
|
-
children: /* @__PURE__ */
|
|
59638
|
+
children: /* @__PURE__ */ jsx(
|
|
59944
59639
|
"span",
|
|
59945
59640
|
{
|
|
59946
59641
|
className: "px-2 cursor-pointer select-none",
|
|
@@ -59962,7 +59657,7 @@ const TabsRenderer = ({ views, activeId, onSelect, theme: theme2 }) => {
|
|
|
59962
59657
|
}
|
|
59963
59658
|
}
|
|
59964
59659
|
const isActive2 = activeId === node2.id;
|
|
59965
|
-
return /* @__PURE__ */
|
|
59660
|
+
return /* @__PURE__ */ jsxs(
|
|
59966
59661
|
"span",
|
|
59967
59662
|
{
|
|
59968
59663
|
className: `tab-item py-1 mx-1 cursor-pointer transition select-none${isActive2 ? " active" : ""}`,
|
|
@@ -59979,7 +59674,7 @@ const TabsRenderer = ({ views, activeId, onSelect, theme: theme2 }) => {
|
|
|
59979
59674
|
onClick: () => onSelect(node2),
|
|
59980
59675
|
children: [
|
|
59981
59676
|
node2.label,
|
|
59982
|
-
/* @__PURE__ */
|
|
59677
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
59983
59678
|
.tab-item {
|
|
59984
59679
|
color: ${theme2 == null ? void 0 : theme2.colors.disabled};
|
|
59985
59680
|
transition: color 0.2s;
|
|
@@ -60012,7 +59707,7 @@ const TabsRenderer = ({ views, activeId, onSelect, theme: theme2 }) => {
|
|
|
60012
59707
|
);
|
|
60013
59708
|
});
|
|
60014
59709
|
};
|
|
60015
|
-
return /* @__PURE__ */
|
|
59710
|
+
return /* @__PURE__ */ jsx(Fragment, { children: renderTabs(views) });
|
|
60016
59711
|
};
|
|
60017
59712
|
const NavItem = dt.div`
|
|
60018
59713
|
display: flex;
|
|
@@ -60152,7 +59847,7 @@ const TreeComponent = d__default.memo(
|
|
|
60152
59847
|
() => treeData.map((n2) => n2.key)
|
|
60153
59848
|
);
|
|
60154
59849
|
const isNavStyle = modelStyle === TreeModelStyle.NAV;
|
|
60155
|
-
return /* @__PURE__ */
|
|
59850
|
+
return /* @__PURE__ */ jsxs(
|
|
60156
59851
|
"div",
|
|
60157
59852
|
{
|
|
60158
59853
|
className: `${isNavStyle ? "w-[260px]" : "w-[280px]"} border-r`,
|
|
@@ -60164,7 +59859,7 @@ const TreeComponent = d__default.memo(
|
|
|
60164
59859
|
position: "relative"
|
|
60165
59860
|
},
|
|
60166
59861
|
children: [
|
|
60167
|
-
isNavStyle && /* @__PURE__ */
|
|
59862
|
+
isNavStyle && /* @__PURE__ */ jsx(
|
|
60168
59863
|
"div",
|
|
60169
59864
|
{
|
|
60170
59865
|
className: "px-4 py-3 border-b",
|
|
@@ -60174,16 +59869,16 @@ const TreeComponent = d__default.memo(
|
|
|
60174
59869
|
color: (theme2 == null ? void 0 : theme2.colors.navHeaderText) || "#fff",
|
|
60175
59870
|
minHeight: "60px"
|
|
60176
59871
|
},
|
|
60177
|
-
children: /* @__PURE__ */
|
|
60178
|
-
/* @__PURE__ */
|
|
60179
|
-
/* @__PURE__ */
|
|
60180
|
-
/* @__PURE__ */
|
|
60181
|
-
/* @__PURE__ */
|
|
59872
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-3", children: [
|
|
59873
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold tracking-wide uppercase", children: label || "Navigation" }),
|
|
59874
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
59875
|
+
/* @__PURE__ */ jsx("div", { className: "w-2 h-2 rounded-full bg-green-400 animate-pulse" }),
|
|
59876
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs opacity-75", children: "Active" })
|
|
60182
59877
|
] })
|
|
60183
59878
|
] })
|
|
60184
59879
|
}
|
|
60185
59880
|
),
|
|
60186
|
-
/* @__PURE__ */
|
|
59881
|
+
/* @__PURE__ */ jsx(
|
|
60187
59882
|
"div",
|
|
60188
59883
|
{
|
|
60189
59884
|
className: `${isNavStyle ? "px-2 py-2 nav-tree-container" : "px-0"}`,
|
|
@@ -60191,7 +59886,7 @@ const TreeComponent = d__default.memo(
|
|
|
60191
59886
|
height: isNavStyle ? "calc(100% - 60px)" : "100%",
|
|
60192
59887
|
overflowY: "auto"
|
|
60193
59888
|
},
|
|
60194
|
-
children: /* @__PURE__ */
|
|
59889
|
+
children: /* @__PURE__ */ jsx(
|
|
60195
59890
|
Tree,
|
|
60196
59891
|
{
|
|
60197
59892
|
treeData,
|
|
@@ -60232,7 +59927,7 @@ const TreeComponent = d__default.memo(
|
|
|
60232
59927
|
const hasChildren = nodeData.children && nodeData.children.length > 0;
|
|
60233
59928
|
const isExpanded = expandedKeys.includes(nodeData.key);
|
|
60234
59929
|
const level = getNodeLevel(views, nodeData.key);
|
|
60235
|
-
return /* @__PURE__ */
|
|
59930
|
+
return /* @__PURE__ */ jsxs(
|
|
60236
59931
|
NavItem,
|
|
60237
59932
|
{
|
|
60238
59933
|
$isActive: isActive2,
|
|
@@ -60240,8 +59935,8 @@ const TreeComponent = d__default.memo(
|
|
|
60240
59935
|
$hasChildren: hasChildren,
|
|
60241
59936
|
theme: theme2,
|
|
60242
59937
|
children: [
|
|
60243
|
-
isActive2 && /* @__PURE__ */
|
|
60244
|
-
/* @__PURE__ */
|
|
59938
|
+
isActive2 && /* @__PURE__ */ jsx(ActiveIndicator, { theme: theme2 }),
|
|
59939
|
+
/* @__PURE__ */ jsx(
|
|
60245
59940
|
ExpandIconContainer,
|
|
60246
59941
|
{
|
|
60247
59942
|
$hasChildren: hasChildren,
|
|
@@ -60256,7 +59951,7 @@ const TreeComponent = d__default.memo(
|
|
|
60256
59951
|
setExpandedKeys(newExpanded);
|
|
60257
59952
|
}
|
|
60258
59953
|
},
|
|
60259
|
-
children: hasChildren && /* @__PURE__ */
|
|
59954
|
+
children: hasChildren && /* @__PURE__ */ jsx(
|
|
60260
59955
|
ChevronRight,
|
|
60261
59956
|
{
|
|
60262
59957
|
className: `w-3 h-3 transition-transform duration-200 ${isExpanded ? "rotate-90" : ""}`
|
|
@@ -60264,9 +59959,9 @@ const TreeComponent = d__default.memo(
|
|
|
60264
59959
|
)
|
|
60265
59960
|
}
|
|
60266
59961
|
),
|
|
60267
|
-
nodeData.icon && /* @__PURE__ */
|
|
60268
|
-
/* @__PURE__ */
|
|
60269
|
-
hasChildren && /* @__PURE__ */
|
|
59962
|
+
nodeData.icon && /* @__PURE__ */ jsx(UserIconContainer, { children: nodeData.icon }),
|
|
59963
|
+
/* @__PURE__ */ jsx(TitleText, { $maxLines: 2, children: nodeData.title }),
|
|
59964
|
+
hasChildren && /* @__PURE__ */ jsx(CountBadge, { $isActive: isActive2, theme: theme2, children: nodeData.children.length })
|
|
60270
59965
|
]
|
|
60271
59966
|
}
|
|
60272
59967
|
);
|
|
@@ -60640,7 +60335,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60640
60335
|
const renderToolbar = useCallback(
|
|
60641
60336
|
(node2) => {
|
|
60642
60337
|
if (!(node2 == null ? void 0 : node2.toolbar) || node2.toolbar.length === 0) return null;
|
|
60643
|
-
return /* @__PURE__ */
|
|
60338
|
+
return /* @__PURE__ */ jsx(
|
|
60644
60339
|
"div",
|
|
60645
60340
|
{
|
|
60646
60341
|
style: {
|
|
@@ -60653,7 +60348,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60653
60348
|
zIndex: 2,
|
|
60654
60349
|
padding: "0 16px"
|
|
60655
60350
|
},
|
|
60656
|
-
children: /* @__PURE__ */
|
|
60351
|
+
children: /* @__PURE__ */ jsx(
|
|
60657
60352
|
ToolbarRenderer,
|
|
60658
60353
|
{
|
|
60659
60354
|
activeNode: node2,
|
|
@@ -60675,7 +60370,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60675
60370
|
return dataSource;
|
|
60676
60371
|
}
|
|
60677
60372
|
}
|
|
60678
|
-
return /* @__PURE__ */
|
|
60373
|
+
return /* @__PURE__ */ jsx(
|
|
60679
60374
|
ContentRenderer,
|
|
60680
60375
|
{
|
|
60681
60376
|
activeNode: node2,
|
|
@@ -60738,26 +60433,26 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60738
60433
|
const statusValue = status[statusType];
|
|
60739
60434
|
if (statusValue === "loading") {
|
|
60740
60435
|
const LoadingComponent = (CustomComponents == null ? void 0 : CustomComponents[`${statusType === "container" ? "Container" : "Content"}Loading`]) || (statusType === "container" ? DefaultContainerLoading : DefaultContentLoading);
|
|
60741
|
-
return /* @__PURE__ */
|
|
60436
|
+
return /* @__PURE__ */ jsx(LoadingComponent, {});
|
|
60742
60437
|
}
|
|
60743
60438
|
if (statusValue === "error") {
|
|
60744
60439
|
const ErrorComponent = (CustomComponents == null ? void 0 : CustomComponents[`${statusType === "container" ? "Container" : "Content"}Error`]) || (statusType === "container" ? DefaultContainerError : DefaultContentError);
|
|
60745
|
-
return /* @__PURE__ */
|
|
60440
|
+
return /* @__PURE__ */ jsx(ErrorComponent, {});
|
|
60746
60441
|
}
|
|
60747
60442
|
return null;
|
|
60748
60443
|
},
|
|
60749
60444
|
[status, CustomComponents]
|
|
60750
60445
|
);
|
|
60751
60446
|
if (status.app === "initializing") {
|
|
60752
|
-
return (CustomComponents == null ? void 0 : CustomComponents.AppLoading) ? /* @__PURE__ */
|
|
60447
|
+
return (CustomComponents == null ? void 0 : CustomComponents.AppLoading) ? /* @__PURE__ */ jsx(CustomComponents.AppLoading, {}) : /* @__PURE__ */ jsx(DefaultAppLoading, {});
|
|
60753
60448
|
}
|
|
60754
60449
|
if (status.app === "error") {
|
|
60755
|
-
return (CustomComponents == null ? void 0 : CustomComponents.AppError) ? /* @__PURE__ */
|
|
60450
|
+
return (CustomComponents == null ? void 0 : CustomComponents.AppError) ? /* @__PURE__ */ jsx(CustomComponents.AppError, {}) : /* @__PURE__ */ jsx(DefaultAppError, {});
|
|
60756
60451
|
}
|
|
60757
60452
|
if (model === null) {
|
|
60758
60453
|
const node2 = getActiveNode(activeId);
|
|
60759
60454
|
const hasToolbar = (node2 == null ? void 0 : node2.toolbar) && node2.toolbar.length > 0;
|
|
60760
|
-
return /* @__PURE__ */
|
|
60455
|
+
return /* @__PURE__ */ jsxs(
|
|
60761
60456
|
"div",
|
|
60762
60457
|
{
|
|
60763
60458
|
className: "w-full h-full flex flex-col",
|
|
@@ -60768,7 +60463,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60768
60463
|
...rest,
|
|
60769
60464
|
children: [
|
|
60770
60465
|
renderToolbar(node2),
|
|
60771
|
-
/* @__PURE__ */
|
|
60466
|
+
/* @__PURE__ */ jsx(
|
|
60772
60467
|
"div",
|
|
60773
60468
|
{
|
|
60774
60469
|
className: "flex-1 overflow-auto pt-3",
|
|
@@ -60805,14 +60500,14 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60805
60500
|
}
|
|
60806
60501
|
return width;
|
|
60807
60502
|
};
|
|
60808
|
-
return /* @__PURE__ */
|
|
60503
|
+
return /* @__PURE__ */ jsxs(
|
|
60809
60504
|
"div",
|
|
60810
60505
|
{
|
|
60811
60506
|
className: "flex w-full h-full relative",
|
|
60812
60507
|
style: { background: theme2 == null ? void 0 : theme2.colors.appBackground, color: theme2 == null ? void 0 : theme2.colors.text },
|
|
60813
60508
|
...rest,
|
|
60814
60509
|
children: [
|
|
60815
|
-
/* @__PURE__ */
|
|
60510
|
+
/* @__PURE__ */ jsx(
|
|
60816
60511
|
TreeComponent,
|
|
60817
60512
|
{
|
|
60818
60513
|
views,
|
|
@@ -60824,7 +60519,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60824
60519
|
activableParentNode: rest == null ? void 0 : rest.activable_parentNode
|
|
60825
60520
|
}
|
|
60826
60521
|
),
|
|
60827
|
-
/* @__PURE__ */
|
|
60522
|
+
/* @__PURE__ */ jsxs(
|
|
60828
60523
|
"div",
|
|
60829
60524
|
{
|
|
60830
60525
|
className: `flex-1 tree-content-area tree-content-${modelStyle || "nav"}`,
|
|
@@ -60843,7 +60538,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60843
60538
|
},
|
|
60844
60539
|
children: [
|
|
60845
60540
|
renderToolbar(node2),
|
|
60846
|
-
/* @__PURE__ */
|
|
60541
|
+
/* @__PURE__ */ jsx("div", { style: { height: `calc(100% - ${hasToolbar ? TOOLBAR_HEIGHT : 0}px)` }, children: renderStatusComponent("container") || renderStatusComponent("content") || renderContent(node2) })
|
|
60847
60542
|
]
|
|
60848
60543
|
}
|
|
60849
60544
|
)
|
|
@@ -60854,14 +60549,14 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60854
60549
|
if (model === "tabs") {
|
|
60855
60550
|
const node2 = findNodeById(views, activeId);
|
|
60856
60551
|
const hasToolbar = (node2 == null ? void 0 : node2.toolbar) && node2.toolbar.length > 0;
|
|
60857
|
-
return /* @__PURE__ */
|
|
60552
|
+
return /* @__PURE__ */ jsxs(
|
|
60858
60553
|
"div",
|
|
60859
60554
|
{
|
|
60860
60555
|
className: `w-full h-full flex flex-col ${(styles == null ? void 0 : styles.root) || ""}`,
|
|
60861
60556
|
style: { background: "transparent", color: theme2 == null ? void 0 : theme2.colors.text },
|
|
60862
60557
|
...rest,
|
|
60863
60558
|
children: [
|
|
60864
|
-
/* @__PURE__ */
|
|
60559
|
+
/* @__PURE__ */ jsxs(
|
|
60865
60560
|
"div",
|
|
60866
60561
|
{
|
|
60867
60562
|
className: "px-3 flex items-end border-b border-b-gray-100 gap-x-3",
|
|
@@ -60872,7 +60567,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60872
60567
|
paddingBottom: 2
|
|
60873
60568
|
},
|
|
60874
60569
|
children: [
|
|
60875
|
-
label && /* @__PURE__ */
|
|
60570
|
+
label && /* @__PURE__ */ jsx(
|
|
60876
60571
|
"span",
|
|
60877
60572
|
{
|
|
60878
60573
|
className: "font-bold mr-4",
|
|
@@ -60880,11 +60575,11 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60880
60575
|
children: label
|
|
60881
60576
|
}
|
|
60882
60577
|
),
|
|
60883
|
-
/* @__PURE__ */
|
|
60578
|
+
/* @__PURE__ */ jsx(TabsRenderer, { views, activeId, onSelect: handleSelect, theme: theme2 })
|
|
60884
60579
|
]
|
|
60885
60580
|
}
|
|
60886
60581
|
),
|
|
60887
|
-
/* @__PURE__ */
|
|
60582
|
+
/* @__PURE__ */ jsxs(
|
|
60888
60583
|
"div",
|
|
60889
60584
|
{
|
|
60890
60585
|
className: "flex-1 overflow-auto relative p-2 pt-0",
|
|
@@ -60895,7 +60590,7 @@ const DynamicDashDataCore = d__default.forwardRef(
|
|
|
60895
60590
|
},
|
|
60896
60591
|
children: [
|
|
60897
60592
|
renderToolbar(node2),
|
|
60898
|
-
/* @__PURE__ */
|
|
60593
|
+
/* @__PURE__ */ jsx(
|
|
60899
60594
|
"div",
|
|
60900
60595
|
{
|
|
60901
60596
|
style: {
|
|
@@ -63584,11 +63279,11 @@ const UploadDrawer = ({
|
|
|
63584
63279
|
databaseId: dbId,
|
|
63585
63280
|
...tableInfo && { tableId: tableInfo.tableId }
|
|
63586
63281
|
},
|
|
63587
|
-
placeholder: /* @__PURE__ */
|
|
63588
|
-
/* @__PURE__ */
|
|
63589
|
-
/* @__PURE__ */
|
|
63590
|
-
/* @__PURE__ */
|
|
63591
|
-
/* @__PURE__ */
|
|
63282
|
+
placeholder: /* @__PURE__ */ jsxs("div", { children: [
|
|
63283
|
+
/* @__PURE__ */ jsx("div", { className: "text-lg font-bold", children: "\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u5904\u4E0A\u4F20" }),
|
|
63284
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.8 mt-[12px]", children: [
|
|
63285
|
+
/* @__PURE__ */ jsx("div", { className: "text-[#888888] font-[12px]", children: "\u6570\u91CF\uFF1A\u226420 \u6587\u4EF6\uFF08\u5F53\u524D 0/20\uFF09" }),
|
|
63286
|
+
/* @__PURE__ */ jsx(
|
|
63592
63287
|
"div",
|
|
63593
63288
|
{
|
|
63594
63289
|
className: "text-[#888888] font-[12px]",
|
|
@@ -63598,29 +63293,29 @@ const UploadDrawer = ({
|
|
|
63598
63293
|
children: "\u683C\u5F0F\uFF1A.xlsx / .xls / .csv /\uFF08\u7B2C\u4E00\u884C\u662F\u8868\u5934\uFF0C\u5176\u4ED6\u884C\u662F\u6570\u636E\uFF1BCSV \u652F\u6301 UTF-8/GBK/GB2312\u2026\uFF09"
|
|
63599
63294
|
}
|
|
63600
63295
|
),
|
|
63601
|
-
/* @__PURE__ */
|
|
63602
|
-
/* @__PURE__ */
|
|
63296
|
+
/* @__PURE__ */ jsx("div", { className: "text-[#888888] font-[12px]", children: "\u5355\u6587\u4EF6\u9650\u5236\uFF1A \u226410\u4E07\u884C\uFF0C\u226460\u5217\uFF08\u8D85\u51FA\u81EA\u52A8\u5FFD\u7565\uFF09\uFF1B \u6BCF\u6587\u4EF6 \u22641\u4E2ASheet" }),
|
|
63297
|
+
/* @__PURE__ */ jsx("div", { className: "text-[#888888] font-[12px]", children: "\u4E0A\u4F20\u7684\u6587\u4EF6\uFF0C\u5982\u679C\u6709\u4E0D\u7B26\u5408\u6587\u672C\u683C\u5F0F\u7684\u6570\u636E\u7CFB\u7EDF\u81EA\u52A8\u5FFD\u7565" })
|
|
63603
63298
|
] })
|
|
63604
63299
|
] }),
|
|
63605
63300
|
listName: tableInfo ? "\u8FFD\u52A0\u6587\u4EF6" : "\u4E0A\u4F20\u6587\u4EF6\u5217\u8868",
|
|
63606
63301
|
icons: {
|
|
63607
63302
|
// 文件类型图标配置
|
|
63608
|
-
dragUpload: /* @__PURE__ */
|
|
63303
|
+
dragUpload: /* @__PURE__ */ jsx("img", { src: UploadIcon, width: 40 }),
|
|
63609
63304
|
itemStatus: {
|
|
63610
|
-
pending: /* @__PURE__ */
|
|
63611
|
-
uploading: /* @__PURE__ */
|
|
63612
|
-
success: /* @__PURE__ */
|
|
63613
|
-
error: /* @__PURE__ */
|
|
63305
|
+
pending: /* @__PURE__ */ jsx("span", { style: { fontSize: "12px", color: "#6b7280" } }),
|
|
63306
|
+
uploading: /* @__PURE__ */ jsx("span", { style: { fontSize: "12px", color: "#007bff" } }),
|
|
63307
|
+
success: /* @__PURE__ */ jsx("span", { style: { fontSize: "12px", color: "#10b981" } }),
|
|
63308
|
+
error: /* @__PURE__ */ jsx("span", { style: { fontSize: "12px", color: "#ef4444" }, children: "\u5931\u8D25" })
|
|
63614
63309
|
},
|
|
63615
63310
|
fileType: {
|
|
63616
|
-
default: /* @__PURE__ */
|
|
63311
|
+
default: /* @__PURE__ */ jsx(File, { size: 20, style: { color: "#6b7280" } })
|
|
63617
63312
|
}
|
|
63618
63313
|
},
|
|
63619
63314
|
...!tableInfo && {
|
|
63620
63315
|
buttons: [
|
|
63621
63316
|
{
|
|
63622
63317
|
label: "\u4F7F\u7528\u6A21\u7248",
|
|
63623
|
-
icon: /* @__PURE__ */
|
|
63318
|
+
icon: /* @__PURE__ */ jsx("img", { src: UseTempIcon }),
|
|
63624
63319
|
mode: "text",
|
|
63625
63320
|
onClick: () => {
|
|
63626
63321
|
setIsUseTemplate(true);
|
|
@@ -63846,7 +63541,7 @@ const UploadDrawer = ({
|
|
|
63846
63541
|
setIsUseTemplate(false);
|
|
63847
63542
|
}
|
|
63848
63543
|
}, [getDataFunction]);
|
|
63849
|
-
return /* @__PURE__ */
|
|
63544
|
+
return /* @__PURE__ */ jsxs(
|
|
63850
63545
|
Drawer2,
|
|
63851
63546
|
{
|
|
63852
63547
|
title: drawerTitle,
|
|
@@ -63854,19 +63549,19 @@ const UploadDrawer = ({
|
|
|
63854
63549
|
placement: "right",
|
|
63855
63550
|
width: 720,
|
|
63856
63551
|
closeIcon: false,
|
|
63857
|
-
extra: /* @__PURE__ */
|
|
63552
|
+
extra: /* @__PURE__ */ jsx(X$1, { size: 20, color: "#888888", onClick: () => handleCancel(), className: "cursor-pointer" }),
|
|
63858
63553
|
open: drawerVisible,
|
|
63859
63554
|
destroyOnHidden: true,
|
|
63860
|
-
footer: /* @__PURE__ */
|
|
63861
|
-
!tableInfo && /* @__PURE__ */
|
|
63862
|
-
/* @__PURE__ */
|
|
63555
|
+
footer: /* @__PURE__ */ jsxs("div", { className: `flex ${tableInfo ? "justify-end" : "justify-between"} items-center`, children: [
|
|
63556
|
+
!tableInfo && /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
63557
|
+
/* @__PURE__ */ jsx("span", { children: "\u81EA\u52A8\u751F\u6210\u6570\u636E\u8868\u63CF\u8FF0" }),
|
|
63863
63558
|
" ",
|
|
63864
|
-
/* @__PURE__ */
|
|
63865
|
-
/* @__PURE__ */
|
|
63559
|
+
/* @__PURE__ */ jsx(Tooltip2, { title: "\u81EA\u52A8\u751F\u6210\u5F00\u542F\u65F6\u5C06\u57FA\u4E8E\u6570\u636E\u667A\u80FD\u751F\u6210\u63CF\u8FF0\uFF1B\u82E5\u5F00\u542F\u6B64\u529F\u80FD\u5E76\u624B\u52A8\u586B\u5199\u63CF\u8FF0\uFF0C\u5C06\u4F18\u5148\u91C7\u7528\u7528\u6237\u586B\u5199\u7684\u5185\u5BB9\u3002", children: /* @__PURE__ */ jsx(CircleQuestionMark, { size: 14 }) }),
|
|
63560
|
+
/* @__PURE__ */ jsx(Switch, { onChange })
|
|
63866
63561
|
] }),
|
|
63867
|
-
/* @__PURE__ */
|
|
63868
|
-
/* @__PURE__ */
|
|
63869
|
-
/* @__PURE__ */
|
|
63562
|
+
/* @__PURE__ */ jsxs("div", { className: "flex self-end gap-3", children: [
|
|
63563
|
+
/* @__PURE__ */ jsx(POr, { mode: "default", label: "\u53D6\u6D88", onClick: handleCancel }),
|
|
63564
|
+
/* @__PURE__ */ jsx(
|
|
63870
63565
|
POr,
|
|
63871
63566
|
{
|
|
63872
63567
|
mode: "primary",
|
|
@@ -63881,20 +63576,20 @@ const UploadDrawer = ({
|
|
|
63881
63576
|
] })
|
|
63882
63577
|
] }),
|
|
63883
63578
|
children: [
|
|
63884
|
-
/* @__PURE__ */
|
|
63885
|
-
/* @__PURE__ */
|
|
63579
|
+
/* @__PURE__ */ jsx(DynamicDashDataCore, { ...viewConfig }, "upload-file"),
|
|
63580
|
+
/* @__PURE__ */ jsx(
|
|
63886
63581
|
Modal,
|
|
63887
63582
|
{
|
|
63888
|
-
title: /* @__PURE__ */
|
|
63583
|
+
title: /* @__PURE__ */ jsxs("div", { children: [
|
|
63889
63584
|
"\u6A21\u7248",
|
|
63890
|
-
/* @__PURE__ */
|
|
63585
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12px] text-[#888888] ml-[8px]", children: "\u5B8C\u6210\u7F16\u8F91\u540E\uFF0C\u53EF\u5C06\u6587\u672C\u590D\u5236\u7C98\u8D34\u5230\u76F8\u5E94\u63CF\u8FF0\u6846\u4E2D\u3002" })
|
|
63891
63586
|
] }),
|
|
63892
63587
|
width: 672,
|
|
63893
63588
|
destroyOnHidden: true,
|
|
63894
63589
|
open: isUseTemplate,
|
|
63895
63590
|
onCancel: () => setIsUseTemplate(false),
|
|
63896
|
-
footer: /* @__PURE__ */
|
|
63897
|
-
/* @__PURE__ */
|
|
63591
|
+
footer: /* @__PURE__ */ jsxs("div", { className: `flex justify-end items-center gap-3`, children: [
|
|
63592
|
+
/* @__PURE__ */ jsx(
|
|
63898
63593
|
POr,
|
|
63899
63594
|
{
|
|
63900
63595
|
mode: "default",
|
|
@@ -63905,9 +63600,9 @@ const UploadDrawer = ({
|
|
|
63905
63600
|
}
|
|
63906
63601
|
}
|
|
63907
63602
|
),
|
|
63908
|
-
/* @__PURE__ */
|
|
63603
|
+
/* @__PURE__ */ jsx(POr, { mode: "primary", label: "\u590D\u5236", onClick: handleCopy })
|
|
63909
63604
|
] }),
|
|
63910
|
-
children: /* @__PURE__ */
|
|
63605
|
+
children: /* @__PURE__ */ jsx(
|
|
63911
63606
|
qHd,
|
|
63912
63607
|
{
|
|
63913
63608
|
data,
|
|
@@ -64053,7 +63748,7 @@ const EditConfig = ({
|
|
|
64053
63748
|
const result = getDataFunction("pure_string");
|
|
64054
63749
|
eventsEmit("table_info:update", result);
|
|
64055
63750
|
}, [getDataFunction, eventsEmit]);
|
|
64056
|
-
return /* @__PURE__ */
|
|
63751
|
+
return /* @__PURE__ */ jsxs(
|
|
64057
63752
|
Drawer2,
|
|
64058
63753
|
{
|
|
64059
63754
|
title: drawerTitle,
|
|
@@ -64061,12 +63756,12 @@ const EditConfig = ({
|
|
|
64061
63756
|
width: 720,
|
|
64062
63757
|
onClose: handleDrawerClose,
|
|
64063
63758
|
closeIcon: false,
|
|
64064
|
-
extra: /* @__PURE__ */
|
|
63759
|
+
extra: /* @__PURE__ */ jsx(X$1, { size: 20, color: "#888888", onClick: handleDrawerClose, className: "cursor-pointer" }),
|
|
64065
63760
|
open: drawerVisible,
|
|
64066
63761
|
destroyOnHidden: true,
|
|
64067
|
-
footer: /* @__PURE__ */
|
|
64068
|
-
/* @__PURE__ */
|
|
64069
|
-
/* @__PURE__ */
|
|
63762
|
+
footer: /* @__PURE__ */ jsx("div", { className: `flex justify-end items-center`, children: /* @__PURE__ */ jsxs("div", { className: "flex self-end gap-3", children: [
|
|
63763
|
+
/* @__PURE__ */ jsx(POr, { mode: "default", label: "\u53D6\u6D88", onClick: handleDrawerClose }),
|
|
63764
|
+
/* @__PURE__ */ jsx(
|
|
64070
63765
|
POr,
|
|
64071
63766
|
{
|
|
64072
63767
|
mode: "primary",
|
|
@@ -64077,9 +63772,9 @@ const EditConfig = ({
|
|
|
64077
63772
|
)
|
|
64078
63773
|
] }) }),
|
|
64079
63774
|
children: [
|
|
64080
|
-
/* @__PURE__ */
|
|
64081
|
-
/* @__PURE__ */
|
|
64082
|
-
/* @__PURE__ */
|
|
63775
|
+
/* @__PURE__ */ jsx("div", { className: "mb-[10px] font-bold", children: tbTitle }),
|
|
63776
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-[10px]", children: [
|
|
63777
|
+
/* @__PURE__ */ jsx(
|
|
64083
63778
|
"span",
|
|
64084
63779
|
{
|
|
64085
63780
|
style: {
|
|
@@ -64089,10 +63784,10 @@ const EditConfig = ({
|
|
|
64089
63784
|
children: "*"
|
|
64090
63785
|
}
|
|
64091
63786
|
),
|
|
64092
|
-
/* @__PURE__ */
|
|
64093
|
-
/* @__PURE__ */
|
|
63787
|
+
/* @__PURE__ */ jsx("span", { children: "\u6570\u636E\u8868\u63CF\u8FF0" }),
|
|
63788
|
+
/* @__PURE__ */ jsx("span", { className: "text-[#888888] ml-[4px]", children: "(\u8BF7\u51C6\u786E\u586B\u5199\u8868\u683C\u7684\u5E94\u7528\u573A\u666F\u63CF\u8FF0\uFF0C\u5927\u6A21\u578B\u5C06\u4F9D\u8D56\u6B64\u4FE1\u606F\u8BC6\u522B\u5E76\u6B63\u786E\u8C03\u7528\u8BE5\u6570\u636E\u8868\u3002)" })
|
|
64094
63789
|
] }),
|
|
64095
|
-
/* @__PURE__ */
|
|
63790
|
+
/* @__PURE__ */ jsx(
|
|
64096
63791
|
qHd,
|
|
64097
63792
|
{
|
|
64098
63793
|
data,
|
|
@@ -64164,13 +63859,13 @@ const EditConfig = ({
|
|
|
64164
63859
|
},
|
|
64165
63860
|
version2
|
|
64166
63861
|
),
|
|
64167
|
-
/* @__PURE__ */
|
|
64168
|
-
/* @__PURE__ */
|
|
63862
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
63863
|
+
/* @__PURE__ */ jsx(
|
|
64169
63864
|
Popover,
|
|
64170
63865
|
{
|
|
64171
63866
|
open: showModel,
|
|
64172
63867
|
onOpenChange: (v2) => setShowModel(!!v2),
|
|
64173
|
-
content: /* @__PURE__ */
|
|
63868
|
+
content: /* @__PURE__ */ jsx(
|
|
64174
63869
|
"div",
|
|
64175
63870
|
{
|
|
64176
63871
|
style: {
|
|
@@ -64183,7 +63878,7 @@ const EditConfig = ({
|
|
|
64183
63878
|
children: "______\u8868\u683C\u4E3B\u8981\u5C55\u793A\u4E86______\u573A\u666F\u7684\u6570\u636E\uFF0C\u5305\u542B______\u3001______\u3001______\u7B49\u4E3B\u8981\u5B57\u6BB5\uFF0C\u652F\u6301\u7528\u6237\u67E5\u8BE2______\u95EE\u9898(\u5927\u6982\u4ECB\u7ECD)\u5982\u679C\u6D89\u53CA\u591A\u8868\u5173\u8054\u67E5\u8BE2\uFF0C\u6700\u597D\u8BF4\u660E\u6B64\u8868\u683C\u901A\u8FC7______\u5B57\u6BB5\u53EF\u4EE5\u5173\u8054\u53E6\u4E00\u4E2A______\u8868\u683C\u3002"
|
|
64184
63879
|
}
|
|
64185
63880
|
),
|
|
64186
|
-
title: /* @__PURE__ */
|
|
63881
|
+
title: /* @__PURE__ */ jsxs(
|
|
64187
63882
|
"div",
|
|
64188
63883
|
{
|
|
64189
63884
|
className: "flex justify-between items-center",
|
|
@@ -64191,8 +63886,8 @@ const EditConfig = ({
|
|
|
64191
63886
|
margin: "10px"
|
|
64192
63887
|
},
|
|
64193
63888
|
children: [
|
|
64194
|
-
/* @__PURE__ */
|
|
64195
|
-
/* @__PURE__ */
|
|
63889
|
+
/* @__PURE__ */ jsx("div", { className: "text-[16px]", children: "\u6A21\u7248" }),
|
|
63890
|
+
/* @__PURE__ */ jsx(
|
|
64196
63891
|
X$1,
|
|
64197
63892
|
{
|
|
64198
63893
|
size: 20,
|
|
@@ -64208,15 +63903,15 @@ const EditConfig = ({
|
|
|
64208
63903
|
destroyOnHidden: true,
|
|
64209
63904
|
placement: "bottomRight",
|
|
64210
63905
|
getPopupContainer: (triggerNode) => triggerNode,
|
|
64211
|
-
children: /* @__PURE__ */
|
|
63906
|
+
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(POr, { mode: "text", icon: /* @__PURE__ */ jsx("img", { src: TemIcon }), children: "\u4F7F\u7528\u6A21\u7248" }) })
|
|
64212
63907
|
}
|
|
64213
63908
|
),
|
|
64214
|
-
/* @__PURE__ */
|
|
63909
|
+
/* @__PURE__ */ jsx(
|
|
64215
63910
|
POr,
|
|
64216
63911
|
{
|
|
64217
63912
|
onClick: handleOptimize,
|
|
64218
63913
|
mode: "text",
|
|
64219
|
-
icon: /* @__PURE__ */
|
|
63914
|
+
icon: /* @__PURE__ */ jsx("img", { src: AIIcon }),
|
|
64220
63915
|
loading: optimizeLoading,
|
|
64221
63916
|
children: "AI\u4F18\u5316"
|
|
64222
63917
|
}
|
|
@@ -64247,21 +63942,21 @@ const StatusComponent$1 = (props) => {
|
|
|
64247
63942
|
switch (cell.columnId) {
|
|
64248
63943
|
case "importstatus":
|
|
64249
63944
|
if (value) {
|
|
64250
|
-
return /* @__PURE__ */
|
|
63945
|
+
return /* @__PURE__ */ jsx(Tooltip2, { title: "\u6709\u8FFD\u52A0\u5931\u8D25\u7684\u6587\u4EF6\uFF0C\u8BF7\u53CA\u65F6\u5904\u7406", children: /* @__PURE__ */ jsx(Tag, { color: "red", bordered: false, children: "\u8FFD\u52A0\u5931\u8D25" }) });
|
|
64251
63946
|
}
|
|
64252
|
-
return /* @__PURE__ */
|
|
63947
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
64253
63948
|
case "status":
|
|
64254
63949
|
const color = getStatusColor$1(props.cell.statusType);
|
|
64255
63950
|
if (value == "\u5BFC\u5165\u5931\u8D25") {
|
|
64256
|
-
return /* @__PURE__ */
|
|
64257
|
-
/* @__PURE__ */
|
|
64258
|
-
/* @__PURE__ */
|
|
63951
|
+
return /* @__PURE__ */ jsx(Tooltip2, { title: cell.errorMsg, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
63952
|
+
/* @__PURE__ */ jsx(Badge, { color, text: value }),
|
|
63953
|
+
/* @__PURE__ */ jsx(TriangleAlert, { size: 14, color: "red" })
|
|
64259
63954
|
] }) });
|
|
64260
63955
|
} else {
|
|
64261
|
-
return /* @__PURE__ */
|
|
63956
|
+
return /* @__PURE__ */ jsx(Badge, { color, text: value });
|
|
64262
63957
|
}
|
|
64263
63958
|
default:
|
|
64264
|
-
return /* @__PURE__ */
|
|
63959
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
64265
63960
|
}
|
|
64266
63961
|
};
|
|
64267
63962
|
const statusArr$1 = [
|
|
@@ -64276,7 +63971,7 @@ const TableMetaDescriptionCom = (info) => {
|
|
|
64276
63971
|
var _a, _b;
|
|
64277
63972
|
const { cell, value } = info;
|
|
64278
63973
|
if (typeof value == "string") {
|
|
64279
|
-
return /* @__PURE__ */
|
|
63974
|
+
return /* @__PURE__ */ jsx(
|
|
64280
63975
|
"div",
|
|
64281
63976
|
{
|
|
64282
63977
|
title: value,
|
|
@@ -64292,7 +63987,7 @@ const TableMetaDescriptionCom = (info) => {
|
|
|
64292
63987
|
} else {
|
|
64293
63988
|
if ((_a = cell.tableMeta) == null ? void 0 : _a.isGenDescription) {
|
|
64294
63989
|
if (((_b = cell.tableMeta) == null ? void 0 : _b.generateDescriptionStatus) == "generating") {
|
|
64295
|
-
return /* @__PURE__ */
|
|
63990
|
+
return /* @__PURE__ */ jsxs(
|
|
64296
63991
|
"div",
|
|
64297
63992
|
{
|
|
64298
63993
|
className: "flex items-center gap-1 text-[#84ADFF]",
|
|
@@ -64300,8 +63995,8 @@ const TableMetaDescriptionCom = (info) => {
|
|
|
64300
63995
|
color: "#84ADFF"
|
|
64301
63996
|
},
|
|
64302
63997
|
children: [
|
|
64303
|
-
/* @__PURE__ */
|
|
64304
|
-
/* @__PURE__ */
|
|
63998
|
+
/* @__PURE__ */ jsx("span", { children: "\u751F\u6210\u4E2D" }),
|
|
63999
|
+
/* @__PURE__ */ jsx(LoaderCircle, { size: 14 })
|
|
64305
64000
|
]
|
|
64306
64001
|
}
|
|
64307
64002
|
);
|
|
@@ -64554,7 +64249,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64554
64249
|
confirm$3({
|
|
64555
64250
|
title: "\u786E\u8BA4\u5220\u9664\u6570\u636E\u5E93\uFF1F",
|
|
64556
64251
|
content: "\u8BE5\u6570\u636E\u8868\u53CA\u5176\u8FFD\u52A0\u6570\u636E\u90FD\u5C06\u88AB\u5220\u9664\u4E14\u65E0\u6CD5\u6062\u590D",
|
|
64557
|
-
icon: /* @__PURE__ */
|
|
64252
|
+
icon: /* @__PURE__ */ jsx(TriangleAlert, { color: "#FF4D4F", className: "mr-[8px]" }),
|
|
64558
64253
|
okText: "\u5220\u9664",
|
|
64559
64254
|
cancelText: "\u53D6\u6D88",
|
|
64560
64255
|
async onOk() {
|
|
@@ -64734,7 +64429,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64734
64429
|
id: "description",
|
|
64735
64430
|
title: "\u63CF\u8FF0",
|
|
64736
64431
|
type: "customized",
|
|
64737
|
-
component: /* @__PURE__ */
|
|
64432
|
+
component: /* @__PURE__ */ jsx(TableMetaDescriptionCom, {}),
|
|
64738
64433
|
helpText: "\u6253\u5F00\u81EA\u52A8\u751F\u6210\u63CF\u8FF0\u5F00\u5173\u540E\uFF0C\u82E5\u63CF\u8FF0\u672A\u6B63\u5E38\u751F\u6210\uFF0C\u5219\u63CF\u8FF0\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u5982\u60A8\u4ECD\u7136\u9700\u8981\u63CF\u8FF0\uFF0C\u5219\u9700\u8981\u624B\u52A8\u6DFB\u52A0"
|
|
64739
64434
|
},
|
|
64740
64435
|
{ id: "count", title: "\u6570\u636E\u91CF", type: "text", tip: "\u6570\u636E\u91CF" },
|
|
@@ -64742,13 +64437,13 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64742
64437
|
id: "status",
|
|
64743
64438
|
title: "\u5BFC\u5165\u72B6\u6001",
|
|
64744
64439
|
type: "customized",
|
|
64745
|
-
component: /* @__PURE__ */
|
|
64440
|
+
component: /* @__PURE__ */ jsx(StatusComponent$1, {})
|
|
64746
64441
|
},
|
|
64747
64442
|
{
|
|
64748
64443
|
id: "importstatus",
|
|
64749
64444
|
title: "\u8FFD\u52A0\u63D0\u793A",
|
|
64750
64445
|
type: "customized",
|
|
64751
|
-
component: /* @__PURE__ */
|
|
64446
|
+
component: /* @__PURE__ */ jsx(StatusComponent$1, {})
|
|
64752
64447
|
},
|
|
64753
64448
|
{ id: "createdAt", title: "\u521B\u5EFA\u65F6\u95F4", type: "date", tip: "\u521B\u5EFA\u65F6\u95F4" },
|
|
64754
64449
|
{ id: "updatedAt", title: "\u66F4\u65B0\u65F6\u95F4", type: "date", tip: "\u66F4\u65B0\u65F6\u95F4" },
|
|
@@ -64761,7 +64456,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64761
64456
|
label: "\u4E0A\u4F20\u6570\u636E\u6587\u4EF6",
|
|
64762
64457
|
btnType: "primary",
|
|
64763
64458
|
disabled: getBtnDisabled && getBtnDisabled(8, dbInfo == null ? void 0 : dbInfo.permission),
|
|
64764
|
-
icon: /* @__PURE__ */
|
|
64459
|
+
icon: /* @__PURE__ */ jsx(Upload, { size: 12 })
|
|
64765
64460
|
},
|
|
64766
64461
|
{
|
|
64767
64462
|
type: "fuzzy_search",
|
|
@@ -64794,7 +64489,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64794
64489
|
title: "\u5BFC\u5165\u72B6\u6001",
|
|
64795
64490
|
type: "customized",
|
|
64796
64491
|
tip: "\u5BFC\u5165\u72B6\u6001",
|
|
64797
|
-
component: /* @__PURE__ */
|
|
64492
|
+
component: /* @__PURE__ */ jsx(StatusComponent$1, {})
|
|
64798
64493
|
},
|
|
64799
64494
|
{ title: "\u521B\u5EFA\u65F6\u95F4", id: "createdAt", type: "date", tip: "\u521B\u5EFA\u65F6\u95F4" },
|
|
64800
64495
|
{ title: "\u66F4\u6539\u65F6\u95F4", id: "updatedAt", type: "date", tip: "\u66F4\u6539\u65F6\u95F4" },
|
|
@@ -64867,10 +64562,10 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64867
64562
|
}
|
|
64868
64563
|
}
|
|
64869
64564
|
};
|
|
64870
|
-
const EmptyData = () => /* @__PURE__ */
|
|
64871
|
-
/* @__PURE__ */
|
|
64872
|
-
/* @__PURE__ */
|
|
64873
|
-
/* @__PURE__ */
|
|
64565
|
+
const EmptyData = () => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center h-full", children: [
|
|
64566
|
+
/* @__PURE__ */ jsx("div", { className: "text-xl font-semibold mb-3", children: /* @__PURE__ */ jsx("img", { src: EmptyImg$2, width: 120 }) }),
|
|
64567
|
+
/* @__PURE__ */ jsx("div", { className: "text-base mb-2", style: { color: "#888888" }, children: "\u6682\u65E0\u6570\u636E\u6587\u4EF6" }),
|
|
64568
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ jsx(
|
|
64874
64569
|
POr,
|
|
64875
64570
|
{
|
|
64876
64571
|
mode: "primary",
|
|
@@ -64883,7 +64578,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64883
64578
|
}
|
|
64884
64579
|
) })
|
|
64885
64580
|
] });
|
|
64886
|
-
return /* @__PURE__ */
|
|
64581
|
+
return /* @__PURE__ */ jsxs(
|
|
64887
64582
|
Hod,
|
|
64888
64583
|
{
|
|
64889
64584
|
title: dbInfo == null ? void 0 : dbInfo.name,
|
|
@@ -64893,7 +64588,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64893
64588
|
(_a = props.eventsEmit) == null ? void 0 : _a.call(props, "goBack", {});
|
|
64894
64589
|
},
|
|
64895
64590
|
children: [
|
|
64896
|
-
/* @__PURE__ */
|
|
64591
|
+
/* @__PURE__ */ jsx(
|
|
64897
64592
|
DynamicDashDataCore,
|
|
64898
64593
|
{
|
|
64899
64594
|
dataSource: tableData,
|
|
@@ -64907,7 +64602,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64907
64602
|
...dbType == "DataTable" ? dataTableViewConfig : directDBViewConfig
|
|
64908
64603
|
}
|
|
64909
64604
|
),
|
|
64910
|
-
/* @__PURE__ */
|
|
64605
|
+
/* @__PURE__ */ jsx(
|
|
64911
64606
|
UploadDrawer,
|
|
64912
64607
|
{
|
|
64913
64608
|
drawerTitle,
|
|
@@ -64920,7 +64615,7 @@ const DatabaseViewAdopter$1 = (props) => {
|
|
|
64920
64615
|
tableInfo
|
|
64921
64616
|
}
|
|
64922
64617
|
),
|
|
64923
|
-
/* @__PURE__ */
|
|
64618
|
+
/* @__PURE__ */ jsx(
|
|
64924
64619
|
EditConfig,
|
|
64925
64620
|
{
|
|
64926
64621
|
drawerTitle: configDrawerTitle,
|
|
@@ -65080,7 +64775,7 @@ const EditRowDrawer = ({ drawerVisible, handleDrawerClose, rowData }) => {
|
|
|
65080
64775
|
);
|
|
65081
64776
|
setEditingId(null);
|
|
65082
64777
|
};
|
|
65083
|
-
return /* @__PURE__ */
|
|
64778
|
+
return /* @__PURE__ */ jsxs(
|
|
65084
64779
|
Drawer2,
|
|
65085
64780
|
{
|
|
65086
64781
|
title: "\u5217\u6570\u503C\u4FEE\u6539",
|
|
@@ -65089,7 +64784,7 @@ const EditRowDrawer = ({ drawerVisible, handleDrawerClose, rowData }) => {
|
|
|
65089
64784
|
onClose: () => handleDrawerClose("cancel"),
|
|
65090
64785
|
open: drawerVisible,
|
|
65091
64786
|
closeIcon: false,
|
|
65092
|
-
extra: /* @__PURE__ */
|
|
64787
|
+
extra: /* @__PURE__ */ jsx(
|
|
65093
64788
|
X$1,
|
|
65094
64789
|
{
|
|
65095
64790
|
size: 20,
|
|
@@ -65098,9 +64793,9 @@ const EditRowDrawer = ({ drawerVisible, handleDrawerClose, rowData }) => {
|
|
|
65098
64793
|
className: "cursor-pointer"
|
|
65099
64794
|
}
|
|
65100
64795
|
),
|
|
65101
|
-
footer: /* @__PURE__ */
|
|
65102
|
-
/* @__PURE__ */
|
|
65103
|
-
/* @__PURE__ */
|
|
64796
|
+
footer: /* @__PURE__ */ jsxs("div", { className: `flex justify-end items-center gap-3`, children: [
|
|
64797
|
+
/* @__PURE__ */ jsx(Button, { mode: "default", label: "\u53D6\u6D88", onClick: () => handleDrawerClose("cancel") }),
|
|
64798
|
+
/* @__PURE__ */ jsx(
|
|
65104
64799
|
Button,
|
|
65105
64800
|
{
|
|
65106
64801
|
mode: "primary",
|
|
@@ -65112,7 +64807,7 @@ const EditRowDrawer = ({ drawerVisible, handleDrawerClose, rowData }) => {
|
|
|
65112
64807
|
)
|
|
65113
64808
|
] }),
|
|
65114
64809
|
children: [
|
|
65115
|
-
/* @__PURE__ */
|
|
64810
|
+
/* @__PURE__ */ jsxs(
|
|
65116
64811
|
Row,
|
|
65117
64812
|
{
|
|
65118
64813
|
gutter: 16,
|
|
@@ -65123,31 +64818,31 @@ const EditRowDrawer = ({ drawerVisible, handleDrawerClose, rowData }) => {
|
|
|
65123
64818
|
fontWeight: "bold"
|
|
65124
64819
|
},
|
|
65125
64820
|
children: [
|
|
65126
|
-
/* @__PURE__ */
|
|
65127
|
-
/* @__PURE__ */
|
|
64821
|
+
/* @__PURE__ */ jsx(Col, { span: 4, children: "\u5217\u540D\u79F0" }),
|
|
64822
|
+
/* @__PURE__ */ jsx(Col, { span: 20, children: "\u6570\u503C" })
|
|
65128
64823
|
]
|
|
65129
64824
|
}
|
|
65130
64825
|
),
|
|
65131
|
-
/* @__PURE__ */
|
|
64826
|
+
/* @__PURE__ */ jsx(
|
|
65132
64827
|
List,
|
|
65133
64828
|
{
|
|
65134
64829
|
dataSource: data,
|
|
65135
|
-
renderItem: (item) => /* @__PURE__ */
|
|
64830
|
+
renderItem: (item) => /* @__PURE__ */ jsx(
|
|
65136
64831
|
List.Item,
|
|
65137
64832
|
{
|
|
65138
64833
|
actions: [
|
|
65139
|
-
editingId !== item.columnId && /* @__PURE__ */
|
|
64834
|
+
editingId !== item.columnId && /* @__PURE__ */ jsx(
|
|
65140
64835
|
Button$2,
|
|
65141
64836
|
{
|
|
65142
64837
|
type: "text",
|
|
65143
|
-
icon: /* @__PURE__ */
|
|
64838
|
+
icon: /* @__PURE__ */ jsx(SquarePen, { size: 14 }),
|
|
65144
64839
|
onClick: () => handleEdit(item)
|
|
65145
64840
|
}
|
|
65146
64841
|
)
|
|
65147
64842
|
],
|
|
65148
|
-
children: /* @__PURE__ */
|
|
65149
|
-
/* @__PURE__ */
|
|
65150
|
-
/* @__PURE__ */
|
|
64843
|
+
children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", width: "100%", height: "54px", lineHeight: "54px" }, children: [
|
|
64844
|
+
/* @__PURE__ */ jsx("div", { style: { width: "150px", marginLeft: 15 }, children: item.columnName }),
|
|
64845
|
+
/* @__PURE__ */ jsx("div", { style: { width: "550px" }, children: editingId === item.columnId ? /* @__PURE__ */ jsx(
|
|
65151
64846
|
Input2,
|
|
65152
64847
|
{
|
|
65153
64848
|
value: editingValue,
|
|
@@ -65155,7 +64850,7 @@ const EditRowDrawer = ({ drawerVisible, handleDrawerClose, rowData }) => {
|
|
|
65155
64850
|
onPressEnter: () => handleSave(item.columnId),
|
|
65156
64851
|
onBlur: () => handleSave(item.columnId)
|
|
65157
64852
|
}
|
|
65158
|
-
) : /* @__PURE__ */
|
|
64853
|
+
) : /* @__PURE__ */ jsx("div", { className: "w-full truncate", title: item.value, children: item.value }) })
|
|
65159
64854
|
] })
|
|
65160
64855
|
}
|
|
65161
64856
|
)
|
|
@@ -65432,7 +65127,7 @@ function DatabaseTableView({
|
|
|
65432
65127
|
}),
|
|
65433
65128
|
[data, eventsEmit, dbType, dataPermission]
|
|
65434
65129
|
);
|
|
65435
|
-
return /* @__PURE__ */
|
|
65130
|
+
return /* @__PURE__ */ jsxs(
|
|
65436
65131
|
Hod,
|
|
65437
65132
|
{
|
|
65438
65133
|
title: tableName,
|
|
@@ -65440,7 +65135,7 @@ function DatabaseTableView({
|
|
|
65440
65135
|
eventsEmit == null ? void 0 : eventsEmit("goBack", {});
|
|
65441
65136
|
},
|
|
65442
65137
|
children: [
|
|
65443
|
-
/* @__PURE__ */
|
|
65138
|
+
/* @__PURE__ */ jsx(
|
|
65444
65139
|
DynamicDashDataCore,
|
|
65445
65140
|
{
|
|
65446
65141
|
ref: coreRef,
|
|
@@ -65452,7 +65147,7 @@ function DatabaseTableView({
|
|
|
65452
65147
|
},
|
|
65453
65148
|
"table-data"
|
|
65454
65149
|
),
|
|
65455
|
-
rowData && /* @__PURE__ */
|
|
65150
|
+
rowData && /* @__PURE__ */ jsx(
|
|
65456
65151
|
EditRowDrawer,
|
|
65457
65152
|
{
|
|
65458
65153
|
drawerVisible,
|
|
@@ -65721,9 +65416,9 @@ const CreateModal = ({
|
|
|
65721
65416
|
return {
|
|
65722
65417
|
label,
|
|
65723
65418
|
value,
|
|
65724
|
-
render: () => /* @__PURE__ */
|
|
65725
|
-
/* @__PURE__ */
|
|
65726
|
-
/* @__PURE__ */
|
|
65419
|
+
render: () => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
65420
|
+
/* @__PURE__ */ jsx("img", { src: icon, width: 24 }),
|
|
65421
|
+
/* @__PURE__ */ jsx("span", { children: label })
|
|
65727
65422
|
] })
|
|
65728
65423
|
};
|
|
65729
65424
|
})
|
|
@@ -65894,7 +65589,7 @@ const CreateModal = ({
|
|
|
65894
65589
|
}
|
|
65895
65590
|
return false;
|
|
65896
65591
|
}, [dbType, isConnectSuccess, passwordEditing, drawerVisible]);
|
|
65897
|
-
return /* @__PURE__ */
|
|
65592
|
+
return /* @__PURE__ */ jsxs(
|
|
65898
65593
|
Modal,
|
|
65899
65594
|
{
|
|
65900
65595
|
title: drawerTitle,
|
|
@@ -65905,8 +65600,8 @@ const CreateModal = ({
|
|
|
65905
65600
|
},
|
|
65906
65601
|
open: drawerVisible,
|
|
65907
65602
|
destroyOnHidden: true,
|
|
65908
|
-
footer: /* @__PURE__ */
|
|
65909
|
-
/* @__PURE__ */
|
|
65603
|
+
footer: /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-3", children: [
|
|
65604
|
+
/* @__PURE__ */ jsx(
|
|
65910
65605
|
POr,
|
|
65911
65606
|
{
|
|
65912
65607
|
mode: "default",
|
|
@@ -65917,7 +65612,7 @@ const CreateModal = ({
|
|
|
65917
65612
|
}
|
|
65918
65613
|
}
|
|
65919
65614
|
),
|
|
65920
|
-
/* @__PURE__ */
|
|
65615
|
+
/* @__PURE__ */ jsx(
|
|
65921
65616
|
POr,
|
|
65922
65617
|
{
|
|
65923
65618
|
mode: "primary",
|
|
@@ -65929,8 +65624,8 @@ const CreateModal = ({
|
|
|
65929
65624
|
)
|
|
65930
65625
|
] }),
|
|
65931
65626
|
children: [
|
|
65932
|
-
/* @__PURE__ */
|
|
65933
|
-
dbType === "DirectDB" && /* @__PURE__ */
|
|
65627
|
+
/* @__PURE__ */ jsx(DynamicDashDataCore, { ...viewConfig }, "example-form"),
|
|
65628
|
+
dbType === "DirectDB" && /* @__PURE__ */ jsx(Fragment, { children: drawerTitle == "\u7F16\u8F91\u6570\u636E\u5E93" && !passwordEditing ? /* @__PURE__ */ jsx(
|
|
65934
65629
|
POr,
|
|
65935
65630
|
{
|
|
65936
65631
|
mode: "primary",
|
|
@@ -65943,7 +65638,7 @@ const CreateModal = ({
|
|
|
65943
65638
|
});
|
|
65944
65639
|
}
|
|
65945
65640
|
}
|
|
65946
|
-
) : /* @__PURE__ */
|
|
65641
|
+
) : /* @__PURE__ */ jsx(Tooltip2, { title: "\u9700\u901A\u8FC7\u6D4B\u8BD5\u624D\u53EF\u521B\u5EFA\u6210\u529F", children: /* @__PURE__ */ jsx(
|
|
65947
65642
|
POr,
|
|
65948
65643
|
{
|
|
65949
65644
|
mode: "primary",
|
|
@@ -66023,7 +65718,7 @@ const DatabaseViewAdopter = (props) => {
|
|
|
66023
65718
|
type: "customized",
|
|
66024
65719
|
key: "add",
|
|
66025
65720
|
render: () => {
|
|
66026
|
-
return /* @__PURE__ */
|
|
65721
|
+
return /* @__PURE__ */ jsx(
|
|
66027
65722
|
Lod,
|
|
66028
65723
|
{
|
|
66029
65724
|
mode: "primary",
|
|
@@ -66031,11 +65726,11 @@ const DatabaseViewAdopter = (props) => {
|
|
|
66031
65726
|
actions: DatabaseType.map((s) => {
|
|
66032
65727
|
return {
|
|
66033
65728
|
key: s.key,
|
|
66034
|
-
component: /* @__PURE__ */
|
|
66035
|
-
/* @__PURE__ */
|
|
66036
|
-
/* @__PURE__ */
|
|
66037
|
-
/* @__PURE__ */
|
|
66038
|
-
/* @__PURE__ */
|
|
65729
|
+
component: /* @__PURE__ */ jsx(DatabaseTypeOpt, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-grow", children: [
|
|
65730
|
+
/* @__PURE__ */ jsx("div", { className: "mr-[6px]", children: /* @__PURE__ */ jsx("img", { src: s.icon }) }),
|
|
65731
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
65732
|
+
/* @__PURE__ */ jsx("div", { className: "text-base font-bold mb-1 text-[14px]", children: s.label }),
|
|
65733
|
+
/* @__PURE__ */ jsx("div", { className: "text-[#888] text-[10px]", children: s.dsc })
|
|
66039
65734
|
] })
|
|
66040
65735
|
] }) }, s.key)
|
|
66041
65736
|
};
|
|
@@ -66134,9 +65829,9 @@ const DatabaseViewAdopter = (props) => {
|
|
|
66134
65829
|
}
|
|
66135
65830
|
};
|
|
66136
65831
|
const currentUser = "admin";
|
|
66137
|
-
const EmptyData = () => /* @__PURE__ */
|
|
66138
|
-
/* @__PURE__ */
|
|
66139
|
-
/* @__PURE__ */
|
|
65832
|
+
const EmptyData = () => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center h-full", children: [
|
|
65833
|
+
/* @__PURE__ */ jsx("div", { className: "text-xl font-semibold mb-3", style: { color: "#374151" }, children: /* @__PURE__ */ jsx("img", { src: EmptyImg$1, width: 120 }) }),
|
|
65834
|
+
/* @__PURE__ */ jsx("div", { className: "text-base mb-6", style: { color: "#6b7280" }, children: "\u6682\u65E0\u6570\u636E\uFF0C\u8BF7\u5148\u6DFB\u52A0\u6570\u636E\u5E93" })
|
|
66140
65835
|
] });
|
|
66141
65836
|
const getActionsForView = (viewId) => {
|
|
66142
65837
|
const view = views.find((v2) => v2.id === viewId);
|
|
@@ -66269,8 +65964,8 @@ const DatabaseViewAdopter = (props) => {
|
|
|
66269
65964
|
break;
|
|
66270
65965
|
}
|
|
66271
65966
|
}
|
|
66272
|
-
return /* @__PURE__ */
|
|
66273
|
-
/* @__PURE__ */
|
|
65967
|
+
return /* @__PURE__ */ jsxs(Hod, { title: "\u6570\u636E\u5E93\u7BA1\u7406", children: [
|
|
65968
|
+
/* @__PURE__ */ jsx(
|
|
66274
65969
|
DynamicDashDataCore,
|
|
66275
65970
|
{
|
|
66276
65971
|
ref: coreRef,
|
|
@@ -66289,7 +65984,7 @@ const DatabaseViewAdopter = (props) => {
|
|
|
66289
65984
|
},
|
|
66290
65985
|
"db"
|
|
66291
65986
|
),
|
|
66292
|
-
/* @__PURE__ */
|
|
65987
|
+
/* @__PURE__ */ jsx(
|
|
66293
65988
|
CreateModal,
|
|
66294
65989
|
{
|
|
66295
65990
|
drawerTitle,
|
|
@@ -66629,7 +66324,7 @@ const ConfigDrawer = ({
|
|
|
66629
66324
|
eventsEmit: mergedEventsEmit
|
|
66630
66325
|
};
|
|
66631
66326
|
}, [modelInfo, switchHide, formData]);
|
|
66632
|
-
return /* @__PURE__ */
|
|
66327
|
+
return /* @__PURE__ */ jsx(
|
|
66633
66328
|
Drawer2,
|
|
66634
66329
|
{
|
|
66635
66330
|
title: drawerTitle,
|
|
@@ -66637,12 +66332,12 @@ const ConfigDrawer = ({
|
|
|
66637
66332
|
width: 560,
|
|
66638
66333
|
onClose: handleDrawerClose,
|
|
66639
66334
|
closeIcon: false,
|
|
66640
|
-
extra: /* @__PURE__ */
|
|
66335
|
+
extra: /* @__PURE__ */ jsx(X$1, { size: 20, color: "#888888", onClick: handleDrawerClose, className: "cursor-pointer" }),
|
|
66641
66336
|
open: drawerVisible,
|
|
66642
66337
|
destroyOnHidden: true,
|
|
66643
|
-
footer: /* @__PURE__ */
|
|
66644
|
-
/* @__PURE__ */
|
|
66645
|
-
/* @__PURE__ */
|
|
66338
|
+
footer: /* @__PURE__ */ jsxs("div", { className: `flex justify-end items-center gap-3`, children: [
|
|
66339
|
+
/* @__PURE__ */ jsx(POr, { mode: "default", label: "\u53D6\u6D88", onClick: handleDrawerClose }),
|
|
66340
|
+
/* @__PURE__ */ jsx(
|
|
66646
66341
|
POr,
|
|
66647
66342
|
{
|
|
66648
66343
|
mode: "primary",
|
|
@@ -66652,7 +66347,7 @@ const ConfigDrawer = ({
|
|
|
66652
66347
|
}
|
|
66653
66348
|
)
|
|
66654
66349
|
] }),
|
|
66655
|
-
children: /* @__PURE__ */
|
|
66350
|
+
children: /* @__PURE__ */ jsx(DynamicDashDataCore, { ...viewConfig }, "example-form")
|
|
66656
66351
|
}
|
|
66657
66352
|
);
|
|
66658
66353
|
};
|
|
@@ -66697,9 +66392,9 @@ const StatusComponent = (props) => {
|
|
|
66697
66392
|
const { value, cell } = props;
|
|
66698
66393
|
const color = getStatusColor(props.cell.statusType);
|
|
66699
66394
|
if (value == "\u4E0D\u53EF\u7528") {
|
|
66700
|
-
return /* @__PURE__ */
|
|
66395
|
+
return /* @__PURE__ */ jsx(Tooltip2, { title: cell.errorMsg, children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx(Badge, { color, text: value }) }) });
|
|
66701
66396
|
} else {
|
|
66702
|
-
return /* @__PURE__ */
|
|
66397
|
+
return /* @__PURE__ */ jsx(Badge, { color, text: value });
|
|
66703
66398
|
}
|
|
66704
66399
|
};
|
|
66705
66400
|
function ModelManageView(props) {
|
|
@@ -66832,7 +66527,7 @@ function ModelManageView(props) {
|
|
|
66832
66527
|
var _a;
|
|
66833
66528
|
const { value } = props2;
|
|
66834
66529
|
const modelProtocol = (_a = modelProtocolsOpt.find((o2) => o2.value == value)) == null ? void 0 : _a.label;
|
|
66835
|
-
return /* @__PURE__ */
|
|
66530
|
+
return /* @__PURE__ */ jsx("span", { children: modelProtocol });
|
|
66836
66531
|
}
|
|
66837
66532
|
},
|
|
66838
66533
|
{
|
|
@@ -66843,7 +66538,7 @@ function ModelManageView(props) {
|
|
|
66843
66538
|
var _a;
|
|
66844
66539
|
const { value } = props2;
|
|
66845
66540
|
const type4 = (_a = modelUseTypeOpt.find((o2) => o2.value == value)) == null ? void 0 : _a.label;
|
|
66846
|
-
return /* @__PURE__ */
|
|
66541
|
+
return /* @__PURE__ */ jsx("span", { children: type4 });
|
|
66847
66542
|
}
|
|
66848
66543
|
},
|
|
66849
66544
|
{ id: "dec", title: "\u8BF4\u660E", type: "paragraph" },
|
|
@@ -66851,7 +66546,7 @@ function ModelManageView(props) {
|
|
|
66851
66546
|
id: "status",
|
|
66852
66547
|
title: "\u72B6\u6001",
|
|
66853
66548
|
type: "customized",
|
|
66854
|
-
component: /* @__PURE__ */
|
|
66549
|
+
component: /* @__PURE__ */ jsx(StatusComponent, {}),
|
|
66855
66550
|
helpText: "\u5F53\u524D\u6A21\u578B\u72B6\u6001\u4E3A\u521D\u6B21\u65B0\u589E\u6821\u9A8C\u72B6\u6001\uFF0C\u82E5\u6A21\u578B\u4E0B\u7EBF\uFF0C\u6B64\u72B6\u6001\u4E0D\u4F1A\u4E3B\u52A8\u66F4\u65B0\uFF0C\u9700\u624B\u52A8\u6267\u884C\u6A21\u578B\u5220\u9664"
|
|
66856
66551
|
},
|
|
66857
66552
|
{
|
|
@@ -66862,9 +66557,9 @@ function ModelManageView(props) {
|
|
|
66862
66557
|
const { value, cell, row } = props2;
|
|
66863
66558
|
const { disabled, label } = cell;
|
|
66864
66559
|
if (disabled) {
|
|
66865
|
-
return /* @__PURE__ */
|
|
66560
|
+
return /* @__PURE__ */ jsx(Tooltip2, { title: "\u89D2\u8272\u65E0\u6743\u9650\u64CD\u4F5C", children: /* @__PURE__ */ jsx(POr, { mode: "text", label, disabled }) });
|
|
66866
66561
|
} else {
|
|
66867
|
-
return /* @__PURE__ */
|
|
66562
|
+
return /* @__PURE__ */ jsx(
|
|
66868
66563
|
POr,
|
|
66869
66564
|
{
|
|
66870
66565
|
mode: "text",
|
|
@@ -66882,7 +66577,7 @@ function ModelManageView(props) {
|
|
|
66882
66577
|
btnType: "primary",
|
|
66883
66578
|
key: "add",
|
|
66884
66579
|
label: "\u65B0\u5EFA",
|
|
66885
|
-
icon: /* @__PURE__ */
|
|
66580
|
+
icon: /* @__PURE__ */ jsx(Plus, {})
|
|
66886
66581
|
}
|
|
66887
66582
|
]
|
|
66888
66583
|
}
|
|
@@ -66890,10 +66585,10 @@ function ModelManageView(props) {
|
|
|
66890
66585
|
}),
|
|
66891
66586
|
[data, modelUseTypeOpt, modelProtocolsOpt]
|
|
66892
66587
|
);
|
|
66893
|
-
const EmptyData = () => /* @__PURE__ */
|
|
66894
|
-
/* @__PURE__ */
|
|
66895
|
-
/* @__PURE__ */
|
|
66896
|
-
/* @__PURE__ */
|
|
66588
|
+
const EmptyData = () => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center h-full", children: [
|
|
66589
|
+
/* @__PURE__ */ jsx("div", { className: "text-xl font-semibold mb-3", style: { color: "#374151" }, children: /* @__PURE__ */ jsx("img", { src: EmptyImg, width: 120 }) }),
|
|
66590
|
+
/* @__PURE__ */ jsx("div", { className: "text-base mb-6", style: { color: "#6b7280" }, children: "\u6682\u65E0\u6570\u636E\uFF0C\u8BF7\u5148\u65B0\u5EFA\u6A21\u578B" }),
|
|
66591
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ jsx(
|
|
66897
66592
|
POr,
|
|
66898
66593
|
{
|
|
66899
66594
|
mode: "primary",
|
|
@@ -67031,7 +66726,7 @@ function ModelManageView(props) {
|
|
|
67031
66726
|
setDrawerVisible(false);
|
|
67032
66727
|
setModelInfo(void 0);
|
|
67033
66728
|
};
|
|
67034
|
-
return /* @__PURE__ */
|
|
66729
|
+
return /* @__PURE__ */ jsxs(
|
|
67035
66730
|
Hod,
|
|
67036
66731
|
{
|
|
67037
66732
|
title: "\u6A21\u578B\u7BA1\u7406",
|
|
@@ -67040,7 +66735,7 @@ function ModelManageView(props) {
|
|
|
67040
66735
|
(_a = props.eventsEmit) == null ? void 0 : _a.call(props, "goBack", {});
|
|
67041
66736
|
},
|
|
67042
66737
|
children: [
|
|
67043
|
-
/* @__PURE__ */
|
|
66738
|
+
/* @__PURE__ */ jsx(
|
|
67044
66739
|
DynamicDashDataCore,
|
|
67045
66740
|
{
|
|
67046
66741
|
dataSource: data,
|
|
@@ -67054,7 +66749,7 @@ function ModelManageView(props) {
|
|
|
67054
66749
|
...viewConfig
|
|
67055
66750
|
}
|
|
67056
66751
|
),
|
|
67057
|
-
/* @__PURE__ */
|
|
66752
|
+
/* @__PURE__ */ jsx(
|
|
67058
66753
|
ConfigDrawer,
|
|
67059
66754
|
{
|
|
67060
66755
|
drawerTitle,
|