@harbor-design/proform 1.4.3 → 1.4.5

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.
@@ -23,13 +23,14 @@ export default class Processor {
23
23
  baseDefaultValueFunctionsLength: number;
24
24
  isModelInitialized: boolean;
25
25
  schemaEffectHistory: Map<any, any>;
26
+ stableUpdaterHistory: Map<any, any>;
26
27
  constructor(runtimeCore: RuntimeCore);
27
28
  parse<T extends object = any>(data: T[], parentMeta?: AnyObject): void;
28
29
  initSchemas(schemas: AnyObject[]): AnyObject[];
29
30
  countFunctionDefaultValues(input: AnyObject): number;
30
31
  parseSchemas(schemas: ProxyedSchema[], parentMeta?: AnyObject): void;
31
32
  parseStable(stable: AnyObject): AnyObject;
32
- stableUpdater(parseProcess?: boolean[]): void;
33
+ stableUpdater(parseProcess?: boolean[], parentMeta?: AnyObject, index?: number, key?: string, keyIndex?: number): void;
33
34
  parseItem(data: AnyObject, index: number, parentMeta?: AnyObject): void;
34
35
  objectParser(root: ObjectParserRoot): void;
35
36
  promiseFieldParser(rootField: any, updater: AnyFunction, deepProcess: boolean, meta: AnyObject): void;
@@ -1,4 +1,4 @@
1
- import { AdaptedInterface, NativeCustomizationOptions } from ".";
1
+ import { AdaptedInterface, DisplayOptions, NativeCustomizationOptions } from ".";
2
2
  import { AnyObject } from "./utilTypes";
3
3
  export type DomType = new (...args: any) => AnyObject & {
4
4
  $props: AnyObject;
@@ -15,6 +15,7 @@ export interface FormPreset {
15
15
  };
16
16
  adapter?: AdaptedInterface;
17
17
  native?: NativeCustomizationOptions;
18
+ display?: DisplayOptions;
18
19
  }
19
20
  export type UIName = "ArcoVue" | "NutUI" | "NaiveUI" | (string & {});
20
21
  export type AdaptedInterfacePreset = Record<UIName, AdaptedInterface>;
@@ -119,4 +119,7 @@ export type NativeCustomizationOptions = {
119
119
  FormItem?: AnyObject;
120
120
  };
121
121
  };
122
+ export type DisplayOptions = {
123
+ labelPrefix: string;
124
+ };
122
125
  export {};
@@ -8,6 +8,7 @@ export default class IS {
8
8
  static isObject(data: any): data is AnyObject;
9
9
  static isAsyncFunction(data: any): data is (...args: any) => Promise<any>;
10
10
  static isUndefined(data: any): data is undefined;
11
+ static isNull(data: any): data is null;
11
12
  static isArrayEmpty(data: any[]): boolean;
12
13
  static isObjectEmpty(data: Record<PropertyKey, any>): boolean;
13
14
  static isListSchema(data: any): data is ListSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",