@harbor-design/proform 1.3.15 → 1.3.17
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 +12 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Te = Object.defineProperty;
|
|
2
2
|
var ze = (r, e, t) => e in r ? Te(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var u = (r, e, t) => (ze(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { ref as z, readonly as
|
|
4
|
+
import { ref as z, readonly as X, nextTick as O, isRef as F, watch as v, isReactive as j, toRaw as R, reactive as Pe, createVNode as b, mergeProps as U, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as He } from "vue";
|
|
5
5
|
class o {
|
|
6
6
|
static typeChecker(e) {
|
|
7
7
|
return {}.toString.call(e);
|
|
@@ -134,7 +134,7 @@ class Ke {
|
|
|
134
134
|
})), e;
|
|
135
135
|
}
|
|
136
136
|
setup(e) {
|
|
137
|
-
return this.runtimeCore = e, this.readonlyReactiveModel.value =
|
|
137
|
+
return this.runtimeCore = e, this.readonlyReactiveModel.value = X(e.model.value), Object.assign(this.runtimeCore.native, this.formCustomization.native), Object.assign(this.runtimeCore.grid, this.formCustomization.grid), Object.assign(this.runtimeCore.runtime, this.formCustomization.runtime), this.formCustomization.ui && (this.runtimeCore.ui = this.formCustomization.ui), this.formCustomization;
|
|
138
138
|
}
|
|
139
139
|
submit() {
|
|
140
140
|
var i;
|
|
@@ -244,7 +244,7 @@ class Ke {
|
|
|
244
244
|
var e;
|
|
245
245
|
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = P(
|
|
246
246
|
this.runtimeCore.processor.stableModel
|
|
247
|
-
), this.readonlyReactiveModel.value =
|
|
247
|
+
), this.readonlyReactiveModel.value = X(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
class Z {
|
|
@@ -319,8 +319,8 @@ function ft(r) {
|
|
|
319
319
|
var e = we(r);
|
|
320
320
|
return e == at || e == lt || e == ot || e == ut;
|
|
321
321
|
}
|
|
322
|
-
var
|
|
323
|
-
var r = /[^.]+$/.exec(
|
|
322
|
+
var K = Q["__core-js_shared__"], Oe = function() {
|
|
323
|
+
var r = /[^.]+$/.exec(K && K.keys && K.keys.IE_PROTO || "");
|
|
324
324
|
return r ? "Symbol(src)_1." + r : "";
|
|
325
325
|
}();
|
|
326
326
|
function ct(r) {
|
|
@@ -935,10 +935,10 @@ class gr {
|
|
|
935
935
|
});
|
|
936
936
|
u(this, "formRef", z(null));
|
|
937
937
|
u(this, "hydrateEffect", new Z());
|
|
938
|
-
u(this, "native",
|
|
938
|
+
u(this, "native", Pe({}));
|
|
939
939
|
u(this, "grid", {});
|
|
940
940
|
u(this, "runtime", {});
|
|
941
|
-
u(this, "globalNativeFormOverride",
|
|
941
|
+
u(this, "globalNativeFormOverride", Pe({
|
|
942
942
|
props: {
|
|
943
943
|
Form: {},
|
|
944
944
|
FormItem: {}
|
|
@@ -948,7 +948,7 @@ class gr {
|
|
|
948
948
|
FormItem: {}
|
|
949
949
|
}
|
|
950
950
|
}));
|
|
951
|
-
u(this, "shared",
|
|
951
|
+
u(this, "shared", X({}));
|
|
952
952
|
this.setup = e, this.processor = new mr(this);
|
|
953
953
|
const t = this.setup(this);
|
|
954
954
|
if (this.ui = t.ui ?? c.presets.ui, this.runtimeAdapter = new br(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), F(t.schemas))
|
|
@@ -1170,7 +1170,7 @@ class c {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
1172
|
u(c, "presets");
|
|
1173
|
-
function
|
|
1173
|
+
function W({
|
|
1174
1174
|
parentSchema: r,
|
|
1175
1175
|
schema: e,
|
|
1176
1176
|
index: t
|
|
@@ -1180,7 +1180,7 @@ function X({
|
|
|
1180
1180
|
const yr = {
|
|
1181
1181
|
ArcoVue: {
|
|
1182
1182
|
getRuntimeField(r) {
|
|
1183
|
-
const e =
|
|
1183
|
+
const e = W(r);
|
|
1184
1184
|
return o.isFunction(e) ? {
|
|
1185
1185
|
field: e()
|
|
1186
1186
|
} : {
|
|
@@ -1247,7 +1247,7 @@ const yr = {
|
|
|
1247
1247
|
},
|
|
1248
1248
|
NutUI: {
|
|
1249
1249
|
getRuntimeField(r) {
|
|
1250
|
-
const e =
|
|
1250
|
+
const e = W(r);
|
|
1251
1251
|
return o.isFunction(e) ? {
|
|
1252
1252
|
prop: e()
|
|
1253
1253
|
} : {
|
|
@@ -1320,7 +1320,7 @@ const yr = {
|
|
|
1320
1320
|
},
|
|
1321
1321
|
NaiveUI: {
|
|
1322
1322
|
getRuntimeField(r) {
|
|
1323
|
-
const e =
|
|
1323
|
+
const e = W(r);
|
|
1324
1324
|
return o.isFunction(e) ? {
|
|
1325
1325
|
path: e()
|
|
1326
1326
|
} : {
|