@dovetail-v2/refine 0.0.37 → 0.0.38

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.
@@ -10,8 +10,8 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
10
10
  import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useDeleteMany, CanAccess, useCan, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$1, flattenObjectKeys, useInvalidate, useUserFriendlyName, useModal, pickNotDeprecated, useMenu, useTable, Refine } from "@refinedev/core";
11
11
  import { parse, stringify } from "qs";
12
12
  import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
13
- import { Typo, useUIKit, kitContext, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, pushModal, Button, Icon as Icon$1, popModal, Loading, Divider, Fields, Form, Space, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
14
- import { PlusAddCreateNew16BoldOntintIcon, EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
13
+ import { Typo, Tag, useUIKit, kitContext, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, pushModal, Button, Icon as Icon$1, popModal, Loading, Divider, Fields, Form, Space, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
14
+ import { PlusAddCreateNew16BoldOntintIcon, EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
15
15
  import { get as get$2, first, debounce, last, isObject as isObject$2, merge, keyBy } from "lodash-es";
16
16
  import yaml from "js-yaml";
17
17
  import * as monaco from "monaco-editor";
@@ -25,308 +25,301 @@ function getDefaultExportFromCjs(x) {
25
25
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
26
26
  }
27
27
  var dayjs_min = { exports: {} };
28
- var hasRequiredDayjs_min;
29
- function requireDayjs_min() {
30
- if (hasRequiredDayjs_min)
31
- return dayjs_min.exports;
32
- hasRequiredDayjs_min = 1;
33
- (function(module, exports) {
34
- !function(t2, e2) {
35
- module.exports = e2();
36
- }(commonjsGlobal, function() {
37
- var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u = "hour", a2 = "day", o = "week", c2 = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
38
- var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
39
- return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
40
- } }, m2 = function(t3, e3, n3) {
41
- var r3 = String(t3);
42
- return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
43
- }, v = { s: m2, z: function(t3) {
44
- var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
45
- return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
46
- }, m: function t3(e3, n3) {
47
- if (e3.date() < n3.date())
48
- return -t3(n3, e3);
49
- var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
50
- return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
51
- }, a: function(t3) {
52
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
53
- }, p: function(t3) {
54
- return { M: c2, y: h, w: o, d: a2, D: d, h: u, m: s2, s: i2, ms: r2, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
55
- }, u: function(t3) {
56
- return void 0 === t3;
57
- } }, g = "en", D = {};
58
- D[g] = M;
59
- var p = "$isDayjsObject", S = function(t3) {
60
- return t3 instanceof _ || !(!t3 || !t3[p]);
61
- }, w = function t3(e3, n3, r3) {
62
- var i3;
63
- if (!e3)
64
- return g;
65
- if ("string" == typeof e3) {
66
- var s3 = e3.toLowerCase();
67
- D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
68
- var u2 = e3.split("-");
69
- if (!i3 && u2.length > 1)
70
- return t3(u2[0]);
71
- } else {
72
- var a3 = e3.name;
73
- D[a3] = e3, i3 = a3;
74
- }
75
- return !r3 && i3 && (g = i3), i3 || !r3 && g;
76
- }, O = function(t3, e3) {
77
- if (S(t3))
78
- return t3.clone();
79
- var n3 = "object" == typeof e3 ? e3 : {};
80
- return n3.date = t3, n3.args = arguments, new _(n3);
81
- }, b = v;
82
- b.l = w, b.i = S, b.w = function(t3, e3) {
83
- return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
84
- };
85
- var _ = function() {
86
- function M2(t3) {
87
- this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
88
- }
89
- var m3 = M2.prototype;
90
- return m3.parse = function(t3) {
91
- this.$d = function(t4) {
92
- var e3 = t4.date, n3 = t4.utc;
93
- if (null === e3)
94
- return /* @__PURE__ */ new Date(NaN);
95
- if (b.u(e3))
96
- return /* @__PURE__ */ new Date();
97
- if (e3 instanceof Date)
98
- return new Date(e3);
99
- if ("string" == typeof e3 && !/Z$/i.test(e3)) {
100
- var r3 = e3.match($);
101
- if (r3) {
102
- var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
103
- return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
104
- }
105
- }
28
+ (function(module, exports) {
29
+ !function(t2, e2) {
30
+ module.exports = e2();
31
+ }(commonjsGlobal, function() {
32
+ var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u = "hour", a2 = "day", o = "week", c2 = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
33
+ var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
34
+ return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
35
+ } }, m2 = function(t3, e3, n3) {
36
+ var r3 = String(t3);
37
+ return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
38
+ }, v = { s: m2, z: function(t3) {
39
+ var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
40
+ return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
41
+ }, m: function t3(e3, n3) {
42
+ if (e3.date() < n3.date())
43
+ return -t3(n3, e3);
44
+ var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
45
+ return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
46
+ }, a: function(t3) {
47
+ return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
48
+ }, p: function(t3) {
49
+ return { M: c2, y: h, w: o, d: a2, D: d, h: u, m: s2, s: i2, ms: r2, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
50
+ }, u: function(t3) {
51
+ return void 0 === t3;
52
+ } }, g = "en", D = {};
53
+ D[g] = M;
54
+ var p = "$isDayjsObject", S = function(t3) {
55
+ return t3 instanceof _ || !(!t3 || !t3[p]);
56
+ }, w = function t3(e3, n3, r3) {
57
+ var i3;
58
+ if (!e3)
59
+ return g;
60
+ if ("string" == typeof e3) {
61
+ var s3 = e3.toLowerCase();
62
+ D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
63
+ var u2 = e3.split("-");
64
+ if (!i3 && u2.length > 1)
65
+ return t3(u2[0]);
66
+ } else {
67
+ var a3 = e3.name;
68
+ D[a3] = e3, i3 = a3;
69
+ }
70
+ return !r3 && i3 && (g = i3), i3 || !r3 && g;
71
+ }, O = function(t3, e3) {
72
+ if (S(t3))
73
+ return t3.clone();
74
+ var n3 = "object" == typeof e3 ? e3 : {};
75
+ return n3.date = t3, n3.args = arguments, new _(n3);
76
+ }, b = v;
77
+ b.l = w, b.i = S, b.w = function(t3, e3) {
78
+ return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
79
+ };
80
+ var _ = function() {
81
+ function M2(t3) {
82
+ this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
83
+ }
84
+ var m3 = M2.prototype;
85
+ return m3.parse = function(t3) {
86
+ this.$d = function(t4) {
87
+ var e3 = t4.date, n3 = t4.utc;
88
+ if (null === e3)
89
+ return /* @__PURE__ */ new Date(NaN);
90
+ if (b.u(e3))
91
+ return /* @__PURE__ */ new Date();
92
+ if (e3 instanceof Date)
106
93
  return new Date(e3);
107
- }(t3), this.init();
108
- }, m3.init = function() {
109
- var t3 = this.$d;
110
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
111
- }, m3.$utils = function() {
112
- return b;
113
- }, m3.isValid = function() {
114
- return !(this.$d.toString() === l);
115
- }, m3.isSame = function(t3, e3) {
116
- var n3 = O(t3);
117
- return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
118
- }, m3.isAfter = function(t3, e3) {
119
- return O(t3) < this.startOf(e3);
120
- }, m3.isBefore = function(t3, e3) {
121
- return this.endOf(e3) < O(t3);
122
- }, m3.$g = function(t3, e3, n3) {
123
- return b.u(t3) ? this[e3] : this.set(n3, t3);
124
- }, m3.unix = function() {
125
- return Math.floor(this.valueOf() / 1e3);
126
- }, m3.valueOf = function() {
127
- return this.$d.getTime();
128
- }, m3.startOf = function(t3, e3) {
129
- var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
130
- var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
131
- return r3 ? i3 : i3.endOf(a2);
132
- }, $2 = function(t4, e4) {
133
- return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
134
- }, y2 = this.$W, M3 = this.$M, m4 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
135
- switch (f2) {
136
- case h:
137
- return r3 ? l2(1, 0) : l2(31, 11);
138
- case c2:
139
- return r3 ? l2(1, M3) : l2(0, M3 + 1);
140
- case o:
141
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
142
- return l2(r3 ? m4 - D2 : m4 + (6 - D2), M3);
143
- case a2:
144
- case d:
145
- return $2(v2 + "Hours", 0);
146
- case u:
147
- return $2(v2 + "Minutes", 1);
148
- case s2:
149
- return $2(v2 + "Seconds", 2);
150
- case i2:
151
- return $2(v2 + "Milliseconds", 3);
152
- default:
153
- return this.clone();
154
- }
155
- }, m3.endOf = function(t3) {
156
- return this.startOf(t3, false);
157
- }, m3.$set = function(t3, e3) {
158
- var n3, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c2] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
159
- if (o2 === c2 || o2 === h) {
160
- var y2 = this.clone().set(d, 1);
161
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
162
- } else
163
- l2 && this.$d[l2]($2);
164
- return this.init(), this;
165
- }, m3.set = function(t3, e3) {
166
- return this.clone().$set(t3, e3);
167
- }, m3.get = function(t3) {
168
- return this[b.p(t3)]();
169
- }, m3.add = function(r3, f2) {
170
- var d2, l2 = this;
171
- r3 = Number(r3);
172
- var $2 = b.p(f2), y2 = function(t3) {
173
- var e3 = O(l2);
174
- return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
175
- };
176
- if ($2 === c2)
177
- return this.set(c2, this.$M + r3);
178
- if ($2 === h)
179
- return this.set(h, this.$y + r3);
180
- if ($2 === a2)
181
- return y2(1);
182
- if ($2 === o)
183
- return y2(7);
184
- var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m4 = this.$d.getTime() + r3 * M3;
185
- return b.w(m4, this);
186
- }, m3.subtract = function(t3, e3) {
187
- return this.add(-1 * t3, e3);
188
- }, m3.format = function(t3) {
189
- var e3 = this, n3 = this.$locale();
190
- if (!this.isValid())
191
- return n3.invalidDate || l;
192
- var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
193
- return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
194
- }, d2 = function(t4) {
195
- return b.s(s3 % 12 || 12, t4, "0");
196
- }, $2 = f2 || function(t4, e4, n4) {
197
- var r4 = t4 < 12 ? "AM" : "PM";
198
- return n4 ? r4.toLowerCase() : r4;
199
- };
200
- return r3.replace(y, function(t4, r4) {
201
- return r4 || function(t5) {
202
- switch (t5) {
203
- case "YY":
204
- return String(e3.$y).slice(-2);
205
- case "YYYY":
206
- return b.s(e3.$y, 4, "0");
207
- case "M":
208
- return a3 + 1;
209
- case "MM":
210
- return b.s(a3 + 1, 2, "0");
211
- case "MMM":
212
- return h2(n3.monthsShort, a3, c3, 3);
213
- case "MMMM":
214
- return h2(c3, a3);
215
- case "D":
216
- return e3.$D;
217
- case "DD":
218
- return b.s(e3.$D, 2, "0");
219
- case "d":
220
- return String(e3.$W);
221
- case "dd":
222
- return h2(n3.weekdaysMin, e3.$W, o2, 2);
223
- case "ddd":
224
- return h2(n3.weekdaysShort, e3.$W, o2, 3);
225
- case "dddd":
226
- return o2[e3.$W];
227
- case "H":
228
- return String(s3);
229
- case "HH":
230
- return b.s(s3, 2, "0");
231
- case "h":
232
- return d2(1);
233
- case "hh":
234
- return d2(2);
235
- case "a":
236
- return $2(s3, u2, true);
237
- case "A":
238
- return $2(s3, u2, false);
239
- case "m":
240
- return String(u2);
241
- case "mm":
242
- return b.s(u2, 2, "0");
243
- case "s":
244
- return String(e3.$s);
245
- case "ss":
246
- return b.s(e3.$s, 2, "0");
247
- case "SSS":
248
- return b.s(e3.$ms, 3, "0");
249
- case "Z":
250
- return i3;
251
- }
252
- return null;
253
- }(t4) || i3.replace(":", "");
254
- });
255
- }, m3.utcOffset = function() {
256
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
257
- }, m3.diff = function(r3, d2, l2) {
258
- var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e2, g2 = this - m4, D2 = function() {
259
- return b.m(y2, m4);
260
- };
261
- switch (M3) {
262
- case h:
263
- $2 = D2() / 12;
264
- break;
265
- case c2:
266
- $2 = D2();
267
- break;
268
- case f:
269
- $2 = D2() / 3;
270
- break;
271
- case o:
272
- $2 = (g2 - v2) / 6048e5;
273
- break;
274
- case a2:
275
- $2 = (g2 - v2) / 864e5;
276
- break;
277
- case u:
278
- $2 = g2 / n2;
279
- break;
280
- case s2:
281
- $2 = g2 / e2;
282
- break;
283
- case i2:
284
- $2 = g2 / t2;
285
- break;
286
- default:
287
- $2 = g2;
288
- }
289
- return l2 ? $2 : b.a($2);
290
- }, m3.daysInMonth = function() {
291
- return this.endOf(c2).$D;
292
- }, m3.$locale = function() {
293
- return D[this.$L];
294
- }, m3.locale = function(t3, e3) {
295
- if (!t3)
296
- return this.$L;
297
- var n3 = this.clone(), r3 = w(t3, e3, true);
298
- return r3 && (n3.$L = r3), n3;
299
- }, m3.clone = function() {
300
- return b.w(this.$d, this);
301
- }, m3.toDate = function() {
302
- return new Date(this.valueOf());
303
- }, m3.toJSON = function() {
304
- return this.isValid() ? this.toISOString() : null;
305
- }, m3.toISOString = function() {
306
- return this.$d.toISOString();
307
- }, m3.toString = function() {
308
- return this.$d.toUTCString();
309
- }, M2;
310
- }(), k = _.prototype;
311
- return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
312
- k[t3[1]] = function(e3) {
313
- return this.$g(e3, t3[0], t3[1]);
94
+ if ("string" == typeof e3 && !/Z$/i.test(e3)) {
95
+ var r3 = e3.match($);
96
+ if (r3) {
97
+ var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
98
+ return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
99
+ }
100
+ }
101
+ return new Date(e3);
102
+ }(t3), this.init();
103
+ }, m3.init = function() {
104
+ var t3 = this.$d;
105
+ this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
106
+ }, m3.$utils = function() {
107
+ return b;
108
+ }, m3.isValid = function() {
109
+ return !(this.$d.toString() === l);
110
+ }, m3.isSame = function(t3, e3) {
111
+ var n3 = O(t3);
112
+ return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
113
+ }, m3.isAfter = function(t3, e3) {
114
+ return O(t3) < this.startOf(e3);
115
+ }, m3.isBefore = function(t3, e3) {
116
+ return this.endOf(e3) < O(t3);
117
+ }, m3.$g = function(t3, e3, n3) {
118
+ return b.u(t3) ? this[e3] : this.set(n3, t3);
119
+ }, m3.unix = function() {
120
+ return Math.floor(this.valueOf() / 1e3);
121
+ }, m3.valueOf = function() {
122
+ return this.$d.getTime();
123
+ }, m3.startOf = function(t3, e3) {
124
+ var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
125
+ var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
126
+ return r3 ? i3 : i3.endOf(a2);
127
+ }, $2 = function(t4, e4) {
128
+ return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
129
+ }, y2 = this.$W, M3 = this.$M, m4 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
130
+ switch (f2) {
131
+ case h:
132
+ return r3 ? l2(1, 0) : l2(31, 11);
133
+ case c2:
134
+ return r3 ? l2(1, M3) : l2(0, M3 + 1);
135
+ case o:
136
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
137
+ return l2(r3 ? m4 - D2 : m4 + (6 - D2), M3);
138
+ case a2:
139
+ case d:
140
+ return $2(v2 + "Hours", 0);
141
+ case u:
142
+ return $2(v2 + "Minutes", 1);
143
+ case s2:
144
+ return $2(v2 + "Seconds", 2);
145
+ case i2:
146
+ return $2(v2 + "Milliseconds", 3);
147
+ default:
148
+ return this.clone();
149
+ }
150
+ }, m3.endOf = function(t3) {
151
+ return this.startOf(t3, false);
152
+ }, m3.$set = function(t3, e3) {
153
+ var n3, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c2] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
154
+ if (o2 === c2 || o2 === h) {
155
+ var y2 = this.clone().set(d, 1);
156
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
157
+ } else
158
+ l2 && this.$d[l2]($2);
159
+ return this.init(), this;
160
+ }, m3.set = function(t3, e3) {
161
+ return this.clone().$set(t3, e3);
162
+ }, m3.get = function(t3) {
163
+ return this[b.p(t3)]();
164
+ }, m3.add = function(r3, f2) {
165
+ var d2, l2 = this;
166
+ r3 = Number(r3);
167
+ var $2 = b.p(f2), y2 = function(t3) {
168
+ var e3 = O(l2);
169
+ return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
314
170
  };
315
- }), O.extend = function(t3, e3) {
316
- return t3.$i || (t3(e3, _, O), t3.$i = true), O;
317
- }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
318
- return O(1e3 * t3);
319
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
320
- });
321
- })(dayjs_min);
322
- return dayjs_min.exports;
323
- }
324
- var dayjs_minExports = requireDayjs_min();
171
+ if ($2 === c2)
172
+ return this.set(c2, this.$M + r3);
173
+ if ($2 === h)
174
+ return this.set(h, this.$y + r3);
175
+ if ($2 === a2)
176
+ return y2(1);
177
+ if ($2 === o)
178
+ return y2(7);
179
+ var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m4 = this.$d.getTime() + r3 * M3;
180
+ return b.w(m4, this);
181
+ }, m3.subtract = function(t3, e3) {
182
+ return this.add(-1 * t3, e3);
183
+ }, m3.format = function(t3) {
184
+ var e3 = this, n3 = this.$locale();
185
+ if (!this.isValid())
186
+ return n3.invalidDate || l;
187
+ var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
188
+ return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
189
+ }, d2 = function(t4) {
190
+ return b.s(s3 % 12 || 12, t4, "0");
191
+ }, $2 = f2 || function(t4, e4, n4) {
192
+ var r4 = t4 < 12 ? "AM" : "PM";
193
+ return n4 ? r4.toLowerCase() : r4;
194
+ };
195
+ return r3.replace(y, function(t4, r4) {
196
+ return r4 || function(t5) {
197
+ switch (t5) {
198
+ case "YY":
199
+ return String(e3.$y).slice(-2);
200
+ case "YYYY":
201
+ return b.s(e3.$y, 4, "0");
202
+ case "M":
203
+ return a3 + 1;
204
+ case "MM":
205
+ return b.s(a3 + 1, 2, "0");
206
+ case "MMM":
207
+ return h2(n3.monthsShort, a3, c3, 3);
208
+ case "MMMM":
209
+ return h2(c3, a3);
210
+ case "D":
211
+ return e3.$D;
212
+ case "DD":
213
+ return b.s(e3.$D, 2, "0");
214
+ case "d":
215
+ return String(e3.$W);
216
+ case "dd":
217
+ return h2(n3.weekdaysMin, e3.$W, o2, 2);
218
+ case "ddd":
219
+ return h2(n3.weekdaysShort, e3.$W, o2, 3);
220
+ case "dddd":
221
+ return o2[e3.$W];
222
+ case "H":
223
+ return String(s3);
224
+ case "HH":
225
+ return b.s(s3, 2, "0");
226
+ case "h":
227
+ return d2(1);
228
+ case "hh":
229
+ return d2(2);
230
+ case "a":
231
+ return $2(s3, u2, true);
232
+ case "A":
233
+ return $2(s3, u2, false);
234
+ case "m":
235
+ return String(u2);
236
+ case "mm":
237
+ return b.s(u2, 2, "0");
238
+ case "s":
239
+ return String(e3.$s);
240
+ case "ss":
241
+ return b.s(e3.$s, 2, "0");
242
+ case "SSS":
243
+ return b.s(e3.$ms, 3, "0");
244
+ case "Z":
245
+ return i3;
246
+ }
247
+ return null;
248
+ }(t4) || i3.replace(":", "");
249
+ });
250
+ }, m3.utcOffset = function() {
251
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
252
+ }, m3.diff = function(r3, d2, l2) {
253
+ var $2, y2 = this, M3 = b.p(d2), m4 = O(r3), v2 = (m4.utcOffset() - this.utcOffset()) * e2, g2 = this - m4, D2 = function() {
254
+ return b.m(y2, m4);
255
+ };
256
+ switch (M3) {
257
+ case h:
258
+ $2 = D2() / 12;
259
+ break;
260
+ case c2:
261
+ $2 = D2();
262
+ break;
263
+ case f:
264
+ $2 = D2() / 3;
265
+ break;
266
+ case o:
267
+ $2 = (g2 - v2) / 6048e5;
268
+ break;
269
+ case a2:
270
+ $2 = (g2 - v2) / 864e5;
271
+ break;
272
+ case u:
273
+ $2 = g2 / n2;
274
+ break;
275
+ case s2:
276
+ $2 = g2 / e2;
277
+ break;
278
+ case i2:
279
+ $2 = g2 / t2;
280
+ break;
281
+ default:
282
+ $2 = g2;
283
+ }
284
+ return l2 ? $2 : b.a($2);
285
+ }, m3.daysInMonth = function() {
286
+ return this.endOf(c2).$D;
287
+ }, m3.$locale = function() {
288
+ return D[this.$L];
289
+ }, m3.locale = function(t3, e3) {
290
+ if (!t3)
291
+ return this.$L;
292
+ var n3 = this.clone(), r3 = w(t3, e3, true);
293
+ return r3 && (n3.$L = r3), n3;
294
+ }, m3.clone = function() {
295
+ return b.w(this.$d, this);
296
+ }, m3.toDate = function() {
297
+ return new Date(this.valueOf());
298
+ }, m3.toJSON = function() {
299
+ return this.isValid() ? this.toISOString() : null;
300
+ }, m3.toISOString = function() {
301
+ return this.$d.toISOString();
302
+ }, m3.toString = function() {
303
+ return this.$d.toUTCString();
304
+ }, M2;
305
+ }(), k = _.prototype;
306
+ return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
307
+ k[t3[1]] = function(e3) {
308
+ return this.$g(e3, t3[0], t3[1]);
309
+ };
310
+ }), O.extend = function(t3, e3) {
311
+ return t3.$i || (t3(e3, _, O), t3.$i = true), O;
312
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
313
+ return O(1e3 * t3);
314
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
315
+ });
316
+ })(dayjs_min);
317
+ var dayjs_minExports = dayjs_min.exports;
325
318
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
326
319
  var zh = { exports: {} };
