@piying/view-vue 1.1.4 → 1.1.6
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/formly/type/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/index.js +11 -10
- package/package.json +1 -1
package/formly/type/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './group';
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import PiyingView from './formly/piying-view.vue';
|
|
2
2
|
export { PiyingView };
|
|
3
|
-
export * from '@piying/view-core';
|
|
4
3
|
export * from './formly/util';
|
|
5
4
|
import PiyingFieldTemplate from './formly/field-template.vue';
|
|
6
5
|
export { PiyingFieldTemplate };
|
|
7
6
|
import PiyingViewGroup from './formly/component/group.vue';
|
|
8
7
|
export { PiyingViewGroup };
|
|
9
8
|
export * from './formly/type';
|
|
9
|
+
export * from './formly/token';
|
package/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
var L = Object.defineProperty;
|
|
2
2
|
var U = (n, e, o) => e in n ? L(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o;
|
|
3
3
|
var F = (n, e, o) => U(n, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { inject as B, shallowRef as O, watchEffect as G, defineComponent as j, computed as v, createBlock as y, renderSlot as T, openBlock as i, resolveDynamicComponent as k, mergeProps as I, unref as d, toHandlers as b, withCtx as $, createVNode as J, normalizeProps as M, guardReactiveProps as Q, defineAsyncComponent as X, provide as N, ref as D, watch as H, onUnmounted as Y, createElementBlock as S, createCommentVNode as A, Fragment as
|
|
4
|
+
import { inject as B, shallowRef as O, watchEffect as G, defineComponent as j, computed as v, createBlock as y, renderSlot as T, openBlock as i, resolveDynamicComponent as k, mergeProps as I, unref as d, toHandlers as b, withCtx as $, createVNode as J, normalizeProps as M, guardReactiveProps as Q, defineAsyncComponent as X, provide as N, ref as D, watch as H, onUnmounted as Y, createElementBlock as S, createCommentVNode as A, Fragment as P, renderList as Z } from "vue";
|
|
5
5
|
import { CoreSchemaHandle as ee, FormBuilder as te, isFieldControl as oe, createViewControlLink as ne, convert as re } from "@piying/view-core";
|
|
6
|
-
export * from "@piying/view-core";
|
|
7
6
|
import { effect as W, createRootInjector as le, ChangeDetectionSchedulerImpl as ae, ChangeDetectionScheduler as ue, createInjector as se, DestroyRef as ie, untracked as ce } from "static-injector";
|
|
8
7
|
import { deepEqual as de } from "fast-equals";
|
|
9
8
|
class pe extends ee {
|
|
@@ -14,9 +13,9 @@ class pe extends ee {
|
|
|
14
13
|
}
|
|
15
14
|
class fe extends te {
|
|
16
15
|
}
|
|
17
|
-
const
|
|
16
|
+
const R = Symbol(), me = Symbol();
|
|
18
17
|
function m(n) {
|
|
19
|
-
const e = B(
|
|
18
|
+
const e = B(R), o = O(void 0);
|
|
20
19
|
return G((r) => {
|
|
21
20
|
o.value = n();
|
|
22
21
|
const l = W(
|
|
@@ -62,7 +61,7 @@ const q = /* @__PURE__ */ j({
|
|
|
62
61
|
field: {}
|
|
63
62
|
},
|
|
64
63
|
setup(n) {
|
|
65
|
-
const e = n, o = B(
|
|
64
|
+
const e = n, o = B(R), r = m(() => e.field.inputs()), l = m(() => e.field.outputs()), t = m(() => e.field.renderConfig()), a = m(() => e.field.attributes()), p = v(() => ({ ...r.value, fields: e.field.fieldGroup() })), x = v(() => ({ ...r.value, fields: e.field.fieldArray() })), E = m(() => e.field.wrappers()), g = m(() => {
|
|
66
65
|
var u, s;
|
|
67
66
|
return (s = (u = e.field).fieldGroup) == null ? void 0 : s.call(u);
|
|
68
67
|
}), w = m(() => {
|
|
@@ -91,13 +90,13 @@ const q = /* @__PURE__ */ j({
|
|
|
91
90
|
f == null || f.forEach((u) => u()), f = [];
|
|
92
91
|
}), (u, s) => {
|
|
93
92
|
var V;
|
|
94
|
-
return d(t).hidden ? A("", !0) : (i(), S(
|
|
93
|
+
return d(t).hidden ? A("", !0) : (i(), S(P, { key: 0 }, [
|
|
95
94
|
(V = h.value.define) != null && V.type ? (i(), y(q, {
|
|
96
95
|
key: 0,
|
|
97
96
|
wrappers: d(E)
|
|
98
97
|
}, {
|
|
99
98
|
default: $(() => [
|
|
100
|
-
d(g) ? (i(), y(k(c.value), I({ key: 0 }, p.value, b(d(l))), null, 16)) : d(w) ? (i(), y(k(c.value), I({ key: 1 },
|
|
99
|
+
d(g) ? (i(), y(k(c.value), I({ key: 0 }, p.value, b(d(l))), null, 16)) : d(w) ? (i(), y(k(c.value), I({ key: 1 }, x.value, b(d(l))), null, 16)) : (i(), S(P, { key: 2 }, [
|
|
101
100
|
h.value.form.control ? (i(), y(k(c.value), I({ key: 0 }, _.value, b(d(l)), {
|
|
102
101
|
ref_key: "childRef",
|
|
103
102
|
ref: C
|
|
@@ -137,11 +136,11 @@ const Ce = /* @__PURE__ */ j({
|
|
|
137
136
|
}
|
|
138
137
|
]
|
|
139
138
|
});
|
|
140
|
-
N(
|
|
139
|
+
N(R, l);
|
|
141
140
|
const t = O(void 0);
|
|
142
141
|
return H(
|
|
143
142
|
() => [o.schema, o.options],
|
|
144
|
-
([a, p],
|
|
143
|
+
([a, p], x, E) => {
|
|
145
144
|
const g = se({ providers: [], parent: l }), w = re(a, {
|
|
146
145
|
handle: pe,
|
|
147
146
|
builder: fe,
|
|
@@ -217,13 +216,15 @@ const ke = /* @__PURE__ */ j({
|
|
|
217
216
|
},
|
|
218
217
|
setup(n) {
|
|
219
218
|
const e = n;
|
|
220
|
-
return (o, r) => (i(!0), S(
|
|
219
|
+
return (o, r) => (i(!0), S(P, null, Z(e.fields, (l, t) => (i(), y(z, {
|
|
221
220
|
key: t,
|
|
222
221
|
field: l
|
|
223
222
|
}, null, 8, ["field"]))), 128));
|
|
224
223
|
}
|
|
225
224
|
});
|
|
226
225
|
export {
|
|
226
|
+
R as InjectorToken,
|
|
227
|
+
me as PI_VIEW_FIELD_TOKEN,
|
|
227
228
|
z as PiyingFieldTemplate,
|
|
228
229
|
Ce as PiyingView,
|
|
229
230
|
ke as PiyingViewGroup,
|