@dynamicforms/vue-forms 0.3.2 → 0.3.4

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/dist/index.d.ts CHANGED
@@ -4,18 +4,14 @@ import { Ref } from 'vue';
4
4
  export declare class AbortEventHandlingException extends Error {
5
5
  }
6
6
 
7
- export declare class Action<T extends ActionValue = ActionValue> extends FieldBase<T> {
8
- private _value;
9
- protected constructor();
7
+ export declare class Action<T extends ActionValue = ActionValue> extends Field<T> {
8
+ constructor(guard?: symbol);
10
9
  protected init(params?: Partial<IFieldConstructorParams<T>>): void;
11
10
  static create<T extends ActionValue = ActionValue>(params?: Partial<IFieldConstructorParams<T>>): Action<T>;
12
- get value(): T;
13
- set value(newValue: T);
14
11
  get icon(): string | undefined;
15
12
  set icon(newValue: string | undefined);
16
13
  get label(): string | undefined;
17
14
  set label(newValue: string | undefined);
18
- clone(overrides?: Partial<IField<T>>): Action<T>;
19
15
  execute(params: any): void;
20
16
  }
21
17
 
@@ -96,7 +92,7 @@ export declare namespace DisplayMode {
96
92
  export function isDefined(mode: number | string): boolean;
97
93
  }
98
94
 
99
- export declare const EmptyField: Field<string>;
95
+ export declare const EmptyField: Field<unknown>;
100
96
 
101
97
  export declare class EnabledChangedAction extends FieldActionBase {
102
98
  constructor(executorFn: (field: IField, supr: FieldActionExecute, newValue: boolean, oldValue: boolean) => void);
@@ -117,18 +113,18 @@ export declare class ExecuteAction extends FieldActionBase {
117
113
  }
118
114
 
119
115
  export declare class Field<T = any> extends FieldBase {
120
- private _value;
121
- protected constructor();
116
+ protected _value: T;
117
+ constructor(guard?: symbol);
122
118
  protected init(params?: Partial<IFieldConstructorParams<T>>): void;
123
119
  /**
124
120
  * Creates a new reactive Field instance.
125
121
  * @param params Initial field parameters
126
122
  * @returns Reactive Field instance
127
123
  */
128
- static create<T = any>(params?: Partial<IFieldConstructorParams<T>>): Field<T>;
124
+ static create<T = any>(this: new (guard?: symbol) => Field<T>, params?: Partial<IFieldConstructorParams<T>>): InstanceType<typeof this>;
129
125
  get value(): T;
130
126
  set value(newValue: T);
131
- clone(overrides?: Partial<IField<T>>): Field<T>;
127
+ clone(overrides?: Partial<IField<T>>): this;
132
128
  }
133
129
 
134
130
  export declare abstract class FieldActionBase implements IFieldAction {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vue-forms",
3
3
  "private": false,
4
- "version": "0.3.2",
4
+ "version": "0.3.4",
5
5
  "type": "module",
6
6
  "description": "Data entry forms for vue - logic (no controls here)",
7
7
  "author": "Jure Erznožnik",