327
320
  (function(module, exports) {
328
321
  !function(e2, _) {
329
- module.exports = _(requireDayjs_min());
322
+ module.exports = _(dayjs_minExports);
330
323
  }(commonjsGlobal, function(e2) {
331
324
  function _(e3) {
332
325
  return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
@@ -1261,7 +1254,7 @@ const already_reset = "已重置";
1261
1254
  const cancel = "取消";
1262
1255
  const create = "创建";
1263
1256
  const delete_resource = "删除 {{resource}}";
1264
- const confirm_delete_text = "确认删除 {{kind}} {{target}} 吗?";
1257
+ const confirm_delete_text = "确认删除 {{kind}} <0>{{target}}</0> 吗?";
1265
1258
  const delete_tip = "该操作无法被撤回。";
1266
1259
  const edit = "编辑";
1267
1260
  const namespace = "名字空间";
@@ -8034,10 +8027,11 @@ var cx = function cx2() {
8034
8027
  };
8035
8028
  var cx_default = cx;
8036
8029
  const ConfigsContext = createContext({});
8037
- const useDeleteModal_1qwlq4u = "";
8030
+ const useDeleteModal_1kqb6q3 = "";
8038
8031
  const TextStyle = "t1vq0ett";
8039
8032
  const TipStyle = "t139onst";
8040
- const ModalStyle = "m18lzor8";
8033
+ const NameStyle$1 = "n18lzor8";
8034
+ const ModalStyle = "mvvgkkc";
8041
8035
  const useDeleteModal = (resource) => {
8042
8036
  const configs = useContext(ConfigsContext);
8043
8037
  const config = configs[resource];
@@ -8065,12 +8059,17 @@ const useDeleteModal = (resource) => {
8065
8059
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
8066
8060
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
8067
8061
  className: cx_default(Typo.Label.l2_regular, TextStyle),
8068
- children: t2("dovetail.confirm_delete_text", {
8069
- target: id,
8070
- kind: config.kind,
8071
- interpolation: {
8072
- escapeValue: false
8073
- }
8062
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trans, {
8063
+ i18nKey: "dovetail.confirm_delete_text",
8064
+ tOptions: {
8065
+ target: id,
8066
+ kind: config.kind
8067
+ },
8068
+ shouldUnescape: true,
8069
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, {
8070
+ color: "gray",
8071
+ className: NameStyle$1
8072
+ })
8074
8073
  })
8075
8074
  }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
8076
8075
  className: cx_default(Typo.Label.l4_regular, TipStyle),
@@ -8517,32 +8516,54 @@ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
8517
8516
  return o(prop);
8518
8517
  }
8519
8518
  }) : styled;
8520
- const index_1kmu85y = "";
8521
- const ErrorWrapper$1 = /* @__PURE__ */ styled_default("div")({
8519
+ const index_1rdsv5g = "";
8520
+ const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
8522
8521
  name: "ErrorWrapper",
8523
8522
  class: "egn3dbn",
8524
8523
  propsAsIs: false
8525
8524
  });
8526
- const ErrorContent$1 = /* @__PURE__ */ styled_default("div")({
8525
+ const ErrorContent = /* @__PURE__ */ styled_default("div")({
8527
8526
  name: "ErrorContent",
8528
8527
  class: "e136jgy8",
8529
8528
  propsAsIs: false
8530
8529
  });
8531
- const WidgetErrorContent$1 = (props) => {
8530
+ var ErrorContentType = /* @__PURE__ */ ((ErrorContentType2) => {
8531
+ ErrorContentType2["List"] = "list";
8532
+ ErrorContentType2["Card"] = "card";
8533
+ ErrorContentType2["Widget"] = "widget";
8534
+ return ErrorContentType2;
8535
+ })(ErrorContentType || {});
8536
+ const WidgetErrorContent = (props) => {
8532
8537
  const {
8533
8538
  refetch,
8534
- errorText
8539
+ errorText,
8540
+ type: type2 = "list"
8541
+ /* List */
8535
8542
  } = props;
8536
8543
  const kit = useContext(kitContext);
8537
8544
  const {
8538
8545
  t: t2
8539
8546
  } = useTranslation();
8540
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper$1, {
8547
+ const fontMap = {
8548
+ [
8549
+ "widget"
8550
+ /* Widget */
8551
+ ]: Typo.Label.l1_regular_title,
8552
+ [
8553
+ "card"
8554
+ /* Card */
8555
+ ]: Typo.Label.l1_bold,
8556
+ [
8557
+ "list"
8558
+ /* List */
8559
+ ]: Typo.Display.d2_bold_title
8560
+ };
8561
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
8541
8562
  className: props.className,
8542
8563
  style: props.style,
8543
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent$1, {
8564
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent, {
8544
8565
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
8545
- className: cx_default(Typo.Label.l1_regular_title, "title"),
8566
+ className: cx_default(fontMap[type2], "title", type2),
8546
8567
  children: errorText || t2("dovetail.obtain_data_error")
8547
8568
  }), !refetch ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
8548
8569
  size: "small",
@@ -8556,36 +8577,6 @@ const WidgetErrorContent$1 = (props) => {
8556
8577
  })
8557
8578
  });
8558
8579
  };
8559
- const ErrorContent_1t51xnx = "";
8560
- const ErrorWrapper = "eckm4od";
8561
- const ErrorContent = "e1hl982n";
8562
- const WidgetErrorContent = (props) => {
8563
- const {
8564
- refetch
8565
- } = props;
8566
- const kit = useContext(kitContext);
8567
- const {
8568
- t: t2
8569
- } = useTranslation();
8570
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
8571
- className: ErrorWrapper,
8572
- style: props.style,
8573
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
8574
- className: ErrorContent,
8575
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
8576
- className: cx_default(Typo.Label.l1_regular_title, "title"),
8577
- children: props.errorText || t2("dovetail.obtain_data_error")
8578
- }), refetch ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
8579
- type: "ordinary",
8580
- onClick: (e2) => {
8581
- e2.stopPropagation();
8582
- refetch == null ? void 0 : refetch();
8583
- },
8584
- children: t2("dovetail.retry")
8585
- }) : null]
8586
- })
8587
- });
8588
- };
8589
8580
  const TableWidgets_ny30pi = "";
