@piying/view-vue 1.1.0 → 1.1.2

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.
@@ -1,6 +1,4 @@
1
1
  import { FormBuilder } from '@piying/view-core';
2
- import type { PiResolvedFormlyFieldConfig } from './type/group';
3
2
  import type { VueSchemaHandle } from './vue-schema';
4
3
  export declare class VueFormBuilder extends FormBuilder<VueSchemaHandle> {
5
- afterResolveConfig(rawConfig: VueSchemaHandle, config: PiResolvedFormlyFieldConfig): PiResolvedFormlyFieldConfig;
6
4
  }
@@ -1,6 +1,6 @@
1
- import type { PiResolvedFormlyFieldConfig } from '../type/group';
1
+ import type { PiResolvedViewFieldConfig } from '../type/group';
2
2
  type __VLS_Props = {
3
- fields: PiResolvedFormlyFieldConfig[];
3
+ fields: PiResolvedViewFieldConfig[];
4
4
  };
5
5
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}, {}>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
- import type { PiResolvedFormlyFieldConfig } from './type/group';
1
+ import type { PiResolvedViewFieldConfig } from './type/group';
2
2
  type __VLS_Props = {
3
- field: PiResolvedFormlyFieldConfig;
3
+ field: PiResolvedViewFieldConfig;
4
4
  };
5
5
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}, {}>;
6
6
  export default _default;
package/formly/token.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Injector } from 'static-injector';
2
2
  import type { ComputedRef, InjectionKey } from 'vue';
3
- import type { PiResolvedFormlyFieldConfig } from './type/group';
3
+ import type { PiResolvedViewFieldConfig } from './type/group';
4
4
  export declare const InjectorToken: InjectionKey<Injector>;
5
- export declare const FieldToken: InjectionKey<ComputedRef<PiResolvedFormlyFieldConfig>>;
5
+ export declare const FieldToken: InjectionKey<ComputedRef<PiResolvedViewFieldConfig>>;
@@ -2,7 +2,7 @@ import type { ConfigMergeStrategyObject, VueSchemaHandle } from '../vue-schema';
2
2
  import type { ConfigMergeStrategy, CoreResolvedComponentDefine, PiResolvedCommonViewFieldConfig } from '@piying/view-core';
3
3
  import type { SetOptional } from '@piying/view-core';
4
4
  export interface RawDirectiveOutputs {
5
- [name: string]: (event: any, field: PiResolvedFormlyFieldConfig) => void;
5
+ [name: string]: (event: any, field: PiResolvedViewFieldConfig) => void;
6
6
  }
