@okyiww/form 0.0.26 → 0.0.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.
@@ -5,5 +5,8 @@ export type DisplayEntry = {
5
5
  label: string | string[];
6
6
  value: any;
7
7
  };
8
+ export type DisplayValueProvider = {
9
+ getDisplayValue?: () => DisplayEntry | DisplayEntry[] | null | undefined;
10
+ };
8
11
  export declare function buildLabelModeConfig(schemas: any[], config?: Record<string, LabelMode>): Record<string, LabelMode>;
9
- export declare function collectDisplayValues(parsedSchemas: ParsedSchemas, model: Record<string, any>, adapter: CustomAdapter, labelModeConfig?: Record<string, LabelMode>): Record<string, any>;
12
+ export declare function collectDisplayValues(parsedSchemas: ParsedSchemas, model: Record<string, any>, adapter: CustomAdapter, labelModeConfig?: Record<string, LabelMode>, refs?: Map<string, any>): Record<string, any>;
@@ -2,5 +2,6 @@ export * from './defineFormSetup';
2
2
  export * from './defineFormSchema';
3
3
  export * from './initForm';
4
4
  export * from './useForm';
5
+ export * from './useFormDisplayValue';
5
6
  export * from './raw';
6
7
  export * from './once';
@@ -0,0 +1,4 @@
1
+ import { Ref } from 'vue';
2
+ type ExposeFn = (exposed: Record<string, unknown>) => void;
3
+ export declare function useFormDisplayValue(modelValue: Ref<any> | (() => any), getLabel: () => string | string[] | null | undefined, expose: ExposeFn): void;
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okyiww/form",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",