8590
8581
  const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
8591
8582
  name: "AuxiliaryLine",
@@ -8709,10 +8700,11 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
8709
8700
  ];
8710
8701
  if (datas.length === 0) {
8711
8702
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8712
- WidgetErrorContent$1,
8703
+ WidgetErrorContent,
8713
8704
  {
8714
8705
  errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
8715
- style: { padding: "15px 0" }
8706
+ style: { padding: "15px 0" },
8707
+ type: ErrorContentType.Card
8716
8708
  }
8717
8709
  );
8718
8710
  }
@@ -8779,7 +8771,14 @@ const PortsTable = ({ service }) => {
8779
8771
  id: port2.name || ""
8780
8772
  }));
8781
8773
  if ((ports == null ? void 0 : ports.length) === 0) {
8782
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" } });
8774
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
8775
+ WidgetErrorContent,
8776
+ {
8777
+ errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }),
8778
+ style: { padding: "15px 0" },
8779
+ type: ErrorContentType.Card
8780
+ }
8781
+ );
8783
8782
  }
8784
8783
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8785
8784
  Table$1,
@@ -9932,7 +9931,7 @@ const ServiceOutClusterAccessComponent = ({
9932
9931
  children: content || "-"
9933
9932
  });
9934
9933
  };
9935
- const index_1ce2deq = "";
9934
+ const index_1wlqq0y = "";
9936
9935
  const TagWrapper = "t13a6vox";