7
7
  export type RawWrapperDefine = {
8
8
  inputs?: Record<string, any>;
@@ -20,21 +20,21 @@ export interface ComponentFieldConfig {
20
20
  contents?: any[];
21
21
  }
22
22
  export type ResolvedComponentFieldConfig = Omit<ComponentFieldConfig, 'inputs' | 'outputs' | 'directives' | 'wrappers'>;
23
- export type PiDefaultRawFormlyFieldConfig = Pick<VueSchemaHandle, 'inputs' | 'outputs' | 'wrappers' | 'formConfig' | 'renderConfig' | 'props'>;
24
- export type PiResolvedFormlyFieldConfig = PiResolvedCommonViewFieldConfig<() => PiResolvedFormlyFieldConfig, CoreResolvedComponentDefine> & ResolvedComponentFieldConfig & {
23
+ export type PiDefaultRawViewFieldConfig = Pick<VueSchemaHandle, 'inputs' | 'outputs' | 'wrappers' | 'formConfig' | 'renderConfig' | 'props'>;
24
+ export type PiResolvedViewFieldConfig = PiResolvedCommonViewFieldConfig<() => PiResolvedViewFieldConfig, CoreResolvedComponentDefine> & ResolvedComponentFieldConfig & {
25
25
  /** 除了无component的控件,其他情况下都应该有define,group/array会赋值默认 */
26
26
  define?: RawComponentDefine;
27
27
  };
28
28
  export type PiComponentDefaultConfig = {
29
29
  type: any | (() => Promise<any>);
30
- } & Omit<SetOptional<PiDefaultRawFormlyFieldConfig, 'formConfig'>, 'type'>;
31
- export interface PiFormlyConfig {
30
+ } & Omit<SetOptional<PiDefaultRawViewFieldConfig, 'formConfig'>, 'type'>;
31
+ export interface PiViewConfig {
32
32
  types?: Record<string, PiComponentDefaultConfig>;
33
33
  wrappers?: Record<string, {
34
34
  type: any | (() => Promise<any>);
35
35
  inputs?: Record<string, any>;
36
36
  }>;
37
- defaultConfig?: PiDefaultRawFormlyFieldConfig;
37
+ defaultConfig?: PiDefaultRawViewFieldConfig;
38
38
  /** merge 数组/对象会合并 replace 优先自身/组件/全局 */
39
39
  defaultConfigMergeStrategy?: ConfigMergeStrategy | ConfigMergeStrategyObject;
40
40
  }
@@ -0,0 +1,3 @@
1
+ export * from './init-listen';
2
+ export * from './signal-convert';
3
+ export * from './use-control-value-accessor';
@@ -1,5 +1 @@
1
- import { type Injector, type Signal } from 'static-injector';
2
- import type { UnWrapSignal } from '@piying/view-core';
3
- import { type ShallowRef } from 'vue';
4
- export declare function useSignalConvert<T>(value: Signal<T> | undefined, injector: Injector): T extends undefined ? ShallowRef<undefined> : ShallowRef<UnWrapSignal<T>>;
5
- export declare function watchChange<T>(value: () => T | undefined, injector: Injector): import("vue").Ref<any> extends T ? T extends T & import("vue").Ref<any> ? import("@vue/shared").IfAny<T, ShallowRef<T>, T> : ShallowRef<T> : ShallowRef<T>;
1
+ export declare function watchChange<T>(value: () => T | undefined): import("vue").Ref<any> extends T ? T extends T & import("vue").Ref<any> ? import("@vue/shared").IfAny<T, import("vue").ShallowRef<T>, T> : import("vue").ShallowRef<T> : import("vue").ShallowRef<T>;
@@ -0,0 +1,8 @@
1
+ import type { ControlValueAccessor } from '@piying/view-core';
2
+ export declare function useControlValueAccessor(): {
3
+ cva: ControlValueAccessor;
4
+ value: import("vue").Ref<any>;
5
+ disabled: import("vue").Ref<boolean>;
6
+ valueChange: (value: any) => void;
7
+ touchedChange: () => void;
8
+ };
@@ -1,6 +1,6 @@
1
1
  import { CoreSchemaHandle, type ConfigMergeStrategy } from '@piying/view-core';
2
- import type { PiResolvedFormlyFieldConfig } from './type/group';
3
- export declare class VueSchemaHandle extends CoreSchemaHandle<VueSchemaHandle, () => PiResolvedFormlyFieldConfig> {
2
+ import type { PiResolvedViewFieldConfig } from './type/group';
3
+ export declare class VueSchemaHandle extends CoreSchemaHandle<VueSchemaHandle, () => PiResolvedViewFieldConfig> {
4
4
  type?: any;
5
5
  contents?: any[];
6
6
  }
package/index.d.ts CHANGED
@@ -1,3 +1,9 @@
1
1
  import PiyingView from './formly/piying-view.vue';
2
2
  export { PiyingView };
3
3
  export * from '@piying/view-core';
4
+ export * from './formly/util';
5
+ import PiyingFieldTemplate from './formly/field-template.vue';
6
+ export { PiyingFieldTemplate };
7
+ import PiyingViewGroup from './formly/component/group.vue';
8
+ export { PiyingViewGroup };
9
+ export * from './formly/type';
package/index.js CHANGED
@@ -1,151 +1,126 @@
1
- var U = Object.defineProperty;
2
- var q = (r, e, t) => e in r ? U(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var E = (r, e, t) => q(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { shallowRef as F, watchEffect as R, defineComponent as T, inject as G, computed as m, createBlock as y, renderSlot as N, openBlock as c, resolveDynamicComponent as C, mergeProps as $, unref as a, toHandlers as g, withCtx as D, createVNode as z, normalizeProps as L, guardReactiveProps as W, defineAsyncComponent as J, provide as H, createElementBlock as x, createCommentVNode as P, Fragment as S, createTextVNode as K, watch as M } from "vue";
5
- import { CoreSchemaHandle as Q, FormBuilder as X, isFieldControl as Y, convert as Z } from "@piying/view-core";
1
+ var J = Object.defineProperty;
2
+ var K = (n, e, o) => e in n ? J(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o;
3
+ var R = (n, e, o) => K(n, typeof e != "symbol" ? e + "" : e, o);
4
+ import { inject as T, shallowRef as G, watchEffect as O, defineComponent as j, computed as v, createBlock as y, renderSlot as A, openBlock as c, resolveDynamicComponent as V, mergeProps as I, unref as d, toHandlers as b, withCtx as S, createVNode as L, normalizeProps as M, guardReactiveProps as Q, defineAsyncComponent as X, provide as H, ref as x, watch as N, onUnmounted as Y, createElementBlock as D, createCommentVNode as B, Fragment as E, renderList as Z } from "vue";
5
+ import { CoreSchemaHandle as ee, FormBuilder as te, isFieldControl as oe, createViewControlLink as ne, convert as re } from "@piying/view-core";
6
6
  export * from "@piying/view-core";
7
- import { effect as B, createRootInjector as ee, ChangeDetectionSchedulerImpl as te, ChangeDetectionScheduler as oe, createInjector as ne, DestroyRef as le, untracked as re } from "static-injector";
8
- import { deepEqual as se } from "fast-equals";
9
- class ue extends Q {
7
+ import { effect as q, createRootInjector as le, ChangeDetectionSchedulerImpl as ae, ChangeDetectionScheduler as ue, createInjector as se, DestroyRef as ce, untracked as ie } from "static-injector";
8
+ import { deepEqual as de } from "fast-equals";
9
+ class pe extends ee {
10
10
  constructor() {
11
11
  super(...arguments);
12
- E(this, "contents");
12
+ R(this, "contents");
13
13
  }
14
14
  }
15
- class ae extends X {
16
- afterResolveConfig(e, t) {
17
- var n;
18
- const o = e;
19
- return e.type, {
20
- ...t,
21
- contents: (n = o.contents) == null ? void 0 : n.sort((l, u) => l.nodes && u.nodes ? 0 : l.nodes ? -1 : 1)
22
- // define,
23
- };
24
- }
15
+ class fe extends te {
25
16
  }
26
- const A = Symbol(), ie = Symbol();
27
- function f(r, e) {
28
- const t = F(void 0);
29
- return R((o) => {
30
- t.value = r();
31
- const n = B(
17
+ const F = Symbol(), me = Symbol();
18
+ function m(n) {
19
+ const e = T(F), o = G(void 0);
20
+ return O((r) => {
21
+ o.value = n();
22
+ const l = q(
32
23
  () => {
33
- const l = r();
34
- Object.is(t.value, l) || (t.value = l);
24
+ const t = n();
25
+ Object.is(o.value, t) || (o.value = t);
35
26
  },
36
27
  { injector: e }
37
28
  );
38
- o(() => {
39
- n.destroy();
40
- });
41
- }), t;
42
- }
43
- function ce(r) {
44
- const e = F(void 0);
45
- let t = !1, o;
46
- return R((l) => {
47
- let u = !0;
48
- if (o = r(), o && Y(o))
49
- t = !0, e.value = o.modelValueToViewValue$$();
50
- else {
51
- t = !1;
52
- return;
53
- }
54
- const s = B(
55
- () => {
56
- const i = o.modelValueToViewValue$$();
57
- u ? (u = !1, Object.is(e.value, i) || (e.value = i)) : e.value = i;
58
- },
59
- { injector: o.injector }
60
- );
61
- l(() => {
62
- s.destroy();
29
+ r(() => {
30
+ l.destroy();
63
31
  });
64
- }), [e, (l) => {
65
- t && o.setViewValue(l);
66
- }];
32
+ }), o;
67
33
  }
68
- const O = /* @__PURE__ */ T({
34
+ const z = /* @__PURE__ */ j({
69
35
  __name: "wrapper",
70
36
  props: {
71
37
  wrappers: {}
72
38
  },
73
- setup(r) {
74
- const e = G(A), t = r, o = m(() => t.wrappers.slice(1)), n = m(() => t.wrappers[0]), l = f(
75
- () => {
76
- var s, i;
77
- return { ...(s = n.value) == null ? void 0 : s.inputs(), ...(i = n.value) == null ? void 0 : i.attributes() };
78
- },
79
- e
80
- ), u = m(() => {
81
- var s;
82
- return ((s = n.value) == null ? void 0 : s.outputs) ?? {};
39
+ setup(n) {
40
+ const e = n, o = v(() => e.wrappers.slice(1)), r = v(() => e.wrappers[0]), l = m(() => {
41
+ var a, p;
42
+ return { ...(a = r.value) == null ? void 0 : a.inputs(), ...(p = r.value) == null ? void 0 : p.attributes() };
43
+ }), t = v(() => {
44
+ var a;
45
+ return ((a = r.value) == null ? void 0 : a.outputs) ?? {};
83
46
  });
84
- return (s, i) => n.value ? (c(), y(C(n.value.type), $({ key: 0 }, a(l), g(u.value)), {
85
- default: D(() => [
86
- z(O, L(W({ wrappers: o.value })), {
87
- default: D(() => [
88
- N(s.$slots, "default")
47
+ return (a, p) => r.value ? (c(), y(V(r.value.type), I({ key: 0 }, d(l), b(t.value)), {
48
+ default: S(() => [
49
+ L(z, M(Q({ wrappers: o.value })), {
50
+ default: S(() => [
51
+ A(a.$slots, "default")
89
52
  ]),
90
53
  _: 3
91
54
  }, 16)
92
55
  ]),
93
56
  _: 3
94
- }, 16)) : N(s.$slots, "default", { key: 1 });
57
+ }, 16)) : A(a.$slots, "default", { key: 1 });
95
58
  }
96
- }), de = /* @__PURE__ */ T({
59
+ }), U = /* @__PURE__ */ j({
97
60
  __name: "field-template",
98
61
  props: {
99
62
  field: {}
100
63
  },
101
- setup(r) {
102
- const e = r, t = G(A), o = f(() => e.field.inputs(), t), n = f(() => e.field.outputs(), t), l = f(() => e.field.renderConfig(), t), [u, s] = ce(() => e.field.form.control), i = f(() => e.field.attributes(), t), I = m(() => ({ ...o.value, fields: e.field.fieldGroup() })), V = m(() => ({ ...o.value, fields: e.field.fieldArray() })), _ = f(() => e.field.wrappers$$(), t), h = f(() => {
103
- var d, p;
104
- return (p = (d = e.field).fieldGroup) == null ? void 0 : p.call(d);
105
- }, t), w = f(() => {
106
- var d, p;
107
- return (p = (d = e.field).fieldArray) == null ? void 0 : p.call(d);
108
- }, t), j = m(() => ({ ...i.value, ...o.value })), v = m(
64
+ setup(n) {
65
+ const e = n, o = T(F), 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() })), P = v(() => ({ ...r.value, fields: e.field.fieldArray() })), $ = m(() => e.field.wrappers()), g = m(() => {
66
+ var u, s;
67
+ return (s = (u = e.field).fieldGroup) == null ? void 0 : s.call(u);
68
+ }), w = m(() => {
69
+ var u, s;
70
+ return (s = (u = e.field).fieldArray) == null ? void 0 : s.call(u);
71
+ }), h = v(() => ({ ...a.value, ...r.value })), i = v(
109
72
  () => {
110
- var d, p, k;
111
- return typeof ((d = e.field.define) == null ? void 0 : d.type) == "function" ? J((p = e.field.define) == null ? void 0 : p.type) : (k = e.field.define) == null ? void 0 : k.type;
73
+ var u, s, k;
74
+ return typeof ((u = e.field.define) == null ? void 0 : u.type) == "function" ? X((s = e.field.define) == null ? void 0 : s.type) : (k = e.field.define) == null ? void 0 : k.type;
112
75
  }
113
- ), b = m(() => e.field);
114
- return H(ie, b), (d, p) => {
76
+ ), _ = v(() => e.field);
77
+ H(me, _);
78
+ const C = x(null), W = oe(_.value.form.control);
79
+ let f;
80
+ return N(
81
+ C,
82
+ (u) => {
83
+ f == null || f.forEach((s) => s()), W && u && (f = ne(
84
+ () => _.value.form.control,
85
+ u.cva,
86
+ o
87
+ ));
88
+ },
89
+ { immediate: !0 }
90
+ ), Y(() => {
91
+ f == null || f.forEach((u) => u()), f = [];
92
+ }), (u, s) => {
115
93
  var k;
116
- return a(l).hidden ? P("", !0) : (c(), x(S, { key: 0 }, [
117
- (k = b.value.define) != null && k.type ? (c(), y(O, {
94
+ return d(t).hidden ? B("", !0) : (c(), D(E, { key: 0 }, [
95
+ (k = _.value.define) != null && k.type ? (c(), y(z, {
118
96
  key: 0,
119
- wrappers: a(_)
97
+ wrappers: d($)
120
98
  }, {
121
- default: D(() => [
122
- a(h) ? (c(), y(C(v.value), $({ key: 0 }, I.value, g(a(n))), null, 16)) : a(w) ? (c(), y(C(v.value), $({ key: 1 }, V.value, g(a(n))), null, 16)) : (c(), x(S, { key: 2 }, [
123
- b.value.form.control ? (c(), x(S, { key: 0 }, [
124
- K(" 111 "),
125
- (c(), y(C(v.value), $(j.value, g(a(n)), {
126
- modelValue: a(u),
127
- "onUpdate:modelValue": a(s)
128
- }), null, 16, ["modelValue", "onUpdate:modelValue"]))
129
- ], 64)) : (c(), y(C(v.value), $({ key: 1 }, j.value, g(a(n))), null, 16))
99
+ default: S(() => [
100
+ d(g) ? (c(), y(V(i.value), I({ key: 0 }, p.value, b(d(l))), null, 16)) : d(w) ? (c(), y(V(i.value), I({ key: 1 }, P.value, b(d(l))), null, 16)) : (c(), D(E, { key: 2 }, [
101
+ _.value.form.control ? (c(), y(V(i.value), I({ key: 0 }, h.value, b(d(l)), {
102
+ ref_key: "childRef",
103
+ ref: C
104
+ }), null, 16)) : (c(), y(V(i.value), I({ key: 1 }, h.value, b(d(l))), null, 16))
130
105
  ], 64))
131
106
  ]),
132
107
  _: 1
133
- }, 8, ["wrappers"])) : P("", !0)
108
+ }, 8, ["wrappers"])) : B("", !0)
134
109
  ], 64));
135
110
  };
136
111
  }
137
112
  });
138
- function pe(r, e, t, o) {
139
- let n = !0;
140
- return B(
113
+ function ve(n, e, o, r) {
114
+ let l = !0;
115
+ return q(
141
116
  () => {
142
- const l = e.value$$();
143
- n ? (se(l, r) || o(l), n = !1) : o(l);
117
+ const t = e.value$$();
118
+ l ? (de(t, n) || r(t), l = !1) : r(t);
144
119
  },
145
- { injector: t }
120
+ { injector: o }
146
121
  );
147
122
  }
148
- const _e = /* @__PURE__ */ T({
123
+ const Ce = /* @__PURE__ */ j({
149
124
  __name: "piying-view",
150
125
  props: {
151
126
  schema: {},
@@ -153,60 +128,106 @@ const _e = /* @__PURE__ */ T({
153
128
  options: {}
154
129
  },
155
130
  emits: ["update:modelValue"],
156
- setup(r, { emit: e }) {
157
- const t = r, o = e, n = ee({
131
+ setup(n, { emit: e }) {
132
+ const o = n, r = e, l = le({
158
133
  providers: [
159
134
  {
160
- provide: oe,
161
- useClass: te
135
+ provide: ue,
136
+ useClass: ae
162
137
  }
163
138
  ]
164
139
  });
165
- H(A, n);
166
- const l = F(void 0);
167
- return M(
168
- () => [t.schema, t.options],
169
- ([u, s], i, I) => {
170
- const V = ne({ providers: [], parent: n }), _ = Z(u, {
171
- handle: ue,
172
- builder: ae,
173
- injector: V,
174
- registerOnDestroy: (w) => {
175
- V.get(le).onDestroy(() => {
176
- w();
140
+ H(F, l);
141
+ const t = G(void 0);
142
+ return N(
143
+ () => [o.schema, o.options],
144
+ ([a, p], P, $) => {
145
+ const g = se({ providers: [], parent: l }), w = re(a, {
146
+ handle: pe,
147
+ builder: fe,
148
+ injector: g,
149
+ registerOnDestroy: (i) => {
150
+ g.get(ce).onDestroy(() => {
151
+ i();
177
152
  });
178
153
  },
179
- ...s
154
+ ...p
180
155
  });
181
- l.value = _;
156
+ t.value = w;
182
157
  let h;
183
- if (_.form.control) {
184
- const w = t.modelValue;
185
- h = pe(
186
- typeof w < "u" ? w : void 0,
187
- _.form.control,
188
- V,
189
- (j) => {
190
- re(() => {
191
- var v;
192
- (v = _.form.control) != null && v.valueNoError$$() && o("update:modelValue", j);
158
+ if (w.form.control) {
159
+ const i = o.modelValue;
160
+ h = ve(
161
+ typeof i < "u" ? i : void 0,
162
+ w.form.control,
163
+ g,
164
+ (_) => {
165
+ ie(() => {
166
+ var C;
167
+ (C = w.form.control) != null && C.valueNoError$$() && r("update:modelValue", _);
193
168
  });
194
169
  }
195
170
  );
196
171
  }
197
- I(() => {
198
- V.destroy(), h == null || h.destroy();
172
+ $(() => {
173
+ g.destroy(), h == null || h.destroy();
199
174
  });
200
175
  },
201
176
  { immediate: !0 }
202
- ), R(() => {
203
- var u;
204
- (u = l.value.form.control) == null || u.updateValue(t.modelValue);
205
- }), (u, s) => (c(), y(de, {
206
- field: l.value
177
+ ), O(() => {
178
+ var a;
179
+ (a = t.value.form.control) == null || a.updateValue(o.modelValue);
180
+ }), (a, p) => (c(), y(U, {
181
+ field: t.value
207
182
  }, null, 8, ["field"]));
208
183
  }
209
184
  });
185
+ function ke() {
186
+ const n = x(), e = x(!1);
187
+ let o, r;
188
+ return {
189
+ cva: {
190
+ writeValue(t) {
191
+ n.value = t;
192
+ },
193
+ registerOnChange(t) {
194
+ o = t;
195
+ },
196
+ registerOnTouched(t) {
197
+ r = t;
198
+ },
199
+ setDisabledState(t) {
200
+ e.value = t;
201
+ }
202
+ },
203
+ value: n,
204
+ disabled: e,
205
+ valueChange: (t) => {
206
+ o(t);
207
+ },
208
+ touchedChange: () => {
209
+ r();
210
+ }
211
+ };
212
+ }
213
+ const Ve = /* @__PURE__ */ j({
214
+ __name: "group",
215
+ props: {
216
+ fields: {}
217
+ },
218
+ setup(n) {
219
+ const e = n;
220
+ return (o, r) => (c(!0), D(E, null, Z(e.fields, (l, t) => (c(), y(U, {
221
+ key: t,
222
+ field: l
223
+ }, null, 8, ["field"]))), 128));
224
+ }
225
+ });
210
226
  export {
211
- _e as PiyingView
227
+ U as PiyingFieldTemplate,
228
+ Ce as PiyingView,
229
+ Ve as PiyingViewGroup,
230
+ ve as initListen,
231
+ ke as useControlValueAccessor,
232
+ m as watchChange
212
233
  };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@piying/view-vue",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@piying/view-core": "^0.6.5",
6
+ "@piying/view-core": "^0.6.22",
7
7
  "fast-equals": "^5.2.2",
8
8
  "rfdc": "^1.4.1",
9
9
  "static-injector": "^6.1.2"
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- import { type AbstractControl } from '@piying/view-core';
2
- export declare function useFieldConnect(controlFn: () => AbstractControl | undefined): readonly [import("vue").ShallowRef<any>, (value: any) => void];