@harbor-design/proform 1.1.12 → 1.1.13

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,5 +1,5 @@
1
1
  import { Ref } from "vue";
2
- import { Setup, Schema, AnyObject, ItemSchema, GroupSchema, ListSchema, ProcessorBySchemaType, runtime, NativeCustomizationOptions } from "../../types";
2
+ import { Setup, Schema, AnyObject, ItemSchema, GroupSchema, ListSchema, ProcessorBySchemaType, Runtime, NativeCustomizationOptions } from "../../types";
3
3
  import Processor from "../Processor";
4
4
  import Effect from "../Effect";
5
5
  import RuntimeAdpter from "./RuntimeAdapter";
@@ -13,7 +13,7 @@ export default class RuntimeCore {
13
13
  hydrateEffect: Effect;
14
14
  native: NativeCustomizationOptions;
15
15
  grid: {};
16
- runtime: runtime;
16
+ runtime: Runtime;
17
17
  globalNativeFormOverride: {
18
18
  props: {};
19
19
  slots: {};
@@ -68,17 +68,17 @@ export interface ItemSchema {
68
68
  }
69
69
  export interface GroupSchema {
70
70
  type: "group";
71
- label: string;
71
+ label?: string;
72
72
  children: ProxyedSchema[];
73
73
  grid?: GridStyle;
74
74
  }
75
75
  export interface ListSchema {
76
76
  type: "list";
77
77
  field: string;
78
- label: string;
78
+ label?: string;
79
79
  children: ProxyedSchema[];
80
80
  grid?: GridStyle;
81
- runtime?: runtime;
81
+ runtime?: Runtime;
82
82
  }
83
83
  export type Schema = ItemSchema | GroupSchema | ListSchema;
84
84
  export interface runtimeMeta {
@@ -89,14 +89,14 @@ export type ProFormProxy<T> = {
89
89
  [K in keyof T]: ProFormProxyRule<T[K]>;
90
90
  };
91
91
  export type ProxyedSchema = ProFormProxy<ItemSchema | GroupSchema | ListSchema>;
92
- export interface runtime {
92
+ export interface Runtime {
93
93
  customizeItemLabel?: (rawLabel: string, rawIndex: number) => any;
94
94
  }
95
95
  export interface FormCustomization {
96
96
  ui?: UIName;
97
97
  grid?: GridStyle;
98
98
  native?: NativeCustomizationOptions;
99
- runtime?: runtime;
99
+ runtime?: Runtime;
100
100
  schemas: ProxyedSchema[];
101
101
  }
102
102
  export type NativeCustomizationOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",