9937
9936
  const TagStyle = "t12ikbmp";
9938
9937
  const Tags = (props) => {
@@ -10044,7 +10043,7 @@ var relativeTime$1 = { exports: {} };
10044
10043
  })(relativeTime$1);
10045
10044
  var relativeTimeExports = relativeTime$1.exports;
10046
10045
  const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
10047
- const index_fmx695 = "";
10046
+ const index_1779z85 = "";
10048
10047
  dayjs.extend(relativeTime, {
10049
10048
  thresholds: [{
10050
10049
  l: "s",
@@ -10160,7 +10159,14 @@ const ConditionsTable = ({ conditions = [] }) => {
10160
10159
  }
10161
10160
  ];
10162
10161
  if (conditionsWithId.length === 0) {
10163
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }), style: { padding: "15px 0" } });
10162
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
10163
+ WidgetErrorContent,
10164
+ {
10165
+ errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }),
10166
+ style: { padding: "15px 0" },
10167
+ type: ErrorContentType.Card
10168
+ }
10169
+ );
10164
10170
  }
10165
10171
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10166
10172
  Table$1,
@@ -10378,7 +10384,8 @@ const CronjobJobsTable = ({
10378
10384
  const component = useContext(ComponentContext);
10379
10385
  const Table$1 = component.Table || Table;
10380
10386
  const {
10381
- data: data2
10387
+ data: data2,
10388
+ isLoading
10382
10389
  } = useList({
10383
10390
  resource: "jobs",
10384
10391
  meta: {
@@ -10392,6 +10399,14 @@ const CronjobJobsTable = ({
10392
10399
  });
10393
10400
  }, [data2 == null ? void 0 : data2.data, owner]);
10394
10401
  const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
10402
+ if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
10403
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
10404
+ errorText: i18n2.t("dovetail.no_resource", {
10405
+ kind: " Job"
10406
+ }),
10407
+ type: ErrorContentType.Card
10408
+ });
10409
+ }
10395
10410
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
10396
10411
  direction: "vertical",
