@piying/view-angular-core 1.7.2 → 1.7.3
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/adapter/index.d.ts +52 -0
- package/fesm2022/piying-view-angular-core-adapter.mjs +1183 -0
- package/fesm2022/piying-view-angular-core-adapter.mjs.map +1 -0
- package/fesm2022/piying-view-angular-core.mjs +56 -57
- package/fesm2022/piying-view-angular-core.mjs.map +1 -1
- package/index.d.ts +4 -3
- package/package.json +5 -1
package/index.d.ts
CHANGED
|
@@ -468,6 +468,7 @@ type AnyCoreSchemaHandle = CoreSchemaHandle<any, () => _PiResolvedCommonViewFiel
|
|
|
468
468
|
declare const rawConfig: <TInput>(value: (field: AnyCoreSchemaHandle, context?: any) => void, workOn?: "afterSchemaType") => _piying_valibot_visit.RawConfigAction<"viewRawConfig", TInput, AnyCoreSchemaHandle>;
|
|
469
469
|
|
|
470
470
|
declare function setComponent<T>(type: any): _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_angular_core.AnyCoreSchemaHandle>;
|
|
471
|
+
declare function findComponent<T>(field: _PiResolvedCommonViewFieldConfig, type: any): any;
|
|
471
472
|
|
|
472
473
|
declare function setInputs<T>(inputs: CoreRawViewInputs): _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_angular_core.AnyCoreSchemaHandle>;
|
|
473
474
|
declare function patchInputs<T>(inputs: CoreRawViewInputs): _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_angular_core.AnyCoreSchemaHandle>;
|
|
@@ -619,7 +620,7 @@ type CoreRawComponentDefine = {
|
|
|
619
620
|
outputs?: CoreRawViewOutputs;
|
|
620
621
|
};
|
|
621
622
|
/** 解析后define使用 */
|
|
622
|
-
type CoreResolvedComponentDefine = SetWrapper$<CoreRawComponentDefine, 'attributes' | 'inputs'>;
|
|
623
|
+
type CoreResolvedComponentDefine = SetWrapper$<CoreRawComponentDefine, 'attributes' | 'inputs' | 'outputs'>;
|
|
623
624
|
interface HookConfig<RESOLVED_FIELD> {
|
|
624
625
|
/** 配置刚被解析 */
|
|
625
626
|
fieldResolved?: (field: RESOLVED_FIELD) => void;
|
|
@@ -655,7 +656,7 @@ type PiResolvedCommonViewFieldConfig<SelfResolvedFn extends () => any, Define> =
|
|
|
655
656
|
set: (value: any, index?: any) => boolean;
|
|
656
657
|
remove: (index: any) => void;
|
|
657
658
|
};
|
|
658
|
-
readonly define?: Define
|
|
659
|
+
readonly define?: WritableSignal<Define>;
|
|
659
660
|
wrappers: WritableSignal<CoreResolvedWrapperConfig[]>;
|
|
660
661
|
} & Readonly<Pick<AnyCoreSchemaHandle, 'priority' | 'alias'>> & Readonly<Wrapper$<Required<Pick<AnyCoreSchemaHandle, 'inputs' | 'outputs' | 'attributes' | 'formConfig' | 'renderConfig'>>>>;
|
|
661
662
|
type _PiResolvedCommonViewFieldConfig = PiResolvedCommonViewFieldConfig<() => _PiResolvedCommonViewFieldConfig, CoreResolvedComponentDefine>;
|
|
@@ -751,5 +752,5 @@ declare const PI_CONTEXT_TOKEN: InjectionToken<any>;
|
|
|
751
752
|
declare function isGroup(schema: AnyCoreSchemaHandle): boolean | undefined;
|
|
752
753
|
declare function isArray(schema: AnyCoreSchemaHandle): boolean;
|
|
753
754
|
|
|
754
|
-
export { AbstractControl, CoreSchemaHandle, FieldArray, FieldControl, FieldGroup, FieldLogicGroup, FormBuilder, INVALID, NFCSchema, PENDING, PI_CONTEXT_TOKEN, PI_VIEW_CONFIG_TOKEN, SortedArray, UpdateType, VALID, arrayStartsWith, asyncInputMerge, clone, componentClass, controlStatusList, convert, createViewControlLink, disableWhen, effectListen, fieldControlStatusClass, formConfig, getDeepError, getLazyImport, hideWhen, initListen, isArray, isFieldArray, isFieldControl, isFieldGroup, isFieldLogicGroup, isGroup, isLazyMark, layout, lazyMark, mergeHooks, mergeHooksFn, mergeOutputFn, mergeOutputs, nonFieldControl, outputChange, outputChangeFn, patchAsyncAttributes, patchAsyncClass, patchAsyncFn, patchAsyncInputs, patchAsyncProps, patchAsyncWrapper, patchAttributes, patchHooks, patchInputs, patchOutputs, patchProps, patchWrappers, rawConfig, removeAttributes, removeHooks, removeInputs, removeOutputs, removeProps, removeWrappers, renderConfig, setAlias, setAttributes, setComponent, setHooks, setInputs, setOutputs, setProps, setWrappers, toArray, toObservable, topClass, unWrapSignal, valueChange, valueChangeFn };
|
|
755
|
+
export { AbstractControl, CoreSchemaHandle, FieldArray, FieldControl, FieldGroup, FieldLogicGroup, FormBuilder, INVALID, NFCSchema, PENDING, PI_CONTEXT_TOKEN, PI_VIEW_CONFIG_TOKEN, SortedArray, UpdateType, VALID, arrayStartsWith, asyncInputMerge, clone, componentClass, controlStatusList, convert, createViewControlLink, disableWhen, effectListen, fieldControlStatusClass, findComponent, formConfig, getDeepError, getLazyImport, hideWhen, initListen, isArray, isFieldArray, isFieldControl, isFieldGroup, isFieldLogicGroup, isGroup, isLazyMark, layout, lazyMark, mergeHooks, mergeHooksFn, mergeOutputFn, mergeOutputs, nonFieldControl, outputChange, outputChangeFn, patchAsyncAttributes, patchAsyncClass, patchAsyncFn, patchAsyncInputs, patchAsyncProps, patchAsyncWrapper, patchAttributes, patchHooks, patchInputs, patchOutputs, patchProps, patchWrappers, rawConfig, removeAttributes, removeHooks, removeInputs, removeOutputs, removeProps, removeWrappers, renderConfig, setAlias, setAttributes, setComponent, setHooks, setInputs, setOutputs, setProps, setWrappers, toArray, toObservable, topClass, unWrapSignal, valueChange, valueChangeFn };
|
|
755
756
|
export type { AbstractControlParams, AnyCoreSchemaHandle, ArraryIterable, ArrayDeletionMode, AsyncCoreRawWrapperConfig, AsyncProperty, AsyncResult, AsyncValidatorFn, BuildArrayItem, BuildGroupItem, BuildRootInputItem, BuildRootItem, ConfigMergeStrategy, ControlValueAccessor, CoreRawComponentDefine, CoreRawProps, CoreRawViewAttributes, CoreRawViewInputs, CoreRawViewOutputs, CoreRawWrapperConfig, CoreResolvedComponentDefine, CoreResolvedWrapperConfig, CoreWrapperConfig1, DefaultConfigKey, DisableWhenOption, DisabledValueStrategy, EventChangeFn, FieldArrayConfig$, FieldFormConfig, FieldFormConfig$, FieldGroupConfig$, FieldLogicGroupConfig$, FieldRenderConfig, FieldTransformerConfig, FormBuilderOptions, FormHooks, HideWhenOption, HookConfig, HooksConfig, KeyPath, LayoutAction, LazyImport, LazyMarkType, LogicType, MergeHooksConfig, NonFieldControlAction, PiCommonConfig, PiCommonDefaultConfig, PiResolvedCommonViewFieldConfig, QueryPath, RawKeyPath, SetOptional, SetReadonly, SetWrapper$, SetWrapper$$, SignalInputValue, ToObservableOptions, UnWrapSignal, VALID_STATUS, ValidationErrors, ValidatorFn, ValueChangFnOptions, ValueChangeFn, Wrapper$, Writeable, _PiResolvedCommonViewFieldConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piying/view-angular-core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"homepage": "https://piying-org.github.io/website/docs/client/intro",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/piying-org/piying-view"
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"types": "./index.d.ts",
|
|
52
52
|
"default": "./fesm2022/piying-view-angular-core.mjs"
|
|
53
53
|
},
|
|
54
|
+
"./adapter": {
|
|
55
|
+
"types": "./adapter/index.d.ts",
|
|
56
|
+
"default": "./fesm2022/piying-view-angular-core-adapter.mjs"
|
|
57
|
+
},
|
|
54
58
|
"./test": {
|
|
55
59
|
"types": "./test/index.d.ts",
|
|
56
60
|
"default": "./fesm2022/piying-view-angular-core-test.mjs"
|