@bagelink/vue 1.4.87 → 1.4.89
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/bin/generateFormSchema.ts +6 -6
- package/dist/components/Btn.vue.d.ts +1 -1
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/dataTable/useTableData.d.ts.map +1 -1
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/composables/useExcel.d.ts.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/style.css +1 -1
- package/dist/types/BagelForm.d.ts +5 -4
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/utils/schema.d.ts +4 -0
- package/dist/utils/schema.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/Btn.vue +111 -78
- package/src/components/dataTable/useTableData.ts +5 -2
- package/src/components/form/BagelForm.vue +6 -17
- package/src/components/form/BglMultiStepForm.vue +3 -3
- package/src/composables/useExcel.ts +19 -8
- package/src/styles/buttons.css +74 -78
- package/src/styles/pillColors.css +0 -0
- package/src/types/BagelForm.ts +9 -4
package/src/types/BagelForm.ts
CHANGED
|
@@ -108,8 +108,8 @@ export interface BaseBagelField<
|
|
|
108
108
|
'disabled'?: boolean
|
|
109
109
|
'helptext'?: string
|
|
110
110
|
'options'?: BagelFieldOptions<T, P>
|
|
111
|
-
'children'?: SchemaChild<T,
|
|
112
|
-
'slots'?: { [key: string]: SchemaChild<T,
|
|
111
|
+
'children'?: SchemaChild<T, Path<T, PO>, PO>[]
|
|
112
|
+
'slots'?: { [key: string]: SchemaChild<T, Path<T, PO>, PO>[] }
|
|
113
113
|
'defaultValue'?: any
|
|
114
114
|
'vIf'?: VIfType<T, P>
|
|
115
115
|
'v-if'?: VIfType<T, P>
|
|
@@ -147,15 +147,20 @@ export type BglFieldT<
|
|
|
147
147
|
PO extends PathsOptions = DefaultPathsOptions,
|
|
148
148
|
> = Field<T, PO>
|
|
149
149
|
|
|
150
|
+
export type SchemaField<
|
|
151
|
+
T,
|
|
152
|
+
PO extends PathsOptions = DefaultPathsOptions,
|
|
153
|
+
> = Field<T, PO> | ElementField<T, PO>
|
|
154
|
+
|
|
150
155
|
export type BglFormSchemaT<
|
|
151
156
|
T,
|
|
152
157
|
PO extends PathsOptions = DefaultPathsOptions,
|
|
153
|
-
> =
|
|
158
|
+
> = SchemaField<T, PO>[]
|
|
154
159
|
|
|
155
160
|
export type ShallowBglFormSchemaT<
|
|
156
161
|
T,
|
|
157
162
|
PO extends PathsOptions = ShallowPathsOptions,
|
|
158
|
-
> =
|
|
163
|
+
> = SchemaField<T, PO>[]
|
|
159
164
|
|
|
160
165
|
export interface InputBagelField<
|
|
161
166
|
T,
|