10397
10412
  className: WrapperStyle$5,
@@ -10400,7 +10415,7 @@ const CronjobJobsTable = ({
10400
10415
  hideCreate: true
10401
10416
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
10402
10417
  tableKey: "cronjobs",
10403
- loading: !dataSource,
10418
+ loading: isLoading,
10404
10419
  data: dataSource || [],
10405
10420
  columns,
10406
10421
  rowKey: "id",
@@ -10468,7 +10483,7 @@ const EventsTable = ({}) => {
10468
10483
  }, [data2 == null ? void 0 : data2.data, parsed]);
10469
10484
  if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
10470
10485
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10471
- WidgetErrorContent$1,
10486
+ WidgetErrorContent,
10472
10487
  {
10473
10488
  errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.event") })
10474
10489
  }
@@ -10591,7 +10606,14 @@ const IngressRulesTable = ({ ingress }) => {
10591
10606
  }
10592
10607
  ];
10593
10608
  if ((rows == null ? void 0 : rows.length) === 0) {
10594
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }), style: { padding: "15px 0" } });
10609
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
10610
+ WidgetErrorContent,
10611
+ {
10612
+ errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }),
10613
+ style: { padding: "15px 0" },
10614
+ type: ErrorContentType.Card
10615
+ }
10616
+ );
10595
10617
  }
