@harbor-design/proform 1.2.29 → 1.2.30
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/index.js
CHANGED
|
@@ -246,16 +246,16 @@ class X {
|
|
|
246
246
|
return !r.lazy && e(), this.effects.add(e), () => this.effects.delete(e);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
var We = typeof global == "object" && global && global.Object === Object && global, Ke = typeof self == "object" && self && self.Object === Object && self, Z = We || Ke || Function("return this")(), V = Z.Symbol, Ee = Object.prototype, Xe = Ee.hasOwnProperty, Ye = Ee.toString,
|
|
249
|
+
var We = typeof global == "object" && global && global.Object === Object && global, Ke = typeof self == "object" && self && self.Object === Object && self, Z = We || Ke || Function("return this")(), V = Z.Symbol, Ee = Object.prototype, Xe = Ee.hasOwnProperty, Ye = Ee.toString, M = V ? V.toStringTag : void 0;
|
|
250
250
|
function Ze(t) {
|
|
251
|
-
var e = Xe.call(t,
|
|
251
|
+
var e = Xe.call(t, M), r = t[M];
|
|
252
252
|
try {
|
|
253
|
-
t[
|
|
253
|
+
t[M] = void 0;
|
|
254
254
|
var s = !0;
|
|
255
255
|
} catch {
|
|
256
256
|
}
|
|
257
257
|
var i = Ye.call(t);
|
|
258
|
-
return s && (e ? t[
|
|
258
|
+
return s && (e ? t[M] = r : delete t[M]), i;
|
|
259
259
|
}
|
|
260
260
|
var Je = Object.prototype, Qe = Je.toString;
|
|
261
261
|
function Ae(t) {
|
|
@@ -364,14 +364,14 @@ function Rt(t, e, r) {
|
|
|
364
364
|
(!(wt.call(t, e) && Re(s, r)) || r === void 0 && !(e in t)) && Et(t, e, r);
|
|
365
365
|
}
|
|
366
366
|
var Vt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, $t = /^\w*$/;
|
|
367
|
-
function
|
|
367
|
+
function Nt(t, e) {
|
|
368
368
|
if (Q(t))
|
|
369
369
|
return !1;
|
|
370
370
|
var r = typeof t;
|
|
371
371
|
return r == "number" || r == "symbol" || r == "boolean" || t == null || J(t) ? !0 : $t.test(t) || !Vt.test(t) || e != null && t in Object(e);
|
|
372
372
|
}
|
|
373
373
|
var U = A(Object, "create");
|
|
374
|
-
function
|
|
374
|
+
function Mt() {
|
|
375
375
|
this.__data__ = U ? U(null) : {}, this.size = 0;
|
|
376
376
|
}
|
|
377
377
|
function xt(t) {
|
|
@@ -404,7 +404,7 @@ function O(t) {
|
|
|
404
404
|
this.set(s[0], s[1]);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
O.prototype.clear =
|
|
407
|
+
O.prototype.clear = Mt;
|
|
408
408
|
O.prototype.delete = xt;
|
|
409
409
|
O.prototype.get = zt;
|
|
410
410
|
O.prototype.has = Gt;
|
|
@@ -522,7 +522,7 @@ function fr(t) {
|
|
|
522
522
|
return t == null ? "" : we(t);
|
|
523
523
|
}
|
|
524
524
|
function Ve(t, e) {
|
|
525
|
-
return Q(t) ? t :
|
|
525
|
+
return Q(t) ? t : Nt(t, e) ? [t] : cr(fr(t));
|
|
526
526
|
}
|
|
527
527
|
var dr = 1 / 0;
|
|
528
528
|
function $e(t) {
|
|
@@ -577,12 +577,9 @@ class mr {
|
|
|
577
577
|
c(this, "defaultValueInprogressMap", /* @__PURE__ */ new Map());
|
|
578
578
|
c(this, "baseDefaultValueFunctionsLength");
|
|
579
579
|
c(this, "isModelInitialized", !0);
|
|
580
|
-
c(this, "createInitialModel", !0);
|
|
581
580
|
this.runtimeCore = e, this.processedSchemas = e.schemas, this.processedModel = e.model, this.getRuntimeMeta = e.getRuntimeMeta.bind(e), b(
|
|
582
581
|
() => this.processedModel.value,
|
|
583
582
|
() => {
|
|
584
|
-
if (this.createInitialModel)
|
|
585
|
-
return this.createInitialModel = !1;
|
|
586
583
|
this.schemaEffect.triggerEffects();
|
|
587
584
|
},
|
|
588
585
|
{
|
|
@@ -808,7 +805,7 @@ class mr {
|
|
|
808
805
|
return;
|
|
809
806
|
if (a.isString(e.field) && r[e.field])
|
|
810
807
|
return;
|
|
811
|
-
this.
|
|
808
|
+
this.setModel(r, e.field, void 0);
|
|
812
809
|
}
|
|
813
810
|
}
|
|
814
811
|
}
|
|
@@ -971,25 +968,25 @@ class br {
|
|
|
971
968
|
y === void 0 && (y = !0);
|
|
972
969
|
let g = e.label ?? "", I;
|
|
973
970
|
if (e.runtime ? I = e.runtime : I = (i == null ? void 0 : i.runtime) ?? this.runtime, !a.isUndefined(r) && !a.isObjectEmpty(I) && (g = K((be = I == null ? void 0 : I.customizeListItemLabel) == null ? void 0 : be.call(I, e.label ?? "", r + 1), "")), !C) {
|
|
974
|
-
let
|
|
975
|
-
a.isUndefined(p) ? C = `${
|
|
976
|
-
S[p.toLowerCase()], C = `${
|
|
977
|
-
p.toLowerCase().includes(ve.toLowerCase()) && (
|
|
978
|
-
}), C = `${
|
|
971
|
+
let N = "请输入";
|
|
972
|
+
a.isUndefined(p) ? C = `${N}${g}` : /* @ts-expect-error */ S[p.toLowerCase()] ? (N = // @ts-expect-error
|
|
973
|
+
S[p.toLowerCase()], C = `${N}${g}`) : (Object.keys(S).forEach((ve) => {
|
|
974
|
+
p.toLowerCase().includes(ve.toLowerCase()) && (N = S[ve]);
|
|
975
|
+
}), C = `${N}${g}`);
|
|
979
976
|
}
|
|
980
|
-
const
|
|
977
|
+
const Ne = this.runtimeAdapter.getRuntimeRequired({
|
|
981
978
|
...e,
|
|
982
979
|
label: g
|
|
983
|
-
}),
|
|
980
|
+
}), Me = j.getItemContainer(this), xe = j.getFormItemContainer(this), qe = this, Te = e.componentSlots;
|
|
984
981
|
return m("div", {
|
|
985
982
|
style: l
|
|
986
|
-
}, [m(
|
|
983
|
+
}, [m(Me, {
|
|
987
984
|
show: y
|
|
988
985
|
}, {
|
|
989
986
|
default() {
|
|
990
987
|
return y && m(xe, x(u, {
|
|
991
988
|
label: `${g ? `${g}:` : ""}`
|
|
992
|
-
}, f,
|
|
989
|
+
}, f, Ne), {
|
|
993
990
|
default() {
|
|
994
991
|
return qe.runtimeAdapter.formComponentRenderer({
|
|
995
992
|
Component: n,
|
|
@@ -22,7 +22,6 @@ export default class Processor {
|
|
|
22
22
|
defaultValueInprogressMap: Map<any, any>;
|
|
23
23
|
baseDefaultValueFunctionsLength: number;
|
|
24
24
|
isModelInitialized: boolean;
|
|
25
|
-
createInitialModel: boolean;
|
|
26
25
|
constructor(runtimeCore: RuntimeCore);
|
|
27
26
|
parse<T extends object = any>(data: T[], parentMeta?: AnyObject): void;
|
|
28
27
|
initSchemas(schemas: AnyObject[]): AnyObject[];
|