@dovetail-v2/refine 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MonacoYamlDiffEditor-90b9132b.js → MonacoYamlDiffEditor-b2da37e8.js} +1 -1
- package/dist/{index-f702bf6d.js → index-64df5871.js} +851 -696
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +840 -685
- package/dist/style.css +1 -1
- package/lib/src/components/Form/RefineFormContent.d.ts +2 -2
- package/lib/src/components/Form/type.d.ts +1 -5
- package/lib/src/components/Form/useReactHookForm.d.ts +29 -0
- package/lib/src/components/Form/useRefineForm.d.ts +1 -1
- package/lib/src/components/Table/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/refine.umd.cjs
CHANGED
|
@@ -31,301 +31,308 @@ var __publicField = (obj, key, value) => {
|
|
|
31
31
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
32
32
|
}
|
|
33
33
|
var dayjs_min = { exports: {} };
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
return
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
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();
|
|
112
|
-
}, m3.$utils = function() {
|
|
113
|
-
return b;
|
|
114
|
-
}, m3.isValid = function() {
|
|
115
|
-
return !(this.$d.toString() === l);
|
|
116
|
-
}, m3.isSame = function(t3, e3) {
|
|
117
|
-
var n3 = O(t3);
|
|
118
|
-
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
119
|
-
}, m3.isAfter = function(t3, e3) {
|
|
120
|
-
return O(t3) < this.startOf(e3);
|
|
121
|
-
}, m3.isBefore = function(t3, e3) {
|
|
122
|
-
return this.endOf(e3) < O(t3);
|
|
123
|
-
}, m3.$g = function(t3, e3, n3) {
|
|
124
|
-
return b.u(t3) ? this[e3] : this.set(n3, t3);
|
|
125
|
-
}, m3.unix = function() {
|
|
126
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
127
|
-
}, m3.valueOf = function() {
|
|
128
|
-
return this.$d.getTime();
|
|
129
|
-
}, m3.startOf = function(t3, e3) {
|
|
130
|
-
var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
|
|
131
|
-
var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
|
132
|
-
return r3 ? i3 : i3.endOf(a2);
|
|
133
|
-
}, $2 = function(t4, e4) {
|
|
134
|
-
return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
|
135
|
-
}, y2 = this.$W, M3 = this.$M, m4 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
136
|
-
switch (f2) {
|
|
137
|
-
case h:
|
|
138
|
-
return r3 ? l2(1, 0) : l2(31, 11);
|
|
139
|
-
case c2:
|
|
140
|
-
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
141
|
-
case o:
|
|
142
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
143
|
-
return l2(r3 ? m4 - D2 : m4 + (6 - D2), M3);
|
|
144
|
-
case a2:
|
|
145
|
-
case d:
|
|
146
|
-
return $2(v2 + "Hours", 0);
|
|
147
|
-
case u:
|
|
148
|
-
return $2(v2 + "Minutes", 1);
|
|
149
|
-
case s2:
|
|
150
|
-
return $2(v2 + "Seconds", 2);
|
|
151
|
-
case i2:
|
|
152
|
-
return $2(v2 + "Milliseconds", 3);
|
|
153
|
-
default:
|
|
154
|
-
return this.clone();
|
|
155
|
-
}
|
|
156
|
-
}, m3.endOf = function(t3) {
|
|
157
|
-
return this.startOf(t3, false);
|
|
158
|
-
}, m3.$set = function(t3, e3) {
|
|
159
|
-
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;
|
|
160
|
-
if (o2 === c2 || o2 === h) {
|
|
161
|
-
var y2 = this.clone().set(d, 1);
|
|
162
|
-
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
163
|
-
} else
|
|
164
|
-
l2 && this.$d[l2]($2);
|
|
165
|
-
return this.init(), this;
|
|
166
|
-
}, m3.set = function(t3, e3) {
|
|
167
|
-
return this.clone().$set(t3, e3);
|
|
168
|
-
}, m3.get = function(t3) {
|
|
169
|
-
return this[b.p(t3)]();
|
|
170
|
-
}, m3.add = function(r3, f2) {
|
|
171
|
-
var d2, l2 = this;
|
|
172
|
-
r3 = Number(r3);
|
|
173
|
-
var $2 = b.p(f2), y2 = function(t3) {
|
|
174
|
-
var e3 = O(l2);
|
|
175
|
-
return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
|
|
176
|
-
};
|
|
177
|
-
if ($2 === c2)
|
|
178
|
-
return this.set(c2, this.$M + r3);
|
|
179
|
-
if ($2 === h)
|
|
180
|
-
return this.set(h, this.$y + r3);
|
|
181
|
-
if ($2 === a2)
|
|
182
|
-
return y2(1);
|
|
183
|
-
if ($2 === o)
|
|
184
|
-
return y2(7);
|
|
185
|
-
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m4 = this.$d.getTime() + r3 * M3;
|
|
186
|
-
return b.w(m4, this);
|
|
187
|
-
}, m3.subtract = function(t3, e3) {
|
|
188
|
-
return this.add(-1 * t3, e3);
|
|
189
|
-
}, m3.format = function(t3) {
|
|
190
|
-
var e3 = this, n3 = this.$locale();
|
|
191
|
-
if (!this.isValid())
|
|
192
|
-
return n3.invalidDate || l;
|
|
193
|
-
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) {
|
|
194
|
-
return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
|
|
195
|
-
}, d2 = function(t4) {
|
|
196
|
-
return b.s(s3 % 12 || 12, t4, "0");
|
|
197
|
-
}, $2 = f2 || function(t4, e4, n4) {
|
|
198
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
199
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
200
|
-
};
|
|
201
|
-
return r3.replace(y, function(t4, r4) {
|
|
202
|
-
return r4 || function(t5) {
|
|
203
|
-
switch (t5) {
|
|
204
|
-
case "YY":
|
|
205
|
-
return String(e3.$y).slice(-2);
|
|
206
|
-
case "YYYY":
|
|
207
|
-
return b.s(e3.$y, 4, "0");
|
|
208
|
-
case "M":
|
|
209
|
-
return a3 + 1;
|
|
210
|
-
case "MM":
|
|
211
|
-
return b.s(a3 + 1, 2, "0");
|
|
212
|
-
case "MMM":
|
|
213
|
-
return h2(n3.monthsShort, a3, c3, 3);
|
|
214
|
-
case "MMMM":
|
|
215
|
-
return h2(c3, a3);
|
|
216
|
-
case "D":
|
|
217
|
-
return e3.$D;
|
|
218
|
-
case "DD":
|
|
219
|
-
return b.s(e3.$D, 2, "0");
|
|
220
|
-
case "d":
|
|
221
|
-
return String(e3.$W);
|
|
222
|
-
case "dd":
|
|
223
|
-
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
224
|
-
case "ddd":
|
|
225
|
-
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
226
|
-
case "dddd":
|
|
227
|
-
return o2[e3.$W];
|
|
228
|
-
case "H":
|
|
229
|
-
return String(s3);
|
|
230
|
-
case "HH":
|
|
231
|
-
return b.s(s3, 2, "0");
|
|
232
|
-
case "h":
|
|
233
|
-
return d2(1);
|
|
234
|
-
case "hh":
|
|
235
|
-
return d2(2);
|
|
236
|
-
case "a":
|
|
237
|
-
return $2(s3, u2, true);
|
|
238
|
-
case "A":
|
|
239
|
-
return $2(s3, u2, false);
|
|
240
|
-
case "m":
|
|
241
|
-
return String(u2);
|
|
242
|
-
case "mm":
|
|
243
|
-
return b.s(u2, 2, "0");
|
|
244
|
-
case "s":
|
|
245
|
-
return String(e3.$s);
|
|
246
|
-
case "ss":
|
|
247
|
-
return b.s(e3.$s, 2, "0");
|
|
248
|
-
case "SSS":
|
|
249
|
-
return b.s(e3.$ms, 3, "0");
|
|
250
|
-
case "Z":
|
|
251
|
-
return i3;
|
|
34
|
+
var hasRequiredDayjs_min;
|
|
35
|
+
function requireDayjs_min() {
|
|
36
|
+
if (hasRequiredDayjs_min)
|
|
37
|
+
return dayjs_min.exports;
|
|
38
|
+
hasRequiredDayjs_min = 1;
|
|
39
|
+
(function(module2, exports3) {
|
|
40
|
+
!function(t2, e2) {
|
|
41
|
+
module2.exports = e2();
|
|
42
|
+
}(commonjsGlobal, function() {
|
|
43
|
+
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) {
|
|
44
|
+
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
45
|
+
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
46
|
+
} }, m = function(t3, e3, n3) {
|
|
47
|
+
var r3 = String(t3);
|
|
48
|
+
return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
|
|
49
|
+
}, v = { s: m, z: function(t3) {
|
|
50
|
+
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
51
|
+
return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
|
|
52
|
+
}, m: function t3(e3, n3) {
|
|
53
|
+
if (e3.date() < n3.date())
|
|
54
|
+
return -t3(n3, e3);
|
|
55
|
+
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);
|
|
56
|
+
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
|
|
57
|
+
}, a: function(t3) {
|
|
58
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
59
|
+
}, p: function(t3) {
|
|
60
|
+
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$/, "");
|
|
61
|
+
}, u: function(t3) {
|
|
62
|
+
return void 0 === t3;
|
|
63
|
+
} }, g = "en", D = {};
|
|
64
|
+
D[g] = M;
|
|
65
|
+
var p = "$isDayjsObject", S = function(t3) {
|
|
66
|
+
return t3 instanceof _ || !(!t3 || !t3[p]);
|
|
67
|
+
}, w = function t3(e3, n3, r3) {
|
|
68
|
+
var i3;
|
|
69
|
+
if (!e3)
|
|
70
|
+
return g;
|
|
71
|
+
if ("string" == typeof e3) {
|
|
72
|
+
var s3 = e3.toLowerCase();
|
|
73
|
+
D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
|
|
74
|
+
var u2 = e3.split("-");
|
|
75
|
+
if (!i3 && u2.length > 1)
|
|
76
|
+
return t3(u2[0]);
|
|
77
|
+
} else {
|
|
78
|
+
var a3 = e3.name;
|
|
79
|
+
D[a3] = e3, i3 = a3;
|
|
80
|
+
}
|
|
81
|
+
return !r3 && i3 && (g = i3), i3 || !r3 && g;
|
|
82
|
+
}, O = function(t3, e3) {
|
|
83
|
+
if (S(t3))
|
|
84
|
+
return t3.clone();
|
|
85
|
+
var n3 = "object" == typeof e3 ? e3 : {};
|
|
86
|
+
return n3.date = t3, n3.args = arguments, new _(n3);
|
|
87
|
+
}, b = v;
|
|
88
|
+
b.l = w, b.i = S, b.w = function(t3, e3) {
|
|
89
|
+
return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
|
90
|
+
};
|
|
91
|
+
var _ = function() {
|
|
92
|
+
function M2(t3) {
|
|
93
|
+
this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
|
|
94
|
+
}
|
|
95
|
+
var m2 = M2.prototype;
|
|
96
|
+
return m2.parse = function(t3) {
|
|
97
|
+
this.$d = function(t4) {
|
|
98
|
+
var e3 = t4.date, n3 = t4.utc;
|
|
99
|
+
if (null === e3)
|
|
100
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
101
|
+
if (b.u(e3))
|
|
102
|
+
return /* @__PURE__ */ new Date();
|
|
103
|
+
if (e3 instanceof Date)
|
|
104
|
+
return new Date(e3);
|
|
105
|
+
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
106
|
+
var r3 = e3.match($);
|
|
107
|
+
if (r3) {
|
|
108
|
+
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
109
|
+
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);
|
|
110
|
+
}
|
|
252
111
|
}
|
|
253
|
-
return
|
|
254
|
-
}(
|
|
255
|
-
})
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
112
|
+
return new Date(e3);
|
|
113
|
+
}(t3), this.init();
|
|
114
|
+
}, m2.init = function() {
|
|
115
|
+
var t3 = this.$d;
|
|
116
|
+
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();
|
|
117
|
+
}, m2.$utils = function() {
|
|
118
|
+
return b;
|
|
119
|
+
}, m2.isValid = function() {
|
|
120
|
+
return !(this.$d.toString() === l);
|
|
121
|
+
}, m2.isSame = function(t3, e3) {
|
|
122
|
+
var n3 = O(t3);
|
|
123
|
+
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
124
|
+
}, m2.isAfter = function(t3, e3) {
|
|
125
|
+
return O(t3) < this.startOf(e3);
|
|
126
|
+
}, m2.isBefore = function(t3, e3) {
|
|
127
|
+
return this.endOf(e3) < O(t3);
|
|
128
|
+
}, m2.$g = function(t3, e3, n3) {
|
|
129
|
+
return b.u(t3) ? this[e3] : this.set(n3, t3);
|
|
130
|
+
}, m2.unix = function() {
|
|
131
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
132
|
+
}, m2.valueOf = function() {
|
|
133
|
+
return this.$d.getTime();
|
|
134
|
+
}, m2.startOf = function(t3, e3) {
|
|
135
|
+
var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
|
|
136
|
+
var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
|
137
|
+
return r3 ? i3 : i3.endOf(a2);
|
|
138
|
+
}, $2 = function(t4, e4) {
|
|
139
|
+
return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
|
140
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
141
|
+
switch (f2) {
|
|
142
|
+
case h:
|
|
143
|
+
return r3 ? l2(1, 0) : l2(31, 11);
|
|
144
|
+
case c2:
|
|
145
|
+
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
146
|
+
case o:
|
|
147
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
148
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
149
|
+
case a2:
|
|
150
|
+
case d:
|
|
151
|
+
return $2(v2 + "Hours", 0);
|
|
152
|
+
case u:
|
|
153
|
+
return $2(v2 + "Minutes", 1);
|
|
154
|
+
case s2:
|
|
155
|
+
return $2(v2 + "Seconds", 2);
|
|
156
|
+
case i2:
|
|
157
|
+
return $2(v2 + "Milliseconds", 3);
|
|
158
|
+
default:
|
|
159
|
+
return this.clone();
|
|
160
|
+
}
|
|
161
|
+
}, m2.endOf = function(t3) {
|
|
162
|
+
return this.startOf(t3, false);
|
|
163
|
+
}, m2.$set = function(t3, e3) {
|
|
164
|
+
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;
|
|
165
|
+
if (o2 === c2 || o2 === h) {
|
|
166
|
+
var y2 = this.clone().set(d, 1);
|
|
167
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
168
|
+
} else
|
|
169
|
+
l2 && this.$d[l2]($2);
|
|
170
|
+
return this.init(), this;
|
|
171
|
+
}, m2.set = function(t3, e3) {
|
|
172
|
+
return this.clone().$set(t3, e3);
|
|
173
|
+
}, m2.get = function(t3) {
|
|
174
|
+
return this[b.p(t3)]();
|
|
175
|
+
}, m2.add = function(r3, f2) {
|
|
176
|
+
var d2, l2 = this;
|
|
177
|
+
r3 = Number(r3);
|
|
178
|
+
var $2 = b.p(f2), y2 = function(t3) {
|
|
179
|
+
var e3 = O(l2);
|
|
180
|
+
return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
|
|
181
|
+
};
|
|
182
|
+
if ($2 === c2)
|
|
183
|
+
return this.set(c2, this.$M + r3);
|
|
184
|
+
if ($2 === h)
|
|
185
|
+
return this.set(h, this.$y + r3);
|
|
186
|
+
if ($2 === a2)
|
|
187
|
+
return y2(1);
|
|
188
|
+
if ($2 === o)
|
|
189
|
+
return y2(7);
|
|
190
|
+
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
191
|
+
return b.w(m3, this);
|
|
192
|
+
}, m2.subtract = function(t3, e3) {
|
|
193
|
+
return this.add(-1 * t3, e3);
|
|
194
|
+
}, m2.format = function(t3) {
|
|
195
|
+
var e3 = this, n3 = this.$locale();
|
|
196
|
+
if (!this.isValid())
|
|
197
|
+
return n3.invalidDate || l;
|
|
198
|
+
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) {
|
|
199
|
+
return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
|
|
200
|
+
}, d2 = function(t4) {
|
|
201
|
+
return b.s(s3 % 12 || 12, t4, "0");
|
|
202
|
+
}, $2 = f2 || function(t4, e4, n4) {
|
|
203
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
204
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
205
|
+
};
|
|
206
|
+
return r3.replace(y, function(t4, r4) {
|
|
207
|
+
return r4 || function(t5) {
|
|
208
|
+
switch (t5) {
|
|
209
|
+
case "YY":
|
|
210
|
+
return String(e3.$y).slice(-2);
|
|
211
|
+
case "YYYY":
|
|
212
|
+
return b.s(e3.$y, 4, "0");
|
|
213
|
+
case "M":
|
|
214
|
+
return a3 + 1;
|
|
215
|
+
case "MM":
|
|
216
|
+
return b.s(a3 + 1, 2, "0");
|
|
217
|
+
case "MMM":
|
|
218
|
+
return h2(n3.monthsShort, a3, c3, 3);
|
|
219
|
+
case "MMMM":
|
|
220
|
+
return h2(c3, a3);
|
|
221
|
+
case "D":
|
|
222
|
+
return e3.$D;
|
|
223
|
+
case "DD":
|
|
224
|
+
return b.s(e3.$D, 2, "0");
|
|
225
|
+
case "d":
|
|
226
|
+
return String(e3.$W);
|
|
227
|
+
case "dd":
|
|
228
|
+
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
229
|
+
case "ddd":
|
|
230
|
+
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
231
|
+
case "dddd":
|
|
232
|
+
return o2[e3.$W];
|
|
233
|
+
case "H":
|
|
234
|
+
return String(s3);
|
|
235
|
+
case "HH":
|
|
236
|
+
return b.s(s3, 2, "0");
|
|
237
|
+
case "h":
|
|
238
|
+
return d2(1);
|
|
239
|
+
case "hh":
|
|
240
|
+
return d2(2);
|
|
241
|
+
case "a":
|
|
242
|
+
return $2(s3, u2, true);
|
|
243
|
+
case "A":
|
|
244
|
+
return $2(s3, u2, false);
|
|
245
|
+
case "m":
|
|
246
|
+
return String(u2);
|
|
247
|
+
case "mm":
|
|
248
|
+
return b.s(u2, 2, "0");
|
|
249
|
+
case "s":
|
|
250
|
+
return String(e3.$s);
|
|
251
|
+
case "ss":
|
|
252
|
+
return b.s(e3.$s, 2, "0");
|
|
253
|
+
case "SSS":
|
|
254
|
+
return b.s(e3.$ms, 3, "0");
|
|
255
|
+
case "Z":
|
|
256
|
+
return i3;
|
|
257
|
+
}
|
|
258
|
+
return null;
|
|
259
|
+
}(t4) || i3.replace(":", "");
|
|
260
|
+
});
|
|
261
|
+
}, m2.utcOffset = function() {
|
|
262
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
263
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
264
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
265
|
+
return b.m(y2, m3);
|
|
266
|
+
};
|
|
267
|
+
switch (M3) {
|
|
268
|
+
case h:
|
|
269
|
+
$2 = D2() / 12;
|
|
270
|
+
break;
|
|
271
|
+
case c2:
|
|
272
|
+
$2 = D2();
|
|
273
|
+
break;
|
|
274
|
+
case f:
|
|
275
|
+
$2 = D2() / 3;
|
|
276
|
+
break;
|
|
277
|
+
case o:
|
|
278
|
+
$2 = (g2 - v2) / 6048e5;
|
|
279
|
+
break;
|
|
280
|
+
case a2:
|
|
281
|
+
$2 = (g2 - v2) / 864e5;
|
|
282
|
+
break;
|
|
283
|
+
case u:
|
|
284
|
+
$2 = g2 / n2;
|
|
285
|
+
break;
|
|
286
|
+
case s2:
|
|
287
|
+
$2 = g2 / e2;
|
|
288
|
+
break;
|
|
289
|
+
case i2:
|
|
290
|
+
$2 = g2 / t2;
|
|
291
|
+
break;
|
|
292
|
+
default:
|
|
293
|
+
$2 = g2;
|
|
294
|
+
}
|
|
295
|
+
return l2 ? $2 : b.a($2);
|
|
296
|
+
}, m2.daysInMonth = function() {
|
|
297
|
+
return this.endOf(c2).$D;
|
|
298
|
+
}, m2.$locale = function() {
|
|
299
|
+
return D[this.$L];
|
|
300
|
+
}, m2.locale = function(t3, e3) {
|
|
301
|
+
if (!t3)
|
|
302
|
+
return this.$L;
|
|
303
|
+
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
304
|
+
return r3 && (n3.$L = r3), n3;
|
|
305
|
+
}, m2.clone = function() {
|
|
306
|
+
return b.w(this.$d, this);
|
|
307
|
+
}, m2.toDate = function() {
|
|
308
|
+
return new Date(this.valueOf());
|
|
309
|
+
}, m2.toJSON = function() {
|
|
310
|
+
return this.isValid() ? this.toISOString() : null;
|
|
311
|
+
}, m2.toISOString = function() {
|
|
312
|
+
return this.$d.toISOString();
|
|
313
|
+
}, m2.toString = function() {
|
|
314
|
+
return this.$d.toUTCString();
|
|
315
|
+
}, M2;
|
|
316
|
+
}(), k = _.prototype;
|
|
317
|
+
return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
318
|
+
k[t3[1]] = function(e3) {
|
|
319
|
+
return this.$g(e3, t3[0], t3[1]);
|
|
261
320
|
};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
case o:
|
|
273
|
-
$2 = (g2 - v2) / 6048e5;
|
|
274
|
-
break;
|
|
275
|
-
case a2:
|
|
276
|
-
$2 = (g2 - v2) / 864e5;
|
|
277
|
-
break;
|
|
278
|
-
case u:
|
|
279
|
-
$2 = g2 / n2;
|
|
280
|
-
break;
|
|
281
|
-
case s2:
|
|
282
|
-
$2 = g2 / e2;
|
|
283
|
-
break;
|
|
284
|
-
case i2:
|
|
285
|
-
$2 = g2 / t2;
|
|
286
|
-
break;
|
|
287
|
-
default:
|
|
288
|
-
$2 = g2;
|
|
289
|
-
}
|
|
290
|
-
return l2 ? $2 : b.a($2);
|
|
291
|
-
}, m3.daysInMonth = function() {
|
|
292
|
-
return this.endOf(c2).$D;
|
|
293
|
-
}, m3.$locale = function() {
|
|
294
|
-
return D[this.$L];
|
|
295
|
-
}, m3.locale = function(t3, e3) {
|
|
296
|
-
if (!t3)
|
|
297
|
-
return this.$L;
|
|
298
|
-
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
299
|
-
return r3 && (n3.$L = r3), n3;
|
|
300
|
-
}, m3.clone = function() {
|
|
301
|
-
return b.w(this.$d, this);
|
|
302
|
-
}, m3.toDate = function() {
|
|
303
|
-
return new Date(this.valueOf());
|
|
304
|
-
}, m3.toJSON = function() {
|
|
305
|
-
return this.isValid() ? this.toISOString() : null;
|
|
306
|
-
}, m3.toISOString = function() {
|
|
307
|
-
return this.$d.toISOString();
|
|
308
|
-
}, m3.toString = function() {
|
|
309
|
-
return this.$d.toUTCString();
|
|
310
|
-
}, M2;
|
|
311
|
-
}(), k = _.prototype;
|
|
312
|
-
return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
313
|
-
k[t3[1]] = function(e3) {
|
|
314
|
-
return this.$g(e3, t3[0], t3[1]);
|
|
315
|
-
};
|
|
316
|
-
}), O.extend = function(t3, e3) {
|
|
317
|
-
return t3.$i || (t3(e3, _, O), t3.$i = true), O;
|
|
318
|
-
}, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
|
|
319
|
-
return O(1e3 * t3);
|
|
320
|
-
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
321
|
-
});
|
|
322
|
-
})(dayjs_min);
|
|
323
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
321
|
+
}), O.extend = function(t3, e3) {
|
|
322
|
+
return t3.$i || (t3(e3, _, O), t3.$i = true), O;
|
|
323
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
|
|
324
|
+
return O(1e3 * t3);
|
|
325
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
326
|
+
});
|
|
327
|
+
})(dayjs_min);
|
|
328
|
+
return dayjs_min.exports;
|
|
329
|
+
}
|
|
330
|
+
var dayjs_minExports = requireDayjs_min();
|
|
324
331
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
325
332
|
var zh = { exports: {} };
|
|
326
333
|
(function(module2, exports3) {
|
|
327
334
|
!function(e2, _) {
|
|
328
|
-
module2.exports = _(
|
|
335
|
+
module2.exports = _(requireDayjs_min());
|
|
329
336
|
}(commonjsGlobal, function(e2) {
|
|
330
337
|
function _(e3) {
|
|
331
338
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
@@ -404,23 +411,23 @@ var __publicField = (obj, key, value) => {
|
|
|
404
411
|
}
|
|
405
412
|
var c = { parse: function(e2, t2) {
|
|
406
413
|
t2 || (t2 = {}), t2.components || (t2.components = s);
|
|
407
|
-
var a2, c2 = [], o = [], l = -1,
|
|
414
|
+
var a2, c2 = [], o = [], l = -1, m = false;
|
|
408
415
|
if (0 !== e2.indexOf("<")) {
|
|
409
416
|
var u = e2.indexOf("<");
|
|
410
417
|
c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
|
|
411
418
|
}
|
|
412
419
|
return e2.replace(r, function(r2, s2) {
|
|
413
|
-
if (
|
|
420
|
+
if (m) {
|
|
414
421
|
if (r2 !== "</" + a2.name + ">")
|
|
415
422
|
return;
|
|
416
|
-
|
|
423
|
+
m = false;
|
|
417
424
|
}
|
|
418
425
|
var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
|
|
419
426
|
if (h) {
|
|
420
427
|
var v = n(r2);
|
|
421
428
|
return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
|
|
422
429
|
}
|
|
423
|
-
if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component",
|
|
430
|
+
if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
|
|
424
431
|
u2 = -1 === l ? c2 : o[l].children;
|
|
425
432
|
var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
|
|
426
433
|
i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
|
|
@@ -539,7 +546,7 @@ var __publicField = (obj, key, value) => {
|
|
|
539
546
|
"/": "/",
|
|
540
547
|
"/": "/"
|
|
541
548
|
};
|
|
542
|
-
const unescapeHtmlEntity = (
|
|
549
|
+
const unescapeHtmlEntity = (m) => htmlEntities[m];
|
|
543
550
|
const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
544
551
|
let defaultOptions$1 = {
|
|
545
552
|
bindI18n: "languageChanged",
|
|
@@ -1592,7 +1599,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1592
1599
|
g = h("react.element");
|
|
1593
1600
|
reactJsxRuntime_production_min.Fragment = h("react.fragment");
|
|
1594
1601
|
}
|
|
1595
|
-
var
|
|
1602
|
+
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
|
|
1596
1603
|
function q(c2, a2, k) {
|
|
1597
1604
|
var b, d = {}, e2 = null, l = null;
|
|
1598
1605
|
void 0 !== k && (e2 = "" + k);
|
|
@@ -1603,7 +1610,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1603
1610
|
if (c2 && c2.defaultProps)
|
|
1604
1611
|
for (b in a2 = c2.defaultProps, a2)
|
|
1605
1612
|
void 0 === d[b] && (d[b] = a2[b]);
|
|
1606
|
-
return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner:
|
|
1613
|
+
return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner: m.current };
|
|
1607
1614
|
}
|
|
1608
1615
|
reactJsxRuntime_production_min.jsx = q;
|
|
1609
1616
|
reactJsxRuntime_production_min.jsxs = q;
|
|
@@ -8408,7 +8415,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8408
8415
|
/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
|
|
8409
8416
|
] });
|
|
8410
8417
|
}
|
|
8411
|
-
function memoize$
|
|
8418
|
+
function memoize$2(fn) {
|
|
8412
8419
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
8413
8420
|
return function(arg) {
|
|
8414
8421
|
if (cache[arg] === void 0)
|
|
@@ -8417,7 +8424,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8417
8424
|
};
|
|
8418
8425
|
}
|
|
8419
8426
|
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
8420
|
-
var isPropValid = /* @__PURE__ */ memoize$
|
|
8427
|
+
var isPropValid = /* @__PURE__ */ memoize$2(
|
|
8421
8428
|
function(prop) {
|
|
8422
8429
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
8423
8430
|
}
|
|
@@ -8607,7 +8614,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8607
8614
|
columns,
|
|
8608
8615
|
scroll,
|
|
8609
8616
|
currentPage,
|
|
8610
|
-
|
|
8617
|
+
defaultSize,
|
|
8618
|
+
total,
|
|
8611
8619
|
RowMenu,
|
|
8612
8620
|
refetch,
|
|
8613
8621
|
onPageChange,
|
|
@@ -8618,9 +8626,9 @@ var __publicField = (obj, key, value) => {
|
|
|
8618
8626
|
const wrapperRef = React.useRef(null);
|
|
8619
8627
|
const pagination = React.useMemo(() => ({
|
|
8620
8628
|
current: currentPage,
|
|
8621
|
-
pageSize:
|
|
8629
|
+
pageSize: defaultSize,
|
|
8622
8630
|
onChange: onPageChange
|
|
8623
|
-
}), [currentPage,
|
|
8631
|
+
}), [currentPage, defaultSize, onPageChange]);
|
|
8624
8632
|
const finalColumns = React.useMemo(() => {
|
|
8625
8633
|
if (RowMenu) {
|
|
8626
8634
|
const actionColumn = {
|
|
@@ -8673,8 +8681,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8673
8681
|
ref: auxiliaryLineRef
|
|
8674
8682
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
|
|
8675
8683
|
current: currentPage,
|
|
8676
|
-
size:
|
|
8677
|
-
count:
|
|
8684
|
+
size: defaultSize,
|
|
8685
|
+
count: total,
|
|
8678
8686
|
onChange: onPageChange,
|
|
8679
8687
|
onSizeChange
|
|
8680
8688
|
})]
|
|
@@ -8698,14 +8706,16 @@ var __publicField = (obj, key, value) => {
|
|
|
8698
8706
|
display: true,
|
|
8699
8707
|
dataIndex: "key",
|
|
8700
8708
|
title: t2("dovetail.key"),
|
|
8701
|
-
sortable: true
|
|
8709
|
+
sortable: true,
|
|
8710
|
+
width: "50%"
|
|
8702
8711
|
},
|
|
8703
8712
|
{
|
|
8704
8713
|
key: "value",
|
|
8705
8714
|
display: true,
|
|
8706
8715
|
dataIndex: "value",
|
|
8707
8716
|
title: t2("dovetail.value"),
|
|
8708
|
-
sortable: true
|
|
8717
|
+
sortable: true,
|
|
8718
|
+
width: "50%"
|
|
8709
8719
|
}
|
|
8710
8720
|
];
|
|
8711
8721
|
if (datas.length === 0) {
|
|
@@ -8728,7 +8738,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8728
8738
|
columns: addDefaultRenderToColumns(columns),
|
|
8729
8739
|
rowKey: "key",
|
|
8730
8740
|
empty: t2("dovetail.empty"),
|
|
8731
|
-
currentSize,
|
|
8741
|
+
defaultSize: currentSize,
|
|
8732
8742
|
currentPage,
|
|
8733
8743
|
onPageChange: setCurrentPage,
|
|
8734
8744
|
showMenuColumn: false
|
|
@@ -8747,35 +8757,40 @@ var __publicField = (obj, key, value) => {
|
|
|
8747
8757
|
display: true,
|
|
8748
8758
|
dataIndex: "name",
|
|
8749
8759
|
title: t2("dovetail.name"),
|
|
8750
|
-
sortable: true
|
|
8760
|
+
sortable: true,
|
|
8761
|
+
width: 267
|
|
8751
8762
|
},
|
|
8752
8763
|
{
|
|
8753
8764
|
key: "servicePort",
|
|
8754
8765
|
display: true,
|
|
8755
8766
|
dataIndex: "port",
|
|
8756
8767
|
title: t2("dovetail.service_port"),
|
|
8757
|
-
sortable: true
|
|
8768
|
+
sortable: true,
|
|
8769
|
+
width: 199
|
|
8758
8770
|
},
|
|
8759
8771
|
{
|
|
8760
8772
|
key: "protocol",
|
|
8761
8773
|
display: true,
|
|
8762
8774
|
dataIndex: "protocol",
|
|
8763
8775
|
title: t2("dovetail.protocol"),
|
|
8764
|
-
sortable: true
|
|
8776
|
+
sortable: true,
|
|
8777
|
+
width: 199
|
|
8765
8778
|
},
|
|
8766
8779
|
{
|
|
8767
8780
|
key: "podPort",
|
|
8768
8781
|
display: true,
|
|
8769
8782
|
dataIndex: "targetPort",
|
|
8770
8783
|
title: t2("dovetail.pod_port"),
|
|
8771
|
-
sortable: true
|
|
8784
|
+
sortable: true,
|
|
8785
|
+
width: 199
|
|
8772
8786
|
},
|
|
8773
8787
|
{
|
|
8774
8788
|
key: "nodePort",
|
|
8775
8789
|
display: true,
|
|
8776
8790
|
dataIndex: "nodePort",
|
|
8777
8791
|
title: t2("dovetail.node_port"),
|
|
8778
|
-
sortable: true
|
|
8792
|
+
sortable: true,
|
|
8793
|
+
width: 199
|
|
8779
8794
|
}
|
|
8780
8795
|
];
|
|
8781
8796
|
const ports = (service._rawYaml.spec.ports || []).map((port2) => ({
|
|
@@ -8802,7 +8817,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8802
8817
|
columns: addDefaultRenderToColumns(columns),
|
|
8803
8818
|
rowKey: "name",
|
|
8804
8819
|
empty: t2("dovetail.empty"),
|
|
8805
|
-
currentSize,
|
|
8820
|
+
defaultSize: currentSize,
|
|
8806
8821
|
currentPage,
|
|
8807
8822
|
onPageChange: setCurrentPage,
|
|
8808
8823
|
showMenuColumn: false
|
|
@@ -10023,7 +10038,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10023
10038
|
return n2.fromToBase(r3, e3, t3, o2);
|
|
10024
10039
|
}
|
|
10025
10040
|
t2.en.relativeTime = o, n2.fromToBase = function(e3, n3, i3, d2, u) {
|
|
10026
|
-
for (var f, a2, s2, l = i3.$locale().relativeTime || o, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }],
|
|
10041
|
+
for (var f, a2, s2, l = i3.$locale().relativeTime || o, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c2 = 0; c2 < m; c2 += 1) {
|
|
10027
10042
|
var y = h[c2];
|
|
10028
10043
|
y.d && (f = d2 ? t2(e3).diff(i3, y.d, true) : i3.diff(e3, y.d, true));
|
|
10029
10044
|
var p = (r2.rounding || Math.round)(Math.abs(f));
|
|
@@ -10129,6 +10144,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10129
10144
|
display: true,
|
|
10130
10145
|
dataIndex: "type",
|
|
10131
10146
|
title: t2("dovetail.type"),
|
|
10147
|
+
width: 120,
|
|
10132
10148
|
sortable: true
|
|
10133
10149
|
},
|
|
10134
10150
|
{
|
|
@@ -10144,6 +10160,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10144
10160
|
};
|
|
10145
10161
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
|
|
10146
10162
|
},
|
|
10163
|
+
width: 120,
|
|
10147
10164
|
sortable: true
|
|
10148
10165
|
},
|
|
10149
10166
|
{
|
|
@@ -10152,6 +10169,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10152
10169
|
dataIndex: "lastUpdateTime",
|
|
10153
10170
|
title: t2("dovetail.updated_time"),
|
|
10154
10171
|
sortable: true,
|
|
10172
|
+
width: 120,
|
|
10155
10173
|
render: (value2, record) => {
|
|
10156
10174
|
const time = value2 || record.lastTransitionTime;
|
|
10157
10175
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
|
|
@@ -10162,14 +10180,16 @@ var __publicField = (obj, key, value) => {
|
|
|
10162
10180
|
display: true,
|
|
10163
10181
|
dataIndex: "reason",
|
|
10164
10182
|
title: t2("dovetail.reason"),
|
|
10165
|
-
sortable: true
|
|
10183
|
+
sortable: true,
|
|
10184
|
+
width: 300
|
|
10166
10185
|
},
|
|
10167
10186
|
{
|
|
10168
10187
|
key: "message",
|
|
10169
10188
|
display: true,
|
|
10170
10189
|
dataIndex: "message",
|
|
10171
10190
|
title: t2("dovetail.message"),
|
|
10172
|
-
sortable: true
|
|
10191
|
+
sortable: true,
|
|
10192
|
+
width: 403
|
|
10173
10193
|
}
|
|
10174
10194
|
];
|
|
10175
10195
|
if (conditionsWithId.length === 0) {
|
|
@@ -10192,7 +10212,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10192
10212
|
columns: addDefaultRenderToColumns(columns),
|
|
10193
10213
|
rowKey: "type",
|
|
10194
10214
|
empty: t2("dovetail.empty"),
|
|
10195
|
-
currentSize,
|
|
10215
|
+
defaultSize: currentSize,
|
|
10196
10216
|
currentPage,
|
|
10197
10217
|
onPageChange: setCurrentPage,
|
|
10198
10218
|
showMenuColumn: false
|
|
@@ -10417,7 +10437,10 @@ var __publicField = (obj, key, value) => {
|
|
|
10417
10437
|
return owner ? matchOwner(p, owner) : true;
|
|
10418
10438
|
});
|
|
10419
10439
|
}, [data2 == null ? void 0 : data2.data, owner]);
|
|
10420
|
-
const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2),
|
|
10440
|
+
const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
|
|
10441
|
+
...WorkloadImageColumnRenderer(i18n2),
|
|
10442
|
+
width: 238
|
|
10443
|
+
}, CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
10421
10444
|
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10422
10445
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10423
10446
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
@@ -10442,7 +10465,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10442
10465
|
error: false,
|
|
10443
10466
|
currentPage,
|
|
10444
10467
|
onPageChange: (p) => setCurrentPage(p),
|
|
10445
|
-
currentSize,
|
|
10468
|
+
defaultSize: currentSize,
|
|
10446
10469
|
refetch: () => null,
|
|
10447
10470
|
showMenuColumn: false
|
|
10448
10471
|
})]
|
|
@@ -10468,6 +10491,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10468
10491
|
dataIndex: ["type"],
|
|
10469
10492
|
title: i18n2.t("dovetail.type"),
|
|
10470
10493
|
sortable: true,
|
|
10494
|
+
width: 120,
|
|
10471
10495
|
render(value2) {
|
|
10472
10496
|
const colorMap = {
|
|
10473
10497
|
"Warning": "red",
|
|
@@ -10483,6 +10507,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10483
10507
|
dataIndex: ["reason"],
|
|
10484
10508
|
title: i18n2.t("dovetail.reason"),
|
|
10485
10509
|
sortable: true,
|
|
10510
|
+
width: 120,
|
|
10486
10511
|
sorter: CommonSorter(["reason"])
|
|
10487
10512
|
},
|
|
10488
10513
|
{
|
|
@@ -10491,6 +10516,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10491
10516
|
dataIndex: ["note"],
|
|
10492
10517
|
title: i18n2.t("dovetail.note"),
|
|
10493
10518
|
sortable: true,
|
|
10519
|
+
width: 723,
|
|
10494
10520
|
sorter: CommonSorter(["note"])
|
|
10495
10521
|
},
|
|
10496
10522
|
AgeColumnRenderer(i18n2, { title: i18n2.t("dovetail.last_seen"), width: 160 }, { isRelativeTime: false })
|
|
@@ -10525,7 +10551,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10525
10551
|
error: false,
|
|
10526
10552
|
currentPage,
|
|
10527
10553
|
onPageChange: (p) => setCurrentPage(p),
|
|
10528
|
-
currentSize,
|
|
10554
|
+
defaultSize: currentSize,
|
|
10529
10555
|
refetch: () => null,
|
|
10530
10556
|
showMenuColumn: false
|
|
10531
10557
|
}
|
|
@@ -10578,6 +10604,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10578
10604
|
display: true,
|
|
10579
10605
|
dataIndex: "pathType",
|
|
10580
10606
|
title: t2("dovetail.path_type"),
|
|
10607
|
+
width: 160,
|
|
10581
10608
|
sortable: true
|
|
10582
10609
|
},
|
|
10583
10610
|
{
|
|
@@ -10585,6 +10612,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10585
10612
|
display: true,
|
|
10586
10613
|
dataIndex: "fullPath",
|
|
10587
10614
|
title: t2("dovetail.path"),
|
|
10615
|
+
width: 478,
|
|
10588
10616
|
sortable: true
|
|
10589
10617
|
},
|
|
10590
10618
|
{
|
|
@@ -10593,6 +10621,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10593
10621
|
dataIndex: "serviceName",
|
|
10594
10622
|
title: t2("dovetail.backend"),
|
|
10595
10623
|
sortable: true,
|
|
10624
|
+
width: 160,
|
|
10596
10625
|
render: (serviceName, record) => {
|
|
10597
10626
|
return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10598
10627
|
ResourceLink,
|
|
@@ -10609,6 +10638,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10609
10638
|
display: true,
|
|
10610
10639
|
dataIndex: "servicePort",
|
|
10611
10640
|
title: t2("dovetail.port"),
|
|
10641
|
+
width: 120,
|
|
10612
10642
|
sortable: true
|
|
10613
10643
|
},
|
|
10614
10644
|
{
|
|
@@ -10616,6 +10646,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10616
10646
|
display: true,
|
|
10617
10647
|
dataIndex: "host",
|
|
10618
10648
|
title: "Secret",
|
|
10649
|
+
width: 160,
|
|
10619
10650
|
render(host2) {
|
|
10620
10651
|
var _a, _b;
|
|
10621
10652
|
const secretName = (_b = (_a = ingress._rawYaml.spec.tls) == null ? void 0 : _a.find(({ hosts }) => hosts == null ? void 0 : hosts.includes(host2))) == null ? void 0 : _b.secretName;
|
|
@@ -10651,7 +10682,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10651
10682
|
columns: addDefaultRenderToColumns(columns),
|
|
10652
10683
|
rowKey: "pathType",
|
|
10653
10684
|
empty: t2("dovetail.empty"),
|
|
10654
|
-
currentSize,
|
|
10685
|
+
defaultSize: currentSize,
|
|
10655
10686
|
currentPage,
|
|
10656
10687
|
onPageChange: setCurrentPage,
|
|
10657
10688
|
showMenuColumn: false
|
|
@@ -11113,7 +11144,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11113
11144
|
display: true,
|
|
11114
11145
|
dataIndex: ["status", "podIP"],
|
|
11115
11146
|
title: i18n2.t("dovetail.ip_address"),
|
|
11116
|
-
sortable: true
|
|
11147
|
+
sortable: true,
|
|
11148
|
+
width: 160
|
|
11117
11149
|
}, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
11118
11150
|
if ((dataSource == null ? void 0 : dataSource.length) === 0) {
|
|
11119
11151
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
@@ -11143,7 +11175,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11143
11175
|
error: false,
|
|
11144
11176
|
currentPage,
|
|
11145
11177
|
onPageChange: (p) => setCurrentPage(p),
|
|
11146
|
-
currentSize,
|
|
11178
|
+
defaultSize: currentSize,
|
|
11147
11179
|
refetch: () => null,
|
|
11148
11180
|
showMenuColumn: false
|
|
11149
11181
|
})]
|
|
@@ -11884,7 +11916,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11884
11916
|
});
|
|
11885
11917
|
}
|
|
11886
11918
|
}
|
|
11887
|
-
function
|
|
11919
|
+
function C(a2) {
|
|
11888
11920
|
if (null == a2)
|
|
11889
11921
|
return null;
|
|
11890
11922
|
if ("function" === typeof a2)
|
|
@@ -11916,12 +11948,12 @@ var __publicField = (obj, key, value) => {
|
|
|
11916
11948
|
b = b.displayName || b.name || "";
|
|
11917
11949
|
return a2.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef");
|
|
11918
11950
|
case ia:
|
|
11919
|
-
return
|
|
11951
|
+
return C(a2.type);
|
|
11920
11952
|
case ka:
|
|
11921
|
-
return
|
|
11953
|
+
return C(a2.render);
|
|
11922
11954
|
case ja:
|
|
11923
11955
|
if (a2 = 1 === a2._status ? a2._result : null)
|
|
11924
|
-
return
|
|
11956
|
+
return C(a2);
|
|
11925
11957
|
}
|
|
11926
11958
|
return null;
|
|
11927
11959
|
}
|
|
@@ -12033,23 +12065,23 @@ var __publicField = (obj, key, value) => {
|
|
|
12033
12065
|
["rowSpan", "start"].forEach(function(a2) {
|
|
12034
12066
|
K[a2] = new J(a2, 5, false, a2.toLowerCase(), null, false);
|
|
12035
12067
|
});
|
|
12036
|
-
var
|
|
12068
|
+
var L = /[\-:]([a-z])/g;
|
|
12037
12069
|
function M(a2) {
|
|
12038
12070
|
return a2[1].toUpperCase();
|
|
12039
12071
|
}
|
|
12040
12072
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) {
|
|
12041
12073
|
var b = a2.replace(
|
|
12042
|
-
|
|
12074
|
+
L,
|
|
12043
12075
|
M
|
|
12044
12076
|
);
|
|
12045
12077
|
K[b] = new J(b, 1, false, a2, null, false);
|
|
12046
12078
|
});
|
|
12047
12079
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) {
|
|
12048
|
-
var b = a2.replace(
|
|
12080
|
+
var b = a2.replace(L, M);
|
|
12049
12081
|
K[b] = new J(b, 1, false, a2, "http://www.w3.org/1999/xlink", false);
|
|
12050
12082
|
});
|
|
12051
12083
|
["xml:base", "xml:lang", "xml:space"].forEach(function(a2) {
|
|
12052
|
-
var b = a2.replace(
|
|
12084
|
+
var b = a2.replace(L, M);
|
|
12053
12085
|
K[b] = new J(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false);
|
|
12054
12086
|
});
|
|
12055
12087
|
["tabIndex", "crossOrigin"].forEach(function(a2) {
|
|
@@ -12308,11 +12340,11 @@ var __publicField = (obj, key, value) => {
|
|
|
12308
12340
|
var Wa = Object.prototype.hasOwnProperty, Xa = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null };
|
|
12309
12341
|
function Ya(a2, b) {
|
|
12310
12342
|
if (void 0 === a2)
|
|
12311
|
-
throw Error(q(152,
|
|
12343
|
+
throw Error(q(152, C(b) || "Component"));
|
|
12312
12344
|
}
|
|
12313
12345
|
function Za(a2, b, c2) {
|
|
12314
12346
|
function d(d2, g2) {
|
|
12315
|
-
var e2 = g2.prototype && g2.prototype.isReactComponent, f2 = pa(g2, b, c2, e2), x = [], h = false,
|
|
12347
|
+
var e2 = g2.prototype && g2.prototype.isReactComponent, f2 = pa(g2, b, c2, e2), x = [], h = false, m = { isMounted: function() {
|
|
12316
12348
|
return false;
|
|
12317
12349
|
}, enqueueForceUpdate: function() {
|
|
12318
12350
|
if (null === x)
|
|
@@ -12326,14 +12358,14 @@ var __publicField = (obj, key, value) => {
|
|
|
12326
12358
|
x.push(c3);
|
|
12327
12359
|
} };
|
|
12328
12360
|
if (e2) {
|
|
12329
|
-
if (e2 = new g2(d2.props, f2,
|
|
12361
|
+
if (e2 = new g2(d2.props, f2, m), "function" === typeof g2.getDerivedStateFromProps) {
|
|
12330
12362
|
var w = g2.getDerivedStateFromProps.call(null, d2.props, e2.state);
|
|
12331
12363
|
null != w && (e2.state = k({}, e2.state, w));
|
|
12332
12364
|
}
|
|
12333
12365
|
} else if (O = {}, e2 = g2(
|
|
12334
12366
|
d2.props,
|
|
12335
12367
|
f2,
|
|
12336
|
-
|
|
12368
|
+
m
|
|
12337
12369
|
), e2 = Da(g2, d2.props, e2, f2), null == e2 || null == e2.render) {
|
|
12338
12370
|
a2 = e2;
|
|
12339
12371
|
Ya(a2, g2);
|
|
@@ -12341,22 +12373,22 @@ var __publicField = (obj, key, value) => {
|
|
|
12341
12373
|
}
|
|
12342
12374
|
e2.props = d2.props;
|
|
12343
12375
|
e2.context = f2;
|
|
12344
|
-
e2.updater =
|
|
12345
|
-
|
|
12346
|
-
void 0 ===
|
|
12376
|
+
e2.updater = m;
|
|
12377
|
+
m = e2.state;
|
|
12378
|
+
void 0 === m && (e2.state = m = null);
|
|
12347
12379
|
if ("function" === typeof e2.UNSAFE_componentWillMount || "function" === typeof e2.componentWillMount)
|
|
12348
12380
|
if ("function" === typeof e2.componentWillMount && "function" !== typeof g2.getDerivedStateFromProps && e2.componentWillMount(), "function" === typeof e2.UNSAFE_componentWillMount && "function" !== typeof g2.getDerivedStateFromProps && e2.UNSAFE_componentWillMount(), x.length) {
|
|
12349
|
-
|
|
12381
|
+
m = x;
|
|
12350
12382
|
var r2 = h;
|
|
12351
12383
|
x = null;
|
|
12352
12384
|
h = false;
|
|
12353
|
-
if (r2 && 1 ===
|
|
12354
|
-
e2.state =
|
|
12385
|
+
if (r2 && 1 === m.length)
|
|
12386
|
+
e2.state = m[0];
|
|
12355
12387
|
else {
|
|
12356
|
-
w = r2 ?
|
|
12388
|
+
w = r2 ? m[0] : e2.state;
|
|
12357
12389
|
var y = true;
|
|
12358
|
-
for (r2 = r2 ? 1 : 0; r2 <
|
|
12359
|
-
var p =
|
|
12390
|
+
for (r2 = r2 ? 1 : 0; r2 < m.length; r2++) {
|
|
12391
|
+
var p = m[r2];
|
|
12360
12392
|
p = "function" === typeof p ? p.call(e2, w, d2.props, f2) : p;
|
|
12361
12393
|
null != p && (y ? (y = false, w = k({}, w, p)) : k(w, p));
|
|
12362
12394
|
}
|
|
@@ -12370,7 +12402,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12370
12402
|
var A = e2.getChildContext();
|
|
12371
12403
|
for (var T in A)
|
|
12372
12404
|
if (!(T in d2))
|
|
12373
|
-
throw Error(q(108,
|
|
12405
|
+
throw Error(q(108, C(g2) || "Unknown", T));
|
|
12374
12406
|
}
|
|
12375
12407
|
A && (b = k({}, b, A));
|
|
12376
12408
|
}
|
|
@@ -12483,9 +12515,9 @@ var __publicField = (obj, key, value) => {
|
|
|
12483
12515
|
}
|
|
12484
12516
|
g[this.suspenseDepth] += I;
|
|
12485
12517
|
} else {
|
|
12486
|
-
var
|
|
12518
|
+
var m = e2.children[e2.childIndex++], w = "";
|
|
12487
12519
|
try {
|
|
12488
|
-
w += this.render(
|
|
12520
|
+
w += this.render(m, e2.context, e2.domNamespace);
|
|
12489
12521
|
} catch (r2) {
|
|
12490
12522
|
if (null != r2 && "function" === typeof r2.then)
|
|
12491
12523
|
throw Error(q(294));
|
|
@@ -12656,14 +12688,14 @@ var __publicField = (obj, key, value) => {
|
|
|
12656
12688
|
G = "<" + a3.type;
|
|
12657
12689
|
for (z in h)
|
|
12658
12690
|
if (Wa.call(h, z)) {
|
|
12659
|
-
var
|
|
12660
|
-
if (null !=
|
|
12691
|
+
var m = h[z];
|
|
12692
|
+
if (null != m) {
|
|
12661
12693
|
if ("style" === z) {
|
|
12662
12694
|
n2 = void 0;
|
|
12663
12695
|
var w = "", r2 = "";
|
|
12664
|
-
for (n2 in
|
|
12665
|
-
if (
|
|
12666
|
-
var y = 0 === n2.indexOf("--"), p =
|
|
12696
|
+
for (n2 in m)
|
|
12697
|
+
if (m.hasOwnProperty(n2)) {
|
|
12698
|
+
var y = 0 === n2.indexOf("--"), p = m[n2];
|
|
12667
12699
|
if (null != p) {
|
|
12668
12700
|
if (y)
|
|
12669
12701
|
var A = n2;
|
|
@@ -12680,7 +12712,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12680
12712
|
r2 = ";";
|
|
12681
12713
|
}
|
|
12682
12714
|
}
|
|
12683
|
-
|
|
12715
|
+
m = w || null;
|
|
12684
12716
|
}
|
|
12685
12717
|
n2 = null;
|
|
12686
12718
|
b:
|
|
@@ -12701,7 +12733,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12701
12733
|
default:
|
|
12702
12734
|
y = true;
|
|
12703
12735
|
}
|
|
12704
|
-
y ? Xa.hasOwnProperty(z) || (n2 = z, n2 = ua(n2) && null !=
|
|
12736
|
+
y ? Xa.hasOwnProperty(z) || (n2 = z, n2 = ua(n2) && null != m ? n2 + '="' + (N(m) + '"') : "") : n2 = ya(z, m);
|
|
12705
12737
|
n2 && (G += " " + n2);
|
|
12706
12738
|
}
|
|
12707
12739
|
}
|
|
@@ -12763,14 +12795,14 @@ var __publicField = (obj, key, value) => {
|
|
|
12763
12795
|
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
12764
12796
|
return ReactPropTypesSecret_1;
|
|
12765
12797
|
}
|
|
12766
|
-
var has$
|
|
12798
|
+
var has$2;
|
|
12767
12799
|
var hasRequiredHas;
|
|
12768
12800
|
function requireHas() {
|
|
12769
12801
|
if (hasRequiredHas)
|
|
12770
|
-
return has$
|
|
12802
|
+
return has$2;
|
|
12771
12803
|
hasRequiredHas = 1;
|
|
12772
|
-
has$
|
|
12773
|
-
return has$
|
|
12804
|
+
has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
12805
|
+
return has$2;
|
|
12774
12806
|
}
|
|
12775
12807
|
var checkPropTypes_1;
|
|
12776
12808
|
var hasRequiredCheckPropTypes;
|
|
@@ -17645,8 +17677,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17645
17677
|
const currentEditorUri = model == null ? void 0 : model.uri;
|
|
17646
17678
|
if (model && uri2.toString() === (currentEditorUri == null ? void 0 : currentEditorUri.toString())) {
|
|
17647
17679
|
const marks = monaco__namespace.editor.getModelMarkers({ owner: "yaml", resource: currentEditorUri });
|
|
17648
|
-
const yamlMarks = marks.filter((
|
|
17649
|
-
const schemaMarks = marks.filter((
|
|
17680
|
+
const yamlMarks = marks.filter((m) => m.source === "YAML");
|
|
17681
|
+
const schemaMarks = marks.filter((m) => m.source !== "YAML");
|
|
17650
17682
|
const yamlValid = yamlMarks.length === 0;
|
|
17651
17683
|
const schemaValid = schemaMarks.length === 0;
|
|
17652
17684
|
onValidate == null ? void 0 : onValidate(yamlValid, schemaValid);
|
|
@@ -17760,7 +17792,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17760
17792
|
dataIndex: ["name"],
|
|
17761
17793
|
title: i18n2.t("dovetail.name"),
|
|
17762
17794
|
sortable: true,
|
|
17763
|
-
sorter: CommonSorter(["name"])
|
|
17795
|
+
sorter: CommonSorter(["name"]),
|
|
17796
|
+
width: 200
|
|
17764
17797
|
},
|
|
17765
17798
|
{
|
|
17766
17799
|
key: "state",
|
|
@@ -17768,6 +17801,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17768
17801
|
title: i18n2.t("dovetail.state"),
|
|
17769
17802
|
sortable: true,
|
|
17770
17803
|
sorter: CommonSorter(["state"]),
|
|
17804
|
+
width: 120,
|
|
17771
17805
|
render: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, { state: Object.keys(v)[0], hideBackground: true })
|
|
17772
17806
|
},
|
|
17773
17807
|
{
|
|
@@ -17775,12 +17809,14 @@ var __publicField = (obj, key, value) => {
|
|
|
17775
17809
|
dataIndex: ["image"],
|
|
17776
17810
|
title: i18n2.t("dovetail.image"),
|
|
17777
17811
|
sortable: true,
|
|
17812
|
+
width: 383,
|
|
17778
17813
|
sorter: CommonSorter(["image"])
|
|
17779
17814
|
},
|
|
17780
17815
|
{
|
|
17781
17816
|
key: "init",
|
|
17782
17817
|
dataIndex: [],
|
|
17783
17818
|
title: i18n2.t("dovetail.type"),
|
|
17819
|
+
width: 120,
|
|
17784
17820
|
render: (_, record) => {
|
|
17785
17821
|
const isInit = initContainerStatuses.some(
|
|
17786
17822
|
(c2) => c2.containerID === record.containerID
|
|
@@ -17793,6 +17829,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17793
17829
|
dataIndex: ["restartCount"],
|
|
17794
17830
|
title: i18n2.t("dovetail.restarts"),
|
|
17795
17831
|
sortable: true,
|
|
17832
|
+
align: "right",
|
|
17833
|
+
width: 120,
|
|
17796
17834
|
sorter: CommonSorter(["restartCount"])
|
|
17797
17835
|
},
|
|
17798
17836
|
{
|
|
@@ -17801,6 +17839,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17801
17839
|
title: i18n2.t("dovetail.created_time"),
|
|
17802
17840
|
sortable: true,
|
|
17803
17841
|
sorter: CommonSorter(["state", "running", "startedAt"]),
|
|
17842
|
+
width: 120,
|
|
17804
17843
|
render: (value2) => {
|
|
17805
17844
|
if (value2)
|
|
17806
17845
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(value2) });
|
|
@@ -17834,7 +17873,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17834
17873
|
columns: addDefaultRenderToColumns(columns),
|
|
17835
17874
|
rowKey: "containerID",
|
|
17836
17875
|
error: false,
|
|
17837
|
-
currentSize,
|
|
17876
|
+
defaultSize: currentSize,
|
|
17838
17877
|
currentPage,
|
|
17839
17878
|
onPageChange: setCurrentPage,
|
|
17840
17879
|
showMenuColumn: false
|
|
@@ -18486,7 +18525,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18486
18525
|
useTableParams: {},
|
|
18487
18526
|
columns: [nameRenderer, ...(columns == null ? void 0 : columns()) || []],
|
|
18488
18527
|
tableProps: {
|
|
18489
|
-
|
|
18528
|
+
defaultSize: 50
|
|
18490
18529
|
},
|
|
18491
18530
|
formatter,
|
|
18492
18531
|
Dropdown
|
|
@@ -19718,7 +19757,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19718
19757
|
}
|
|
19719
19758
|
return saturation;
|
|
19720
19759
|
}
|
|
19721
|
-
function getValue$
|
|
19760
|
+
function getValue$2(hsv, i2, light) {
|
|
19722
19761
|
if (light) {
|
|
19723
19762
|
return Math.round(hsv.v * 100) + brightnessStep1 * i2;
|
|
19724
19763
|
}
|
|
@@ -19732,7 +19771,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19732
19771
|
var colorString = tinycolor2_1.default({
|
|
19733
19772
|
h: getHue(hsv, i2, true),
|
|
19734
19773
|
s: getSaturation(hsv, i2, true),
|
|
19735
|
-
v: getValue$
|
|
19774
|
+
v: getValue$2(hsv, i2, true)
|
|
19736
19775
|
}).toHexString();
|
|
19737
19776
|
patterns.push(colorString);
|
|
19738
19777
|
}
|
|
@@ -19742,7 +19781,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19742
19781
|
var colorString = tinycolor2_1.default({
|
|
19743
19782
|
h: getHue(hsv, i2),
|
|
19744
19783
|
s: getSaturation(hsv, i2),
|
|
19745
|
-
v: getValue$
|
|
19784
|
+
v: getValue$2(hsv, i2)
|
|
19746
19785
|
}).toHexString();
|
|
19747
19786
|
patterns.push(colorString);
|
|
19748
19787
|
}
|
|
@@ -20118,13 +20157,13 @@ var __publicField = (obj, key, value) => {
|
|
|
20118
20157
|
var isDateObject = (value2) => value2 instanceof Date;
|
|
20119
20158
|
var isNullOrUndefined = (value2) => value2 == null;
|
|
20120
20159
|
const isObjectType = (value2) => typeof value2 === "object";
|
|
20121
|
-
var isObject$
|
|
20122
|
-
var getEventValue = (event2) => isObject$
|
|
20160
|
+
var isObject$3 = (value2) => !isNullOrUndefined(value2) && !Array.isArray(value2) && isObjectType(value2) && !isDateObject(value2);
|
|
20161
|
+
var getEventValue = (event2) => isObject$3(event2) && event2.target ? isCheckBoxInput(event2.target) ? event2.target.checked : event2.target.value : event2;
|
|
20123
20162
|
var getNodeParentName = (name2) => name2.substring(0, name2.search(/\.\d+(\.|$)/)) || name2;
|
|
20124
20163
|
var isNameInFieldArray = (names, name2) => names.has(getNodeParentName(name2));
|
|
20125
20164
|
var isPlainObject = (tempObject) => {
|
|
20126
20165
|
const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
|
|
20127
|
-
return isObject$
|
|
20166
|
+
return isObject$3(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
|
|
20128
20167
|
};
|
|
20129
20168
|
var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
|
|
20130
20169
|
function cloneObject(data2) {
|
|
@@ -20134,7 +20173,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20134
20173
|
copy2 = new Date(data2);
|
|
20135
20174
|
} else if (data2 instanceof Set) {
|
|
20136
20175
|
copy2 = new Set(data2);
|
|
20137
|
-
} else if (!(isWeb && (data2 instanceof Blob || data2 instanceof FileList)) && (isArray2 || isObject$
|
|
20176
|
+
} else if (!(isWeb && (data2 instanceof Blob || data2 instanceof FileList)) && (isArray2 || isObject$3(data2))) {
|
|
20138
20177
|
copy2 = isArray2 ? [] : {};
|
|
20139
20178
|
if (!isArray2 && !isPlainObject(data2)) {
|
|
20140
20179
|
copy2 = data2;
|
|
@@ -20152,8 +20191,8 @@ var __publicField = (obj, key, value) => {
|
|
|
20152
20191
|
}
|
|
20153
20192
|
var compact = (value2) => Array.isArray(value2) ? value2.filter(Boolean) : [];
|
|
20154
20193
|
var isUndefined = (val) => val === void 0;
|
|
20155
|
-
var get$
|
|
20156
|
-
if (!path2 || !isObject$
|
|
20194
|
+
var get$2 = (object2, path2, defaultValue) => {
|
|
20195
|
+
if (!path2 || !isObject$3(object2)) {
|
|
20157
20196
|
return defaultValue;
|
|
20158
20197
|
}
|
|
20159
20198
|
const result = compact(path2.split(/[,[\].]+?/)).reduce((result2, key2) => isNullOrUndefined(result2) ? result2 : result2[key2], object2);
|
|
@@ -20201,7 +20240,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20201
20240
|
}
|
|
20202
20241
|
return result;
|
|
20203
20242
|
};
|
|
20204
|
-
var isEmptyObject = (value2) => isObject$
|
|
20243
|
+
var isEmptyObject = (value2) => isObject$3(value2) && !Object.keys(value2).length;
|
|
20205
20244
|
var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {
|
|
20206
20245
|
updateFormState(formStateData);
|
|
20207
20246
|
const { name: name2, ...formState } = formStateData;
|
|
@@ -20258,10 +20297,10 @@ var __publicField = (obj, key, value) => {
|
|
|
20258
20297
|
var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
|
|
20259
20298
|
if (isString(names)) {
|
|
20260
20299
|
isGlobal && _names.watch.add(names);
|
|
20261
|
-
return get$
|
|
20300
|
+
return get$2(formValues, names, defaultValue);
|
|
20262
20301
|
}
|
|
20263
20302
|
if (Array.isArray(names)) {
|
|
20264
|
-
return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$
|
|
20303
|
+
return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$2(formValues, fieldName)));
|
|
20265
20304
|
}
|
|
20266
20305
|
isGlobal && (_names.watchAll = true);
|
|
20267
20306
|
return formValues;
|
|
@@ -20284,11 +20323,11 @@ var __publicField = (obj, key, value) => {
|
|
|
20284
20323
|
React.useEffect(() => control._removeUnmounted());
|
|
20285
20324
|
return value2;
|
|
20286
20325
|
}
|
|
20287
|
-
var isKey$
|
|
20326
|
+
var isKey$2 = (value2) => /^\w*$/.test(value2);
|
|
20288
20327
|
var stringToPath$2 = (input) => compact(input.replace(/["|']|\]/g, "").split(/\.|\[/));
|
|
20289
20328
|
var set = (object2, path2, value2) => {
|
|
20290
20329
|
let index = -1;
|
|
20291
|
-
const tempPath = isKey$
|
|
20330
|
+
const tempPath = isKey$2(path2) ? [path2] : stringToPath$2(path2);
|
|
20292
20331
|
const length = tempPath.length;
|
|
20293
20332
|
const lastIndex = length - 1;
|
|
20294
20333
|
while (++index < length) {
|
|
@@ -20296,7 +20335,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20296
20335
|
let newValue = value2;
|
|
20297
20336
|
if (index !== lastIndex) {
|
|
20298
20337
|
const objValue = object2[key2];
|
|
20299
|
-
newValue = isObject$
|
|
20338
|
+
newValue = isObject$3(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
|
|
20300
20339
|
}
|
|
20301
20340
|
object2[key2] = newValue;
|
|
20302
20341
|
object2 = object2[key2];
|
|
@@ -20310,7 +20349,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20310
20349
|
const value2 = useWatch({
|
|
20311
20350
|
control,
|
|
20312
20351
|
name: name2,
|
|
20313
|
-
defaultValue: get$
|
|
20352
|
+
defaultValue: get$2(control._formValues, name2, get$2(control._defaultValues, name2, props.defaultValue)),
|
|
20314
20353
|
exact: true
|
|
20315
20354
|
});
|
|
20316
20355
|
const formState = useFormState({
|
|
@@ -20325,16 +20364,16 @@ var __publicField = (obj, key, value) => {
|
|
|
20325
20364
|
React.useEffect(() => {
|
|
20326
20365
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
20327
20366
|
const updateMounted = (name3, value3) => {
|
|
20328
|
-
const field = get$
|
|
20367
|
+
const field = get$2(control._fields, name3);
|
|
20329
20368
|
if (field) {
|
|
20330
20369
|
field._f.mount = value3;
|
|
20331
20370
|
}
|
|
20332
20371
|
};
|
|
20333
20372
|
updateMounted(name2, true);
|
|
20334
20373
|
if (_shouldUnregisterField) {
|
|
20335
|
-
const value3 = cloneObject(get$
|
|
20374
|
+
const value3 = cloneObject(get$2(control._options.defaultValues, name2));
|
|
20336
20375
|
set(control._defaultValues, name2, value3);
|
|
20337
|
-
if (isUndefined(get$
|
|
20376
|
+
if (isUndefined(get$2(control._formValues, name2))) {
|
|
20338
20377
|
set(control._formValues, name2, value3);
|
|
20339
20378
|
}
|
|
20340
20379
|
}
|
|
@@ -20343,12 +20382,12 @@ var __publicField = (obj, key, value) => {
|
|
|
20343
20382
|
};
|
|
20344
20383
|
}, [name2, control, isArrayField, shouldUnregister]);
|
|
20345
20384
|
React.useEffect(() => {
|
|
20346
|
-
if (get$
|
|
20385
|
+
if (get$2(control._fields, name2)) {
|
|
20347
20386
|
control._updateDisabledField({
|
|
20348
20387
|
disabled,
|
|
20349
20388
|
fields: control._fields,
|
|
20350
20389
|
name: name2,
|
|
20351
|
-
value: get$
|
|
20390
|
+
value: get$2(control._fields, name2)._f.value
|
|
20352
20391
|
});
|
|
20353
20392
|
}
|
|
20354
20393
|
}, [disabled, name2, control]);
|
|
@@ -20366,13 +20405,13 @@ var __publicField = (obj, key, value) => {
|
|
|
20366
20405
|
}), [name2]),
|
|
20367
20406
|
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
20368
20407
|
target: {
|
|
20369
|
-
value: get$
|
|
20408
|
+
value: get$2(control._formValues, name2),
|
|
20370
20409
|
name: name2
|
|
20371
20410
|
},
|
|
20372
20411
|
type: EVENTS.BLUR
|
|
20373
20412
|
}), [name2, control]),
|
|
20374
20413
|
ref: (elm) => {
|
|
20375
|
-
const field = get$
|
|
20414
|
+
const field = get$2(control._fields, name2);
|
|
20376
20415
|
if (field && elm) {
|
|
20377
20416
|
field._f.ref = {
|
|
20378
20417
|
focus: () => elm.focus(),
|
|
@@ -20387,19 +20426,19 @@ var __publicField = (obj, key, value) => {
|
|
|
20387
20426
|
fieldState: Object.defineProperties({}, {
|
|
20388
20427
|
invalid: {
|
|
20389
20428
|
enumerable: true,
|
|
20390
|
-
get: () => !!get$
|
|
20429
|
+
get: () => !!get$2(formState.errors, name2)
|
|
20391
20430
|
},
|
|
20392
20431
|
isDirty: {
|
|
20393
20432
|
enumerable: true,
|
|
20394
|
-
get: () => !!get$
|
|
20433
|
+
get: () => !!get$2(formState.dirtyFields, name2)
|
|
20395
20434
|
},
|
|
20396
20435
|
isTouched: {
|
|
20397
20436
|
enumerable: true,
|
|
20398
|
-
get: () => !!get$
|
|
20437
|
+
get: () => !!get$2(formState.touchedFields, name2)
|
|
20399
20438
|
},
|
|
20400
20439
|
error: {
|
|
20401
20440
|
enumerable: true,
|
|
20402
|
-
get: () => get$
|
|
20441
|
+
get: () => get$2(formState.errors, name2)
|
|
20403
20442
|
}
|
|
20404
20443
|
})
|
|
20405
20444
|
};
|
|
@@ -20422,7 +20461,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20422
20461
|
var isWatched = (name2, _names, isBlurEvent) => !isBlurEvent && (_names.watchAll || _names.watch.has(name2) || [..._names.watch].some((watchName) => name2.startsWith(watchName) && /^\.\w+/.test(name2.slice(watchName.length))));
|
|
20423
20462
|
const iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {
|
|
20424
20463
|
for (const key2 of fieldsNames || Object.keys(fields)) {
|
|
20425
|
-
const field = get$
|
|
20464
|
+
const field = get$2(fields, key2);
|
|
20426
20465
|
if (field) {
|
|
20427
20466
|
const { _f, ...currentField } = field;
|
|
20428
20467
|
if (_f) {
|
|
@@ -20433,20 +20472,20 @@ var __publicField = (obj, key, value) => {
|
|
|
20433
20472
|
} else {
|
|
20434
20473
|
iterateFieldsByAction(currentField, action);
|
|
20435
20474
|
}
|
|
20436
|
-
} else if (isObject$
|
|
20475
|
+
} else if (isObject$3(currentField)) {
|
|
20437
20476
|
iterateFieldsByAction(currentField, action);
|
|
20438
20477
|
}
|
|
20439
20478
|
}
|
|
20440
20479
|
}
|
|
20441
20480
|
};
|
|
20442
20481
|
var updateFieldArrayRootError = (errors, error, name2) => {
|
|
20443
|
-
const fieldArrayErrors = compact(get$
|
|
20482
|
+
const fieldArrayErrors = compact(get$2(errors, name2));
|
|
20444
20483
|
set(fieldArrayErrors, "root", error[name2]);
|
|
20445
20484
|
set(errors, name2, fieldArrayErrors);
|
|
20446
20485
|
return errors;
|
|
20447
20486
|
};
|
|
20448
20487
|
var isFileInput = (element) => element.type === "file";
|
|
20449
|
-
var isFunction$
|
|
20488
|
+
var isFunction$2 = (value2) => typeof value2 === "function";
|
|
20450
20489
|
var isHTMLElement = (value2) => {
|
|
20451
20490
|
if (!isWeb) {
|
|
20452
20491
|
return false;
|
|
@@ -20492,13 +20531,13 @@ var __publicField = (obj, key, value) => {
|
|
|
20492
20531
|
};
|
|
20493
20532
|
}
|
|
20494
20533
|
}
|
|
20495
|
-
var getValueAndMessage = (validationData) => isObject$
|
|
20534
|
+
var getValueAndMessage = (validationData) => isObject$3(validationData) && !isRegex(validationData) ? validationData : {
|
|
20496
20535
|
value: validationData,
|
|
20497
20536
|
message: ""
|
|
20498
20537
|
};
|
|
20499
20538
|
var validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {
|
|
20500
20539
|
const { ref, refs, required, maxLength, minLength, min: min2, max, pattern, validate, name: name2, valueAsNumber, mount, disabled } = field._f;
|
|
20501
|
-
const inputValue = get$
|
|
20540
|
+
const inputValue = get$2(formValues, name2);
|
|
20502
20541
|
if (!mount || disabled) {
|
|
20503
20542
|
return {};
|
|
20504
20543
|
}
|
|
@@ -20601,7 +20640,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20601
20640
|
}
|
|
20602
20641
|
}
|
|
20603
20642
|
if (validate) {
|
|
20604
|
-
if (isFunction$
|
|
20643
|
+
if (isFunction$2(validate)) {
|
|
20605
20644
|
const result = await validate(inputValue, formValues);
|
|
20606
20645
|
const validateError = getValidateError(result, inputRef);
|
|
20607
20646
|
if (validateError) {
|
|
@@ -20614,7 +20653,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20614
20653
|
return error;
|
|
20615
20654
|
}
|
|
20616
20655
|
}
|
|
20617
|
-
} else if (isObject$
|
|
20656
|
+
} else if (isObject$3(validate)) {
|
|
20618
20657
|
let validationResult = {};
|
|
20619
20658
|
for (const key2 in validate) {
|
|
20620
20659
|
if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {
|
|
@@ -20646,7 +20685,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20646
20685
|
setCustomValidity(true);
|
|
20647
20686
|
return error;
|
|
20648
20687
|
};
|
|
20649
|
-
function baseGet$
|
|
20688
|
+
function baseGet$2(object2, updatePath) {
|
|
20650
20689
|
const length = updatePath.slice(0, -1).length;
|
|
20651
20690
|
let index = 0;
|
|
20652
20691
|
while (index < length) {
|
|
@@ -20663,14 +20702,14 @@ var __publicField = (obj, key, value) => {
|
|
|
20663
20702
|
return true;
|
|
20664
20703
|
}
|
|
20665
20704
|
function unset(object2, path2) {
|
|
20666
|
-
const paths = Array.isArray(path2) ? path2 : isKey$
|
|
20667
|
-
const childObject = paths.length === 1 ? object2 : baseGet$
|
|
20705
|
+
const paths = Array.isArray(path2) ? path2 : isKey$2(path2) ? [path2] : stringToPath$2(path2);
|
|
20706
|
+
const childObject = paths.length === 1 ? object2 : baseGet$2(object2, paths);
|
|
20668
20707
|
const index = paths.length - 1;
|
|
20669
20708
|
const key2 = paths[index];
|
|
20670
20709
|
if (childObject) {
|
|
20671
20710
|
delete childObject[key2];
|
|
20672
20711
|
}
|
|
20673
|
-
if (index !== 0 && (isObject$
|
|
20712
|
+
if (index !== 0 && (isObject$3(childObject) && isEmptyObject(childObject) || Array.isArray(childObject) && isEmptyArray(childObject))) {
|
|
20674
20713
|
unset(object2, paths.slice(0, -1));
|
|
20675
20714
|
}
|
|
20676
20715
|
return object2;
|
|
@@ -20722,7 +20761,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20722
20761
|
}
|
|
20723
20762
|
if (key2 !== "ref") {
|
|
20724
20763
|
const val2 = object2[key2];
|
|
20725
|
-
if (isDateObject(val1) && isDateObject(val2) || isObject$
|
|
20764
|
+
if (isDateObject(val1) && isDateObject(val2) || isObject$3(val1) && isObject$3(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual(val1, val2) : val1 !== val2) {
|
|
20726
20765
|
return false;
|
|
20727
20766
|
}
|
|
20728
20767
|
}
|
|
@@ -20734,7 +20773,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20734
20773
|
var live = (ref) => isHTMLElement(ref) && ref.isConnected;
|
|
20735
20774
|
var objectHasFunction = (data2) => {
|
|
20736
20775
|
for (const key2 in data2) {
|
|
20737
|
-
if (isFunction$
|
|
20776
|
+
if (isFunction$2(data2[key2])) {
|
|
20738
20777
|
return true;
|
|
20739
20778
|
}
|
|
20740
20779
|
}
|
|
@@ -20742,9 +20781,9 @@ var __publicField = (obj, key, value) => {
|
|
|
20742
20781
|
};
|
|
20743
20782
|
function markFieldsDirty(data2, fields = {}) {
|
|
20744
20783
|
const isParentNodeArray = Array.isArray(data2);
|
|
20745
|
-
if (isObject$
|
|
20784
|
+
if (isObject$3(data2) || isParentNodeArray) {
|
|
20746
20785
|
for (const key2 in data2) {
|
|
20747
|
-
if (Array.isArray(data2[key2]) || isObject$
|
|
20786
|
+
if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
|
|
20748
20787
|
fields[key2] = Array.isArray(data2[key2]) ? [] : {};
|
|
20749
20788
|
markFieldsDirty(data2[key2], fields[key2]);
|
|
20750
20789
|
} else if (!isNullOrUndefined(data2[key2])) {
|
|
@@ -20756,9 +20795,9 @@ var __publicField = (obj, key, value) => {
|
|
|
20756
20795
|
}
|
|
20757
20796
|
function getDirtyFieldsFromDefaultValues(data2, formValues, dirtyFieldsFromValues) {
|
|
20758
20797
|
const isParentNodeArray = Array.isArray(data2);
|
|
20759
|
-
if (isObject$
|
|
20798
|
+
if (isObject$3(data2) || isParentNodeArray) {
|
|
20760
20799
|
for (const key2 in data2) {
|
|
20761
|
-
if (Array.isArray(data2[key2]) || isObject$
|
|
20800
|
+
if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
|
|
20762
20801
|
if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key2])) {
|
|
20763
20802
|
dirtyFieldsFromValues[key2] = Array.isArray(data2[key2]) ? markFieldsDirty(data2[key2], []) : { ...markFieldsDirty(data2[key2]) };
|
|
20764
20803
|
} else {
|
|
@@ -20795,7 +20834,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20795
20834
|
var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {
|
|
20796
20835
|
const fields = {};
|
|
20797
20836
|
for (const name2 of fieldsNames) {
|
|
20798
|
-
const field = get$
|
|
20837
|
+
const field = get$2(_fields, name2);
|
|
20799
20838
|
field && set(fields, name2, field._f);
|
|
20800
20839
|
}
|
|
20801
20840
|
return {
|
|
@@ -20805,11 +20844,11 @@ var __publicField = (obj, key, value) => {
|
|
|
20805
20844
|
shouldUseNativeValidation
|
|
20806
20845
|
};
|
|
20807
20846
|
};
|
|
20808
|
-
var getRuleValue = (rule2) => isUndefined(rule2) ? rule2 : isRegex(rule2) ? rule2.source : isObject$
|
|
20847
|
+
var getRuleValue = (rule2) => isUndefined(rule2) ? rule2 : isRegex(rule2) ? rule2.source : isObject$3(rule2) ? isRegex(rule2.value) ? rule2.value.source : rule2.value : rule2;
|
|
20809
20848
|
var hasValidation = (options) => options.mount && (options.required || options.min || options.max || options.maxLength || options.minLength || options.pattern || options.validate);
|
|
20810
20849
|
function schemaErrorLookup(errors, _fields, name2) {
|
|
20811
|
-
const error = get$
|
|
20812
|
-
if (error || isKey$
|
|
20850
|
+
const error = get$2(errors, name2);
|
|
20851
|
+
if (error || isKey$2(name2)) {
|
|
20813
20852
|
return {
|
|
20814
20853
|
error,
|
|
20815
20854
|
name: name2
|
|
@@ -20818,8 +20857,8 @@ var __publicField = (obj, key, value) => {
|
|
|
20818
20857
|
const names = name2.split(".");
|
|
20819
20858
|
while (names.length) {
|
|
20820
20859
|
const fieldName = names.join(".");
|
|
20821
|
-
const field = get$
|
|
20822
|
-
const foundError = get$
|
|
20860
|
+
const field = get$2(_fields, fieldName);
|
|
20861
|
+
const foundError = get$2(errors, fieldName);
|
|
20823
20862
|
if (field && !Array.isArray(field) && name2 !== fieldName) {
|
|
20824
20863
|
return { name: name2 };
|
|
20825
20864
|
}
|
|
@@ -20847,7 +20886,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20847
20886
|
}
|
|
20848
20887
|
return true;
|
|
20849
20888
|
};
|
|
20850
|
-
var unsetEmptyArray = (ref, name2) => !compact(get$
|
|
20889
|
+
var unsetEmptyArray = (ref, name2) => !compact(get$2(ref, name2)).length && unset(ref, name2);
|
|
20851
20890
|
const defaultOptions = {
|
|
20852
20891
|
mode: VALIDATION_MODE.onSubmit,
|
|
20853
20892
|
reValidateMode: VALIDATION_MODE.onChange,
|
|
@@ -20861,7 +20900,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20861
20900
|
let _formState = {
|
|
20862
20901
|
submitCount: 0,
|
|
20863
20902
|
isDirty: false,
|
|
20864
|
-
isLoading: isFunction$
|
|
20903
|
+
isLoading: isFunction$2(_options.defaultValues),
|
|
20865
20904
|
isValidating: false,
|
|
20866
20905
|
isSubmitted: false,
|
|
20867
20906
|
isSubmitting: false,
|
|
@@ -20873,7 +20912,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20873
20912
|
disabled: _options.disabled || false
|
|
20874
20913
|
};
|
|
20875
20914
|
let _fields = {};
|
|
20876
|
-
let _defaultValues = isObject$
|
|
20915
|
+
let _defaultValues = isObject$3(_options.values) || isObject$3(_options.defaultValues) ? cloneObject(_options.values || _options.defaultValues) || {} : {};
|
|
20877
20916
|
let _formValues = _options.shouldUnregister ? {} : cloneObject(_defaultValues);
|
|
20878
20917
|
let _state = {
|
|
20879
20918
|
action: false,
|
|
@@ -20924,17 +20963,17 @@ var __publicField = (obj, key, value) => {
|
|
|
20924
20963
|
const _updateFieldArray = (name2, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
|
|
20925
20964
|
if (args && method) {
|
|
20926
20965
|
_state.action = true;
|
|
20927
|
-
if (shouldUpdateFieldsAndState && Array.isArray(get$
|
|
20928
|
-
const fieldValues = method(get$
|
|
20966
|
+
if (shouldUpdateFieldsAndState && Array.isArray(get$2(_fields, name2))) {
|
|
20967
|
+
const fieldValues = method(get$2(_fields, name2), args.argA, args.argB);
|
|
20929
20968
|
shouldSetValues && set(_fields, name2, fieldValues);
|
|
20930
20969
|
}
|
|
20931
|
-
if (shouldUpdateFieldsAndState && Array.isArray(get$
|
|
20932
|
-
const errors = method(get$
|
|
20970
|
+
if (shouldUpdateFieldsAndState && Array.isArray(get$2(_formState.errors, name2))) {
|
|
20971
|
+
const errors = method(get$2(_formState.errors, name2), args.argA, args.argB);
|
|
20933
20972
|
shouldSetValues && set(_formState.errors, name2, errors);
|
|
20934
20973
|
unsetEmptyArray(_formState.errors, name2);
|
|
20935
20974
|
}
|
|
20936
|
-
if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get$
|
|
20937
|
-
const touchedFields = method(get$
|
|
20975
|
+
if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get$2(_formState.touchedFields, name2))) {
|
|
20976
|
+
const touchedFields = method(get$2(_formState.touchedFields, name2), args.argA, args.argB);
|
|
20938
20977
|
shouldSetValues && set(_formState.touchedFields, name2, touchedFields);
|
|
20939
20978
|
}
|
|
20940
20979
|
if (_proxyFormState.dirtyFields) {
|
|
@@ -20965,9 +21004,9 @@ var __publicField = (obj, key, value) => {
|
|
|
20965
21004
|
});
|
|
20966
21005
|
};
|
|
20967
21006
|
const updateValidAndValue = (name2, shouldSkipSetValueAs, value2, ref) => {
|
|
20968
|
-
const field = get$
|
|
21007
|
+
const field = get$2(_fields, name2);
|
|
20969
21008
|
if (field) {
|
|
20970
|
-
const defaultValue = get$
|
|
21009
|
+
const defaultValue = get$2(_formValues, name2, isUndefined(value2) ? get$2(_defaultValues, name2) : value2);
|
|
20971
21010
|
isUndefined(defaultValue) || ref && ref.defaultChecked || shouldSkipSetValueAs ? set(_formValues, name2, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f)) : setFieldValue(name2, defaultValue);
|
|
20972
21011
|
_state.mount && _updateValid();
|
|
20973
21012
|
}
|
|
@@ -20978,21 +21017,21 @@ var __publicField = (obj, key, value) => {
|
|
|
20978
21017
|
const output = {
|
|
20979
21018
|
name: name2
|
|
20980
21019
|
};
|
|
20981
|
-
const disabledField = !!(get$
|
|
21020
|
+
const disabledField = !!(get$2(_fields, name2) && get$2(_fields, name2)._f.disabled);
|
|
20982
21021
|
if (!isBlurEvent || shouldDirty) {
|
|
20983
21022
|
if (_proxyFormState.isDirty) {
|
|
20984
21023
|
isPreviousDirty = _formState.isDirty;
|
|
20985
21024
|
_formState.isDirty = output.isDirty = _getDirty();
|
|
20986
21025
|
shouldUpdateField = isPreviousDirty !== output.isDirty;
|
|
20987
21026
|
}
|
|
20988
|
-
const isCurrentFieldPristine = disabledField || deepEqual(get$
|
|
20989
|
-
isPreviousDirty = !!(!disabledField && get$
|
|
21027
|
+
const isCurrentFieldPristine = disabledField || deepEqual(get$2(_defaultValues, name2), fieldValue);
|
|
21028
|
+
isPreviousDirty = !!(!disabledField && get$2(_formState.dirtyFields, name2));
|
|
20990
21029
|
isCurrentFieldPristine || disabledField ? unset(_formState.dirtyFields, name2) : set(_formState.dirtyFields, name2, true);
|
|
20991
21030
|
output.dirtyFields = _formState.dirtyFields;
|
|
20992
21031
|
shouldUpdateField = shouldUpdateField || _proxyFormState.dirtyFields && isPreviousDirty !== !isCurrentFieldPristine;
|
|
20993
21032
|
}
|
|
20994
21033
|
if (isBlurEvent) {
|
|
20995
|
-
const isPreviousFieldTouched = get$
|
|
21034
|
+
const isPreviousFieldTouched = get$2(_formState.touchedFields, name2);
|
|
20996
21035
|
if (!isPreviousFieldTouched) {
|
|
20997
21036
|
set(_formState.touchedFields, name2, isBlurEvent);
|
|
20998
21037
|
output.touchedFields = _formState.touchedFields;
|
|
@@ -21003,7 +21042,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21003
21042
|
return shouldUpdateField ? output : {};
|
|
21004
21043
|
};
|
|
21005
21044
|
const shouldRenderByError = (name2, isValid, error, fieldState) => {
|
|
21006
|
-
const previousFieldError = get$
|
|
21045
|
+
const previousFieldError = get$2(_formState.errors, name2);
|
|
21007
21046
|
const shouldUpdateValid = _proxyFormState.isValid && isBoolean(isValid) && _formState.isValid !== isValid;
|
|
21008
21047
|
if (props.delayError && error) {
|
|
21009
21048
|
delayErrorCallback = debounce(() => updateErrors(name2, error));
|
|
@@ -21033,7 +21072,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21033
21072
|
const { errors } = await _executeSchema(names);
|
|
21034
21073
|
if (names) {
|
|
21035
21074
|
for (const name2 of names) {
|
|
21036
|
-
const error = get$
|
|
21075
|
+
const error = get$2(errors, name2);
|
|
21037
21076
|
error ? set(_formState.errors, name2, error) : unset(_formState.errors, name2);
|
|
21038
21077
|
}
|
|
21039
21078
|
} else {
|
|
@@ -21057,7 +21096,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21057
21096
|
break;
|
|
21058
21097
|
}
|
|
21059
21098
|
}
|
|
21060
|
-
!shouldOnlyCheckValid && (get$
|
|
21099
|
+
!shouldOnlyCheckValid && (get$2(fieldError, _f.name) ? isFieldArrayRoot ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name) : set(_formState.errors, _f.name, fieldError[_f.name]) : unset(_formState.errors, _f.name));
|
|
21061
21100
|
}
|
|
21062
21101
|
fieldValue && await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context);
|
|
21063
21102
|
}
|
|
@@ -21066,7 +21105,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21066
21105
|
};
|
|
21067
21106
|
const _removeUnmounted = () => {
|
|
21068
21107
|
for (const name2 of _names.unMount) {
|
|
21069
|
-
const field = get$
|
|
21108
|
+
const field = get$2(_fields, name2);
|
|
21070
21109
|
field && (field._f.refs ? field._f.refs.every((ref) => !live(ref)) : !live(field._f.ref)) && unregister(name2);
|
|
21071
21110
|
}
|
|
21072
21111
|
_names.unMount = /* @__PURE__ */ new Set();
|
|
@@ -21075,9 +21114,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21075
21114
|
const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {
|
|
21076
21115
|
..._state.mount ? _formValues : isUndefined(defaultValue) ? _defaultValues : isString(names) ? { [names]: defaultValue } : defaultValue
|
|
21077
21116
|
}, isGlobal, defaultValue);
|
|
21078
|
-
const _getFieldArray = (name2) => compact(get$
|
|
21117
|
+
const _getFieldArray = (name2) => compact(get$2(_state.mount ? _formValues : _defaultValues, name2, props.shouldUnregister ? get$2(_defaultValues, name2, []) : []));
|
|
21079
21118
|
const setFieldValue = (name2, value2, options = {}) => {
|
|
21080
|
-
const field = get$
|
|
21119
|
+
const field = get$2(_fields, name2);
|
|
21081
21120
|
let fieldValue = value2;
|
|
21082
21121
|
if (field) {
|
|
21083
21122
|
const fieldReference = field._f;
|
|
@@ -21112,12 +21151,12 @@ var __publicField = (obj, key, value) => {
|
|
|
21112
21151
|
for (const fieldKey in value2) {
|
|
21113
21152
|
const fieldValue = value2[fieldKey];
|
|
21114
21153
|
const fieldName = `${name2}.${fieldKey}`;
|
|
21115
|
-
const field = get$
|
|
21154
|
+
const field = get$2(_fields, fieldName);
|
|
21116
21155
|
(_names.array.has(name2) || !isPrimitive(fieldValue) || field && !field._f) && !isDateObject(fieldValue) ? setValues(fieldName, fieldValue, options) : setFieldValue(fieldName, fieldValue, options);
|
|
21117
21156
|
}
|
|
21118
21157
|
};
|
|
21119
21158
|
const setValue = (name2, value2, options = {}) => {
|
|
21120
|
-
const field = get$
|
|
21159
|
+
const field = get$2(_fields, name2);
|
|
21121
21160
|
const isFieldArray = _names.array.has(name2);
|
|
21122
21161
|
const cloneValue = cloneObject(value2);
|
|
21123
21162
|
set(_formValues, name2, cloneValue);
|
|
@@ -21147,17 +21186,17 @@ var __publicField = (obj, key, value) => {
|
|
|
21147
21186
|
const target = event2.target;
|
|
21148
21187
|
let name2 = target.name;
|
|
21149
21188
|
let isFieldValueUpdated = true;
|
|
21150
|
-
const field = get$
|
|
21189
|
+
const field = get$2(_fields, name2);
|
|
21151
21190
|
const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event2);
|
|
21152
21191
|
const _updateIsFieldValueUpdated = (fieldValue) => {
|
|
21153
|
-
isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$
|
|
21192
|
+
isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$2(_formValues, name2, fieldValue);
|
|
21154
21193
|
};
|
|
21155
21194
|
if (field) {
|
|
21156
21195
|
let error;
|
|
21157
21196
|
let isValid;
|
|
21158
21197
|
const fieldValue = getCurrentFieldValue();
|
|
21159
21198
|
const isBlurEvent = event2.type === EVENTS.BLUR || event2.type === EVENTS.FOCUS_OUT;
|
|
21160
|
-
const shouldSkipValidation = !hasValidation(field._f) && !_options.resolver && !get$
|
|
21199
|
+
const shouldSkipValidation = !hasValidation(field._f) && !_options.resolver && !get$2(_formState.errors, name2) && !field._f.deps || skipValidation(isBlurEvent, get$2(_formState.touchedFields, name2), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);
|
|
21161
21200
|
const watched = isWatched(name2, _names, isBlurEvent);
|
|
21162
21201
|
set(_formValues, name2, fieldValue);
|
|
21163
21202
|
if (isBlurEvent) {
|
|
@@ -21207,7 +21246,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21207
21246
|
}
|
|
21208
21247
|
};
|
|
21209
21248
|
const _focusInput = (ref, key2) => {
|
|
21210
|
-
if (get$
|
|
21249
|
+
if (get$2(_formState.errors, key2) && ref.focus) {
|
|
21211
21250
|
ref.focus();
|
|
21212
21251
|
return 1;
|
|
21213
21252
|
}
|
|
@@ -21221,10 +21260,10 @@ var __publicField = (obj, key, value) => {
|
|
|
21221
21260
|
if (_options.resolver) {
|
|
21222
21261
|
const errors = await executeSchemaAndUpdateState(isUndefined(name2) ? name2 : fieldNames);
|
|
21223
21262
|
isValid = isEmptyObject(errors);
|
|
21224
|
-
validationResult = name2 ? !fieldNames.some((name3) => get$
|
|
21263
|
+
validationResult = name2 ? !fieldNames.some((name3) => get$2(errors, name3)) : isValid;
|
|
21225
21264
|
} else if (name2) {
|
|
21226
21265
|
validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {
|
|
21227
|
-
const field = get$
|
|
21266
|
+
const field = get$2(_fields, fieldName);
|
|
21228
21267
|
return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);
|
|
21229
21268
|
}))).every(Boolean);
|
|
21230
21269
|
!(!validationResult && !_formState.isValid) && _updateValid();
|
|
@@ -21245,13 +21284,13 @@ var __publicField = (obj, key, value) => {
|
|
|
21245
21284
|
..._defaultValues,
|
|
21246
21285
|
..._state.mount ? _formValues : {}
|
|
21247
21286
|
};
|
|
21248
|
-
return isUndefined(fieldNames) ? values : isString(fieldNames) ? get$
|
|
21287
|
+
return isUndefined(fieldNames) ? values : isString(fieldNames) ? get$2(values, fieldNames) : fieldNames.map((name2) => get$2(values, name2));
|
|
21249
21288
|
};
|
|
21250
21289
|
const getFieldState = (name2, formState) => ({
|
|
21251
|
-
invalid: !!get$
|
|
21252
|
-
isDirty: !!get$
|
|
21253
|
-
isTouched: !!get$
|
|
21254
|
-
error: get$
|
|
21290
|
+
invalid: !!get$2((formState || _formState).errors, name2),
|
|
21291
|
+
isDirty: !!get$2((formState || _formState).dirtyFields, name2),
|
|
21292
|
+
isTouched: !!get$2((formState || _formState).touchedFields, name2),
|
|
21293
|
+
error: get$2((formState || _formState).errors, name2)
|
|
21255
21294
|
});
|
|
21256
21295
|
const clearErrors = (name2) => {
|
|
21257
21296
|
name2 && convertToArrayPayload(name2).forEach((inputName) => unset(_formState.errors, inputName));
|
|
@@ -21260,7 +21299,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21260
21299
|
});
|
|
21261
21300
|
};
|
|
21262
21301
|
const setError = (name2, error, options) => {
|
|
21263
|
-
const ref = (get$
|
|
21302
|
+
const ref = (get$2(_fields, name2, { _f: {} })._f || {}).ref;
|
|
21264
21303
|
set(_formState.errors, name2, {
|
|
21265
21304
|
...error,
|
|
21266
21305
|
ref
|
|
@@ -21272,7 +21311,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21272
21311
|
});
|
|
21273
21312
|
options && options.shouldFocus && ref && ref.focus && ref.focus();
|
|
21274
21313
|
};
|
|
21275
|
-
const watch = (name2, defaultValue) => isFunction$
|
|
21314
|
+
const watch = (name2, defaultValue) => isFunction$2(name2) ? _subjects.values.subscribe({
|
|
21276
21315
|
next: (payload) => name2(_getWatch(void 0, defaultValue), payload)
|
|
21277
21316
|
}) : _getWatch(name2, defaultValue, true);
|
|
21278
21317
|
const unregister = (name2, options = {}) => {
|
|
@@ -21299,13 +21338,13 @@ var __publicField = (obj, key, value) => {
|
|
|
21299
21338
|
};
|
|
21300
21339
|
const _updateDisabledField = ({ disabled, name: name2, field, fields, value: value2 }) => {
|
|
21301
21340
|
if (isBoolean(disabled)) {
|
|
21302
|
-
const inputValue = disabled ? void 0 : isUndefined(value2) ? getFieldValue(field ? field._f : get$
|
|
21341
|
+
const inputValue = disabled ? void 0 : isUndefined(value2) ? getFieldValue(field ? field._f : get$2(fields, name2)._f) : value2;
|
|
21303
21342
|
set(_formValues, name2, inputValue);
|
|
21304
21343
|
updateTouchAndDirty(name2, inputValue, false, false, true);
|
|
21305
21344
|
}
|
|
21306
21345
|
};
|
|
21307
21346
|
const register = (name2, options = {}) => {
|
|
21308
|
-
let field = get$
|
|
21347
|
+
let field = get$2(_fields, name2);
|
|
21309
21348
|
const disabledIsDefined = isBoolean(options.disabled);
|
|
21310
21349
|
set(_fields, name2, {
|
|
21311
21350
|
...field || {},
|
|
@@ -21343,7 +21382,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21343
21382
|
ref: (ref) => {
|
|
21344
21383
|
if (ref) {
|
|
21345
21384
|
register(name2, options);
|
|
21346
|
-
field = get$
|
|
21385
|
+
field = get$2(_fields, name2);
|
|
21347
21386
|
const fieldRef = isUndefined(ref.value) ? ref.querySelectorAll ? ref.querySelectorAll("input,select,textarea")[0] || ref : ref : ref;
|
|
21348
21387
|
const radioOrCheckbox = isRadioOrCheckbox(fieldRef);
|
|
21349
21388
|
const refs = field._f.refs || [];
|
|
@@ -21357,7 +21396,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21357
21396
|
refs: [
|
|
21358
21397
|
...refs.filter(live),
|
|
21359
21398
|
fieldRef,
|
|
21360
|
-
...Array.isArray(get$
|
|
21399
|
+
...Array.isArray(get$2(_defaultValues, name2)) ? [{}] : []
|
|
21361
21400
|
],
|
|
21362
21401
|
ref: { type: fieldRef.type, name: name2 }
|
|
21363
21402
|
} : { ref: fieldRef }
|
|
@@ -21365,7 +21404,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21365
21404
|
});
|
|
21366
21405
|
updateValidAndValue(name2, false, void 0, fieldRef);
|
|
21367
21406
|
} else {
|
|
21368
|
-
field = get$
|
|
21407
|
+
field = get$2(_fields, name2, {});
|
|
21369
21408
|
if (field._f) {
|
|
21370
21409
|
field._f.mount = false;
|
|
21371
21410
|
}
|
|
@@ -21380,7 +21419,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21380
21419
|
_subjects.state.next({ disabled });
|
|
21381
21420
|
iterateFieldsByAction(_fields, (ref, name2) => {
|
|
21382
21421
|
let requiredDisabledState = disabled;
|
|
21383
|
-
const currentField = get$
|
|
21422
|
+
const currentField = get$2(_fields, name2);
|
|
21384
21423
|
if (currentField && isBoolean(currentField._f.disabled)) {
|
|
21385
21424
|
requiredDisabledState || (requiredDisabledState = currentField._f.disabled);
|
|
21386
21425
|
}
|
|
@@ -21434,9 +21473,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21434
21473
|
}
|
|
21435
21474
|
};
|
|
21436
21475
|
const resetField = (name2, options = {}) => {
|
|
21437
|
-
if (get$
|
|
21476
|
+
if (get$2(_fields, name2)) {
|
|
21438
21477
|
if (isUndefined(options.defaultValue)) {
|
|
21439
|
-
setValue(name2, cloneObject(get$
|
|
21478
|
+
setValue(name2, cloneObject(get$2(_defaultValues, name2)));
|
|
21440
21479
|
} else {
|
|
21441
21480
|
setValue(name2, options.defaultValue);
|
|
21442
21481
|
set(_defaultValues, name2, cloneObject(options.defaultValue));
|
|
@@ -21446,7 +21485,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21446
21485
|
}
|
|
21447
21486
|
if (!options.keepDirty) {
|
|
21448
21487
|
unset(_formState.dirtyFields, name2);
|
|
21449
|
-
_formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$
|
|
21488
|
+
_formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$2(_defaultValues, name2))) : _getDirty();
|
|
21450
21489
|
}
|
|
21451
21490
|
if (!options.keepError) {
|
|
21452
21491
|
unset(_formState.errors, name2);
|
|
@@ -21465,12 +21504,12 @@ var __publicField = (obj, key, value) => {
|
|
|
21465
21504
|
if (!keepStateOptions.keepValues) {
|
|
21466
21505
|
if (keepStateOptions.keepDirtyValues) {
|
|
21467
21506
|
for (const fieldName of _names.mount) {
|
|
21468
|
-
get$
|
|
21507
|
+
get$2(_formState.dirtyFields, fieldName) ? set(values, fieldName, get$2(_formValues, fieldName)) : setValue(fieldName, get$2(values, fieldName));
|
|
21469
21508
|
}
|
|
21470
21509
|
} else {
|
|
21471
21510
|
if (isWeb && isUndefined(formValues)) {
|
|
21472
21511
|
for (const name2 of _names.mount) {
|
|
21473
|
-
const field = get$
|
|
21512
|
+
const field = get$2(_fields, name2);
|
|
21474
21513
|
if (field && field._f) {
|
|
21475
21514
|
const fieldReference = Array.isArray(field._f.refs) ? field._f.refs[0] : field._f.ref;
|
|
21476
21515
|
if (isHTMLElement(fieldReference)) {
|
|
@@ -21515,9 +21554,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21515
21554
|
isSubmitting: false
|
|
21516
21555
|
});
|
|
21517
21556
|
};
|
|
21518
|
-
const reset = (formValues, keepStateOptions) => _reset(isFunction$
|
|
21557
|
+
const reset = (formValues, keepStateOptions) => _reset(isFunction$2(formValues) ? formValues(_formValues) : formValues, keepStateOptions);
|
|
21519
21558
|
const setFocus = (name2, options = {}) => {
|
|
21520
|
-
const field = get$
|
|
21559
|
+
const field = get$2(_fields, name2);
|
|
21521
21560
|
const fieldReference = field && field._f;
|
|
21522
21561
|
if (fieldReference) {
|
|
21523
21562
|
const fieldRef = fieldReference.refs ? fieldReference.refs[0] : fieldReference.ref;
|
|
@@ -21533,7 +21572,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21533
21572
|
...updatedFormState
|
|
21534
21573
|
};
|
|
21535
21574
|
};
|
|
21536
|
-
const _resetDefaultValues = () => isFunction$
|
|
21575
|
+
const _resetDefaultValues = () => isFunction$2(_options.defaultValues) && _options.defaultValues().then((values) => {
|
|
21537
21576
|
reset(values, _options.resetOptions);
|
|
21538
21577
|
_subjects.state.next({
|
|
21539
21578
|
isLoading: false
|
|
@@ -21613,13 +21652,13 @@ var __publicField = (obj, key, value) => {
|
|
|
21613
21652
|
getFieldState
|
|
21614
21653
|
};
|
|
21615
21654
|
}
|
|
21616
|
-
function useForm(props = {}) {
|
|
21655
|
+
function useForm$1(props = {}) {
|
|
21617
21656
|
const _formControl = React.useRef();
|
|
21618
21657
|
const _values = React.useRef();
|
|
21619
21658
|
const [formState, updateFormState] = React.useState({
|
|
21620
21659
|
isDirty: false,
|
|
21621
21660
|
isValidating: false,
|
|
21622
|
-
isLoading: isFunction$
|
|
21661
|
+
isLoading: isFunction$2(props.defaultValues),
|
|
21623
21662
|
isSubmitted: false,
|
|
21624
21663
|
isSubmitting: false,
|
|
21625
21664
|
isSubmitSuccessful: false,
|
|
@@ -21629,7 +21668,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21629
21668
|
touchedFields: {},
|
|
21630
21669
|
errors: props.errors || {},
|
|
21631
21670
|
disabled: props.disabled || false,
|
|
21632
|
-
defaultValues: isFunction$
|
|
21671
|
+
defaultValues: isFunction$2(props.defaultValues) ? void 0 : props.defaultValues
|
|
21633
21672
|
});
|
|
21634
21673
|
if (!_formControl.current) {
|
|
21635
21674
|
_formControl.current = {
|
|
@@ -21696,23 +21735,28 @@ var __publicField = (obj, key, value) => {
|
|
|
21696
21735
|
var _a, _b;
|
|
21697
21736
|
const {
|
|
21698
21737
|
config,
|
|
21699
|
-
|
|
21738
|
+
formResult,
|
|
21700
21739
|
action,
|
|
21701
21740
|
errorMsg
|
|
21702
21741
|
} = props;
|
|
21742
|
+
const {
|
|
21743
|
+
control,
|
|
21744
|
+
getValues
|
|
21745
|
+
} = formResult;
|
|
21703
21746
|
const fields = (_b = (_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.fields) == null ? void 0 : _b.map((c2) => {
|
|
21704
21747
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Controller, {
|
|
21705
21748
|
control,
|
|
21706
21749
|
name: c2.path.join("."),
|
|
21707
21750
|
rules: {
|
|
21708
|
-
validate(value2
|
|
21751
|
+
validate(value2) {
|
|
21752
|
+
const formValue = getValues();
|
|
21709
21753
|
if (!c2.validators || c2.validators.length === 0)
|
|
21710
21754
|
return true;
|
|
21711
21755
|
for (const func of c2.validators) {
|
|
21712
21756
|
const {
|
|
21713
21757
|
isValid,
|
|
21714
21758
|
errorMsg: errorMsg2
|
|
21715
|
-
} = func(value2,
|
|
21759
|
+
} = func(value2, formValue);
|
|
21716
21760
|
if (!isValid)
|
|
21717
21761
|
return errorMsg2;
|
|
21718
21762
|
}
|
|
@@ -21729,6 +21773,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21729
21773
|
fieldState
|
|
21730
21774
|
}) => {
|
|
21731
21775
|
var _a2;
|
|
21776
|
+
const formValue = getValues();
|
|
21732
21777
|
let ele = /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Fields.String, {
|
|
21733
21778
|
input: {
|
|
21734
21779
|
value: value2,
|
|
@@ -21757,6 +21802,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21757
21802
|
children: value2
|
|
21758
21803
|
});
|
|
21759
21804
|
}
|
|
21805
|
+
if (c2 == null ? void 0 : c2.render) {
|
|
21806
|
+
ele = c2.render(value2, onChange, formValue, onBlur);
|
|
21807
|
+
}
|
|
21760
21808
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
|
|
21761
21809
|
label: c2.label,
|
|
21762
21810
|
labelCol: {
|
|
@@ -21781,20 +21829,23 @@ var __publicField = (obj, key, value) => {
|
|
|
21781
21829
|
})]
|
|
21782
21830
|
});
|
|
21783
21831
|
};
|
|
21784
|
-
var isArray = Array.isArray;
|
|
21785
|
-
|
|
21786
|
-
var freeGlobal = typeof
|
|
21787
|
-
|
|
21832
|
+
var isArray$4 = Array.isArray;
|
|
21833
|
+
var isArray_1 = isArray$4;
|
|
21834
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
21835
|
+
var _freeGlobal = freeGlobal$1;
|
|
21836
|
+
var freeGlobal = _freeGlobal;
|
|
21788
21837
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
21789
|
-
var root = freeGlobal
|
|
21790
|
-
|
|
21791
|
-
var
|
|
21792
|
-
|
|
21838
|
+
var root$3 = freeGlobal || freeSelf || Function("return this")();
|
|
21839
|
+
var _root = root$3;
|
|
21840
|
+
var root$2 = _root;
|
|
21841
|
+
var Symbol$4 = root$2.Symbol;
|
|
21842
|
+
var _Symbol = Symbol$4;
|
|
21843
|
+
var Symbol$3 = _Symbol;
|
|
21793
21844
|
var objectProto$6 = Object.prototype;
|
|
21794
21845
|
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
21795
21846
|
var nativeObjectToString$1 = objectProto$6.toString;
|
|
21796
|
-
var symToStringTag$1 = Symbol$
|
|
21797
|
-
function getRawTag(value2) {
|
|
21847
|
+
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
21848
|
+
function getRawTag$1(value2) {
|
|
21798
21849
|
var isOwn = hasOwnProperty$5.call(value2, symToStringTag$1), tag = value2[symToStringTag$1];
|
|
21799
21850
|
try {
|
|
21800
21851
|
value2[symToStringTag$1] = void 0;
|
|
@@ -21811,61 +21862,76 @@ var __publicField = (obj, key, value) => {
|
|
|
21811
21862
|
}
|
|
21812
21863
|
return result;
|
|
21813
21864
|
}
|
|
21865
|
+
var _getRawTag = getRawTag$1;
|
|
21814
21866
|
var objectProto$5 = Object.prototype;
|
|
21815
21867
|
var nativeObjectToString = objectProto$5.toString;
|
|
21816
|
-
function objectToString(value2) {
|
|
21868
|
+
function objectToString$1(value2) {
|
|
21817
21869
|
return nativeObjectToString.call(value2);
|
|
21818
21870
|
}
|
|
21871
|
+
var _objectToString = objectToString$1;
|
|
21872
|
+
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
21819
21873
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
21820
21874
|
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
21821
|
-
function baseGetTag(value2) {
|
|
21875
|
+
function baseGetTag$3(value2) {
|
|
21822
21876
|
if (value2 == null) {
|
|
21823
21877
|
return value2 === void 0 ? undefinedTag : nullTag;
|
|
21824
21878
|
}
|
|
21825
21879
|
return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString(value2);
|
|
21826
21880
|
}
|
|
21827
|
-
|
|
21881
|
+
var _baseGetTag = baseGetTag$3;
|
|
21882
|
+
function isObjectLike$3(value2) {
|
|
21828
21883
|
return value2 != null && typeof value2 == "object";
|
|
21829
21884
|
}
|
|
21885
|
+
var isObjectLike_1 = isObjectLike$3;
|
|
21886
|
+
var baseGetTag$2 = _baseGetTag, isObjectLike$2 = isObjectLike_1;
|
|
21830
21887
|
var symbolTag = "[object Symbol]";
|
|
21831
|
-
function isSymbol(value2) {
|
|
21832
|
-
return typeof value2 == "symbol" || isObjectLike(value2) && baseGetTag(value2) == symbolTag;
|
|
21888
|
+
function isSymbol$3(value2) {
|
|
21889
|
+
return typeof value2 == "symbol" || isObjectLike$2(value2) && baseGetTag$2(value2) == symbolTag;
|
|
21833
21890
|
}
|
|
21891
|
+
var isSymbol_1 = isSymbol$3;
|
|
21892
|
+
var isArray$3 = isArray_1, isSymbol$2 = isSymbol_1;
|
|
21834
21893
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
21835
|
-
function isKey(value2, object2) {
|
|
21836
|
-
if (isArray$
|
|
21894
|
+
function isKey$1(value2, object2) {
|
|
21895
|
+
if (isArray$3(value2)) {
|
|
21837
21896
|
return false;
|
|
21838
21897
|
}
|
|
21839
21898
|
var type2 = typeof value2;
|
|
21840
|
-
if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol(value2)) {
|
|
21899
|
+
if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol$2(value2)) {
|
|
21841
21900
|
return true;
|
|
21842
21901
|
}
|
|
21843
21902
|
return reIsPlainProp.test(value2) || !reIsDeepProp.test(value2) || object2 != null && value2 in Object(object2);
|
|
21844
21903
|
}
|
|
21845
|
-
|
|
21904
|
+
var _isKey = isKey$1;
|
|
21905
|
+
function isObject$2(value2) {
|
|
21846
21906
|
var type2 = typeof value2;
|
|
21847
21907
|
return value2 != null && (type2 == "object" || type2 == "function");
|
|
21848
21908
|
}
|
|
21909
|
+
var isObject_1 = isObject$2;
|
|
21910
|
+
var baseGetTag$1 = _baseGetTag, isObject$1 = isObject_1;
|
|
21849
21911
|
var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
21850
|
-
function isFunction(value2) {
|
|
21851
|
-
if (!isObject(value2)) {
|
|
21912
|
+
function isFunction$1(value2) {
|
|
21913
|
+
if (!isObject$1(value2)) {
|
|
21852
21914
|
return false;
|
|
21853
21915
|
}
|
|
21854
|
-
var tag = baseGetTag(value2);
|
|
21916
|
+
var tag = baseGetTag$1(value2);
|
|
21855
21917
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
21856
21918
|
}
|
|
21857
|
-
var
|
|
21858
|
-
|
|
21919
|
+
var isFunction_1 = isFunction$1;
|
|
21920
|
+
var root$1 = _root;
|
|
21921
|
+
var coreJsData$1 = root$1["__core-js_shared__"];
|
|
21922
|
+
var _coreJsData = coreJsData$1;
|
|
21923
|
+
var coreJsData = _coreJsData;
|
|
21859
21924
|
var maskSrcKey = function() {
|
|
21860
|
-
var uid = /[^.]+$/.exec(coreJsData
|
|
21925
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
21861
21926
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
21862
21927
|
}();
|
|
21863
|
-
function isMasked(func) {
|
|
21928
|
+
function isMasked$1(func) {
|
|
21864
21929
|
return !!maskSrcKey && maskSrcKey in func;
|
|
21865
21930
|
}
|
|
21931
|
+
var _isMasked = isMasked$1;
|
|
21866
21932
|
var funcProto$1 = Function.prototype;
|
|
21867
21933
|
var funcToString$1 = funcProto$1.toString;
|
|
21868
|
-
function toSource(func) {
|
|
21934
|
+
function toSource$1(func) {
|
|
21869
21935
|
if (func != null) {
|
|
21870
21936
|
try {
|
|
21871
21937
|
return funcToString$1.call(func);
|
|
@@ -21878,6 +21944,8 @@ var __publicField = (obj, key, value) => {
|
|
|
21878
21944
|
}
|
|
21879
21945
|
return "";
|
|
21880
21946
|
}
|
|
21947
|
+
var _toSource = toSource$1;
|
|
21948
|
+
var isFunction = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource = _toSource;
|
|
21881
21949
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
21882
21950
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
21883
21951
|
var funcProto = Function.prototype, objectProto$4 = Object.prototype;
|
|
@@ -21886,56 +21954,71 @@ var __publicField = (obj, key, value) => {
|
|
|
21886
21954
|
var reIsNative = RegExp(
|
|
21887
21955
|
"^" + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
21888
21956
|
);
|
|
21889
|
-
function baseIsNative(value2) {
|
|
21957
|
+
function baseIsNative$1(value2) {
|
|
21890
21958
|
if (!isObject(value2) || isMasked(value2)) {
|
|
21891
21959
|
return false;
|
|
21892
21960
|
}
|
|
21893
21961
|
var pattern = isFunction(value2) ? reIsNative : reIsHostCtor;
|
|
21894
21962
|
return pattern.test(toSource(value2));
|
|
21895
21963
|
}
|
|
21896
|
-
|
|
21964
|
+
var _baseIsNative = baseIsNative$1;
|
|
21965
|
+
function getValue$1(object2, key2) {
|
|
21897
21966
|
return object2 == null ? void 0 : object2[key2];
|
|
21898
21967
|
}
|
|
21899
|
-
|
|
21968
|
+
var _getValue = getValue$1;
|
|
21969
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
21970
|
+
function getNative$2(object2, key2) {
|
|
21900
21971
|
var value2 = getValue(object2, key2);
|
|
21901
21972
|
return baseIsNative(value2) ? value2 : void 0;
|
|
21902
21973
|
}
|
|
21903
|
-
var
|
|
21904
|
-
|
|
21905
|
-
|
|
21906
|
-
|
|
21974
|
+
var _getNative = getNative$2;
|
|
21975
|
+
var getNative$1 = _getNative;
|
|
21976
|
+
var nativeCreate$4 = getNative$1(Object, "create");
|
|
21977
|
+
var _nativeCreate = nativeCreate$4;
|
|
21978
|
+
var nativeCreate$3 = _nativeCreate;
|
|
21979
|
+
function hashClear$1() {
|
|
21980
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
21907
21981
|
this.size = 0;
|
|
21908
21982
|
}
|
|
21909
|
-
|
|
21983
|
+
var _hashClear = hashClear$1;
|
|
21984
|
+
function hashDelete$1(key2) {
|
|
21910
21985
|
var result = this.has(key2) && delete this.__data__[key2];
|
|
21911
21986
|
this.size -= result ? 1 : 0;
|
|
21912
21987
|
return result;
|
|
21913
21988
|
}
|
|
21989
|
+
var _hashDelete = hashDelete$1;
|
|
21990
|
+
var nativeCreate$2 = _nativeCreate;
|
|
21914
21991
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
21915
21992
|
var objectProto$3 = Object.prototype;
|
|
21916
21993
|
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
21917
|
-
function hashGet(key2) {
|
|
21994
|
+
function hashGet$1(key2) {
|
|
21918
21995
|
var data2 = this.__data__;
|
|
21919
|
-
if (nativeCreate$
|
|
21996
|
+
if (nativeCreate$2) {
|
|
21920
21997
|
var result = data2[key2];
|
|
21921
21998
|
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
21922
21999
|
}
|
|
21923
22000
|
return hasOwnProperty$3.call(data2, key2) ? data2[key2] : void 0;
|
|
21924
22001
|
}
|
|
22002
|
+
var _hashGet = hashGet$1;
|
|
22003
|
+
var nativeCreate$1 = _nativeCreate;
|
|
21925
22004
|
var objectProto$2 = Object.prototype;
|
|
21926
22005
|
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
21927
|
-
function hashHas(key2) {
|
|
22006
|
+
function hashHas$1(key2) {
|
|
21928
22007
|
var data2 = this.__data__;
|
|
21929
22008
|
return nativeCreate$1 ? data2[key2] !== void 0 : hasOwnProperty$2.call(data2, key2);
|
|
21930
22009
|
}
|
|
22010
|
+
var _hashHas = hashHas$1;
|
|
22011
|
+
var nativeCreate = _nativeCreate;
|
|
21931
22012
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
21932
|
-
function hashSet(key2, value2) {
|
|
22013
|
+
function hashSet$1(key2, value2) {
|
|
21933
22014
|
var data2 = this.__data__;
|
|
21934
22015
|
this.size += this.has(key2) ? 0 : 1;
|
|
21935
|
-
data2[key2] = nativeCreate
|
|
22016
|
+
data2[key2] = nativeCreate && value2 === void 0 ? HASH_UNDEFINED : value2;
|
|
21936
22017
|
return this;
|
|
21937
22018
|
}
|
|
21938
|
-
|
|
22019
|
+
var _hashSet = hashSet$1;
|
|
22020
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
22021
|
+
function Hash$1(entries) {
|
|
21939
22022
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
21940
22023
|
this.clear();
|
|
21941
22024
|
while (++index < length) {
|
|
@@ -21943,19 +22026,23 @@ var __publicField = (obj, key, value) => {
|
|
|
21943
22026
|
this.set(entry[0], entry[1]);
|
|
21944
22027
|
}
|
|
21945
22028
|
}
|
|
21946
|
-
Hash.prototype.clear = hashClear;
|
|
21947
|
-
Hash.prototype["delete"] = hashDelete;
|
|
21948
|
-
Hash.prototype.get = hashGet;
|
|
21949
|
-
Hash.prototype.has = hashHas;
|
|
21950
|
-
Hash.prototype.set = hashSet;
|
|
21951
|
-
|
|
22029
|
+
Hash$1.prototype.clear = hashClear;
|
|
22030
|
+
Hash$1.prototype["delete"] = hashDelete;
|
|
22031
|
+
Hash$1.prototype.get = hashGet;
|
|
22032
|
+
Hash$1.prototype.has = hashHas;
|
|
22033
|
+
Hash$1.prototype.set = hashSet;
|
|
22034
|
+
var _Hash = Hash$1;
|
|
22035
|
+
function listCacheClear$1() {
|
|
21952
22036
|
this.__data__ = [];
|
|
21953
22037
|
this.size = 0;
|
|
21954
22038
|
}
|
|
21955
|
-
|
|
22039
|
+
var _listCacheClear = listCacheClear$1;
|
|
22040
|
+
function eq$1(value2, other) {
|
|
21956
22041
|
return value2 === other || value2 !== value2 && other !== other;
|
|
21957
22042
|
}
|
|
21958
|
-
|
|
22043
|
+
var eq_1 = eq$1;
|
|
22044
|
+
var eq = eq_1;
|
|
22045
|
+
function assocIndexOf$4(array, key2) {
|
|
21959
22046
|
var length = array.length;
|
|
21960
22047
|
while (length--) {
|
|
21961
22048
|
if (eq(array[length][0], key2)) {
|
|
@@ -21964,10 +22051,12 @@ var __publicField = (obj, key, value) => {
|
|
|
21964
22051
|
}
|
|
21965
22052
|
return -1;
|
|
21966
22053
|
}
|
|
22054
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
22055
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
21967
22056
|
var arrayProto = Array.prototype;
|
|
21968
22057
|
var splice = arrayProto.splice;
|
|
21969
|
-
function listCacheDelete(key2) {
|
|
21970
|
-
var data2 = this.__data__, index = assocIndexOf(data2, key2);
|
|
22058
|
+
function listCacheDelete$1(key2) {
|
|
22059
|
+
var data2 = this.__data__, index = assocIndexOf$3(data2, key2);
|
|
21971
22060
|
if (index < 0) {
|
|
21972
22061
|
return false;
|
|
21973
22062
|
}
|
|
@@ -21980,14 +22069,20 @@ var __publicField = (obj, key, value) => {
|
|
|
21980
22069
|
--this.size;
|
|
21981
22070
|
return true;
|
|
21982
22071
|
}
|
|
21983
|
-
|
|
21984
|
-
|
|
22072
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
22073
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
22074
|
+
function listCacheGet$1(key2) {
|
|
22075
|
+
var data2 = this.__data__, index = assocIndexOf$2(data2, key2);
|
|
21985
22076
|
return index < 0 ? void 0 : data2[index][1];
|
|
21986
22077
|
}
|
|
21987
|
-
|
|
21988
|
-
|
|
22078
|
+
var _listCacheGet = listCacheGet$1;
|
|
22079
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
22080
|
+
function listCacheHas$1(key2) {
|
|
22081
|
+
return assocIndexOf$1(this.__data__, key2) > -1;
|
|
21989
22082
|
}
|
|
21990
|
-
|
|
22083
|
+
var _listCacheHas = listCacheHas$1;
|
|
22084
|
+
var assocIndexOf = _assocIndexOf;
|
|
22085
|
+
function listCacheSet$1(key2, value2) {
|
|
21991
22086
|
var data2 = this.__data__, index = assocIndexOf(data2, key2);
|
|
21992
22087
|
if (index < 0) {
|
|
21993
22088
|
++this.size;
|
|
@@ -21997,7 +22092,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21997
22092
|
}
|
|
21998
22093
|
return this;
|
|
21999
22094
|
}
|
|
22000
|
-
|
|
22095
|
+
var _listCacheSet = listCacheSet$1;
|
|
22096
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
22097
|
+
function ListCache$1(entries) {
|
|
22001
22098
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
22002
22099
|
this.clear();
|
|
22003
22100
|
while (++index < length) {
|
|
@@ -22005,47 +22102,63 @@ var __publicField = (obj, key, value) => {
|
|
|
22005
22102
|
this.set(entry[0], entry[1]);
|
|
22006
22103
|
}
|
|
22007
22104
|
}
|
|
22008
|
-
ListCache.prototype.clear = listCacheClear;
|
|
22009
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
22010
|
-
ListCache.prototype.get = listCacheGet;
|
|
22011
|
-
ListCache.prototype.has = listCacheHas;
|
|
22012
|
-
ListCache.prototype.set = listCacheSet;
|
|
22013
|
-
var
|
|
22014
|
-
|
|
22015
|
-
|
|
22105
|
+
ListCache$1.prototype.clear = listCacheClear;
|
|
22106
|
+
ListCache$1.prototype["delete"] = listCacheDelete;
|
|
22107
|
+
ListCache$1.prototype.get = listCacheGet;
|
|
22108
|
+
ListCache$1.prototype.has = listCacheHas;
|
|
22109
|
+
ListCache$1.prototype.set = listCacheSet;
|
|
22110
|
+
var _ListCache = ListCache$1;
|
|
22111
|
+
var getNative = _getNative, root = _root;
|
|
22112
|
+
var Map$2 = getNative(root, "Map");
|
|
22113
|
+
var _Map = Map$2;
|
|
22114
|
+
var Hash = _Hash, ListCache = _ListCache, Map$1 = _Map;
|
|
22115
|
+
function mapCacheClear$1() {
|
|
22016
22116
|
this.size = 0;
|
|
22017
22117
|
this.__data__ = {
|
|
22018
22118
|
"hash": new Hash(),
|
|
22019
|
-
"map": new (Map$
|
|
22119
|
+
"map": new (Map$1 || ListCache)(),
|
|
22020
22120
|
"string": new Hash()
|
|
22021
22121
|
};
|
|
22022
22122
|
}
|
|
22023
|
-
|
|
22123
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
22124
|
+
function isKeyable$1(value2) {
|
|
22024
22125
|
var type2 = typeof value2;
|
|
22025
22126
|
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value2 !== "__proto__" : value2 === null;
|
|
22026
22127
|
}
|
|
22027
|
-
|
|
22128
|
+
var _isKeyable = isKeyable$1;
|
|
22129
|
+
var isKeyable = _isKeyable;
|
|
22130
|
+
function getMapData$4(map, key2) {
|
|
22028
22131
|
var data2 = map.__data__;
|
|
22029
22132
|
return isKeyable(key2) ? data2[typeof key2 == "string" ? "string" : "hash"] : data2.map;
|
|
22030
22133
|
}
|
|
22031
|
-
|
|
22032
|
-
|
|
22134
|
+
var _getMapData = getMapData$4;
|
|
22135
|
+
var getMapData$3 = _getMapData;
|
|
22136
|
+
function mapCacheDelete$1(key2) {
|
|
22137
|
+
var result = getMapData$3(this, key2)["delete"](key2);
|
|
22033
22138
|
this.size -= result ? 1 : 0;
|
|
22034
22139
|
return result;
|
|
22035
22140
|
}
|
|
22036
|
-
|
|
22037
|
-
|
|
22141
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
22142
|
+
var getMapData$2 = _getMapData;
|
|
22143
|
+
function mapCacheGet$1(key2) {
|
|
22144
|
+
return getMapData$2(this, key2).get(key2);
|
|
22038
22145
|
}
|
|
22039
|
-
|
|
22040
|
-
|
|
22146
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
22147
|
+
var getMapData$1 = _getMapData;
|
|
22148
|
+
function mapCacheHas$1(key2) {
|
|
22149
|
+
return getMapData$1(this, key2).has(key2);
|
|
22041
22150
|
}
|
|
22042
|
-
|
|
22151
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
22152
|
+
var getMapData = _getMapData;
|
|
22153
|
+
function mapCacheSet$1(key2, value2) {
|
|
22043
22154
|
var data2 = getMapData(this, key2), size = data2.size;
|
|
22044
22155
|
data2.set(key2, value2);
|
|
22045
22156
|
this.size += data2.size == size ? 0 : 1;
|
|
22046
22157
|
return this;
|
|
22047
22158
|
}
|
|
22048
|
-
|
|
22159
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
22160
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
22161
|
+
function MapCache$1(entries) {
|
|
22049
22162
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
22050
22163
|
this.clear();
|
|
22051
22164
|
while (++index < length) {
|
|
@@ -22053,13 +22166,15 @@ var __publicField = (obj, key, value) => {
|
|
|
22053
22166
|
this.set(entry[0], entry[1]);
|
|
22054
22167
|
}
|
|
22055
22168
|
}
|
|
22056
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
22057
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
22058
|
-
MapCache.prototype.get = mapCacheGet;
|
|
22059
|
-
MapCache.prototype.has = mapCacheHas;
|
|
22060
|
-
MapCache.prototype.set = mapCacheSet;
|
|
22169
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
22170
|
+
MapCache$1.prototype["delete"] = mapCacheDelete;
|
|
22171
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
22172
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
22173
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
22174
|
+
var _MapCache = MapCache$1;
|
|
22175
|
+
var MapCache = _MapCache;
|
|
22061
22176
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
22062
|
-
function memoize(func, resolver) {
|
|
22177
|
+
function memoize$1(func, resolver) {
|
|
22063
22178
|
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
22064
22179
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
22065
22180
|
}
|
|
@@ -22072,12 +22187,14 @@ var __publicField = (obj, key, value) => {
|
|
|
22072
22187
|
memoized.cache = cache.set(key2, result) || cache;
|
|
22073
22188
|
return result;
|
|
22074
22189
|
};
|
|
22075
|
-
memoized.cache = new (memoize.Cache || MapCache)();
|
|
22190
|
+
memoized.cache = new (memoize$1.Cache || MapCache)();
|
|
22076
22191
|
return memoized;
|
|
22077
22192
|
}
|
|
22078
|
-
memoize.Cache = MapCache;
|
|
22193
|
+
memoize$1.Cache = MapCache;
|
|
22194
|
+
var memoize_1 = memoize$1;
|
|
22195
|
+
var memoize = memoize_1;
|
|
22079
22196
|
var MAX_MEMOIZE_SIZE = 500;
|
|
22080
|
-
function memoizeCapped(func) {
|
|
22197
|
+
function memoizeCapped$1(func) {
|
|
22081
22198
|
var result = memoize(func, function(key2) {
|
|
22082
22199
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
22083
22200
|
cache.clear();
|
|
@@ -22087,9 +22204,11 @@ var __publicField = (obj, key, value) => {
|
|
|
22087
22204
|
var cache = result.cache;
|
|
22088
22205
|
return result;
|
|
22089
22206
|
}
|
|
22207
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
22208
|
+
var memoizeCapped = _memoizeCapped;
|
|
22090
22209
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
22091
22210
|
var reEscapeChar = /\\(\\)?/g;
|
|
22092
|
-
var stringToPath = memoizeCapped(function(string) {
|
|
22211
|
+
var stringToPath$1 = memoizeCapped(function(string) {
|
|
22093
22212
|
var result = [];
|
|
22094
22213
|
if (string.charCodeAt(0) === 46) {
|
|
22095
22214
|
result.push("");
|
|
@@ -22099,88 +22218,109 @@ var __publicField = (obj, key, value) => {
|
|
|
22099
22218
|
});
|
|
22100
22219
|
return result;
|
|
22101
22220
|
});
|
|
22102
|
-
|
|
22103
|
-
function arrayMap(array, iteratee) {
|
|
22221
|
+
var _stringToPath = stringToPath$1;
|
|
22222
|
+
function arrayMap$1(array, iteratee) {
|
|
22104
22223
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
22105
22224
|
while (++index < length) {
|
|
22106
22225
|
result[index] = iteratee(array[index], index, array);
|
|
22107
22226
|
}
|
|
22108
22227
|
return result;
|
|
22109
22228
|
}
|
|
22229
|
+
var _arrayMap = arrayMap$1;
|
|
22230
|
+
var Symbol$1 = _Symbol, arrayMap = _arrayMap, isArray$2 = isArray_1, isSymbol$1 = isSymbol_1;
|
|
22110
22231
|
var INFINITY$1 = 1 / 0;
|
|
22111
|
-
var symbolProto = Symbol$
|
|
22112
|
-
function baseToString(value2) {
|
|
22232
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
22233
|
+
function baseToString$1(value2) {
|
|
22113
22234
|
if (typeof value2 == "string") {
|
|
22114
22235
|
return value2;
|
|
22115
22236
|
}
|
|
22116
|
-
if (isArray$
|
|
22117
|
-
return arrayMap(value2, baseToString) + "";
|
|
22237
|
+
if (isArray$2(value2)) {
|
|
22238
|
+
return arrayMap(value2, baseToString$1) + "";
|
|
22118
22239
|
}
|
|
22119
|
-
if (isSymbol(value2)) {
|
|
22240
|
+
if (isSymbol$1(value2)) {
|
|
22120
22241
|
return symbolToString ? symbolToString.call(value2) : "";
|
|
22121
22242
|
}
|
|
22122
22243
|
var result = value2 + "";
|
|
22123
22244
|
return result == "0" && 1 / value2 == -INFINITY$1 ? "-0" : result;
|
|
22124
22245
|
}
|
|
22125
|
-
|
|
22246
|
+
var _baseToString = baseToString$1;
|
|
22247
|
+
var baseToString = _baseToString;
|
|
22248
|
+
function toString$1(value2) {
|
|
22126
22249
|
return value2 == null ? "" : baseToString(value2);
|
|
22127
22250
|
}
|
|
22128
|
-
|
|
22251
|
+
var toString_1 = toString$1;
|
|
22252
|
+
var isArray$1 = isArray_1, isKey = _isKey, stringToPath = _stringToPath, toString = toString_1;
|
|
22253
|
+
function castPath$2(value2, object2) {
|
|
22129
22254
|
if (isArray$1(value2)) {
|
|
22130
22255
|
return value2;
|
|
22131
22256
|
}
|
|
22132
|
-
return isKey(value2, object2) ? [value2] : stringToPath
|
|
22257
|
+
return isKey(value2, object2) ? [value2] : stringToPath(toString(value2));
|
|
22133
22258
|
}
|
|
22259
|
+
var _castPath = castPath$2;
|
|
22260
|
+
var isSymbol = isSymbol_1;
|
|
22134
22261
|
var INFINITY = 1 / 0;
|
|
22135
|
-
function toKey(value2) {
|
|
22262
|
+
function toKey$2(value2) {
|
|
22136
22263
|
if (typeof value2 == "string" || isSymbol(value2)) {
|
|
22137
22264
|
return value2;
|
|
22138
22265
|
}
|
|
22139
22266
|
var result = value2 + "";
|
|
22140
22267
|
return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
|
|
22141
22268
|
}
|
|
22142
|
-
|
|
22143
|
-
|
|
22269
|
+
var _toKey = toKey$2;
|
|
22270
|
+
var castPath$1 = _castPath, toKey$1 = _toKey;
|
|
22271
|
+
function baseGet$1(object2, path2) {
|
|
22272
|
+
path2 = castPath$1(path2, object2);
|
|
22144
22273
|
var index = 0, length = path2.length;
|
|
22145
22274
|
while (object2 != null && index < length) {
|
|
22146
|
-
object2 = object2[toKey(path2[index++])];
|
|
22275
|
+
object2 = object2[toKey$1(path2[index++])];
|
|
22147
22276
|
}
|
|
22148
22277
|
return index && index == length ? object2 : void 0;
|
|
22149
22278
|
}
|
|
22279
|
+
var _baseGet = baseGet$1;
|
|
22280
|
+
var baseGet = _baseGet;
|
|
22150
22281
|
function get(object2, path2, defaultValue) {
|
|
22151
22282
|
var result = object2 == null ? void 0 : baseGet(object2, path2);
|
|
22152
22283
|
return result === void 0 ? defaultValue : result;
|
|
22153
22284
|
}
|
|
22285
|
+
var get_1 = get;
|
|
22286
|
+
const get$1 = /* @__PURE__ */ getDefaultExportFromCjs(get_1);
|
|
22154
22287
|
var objectProto$1 = Object.prototype;
|
|
22155
22288
|
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
22156
|
-
function baseHas(object2, key2) {
|
|
22289
|
+
function baseHas$1(object2, key2) {
|
|
22157
22290
|
return object2 != null && hasOwnProperty$1.call(object2, key2);
|
|
22158
22291
|
}
|
|
22292
|
+
var _baseHas = baseHas$1;
|
|
22293
|
+
var baseGetTag = _baseGetTag, isObjectLike$1 = isObjectLike_1;
|
|
22159
22294
|
var argsTag = "[object Arguments]";
|
|
22160
|
-
function baseIsArguments(value2) {
|
|
22161
|
-
return isObjectLike(value2) && baseGetTag(value2) == argsTag;
|
|
22295
|
+
function baseIsArguments$1(value2) {
|
|
22296
|
+
return isObjectLike$1(value2) && baseGetTag(value2) == argsTag;
|
|
22162
22297
|
}
|
|
22298
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
22299
|
+
var baseIsArguments = _baseIsArguments, isObjectLike = isObjectLike_1;
|
|
22163
22300
|
var objectProto = Object.prototype;
|
|
22164
22301
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
22165
22302
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
22166
|
-
var isArguments = baseIsArguments(function() {
|
|
22303
|
+
var isArguments$1 = baseIsArguments(function() {
|
|
22167
22304
|
return arguments;
|
|
22168
22305
|
}()) ? baseIsArguments : function(value2) {
|
|
22169
22306
|
return isObjectLike(value2) && hasOwnProperty.call(value2, "callee") && !propertyIsEnumerable.call(value2, "callee");
|
|
22170
22307
|
};
|
|
22171
|
-
|
|
22308
|
+
var isArguments_1 = isArguments$1;
|
|
22172
22309
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
22173
22310
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
22174
|
-
function isIndex(value2, length) {
|
|
22311
|
+
function isIndex$1(value2, length) {
|
|
22175
22312
|
var type2 = typeof value2;
|
|
22176
22313
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
22177
22314
|
return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value2)) && (value2 > -1 && value2 % 1 == 0 && value2 < length);
|
|
22178
22315
|
}
|
|
22316
|
+
var _isIndex = isIndex$1;
|
|
22179
22317
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
22180
|
-
function isLength(value2) {
|
|
22318
|
+
function isLength$1(value2) {
|
|
22181
22319
|
return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER;
|
|
22182
22320
|
}
|
|
22183
|
-
|
|
22321
|
+
var isLength_1 = isLength$1;
|
|
22322
|
+
var castPath = _castPath, isArguments = isArguments_1, isArray = isArray_1, isIndex = _isIndex, isLength = isLength_1, toKey = _toKey;
|
|
22323
|
+
function hasPath$1(object2, path2, hasFunc) {
|
|
22184
22324
|
path2 = castPath(path2, object2);
|
|
22185
22325
|
var index = -1, length = path2.length, result = false;
|
|
22186
22326
|
while (++index < length) {
|
|
@@ -22194,123 +22334,138 @@ var __publicField = (obj, key, value) => {
|
|
|
22194
22334
|
return result;
|
|
22195
22335
|
}
|
|
22196
22336
|
length = object2 == null ? 0 : object2.length;
|
|
22197
|
-
return !!length && isLength(length) && isIndex(key2, length) && (isArray
|
|
22337
|
+
return !!length && isLength(length) && isIndex(key2, length) && (isArray(object2) || isArguments(object2));
|
|
22198
22338
|
}
|
|
22339
|
+
var _hasPath = hasPath$1;
|
|
22340
|
+
var baseHas = _baseHas, hasPath = _hasPath;
|
|
22199
22341
|
function has(object2, path2) {
|
|
22200
22342
|
return object2 != null && hasPath(object2, path2, baseHas);
|
|
22201
22343
|
}
|
|
22202
|
-
var
|
|
22203
|
-
|
|
22204
|
-
|
|
22205
|
-
|
|
22206
|
-
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
|
|
22212
|
-
|
|
22213
|
-
|
|
22214
|
-
|
|
22215
|
-
|
|
22216
|
-
|
|
22344
|
+
var has_1 = has;
|
|
22345
|
+
const has$1 = /* @__PURE__ */ getDefaultExportFromCjs(has_1);
|
|
22346
|
+
const useForm = ({
|
|
22347
|
+
refineCoreProps,
|
|
22348
|
+
warnWhenUnsavedChanges: warnWhenUnsavedChangesProp,
|
|
22349
|
+
disableServerSideValidation: disableServerSideValidationProp = false,
|
|
22350
|
+
...rest
|
|
22351
|
+
} = {}) => {
|
|
22352
|
+
const { options } = core.useRefineContext();
|
|
22353
|
+
const disableServerSideValidation = (options == null ? void 0 : options.disableServerSideValidation) || disableServerSideValidationProp;
|
|
22354
|
+
const translate = core.useTranslate();
|
|
22355
|
+
const { warnWhenUnsavedChanges: warnWhenUnsavedChangesRefine, setWarnWhen } = core.useWarnAboutChange();
|
|
22356
|
+
const warnWhenUnsavedChanges = warnWhenUnsavedChangesProp ?? warnWhenUnsavedChangesRefine;
|
|
22357
|
+
const useHookFormResult = useForm$1({
|
|
22358
|
+
...rest
|
|
22359
|
+
});
|
|
22360
|
+
const {
|
|
22361
|
+
watch,
|
|
22362
|
+
setValue,
|
|
22363
|
+
getValues,
|
|
22364
|
+
handleSubmit: handleSubmitReactHookForm,
|
|
22365
|
+
setError,
|
|
22366
|
+
formState
|
|
22367
|
+
} = useHookFormResult;
|
|
22368
|
+
const useFormCoreResult = core.useForm({
|
|
22369
|
+
...refineCoreProps,
|
|
22370
|
+
onMutationError: (error, _variables, _context) => {
|
|
22371
|
+
var _a, _b;
|
|
22372
|
+
if (disableServerSideValidation) {
|
|
22373
|
+
(_a = refineCoreProps == null ? void 0 : refineCoreProps.onMutationError) == null ? void 0 : _a.call(refineCoreProps, error, _variables, _context);
|
|
22374
|
+
return;
|
|
22375
|
+
}
|
|
22376
|
+
const errors = error == null ? void 0 : error.errors;
|
|
22377
|
+
for (const key2 in errors) {
|
|
22378
|
+
const isKeyInVariables = Object.keys(core.flattenObjectKeys(_variables)).includes(key2);
|
|
22379
|
+
if (!isKeyInVariables) {
|
|
22380
|
+
continue;
|
|
22381
|
+
}
|
|
22382
|
+
const fieldError = errors[key2];
|
|
22383
|
+
let newError = "";
|
|
22384
|
+
if (Array.isArray(fieldError)) {
|
|
22385
|
+
newError = fieldError.join(" ");
|
|
22386
|
+
}
|
|
22387
|
+
if (typeof fieldError === "string") {
|
|
22388
|
+
newError = fieldError;
|
|
22389
|
+
}
|
|
22390
|
+
if (typeof fieldError === "boolean" && fieldError) {
|
|
22391
|
+
newError = "Field is not valid.";
|
|
22392
|
+
}
|
|
22393
|
+
if (typeof fieldError === "object" && "key" in fieldError) {
|
|
22394
|
+
const translatedMessage = translate(fieldError.key, fieldError.message);
|
|
22395
|
+
newError = translatedMessage;
|
|
22396
|
+
}
|
|
22397
|
+
setError(key2, {
|
|
22398
|
+
message: newError
|
|
22399
|
+
});
|
|
22400
|
+
}
|
|
22401
|
+
(_b = refineCoreProps == null ? void 0 : refineCoreProps.onMutationError) == null ? void 0 : _b.call(refineCoreProps, error, _variables, _context);
|
|
22217
22402
|
}
|
|
22218
|
-
|
|
22219
|
-
|
|
22403
|
+
});
|
|
22404
|
+
const { queryResult, onFinish, formLoading, onFinishAutoSave } = useFormCoreResult;
|
|
22220
22405
|
React.useEffect(() => {
|
|
22221
|
-
var
|
|
22222
|
-
|
|
22223
|
-
if (!r2)
|
|
22406
|
+
var _a;
|
|
22407
|
+
if (formState.isDirty)
|
|
22224
22408
|
return;
|
|
22225
|
-
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22409
|
+
const data2 = (_a = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a.data;
|
|
22410
|
+
if (!data2)
|
|
22411
|
+
return;
|
|
22412
|
+
const registeredFields = Object.keys(core.flattenObjectKeys(getValues()));
|
|
22413
|
+
registeredFields.forEach((path2) => {
|
|
22414
|
+
const hasValue = has$1(data2, path2);
|
|
22415
|
+
const dataValue = get$1(data2, path2);
|
|
22416
|
+
if (hasValue) {
|
|
22417
|
+
setValue(path2, dataValue);
|
|
22418
|
+
}
|
|
22232
22419
|
});
|
|
22233
|
-
|
|
22234
|
-
}, [c2]);
|
|
22235
|
-
let W = m((r2) => {
|
|
22236
|
-
var s2;
|
|
22237
|
-
if (f && b(true), t2 != null && t2.autoSave) {
|
|
22238
|
-
b(false);
|
|
22239
|
-
let e2 = (s2 = t2.autoSave) == null ? void 0 : s2.onFinish;
|
|
22240
|
-
return j(e2 ? e2(r2) : r2);
|
|
22241
|
-
}
|
|
22242
|
-
return r2;
|
|
22243
|
-
}, "onValuesChange"), g = m((r2, s2) => async (e2) => (b(false), T(r2, s2)(e2)), "handleSubmit");
|
|
22244
|
-
return { ...d, handleSubmit: g, refineCore: E, saveButtonProps: { disabled: B, onClick: (r2) => {
|
|
22245
|
-
g(o, () => false)(r2);
|
|
22246
|
-
} } };
|
|
22247
|
-
}, "useForm");
|
|
22248
|
-
m(({ stepsProps: t2, ...a2 } = {}) => {
|
|
22249
|
-
let { defaultStep: p = 0, isBackValidate: Q = false } = t2 ?? {}, [F, S] = React.useState(p), U = C({ ...a2 }), { trigger: h, getValues: b, setValue: f, formState: { dirtyFields: d }, refineCore: { queryResult: c2 } } = U;
|
|
22420
|
+
}, [queryResult == null ? void 0 : queryResult.data, setValue, getValues, formState.isDirty]);
|
|
22250
22421
|
React.useEffect(() => {
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
let x = Object.keys(b());
|
|
22256
|
-
Object.entries(T).forEach(([l, o]) => {
|
|
22257
|
-
let B = l;
|
|
22258
|
-
x.includes(B) && (d[B] || f(B, o));
|
|
22422
|
+
const subscription = watch((values, { type: type2 }) => {
|
|
22423
|
+
if (type2 === "change") {
|
|
22424
|
+
onValuesChange(values);
|
|
22425
|
+
}
|
|
22259
22426
|
});
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
if (T === F)
|
|
22267
|
-
return;
|
|
22268
|
-
if (T < F && !Q) {
|
|
22269
|
-
R(T);
|
|
22270
|
-
return;
|
|
22427
|
+
return () => subscription.unsubscribe();
|
|
22428
|
+
}, [watch]);
|
|
22429
|
+
const onValuesChange = (changeValues) => {
|
|
22430
|
+
var _a;
|
|
22431
|
+
if (warnWhenUnsavedChanges) {
|
|
22432
|
+
setWarnWhen(true);
|
|
22271
22433
|
}
|
|
22272
|
-
|
|
22273
|
-
|
|
22274
|
-
|
|
22275
|
-
|
|
22276
|
-
|
|
22277
|
-
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
|
|
22283
|
-
|
|
22284
|
-
|
|
22285
|
-
|
|
22286
|
-
|
|
22287
|
-
|
|
22288
|
-
|
|
22289
|
-
|
|
22290
|
-
|
|
22291
|
-
}
|
|
22292
|
-
|
|
22293
|
-
|
|
22294
|
-
|
|
22295
|
-
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22299
|
-
else
|
|
22300
|
-
return;
|
|
22301
|
-
e2 == null || e2(void 0), u();
|
|
22302
|
-
}, [O, y.status]), _ = React.useCallback((n2) => {
|
|
22303
|
-
typeof n2 < "u" && (e2 == null || e2(n2)), (!(E === "edit" || E === "clone") || (typeof n2 < "u" || typeof s2 < "u")) && k();
|
|
22304
|
-
}, [s2]), q = h(`${R}.titles.${f}`, void 0, `${x(`${f} ${((A = d == null ? void 0 : d.meta) == null ? void 0 : A.label) ?? ((N = d == null ? void 0 : d.options) == null ? void 0 : N.label) ?? (d == null ? void 0 : d.label) ?? R}`, "singular")}`);
|
|
22305
|
-
return { modal: { submit: D, close: Z, show: _, visible: V, title: q }, ...g, saveButtonProps: { ...v, onClick: (n2) => H(D)(n2) } };
|
|
22306
|
-
}, "useModalForm");
|
|
22434
|
+
if (refineCoreProps == null ? void 0 : refineCoreProps.autoSave) {
|
|
22435
|
+
setWarnWhen(false);
|
|
22436
|
+
const onFinishProps = (_a = refineCoreProps.autoSave) == null ? void 0 : _a.onFinish;
|
|
22437
|
+
if (onFinishProps) {
|
|
22438
|
+
return onFinishAutoSave(onFinishProps(changeValues));
|
|
22439
|
+
}
|
|
22440
|
+
return onFinishAutoSave(changeValues);
|
|
22441
|
+
}
|
|
22442
|
+
return changeValues;
|
|
22443
|
+
};
|
|
22444
|
+
const handleSubmit = (onValid, onInvalid) => async (e2) => {
|
|
22445
|
+
setWarnWhen(false);
|
|
22446
|
+
return handleSubmitReactHookForm(onValid, onInvalid)(e2);
|
|
22447
|
+
};
|
|
22448
|
+
const saveButtonProps = {
|
|
22449
|
+
disabled: formLoading,
|
|
22450
|
+
onClick: (e2) => {
|
|
22451
|
+
handleSubmit(onFinish, () => false)(e2);
|
|
22452
|
+
}
|
|
22453
|
+
};
|
|
22454
|
+
return {
|
|
22455
|
+
...useHookFormResult,
|
|
22456
|
+
handleSubmit,
|
|
22457
|
+
refineCore: useFormCoreResult,
|
|
22458
|
+
saveButtonProps
|
|
22459
|
+
};
|
|
22460
|
+
};
|
|
22307
22461
|
const useRefineForm = (props) => {
|
|
22308
22462
|
var _a;
|
|
22309
22463
|
const { config, id, refineProps } = props;
|
|
22310
22464
|
const [responseErrorMsg, setResponseErrorMsg] = React.useState("");
|
|
22311
22465
|
const i18n2 = useTranslation();
|
|
22312
|
-
const result =
|
|
22313
|
-
mode: "
|
|
22466
|
+
const result = useForm({
|
|
22467
|
+
mode: "onSubmit",
|
|
22468
|
+
reValidateMode: "onChange",
|
|
22314
22469
|
refineCoreProps: {
|
|
22315
22470
|
errorNotification: false,
|
|
22316
22471
|
successNotification: () => {
|
|
@@ -22331,6 +22486,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22331
22486
|
resource: config.name,
|
|
22332
22487
|
action: id ? "edit" : "create",
|
|
22333
22488
|
id,
|
|
22489
|
+
liveMode: "off",
|
|
22334
22490
|
...refineProps
|
|
22335
22491
|
},
|
|
22336
22492
|
defaultValues: config == null ? void 0 : config.initValue
|
|
@@ -23092,7 +23248,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23092
23248
|
...yamlFormProps
|
|
23093
23249
|
});
|
|
23094
23250
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(RefineFormContent, {
|
|
23095
|
-
|
|
23251
|
+
formResult: refineFormResult.formResult,
|
|
23096
23252
|
config,
|
|
23097
23253
|
errorMsg: refineFormResult.responseErrorMsg,
|
|
23098
23254
|
action: id ? "edit" : "create"
|
|
@@ -23155,8 +23311,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23155
23311
|
onFinish
|
|
23156
23312
|
},
|
|
23157
23313
|
getValues,
|
|
23158
|
-
saveButtonProps
|
|
23159
|
-
control
|
|
23314
|
+
saveButtonProps
|
|
23160
23315
|
} = formResult;
|
|
23161
23316
|
const onClick = () => {
|
|
23162
23317
|
const data2 = getValues();
|
|
@@ -23167,7 +23322,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23167
23322
|
className: "c1pvtlkp",
|
|
23168
23323
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(RefineFormContent, {
|
|
23169
23324
|
config,
|
|
23170
|
-
|
|
23325
|
+
formResult
|
|
23171
23326
|
}), ";", /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
23172
23327
|
...saveButtonProps,
|
|
23173
23328
|
onClick,
|
|
@@ -23499,7 +23654,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23499
23654
|
});
|
|
23500
23655
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: result });
|
|
23501
23656
|
};
|
|
23502
|
-
const
|
|
23657
|
+
const columns_qgyagz = "";
|
|
23503
23658
|
const DashedTitleStyle = "dh5j833";
|
|
23504
23659
|
const ServiceClusterTooltipStyle = "s1fcgan";
|
|
23505
23660
|
const NameLink = (props) => {
|
|
@@ -24079,7 +24234,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24079
24234
|
},
|
|
24080
24235
|
[setCurrentPage]
|
|
24081
24236
|
);
|
|
24082
|
-
const currentSize = (tableProps == null ? void 0 : tableProps.
|
|
24237
|
+
const currentSize = (tableProps == null ? void 0 : tableProps.defaultSize) || 10;
|
|
24083
24238
|
const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice((currentPage - 1) * currentSize, currentPage * currentSize);
|
|
24084
24239
|
const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
|
|
24085
24240
|
const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
|
|
@@ -24092,7 +24247,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24092
24247
|
error: false,
|
|
24093
24248
|
rowKey: "id",
|
|
24094
24249
|
currentPage,
|
|
24095
|
-
currentSize,
|
|
24250
|
+
defaultSize: currentSize,
|
|
24096
24251
|
onPageChange,
|
|
24097
24252
|
onSelect: (keys) => {
|
|
24098
24253
|
setSelectedKeys(keys);
|