10596
10618
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
10597
10619
  Table$1,
@@ -10609,7 +10631,7 @@ const IngressRulesTable = ({ ingress }) => {
10609
10631
  }
10610
10632
  );
10611
10633
  };
10612
- const KeyValue_1vkf5y2 = "";
10634
+ const KeyValue_1ebh6uj = "";
10613
10635
  const ContentBlockStyle = "c8jy7dc";
10614
10636
  const KeyStyle = "k2sddxl";
10615
10637
  const ValueStyle$2 = "v16vicsr";
@@ -10633,8 +10655,9 @@ const KeyValue = (props) => {
10633
10655
  })]
10634
10656
  }, key2));
10635
10657
  if (!result.length) {
10636
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
10637
- errorText: empty2 || t2("dovetail.empty")
10658
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
10659
+ errorText: empty2 || t2("dovetail.empty"),
10660
+ type: ErrorContentType.Card
10638
10661
  });
10639
10662
  }
10640
10663
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
@@ -10792,7 +10815,7 @@ function Tabs(props) {
10792
10815
  return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
10793
10816
  }) });
10794
10817
  }
10795
- const ShowContent_1947rqs = "";
10818
+ const ShowContent_fjwscu = "";
10796
10819
  const ShowContentWrapperStyle = "s9agep2";
10797
10820
  const BackButton = "bo89gfi";
10798
10821
  const ToolBarWrapper = "t1ohe42f";
