@hybridly/vue
Advanced tools
Comparing version 0.7.13 to 0.7.14
@@ -97,9 +97,9 @@ import * as vue from 'vue'; | ||
readonly loaded: number; | ||
readonly total?: number; | ||
readonly progress?: number; | ||
readonly total?: number | undefined; | ||
readonly progress?: number | undefined; | ||
readonly bytes: number; | ||
readonly rate?: number; | ||
readonly estimated?: number; | ||
readonly upload?: boolean; | ||
readonly download?: boolean; | ||
readonly rate?: number | undefined; | ||
readonly estimated?: number | undefined; | ||
readonly upload?: boolean | undefined; | ||
readonly download?: boolean | undefined; | ||
readonly event?: any; | ||
@@ -548,2 +548,7 @@ readonly lengthComputable: boolean; | ||
selection: Ref<BulkSelection<T>>; | ||
bindCheckbox: (key: T) => { | ||
onChange: (event: Event) => void; | ||
checked: boolean; | ||
value: T; | ||
}; | ||
}; | ||
@@ -602,6 +607,17 @@ | ||
}; | ||
interface TableDefaultOptions extends AvailableHybridRequestOptions { | ||
/** | ||
* Whether to include existing query parameters in the request. | ||
* @default true | ||
*/ | ||
includeQueryParameters?: boolean; | ||
/** | ||
* Additionnal data to send with the requests. | ||
*/ | ||
data?: Record<string, FormDataConvertible> | FormDataConvertible; | ||
} | ||
/** | ||
* Provides utilities for working with tables. | ||
*/ | ||
declare function useTable<RecordType extends (Props[PropsKey] extends Table<infer T, any> ? AsRecordType<T> : never), PaginatorKindName extends (Props[PropsKey] extends Table<RecordType, infer PaginatorKind> ? PaginatorKind : never), TableType extends (Props[PropsKey] extends Table<RecordType, PaginatorKindName> ? Table<RecordType, PaginatorKindName> : never), Props extends Record<string, unknown>, PropsKey extends keyof Props>(props: Props, key: PropsKey, defaultOptions?: AvailableHybridRequestOptions): { | ||
declare function useTable<RecordType extends (Props[PropsKey] extends Table<infer T, any> ? AsRecordType<T> : never), PaginatorKindName extends (Props[PropsKey] extends Table<RecordType, infer PaginatorKind> ? PaginatorKind : never), TableType extends (Props[PropsKey] extends Table<RecordType, PaginatorKindName> ? Table<RecordType, PaginatorKindName> : never), Props extends Record<string, unknown>, PropsKey extends keyof Props>(props: Props, key: PropsKey, defaultOptions?: TableDefaultOptions): { | ||
bindFilter: <T = any>(name: string, options?: BindFilterOptions<T>) => vue.Ref<T>; | ||
@@ -625,4 +641,4 @@ filters: { | ||
is_active: boolean; | ||
direction?: SortDirection; | ||
default?: SortDirection; | ||
direction?: SortDirection | undefined; | ||
default?: SortDirection | undefined; | ||
label: string; | ||
@@ -657,2 +673,7 @@ metadata: Record<string, any>; | ||
selection: BulkSelection<RecordIdentifier>; | ||
bindCheckbox: (key: RecordIdentifier) => { | ||
onChange: (event: Event) => void; | ||
checked: boolean; | ||
value: RecordIdentifier; | ||
}; | ||
toggle: (record: RecordType) => void; | ||
@@ -959,2 +980,2 @@ select: (record: RecordType) => void; | ||
export { type Action, type AvailableHybridRequestOptions, type BindFilterOptions, type BulkAction, type BulkSelection, type Column, type DefaultFormOptions, type InitializeOptions, type InlineAction, type RecordIdentifier, RouterLink, type SortDirection, type ToggleSortOptions, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable }; | ||
export { type Action, type AvailableHybridRequestOptions, type BindFilterOptions, type BulkAction, type BulkSelection, type Column, type DefaultFormOptions, type InitializeOptions, type InlineAction, type RecordIdentifier, RouterLink, type SortDirection, type TableDefaultOptions, type ToggleSortOptions, initializeHybridly, registerHook, setProperty, useBackForward, useBulkSelect, useDialog, useForm, useHistoryState, useProperties, useProperty, useQueryParameter, useQueryParameters, useRefinements, useRoute, useTable }; |
{ | ||
"name": "@hybridly/vue", | ||
"type": "module", | ||
"version": "0.7.13", | ||
"version": "0.7.14", | ||
"description": "Vue adapter for Hybridly", | ||
@@ -46,18 +46,18 @@ "author": "Enzo Innocenzi <enzo@innocenzi.dev>", | ||
"dependencies": { | ||
"@clickbar/dot-diver": "^1.0.6", | ||
"@vue/devtools-api": "^7.3.5", | ||
"@clickbar/dot-diver": "^1.0.7", | ||
"@vue/devtools-api": "^7.3.8", | ||
"defu": "^6.1.4", | ||
"lodash.isequal": "^4.5.0", | ||
"nprogress": "^0.2.0", | ||
"qs": "^6.12.1", | ||
"@hybridly/utils": "0.7.13", | ||
"@hybridly/core": "0.7.13" | ||
"qs": "^6.13.0", | ||
"@hybridly/core": "0.7.14", | ||
"@hybridly/utils": "0.7.14" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "^4.17.6", | ||
"@types/lodash": "^4.17.7", | ||
"@types/lodash.isequal": "^4.5.8", | ||
"@types/nprogress": "^0.2.3", | ||
"@vue/test-utils": "^2.4.6", | ||
"axios": "^1.7.2", | ||
"vue": "^3.4.31" | ||
"axios": "^1.7.4", | ||
"vue": "^3.4.38" | ||
}, | ||
@@ -64,0 +64,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
195040
3879
+ Added@hybridly/core@0.7.14(transitive)
+ Added@hybridly/utils@0.7.14(transitive)
- Removed@hybridly/core@0.7.13(transitive)
- Removed@hybridly/utils@0.7.13(transitive)
Updated@clickbar/dot-diver@^1.0.7
Updated@hybridly/core@0.7.14
Updated@hybridly/utils@0.7.14
Updated@vue/devtools-api@^7.3.8
Updatedqs@^6.13.0