@piying/view-core 2.8.0 → 2.8.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.
- package/fesm2022/piying-view-core.mjs +66 -2
- package/fesm2022/piying-view-core.mjs.map +1 -1
- package/index.d.ts +11 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -795,6 +795,10 @@ declare const actions: {
|
|
|
795
795
|
patchAsync: <T>(dataObj: Record<string, _piying_view_core.AsyncProperty<any>>) => _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_core.AnyCoreSchemaHandle>;
|
|
796
796
|
remove: <T>(list: string[]) => _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_core.AnyCoreSchemaHandle>;
|
|
797
797
|
mapAsync: <T>(fn: (field: _piying_view_core._PiResolvedCommonViewFieldConfig) => (value: any) => any) => _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_core.AnyCoreSchemaHandle>;
|
|
798
|
+
top: {
|
|
799
|
+
set: <T>(value: any) => _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_core.AnyCoreSchemaHandle>;
|
|
800
|
+
patch: <T>(value: any) => _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_core.AnyCoreSchemaHandle>;
|
|
801
|
+
};
|
|
798
802
|
};
|
|
799
803
|
events: {
|
|
800
804
|
patch: <T>(value: Record<string, (event: Event) => any>) => _piying_valibot_visit.RawConfigAction<"viewRawConfig", T, _piying_view_core.AnyCoreSchemaHandle>;
|
|
@@ -825,8 +829,13 @@ declare function convert<RESULT extends Omit<PiResolvedCommonViewFieldConfig<any
|
|
|
825
829
|
fieldGlobalConfig?: PiCommonConfig;
|
|
826
830
|
}): RESULT;
|
|
827
831
|
|
|
828
|
-
/** NonFieldControl
|
|
832
|
+
/** NonFieldControl
|
|
833
|
+
* 建议使用 nfcComponent => v.pipe(NFCSchema,setComponent(xxx))
|
|
834
|
+
*/
|
|
829
835
|
declare const NFCSchema: v.OptionalSchema<v.VoidSchema<undefined>, undefined>;
|
|
836
|
+
declare function nfcComponent<D>(input: D): v.SchemaWithPipe<readonly [v.OptionalSchema<v.VoidSchema<undefined>, undefined>, D extends string ? _piying_valibot_visit.DefineTypeAction<undefined> : _piying_valibot_visit.RawConfigAction<"viewRawConfig", undefined, _piying_view_core.AnyCoreSchemaHandle> & {
|
|
837
|
+
__type: D;
|
|
838
|
+
}]>;
|
|
830
839
|
|
|
831
840
|
interface FieldRenderConfig {
|
|
832
841
|
hidden?: boolean;
|
|
@@ -927,5 +936,5 @@ declare function isArray(schema: AnyCoreSchemaHandle): boolean;
|
|
|
927
936
|
|
|
928
937
|
declare function findError<K extends string>(list: ValidationErrors2[] | undefined, key: K): (K extends ValidationValibotError2['kind'] ? ValidationValibotError2 : K extends ValidationErrorError2['kind'] ? ValidationErrorError2 : ValidationCommonError2) | undefined;
|
|
929
938
|
|
|
930
|
-
export { AbstractControl, CoreSchemaHandle, CustomDataSymbol, FieldArray, FieldControl, FieldGroup, FieldLogicGroup, FormBuilder, INVALID, InitPendingValue, NFCSchema, PENDING, PI_CONTEXT_TOKEN, PI_VIEW_CONFIG_TOKEN, PI_VIEW_FIELD_TOKEN, SortedArray, UpdateType, VALID, actions, arrayStartsWith, asyncMergeOutputs, asyncObjectSignal, clone, combineSignal, controlStatusList, convert, createViewControlLink, disableWhen, effectListen, errorSummary, fieldControlStatusClass, findComponent, findError, formConfig, getDeepError, getLazyImport, hideWhen, initListen, isArray, isFieldArray, isFieldControl, isFieldGroup, isFieldLogicGroup, isGroup, isLazyMark, layout, lazyMark, mergeHooks, mergeHooksFn, mergeOutputFn, mergeOutputs, nonFieldControl, observableSignal, outputChange, outputChangeFn, patchHooks, rawConfig, removeHooks, renderConfig, setAlias, setComponent, setHooks, toArray, toObservable, valueChange, valueChangeFn, changeProviders as ɵchangeProviders, classAction as ɵclassAction, patchProviders as ɵpatchProviders, setProviders as ɵsetProviders, wrappers as ɵwrappers };
|
|
939
|
+
export { AbstractControl, CoreSchemaHandle, CustomDataSymbol, FieldArray, FieldControl, FieldGroup, FieldLogicGroup, FormBuilder, INVALID, InitPendingValue, NFCSchema, PENDING, PI_CONTEXT_TOKEN, PI_VIEW_CONFIG_TOKEN, PI_VIEW_FIELD_TOKEN, SortedArray, UpdateType, VALID, actions, arrayStartsWith, asyncMergeOutputs, asyncObjectSignal, clone, combineSignal, controlStatusList, convert, createViewControlLink, disableWhen, effectListen, errorSummary, fieldControlStatusClass, findComponent, findError, formConfig, getDeepError, getLazyImport, hideWhen, initListen, isArray, isFieldArray, isFieldControl, isFieldGroup, isFieldLogicGroup, isGroup, isLazyMark, layout, lazyMark, mergeHooks, mergeHooksFn, mergeOutputFn, mergeOutputs, nfcComponent, nonFieldControl, observableSignal, outputChange, outputChangeFn, patchHooks, rawConfig, removeHooks, renderConfig, setAlias, setComponent, setHooks, toArray, toObservable, valueChange, valueChangeFn, changeProviders as ɵchangeProviders, classAction as ɵclassAction, patchProviders as ɵpatchProviders, setProviders as ɵsetProviders, wrappers as ɵwrappers };
|
|
931
940
|
export type { AbstractControlParams, AnyCoreSchemaHandle, ArraryIterable, ArrayDeletionMode, AsyncCallback, AsyncObjectSignal, AsyncProperty, AsyncValidatorFn, BuildArrayItem, BuildGroupItem, BuildRootInputItem, BuildRootItem, CombineSignal, ConfigAction, ControlValueAccessor, CoreResolvedComponentDefine, CoreWrapperConfig, DisableWhenOption, DisabledValueStrategy, ErrorSummary, EventChangeFn, FieldArrayConfig$, FieldFormConfig, FieldFormConfig$, FieldGroupConfig$, FieldLogicGroupConfig$, FieldRenderConfig, FieldTransformerConfig, FormBuilderOptions, FormHooks, GetTypeConfig, GetWrapperConfig, HideWhenOption, HookConfig, HooksConfig, InjectorProvider, KeyPath, LayoutAction, LazyImport, LazyMarkType, LogicType, MergeHooksConfig, NonFieldControlAction, ObservableSignal, PiCommonConfig, PiResolvedCommonViewFieldConfig, PiTypeConfig, PiWrapperConfig, QueryPath, RawCoreWrapperConfig, RawKeyPath, SetOptional, SetReadonly, SetUnWrapper$, SetWrapper$, SetWrapper$$, SignalInputValue, ToObservableOptions, UnWrapSignal, UnWrapper$, VALID_STATUS, ValidationCommonError2, ValidationDescendantError2, ValidationErrorError2, ValidationErrors2, ValidationErrorsLegacy, ValidationValibotError2, ValidatorFn, ValueChangFnOptions, ValueChangeFn, ViewAttributes, ViewEvents, ViewInputs, ViewOutputs, ViewProps, ViewSlots, Wrapper$, Writeable, _PiResolvedCommonViewFieldConfig };
|