@@ -10973,7 +10996,11 @@ const ShowContent = (props) => {
10973
10996
  children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
10974
10997
  gutter: [24, 8],
10975
10998
  children: renderFields(area.fields, area.type, !!group.title)
10976
- }, index), index !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {}) : null]
10999
+ }, index), index !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
11000
+ style: {
11001
+ margin: "8px 0 12px 0"
11002
+ }
11003
+ }) : null]
10977
11004
  }))
10978
11005
  }, group.title);
10979
11006
  })
@@ -10991,20 +11018,37 @@ const ShowContent = (props) => {
10991
11018
  }), tabs]
10992
11019
  });
10993
11020
  };
11021
+ const KeyValueSecret_1nzeh2v = "";
11022
+ const ButtonStyle = "b11tbgf7";
10994
11023
  function KeyValueSecret(props) {
10995
- const { data: data2 = {} } = props;
10996
- const { i18n: i18n2 } = useTranslation();
11024
+ const {
11025
+ data: data2 = {}
11026
+ } = props;
11027
+ const {
11028
+ i18n: i18n2
11029
+ } = useTranslation();
10997
11030
  const [hideSecret, setHideSecret] = useState(true);
10998
- const toggleButton = /* @__PURE__ */ jsxRuntimeExports.jsx(
10999
- Button,
11000
- {
11001
- type: "quiet",
11002
- prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: hideSecret ? ViewEye16GrayIcon : EntityFilterIgnoreGradient16GrayIcon }),
11003
- onClick: () => setHideSecret((v) => !v),
11004
- children: hideSecret ? i18n2.t("dovetail.show_data_value") : i18n2.t("dovetail.hide_data_value")
11005
- }
11006
- );
11007
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ShowGroupComponent, { title: i18n2.t("dovetail.data"), operationEle: toggleButton, children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValue, { data: data2, hideSecret, empty: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.data") }) }) });
11031
+ const toggleButton = /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
11032
+ type: "quiet",
11033
+ prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
11034
+ src: hideSecret ? ViewEye16GradientGrayIcon : EntityFilterIgnoreGradient16GrayIcon
11035
+ }),
11036
+ onClick: () => setHideSecret((v) => !v),
11037
+ className: ButtonStyle,
11038
+ size: "small",
11039
+ children: hideSecret ? i18n2.t("dovetail.show_data_value") : i18n2.t("dovetail.hide_data_value")
11040
+ });
11041
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ShowGroupComponent, {
11042
+ title: i18n2.t("dovetail.data"),
11043
+ operationEle: toggleButton,
11044
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValue, {
11045
+ data: data2,
11046
+ hideSecret,
11047
+ empty: i18n2.t("dovetail.no_resource", {
11048
+ kind: i18n2.t("dovetail.data")
11049
+ })
11050
+ })
11051
+ });
11008
11052
  }
11009
11053
  const WorkloadPodsTable_1giuese = "";
11010
11054
  const WorkloadPodsTable = ({
@@ -11044,13 +11088,14 @@ const WorkloadPodsTable = ({
11044
11088
  sortable: true
11045
11089
  }, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
11046
11090
  if ((dataSource == null ? void 0 : dataSource.length) === 0) {
11047
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
11091
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
11048
11092
  errorText: i18n2.t("dovetail.no_resource", {
11049
11093
  kind: ` ${i18n2.t("dovetail.pod")}`
11050
11094
  }),
11051
11095
  style: {
11052
11096
  padding: "15px 0"
11053
- }
11097
+ },
11098
+ type: ErrorContentType.Card
11054
11099
  });
11055
11100
  }
11056
11101
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
@@ -17427,7 +17472,7 @@ const PodLog = ({
17427
17472
  })]
17428
17473
  }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
17429
17474
  className: ContentStyle$1,
17430
- children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
17475
+ children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
17431
17476
  style: {
17432
17477
  height: "100%"
17433
17478
  },
@@ -17653,13 +17698,14 @@ const NetworkPolicyRulesViewer = ({
17653
17698
  t: t2
17654
17699
  } = useTranslation();
17655
17700
  if (!ingressOrEgress) {
17656
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
17701
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
17657
17702
  errorText: t2("dovetail.no_resource", {
17658
17703
  kind: kind || t2("dovetail.rule")
17659
17704
  }),
17660
17705
  style: {
17661
17706
  padding: "15px 0"
17662
- }
17707
+ },
17708
+ type: ErrorContentType.Card
17663
17709
  });
17664
17710
  }
17665
17711
  return /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$1, {
@@ -17740,7 +17786,14 @@ const PodContainersTable = ({
17740
17786
  [containerStatuses, initContainerStatuses]
17741
17787
  );
17742
17788
  if (dataSource.length === 0) {
17743
- return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }), style: { padding: "15px 0" } });
17789
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
17790
+ WidgetErrorContent,
17791
+ {
17792
+ errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }),
17793
+ style: { padding: "15px 0" },
17794
+ type: ErrorContentType.Card
17795
+ }
17796
+ );
17744
17797
  }
17745
17798
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17746
17799
  Table$1,
@@ -18197,16 +18250,17 @@ function parseJSON(value2) {
18197
18250
  return void 0;
18198
18251
  }
18199
18252
  }
18200
- const index_ccf0kl = "";
18253
+ const index_1uuzt53 = "";
18201
18254
  const SelectStyle = "sj0ggy";
18202
- const SearchInputStyle = "s1eo8uqs";
18203
- const SelectContentStyle = "s64gojc";
18204
- const TokenStyle = "t16fqgtu";
18205
- const CountTokenStyle = "cgaujbg";
18206
- const SelectOptionGroupStyle = "s1vbd54v";
18207
- const LabelWrapperStyle = "lxzmtrx";
18208
- const AllNamespaceOptionStyle = "aqrghwd";
18209
- const OptionStyle = "opi7z1z";
18255
+ const DropdownStyle = "d1eo8uqs";
18256
+ const SearchInputStyle = "s64gojc";
18257
+ const SelectContentStyle = "s16fqgtu";
18258
+ const TokenStyle = "tgaujbg";
18259
+ const CountTokenStyle = "c1vbd54v";
18260
+ const SelectOptionGroupStyle = "sxzmtrx";
18261
+ const LabelWrapperStyle = "lqrghwd";
18262
+ const AllNamespaceOptionStyle = "api7z1z";
18263
+ const OptionStyle = "o38b23x";
18210
18264
  const NS_STORE_KEY = "namespace-filter";
