@harbor-design/proform 1.1.25 → 1.1.27
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 +17 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (r, e, t) => (
|
|
4
|
-
import { isRef as x, watch as I, isReactive as z, toRaw as j, nextTick as w, ref as q, reactive as
|
|
1
|
+
var re = Object.defineProperty;
|
|
2
|
+
var ie = (r, e, t) => e in r ? re(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var a = (r, e, t) => (ie(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { isRef as x, watch as I, isReactive as z, toRaw as j, nextTick as w, ref as q, reactive as oe, createVNode as p, mergeProps as R, withDirectives as ne, vShow as le, createTextVNode as ae, isVNode as ue, defineComponent as ce } from "vue";
|
|
5
5
|
class l {
|
|
6
6
|
static typeChecker(e) {
|
|
7
7
|
return {}.toString.call(e);
|
|
@@ -469,7 +469,7 @@ class me {
|
|
|
469
469
|
});
|
|
470
470
|
a(this, "formRef", q(null));
|
|
471
471
|
a(this, "hydrateEffect", new N());
|
|
472
|
-
a(this, "native",
|
|
472
|
+
a(this, "native", oe({}));
|
|
473
473
|
a(this, "grid", {});
|
|
474
474
|
a(this, "runtime", {});
|
|
475
475
|
a(this, "globalNativeFormOverride", {
|
|
@@ -529,29 +529,31 @@ class me {
|
|
|
529
529
|
y.toLowerCase().includes(Y.toLowerCase()) && (E = C[Y]);
|
|
530
530
|
}), v = `${E}${h}`);
|
|
531
531
|
}
|
|
532
|
-
const
|
|
532
|
+
const Z = this.runtimeAdapter.getRuntimeRequired({
|
|
533
533
|
...e,
|
|
534
534
|
label: h
|
|
535
|
-
}),
|
|
535
|
+
}), A = F.getItemContainer(this), ee = F.getFormItemContainer(this), te = this, se = e.componentSlots;
|
|
536
536
|
return p("div", {
|
|
537
537
|
style: u
|
|
538
|
-
}, [p(
|
|
538
|
+
}, [p(A, {
|
|
539
|
+
show: P
|
|
540
|
+
}, {
|
|
539
541
|
default() {
|
|
540
|
-
return
|
|
542
|
+
return p(ee, R(c, {
|
|
541
543
|
label: `${h ? `${h}:` : ""}`
|
|
542
|
-
}, d,
|
|
544
|
+
}, d, Z), {
|
|
543
545
|
default() {
|
|
544
|
-
return
|
|
546
|
+
return te.runtimeAdapter.formComponentRenderer({
|
|
545
547
|
Component: o,
|
|
546
548
|
schema: e,
|
|
547
549
|
baseModel: s,
|
|
548
550
|
placeholder: v,
|
|
549
|
-
componentSlots:
|
|
551
|
+
componentSlots: se,
|
|
550
552
|
props: O
|
|
551
553
|
});
|
|
552
554
|
},
|
|
553
555
|
...n
|
|
554
|
-
})
|
|
556
|
+
});
|
|
555
557
|
}
|
|
556
558
|
})]);
|
|
557
559
|
}
|
|
@@ -605,9 +607,9 @@ class me {
|
|
|
605
607
|
} = {}) {
|
|
606
608
|
var y;
|
|
607
609
|
const d = c ?? p("button", null, null);
|
|
608
|
-
return
|
|
610
|
+
return ne(p(d, {
|
|
609
611
|
onClick: () => s.deleteListItem(e, u)
|
|
610
|
-
}, null), [[
|
|
612
|
+
}, null), [[le, ((y = s.model.value[e.field]) == null ? void 0 : y.length) > 1]]);
|
|
611
613
|
}
|
|
612
614
|
}));
|
|
613
615
|
},
|