@kokimoki/app 0.3.3 → 0.4.0
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/fields.d.ts +0 -9
- package/dist/fields.js +0 -14
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
package/dist/fields.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Task } from "./types/tasks";
|
|
2
1
|
export interface FieldOptions {
|
|
3
2
|
label?: string;
|
|
4
3
|
optional: boolean;
|
|
@@ -56,13 +55,5 @@ export declare class FormArray<T> extends Field<T[]> {
|
|
|
56
55
|
default: T[];
|
|
57
56
|
};
|
|
58
57
|
}
|
|
59
|
-
export declare class TaskField extends Field<Task> {
|
|
60
|
-
value: Task;
|
|
61
|
-
constructor(value: Task, options?: FieldOptions);
|
|
62
|
-
get schema(): {
|
|
63
|
-
type: string;
|
|
64
|
-
properties: {};
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
58
|
export declare class Form<T extends Record<string, Field<any>>> extends FormGroup<T> {
|
|
68
59
|
}
|
package/dist/fields.js
CHANGED
|
@@ -85,19 +85,5 @@ export class FormArray extends Field {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
export class TaskField extends Field {
|
|
89
|
-
value;
|
|
90
|
-
constructor(value, options = defaultFieldOptions) {
|
|
91
|
-
super(options);
|
|
92
|
-
this.value = value;
|
|
93
|
-
}
|
|
94
|
-
get schema() {
|
|
95
|
-
// TODO: validate task interface, not important right now
|
|
96
|
-
return {
|
|
97
|
-
type: "object",
|
|
98
|
-
properties: {},
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
88
|
export class Form extends FormGroup {
|
|
103
89
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED