@dovetail-v2/refine 0.0.42 → 0.0.44
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-b007e47c.js → MonacoYamlDiffEditor-71c3ccc4.js} +1 -1
- package/dist/{index-3ef1da30.js → index-72d47bc9.js} +604 -456
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +593 -445
- package/dist/style.css +1 -1
- package/lib/src/components/Form/RefineFormContent.d.ts +1 -1
- package/lib/src/components/Form/type.d.ts +2 -1
- package/lib/src/components/Form/useReactHookForm.d.ts +29 -0
- package/lib/src/components/Form/useRefineForm.d.ts +3 -3
- package/lib/src/components/Table/index.d.ts +1 -1
- package/lib/src/types/resource.d.ts +2 -1
- package/package.json +1 -1
package/dist/refine.umd.cjs
CHANGED
|
@@ -43,12 +43,12 @@ var __publicField = (obj, key, value) => {
|
|
|
43
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
44
|
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
45
45
|
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
46
|
-
} },
|
|
46
|
+
} }, m = function(t3, e3, n3) {
|
|
47
47
|
var r3 = String(t3);
|
|
48
48
|
return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
|
|
49
|
-
}, v = { s:
|
|
49
|
+
}, v = { s: m, z: function(t3) {
|
|
50
50
|
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
51
|
-
return (e3 <= 0 ? "+" : "-") +
|
|
51
|
+
return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
|
|
52
52
|
}, m: function t3(e3, n3) {
|
|
53
53
|
if (e3.date() < n3.date())
|
|
54
54
|
return -t3(n3, e3);
|
|
@@ -92,8 +92,8 @@ var __publicField = (obj, key, value) => {
|
|
|
92
92
|
function M2(t3) {
|
|
93
93
|
this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
|
|
94
94
|
}
|
|
95
|
-
var
|
|
96
|
-
return
|
|
95
|
+
var m2 = M2.prototype;
|
|
96
|
+
return m2.parse = function(t3) {
|
|
97
97
|
this.$d = function(t4) {
|
|
98
98
|
var e3 = t4.date, n3 = t4.utc;
|
|
99
99
|
if (null === e3)
|
|
@@ -111,33 +111,33 @@ var __publicField = (obj, key, value) => {
|
|
|
111
111
|
}
|
|
112
112
|
return new Date(e3);
|
|
113
113
|
}(t3), this.init();
|
|
114
|
-
},
|
|
114
|
+
}, m2.init = function() {
|
|
115
115
|
var t3 = this.$d;
|
|
116
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
|
-
},
|
|
117
|
+
}, m2.$utils = function() {
|
|
118
118
|
return b;
|
|
119
|
-
},
|
|
119
|
+
}, m2.isValid = function() {
|
|
120
120
|
return !(this.$d.toString() === l);
|
|
121
|
-
},
|
|
121
|
+
}, m2.isSame = function(t3, e3) {
|
|
122
122
|
var n3 = O(t3);
|
|
123
123
|
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
124
|
-
},
|
|
124
|
+
}, m2.isAfter = function(t3, e3) {
|
|
125
125
|
return O(t3) < this.startOf(e3);
|
|
126
|
-
},
|
|
126
|
+
}, m2.isBefore = function(t3, e3) {
|
|
127
127
|
return this.endOf(e3) < O(t3);
|
|
128
|
-
},
|
|
128
|
+
}, m2.$g = function(t3, e3, n3) {
|
|
129
129
|
return b.u(t3) ? this[e3] : this.set(n3, t3);
|
|
130
|
-
},
|
|
130
|
+
}, m2.unix = function() {
|
|
131
131
|
return Math.floor(this.valueOf() / 1e3);
|
|
132
|
-
},
|
|
132
|
+
}, m2.valueOf = function() {
|
|
133
133
|
return this.$d.getTime();
|
|
134
|
-
},
|
|
134
|
+
}, m2.startOf = function(t3, e3) {
|
|
135
135
|
var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
|
|
136
136
|
var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
|
137
137
|
return r3 ? i3 : i3.endOf(a2);
|
|
138
138
|
}, $2 = function(t4, e4) {
|
|
139
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,
|
|
140
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
141
141
|
switch (f2) {
|
|
142
142
|
case h:
|
|
143
143
|
return r3 ? l2(1, 0) : l2(31, 11);
|
|
@@ -145,7 +145,7 @@ var __publicField = (obj, key, value) => {
|
|
|
145
145
|
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
146
146
|
case o:
|
|
147
147
|
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
148
|
-
return l2(r3 ?
|
|
148
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
149
149
|
case a2:
|
|
150
150
|
case d:
|
|
151
151
|
return $2(v2 + "Hours", 0);
|
|
@@ -158,9 +158,9 @@ var __publicField = (obj, key, value) => {
|
|
|
158
158
|
default:
|
|
159
159
|
return this.clone();
|
|
160
160
|
}
|
|
161
|
-
},
|
|
161
|
+
}, m2.endOf = function(t3) {
|
|
162
162
|
return this.startOf(t3, false);
|
|
163
|
-
},
|
|
163
|
+
}, m2.$set = function(t3, e3) {
|
|
164
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
165
|
if (o2 === c2 || o2 === h) {
|
|
166
166
|
var y2 = this.clone().set(d, 1);
|
|
@@ -168,11 +168,11 @@ var __publicField = (obj, key, value) => {
|
|
|
168
168
|
} else
|
|
169
169
|
l2 && this.$d[l2]($2);
|
|
170
170
|
return this.init(), this;
|
|
171
|
-
},
|
|
171
|
+
}, m2.set = function(t3, e3) {
|
|
172
172
|
return this.clone().$set(t3, e3);
|
|
173
|
-
},
|
|
173
|
+
}, m2.get = function(t3) {
|
|
174
174
|
return this[b.p(t3)]();
|
|
175
|
-
},
|
|
175
|
+
}, m2.add = function(r3, f2) {
|
|
176
176
|
var d2, l2 = this;
|
|
177
177
|
r3 = Number(r3);
|
|
178
178
|
var $2 = b.p(f2), y2 = function(t3) {
|
|
@@ -187,11 +187,11 @@ var __publicField = (obj, key, value) => {
|
|
|
187
187
|
return y2(1);
|
|
188
188
|
if ($2 === o)
|
|
189
189
|
return y2(7);
|
|
190
|
-
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1,
|
|
191
|
-
return b.w(
|
|
192
|
-
},
|
|
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
193
|
return this.add(-1 * t3, e3);
|
|
194
|
-
},
|
|
194
|
+
}, m2.format = function(t3) {
|
|
195
195
|
var e3 = this, n3 = this.$locale();
|
|
196
196
|
if (!this.isValid())
|
|
197
197
|
return n3.invalidDate || l;
|
|
@@ -258,11 +258,11 @@ var __publicField = (obj, key, value) => {
|
|
|
258
258
|
return null;
|
|
259
259
|
}(t4) || i3.replace(":", "");
|
|
260
260
|
});
|
|
261
|
-
},
|
|
261
|
+
}, m2.utcOffset = function() {
|
|
262
262
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
263
|
-
},
|
|
264
|
-
var $2, y2 = this, M3 = b.p(d2),
|
|
265
|
-
return b.m(y2,
|
|
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
266
|
};
|
|
267
267
|
switch (M3) {
|
|
268
268
|
case h:
|
|
@@ -293,24 +293,24 @@ var __publicField = (obj, key, value) => {
|
|
|
293
293
|
$2 = g2;
|
|
294
294
|
}
|
|
295
295
|
return l2 ? $2 : b.a($2);
|
|
296
|
-
},
|
|
296
|
+
}, m2.daysInMonth = function() {
|
|
297
297
|
return this.endOf(c2).$D;
|
|
298
|
-
},
|
|
298
|
+
}, m2.$locale = function() {
|
|
299
299
|
return D[this.$L];
|
|
300
|
-
},
|
|
300
|
+
}, m2.locale = function(t3, e3) {
|
|
301
301
|
if (!t3)
|
|
302
302
|
return this.$L;
|
|
303
303
|
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
304
304
|
return r3 && (n3.$L = r3), n3;
|
|
305
|
-
},
|
|
305
|
+
}, m2.clone = function() {
|
|
306
306
|
return b.w(this.$d, this);
|
|
307
|
-
},
|
|
307
|
+
}, m2.toDate = function() {
|
|
308
308
|
return new Date(this.valueOf());
|
|
309
|
-
},
|
|
309
|
+
}, m2.toJSON = function() {
|
|
310
310
|
return this.isValid() ? this.toISOString() : null;
|
|
311
|
-
},
|
|
311
|
+
}, m2.toISOString = function() {
|
|
312
312
|
return this.$d.toISOString();
|
|
313
|
-
},
|
|
313
|
+
}, m2.toString = function() {
|
|
314
314
|
return this.$d.toUTCString();
|
|
315
315
|
}, M2;
|
|
316
316
|
}(), k = _.prototype;
|
|
@@ -411,23 +411,23 @@ var __publicField = (obj, key, value) => {
|
|
|
411
411
|
}
|
|
412
412
|
var c = { parse: function(e2, t2) {
|
|
413
413
|
t2 || (t2 = {}), t2.components || (t2.components = s);
|
|
414
|
-
var a2, c2 = [], o = [], l = -1,
|
|
414
|
+
var a2, c2 = [], o = [], l = -1, m = false;
|
|
415
415
|
if (0 !== e2.indexOf("<")) {
|
|
416
416
|
var u = e2.indexOf("<");
|
|
417
417
|
c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
|
|
418
418
|
}
|
|
419
419
|
return e2.replace(r, function(r2, s2) {
|
|
420
|
-
if (
|
|
420
|
+
if (m) {
|
|
421
421
|
if (r2 !== "</" + a2.name + ">")
|
|
422
422
|
return;
|
|
423
|
-
|
|
423
|
+
m = false;
|
|
424
424
|
}
|
|
425
425
|
var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
|
|
426
426
|
if (h) {
|
|
427
427
|
var v = n(r2);
|
|
428
428
|
return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
|
|
429
429
|
}
|
|
430
|
-
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)) {
|
|
431
431
|
u2 = -1 === l ? c2 : o[l].children;
|
|
432
432
|
var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
|
|
433
433
|
i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
|
|
@@ -546,7 +546,7 @@ var __publicField = (obj, key, value) => {
|
|
|
546
546
|
"/": "/",
|
|
547
547
|
"/": "/"
|
|
548
548
|
};
|
|
549
|
-
const unescapeHtmlEntity = (
|
|
549
|
+
const unescapeHtmlEntity = (m) => htmlEntities[m];
|
|
550
550
|
const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
551
551
|
let defaultOptions$1 = {
|
|
552
552
|
bindI18n: "languageChanged",
|
|
@@ -1599,7 +1599,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1599
1599
|
g = h("react.element");
|
|
1600
1600
|
reactJsxRuntime_production_min.Fragment = h("react.fragment");
|
|
1601
1601
|
}
|
|
1602
|
-
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 };
|
|
1603
1603
|
function q(c2, a2, k) {
|
|
1604
1604
|
var b, d = {}, e2 = null, l = null;
|
|
1605
1605
|
void 0 !== k && (e2 = "" + k);
|
|
@@ -1610,7 +1610,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1610
1610
|
if (c2 && c2.defaultProps)
|
|
1611
1611
|
for (b in a2 = c2.defaultProps, a2)
|
|
1612
1612
|
void 0 === d[b] && (d[b] = a2[b]);
|
|
1613
|
-
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 };
|
|
1614
1614
|
}
|
|
1615
1615
|
reactJsxRuntime_production_min.jsx = q;
|
|
1616
1616
|
reactJsxRuntime_production_min.jsxs = q;
|
|
@@ -8415,7 +8415,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8415
8415
|
/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
|
|
8416
8416
|
] });
|
|
8417
8417
|
}
|
|
8418
|
-
function memoize$
|
|
8418
|
+
function memoize$2(fn) {
|
|
8419
8419
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
8420
8420
|
return function(arg) {
|
|
8421
8421
|
if (cache[arg] === void 0)
|
|
@@ -8424,7 +8424,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8424
8424
|
};
|
|
8425
8425
|
}
|
|
8426
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)-.*))$/;
|
|
8427
|
-
var isPropValid = /* @__PURE__ */ memoize$
|
|
8427
|
+
var isPropValid = /* @__PURE__ */ memoize$2(
|
|
8428
8428
|
function(prop) {
|
|
8429
8429
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
8430
8430
|
}
|
|
@@ -8614,7 +8614,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8614
8614
|
columns,
|
|
8615
8615
|
scroll,
|
|
8616
8616
|
currentPage,
|
|
8617
|
-
|
|
8617
|
+
defaultSize,
|
|
8618
|
+
total,
|
|
8618
8619
|
RowMenu,
|
|
8619
8620
|
refetch,
|
|
8620
8621
|
onPageChange,
|
|
@@ -8625,9 +8626,9 @@ var __publicField = (obj, key, value) => {
|
|
|
8625
8626
|
const wrapperRef = React.useRef(null);
|
|
8626
8627
|
const pagination = React.useMemo(() => ({
|
|
8627
8628
|
current: currentPage,
|
|
8628
|
-
pageSize:
|
|
8629
|
+
pageSize: defaultSize,
|
|
8629
8630
|
onChange: onPageChange
|
|
8630
|
-
}), [currentPage,
|
|
8631
|
+
}), [currentPage, defaultSize, onPageChange]);
|
|
8631
8632
|
const finalColumns = React.useMemo(() => {
|
|
8632
8633
|
if (RowMenu) {
|
|
8633
8634
|
const actionColumn = {
|
|
@@ -8680,8 +8681,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8680
8681
|
ref: auxiliaryLineRef
|
|
8681
8682
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.pagination, {
|
|
8682
8683
|
current: currentPage,
|
|
8683
|
-
size:
|
|
8684
|
-
count:
|
|
8684
|
+
size: defaultSize,
|
|
8685
|
+
count: total,
|
|
8685
8686
|
onChange: onPageChange,
|
|
8686
8687
|
onSizeChange
|
|
8687
8688
|
})]
|
|
@@ -8705,14 +8706,16 @@ var __publicField = (obj, key, value) => {
|
|
|
8705
8706
|
display: true,
|
|
8706
8707
|
dataIndex: "key",
|
|
8707
8708
|
title: t2("dovetail.key"),
|
|
8708
|
-
sortable: true
|
|
8709
|
+
sortable: true,
|
|
8710
|
+
width: "50%"
|
|
8709
8711
|
},
|
|
8710
8712
|
{
|
|
8711
8713
|
key: "value",
|
|
8712
8714
|
display: true,
|
|
8713
8715
|
dataIndex: "value",
|
|
8714
8716
|
title: t2("dovetail.value"),
|
|
8715
|
-
sortable: true
|
|
8717
|
+
sortable: true,
|
|
8718
|
+
width: "50%"
|
|
8716
8719
|
}
|
|
8717
8720
|
];
|
|
8718
8721
|
if (datas.length === 0) {
|
|
@@ -8735,7 +8738,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8735
8738
|
columns: addDefaultRenderToColumns(columns),
|
|
8736
8739
|
rowKey: "key",
|
|
8737
8740
|
empty: t2("dovetail.empty"),
|
|
8738
|
-
currentSize,
|
|
8741
|
+
defaultSize: currentSize,
|
|
8739
8742
|
currentPage,
|
|
8740
8743
|
onPageChange: setCurrentPage,
|
|
8741
8744
|
showMenuColumn: false
|
|
@@ -8754,35 +8757,40 @@ var __publicField = (obj, key, value) => {
|
|
|
8754
8757
|
display: true,
|
|
8755
8758
|
dataIndex: "name",
|
|
8756
8759
|
title: t2("dovetail.name"),
|
|
8757
|
-
sortable: true
|
|
8760
|
+
sortable: true,
|
|
8761
|
+
width: 267
|
|
8758
8762
|
},
|
|
8759
8763
|
{
|
|
8760
8764
|
key: "servicePort",
|
|
8761
8765
|
display: true,
|
|
8762
8766
|
dataIndex: "port",
|
|
8763
8767
|
title: t2("dovetail.service_port"),
|
|
8764
|
-
sortable: true
|
|
8768
|
+
sortable: true,
|
|
8769
|
+
width: 199
|
|
8765
8770
|
},
|
|
8766
8771
|
{
|
|
8767
8772
|
key: "protocol",
|
|
8768
8773
|
display: true,
|
|
8769
8774
|
dataIndex: "protocol",
|
|
8770
8775
|
title: t2("dovetail.protocol"),
|
|
8771
|
-
sortable: true
|
|
8776
|
+
sortable: true,
|
|
8777
|
+
width: 199
|
|
8772
8778
|
},
|
|
8773
8779
|
{
|
|
8774
8780
|
key: "podPort",
|
|
8775
8781
|
display: true,
|
|
8776
8782
|
dataIndex: "targetPort",
|
|
8777
8783
|
title: t2("dovetail.pod_port"),
|
|
8778
|
-
sortable: true
|
|
8784
|
+
sortable: true,
|
|
8785
|
+
width: 199
|
|
8779
8786
|
},
|
|
8780
8787
|
{
|
|
8781
8788
|
key: "nodePort",
|
|
8782
8789
|
display: true,
|
|
8783
8790
|
dataIndex: "nodePort",
|
|
8784
8791
|
title: t2("dovetail.node_port"),
|
|
8785
|
-
sortable: true
|
|
8792
|
+
sortable: true,
|
|
8793
|
+
width: 199
|
|
8786
8794
|
}
|
|
8787
8795
|
];
|
|
8788
8796
|
const ports = (service._rawYaml.spec.ports || []).map((port2) => ({
|
|
@@ -8809,7 +8817,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8809
8817
|
columns: addDefaultRenderToColumns(columns),
|
|
8810
8818
|
rowKey: "name",
|
|
8811
8819
|
empty: t2("dovetail.empty"),
|
|
8812
|
-
currentSize,
|
|
8820
|
+
defaultSize: currentSize,
|
|
8813
8821
|
currentPage,
|
|
8814
8822
|
onPageChange: setCurrentPage,
|
|
8815
8823
|
showMenuColumn: false
|
|
@@ -10030,7 +10038,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10030
10038
|
return n2.fromToBase(r3, e3, t3, o2);
|
|
10031
10039
|
}
|
|
10032
10040
|
t2.en.relativeTime = o, n2.fromToBase = function(e3, n3, i3, d2, u) {
|
|
10033
|
-
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) {
|
|
10034
10042
|
var y = h[c2];
|
|
10035
10043
|
y.d && (f = d2 ? t2(e3).diff(i3, y.d, true) : i3.diff(e3, y.d, true));
|
|
10036
10044
|
var p = (r2.rounding || Math.round)(Math.abs(f));
|
|
@@ -10136,6 +10144,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10136
10144
|
display: true,
|
|
10137
10145
|
dataIndex: "type",
|
|
10138
10146
|
title: t2("dovetail.type"),
|
|
10147
|
+
width: 120,
|
|
10139
10148
|
sortable: true
|
|
10140
10149
|
},
|
|
10141
10150
|
{
|
|
@@ -10151,6 +10160,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10151
10160
|
};
|
|
10152
10161
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.StatusCapsule, { color: colorMap[value2 || "Unknown"], className: cx_default(StateTagStyle, "no-background"), children: t2(`dovetail.${value2.toLowerCase()}`) });
|
|
10153
10162
|
},
|
|
10163
|
+
width: 120,
|
|
10154
10164
|
sortable: true
|
|
10155
10165
|
},
|
|
10156
10166
|
{
|
|
@@ -10159,6 +10169,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10159
10169
|
dataIndex: "lastUpdateTime",
|
|
10160
10170
|
title: t2("dovetail.updated_time"),
|
|
10161
10171
|
sortable: true,
|
|
10172
|
+
width: 120,
|
|
10162
10173
|
render: (value2, record) => {
|
|
10163
10174
|
const time = value2 || record.lastTransitionTime;
|
|
10164
10175
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
|
|
@@ -10169,14 +10180,16 @@ var __publicField = (obj, key, value) => {
|
|
|
10169
10180
|
display: true,
|
|
10170
10181
|
dataIndex: "reason",
|
|
10171
10182
|
title: t2("dovetail.reason"),
|
|
10172
|
-
sortable: true
|
|
10183
|
+
sortable: true,
|
|
10184
|
+
width: 300
|
|
10173
10185
|
},
|
|
10174
10186
|
{
|
|
10175
10187
|
key: "message",
|
|
10176
10188
|
display: true,
|
|
10177
10189
|
dataIndex: "message",
|
|
10178
10190
|
title: t2("dovetail.message"),
|
|
10179
|
-
sortable: true
|
|
10191
|
+
sortable: true,
|
|
10192
|
+
width: 403
|
|
10180
10193
|
}
|
|
10181
10194
|
];
|
|
10182
10195
|
if (conditionsWithId.length === 0) {
|
|
@@ -10199,7 +10212,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10199
10212
|
columns: addDefaultRenderToColumns(columns),
|
|
10200
10213
|
rowKey: "type",
|
|
10201
10214
|
empty: t2("dovetail.empty"),
|
|
10202
|
-
currentSize,
|
|
10215
|
+
defaultSize: currentSize,
|
|
10203
10216
|
currentPage,
|
|
10204
10217
|
onPageChange: setCurrentPage,
|
|
10205
10218
|
showMenuColumn: false
|
|
@@ -10424,7 +10437,10 @@ var __publicField = (obj, key, value) => {
|
|
|
10424
10437
|
return owner ? matchOwner(p, owner) : true;
|
|
10425
10438
|
});
|
|
10426
10439
|
}, [data2 == null ? void 0 : data2.data, owner]);
|
|
10427
|
-
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)];
|
|
10428
10444
|
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10429
10445
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10430
10446
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
@@ -10449,7 +10465,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10449
10465
|
error: false,
|
|
10450
10466
|
currentPage,
|
|
10451
10467
|
onPageChange: (p) => setCurrentPage(p),
|
|
10452
|
-
currentSize,
|
|
10468
|
+
defaultSize: currentSize,
|
|
10453
10469
|
refetch: () => null,
|
|
10454
10470
|
showMenuColumn: false
|
|
10455
10471
|
})]
|
|
@@ -10475,6 +10491,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10475
10491
|
dataIndex: ["type"],
|
|
10476
10492
|
title: i18n2.t("dovetail.type"),
|
|
10477
10493
|
sortable: true,
|
|
10494
|
+
width: 120,
|
|
10478
10495
|
render(value2) {
|
|
10479
10496
|
const colorMap = {
|
|
10480
10497
|
"Warning": "red",
|
|
@@ -10490,6 +10507,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10490
10507
|
dataIndex: ["reason"],
|
|
10491
10508
|
title: i18n2.t("dovetail.reason"),
|
|
10492
10509
|
sortable: true,
|
|
10510
|
+
width: 120,
|
|
10493
10511
|
sorter: CommonSorter(["reason"])
|
|
10494
10512
|
},
|
|
10495
10513
|
{
|
|
@@ -10498,6 +10516,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10498
10516
|
dataIndex: ["note"],
|
|
10499
10517
|
title: i18n2.t("dovetail.note"),
|
|
10500
10518
|
sortable: true,
|
|
10519
|
+
width: 723,
|
|
10501
10520
|
sorter: CommonSorter(["note"])
|
|
10502
10521
|
},
|
|
10503
10522
|
AgeColumnRenderer(i18n2, { title: i18n2.t("dovetail.last_seen"), width: 160 }, { isRelativeTime: false })
|
|
@@ -10532,7 +10551,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10532
10551
|
error: false,
|
|
10533
10552
|
currentPage,
|
|
10534
10553
|
onPageChange: (p) => setCurrentPage(p),
|
|
10535
|
-
currentSize,
|
|
10554
|
+
defaultSize: currentSize,
|
|
10536
10555
|
refetch: () => null,
|
|
10537
10556
|
showMenuColumn: false
|
|
10538
10557
|
}
|
|
@@ -10585,6 +10604,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10585
10604
|
display: true,
|
|
10586
10605
|
dataIndex: "pathType",
|
|
10587
10606
|
title: t2("dovetail.path_type"),
|
|
10607
|
+
width: 160,
|
|
10588
10608
|
sortable: true
|
|
10589
10609
|
},
|
|
10590
10610
|
{
|
|
@@ -10592,6 +10612,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10592
10612
|
display: true,
|
|
10593
10613
|
dataIndex: "fullPath",
|
|
10594
10614
|
title: t2("dovetail.path"),
|
|
10615
|
+
width: 478,
|
|
10595
10616
|
sortable: true
|
|
10596
10617
|
},
|
|
10597
10618
|
{
|
|
@@ -10600,6 +10621,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10600
10621
|
dataIndex: "serviceName",
|
|
10601
10622
|
title: t2("dovetail.backend"),
|
|
10602
10623
|
sortable: true,
|
|
10624
|
+
width: 160,
|
|
10603
10625
|
render: (serviceName, record) => {
|
|
10604
10626
|
return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10605
10627
|
ResourceLink,
|
|
@@ -10616,6 +10638,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10616
10638
|
display: true,
|
|
10617
10639
|
dataIndex: "servicePort",
|
|
10618
10640
|
title: t2("dovetail.port"),
|
|
10641
|
+
width: 120,
|
|
10619
10642
|
sortable: true
|
|
10620
10643
|
},
|
|
10621
10644
|
{
|
|
@@ -10623,6 +10646,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10623
10646
|
display: true,
|
|
10624
10647
|
dataIndex: "host",
|
|
10625
10648
|
title: "Secret",
|
|
10649
|
+
width: 160,
|
|
10626
10650
|
render(host2) {
|
|
10627
10651
|
var _a, _b;
|
|
10628
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;
|
|
@@ -10658,7 +10682,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10658
10682
|
columns: addDefaultRenderToColumns(columns),
|
|
10659
10683
|
rowKey: "pathType",
|
|
10660
10684
|
empty: t2("dovetail.empty"),
|
|
10661
|
-
currentSize,
|
|
10685
|
+
defaultSize: currentSize,
|
|
10662
10686
|
currentPage,
|
|
10663
10687
|
onPageChange: setCurrentPage,
|
|
10664
10688
|
showMenuColumn: false
|
|
@@ -11120,7 +11144,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11120
11144
|
display: true,
|
|
11121
11145
|
dataIndex: ["status", "podIP"],
|
|
11122
11146
|
title: i18n2.t("dovetail.ip_address"),
|
|
11123
|
-
sortable: true
|
|
11147
|
+
sortable: true,
|
|
11148
|
+
width: 160
|
|
11124
11149
|
}, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
11125
11150
|
if ((dataSource == null ? void 0 : dataSource.length) === 0) {
|
|
11126
11151
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
@@ -11150,7 +11175,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11150
11175
|
error: false,
|
|
11151
11176
|
currentPage,
|
|
11152
11177
|
onPageChange: (p) => setCurrentPage(p),
|
|
11153
|
-
currentSize,
|
|
11178
|
+
defaultSize: currentSize,
|
|
11154
11179
|
refetch: () => null,
|
|
11155
11180
|
showMenuColumn: false
|
|
11156
11181
|
})]
|
|
@@ -11891,7 +11916,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11891
11916
|
});
|
|
11892
11917
|
}
|
|
11893
11918
|
}
|
|
11894
|
-
function
|
|
11919
|
+
function C(a2) {
|
|
11895
11920
|
if (null == a2)
|
|
11896
11921
|
return null;
|
|
11897
11922
|
if ("function" === typeof a2)
|
|
@@ -11923,12 +11948,12 @@ var __publicField = (obj, key, value) => {
|
|
|
11923
11948
|
b = b.displayName || b.name || "";
|
|
11924
11949
|
return a2.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef");
|
|
11925
11950
|
case ia:
|
|
11926
|
-
return
|
|
11951
|
+
return C(a2.type);
|
|
11927
11952
|
case ka:
|
|
11928
|
-
return
|
|
11953
|
+
return C(a2.render);
|
|
11929
11954
|
case ja:
|
|
11930
11955
|
if (a2 = 1 === a2._status ? a2._result : null)
|
|
11931
|
-
return
|
|
11956
|
+
return C(a2);
|
|
11932
11957
|
}
|
|
11933
11958
|
return null;
|
|
11934
11959
|
}
|
|
@@ -12040,23 +12065,23 @@ var __publicField = (obj, key, value) => {
|
|
|
12040
12065
|
["rowSpan", "start"].forEach(function(a2) {
|
|
12041
12066
|
K[a2] = new J(a2, 5, false, a2.toLowerCase(), null, false);
|
|
12042
12067
|
});
|
|
12043
|
-
var
|
|
12068
|
+
var L = /[\-:]([a-z])/g;
|
|
12044
12069
|
function M(a2) {
|
|
12045
12070
|
return a2[1].toUpperCase();
|
|
12046
12071
|
}
|
|
12047
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) {
|
|
12048
12073
|
var b = a2.replace(
|
|
12049
|
-
|
|
12074
|
+
L,
|
|
12050
12075
|
M
|
|
12051
12076
|
);
|
|
12052
12077
|
K[b] = new J(b, 1, false, a2, null, false);
|
|
12053
12078
|
});
|
|
12054
12079
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) {
|
|
12055
|
-
var b = a2.replace(
|
|
12080
|
+
var b = a2.replace(L, M);
|
|
12056
12081
|
K[b] = new J(b, 1, false, a2, "http://www.w3.org/1999/xlink", false);
|
|
12057
12082
|
});
|
|
12058
12083
|
["xml:base", "xml:lang", "xml:space"].forEach(function(a2) {
|
|
12059
|
-
var b = a2.replace(
|
|
12084
|
+
var b = a2.replace(L, M);
|
|
12060
12085
|
K[b] = new J(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false);
|
|
12061
12086
|
});
|
|
12062
12087
|
["tabIndex", "crossOrigin"].forEach(function(a2) {
|
|
@@ -12315,11 +12340,11 @@ var __publicField = (obj, key, value) => {
|
|
|
12315
12340
|
var Wa = Object.prototype.hasOwnProperty, Xa = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null };
|
|
12316
12341
|
function Ya(a2, b) {
|
|
12317
12342
|
if (void 0 === a2)
|
|
12318
|
-
throw Error(q(152,
|
|
12343
|
+
throw Error(q(152, C(b) || "Component"));
|
|
12319
12344
|
}
|
|
12320
12345
|
function Za(a2, b, c2) {
|
|
12321
12346
|
function d(d2, g2) {
|
|
12322
|
-
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() {
|
|
12323
12348
|
return false;
|
|
12324
12349
|
}, enqueueForceUpdate: function() {
|
|
12325
12350
|
if (null === x)
|
|
@@ -12333,14 +12358,14 @@ var __publicField = (obj, key, value) => {
|
|
|
12333
12358
|
x.push(c3);
|
|
12334
12359
|
} };
|
|
12335
12360
|
if (e2) {
|
|
12336
|
-
if (e2 = new g2(d2.props, f2,
|
|
12361
|
+
if (e2 = new g2(d2.props, f2, m), "function" === typeof g2.getDerivedStateFromProps) {
|
|
12337
12362
|
var w = g2.getDerivedStateFromProps.call(null, d2.props, e2.state);
|
|
12338
12363
|
null != w && (e2.state = k({}, e2.state, w));
|
|
12339
12364
|
}
|
|
12340
12365
|
} else if (O = {}, e2 = g2(
|
|
12341
12366
|
d2.props,
|
|
12342
12367
|
f2,
|
|
12343
|
-
|
|
12368
|
+
m
|
|
12344
12369
|
), e2 = Da(g2, d2.props, e2, f2), null == e2 || null == e2.render) {
|
|
12345
12370
|
a2 = e2;
|
|
12346
12371
|
Ya(a2, g2);
|
|
@@ -12348,22 +12373,22 @@ var __publicField = (obj, key, value) => {
|
|
|
12348
12373
|
}
|
|
12349
12374
|
e2.props = d2.props;
|
|
12350
12375
|
e2.context = f2;
|
|
12351
|
-
e2.updater =
|
|
12352
|
-
|
|
12353
|
-
void 0 ===
|
|
12376
|
+
e2.updater = m;
|
|
12377
|
+
m = e2.state;
|
|
12378
|
+
void 0 === m && (e2.state = m = null);
|
|
12354
12379
|
if ("function" === typeof e2.UNSAFE_componentWillMount || "function" === typeof e2.componentWillMount)
|
|
12355
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) {
|
|
12356
|
-
|
|
12381
|
+
m = x;
|
|
12357
12382
|
var r2 = h;
|
|
12358
12383
|
x = null;
|
|
12359
12384
|
h = false;
|
|
12360
|
-
if (r2 && 1 ===
|
|
12361
|
-
e2.state =
|
|
12385
|
+
if (r2 && 1 === m.length)
|
|
12386
|
+
e2.state = m[0];
|
|
12362
12387
|
else {
|
|
12363
|
-
w = r2 ?
|
|
12388
|
+
w = r2 ? m[0] : e2.state;
|
|
12364
12389
|
var y = true;
|
|
12365
|
-
for (r2 = r2 ? 1 : 0; r2 <
|
|
12366
|
-
var p =
|
|
12390
|
+
for (r2 = r2 ? 1 : 0; r2 < m.length; r2++) {
|
|
12391
|
+
var p = m[r2];
|
|
12367
12392
|
p = "function" === typeof p ? p.call(e2, w, d2.props, f2) : p;
|
|
12368
12393
|
null != p && (y ? (y = false, w = k({}, w, p)) : k(w, p));
|
|
12369
12394
|
}
|
|
@@ -12377,7 +12402,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12377
12402
|
var A = e2.getChildContext();
|
|
12378
12403
|
for (var T in A)
|
|
12379
12404
|
if (!(T in d2))
|
|
12380
|
-
throw Error(q(108,
|
|
12405
|
+
throw Error(q(108, C(g2) || "Unknown", T));
|
|
12381
12406
|
}
|
|
12382
12407
|
A && (b = k({}, b, A));
|
|
12383
12408
|
}
|
|
@@ -12490,9 +12515,9 @@ var __publicField = (obj, key, value) => {
|
|
|
12490
12515
|
}
|
|
12491
12516
|
g[this.suspenseDepth] += I;
|
|
12492
12517
|
} else {
|
|
12493
|
-
var
|
|
12518
|
+
var m = e2.children[e2.childIndex++], w = "";
|
|
12494
12519
|
try {
|
|
12495
|
-
w += this.render(
|
|
12520
|
+
w += this.render(m, e2.context, e2.domNamespace);
|
|
12496
12521
|
} catch (r2) {
|
|
12497
12522
|
if (null != r2 && "function" === typeof r2.then)
|
|
12498
12523
|
throw Error(q(294));
|
|
@@ -12663,14 +12688,14 @@ var __publicField = (obj, key, value) => {
|
|
|
12663
12688
|
G = "<" + a3.type;
|
|
12664
12689
|
for (z in h)
|
|
12665
12690
|
if (Wa.call(h, z)) {
|
|
12666
|
-
var
|
|
12667
|
-
if (null !=
|
|
12691
|
+
var m = h[z];
|
|
12692
|
+
if (null != m) {
|
|
12668
12693
|
if ("style" === z) {
|
|
12669
12694
|
n2 = void 0;
|
|
12670
12695
|
var w = "", r2 = "";
|
|
12671
|
-
for (n2 in
|
|
12672
|
-
if (
|
|
12673
|
-
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];
|
|
12674
12699
|
if (null != p) {
|
|
12675
12700
|
if (y)
|
|
12676
12701
|
var A = n2;
|
|
@@ -12687,7 +12712,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12687
12712
|
r2 = ";";
|
|
12688
12713
|
}
|
|
12689
12714
|
}
|
|
12690
|
-
|
|
12715
|
+
m = w || null;
|
|
12691
12716
|
}
|
|
12692
12717
|
n2 = null;
|
|
12693
12718
|
b:
|
|
@@ -12708,7 +12733,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12708
12733
|
default:
|
|
12709
12734
|
y = true;
|
|
12710
12735
|
}
|
|
12711
|
-
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);
|
|
12712
12737
|
n2 && (G += " " + n2);
|
|
12713
12738
|
}
|
|
12714
12739
|
}
|
|
@@ -12770,14 +12795,14 @@ var __publicField = (obj, key, value) => {
|
|
|
12770
12795
|
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
12771
12796
|
return ReactPropTypesSecret_1;
|
|
12772
12797
|
}
|
|
12773
|
-
var has$
|
|
12798
|
+
var has$2;
|
|
12774
12799
|
var hasRequiredHas;
|
|
12775
12800
|
function requireHas() {
|
|
12776
12801
|
if (hasRequiredHas)
|
|
12777
|
-
return has$
|
|
12802
|
+
return has$2;
|
|
12778
12803
|
hasRequiredHas = 1;
|
|
12779
|
-
has$
|
|
12780
|
-
return has$
|
|
12804
|
+
has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
12805
|
+
return has$2;
|
|
12781
12806
|
}
|
|
12782
12807
|
var checkPropTypes_1;
|
|
12783
12808
|
var hasRequiredCheckPropTypes;
|
|
@@ -17652,8 +17677,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17652
17677
|
const currentEditorUri = model == null ? void 0 : model.uri;
|
|
17653
17678
|
if (model && uri2.toString() === (currentEditorUri == null ? void 0 : currentEditorUri.toString())) {
|
|
17654
17679
|
const marks = monaco__namespace.editor.getModelMarkers({ owner: "yaml", resource: currentEditorUri });
|
|
17655
|
-
const yamlMarks = marks.filter((
|
|
17656
|
-
const schemaMarks = marks.filter((
|
|
17680
|
+
const yamlMarks = marks.filter((m) => m.source === "YAML");
|
|
17681
|
+
const schemaMarks = marks.filter((m) => m.source !== "YAML");
|
|
17657
17682
|
const yamlValid = yamlMarks.length === 0;
|
|
17658
17683
|
const schemaValid = schemaMarks.length === 0;
|
|
17659
17684
|
onValidate == null ? void 0 : onValidate(yamlValid, schemaValid);
|
|
@@ -17767,7 +17792,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17767
17792
|
dataIndex: ["name"],
|
|
17768
17793
|
title: i18n2.t("dovetail.name"),
|
|
17769
17794
|
sortable: true,
|
|
17770
|
-
sorter: CommonSorter(["name"])
|
|
17795
|
+
sorter: CommonSorter(["name"]),
|
|
17796
|
+
width: 200
|
|
17771
17797
|
},
|
|
17772
17798
|
{
|
|
17773
17799
|
key: "state",
|
|
@@ -17775,6 +17801,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17775
17801
|
title: i18n2.t("dovetail.state"),
|
|
17776
17802
|
sortable: true,
|
|
17777
17803
|
sorter: CommonSorter(["state"]),
|
|
17804
|
+
width: 120,
|
|
17778
17805
|
render: (v) => /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, { state: Object.keys(v)[0], hideBackground: true })
|
|
17779
17806
|
},
|
|
17780
17807
|
{
|
|
@@ -17782,12 +17809,14 @@ var __publicField = (obj, key, value) => {
|
|
|
17782
17809
|
dataIndex: ["image"],
|
|
17783
17810
|
title: i18n2.t("dovetail.image"),
|
|
17784
17811
|
sortable: true,
|
|
17812
|
+
width: 383,
|
|
17785
17813
|
sorter: CommonSorter(["image"])
|
|
17786
17814
|
},
|
|
17787
17815
|
{
|
|
17788
17816
|
key: "init",
|
|
17789
17817
|
dataIndex: [],
|
|
17790
17818
|
title: i18n2.t("dovetail.type"),
|
|
17819
|
+
width: 120,
|
|
17791
17820
|
render: (_, record) => {
|
|
17792
17821
|
const isInit = initContainerStatuses.some(
|
|
17793
17822
|
(c2) => c2.containerID === record.containerID
|
|
@@ -17800,6 +17829,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17800
17829
|
dataIndex: ["restartCount"],
|
|
17801
17830
|
title: i18n2.t("dovetail.restarts"),
|
|
17802
17831
|
sortable: true,
|
|
17832
|
+
align: "right",
|
|
17833
|
+
width: 120,
|
|
17803
17834
|
sorter: CommonSorter(["restartCount"])
|
|
17804
17835
|
},
|
|
17805
17836
|
{
|
|
@@ -17808,6 +17839,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17808
17839
|
title: i18n2.t("dovetail.created_time"),
|
|
17809
17840
|
sortable: true,
|
|
17810
17841
|
sorter: CommonSorter(["state", "running", "startedAt"]),
|
|
17842
|
+
width: 120,
|
|
17811
17843
|
render: (value2) => {
|
|
17812
17844
|
if (value2)
|
|
17813
17845
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(value2) });
|
|
@@ -17841,7 +17873,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17841
17873
|
columns: addDefaultRenderToColumns(columns),
|
|
17842
17874
|
rowKey: "containerID",
|
|
17843
17875
|
error: false,
|
|
17844
|
-
currentSize,
|
|
17876
|
+
defaultSize: currentSize,
|
|
17845
17877
|
currentPage,
|
|
17846
17878
|
onPageChange: setCurrentPage,
|
|
17847
17879
|
showMenuColumn: false
|
|
@@ -18493,7 +18525,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18493
18525
|
useTableParams: {},
|
|
18494
18526
|
columns: [nameRenderer, ...(columns == null ? void 0 : columns()) || []],
|
|
18495
18527
|
tableProps: {
|
|
18496
|
-
|
|
18528
|
+
defaultSize: 50
|
|
18497
18529
|
},
|
|
18498
18530
|
formatter,
|
|
18499
18531
|
Dropdown
|
|
@@ -19725,7 +19757,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19725
19757
|
}
|
|
19726
19758
|
return saturation;
|
|
19727
19759
|
}
|
|
19728
|
-
function getValue$
|
|
19760
|
+
function getValue$2(hsv, i2, light) {
|
|
19729
19761
|
if (light) {
|
|
19730
19762
|
return Math.round(hsv.v * 100) + brightnessStep1 * i2;
|
|
19731
19763
|
}
|
|
@@ -19739,7 +19771,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19739
19771
|
var colorString = tinycolor2_1.default({
|
|
19740
19772
|
h: getHue(hsv, i2, true),
|
|
19741
19773
|
s: getSaturation(hsv, i2, true),
|
|
19742
|
-
v: getValue$
|
|
19774
|
+
v: getValue$2(hsv, i2, true)
|
|
19743
19775
|
}).toHexString();
|
|
19744
19776
|
patterns.push(colorString);
|
|
19745
19777
|
}
|
|
@@ -19749,7 +19781,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19749
19781
|
var colorString = tinycolor2_1.default({
|
|
19750
19782
|
h: getHue(hsv, i2),
|
|
19751
19783
|
s: getSaturation(hsv, i2),
|
|
19752
|
-
v: getValue$
|
|
19784
|
+
v: getValue$2(hsv, i2)
|
|
19753
19785
|
}).toHexString();
|
|
19754
19786
|
patterns.push(colorString);
|
|
19755
19787
|
}
|
|
@@ -20125,13 +20157,13 @@ var __publicField = (obj, key, value) => {
|
|
|
20125
20157
|
var isDateObject = (value2) => value2 instanceof Date;
|
|
20126
20158
|
var isNullOrUndefined = (value2) => value2 == null;
|
|
20127
20159
|
const isObjectType = (value2) => typeof value2 === "object";
|
|
20128
|
-
var isObject$
|
|
20129
|
-
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;
|
|
20130
20162
|
var getNodeParentName = (name2) => name2.substring(0, name2.search(/\.\d+(\.|$)/)) || name2;
|
|
20131
20163
|
var isNameInFieldArray = (names, name2) => names.has(getNodeParentName(name2));
|
|
20132
20164
|
var isPlainObject = (tempObject) => {
|
|
20133
20165
|
const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
|
|
20134
|
-
return isObject$
|
|
20166
|
+
return isObject$3(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
|
|
20135
20167
|
};
|
|
20136
20168
|
var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
|
|
20137
20169
|
function cloneObject(data2) {
|
|
@@ -20141,7 +20173,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20141
20173
|
copy2 = new Date(data2);
|
|
20142
20174
|
} else if (data2 instanceof Set) {
|
|
20143
20175
|
copy2 = new Set(data2);
|
|
20144
|
-
} 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))) {
|
|
20145
20177
|
copy2 = isArray2 ? [] : {};
|
|
20146
20178
|
if (!isArray2 && !isPlainObject(data2)) {
|
|
20147
20179
|
copy2 = data2;
|
|
@@ -20159,8 +20191,8 @@ var __publicField = (obj, key, value) => {
|
|
|
20159
20191
|
}
|
|
20160
20192
|
var compact = (value2) => Array.isArray(value2) ? value2.filter(Boolean) : [];
|
|
20161
20193
|
var isUndefined = (val) => val === void 0;
|
|
20162
|
-
var get$
|
|
20163
|
-
if (!path2 || !isObject$
|
|
20194
|
+
var get$2 = (object2, path2, defaultValue) => {
|
|
20195
|
+
if (!path2 || !isObject$3(object2)) {
|
|
20164
20196
|
return defaultValue;
|
|
20165
20197
|
}
|
|
20166
20198
|
const result = compact(path2.split(/[,[\].]+?/)).reduce((result2, key2) => isNullOrUndefined(result2) ? result2 : result2[key2], object2);
|
|
@@ -20208,7 +20240,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20208
20240
|
}
|
|
20209
20241
|
return result;
|
|
20210
20242
|
};
|
|
20211
|
-
var isEmptyObject = (value2) => isObject$
|
|
20243
|
+
var isEmptyObject = (value2) => isObject$3(value2) && !Object.keys(value2).length;
|
|
20212
20244
|
var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {
|
|
20213
20245
|
updateFormState(formStateData);
|
|
20214
20246
|
const { name: name2, ...formState } = formStateData;
|
|
@@ -20265,10 +20297,10 @@ var __publicField = (obj, key, value) => {
|
|
|
20265
20297
|
var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
|
|
20266
20298
|
if (isString(names)) {
|
|
20267
20299
|
isGlobal && _names.watch.add(names);
|
|
20268
|
-
return get$
|
|
20300
|
+
return get$2(formValues, names, defaultValue);
|
|
20269
20301
|
}
|
|
20270
20302
|
if (Array.isArray(names)) {
|
|
20271
|
-
return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$
|
|
20303
|
+
return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get$2(formValues, fieldName)));
|
|
20272
20304
|
}
|
|
20273
20305
|
isGlobal && (_names.watchAll = true);
|
|
20274
20306
|
return formValues;
|
|
@@ -20291,11 +20323,11 @@ var __publicField = (obj, key, value) => {
|
|
|
20291
20323
|
React.useEffect(() => control._removeUnmounted());
|
|
20292
20324
|
return value2;
|
|
20293
20325
|
}
|
|
20294
|
-
var isKey$
|
|
20326
|
+
var isKey$2 = (value2) => /^\w*$/.test(value2);
|
|
20295
20327
|
var stringToPath$2 = (input) => compact(input.replace(/["|']|\]/g, "").split(/\.|\[/));
|
|
20296
20328
|
var set = (object2, path2, value2) => {
|
|
20297
20329
|
let index = -1;
|
|
20298
|
-
const tempPath = isKey$
|
|
20330
|
+
const tempPath = isKey$2(path2) ? [path2] : stringToPath$2(path2);
|
|
20299
20331
|
const length = tempPath.length;
|
|
20300
20332
|
const lastIndex = length - 1;
|
|
20301
20333
|
while (++index < length) {
|
|
@@ -20303,7 +20335,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20303
20335
|
let newValue = value2;
|
|
20304
20336
|
if (index !== lastIndex) {
|
|
20305
20337
|
const objValue = object2[key2];
|
|
20306
|
-
newValue = isObject$
|
|
20338
|
+
newValue = isObject$3(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
|
|
20307
20339
|
}
|
|
20308
20340
|
object2[key2] = newValue;
|
|
20309
20341
|
object2 = object2[key2];
|
|
@@ -20317,7 +20349,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20317
20349
|
const value2 = useWatch({
|
|
20318
20350
|
control,
|
|
20319
20351
|
name: name2,
|
|
20320
|
-
defaultValue: get$
|
|
20352
|
+
defaultValue: get$2(control._formValues, name2, get$2(control._defaultValues, name2, props.defaultValue)),
|
|
20321
20353
|
exact: true
|
|
20322
20354
|
});
|
|
20323
20355
|
const formState = useFormState({
|
|
@@ -20332,16 +20364,16 @@ var __publicField = (obj, key, value) => {
|
|
|
20332
20364
|
React.useEffect(() => {
|
|
20333
20365
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
20334
20366
|
const updateMounted = (name3, value3) => {
|
|
20335
|
-
const field = get$
|
|
20367
|
+
const field = get$2(control._fields, name3);
|
|
20336
20368
|
if (field) {
|
|
20337
20369
|
field._f.mount = value3;
|
|
20338
20370
|
}
|
|
20339
20371
|
};
|
|
20340
20372
|
updateMounted(name2, true);
|
|
20341
20373
|
if (_shouldUnregisterField) {
|
|
20342
|
-
const value3 = cloneObject(get$
|
|
20374
|
+
const value3 = cloneObject(get$2(control._options.defaultValues, name2));
|
|
20343
20375
|
set(control._defaultValues, name2, value3);
|
|
20344
|
-
if (isUndefined(get$
|
|
20376
|
+
if (isUndefined(get$2(control._formValues, name2))) {
|
|
20345
20377
|
set(control._formValues, name2, value3);
|
|
20346
20378
|
}
|
|
20347
20379
|
}
|
|
@@ -20350,12 +20382,12 @@ var __publicField = (obj, key, value) => {
|
|
|
20350
20382
|
};
|
|
20351
20383
|
}, [name2, control, isArrayField, shouldUnregister]);
|
|
20352
20384
|
React.useEffect(() => {
|
|
20353
|
-
if (get$
|
|
20385
|
+
if (get$2(control._fields, name2)) {
|
|
20354
20386
|
control._updateDisabledField({
|
|
20355
20387
|
disabled,
|
|
20356
20388
|
fields: control._fields,
|
|
20357
20389
|
name: name2,
|
|
20358
|
-
value: get$
|
|
20390
|
+
value: get$2(control._fields, name2)._f.value
|
|
20359
20391
|
});
|
|
20360
20392
|
}
|
|
20361
20393
|
}, [disabled, name2, control]);
|
|
@@ -20373,13 +20405,13 @@ var __publicField = (obj, key, value) => {
|
|
|
20373
20405
|
}), [name2]),
|
|
20374
20406
|
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
20375
20407
|
target: {
|
|
20376
|
-
value: get$
|
|
20408
|
+
value: get$2(control._formValues, name2),
|
|
20377
20409
|
name: name2
|
|
20378
20410
|
},
|
|
20379
20411
|
type: EVENTS.BLUR
|
|
20380
20412
|
}), [name2, control]),
|
|
20381
20413
|
ref: (elm) => {
|
|
20382
|
-
const field = get$
|
|
20414
|
+
const field = get$2(control._fields, name2);
|
|
20383
20415
|
if (field && elm) {
|
|
20384
20416
|
field._f.ref = {
|
|
20385
20417
|
focus: () => elm.focus(),
|
|
@@ -20394,19 +20426,19 @@ var __publicField = (obj, key, value) => {
|
|
|
20394
20426
|
fieldState: Object.defineProperties({}, {
|
|
20395
20427
|
invalid: {
|
|
20396
20428
|
enumerable: true,
|
|
20397
|
-
get: () => !!get$
|
|
20429
|
+
get: () => !!get$2(formState.errors, name2)
|
|
20398
20430
|
},
|
|
20399
20431
|
isDirty: {
|
|
20400
20432
|
enumerable: true,
|
|
20401
|
-
get: () => !!get$
|
|
20433
|
+
get: () => !!get$2(formState.dirtyFields, name2)
|
|
20402
20434
|
},
|
|
20403
20435
|
isTouched: {
|
|
20404
20436
|
enumerable: true,
|
|
20405
|
-
get: () => !!get$
|
|
20437
|
+
get: () => !!get$2(formState.touchedFields, name2)
|
|
20406
20438
|
},
|
|
20407
20439
|
error: {
|
|
20408
20440
|
enumerable: true,
|
|
20409
|
-
get: () => get$
|
|
20441
|
+
get: () => get$2(formState.errors, name2)
|
|
20410
20442
|
}
|
|
20411
20443
|
})
|
|
20412
20444
|
};
|
|
@@ -20429,7 +20461,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20429
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))));
|
|
20430
20462
|
const iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {
|
|
20431
20463
|
for (const key2 of fieldsNames || Object.keys(fields)) {
|
|
20432
|
-
const field = get$
|
|
20464
|
+
const field = get$2(fields, key2);
|
|
20433
20465
|
if (field) {
|
|
20434
20466
|
const { _f, ...currentField } = field;
|
|
20435
20467
|
if (_f) {
|
|
@@ -20440,20 +20472,20 @@ var __publicField = (obj, key, value) => {
|
|
|
20440
20472
|
} else {
|
|
20441
20473
|
iterateFieldsByAction(currentField, action);
|
|
20442
20474
|
}
|
|
20443
|
-
} else if (isObject$
|
|
20475
|
+
} else if (isObject$3(currentField)) {
|
|
20444
20476
|
iterateFieldsByAction(currentField, action);
|
|
20445
20477
|
}
|
|
20446
20478
|
}
|
|
20447
20479
|
}
|
|
20448
20480
|
};
|
|
20449
20481
|
var updateFieldArrayRootError = (errors, error, name2) => {
|
|
20450
|
-
const fieldArrayErrors = compact(get$
|
|
20482
|
+
const fieldArrayErrors = compact(get$2(errors, name2));
|
|
20451
20483
|
set(fieldArrayErrors, "root", error[name2]);
|
|
20452
20484
|
set(errors, name2, fieldArrayErrors);
|
|
20453
20485
|
return errors;
|
|
20454
20486
|
};
|
|
20455
20487
|
var isFileInput = (element) => element.type === "file";
|
|
20456
|
-
var isFunction$
|
|
20488
|
+
var isFunction$2 = (value2) => typeof value2 === "function";
|
|
20457
20489
|
var isHTMLElement = (value2) => {
|
|
20458
20490
|
if (!isWeb) {
|
|
20459
20491
|
return false;
|
|
@@ -20499,13 +20531,13 @@ var __publicField = (obj, key, value) => {
|
|
|
20499
20531
|
};
|
|
20500
20532
|
}
|
|
20501
20533
|
}
|
|
20502
|
-
var getValueAndMessage = (validationData) => isObject$
|
|
20534
|
+
var getValueAndMessage = (validationData) => isObject$3(validationData) && !isRegex(validationData) ? validationData : {
|
|
20503
20535
|
value: validationData,
|
|
20504
20536
|
message: ""
|
|
20505
20537
|
};
|
|
20506
20538
|
var validateField = async (field, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {
|
|
20507
20539
|
const { ref, refs, required, maxLength, minLength, min: min2, max, pattern, validate, name: name2, valueAsNumber, mount, disabled } = field._f;
|
|
20508
|
-
const inputValue = get$
|
|
20540
|
+
const inputValue = get$2(formValues, name2);
|
|
20509
20541
|
if (!mount || disabled) {
|
|
20510
20542
|
return {};
|
|
20511
20543
|
}
|
|
@@ -20608,7 +20640,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20608
20640
|
}
|
|
20609
20641
|
}
|
|
20610
20642
|
if (validate) {
|
|
20611
|
-
if (isFunction$
|
|
20643
|
+
if (isFunction$2(validate)) {
|
|
20612
20644
|
const result = await validate(inputValue, formValues);
|
|
20613
20645
|
const validateError = getValidateError(result, inputRef);
|
|
20614
20646
|
if (validateError) {
|
|
@@ -20621,7 +20653,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20621
20653
|
return error;
|
|
20622
20654
|
}
|
|
20623
20655
|
}
|
|
20624
|
-
} else if (isObject$
|
|
20656
|
+
} else if (isObject$3(validate)) {
|
|
20625
20657
|
let validationResult = {};
|
|
20626
20658
|
for (const key2 in validate) {
|
|
20627
20659
|
if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {
|
|
@@ -20653,7 +20685,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20653
20685
|
setCustomValidity(true);
|
|
20654
20686
|
return error;
|
|
20655
20687
|
};
|
|
20656
|
-
function baseGet$
|
|
20688
|
+
function baseGet$2(object2, updatePath) {
|
|
20657
20689
|
const length = updatePath.slice(0, -1).length;
|
|
20658
20690
|
let index = 0;
|
|
20659
20691
|
while (index < length) {
|
|
@@ -20670,14 +20702,14 @@ var __publicField = (obj, key, value) => {
|
|
|
20670
20702
|
return true;
|
|
20671
20703
|
}
|
|
20672
20704
|
function unset(object2, path2) {
|
|
20673
|
-
const paths = Array.isArray(path2) ? path2 : isKey$
|
|
20674
|
-
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);
|
|
20675
20707
|
const index = paths.length - 1;
|
|
20676
20708
|
const key2 = paths[index];
|
|
20677
20709
|
if (childObject) {
|
|
20678
20710
|
delete childObject[key2];
|
|
20679
20711
|
}
|
|
20680
|
-
if (index !== 0 && (isObject$
|
|
20712
|
+
if (index !== 0 && (isObject$3(childObject) && isEmptyObject(childObject) || Array.isArray(childObject) && isEmptyArray(childObject))) {
|
|
20681
20713
|
unset(object2, paths.slice(0, -1));
|
|
20682
20714
|
}
|
|
20683
20715
|
return object2;
|
|
@@ -20729,7 +20761,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20729
20761
|
}
|
|
20730
20762
|
if (key2 !== "ref") {
|
|
20731
20763
|
const val2 = object2[key2];
|
|
20732
|
-
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) {
|
|
20733
20765
|
return false;
|
|
20734
20766
|
}
|
|
20735
20767
|
}
|
|
@@ -20741,7 +20773,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20741
20773
|
var live = (ref) => isHTMLElement(ref) && ref.isConnected;
|
|
20742
20774
|
var objectHasFunction = (data2) => {
|
|
20743
20775
|
for (const key2 in data2) {
|
|
20744
|
-
if (isFunction$
|
|
20776
|
+
if (isFunction$2(data2[key2])) {
|
|
20745
20777
|
return true;
|
|
20746
20778
|
}
|
|
20747
20779
|
}
|
|
@@ -20749,9 +20781,9 @@ var __publicField = (obj, key, value) => {
|
|
|
20749
20781
|
};
|
|
20750
20782
|
function markFieldsDirty(data2, fields = {}) {
|
|
20751
20783
|
const isParentNodeArray = Array.isArray(data2);
|
|
20752
|
-
if (isObject$
|
|
20784
|
+
if (isObject$3(data2) || isParentNodeArray) {
|
|
20753
20785
|
for (const key2 in data2) {
|
|
20754
|
-
if (Array.isArray(data2[key2]) || isObject$
|
|
20786
|
+
if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
|
|
20755
20787
|
fields[key2] = Array.isArray(data2[key2]) ? [] : {};
|
|
20756
20788
|
markFieldsDirty(data2[key2], fields[key2]);
|
|
20757
20789
|
} else if (!isNullOrUndefined(data2[key2])) {
|
|
@@ -20763,9 +20795,9 @@ var __publicField = (obj, key, value) => {
|
|
|
20763
20795
|
}
|
|
20764
20796
|
function getDirtyFieldsFromDefaultValues(data2, formValues, dirtyFieldsFromValues) {
|
|
20765
20797
|
const isParentNodeArray = Array.isArray(data2);
|
|
20766
|
-
if (isObject$
|
|
20798
|
+
if (isObject$3(data2) || isParentNodeArray) {
|
|
20767
20799
|
for (const key2 in data2) {
|
|
20768
|
-
if (Array.isArray(data2[key2]) || isObject$
|
|
20800
|
+
if (Array.isArray(data2[key2]) || isObject$3(data2[key2]) && !objectHasFunction(data2[key2])) {
|
|
20769
20801
|
if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key2])) {
|
|
20770
20802
|
dirtyFieldsFromValues[key2] = Array.isArray(data2[key2]) ? markFieldsDirty(data2[key2], []) : { ...markFieldsDirty(data2[key2]) };
|
|
20771
20803
|
} else {
|
|
@@ -20802,7 +20834,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20802
20834
|
var getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {
|
|
20803
20835
|
const fields = {};
|
|
20804
20836
|
for (const name2 of fieldsNames) {
|
|
20805
|
-
const field = get$
|
|
20837
|
+
const field = get$2(_fields, name2);
|
|
20806
20838
|
field && set(fields, name2, field._f);
|
|
20807
20839
|
}
|
|
20808
20840
|
return {
|
|
@@ -20812,11 +20844,11 @@ var __publicField = (obj, key, value) => {
|
|
|
20812
20844
|
shouldUseNativeValidation
|
|
20813
20845
|
};
|
|
20814
20846
|
};
|
|
20815
|
-
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;
|
|
20816
20848
|
var hasValidation = (options) => options.mount && (options.required || options.min || options.max || options.maxLength || options.minLength || options.pattern || options.validate);
|
|
20817
20849
|
function schemaErrorLookup(errors, _fields, name2) {
|
|
20818
|
-
const error = get$
|
|
20819
|
-
if (error || isKey$
|
|
20850
|
+
const error = get$2(errors, name2);
|
|
20851
|
+
if (error || isKey$2(name2)) {
|
|
20820
20852
|
return {
|
|
20821
20853
|
error,
|
|
20822
20854
|
name: name2
|
|
@@ -20825,8 +20857,8 @@ var __publicField = (obj, key, value) => {
|
|
|
20825
20857
|
const names = name2.split(".");
|
|
20826
20858
|
while (names.length) {
|
|
20827
20859
|
const fieldName = names.join(".");
|
|
20828
|
-
const field = get$
|
|
20829
|
-
const foundError = get$
|
|
20860
|
+
const field = get$2(_fields, fieldName);
|
|
20861
|
+
const foundError = get$2(errors, fieldName);
|
|
20830
20862
|
if (field && !Array.isArray(field) && name2 !== fieldName) {
|
|
20831
20863
|
return { name: name2 };
|
|
20832
20864
|
}
|
|
@@ -20854,7 +20886,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20854
20886
|
}
|
|
20855
20887
|
return true;
|
|
20856
20888
|
};
|
|
20857
|
-
var unsetEmptyArray = (ref, name2) => !compact(get$
|
|
20889
|
+
var unsetEmptyArray = (ref, name2) => !compact(get$2(ref, name2)).length && unset(ref, name2);
|
|
20858
20890
|
const defaultOptions = {
|
|
20859
20891
|
mode: VALIDATION_MODE.onSubmit,
|
|
20860
20892
|
reValidateMode: VALIDATION_MODE.onChange,
|
|
@@ -20868,7 +20900,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20868
20900
|
let _formState = {
|
|
20869
20901
|
submitCount: 0,
|
|
20870
20902
|
isDirty: false,
|
|
20871
|
-
isLoading: isFunction$
|
|
20903
|
+
isLoading: isFunction$2(_options.defaultValues),
|
|
20872
20904
|
isValidating: false,
|
|
20873
20905
|
isSubmitted: false,
|
|
20874
20906
|
isSubmitting: false,
|
|
@@ -20880,7 +20912,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20880
20912
|
disabled: _options.disabled || false
|
|
20881
20913
|
};
|
|
20882
20914
|
let _fields = {};
|
|
20883
|
-
let _defaultValues = isObject$
|
|
20915
|
+
let _defaultValues = isObject$3(_options.values) || isObject$3(_options.defaultValues) ? cloneObject(_options.values || _options.defaultValues) || {} : {};
|
|
20884
20916
|
let _formValues = _options.shouldUnregister ? {} : cloneObject(_defaultValues);
|
|
20885
20917
|
let _state = {
|
|
20886
20918
|
action: false,
|
|
@@ -20931,17 +20963,17 @@ var __publicField = (obj, key, value) => {
|
|
|
20931
20963
|
const _updateFieldArray = (name2, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
|
|
20932
20964
|
if (args && method) {
|
|
20933
20965
|
_state.action = true;
|
|
20934
|
-
if (shouldUpdateFieldsAndState && Array.isArray(get$
|
|
20935
|
-
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);
|
|
20936
20968
|
shouldSetValues && set(_fields, name2, fieldValues);
|
|
20937
20969
|
}
|
|
20938
|
-
if (shouldUpdateFieldsAndState && Array.isArray(get$
|
|
20939
|
-
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);
|
|
20940
20972
|
shouldSetValues && set(_formState.errors, name2, errors);
|
|
20941
20973
|
unsetEmptyArray(_formState.errors, name2);
|
|
20942
20974
|
}
|
|
20943
|
-
if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get$
|
|
20944
|
-
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);
|
|
20945
20977
|
shouldSetValues && set(_formState.touchedFields, name2, touchedFields);
|
|
20946
20978
|
}
|
|
20947
20979
|
if (_proxyFormState.dirtyFields) {
|
|
@@ -20972,9 +21004,9 @@ var __publicField = (obj, key, value) => {
|
|
|
20972
21004
|
});
|
|
20973
21005
|
};
|
|
20974
21006
|
const updateValidAndValue = (name2, shouldSkipSetValueAs, value2, ref) => {
|
|
20975
|
-
const field = get$
|
|
21007
|
+
const field = get$2(_fields, name2);
|
|
20976
21008
|
if (field) {
|
|
20977
|
-
const defaultValue = get$
|
|
21009
|
+
const defaultValue = get$2(_formValues, name2, isUndefined(value2) ? get$2(_defaultValues, name2) : value2);
|
|
20978
21010
|
isUndefined(defaultValue) || ref && ref.defaultChecked || shouldSkipSetValueAs ? set(_formValues, name2, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f)) : setFieldValue(name2, defaultValue);
|
|
20979
21011
|
_state.mount && _updateValid();
|
|
20980
21012
|
}
|
|
@@ -20985,21 +21017,21 @@ var __publicField = (obj, key, value) => {
|
|
|
20985
21017
|
const output = {
|
|
20986
21018
|
name: name2
|
|
20987
21019
|
};
|
|
20988
|
-
const disabledField = !!(get$
|
|
21020
|
+
const disabledField = !!(get$2(_fields, name2) && get$2(_fields, name2)._f.disabled);
|
|
20989
21021
|
if (!isBlurEvent || shouldDirty) {
|
|
20990
21022
|
if (_proxyFormState.isDirty) {
|
|
20991
21023
|
isPreviousDirty = _formState.isDirty;
|
|
20992
21024
|
_formState.isDirty = output.isDirty = _getDirty();
|
|
20993
21025
|
shouldUpdateField = isPreviousDirty !== output.isDirty;
|
|
20994
21026
|
}
|
|
20995
|
-
const isCurrentFieldPristine = disabledField || deepEqual(get$
|
|
20996
|
-
isPreviousDirty = !!(!disabledField && get$
|
|
21027
|
+
const isCurrentFieldPristine = disabledField || deepEqual(get$2(_defaultValues, name2), fieldValue);
|
|
21028
|
+
isPreviousDirty = !!(!disabledField && get$2(_formState.dirtyFields, name2));
|
|
20997
21029
|
isCurrentFieldPristine || disabledField ? unset(_formState.dirtyFields, name2) : set(_formState.dirtyFields, name2, true);
|
|
20998
21030
|
output.dirtyFields = _formState.dirtyFields;
|
|
20999
21031
|
shouldUpdateField = shouldUpdateField || _proxyFormState.dirtyFields && isPreviousDirty !== !isCurrentFieldPristine;
|
|
21000
21032
|
}
|
|
21001
21033
|
if (isBlurEvent) {
|
|
21002
|
-
const isPreviousFieldTouched = get$
|
|
21034
|
+
const isPreviousFieldTouched = get$2(_formState.touchedFields, name2);
|
|
21003
21035
|
if (!isPreviousFieldTouched) {
|
|
21004
21036
|
set(_formState.touchedFields, name2, isBlurEvent);
|
|
21005
21037
|
output.touchedFields = _formState.touchedFields;
|
|
@@ -21010,7 +21042,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21010
21042
|
return shouldUpdateField ? output : {};
|
|
21011
21043
|
};
|
|
21012
21044
|
const shouldRenderByError = (name2, isValid, error, fieldState) => {
|
|
21013
|
-
const previousFieldError = get$
|
|
21045
|
+
const previousFieldError = get$2(_formState.errors, name2);
|
|
21014
21046
|
const shouldUpdateValid = _proxyFormState.isValid && isBoolean(isValid) && _formState.isValid !== isValid;
|
|
21015
21047
|
if (props.delayError && error) {
|
|
21016
21048
|
delayErrorCallback = debounce(() => updateErrors(name2, error));
|
|
@@ -21040,7 +21072,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21040
21072
|
const { errors } = await _executeSchema(names);
|
|
21041
21073
|
if (names) {
|
|
21042
21074
|
for (const name2 of names) {
|
|
21043
|
-
const error = get$
|
|
21075
|
+
const error = get$2(errors, name2);
|
|
21044
21076
|
error ? set(_formState.errors, name2, error) : unset(_formState.errors, name2);
|
|
21045
21077
|
}
|
|
21046
21078
|
} else {
|
|
@@ -21064,7 +21096,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21064
21096
|
break;
|
|
21065
21097
|
}
|
|
21066
21098
|
}
|
|
21067
|
-
!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));
|
|
21068
21100
|
}
|
|
21069
21101
|
fieldValue && await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context);
|
|
21070
21102
|
}
|
|
@@ -21073,7 +21105,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21073
21105
|
};
|
|
21074
21106
|
const _removeUnmounted = () => {
|
|
21075
21107
|
for (const name2 of _names.unMount) {
|
|
21076
|
-
const field = get$
|
|
21108
|
+
const field = get$2(_fields, name2);
|
|
21077
21109
|
field && (field._f.refs ? field._f.refs.every((ref) => !live(ref)) : !live(field._f.ref)) && unregister(name2);
|
|
21078
21110
|
}
|
|
21079
21111
|
_names.unMount = /* @__PURE__ */ new Set();
|
|
@@ -21082,9 +21114,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21082
21114
|
const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {
|
|
21083
21115
|
..._state.mount ? _formValues : isUndefined(defaultValue) ? _defaultValues : isString(names) ? { [names]: defaultValue } : defaultValue
|
|
21084
21116
|
}, isGlobal, defaultValue);
|
|
21085
|
-
const _getFieldArray = (name2) => compact(get$
|
|
21117
|
+
const _getFieldArray = (name2) => compact(get$2(_state.mount ? _formValues : _defaultValues, name2, props.shouldUnregister ? get$2(_defaultValues, name2, []) : []));
|
|
21086
21118
|
const setFieldValue = (name2, value2, options = {}) => {
|
|
21087
|
-
const field = get$
|
|
21119
|
+
const field = get$2(_fields, name2);
|
|
21088
21120
|
let fieldValue = value2;
|
|
21089
21121
|
if (field) {
|
|
21090
21122
|
const fieldReference = field._f;
|
|
@@ -21119,12 +21151,12 @@ var __publicField = (obj, key, value) => {
|
|
|
21119
21151
|
for (const fieldKey in value2) {
|
|
21120
21152
|
const fieldValue = value2[fieldKey];
|
|
21121
21153
|
const fieldName = `${name2}.${fieldKey}`;
|
|
21122
|
-
const field = get$
|
|
21154
|
+
const field = get$2(_fields, fieldName);
|
|
21123
21155
|
(_names.array.has(name2) || !isPrimitive(fieldValue) || field && !field._f) && !isDateObject(fieldValue) ? setValues(fieldName, fieldValue, options) : setFieldValue(fieldName, fieldValue, options);
|
|
21124
21156
|
}
|
|
21125
21157
|
};
|
|
21126
21158
|
const setValue = (name2, value2, options = {}) => {
|
|
21127
|
-
const field = get$
|
|
21159
|
+
const field = get$2(_fields, name2);
|
|
21128
21160
|
const isFieldArray = _names.array.has(name2);
|
|
21129
21161
|
const cloneValue = cloneObject(value2);
|
|
21130
21162
|
set(_formValues, name2, cloneValue);
|
|
@@ -21154,17 +21186,17 @@ var __publicField = (obj, key, value) => {
|
|
|
21154
21186
|
const target = event2.target;
|
|
21155
21187
|
let name2 = target.name;
|
|
21156
21188
|
let isFieldValueUpdated = true;
|
|
21157
|
-
const field = get$
|
|
21189
|
+
const field = get$2(_fields, name2);
|
|
21158
21190
|
const getCurrentFieldValue = () => target.type ? getFieldValue(field._f) : getEventValue(event2);
|
|
21159
21191
|
const _updateIsFieldValueUpdated = (fieldValue) => {
|
|
21160
|
-
isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$
|
|
21192
|
+
isFieldValueUpdated = Number.isNaN(fieldValue) || fieldValue === get$2(_formValues, name2, fieldValue);
|
|
21161
21193
|
};
|
|
21162
21194
|
if (field) {
|
|
21163
21195
|
let error;
|
|
21164
21196
|
let isValid;
|
|
21165
21197
|
const fieldValue = getCurrentFieldValue();
|
|
21166
21198
|
const isBlurEvent = event2.type === EVENTS.BLUR || event2.type === EVENTS.FOCUS_OUT;
|
|
21167
|
-
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);
|
|
21168
21200
|
const watched = isWatched(name2, _names, isBlurEvent);
|
|
21169
21201
|
set(_formValues, name2, fieldValue);
|
|
21170
21202
|
if (isBlurEvent) {
|
|
@@ -21214,7 +21246,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21214
21246
|
}
|
|
21215
21247
|
};
|
|
21216
21248
|
const _focusInput = (ref, key2) => {
|
|
21217
|
-
if (get$
|
|
21249
|
+
if (get$2(_formState.errors, key2) && ref.focus) {
|
|
21218
21250
|
ref.focus();
|
|
21219
21251
|
return 1;
|
|
21220
21252
|
}
|
|
@@ -21228,10 +21260,10 @@ var __publicField = (obj, key, value) => {
|
|
|
21228
21260
|
if (_options.resolver) {
|
|
21229
21261
|
const errors = await executeSchemaAndUpdateState(isUndefined(name2) ? name2 : fieldNames);
|
|
21230
21262
|
isValid = isEmptyObject(errors);
|
|
21231
|
-
validationResult = name2 ? !fieldNames.some((name3) => get$
|
|
21263
|
+
validationResult = name2 ? !fieldNames.some((name3) => get$2(errors, name3)) : isValid;
|
|
21232
21264
|
} else if (name2) {
|
|
21233
21265
|
validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {
|
|
21234
|
-
const field = get$
|
|
21266
|
+
const field = get$2(_fields, fieldName);
|
|
21235
21267
|
return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);
|
|
21236
21268
|
}))).every(Boolean);
|
|
21237
21269
|
!(!validationResult && !_formState.isValid) && _updateValid();
|
|
@@ -21252,13 +21284,13 @@ var __publicField = (obj, key, value) => {
|
|
|
21252
21284
|
..._defaultValues,
|
|
21253
21285
|
..._state.mount ? _formValues : {}
|
|
21254
21286
|
};
|
|
21255
|
-
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));
|
|
21256
21288
|
};
|
|
21257
21289
|
const getFieldState = (name2, formState) => ({
|
|
21258
|
-
invalid: !!get$
|
|
21259
|
-
isDirty: !!get$
|
|
21260
|
-
isTouched: !!get$
|
|
21261
|
-
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)
|
|
21262
21294
|
});
|
|
21263
21295
|
const clearErrors = (name2) => {
|
|
21264
21296
|
name2 && convertToArrayPayload(name2).forEach((inputName) => unset(_formState.errors, inputName));
|
|
@@ -21267,7 +21299,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21267
21299
|
});
|
|
21268
21300
|
};
|
|
21269
21301
|
const setError = (name2, error, options) => {
|
|
21270
|
-
const ref = (get$
|
|
21302
|
+
const ref = (get$2(_fields, name2, { _f: {} })._f || {}).ref;
|
|
21271
21303
|
set(_formState.errors, name2, {
|
|
21272
21304
|
...error,
|
|
21273
21305
|
ref
|
|
@@ -21279,7 +21311,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21279
21311
|
});
|
|
21280
21312
|
options && options.shouldFocus && ref && ref.focus && ref.focus();
|
|
21281
21313
|
};
|
|
21282
|
-
const watch = (name2, defaultValue) => isFunction$
|
|
21314
|
+
const watch = (name2, defaultValue) => isFunction$2(name2) ? _subjects.values.subscribe({
|
|
21283
21315
|
next: (payload) => name2(_getWatch(void 0, defaultValue), payload)
|
|
21284
21316
|
}) : _getWatch(name2, defaultValue, true);
|
|
21285
21317
|
const unregister = (name2, options = {}) => {
|
|
@@ -21306,13 +21338,13 @@ var __publicField = (obj, key, value) => {
|
|
|
21306
21338
|
};
|
|
21307
21339
|
const _updateDisabledField = ({ disabled, name: name2, field, fields, value: value2 }) => {
|
|
21308
21340
|
if (isBoolean(disabled)) {
|
|
21309
|
-
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;
|
|
21310
21342
|
set(_formValues, name2, inputValue);
|
|
21311
21343
|
updateTouchAndDirty(name2, inputValue, false, false, true);
|
|
21312
21344
|
}
|
|
21313
21345
|
};
|
|
21314
21346
|
const register = (name2, options = {}) => {
|
|
21315
|
-
let field = get$
|
|
21347
|
+
let field = get$2(_fields, name2);
|
|
21316
21348
|
const disabledIsDefined = isBoolean(options.disabled);
|
|
21317
21349
|
set(_fields, name2, {
|
|
21318
21350
|
...field || {},
|
|
@@ -21350,7 +21382,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21350
21382
|
ref: (ref) => {
|
|
21351
21383
|
if (ref) {
|
|
21352
21384
|
register(name2, options);
|
|
21353
|
-
field = get$
|
|
21385
|
+
field = get$2(_fields, name2);
|
|
21354
21386
|
const fieldRef = isUndefined(ref.value) ? ref.querySelectorAll ? ref.querySelectorAll("input,select,textarea")[0] || ref : ref : ref;
|
|
21355
21387
|
const radioOrCheckbox = isRadioOrCheckbox(fieldRef);
|
|
21356
21388
|
const refs = field._f.refs || [];
|
|
@@ -21364,7 +21396,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21364
21396
|
refs: [
|
|
21365
21397
|
...refs.filter(live),
|
|
21366
21398
|
fieldRef,
|
|
21367
|
-
...Array.isArray(get$
|
|
21399
|
+
...Array.isArray(get$2(_defaultValues, name2)) ? [{}] : []
|
|
21368
21400
|
],
|
|
21369
21401
|
ref: { type: fieldRef.type, name: name2 }
|
|
21370
21402
|
} : { ref: fieldRef }
|
|
@@ -21372,7 +21404,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21372
21404
|
});
|
|
21373
21405
|
updateValidAndValue(name2, false, void 0, fieldRef);
|
|
21374
21406
|
} else {
|
|
21375
|
-
field = get$
|
|
21407
|
+
field = get$2(_fields, name2, {});
|
|
21376
21408
|
if (field._f) {
|
|
21377
21409
|
field._f.mount = false;
|
|
21378
21410
|
}
|
|
@@ -21387,7 +21419,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21387
21419
|
_subjects.state.next({ disabled });
|
|
21388
21420
|
iterateFieldsByAction(_fields, (ref, name2) => {
|
|
21389
21421
|
let requiredDisabledState = disabled;
|
|
21390
|
-
const currentField = get$
|
|
21422
|
+
const currentField = get$2(_fields, name2);
|
|
21391
21423
|
if (currentField && isBoolean(currentField._f.disabled)) {
|
|
21392
21424
|
requiredDisabledState || (requiredDisabledState = currentField._f.disabled);
|
|
21393
21425
|
}
|
|
@@ -21441,9 +21473,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21441
21473
|
}
|
|
21442
21474
|
};
|
|
21443
21475
|
const resetField = (name2, options = {}) => {
|
|
21444
|
-
if (get$
|
|
21476
|
+
if (get$2(_fields, name2)) {
|
|
21445
21477
|
if (isUndefined(options.defaultValue)) {
|
|
21446
|
-
setValue(name2, cloneObject(get$
|
|
21478
|
+
setValue(name2, cloneObject(get$2(_defaultValues, name2)));
|
|
21447
21479
|
} else {
|
|
21448
21480
|
setValue(name2, options.defaultValue);
|
|
21449
21481
|
set(_defaultValues, name2, cloneObject(options.defaultValue));
|
|
@@ -21453,7 +21485,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21453
21485
|
}
|
|
21454
21486
|
if (!options.keepDirty) {
|
|
21455
21487
|
unset(_formState.dirtyFields, name2);
|
|
21456
|
-
_formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$
|
|
21488
|
+
_formState.isDirty = options.defaultValue ? _getDirty(name2, cloneObject(get$2(_defaultValues, name2))) : _getDirty();
|
|
21457
21489
|
}
|
|
21458
21490
|
if (!options.keepError) {
|
|
21459
21491
|
unset(_formState.errors, name2);
|
|
@@ -21472,12 +21504,12 @@ var __publicField = (obj, key, value) => {
|
|
|
21472
21504
|
if (!keepStateOptions.keepValues) {
|
|
21473
21505
|
if (keepStateOptions.keepDirtyValues) {
|
|
21474
21506
|
for (const fieldName of _names.mount) {
|
|
21475
|
-
get$
|
|
21507
|
+
get$2(_formState.dirtyFields, fieldName) ? set(values, fieldName, get$2(_formValues, fieldName)) : setValue(fieldName, get$2(values, fieldName));
|
|
21476
21508
|
}
|
|
21477
21509
|
} else {
|
|
21478
21510
|
if (isWeb && isUndefined(formValues)) {
|
|
21479
21511
|
for (const name2 of _names.mount) {
|
|
21480
|
-
const field = get$
|
|
21512
|
+
const field = get$2(_fields, name2);
|
|
21481
21513
|
if (field && field._f) {
|
|
21482
21514
|
const fieldReference = Array.isArray(field._f.refs) ? field._f.refs[0] : field._f.ref;
|
|
21483
21515
|
if (isHTMLElement(fieldReference)) {
|
|
@@ -21522,9 +21554,9 @@ var __publicField = (obj, key, value) => {
|
|
|
21522
21554
|
isSubmitting: false
|
|
21523
21555
|
});
|
|
21524
21556
|
};
|
|
21525
|
-
const reset = (formValues, keepStateOptions) => _reset(isFunction$
|
|
21557
|
+
const reset = (formValues, keepStateOptions) => _reset(isFunction$2(formValues) ? formValues(_formValues) : formValues, keepStateOptions);
|
|
21526
21558
|
const setFocus = (name2, options = {}) => {
|
|
21527
|
-
const field = get$
|
|
21559
|
+
const field = get$2(_fields, name2);
|
|
21528
21560
|
const fieldReference = field && field._f;
|
|
21529
21561
|
if (fieldReference) {
|
|
21530
21562
|
const fieldRef = fieldReference.refs ? fieldReference.refs[0] : fieldReference.ref;
|
|
@@ -21540,7 +21572,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21540
21572
|
...updatedFormState
|
|
21541
21573
|
};
|
|
21542
21574
|
};
|
|
21543
|
-
const _resetDefaultValues = () => isFunction$
|
|
21575
|
+
const _resetDefaultValues = () => isFunction$2(_options.defaultValues) && _options.defaultValues().then((values) => {
|
|
21544
21576
|
reset(values, _options.resetOptions);
|
|
21545
21577
|
_subjects.state.next({
|
|
21546
21578
|
isLoading: false
|
|
@@ -21620,13 +21652,13 @@ var __publicField = (obj, key, value) => {
|
|
|
21620
21652
|
getFieldState
|
|
21621
21653
|
};
|
|
21622
21654
|
}
|
|
21623
|
-
function useForm(props = {}) {
|
|
21655
|
+
function useForm$1(props = {}) {
|
|
21624
21656
|
const _formControl = React.useRef();
|
|
21625
21657
|
const _values = React.useRef();
|
|
21626
21658
|
const [formState, updateFormState] = React.useState({
|
|
21627
21659
|
isDirty: false,
|
|
21628
21660
|
isValidating: false,
|
|
21629
|
-
isLoading: isFunction$
|
|
21661
|
+
isLoading: isFunction$2(props.defaultValues),
|
|
21630
21662
|
isSubmitted: false,
|
|
21631
21663
|
isSubmitting: false,
|
|
21632
21664
|
isSubmitSuccessful: false,
|
|
@@ -21636,7 +21668,7 @@ var __publicField = (obj, key, value) => {
|
|
|
21636
21668
|
touchedFields: {},
|
|
21637
21669
|
errors: props.errors || {},
|
|
21638
21670
|
disabled: props.disabled || false,
|
|
21639
|
-
defaultValues: isFunction$
|
|
21671
|
+
defaultValues: isFunction$2(props.defaultValues) ? void 0 : props.defaultValues
|
|
21640
21672
|
});
|
|
21641
21673
|
if (!_formControl.current) {
|
|
21642
21674
|
_formControl.current = {
|
|
@@ -21709,10 +21741,8 @@ var __publicField = (obj, key, value) => {
|
|
|
21709
21741
|
} = props;
|
|
21710
21742
|
const {
|
|
21711
21743
|
control,
|
|
21712
|
-
watch,
|
|
21713
21744
|
getValues
|
|
21714
21745
|
} = formResult;
|
|
21715
|
-
watch();
|
|
21716
21746
|
const fields = (_b = (_a = config == null ? void 0 : config.formConfig) == null ? void 0 : _a.fields) == null ? void 0 : _b.map((c2) => {
|
|
21717
21747
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Controller, {
|
|
21718
21748
|
control,
|
|
@@ -21767,13 +21797,13 @@ var __publicField = (obj, key, value) => {
|
|
|
21767
21797
|
meta: {}
|
|
21768
21798
|
});
|
|
21769
21799
|
}
|
|
21770
|
-
if (action === "edit" && c2.
|
|
21800
|
+
if (action === "edit" && c2.disabledWhenEdit) {
|
|
21771
21801
|
ele = /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
21772
21802
|
children: value2
|
|
21773
21803
|
});
|
|
21774
21804
|
}
|
|
21775
21805
|
if (c2 == null ? void 0 : c2.render) {
|
|
21776
|
-
ele = c2.render(value2, onChange, formValue, onBlur);
|
|
21806
|
+
ele = c2.render(value2, onChange, formValue, onBlur, action);
|
|
21777
21807
|
}
|
|
21778
21808
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, {
|
|
21779
21809
|
label: c2.label,
|
|
@@ -21799,20 +21829,23 @@ var __publicField = (obj, key, value) => {
|
|
|
21799
21829
|
})]
|
|
21800
21830
|
});
|
|
21801
21831
|
};
|
|
21802
|
-
var isArray = Array.isArray;
|
|
21803
|
-
|
|
21804
|
-
var freeGlobal = typeof
|
|
21805
|
-
|
|
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;
|
|
21806
21837
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
21807
|
-
var root = freeGlobal
|
|
21808
|
-
|
|
21809
|
-
var
|
|
21810
|
-
|
|
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;
|
|
21811
21844
|
var objectProto$6 = Object.prototype;
|
|
21812
21845
|
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
21813
21846
|
var nativeObjectToString$1 = objectProto$6.toString;
|
|
21814
|
-
var symToStringTag$1 = Symbol$
|
|
21815
|
-
function getRawTag(value2) {
|
|
21847
|
+
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
21848
|
+
function getRawTag$1(value2) {
|
|
21816
21849
|
var isOwn = hasOwnProperty$5.call(value2, symToStringTag$1), tag = value2[symToStringTag$1];
|
|
21817
21850
|
try {
|
|
21818
21851
|
value2[symToStringTag$1] = void 0;
|
|
@@ -21829,61 +21862,76 @@ var __publicField = (obj, key, value) => {
|
|
|
21829
21862
|
}
|
|
21830
21863
|
return result;
|
|
21831
21864
|
}
|
|
21865
|
+
var _getRawTag = getRawTag$1;
|
|
21832
21866
|
var objectProto$5 = Object.prototype;
|
|
21833
21867
|
var nativeObjectToString = objectProto$5.toString;
|
|
21834
|
-
function objectToString(value2) {
|
|
21868
|
+
function objectToString$1(value2) {
|
|
21835
21869
|
return nativeObjectToString.call(value2);
|
|
21836
21870
|
}
|
|
21871
|
+
var _objectToString = objectToString$1;
|
|
21872
|
+
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
21837
21873
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
21838
21874
|
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
21839
|
-
function baseGetTag(value2) {
|
|
21875
|
+
function baseGetTag$3(value2) {
|
|
21840
21876
|
if (value2 == null) {
|
|
21841
21877
|
return value2 === void 0 ? undefinedTag : nullTag;
|
|
21842
21878
|
}
|
|
21843
21879
|
return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString(value2);
|
|
21844
21880
|
}
|
|
21845
|
-
|
|
21881
|
+
var _baseGetTag = baseGetTag$3;
|
|
21882
|
+
function isObjectLike$3(value2) {
|
|
21846
21883
|
return value2 != null && typeof value2 == "object";
|
|
21847
21884
|
}
|
|
21885
|
+
var isObjectLike_1 = isObjectLike$3;
|
|
21886
|
+
var baseGetTag$2 = _baseGetTag, isObjectLike$2 = isObjectLike_1;
|
|
21848
21887
|
var symbolTag = "[object Symbol]";
|
|
21849
|
-
function isSymbol(value2) {
|
|
21850
|
-
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;
|
|
21851
21890
|
}
|
|
21891
|
+
var isSymbol_1 = isSymbol$3;
|
|
21892
|
+
var isArray$3 = isArray_1, isSymbol$2 = isSymbol_1;
|
|
21852
21893
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
21853
|
-
function isKey(value2, object2) {
|
|
21854
|
-
if (isArray$
|
|
21894
|
+
function isKey$1(value2, object2) {
|
|
21895
|
+
if (isArray$3(value2)) {
|
|
21855
21896
|
return false;
|
|
21856
21897
|
}
|
|
21857
21898
|
var type2 = typeof value2;
|
|
21858
|
-
if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol(value2)) {
|
|
21899
|
+
if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value2 == null || isSymbol$2(value2)) {
|
|
21859
21900
|
return true;
|
|
21860
21901
|
}
|
|
21861
21902
|
return reIsPlainProp.test(value2) || !reIsDeepProp.test(value2) || object2 != null && value2 in Object(object2);
|
|
21862
21903
|
}
|
|
21863
|
-
|
|
21904
|
+
var _isKey = isKey$1;
|
|
21905
|
+
function isObject$2(value2) {
|
|
21864
21906
|
var type2 = typeof value2;
|
|
21865
21907
|
return value2 != null && (type2 == "object" || type2 == "function");
|
|
21866
21908
|
}
|
|
21909
|
+
var isObject_1 = isObject$2;
|
|
21910
|
+
var baseGetTag$1 = _baseGetTag, isObject$1 = isObject_1;
|
|
21867
21911
|
var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
21868
|
-
function isFunction(value2) {
|
|
21869
|
-
if (!isObject(value2)) {
|
|
21912
|
+
function isFunction$1(value2) {
|
|
21913
|
+
if (!isObject$1(value2)) {
|
|
21870
21914
|
return false;
|
|
21871
21915
|
}
|
|
21872
|
-
var tag = baseGetTag(value2);
|
|
21916
|
+
var tag = baseGetTag$1(value2);
|
|
21873
21917
|
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
21874
21918
|
}
|
|
21875
|
-
var
|
|
21876
|
-
|
|
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;
|
|
21877
21924
|
var maskSrcKey = function() {
|
|
21878
|
-
var uid = /[^.]+$/.exec(coreJsData
|
|
21925
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
21879
21926
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
21880
21927
|
}();
|
|
21881
|
-
function isMasked(func) {
|
|
21928
|
+
function isMasked$1(func) {
|
|
21882
21929
|
return !!maskSrcKey && maskSrcKey in func;
|
|
21883
21930
|
}
|
|
21931
|
+
var _isMasked = isMasked$1;
|
|
21884
21932
|
var funcProto$1 = Function.prototype;
|
|
21885
21933
|
var funcToString$1 = funcProto$1.toString;
|
|
21886
|
-
function toSource(func) {
|
|
21934
|
+
function toSource$1(func) {
|
|
21887
21935
|
if (func != null) {
|
|
21888
21936
|
try {
|
|
21889
21937
|
return funcToString$1.call(func);
|
|
@@ -21896,6 +21944,8 @@ var __publicField = (obj, key, value) => {
|
|
|
21896
21944
|
}
|
|
21897
21945
|
return "";
|
|
21898
21946
|
}
|
|
21947
|
+
var _toSource = toSource$1;
|
|
21948
|
+
var isFunction = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource = _toSource;
|
|
21899
21949
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
21900
21950
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
21901
21951
|
var funcProto = Function.prototype, objectProto$4 = Object.prototype;
|
|
@@ -21904,56 +21954,71 @@ var __publicField = (obj, key, value) => {
|
|
|
21904
21954
|
var reIsNative = RegExp(
|
|
21905
21955
|
"^" + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
21906
21956
|
);
|
|
21907
|
-
function baseIsNative(value2) {
|
|
21957
|
+
function baseIsNative$1(value2) {
|
|
21908
21958
|
if (!isObject(value2) || isMasked(value2)) {
|
|
21909
21959
|
return false;
|
|
21910
21960
|
}
|
|
21911
21961
|
var pattern = isFunction(value2) ? reIsNative : reIsHostCtor;
|
|
21912
21962
|
return pattern.test(toSource(value2));
|
|
21913
21963
|
}
|
|
21914
|
-
|
|
21964
|
+
var _baseIsNative = baseIsNative$1;
|
|
21965
|
+
function getValue$1(object2, key2) {
|
|
21915
21966
|
return object2 == null ? void 0 : object2[key2];
|
|
21916
21967
|
}
|
|
21917
|
-
|
|
21968
|
+
var _getValue = getValue$1;
|
|
21969
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
21970
|
+
function getNative$2(object2, key2) {
|
|
21918
21971
|
var value2 = getValue(object2, key2);
|
|
21919
21972
|
return baseIsNative(value2) ? value2 : void 0;
|
|
21920
21973
|
}
|
|
21921
|
-
var
|
|
21922
|
-
|
|
21923
|
-
|
|
21924
|
-
|
|
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) : {};
|
|
21925
21981
|
this.size = 0;
|
|
21926
21982
|
}
|
|
21927
|
-
|
|
21983
|
+
var _hashClear = hashClear$1;
|
|
21984
|
+
function hashDelete$1(key2) {
|
|
21928
21985
|
var result = this.has(key2) && delete this.__data__[key2];
|
|
21929
21986
|
this.size -= result ? 1 : 0;
|
|
21930
21987
|
return result;
|
|
21931
21988
|
}
|
|
21989
|
+
var _hashDelete = hashDelete$1;
|
|
21990
|
+
var nativeCreate$2 = _nativeCreate;
|
|
21932
21991
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
21933
21992
|
var objectProto$3 = Object.prototype;
|
|
21934
21993
|
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
21935
|
-
function hashGet(key2) {
|
|
21994
|
+
function hashGet$1(key2) {
|
|
21936
21995
|
var data2 = this.__data__;
|
|
21937
|
-
if (nativeCreate$
|
|
21996
|
+
if (nativeCreate$2) {
|
|
21938
21997
|
var result = data2[key2];
|
|
21939
21998
|
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
21940
21999
|
}
|
|
21941
22000
|
return hasOwnProperty$3.call(data2, key2) ? data2[key2] : void 0;
|
|
21942
22001
|
}
|
|
22002
|
+
var _hashGet = hashGet$1;
|
|
22003
|
+
var nativeCreate$1 = _nativeCreate;
|
|
21943
22004
|
var objectProto$2 = Object.prototype;
|
|
21944
22005
|
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
21945
|
-
function hashHas(key2) {
|
|
22006
|
+
function hashHas$1(key2) {
|
|
21946
22007
|
var data2 = this.__data__;
|
|
21947
22008
|
return nativeCreate$1 ? data2[key2] !== void 0 : hasOwnProperty$2.call(data2, key2);
|
|
21948
22009
|
}
|
|
22010
|
+
var _hashHas = hashHas$1;
|
|
22011
|
+
var nativeCreate = _nativeCreate;
|
|
21949
22012
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
21950
|
-
function hashSet(key2, value2) {
|
|
22013
|
+
function hashSet$1(key2, value2) {
|
|
21951
22014
|
var data2 = this.__data__;
|
|
21952
22015
|
this.size += this.has(key2) ? 0 : 1;
|
|
21953
|
-
data2[key2] = nativeCreate
|
|
22016
|
+
data2[key2] = nativeCreate && value2 === void 0 ? HASH_UNDEFINED : value2;
|
|
21954
22017
|
return this;
|
|
21955
22018
|
}
|
|
21956
|
-
|
|
22019
|
+
var _hashSet = hashSet$1;
|
|
22020
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
22021
|
+
function Hash$1(entries) {
|
|
21957
22022
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
21958
22023
|
this.clear();
|
|
21959
22024
|
while (++index < length) {
|
|
@@ -21961,19 +22026,23 @@ var __publicField = (obj, key, value) => {
|
|
|
21961
22026
|
this.set(entry[0], entry[1]);
|
|
21962
22027
|
}
|
|
21963
22028
|
}
|
|
21964
|
-
Hash.prototype.clear = hashClear;
|
|
21965
|
-
Hash.prototype["delete"] = hashDelete;
|
|
21966
|
-
Hash.prototype.get = hashGet;
|
|
21967
|
-
Hash.prototype.has = hashHas;
|
|
21968
|
-
Hash.prototype.set = hashSet;
|
|
21969
|
-
|
|
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() {
|
|
21970
22036
|
this.__data__ = [];
|
|
21971
22037
|
this.size = 0;
|
|
21972
22038
|
}
|
|
21973
|
-
|
|
22039
|
+
var _listCacheClear = listCacheClear$1;
|
|
22040
|
+
function eq$1(value2, other) {
|
|
21974
22041
|
return value2 === other || value2 !== value2 && other !== other;
|
|
21975
22042
|
}
|
|
21976
|
-
|
|
22043
|
+
var eq_1 = eq$1;
|
|
22044
|
+
var eq = eq_1;
|
|
22045
|
+
function assocIndexOf$4(array, key2) {
|
|
21977
22046
|
var length = array.length;
|
|
21978
22047
|
while (length--) {
|
|
21979
22048
|
if (eq(array[length][0], key2)) {
|
|
@@ -21982,10 +22051,12 @@ var __publicField = (obj, key, value) => {
|
|
|
21982
22051
|
}
|
|
21983
22052
|
return -1;
|
|
21984
22053
|
}
|
|
22054
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
22055
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
21985
22056
|
var arrayProto = Array.prototype;
|
|
21986
22057
|
var splice = arrayProto.splice;
|
|
21987
|
-
function listCacheDelete(key2) {
|
|
21988
|
-
var data2 = this.__data__, index = assocIndexOf(data2, key2);
|
|
22058
|
+
function listCacheDelete$1(key2) {
|
|
22059
|
+
var data2 = this.__data__, index = assocIndexOf$3(data2, key2);
|
|
21989
22060
|
if (index < 0) {
|
|
21990
22061
|
return false;
|
|
21991
22062
|
}
|
|
@@ -21998,14 +22069,20 @@ var __publicField = (obj, key, value) => {
|
|
|
21998
22069
|
--this.size;
|
|
21999
22070
|
return true;
|
|
22000
22071
|
}
|
|
22001
|
-
|
|
22002
|
-
|
|
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);
|
|
22003
22076
|
return index < 0 ? void 0 : data2[index][1];
|
|
22004
22077
|
}
|
|
22005
|
-
|
|
22006
|
-
|
|
22078
|
+
var _listCacheGet = listCacheGet$1;
|
|
22079
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
22080
|
+
function listCacheHas$1(key2) {
|
|
22081
|
+
return assocIndexOf$1(this.__data__, key2) > -1;
|
|
22007
22082
|
}
|
|
22008
|
-
|
|
22083
|
+
var _listCacheHas = listCacheHas$1;
|
|
22084
|
+
var assocIndexOf = _assocIndexOf;
|
|
22085
|
+
function listCacheSet$1(key2, value2) {
|
|
22009
22086
|
var data2 = this.__data__, index = assocIndexOf(data2, key2);
|
|
22010
22087
|
if (index < 0) {
|
|
22011
22088
|
++this.size;
|
|
@@ -22015,7 +22092,9 @@ var __publicField = (obj, key, value) => {
|
|
|
22015
22092
|
}
|
|
22016
22093
|
return this;
|
|
22017
22094
|
}
|
|
22018
|
-
|
|
22095
|
+
var _listCacheSet = listCacheSet$1;
|
|
22096
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
22097
|
+
function ListCache$1(entries) {
|
|
22019
22098
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
22020
22099
|
this.clear();
|
|
22021
22100
|
while (++index < length) {
|
|
@@ -22023,47 +22102,63 @@ var __publicField = (obj, key, value) => {
|
|
|
22023
22102
|
this.set(entry[0], entry[1]);
|
|
22024
22103
|
}
|
|
22025
22104
|
}
|
|
22026
|
-
ListCache.prototype.clear = listCacheClear;
|
|
22027
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
22028
|
-
ListCache.prototype.get = listCacheGet;
|
|
22029
|
-
ListCache.prototype.has = listCacheHas;
|
|
22030
|
-
ListCache.prototype.set = listCacheSet;
|
|
22031
|
-
var
|
|
22032
|
-
|
|
22033
|
-
|
|
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() {
|
|
22034
22116
|
this.size = 0;
|
|
22035
22117
|
this.__data__ = {
|
|
22036
22118
|
"hash": new Hash(),
|
|
22037
|
-
"map": new (Map$
|
|
22119
|
+
"map": new (Map$1 || ListCache)(),
|
|
22038
22120
|
"string": new Hash()
|
|
22039
22121
|
};
|
|
22040
22122
|
}
|
|
22041
|
-
|
|
22123
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
22124
|
+
function isKeyable$1(value2) {
|
|
22042
22125
|
var type2 = typeof value2;
|
|
22043
22126
|
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value2 !== "__proto__" : value2 === null;
|
|
22044
22127
|
}
|
|
22045
|
-
|
|
22128
|
+
var _isKeyable = isKeyable$1;
|
|
22129
|
+
var isKeyable = _isKeyable;
|
|
22130
|
+
function getMapData$4(map, key2) {
|
|
22046
22131
|
var data2 = map.__data__;
|
|
22047
22132
|
return isKeyable(key2) ? data2[typeof key2 == "string" ? "string" : "hash"] : data2.map;
|
|
22048
22133
|
}
|
|
22049
|
-
|
|
22050
|
-
|
|
22134
|
+
var _getMapData = getMapData$4;
|
|
22135
|
+
var getMapData$3 = _getMapData;
|
|
22136
|
+
function mapCacheDelete$1(key2) {
|
|
22137
|
+
var result = getMapData$3(this, key2)["delete"](key2);
|
|
22051
22138
|
this.size -= result ? 1 : 0;
|
|
22052
22139
|
return result;
|
|
22053
22140
|
}
|
|
22054
|
-
|
|
22055
|
-
|
|
22141
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
22142
|
+
var getMapData$2 = _getMapData;
|
|
22143
|
+
function mapCacheGet$1(key2) {
|
|
22144
|
+
return getMapData$2(this, key2).get(key2);
|
|
22056
22145
|
}
|
|
22057
|
-
|
|
22058
|
-
|
|
22146
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
22147
|
+
var getMapData$1 = _getMapData;
|
|
22148
|
+
function mapCacheHas$1(key2) {
|
|
22149
|
+
return getMapData$1(this, key2).has(key2);
|
|
22059
22150
|
}
|
|
22060
|
-
|
|
22151
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
22152
|
+
var getMapData = _getMapData;
|
|
22153
|
+
function mapCacheSet$1(key2, value2) {
|
|
22061
22154
|
var data2 = getMapData(this, key2), size = data2.size;
|
|
22062
22155
|
data2.set(key2, value2);
|
|
22063
22156
|
this.size += data2.size == size ? 0 : 1;
|
|
22064
22157
|
return this;
|
|
22065
22158
|
}
|
|
22066
|
-
|
|
22159
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
22160
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
22161
|
+
function MapCache$1(entries) {
|
|
22067
22162
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
22068
22163
|
this.clear();
|
|
22069
22164
|
while (++index < length) {
|
|
@@ -22071,13 +22166,15 @@ var __publicField = (obj, key, value) => {
|
|
|
22071
22166
|
this.set(entry[0], entry[1]);
|
|
22072
22167
|
}
|
|
22073
22168
|
}
|
|
22074
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
22075
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
22076
|
-
MapCache.prototype.get = mapCacheGet;
|
|
22077
|
-
MapCache.prototype.has = mapCacheHas;
|
|
22078
|
-
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;
|
|
22079
22176
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
22080
|
-
function memoize(func, resolver) {
|
|
22177
|
+
function memoize$1(func, resolver) {
|
|
22081
22178
|
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
22082
22179
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
22083
22180
|
}
|
|
@@ -22090,12 +22187,14 @@ var __publicField = (obj, key, value) => {
|
|
|
22090
22187
|
memoized.cache = cache.set(key2, result) || cache;
|
|
22091
22188
|
return result;
|
|
22092
22189
|
};
|
|
22093
|
-
memoized.cache = new (memoize.Cache || MapCache)();
|
|
22190
|
+
memoized.cache = new (memoize$1.Cache || MapCache)();
|
|
22094
22191
|
return memoized;
|
|
22095
22192
|
}
|
|
22096
|
-
memoize.Cache = MapCache;
|
|
22193
|
+
memoize$1.Cache = MapCache;
|
|
22194
|
+
var memoize_1 = memoize$1;
|
|
22195
|
+
var memoize = memoize_1;
|
|
22097
22196
|
var MAX_MEMOIZE_SIZE = 500;
|
|
22098
|
-
function memoizeCapped(func) {
|
|
22197
|
+
function memoizeCapped$1(func) {
|
|
22099
22198
|
var result = memoize(func, function(key2) {
|
|
22100
22199
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
22101
22200
|
cache.clear();
|
|
@@ -22105,9 +22204,11 @@ var __publicField = (obj, key, value) => {
|
|
|
22105
22204
|
var cache = result.cache;
|
|
22106
22205
|
return result;
|
|
22107
22206
|
}
|
|
22207
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
22208
|
+
var memoizeCapped = _memoizeCapped;
|
|
22108
22209
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
22109
22210
|
var reEscapeChar = /\\(\\)?/g;
|
|
22110
|
-
var stringToPath = memoizeCapped(function(string) {
|
|
22211
|
+
var stringToPath$1 = memoizeCapped(function(string) {
|
|
22111
22212
|
var result = [];
|
|
22112
22213
|
if (string.charCodeAt(0) === 46) {
|
|
22113
22214
|
result.push("");
|
|
@@ -22117,88 +22218,109 @@ var __publicField = (obj, key, value) => {
|
|
|
22117
22218
|
});
|
|
22118
22219
|
return result;
|
|
22119
22220
|
});
|
|
22120
|
-
|
|
22121
|
-
function arrayMap(array, iteratee) {
|
|
22221
|
+
var _stringToPath = stringToPath$1;
|
|
22222
|
+
function arrayMap$1(array, iteratee) {
|
|
22122
22223
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
22123
22224
|
while (++index < length) {
|
|
22124
22225
|
result[index] = iteratee(array[index], index, array);
|
|
22125
22226
|
}
|
|
22126
22227
|
return result;
|
|
22127
22228
|
}
|
|
22229
|
+
var _arrayMap = arrayMap$1;
|
|
22230
|
+
var Symbol$1 = _Symbol, arrayMap = _arrayMap, isArray$2 = isArray_1, isSymbol$1 = isSymbol_1;
|
|
22128
22231
|
var INFINITY$1 = 1 / 0;
|
|
22129
|
-
var symbolProto = Symbol$
|
|
22130
|
-
function baseToString(value2) {
|
|
22232
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
22233
|
+
function baseToString$1(value2) {
|
|
22131
22234
|
if (typeof value2 == "string") {
|
|
22132
22235
|
return value2;
|
|
22133
22236
|
}
|
|
22134
|
-
if (isArray$
|
|
22135
|
-
return arrayMap(value2, baseToString) + "";
|
|
22237
|
+
if (isArray$2(value2)) {
|
|
22238
|
+
return arrayMap(value2, baseToString$1) + "";
|
|
22136
22239
|
}
|
|
22137
|
-
if (isSymbol(value2)) {
|
|
22240
|
+
if (isSymbol$1(value2)) {
|
|
22138
22241
|
return symbolToString ? symbolToString.call(value2) : "";
|
|
22139
22242
|
}
|
|
22140
22243
|
var result = value2 + "";
|
|
22141
22244
|
return result == "0" && 1 / value2 == -INFINITY$1 ? "-0" : result;
|
|
22142
22245
|
}
|
|
22143
|
-
|
|
22246
|
+
var _baseToString = baseToString$1;
|
|
22247
|
+
var baseToString = _baseToString;
|
|
22248
|
+
function toString$1(value2) {
|
|
22144
22249
|
return value2 == null ? "" : baseToString(value2);
|
|
22145
22250
|
}
|
|
22146
|
-
|
|
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) {
|
|
22147
22254
|
if (isArray$1(value2)) {
|
|
22148
22255
|
return value2;
|
|
22149
22256
|
}
|
|
22150
|
-
return isKey(value2, object2) ? [value2] : stringToPath
|
|
22257
|
+
return isKey(value2, object2) ? [value2] : stringToPath(toString(value2));
|
|
22151
22258
|
}
|
|
22259
|
+
var _castPath = castPath$2;
|
|
22260
|
+
var isSymbol = isSymbol_1;
|
|
22152
22261
|
var INFINITY = 1 / 0;
|
|
22153
|
-
function toKey(value2) {
|
|
22262
|
+
function toKey$2(value2) {
|
|
22154
22263
|
if (typeof value2 == "string" || isSymbol(value2)) {
|
|
22155
22264
|
return value2;
|
|
22156
22265
|
}
|
|
22157
22266
|
var result = value2 + "";
|
|
22158
22267
|
return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
|
|
22159
22268
|
}
|
|
22160
|
-
|
|
22161
|
-
|
|
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);
|
|
22162
22273
|
var index = 0, length = path2.length;
|
|
22163
22274
|
while (object2 != null && index < length) {
|
|
22164
|
-
object2 = object2[toKey(path2[index++])];
|
|
22275
|
+
object2 = object2[toKey$1(path2[index++])];
|
|
22165
22276
|
}
|
|
22166
22277
|
return index && index == length ? object2 : void 0;
|
|
22167
22278
|
}
|
|
22279
|
+
var _baseGet = baseGet$1;
|
|
22280
|
+
var baseGet = _baseGet;
|
|
22168
22281
|
function get(object2, path2, defaultValue) {
|
|
22169
22282
|
var result = object2 == null ? void 0 : baseGet(object2, path2);
|
|
22170
22283
|
return result === void 0 ? defaultValue : result;
|
|
22171
22284
|
}
|
|
22285
|
+
var get_1 = get;
|
|
22286
|
+
const get$1 = /* @__PURE__ */ getDefaultExportFromCjs(get_1);
|
|
22172
22287
|
var objectProto$1 = Object.prototype;
|
|
22173
22288
|
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
22174
|
-
function baseHas(object2, key2) {
|
|
22289
|
+
function baseHas$1(object2, key2) {
|
|
22175
22290
|
return object2 != null && hasOwnProperty$1.call(object2, key2);
|
|
22176
22291
|
}
|
|
22292
|
+
var _baseHas = baseHas$1;
|
|
22293
|
+
var baseGetTag = _baseGetTag, isObjectLike$1 = isObjectLike_1;
|
|
22177
22294
|
var argsTag = "[object Arguments]";
|
|
22178
|
-
function baseIsArguments(value2) {
|
|
22179
|
-
return isObjectLike(value2) && baseGetTag(value2) == argsTag;
|
|
22295
|
+
function baseIsArguments$1(value2) {
|
|
22296
|
+
return isObjectLike$1(value2) && baseGetTag(value2) == argsTag;
|
|
22180
22297
|
}
|
|
22298
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
22299
|
+
var baseIsArguments = _baseIsArguments, isObjectLike = isObjectLike_1;
|
|
22181
22300
|
var objectProto = Object.prototype;
|
|
22182
22301
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
22183
22302
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
22184
|
-
var isArguments = baseIsArguments(function() {
|
|
22303
|
+
var isArguments$1 = baseIsArguments(function() {
|
|
22185
22304
|
return arguments;
|
|
22186
22305
|
}()) ? baseIsArguments : function(value2) {
|
|
22187
22306
|
return isObjectLike(value2) && hasOwnProperty.call(value2, "callee") && !propertyIsEnumerable.call(value2, "callee");
|
|
22188
22307
|
};
|
|
22189
|
-
|
|
22308
|
+
var isArguments_1 = isArguments$1;
|
|
22190
22309
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
22191
22310
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
22192
|
-
function isIndex(value2, length) {
|
|
22311
|
+
function isIndex$1(value2, length) {
|
|
22193
22312
|
var type2 = typeof value2;
|
|
22194
22313
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
22195
22314
|
return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value2)) && (value2 > -1 && value2 % 1 == 0 && value2 < length);
|
|
22196
22315
|
}
|
|
22316
|
+
var _isIndex = isIndex$1;
|
|
22197
22317
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
22198
|
-
function isLength(value2) {
|
|
22318
|
+
function isLength$1(value2) {
|
|
22199
22319
|
return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER;
|
|
22200
22320
|
}
|
|
22201
|
-
|
|
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) {
|
|
22202
22324
|
path2 = castPath(path2, object2);
|
|
22203
22325
|
var index = -1, length = path2.length, result = false;
|
|
22204
22326
|
while (++index < length) {
|
|
@@ -22212,123 +22334,138 @@ var __publicField = (obj, key, value) => {
|
|
|
22212
22334
|
return result;
|
|
22213
22335
|
}
|
|
22214
22336
|
length = object2 == null ? 0 : object2.length;
|
|
22215
|
-
return !!length && isLength(length) && isIndex(key2, length) && (isArray
|
|
22337
|
+
return !!length && isLength(length) && isIndex(key2, length) && (isArray(object2) || isArguments(object2));
|
|
22216
22338
|
}
|
|
22339
|
+
var _hasPath = hasPath$1;
|
|
22340
|
+
var baseHas = _baseHas, hasPath = _hasPath;
|
|
22217
22341
|
function has(object2, path2) {
|
|
22218
22342
|
return object2 != null && hasPath(object2, path2, baseHas);
|
|
22219
22343
|
}
|
|
22220
|
-
var
|
|
22221
|
-
|
|
22222
|
-
|
|
22223
|
-
|
|
22224
|
-
|
|
22225
|
-
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22232
|
-
|
|
22233
|
-
|
|
22234
|
-
|
|
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);
|
|
22235
22402
|
}
|
|
22236
|
-
|
|
22237
|
-
|
|
22403
|
+
});
|
|
22404
|
+
const { queryResult, onFinish, formLoading, onFinishAutoSave } = useFormCoreResult;
|
|
22238
22405
|
React.useEffect(() => {
|
|
22239
|
-
var
|
|
22240
|
-
|
|
22241
|
-
if (!r2)
|
|
22406
|
+
var _a;
|
|
22407
|
+
if (formState.isDirty)
|
|
22242
22408
|
return;
|
|
22243
|
-
|
|
22244
|
-
|
|
22245
|
-
|
|
22246
|
-
|
|
22247
|
-
|
|
22248
|
-
|
|
22249
|
-
|
|
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
|
+
}
|
|
22250
22419
|
});
|
|
22251
|
-
|
|
22252
|
-
}, [c2]);
|
|
22253
|
-
let W = m((r2) => {
|
|
22254
|
-
var s2;
|
|
22255
|
-
if (f && b(true), t2 != null && t2.autoSave) {
|
|
22256
|
-
b(false);
|
|
22257
|
-
let e2 = (s2 = t2.autoSave) == null ? void 0 : s2.onFinish;
|
|
22258
|
-
return j(e2 ? e2(r2) : r2);
|
|
22259
|
-
}
|
|
22260
|
-
return r2;
|
|
22261
|
-
}, "onValuesChange"), g = m((r2, s2) => async (e2) => (b(false), T(r2, s2)(e2)), "handleSubmit");
|
|
22262
|
-
return { ...d, handleSubmit: g, refineCore: E, saveButtonProps: { disabled: B, onClick: (r2) => {
|
|
22263
|
-
g(o, () => false)(r2);
|
|
22264
|
-
} } };
|
|
22265
|
-
}, "useForm");
|
|
22266
|
-
m(({ stepsProps: t2, ...a2 } = {}) => {
|
|
22267
|
-
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]);
|
|
22268
22421
|
React.useEffect(() => {
|
|
22269
|
-
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
|
|
22273
|
-
let x = Object.keys(b());
|
|
22274
|
-
Object.entries(T).forEach(([l, o]) => {
|
|
22275
|
-
let B = l;
|
|
22276
|
-
x.includes(B) && (d[B] || f(B, o));
|
|
22422
|
+
const subscription = watch((values, { type: type2 }) => {
|
|
22423
|
+
if (type2 === "change") {
|
|
22424
|
+
onValuesChange(values);
|
|
22425
|
+
}
|
|
22277
22426
|
});
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
|
|
22283
|
-
|
|
22284
|
-
if (T === F)
|
|
22285
|
-
return;
|
|
22286
|
-
if (T < F && !Q) {
|
|
22287
|
-
R(T);
|
|
22288
|
-
return;
|
|
22427
|
+
return () => subscription.unsubscribe();
|
|
22428
|
+
}, [watch]);
|
|
22429
|
+
const onValuesChange = (changeValues) => {
|
|
22430
|
+
var _a;
|
|
22431
|
+
if (warnWhenUnsavedChanges) {
|
|
22432
|
+
setWarnWhen(true);
|
|
22289
22433
|
}
|
|
22290
|
-
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
|
|
22294
|
-
|
|
22295
|
-
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22299
|
-
|
|
22300
|
-
|
|
22301
|
-
|
|
22302
|
-
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
|
|
22309
|
-
}
|
|
22310
|
-
|
|
22311
|
-
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
|
|
22315
|
-
|
|
22316
|
-
|
|
22317
|
-
else
|
|
22318
|
-
return;
|
|
22319
|
-
e2 == null || e2(void 0), u();
|
|
22320
|
-
}, [O, y.status]), _ = React.useCallback((n2) => {
|
|
22321
|
-
typeof n2 < "u" && (e2 == null || e2(n2)), (!(E === "edit" || E === "clone") || (typeof n2 < "u" || typeof s2 < "u")) && k();
|
|
22322
|
-
}, [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")}`);
|
|
22323
|
-
return { modal: { submit: D, close: Z, show: _, visible: V, title: q }, ...g, saveButtonProps: { ...v, onClick: (n2) => H(D)(n2) } };
|
|
22324
|
-
}, "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
|
+
};
|
|
22325
22461
|
const useRefineForm = (props) => {
|
|
22326
22462
|
var _a;
|
|
22327
22463
|
const { config, id, refineProps } = props;
|
|
22328
22464
|
const [responseErrorMsg, setResponseErrorMsg] = React.useState("");
|
|
22329
22465
|
const i18n2 = useTranslation();
|
|
22330
|
-
const result =
|
|
22331
|
-
mode: "
|
|
22466
|
+
const result = useForm({
|
|
22467
|
+
mode: "onSubmit",
|
|
22468
|
+
reValidateMode: "onChange",
|
|
22332
22469
|
refineCoreProps: {
|
|
22333
22470
|
errorNotification: false,
|
|
22334
22471
|
successNotification: () => {
|
|
@@ -22359,10 +22496,11 @@ var __publicField = (obj, key, value) => {
|
|
|
22359
22496
|
const response = (_a2 = result.refineCore.mutationResult.error) == null ? void 0 : _a2.response;
|
|
22360
22497
|
if (response && !(response == null ? void 0 : response.bodyUsed)) {
|
|
22361
22498
|
(_b = response.json) == null ? void 0 : _b.call(response).then((body) => {
|
|
22362
|
-
|
|
22499
|
+
var _a3, _b2;
|
|
22500
|
+
setResponseErrorMsg(((_b2 = (_a3 = config.formConfig) == null ? void 0 : _a3.formatError) == null ? void 0 : _b2.call(_a3, body)) || body.message);
|
|
22363
22501
|
});
|
|
22364
22502
|
}
|
|
22365
|
-
}, [(_a = result.refineCore.mutationResult.error) == null ? void 0 : _a.response]);
|
|
22503
|
+
}, [config.formConfig, (_a = result.refineCore.mutationResult.error) == null ? void 0 : _a.response]);
|
|
22366
22504
|
return { formResult: result, responseErrorMsg };
|
|
22367
22505
|
};
|
|
22368
22506
|
const index_12sfrn = "";
|
|
@@ -23050,7 +23188,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23050
23188
|
const FormDescStyle = "f1qgcca6";
|
|
23051
23189
|
const ErrorStyle = "e1tl3wq2";
|
|
23052
23190
|
function FormModal(props) {
|
|
23053
|
-
var _a, _b, _c, _d, _e;
|
|
23191
|
+
var _a, _b, _c, _d, _e, _f;
|
|
23054
23192
|
const {
|
|
23055
23193
|
resource: resourceFromProps,
|
|
23056
23194
|
id,
|
|
@@ -23066,10 +23204,8 @@ var __publicField = (obj, key, value) => {
|
|
|
23066
23204
|
const [yamlSaveButtonProps, setYamlSaveButtonProps] = React.useState({});
|
|
23067
23205
|
const [isError, setIsError] = React.useState(false);
|
|
23068
23206
|
const config = configs[resourceFromProps || (resource == null ? void 0 : resource.name) || ""];
|
|
23069
|
-
const title = i18n2.t(id ? "dovetail.edit_resource" : "dovetail.create_resource", {
|
|
23070
|
-
resource: config == null ? void 0 : config.kind
|
|
23071
|
-
});
|
|
23072
23207
|
const okText = i18n2.t(id ? "dovetail.save" : "dovetail.create");
|
|
23208
|
+
const action = id ? "edit" : "create";
|
|
23073
23209
|
const yamlFormProps = React.useMemo(() => {
|
|
23074
23210
|
var _a2, _b2, _c2;
|
|
23075
23211
|
return {
|
|
@@ -23078,7 +23214,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23078
23214
|
transformApplyValues: (_b2 = config.formConfig) == null ? void 0 : _b2.transformApplyValues,
|
|
23079
23215
|
initialValues: ((_c2 = props.formProps) == null ? void 0 : _c2.initialValues) || (config == null ? void 0 : config.initValue),
|
|
23080
23216
|
id,
|
|
23081
|
-
action
|
|
23217
|
+
action,
|
|
23082
23218
|
isShowLayout: false,
|
|
23083
23219
|
useFormProps: {
|
|
23084
23220
|
redirect: false
|
|
@@ -23089,7 +23225,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23089
23225
|
},
|
|
23090
23226
|
onFinish: eagle.popModal
|
|
23091
23227
|
};
|
|
23092
|
-
}, [props.formProps,
|
|
23228
|
+
}, [props.formProps, (_a = config.formConfig) == null ? void 0 : _a.transformInitValues, (_b = config.formConfig) == null ? void 0 : _b.transformApplyValues, config == null ? void 0 : config.initValue, id, action]);
|
|
23093
23229
|
const refineFormResult = useRefineForm({
|
|
23094
23230
|
config,
|
|
23095
23231
|
id,
|
|
@@ -23098,10 +23234,10 @@ var __publicField = (obj, key, value) => {
|
|
|
23098
23234
|
eagle.popModal();
|
|
23099
23235
|
},
|
|
23100
23236
|
redirect: false,
|
|
23101
|
-
...(
|
|
23237
|
+
...(_c = config.formConfig) == null ? void 0 : _c.refineCoreProps
|
|
23102
23238
|
}
|
|
23103
23239
|
});
|
|
23104
|
-
const isYamlForm = !((
|
|
23240
|
+
const isYamlForm = !((_d = config.formConfig) == null ? void 0 : _d.fields);
|
|
23105
23241
|
const formEle = (() => {
|
|
23106
23242
|
if (renderForm) {
|
|
23107
23243
|
return renderForm(yamlFormProps);
|
|
@@ -23130,10 +23266,21 @@ var __publicField = (obj, key, value) => {
|
|
|
23130
23266
|
return i18n2.t(id ? "dovetail.save_failed" : "dovetail.create_failed");
|
|
23131
23267
|
}
|
|
23132
23268
|
})();
|
|
23269
|
+
const title = React.useMemo(() => {
|
|
23270
|
+
var _a2, _b2, _c2, _d2;
|
|
23271
|
+
if (typeof ((_a2 = config.formConfig) == null ? void 0 : _a2.formTitle) === "string")
|
|
23272
|
+
return (_b2 = config.formConfig) == null ? void 0 : _b2.formTitle;
|
|
23273
|
+
if (typeof ((_c2 = config.formConfig) == null ? void 0 : _c2.formTitle) === "function") {
|
|
23274
|
+
return (_d2 = config.formConfig) == null ? void 0 : _d2.formTitle(action);
|
|
23275
|
+
}
|
|
23276
|
+
return i18n2.t(id ? "dovetail.edit_resource" : "dovetail.create_resource", {
|
|
23277
|
+
resource: config == null ? void 0 : config.kind
|
|
23278
|
+
});
|
|
23279
|
+
}, [action, config.formConfig, config == null ? void 0 : config.kind, i18n2, id]);
|
|
23133
23280
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Modal, {
|
|
23134
23281
|
className: FullscreenModalStyle,
|
|
23135
23282
|
width: "calc(100vw - 16px)",
|
|
23136
|
-
title
|
|
23283
|
+
title,
|
|
23137
23284
|
error: errorText ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
23138
23285
|
className: ErrorStyle,
|
|
23139
23286
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(iconsReact.ExclamationErrorCircleFill16RedIcon, {}), " ", errorText]
|
|
@@ -23145,9 +23292,9 @@ var __publicField = (obj, key, value) => {
|
|
|
23145
23292
|
onCancel,
|
|
23146
23293
|
destroyOnClose: true,
|
|
23147
23294
|
fullscreen: true,
|
|
23148
|
-
children: [((
|
|
23295
|
+
children: [((_e = config.formConfig) == null ? void 0 : _e.formDesc) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23149
23296
|
className: FormDescStyle,
|
|
23150
|
-
children: (
|
|
23297
|
+
children: (_f = config.formConfig) == null ? void 0 : _f.formDesc
|
|
23151
23298
|
}) : void 0, formEle]
|
|
23152
23299
|
});
|
|
23153
23300
|
}
|
|
@@ -23185,7 +23332,8 @@ var __publicField = (obj, key, value) => {
|
|
|
23185
23332
|
className: "c1pvtlkp",
|
|
23186
23333
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(RefineFormContent, {
|
|
23187
23334
|
config,
|
|
23188
|
-
formResult
|
|
23335
|
+
formResult,
|
|
23336
|
+
action
|
|
23189
23337
|
}), ";", /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Button, {
|
|
23190
23338
|
...saveButtonProps,
|
|
23191
23339
|
onClick,
|
|
@@ -23517,7 +23665,7 @@ var __publicField = (obj, key, value) => {
|
|
|
23517
23665
|
});
|
|
23518
23666
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: result });
|
|
23519
23667
|
};
|
|
23520
|
-
const
|
|
23668
|
+
const columns_qgyagz = "";
|
|
23521
23669
|
const DashedTitleStyle = "dh5j833";
|
|
23522
23670
|
const ServiceClusterTooltipStyle = "s1fcgan";
|
|
23523
23671
|
const NameLink = (props) => {
|
|
@@ -24097,7 +24245,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24097
24245
|
},
|
|
24098
24246
|
[setCurrentPage]
|
|
24099
24247
|
);
|
|
24100
|
-
const currentSize = (tableProps == null ? void 0 : tableProps.
|
|
24248
|
+
const currentSize = (tableProps == null ? void 0 : tableProps.defaultSize) || 10;
|
|
24101
24249
|
const data2 = (_b = (_a = table.tableQueryResult.data) == null ? void 0 : _a.data) == null ? void 0 : _b.slice((currentPage - 1) * currentSize, currentPage * currentSize);
|
|
24102
24250
|
const total = ((_c = table.tableQueryResult.data) == null ? void 0 : _c.data.length) || 0;
|
|
24103
24251
|
const finalDataSource = formatter ? data2 == null ? void 0 : data2.map(formatter) : data2;
|
|
@@ -24110,7 +24258,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24110
24258
|
error: false,
|
|
24111
24259
|
rowKey: "id",
|
|
24112
24260
|
currentPage,
|
|
24113
|
-
currentSize,
|
|
24261
|
+
defaultSize: currentSize,
|
|
24114
24262
|
onPageChange,
|
|
24115
24263
|
onSelect: (keys) => {
|
|
24116
24264
|
setSelectedKeys(keys);
|