18211
18265
  const ALL_NS = "_all";
18212
18266
  const useNamespacesFilter = () => {
@@ -18241,9 +18295,10 @@ const NamespacesFilter = ({
18241
18295
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
18242
18296
  loading: isLoading,
18243
18297
  style: {
18244
- width: 256
18298
+ width: 278
18245
18299
  },
18246
18300
  className: cx_default(SelectStyle, className),
18301
+ dropdownClassName: DropdownStyle,
18247
18302
  searchValue: search,
18248
18303
  virtual: false,
18249
18304
  input: {
@@ -18277,12 +18332,13 @@ const NamespacesFilter = ({
18277
18332
  const isAll = value22 === ALL_NS;
18278
18333
  return isAll ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
18279
18334
  style: {
18280
- marginLeft: 12
18335
+ marginLeft: 8
18281
18336
  },
18282
18337
  children: label2
18283
18338
  }) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.token, {
18284
18339
  className: cx_default(isCountToken ? CountTokenStyle : TokenStyle, isCountToken ? "" : "closable-token"),
18285
18340
  closable,
18341
+ size: "medium",
18286
18342
  onClose,
18287
18343
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
18288
18344
  content: isCountToken ? label2.replace(/[\s\.]/g, "") : label2
@@ -18352,7 +18408,9 @@ function ListPage(props) {
18352
18408
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
18353
18409
  style: {
18354
18410
  margin: 0,
18355
- minHeight: 1
18411
+ minHeight: 1,
18412
+ marginRight: 24,
18413
+ width: "calc(100% - 24px)"
18356
18414
  }
18357
18415
  }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18358
18416
  className: ListContentStyle,
@@ -18360,7 +18418,7 @@ function ListPage(props) {
18360
18418
  className: NamespaceFilterStyle
18361
18419
  }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18362
18420
  className: TableStyle,
18363
- children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
18421
+ children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
18364
18422
  errorText: tableProps.empty || t2("dovetail.no_resource", {
18365
18423
  kind: ` ${config.kind}`
18366
18424
  })
@@ -21652,6 +21710,11 @@ const RefineFormContent = (props) => {
21652
21710
  meta: {}
21653
21711
  });
21654
21712
  }
21713
+ if (action === "edit" && c2.key === "name") {
21714
+ ele = /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
21715
+ children: value2
21716
+ });
21717
+ }
21655
21718
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
21656
21719
  label: c2.label,
21657
21720
  labelCol: {
@@ -22214,7 +22277,7 @@ const useRefineForm = (props) => {
22214
22277
  message: i18n2.t(
22215
22278
  id ? "dovetail.edit_resource_success" : "dovetail.create_success_toast",
22216
22279
  {
22217
- resource: config.name,
22280
+ kind: formValue.kind,
22218
22281
  name: formValue.metadata.name,
22219
22282
  interpolation: { escapeValue: false }
22220
22283
  }
@@ -22249,7 +22312,7 @@ const Separator = () => {
22249
22312
  });
22250
22313
  };
22251
22314
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
22252
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-1aeca078.js"));
22315
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-5aa83c05.js"));
22253
22316
  const YamlEditorComponent = forwardRef(
22254
22317
  function YamlEditorComponent2(props, ref) {
22255
22318
  const {
@@ -22914,7 +22977,7 @@ function YamlForm(props) {
22914
22977
  isEdit: action === "edit"
22915
22978
  })
22916
22979
  })]
22917
- }) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
22980
+ }) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
22918
22981
  errorText: t2("dovetail.fetch_schema_fail"),
22919
22982
  refetch: fetchSchema
22920
22983
  });
@@ -22972,7 +23035,8 @@ function FormModal(props) {
22972
23035
  refineProps: {
22973
23036
  onMutationSuccess: () => {
22974
23037
  popModal();
22975
- }
23038
+ },
23039
+ redirect: false
22976
23040
  }
22977
23041
  });
22978
23042
  const isYamlForm = !((_a = config.formConfig) == null ? void 0 : _a.fields);
@@ -23359,7 +23423,7 @@ const IngressRulesComponent = ({ ingress }) => {
23359
23423
  const divider = " > ";
23360
23424
  let pre = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: r2.fullPath });
23361
23425
  if (r2.fullPath.includes("http") && !r2.fullPath.includes("*")) {
23362
- pre = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { href: r2.fullPath, children: r2.fullPath });
23426
+ pre = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { href: r2.fullPath, target: "_blank", children: r2.fullPath });
23363
23427
  }
23364
23428
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
23365
23429
  kit.overflowTooltip,
@@ -23663,7 +23727,8 @@ function ServiceInClusterAccessTitle() {
23663
23727
  children: i18n2.t("dovetail.in_cluster_ip_desc")
23664
23728
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
23665
23729
  style: {
23666
- margin: "6px 0"
23730
+ margin: "6px 0",
23731
+ background: "rgba(107, 128, 167, 0.60)"
23667
23732
  }
23668
23733
  }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
23669
23734
  children: i18n2.t("dovetail.in_cluster_external_name_desc")
@@ -23710,7 +23775,9 @@ function ServiceOutClusterAccessTitle() {
23710
23775
  i18nKey: "dovetail.out_cluster_lb_desc"
23711
23776
  })
23712
23777
  }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
23713
- children: i18n2.t("dovetail.out_external_name_desc")
23778
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trans, {
23779
+ i18nKey: "dovetail.out_external_name_desc"
23780
+ })
23714
23781
  })]
23715
23782
  }),
23716
23783
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {