@bagelink/vue 1.3.7 → 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.
|
@@ -21,7 +21,7 @@ export type BagelFieldOptions<T, P extends Path<T>> = string | ({
|
|
|
21
21
|
export type VIfType<T, P extends Path<T>> = string | boolean | ((val?: FieldVal<T, P>, rowData?: T) => boolean);
|
|
22
22
|
export type ValidationFn<T, P extends Path<T>> = (val?: FieldVal<T, P>, rowData?: T) => string | undefined;
|
|
23
23
|
export interface ShallowPathsOptions extends PathsOptions {
|
|
24
|
-
maxRecursionDepth:
|
|
24
|
+
maxRecursionDepth: 0;
|
|
25
25
|
}
|
|
26
26
|
export type _Path<T, PO extends PathsOptions = DefaultPathsOptions> = ToString<Paths<OmitIndexSignature<T>, PO>>;
|
|
27
27
|
export type Path<T, PO extends PathsOptions = DefaultPathsOptions> = FieldVal<T, _Path<T, PO>> extends Array<any> ? LiteralStringUnion<_Path<T, PO>> : _Path<T, PO>;
|
|
@@ -65,11 +65,11 @@ export type Field<T, PO extends PathsOptions = DefaultPathsOptions> = MappedBase
|
|
|
65
65
|
export type BglFieldT<T, PO extends PathsOptions = DefaultPathsOptions> = Field<T, PO>;
|
|
66
66
|
export type BglFormSchemaT<T, PO extends PathsOptions = DefaultPathsOptions> = Field<T, PO>[];
|
|
67
67
|
export type ShallowBglFormSchemaT<T, PO extends PathsOptions = ShallowPathsOptions> = Field<T, PO>[];
|
|
68
|
-
export interface InputBagelField<T, P extends Path<T, PO>, PO extends PathsOptions =
|
|
68
|
+
export interface InputBagelField<T, P extends Path<T, PO>, PO extends PathsOptions = DefaultPathsOptions> extends BaseBagelField<T, P, PO> {
|
|
69
69
|
$el: 'text' | ComponentExposed<typeof TextInput>;
|
|
70
70
|
type?: string;
|
|
71
71
|
}
|
|
72
|
-
export interface SelectBagelField<T, P extends Path<T, PO>, PO extends PathsOptions =
|
|
72
|
+
export interface SelectBagelField<T, P extends Path<T, PO>, PO extends PathsOptions = DefaultPathsOptions> extends BaseBagelField<T, P, PO> {
|
|
73
73
|
$el: 'select' | ComponentExposed<typeof SelectInput>;
|
|
74
74
|
type?: string;
|
|
75
75
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.5",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@bagelink/sdk": "*",
|
|
67
67
|
"type-fest": "^4",
|
|
68
|
+
"vue-component-type-helpers": "^2.2.10",
|
|
68
69
|
"@vuepic/vue-datepicker": "^8.8.1",
|
|
69
70
|
"vue": "*",
|
|
70
71
|
"vue-draggable-next": "^2.2.1",
|
package/src/types/BagelForm.ts
CHANGED
|
@@ -47,7 +47,7 @@ export type ValidationFn<T, P extends Path<T>> = (
|
|
|
47
47
|
) => string | undefined
|
|
48
48
|
|
|
49
49
|
export interface ShallowPathsOptions extends PathsOptions {
|
|
50
|
-
maxRecursionDepth:
|
|
50
|
+
maxRecursionDepth: 0
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export type _Path<
|
|
@@ -146,7 +146,7 @@ export type ShallowBglFormSchemaT<
|
|
|
146
146
|
export interface InputBagelField<
|
|
147
147
|
T,
|
|
148
148
|
P extends Path<T, PO>,
|
|
149
|
-
PO extends PathsOptions =
|
|
149
|
+
PO extends PathsOptions = DefaultPathsOptions
|
|
150
150
|
>
|
|
151
151
|
extends BaseBagelField<T, P, PO> {
|
|
152
152
|
$el: 'text' | ComponentExposed<typeof TextInput>
|
|
@@ -156,7 +156,7 @@ export interface InputBagelField<
|
|
|
156
156
|
export interface SelectBagelField<
|
|
157
157
|
T,
|
|
158
158
|
P extends Path<T, PO>,
|
|
159
|
-
PO extends PathsOptions =
|
|
159
|
+
PO extends PathsOptions = DefaultPathsOptions,
|
|
160
160
|
>
|
|
161
161
|
extends BaseBagelField<T, P, PO> {
|
|
162
162
|
$el: 'select' | ComponentExposed<typeof SelectInput>
|