@anzusystems/common-admin 1.47.0-beta.21 → 1.47.0-beta.210

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/labs.d.ts ADDED
@@ -0,0 +1,556 @@
1
+ import { AnyFn } from '@vueuse/core';
2
+ import { AxiosInstance } from 'axios';
3
+ import { AxiosRequestConfig } from 'axios';
4
+ import { ComponentOptionsMixin } from 'vue';
5
+ import { ComponentProvideOptions } from 'vue';
6
+ import { ComputedRef } from 'vue';
7
+ import { DefineComponent } from 'vue';
8
+ import { FilterField } from './filterFactory';
9
+ import { InjectionKey } from 'vue';
10
+ import { Method } from 'axios';
11
+ import { PublicProps } from 'vue';
12
+ import { Ref } from 'vue';
13
+ import { SortOrderType as SortOrderType_2 } from '../../composables/system/datatableColumns';
14
+
15
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
16
+ submit: () => void;
17
+ reset: () => void;
18
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ "update:datatableHiddenColumns": (value: string[] | undefined) => any;
20
+ "update:showDetail": (value: boolean) => any;
21
+ "update:touched": (value: boolean) => any;
22
+ } & {
23
+ reset: () => any;
24
+ submit: () => any;
25
+ bookmarkLoadAfter: () => any;
26
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ onReset?: (() => any) | undefined;
28
+ onSubmit?: (() => any) | undefined;
29
+ "onUpdate:datatableHiddenColumns"?: ((value: string[] | undefined) => any) | undefined;
30
+ onBookmarkLoadAfter?: (() => any) | undefined;
31
+ "onUpdate:showDetail"?: ((value: boolean) => any) | undefined;
32
+ "onUpdate:touched"?: ((value: boolean) => any) | undefined;
33
+ }>, {
34
+ system: string;
35
+ userId: IntegerIdNullable;
36
+ enableTop: boolean;
37
+ hideButtons: boolean;
38
+ client: () => AxiosInstance;
39
+ formName: string;
40
+ disableFilterUrlSync: boolean;
41
+ bookmarkSystemResource: string;
42
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
43
+
44
+ declare const __VLS_component_2: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
45
+ change: () => any;
46
+ }, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
47
+ onChange?: (() => any) | undefined;
48
+ }>, {
49
+ placeholder: string;
50
+ dataCy: string;
51
+ allowed: TimeIntervalToolsValue[];
52
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
53
+
54
+ declare type __VLS_Props = {
55
+ enableTop?: boolean;
56
+ hideButtons?: boolean;
57
+ formName?: string;
58
+ disableFilterUrlSync?: boolean;
59
+ system?: string | undefined;
60
+ userId?: IntegerIdNullable | undefined;
61
+ client?: (() => AxiosInstance) | undefined;
62
+ bookmarkSystemResource?: string | undefined;
63
+ };
64
+
65
+ declare type __VLS_Props_10 = {
66
+ variant?: 'default' | 'id' | 'most-relevant';
67
+ customOptions?: undefined | DatatableOrderingOptions;
68
+ paginationUpdateCustomCb?: ((option: DatatableOrderingOption, pagination: Ref<Pagination>) => void) | undefined;
69
+ };
70
+
71
+ declare type __VLS_Props_11 = {
72
+ itemsPerPageOptions?: number[];
73
+ hideRecordsPerPage?: boolean;
74
+ };
75
+
76
+ declare type __VLS_Props_2 = {
77
+ name: string;
78
+ allT?: string;
79
+ trueT?: string;
80
+ falseT?: string;
81
+ dataCy?: string;
82
+ };
83
+
84
+ declare type __VLS_Props_3 = {
85
+ name: string;
86
+ dataCy?: string;
87
+ };
88
+
89
+ declare type __VLS_Props_4 = {
90
+ name: string;
91
+ placeholder?: string | undefined;
92
+ dataCy?: string;
93
+ };
94
+
95
+ declare type __VLS_Props_5 = {
96
+ name: string;
97
+ fetchItems: (pagination: Ref<Pagination>, filterData: FilterData, filterConfig: FilterConfig) => Promise<ValueObjectOption<string | number>[]>;
98
+ fetchItemsByIds: FetchItemsByIdsType;
99
+ filterByField: string;
100
+ filterSortBy?: DatatableSortBy;
101
+ placeholder?: string | undefined;
102
+ prefetch?: 'hover' | 'focus' | 'mounted' | false;
103
+ searchMinChars?: number;
104
+ };
105
+
106
+ declare type __VLS_Props_6 = {
107
+ name: string;
108
+ fetchItemsMinimal: FetchItemsMinimalType;
109
+ fetchItemsMinimalByIds: FetchItemsMinimalByIdsType;
110
+ filterByField: string;
111
+ filterSortBy?: DatatableSortBy;
112
+ placeholder?: string | undefined;
113
+ prefetch?: 'hover' | 'focus' | 'mounted' | false;
114
+ searchMinChars?: number;
115
+ itemTitle?: string;
116
+ itemValue?: string;
117
+ };
118
+
119
+ declare type __VLS_Props_7 = {
120
+ name: string;
121
+ placeholder?: string | undefined;
122
+ dataCy?: string;
123
+ };
124
+
125
+ declare type __VLS_Props_8 = {
126
+ nameFrom: string;
127
+ nameUntil: string;
128
+ allowed?: TimeIntervalToolsValue[];
129
+ placeholder?: string | undefined;
130
+ dataCy?: string;
131
+ };
132
+
133
+ declare type __VLS_Props_9 = {
134
+ name: string;
135
+ items: ValueObjectOption<string | number>[];
136
+ };
137
+
138
+ declare type __VLS_PublicProps = {
139
+ 'datatableHiddenColumns'?: string[] | undefined;
140
+ 'showDetail'?: boolean;
141
+ 'touched'?: boolean;
142
+ } & __VLS_Props;
143
+
144
+ declare type __VLS_PublicProps_2 = {
145
+ 'modelValue'?: number;
146
+ } & __VLS_Props_10;
147
+
148
+ declare function __VLS_template(): {
149
+ attrs: Partial<{}>;
150
+ slots: Partial<Record<string, (_: {
151
+ itemConfig: FilterField;
152
+ }) => any>> & {
153
+ top?(_: {}): any;
154
+ bookmarks?(_: {}): any;
155
+ search?(_: {}): any;
156
+ buttons?(_: {}): any;
157
+ detail?(_: {}): any;
158
+ };
159
+ refs: {};
160
+ rootEl: any;
161
+ };
162
+
163
+ declare function __VLS_template_2(): {
164
+ attrs: Partial<{}>;
165
+ slots: {
166
+ title?(_: {}): any;
167
+ };
168
+ refs: {};
169
+ rootEl: any;
170
+ };
171
+
172
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
173
+
174
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
175
+
176
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
177
+ new (): {
178
+ $slots: S;
179
+ };
180
+ };
181
+
182
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
183
+ new (): {
184
+ $slots: S;
185
+ };
186
+ };
187
+
188
+ export declare const ADatatableOrdering: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
189
+ "update:modelValue": (value: number) => any;
190
+ } & {
191
+ sortByChange: (data: DatatableOrderingOption) => any;
192
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
193
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
194
+ onSortByChange?: ((data: DatatableOrderingOption) => any) | undefined;
195
+ }>, {
196
+ variant: "default" | "id" | "most-relevant";
197
+ customOptions: DatatableOrderingOptions;
198
+ paginationUpdateCustomCb: (option: DatatableOrderingOption, pagination: Ref<Pagination>) => void;
199
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
200
+
201
+ export declare const ADatatablePagination: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
202
+ change: () => any;
203
+ }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
204
+ onChange?: (() => any) | undefined;
205
+ }>, {
206
+ itemsPerPageOptions: number[];
207
+ hideRecordsPerPage: boolean;
208
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
209
+
210
+ export declare const AFilterBooleanSelect: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
211
+ change: () => any;
212
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
213
+ onChange?: (() => any) | undefined;
214
+ }>, {
215
+ dataCy: string;
216
+ allT: string;
217
+ trueT: string;
218
+ falseT: string;
219
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
220
+
221
+ export declare const AFilterDatetimePicker: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
222
+ change: () => any;
223
+ }, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
224
+ onChange?: (() => any) | undefined;
225
+ }>, {
226
+ dataCy: string;
227
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
228
+
229
+ export declare const AFilterInteger: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
230
+ change: () => any;
231
+ }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
232
+ onChange?: (() => any) | undefined;
233
+ }>, {
234
+ placeholder: string;
235
+ dataCy: string;
236
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
237
+
238
+ export declare const AFilterRemoteAutocomplete: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
239
+ change: () => any;
240
+ }, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
241
+ onChange?: (() => any) | undefined;
242
+ }>, {
243
+ placeholder: string;
244
+ filterSortBy: {
245
+ key: string;
246
+ order: SortOrderType_2;
247
+ } | null;
248
+ prefetch: "hover" | "focus" | "mounted" | false;
249
+ searchMinChars: number;
250
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
251
+
252
+ export declare const AFilterRemoteAutocompleteWithMinimal: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
253
+ change: () => any;
254
+ }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
255
+ onChange?: (() => any) | undefined;
256
+ }>, {
257
+ placeholder: string;
258
+ itemValue: string;
259
+ itemTitle: string;
260
+ filterSortBy: {
261
+ key: string;
262
+ order: SortOrderType_2;
263
+ } | null;
264
+ prefetch: "hover" | "focus" | "mounted" | false;
265
+ searchMinChars: number;
266
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
267
+
268
+ export declare const AFilterString: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
269
+ change: () => any;
270
+ }, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
271
+ onChange?: (() => any) | undefined;
272
+ }>, {
273
+ placeholder: string;
274
+ dataCy: string;
275
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
276
+
277
+ export declare const AFilterTimeInterval: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
278
+
279
+ export declare const AFilterValueObjectOptionsSelect: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
280
+ change: () => any;
281
+ }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
282
+ onChange?: (() => any) | undefined;
283
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
284
+
285
+ export declare const AFilterWrapper: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
286
+
287
+ declare type AllowedFilterValues = number | number[] | string | string[] | null | undefined | boolean;
288
+
289
+ declare type ColumnConfig = {
290
+ key: string;
291
+ title?: string;
292
+ sortable?: boolean;
293
+ fixed?: boolean;
294
+ maxWidth?: number;
295
+ };
296
+
297
+ export declare function createDatatableColumnsConfig(config: ColumnConfig[], columnsHidden: Ref<Array<string>>, system?: string | undefined, subject?: string | undefined, disableActions?: boolean, customI18n?: undefined | any, showExpand?: undefined | boolean, storeId?: string | undefined): {
298
+ columnsAll: {
299
+ key: string;
300
+ title?: string;
301
+ sortable: boolean;
302
+ fixed: boolean;
303
+ maxWidth?: number;
304
+ }[];
305
+ columnsVisible: ComputedRef<any>;
306
+ columnsHidden: Ref<string[], string[]>;
307
+ };
308
+
309
+ export declare function createFilter<F extends readonly MakeFilterOption<string>[]>(filterFields: F, store: FilterData<F>, options?: Partial<GeneralFilterOptions>): {
310
+ filterConfig: FilterConfig<F>;
311
+ filterData: FilterData<F>;
312
+ };
313
+
314
+ declare type DatatableOrderingOption = {
315
+ id: number;
316
+ titleT: string;
317
+ sortBy?: DatatableSortBy;
318
+ customData?: any;
319
+ };
320
+
321
+ declare type DatatableOrderingOptions = Array<DatatableOrderingOption>;
322
+
323
+ export declare const DatatablePaginationKey: InjectionKey<Ref<Pagination>>;
324
+
325
+ declare type DatatableSortBy = {
326
+ key: string;
327
+ order: SortOrderType;
328
+ } | null | undefined;
329
+
330
+ /**
331
+ * UUID v4 as string.
332
+ */
333
+ declare type DocId = string;
334
+
335
+ declare type FetchItemsByIdsType = ((ids: IntegerId[]) => Promise<ValueObjectOption<IntegerId>[]>) | ((ids: DocId[]) => Promise<ValueObjectOption<DocId>[]>);
336
+
337
+ declare type FetchItemsMinimalByIdsType = ((ids: IntegerId[]) => Promise<any[]>) | ((ids: DocId[]) => Promise<any[]>);
338
+
339
+ declare type FetchItemsMinimalType = (pagination: Ref<Pagination>, filterData: FilterData, filterConfig: FilterConfig) => Promise<any[]>;
340
+
341
+ declare interface FilerRenderOptions {
342
+ skip: boolean;
343
+ xs: number;
344
+ sm: number;
345
+ md: number;
346
+ lg: number;
347
+ xl: number;
348
+ }
349
+
350
+ export declare type FilterConfig<F extends readonly MakeFilterOption<string>[] = readonly MakeFilterOption<string>[]> = {
351
+ general: GeneralFilterOptions;
352
+ fields: {
353
+ [P in F[number]['name']]: FilterField_2;
354
+ };
355
+ };
356
+
357
+ export declare const FilterConfigKey: InjectionKey<FilterConfig>;
358
+
359
+ export declare type FilterData<F extends readonly MakeFilterOption<string>[] = readonly MakeFilterOption<string>[]> = {
360
+ [P in F[number]['name']]: AllowedFilterValues;
361
+ };
362
+
363
+ export declare const FilterDataKey: InjectionKey<FilterData>;
364
+
365
+ declare interface FilterField_2 {
366
+ name: string;
367
+ type: FilterType;
368
+ variant: FilterVariant;
369
+ titleT?: string;
370
+ default: AllowedFilterValues;
371
+ apiName: string;
372
+ clearable: boolean;
373
+ mandatory: boolean;
374
+ multiple: boolean;
375
+ advanced: boolean;
376
+ exclude: boolean;
377
+ related: string | undefined;
378
+ render: FilerRenderOptions;
379
+ }
380
+
381
+ export declare const FilterInnerConfigKey: InjectionKey<FilterConfig>;
382
+
383
+ export declare const FilterInnerDataKey: InjectionKey<FilterData>;
384
+
385
+ export declare type FilterStore<T extends readonly {
386
+ name: string;
387
+ }[]> = {
388
+ [K in T[number]['name']]: AllowedFilterValues;
389
+ };
390
+
391
+ declare type FilterType = 'boolean' | 'datetime' | 'integer' | 'string' | 'custom' | 'timeInterval';
392
+
393
+ declare type FilterVariant = 'search' | 'lt' | 'in' | 'notIn' | 'endsWith' | 'startsWith' | 'memberOf' | 'contains' | 'neq' | 'gte' | 'gt' | 'eq' | 'lte' | 'custom';
394
+
395
+ declare type FilterVariant_2 = 'search' | 'lt' | 'in' | 'notIn' | 'endsWith' | 'startsWith' | 'memberOf' | 'contains' | 'neq' | 'gte' | 'gt' | 'eq' | 'lte' | 'custom';
396
+
397
+ declare interface GeneralFilterOptions {
398
+ system?: string;
399
+ subject?: string;
400
+ elastic?: boolean;
401
+ }
402
+
403
+ export declare const generateListQuery: (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>) => string;
404
+
405
+ /**
406
+ * Integer ID.
407
+ */
408
+ declare type IntegerId = number;
409
+
410
+ /**
411
+ * Integer ID + null.
412
+ */
413
+ declare type IntegerIdNullable = number | null;
414
+
415
+ export declare interface MakeFilterOption<TName extends string = string> {
416
+ name: TName;
417
+ type?: FilterType;
418
+ variant?: FilterVariant;
419
+ titleT?: string;
420
+ apiName?: string;
421
+ clearable?: boolean;
422
+ mandatory?: boolean;
423
+ advanced?: boolean;
424
+ exclude?: boolean;
425
+ related?: string | undefined;
426
+ render?: Partial<FilerRenderOptions>;
427
+ }
428
+
429
+ export declare interface Pagination {
430
+ sortBy: DatatableSortBy;
431
+ page: number;
432
+ rowsPerPage: number;
433
+ rowsNumber: number;
434
+ hasNextPage: null | boolean;
435
+ currentViewCount: number;
436
+ totalCount: number;
437
+ }
438
+
439
+ declare const SortOrder: {
440
+ readonly Asc: "asc";
441
+ readonly Desc: "desc";
442
+ };
443
+
444
+ declare type SortOrderType = (typeof SortOrder)[keyof typeof SortOrder];
445
+
446
+ export declare const TimeIntervalSpecialOptions: {
447
+ readonly CurrentMonth: "cm";
448
+ readonly LastMonth: "lm";
449
+ readonly Last3Months: "l3m";
450
+ readonly Custom: "custom";
451
+ };
452
+
453
+ declare type TimeIntervalSpecialOptionsType = (typeof TimeIntervalSpecialOptions)[keyof typeof TimeIntervalSpecialOptions];
454
+
455
+ /** note: number value represents time interval in minutes, null represent unselected */
456
+ export declare type TimeIntervalToolsValue = number | TimeIntervalSpecialOptionsType | null;
457
+
458
+ declare type UrlParams = {
459
+ [key: string]: number | string;
460
+ };
461
+
462
+ declare type UseApiAnyRequestReturnType<R, T = R> = {
463
+ executeRequest: (urlTemplate: string, urlParams?: UrlParams | undefined, object?: T | undefined) => Promise<R>;
464
+ abortRequest: () => void;
465
+ };
466
+
467
+ export declare const useApiFetchByIds: <R>(client: () => AxiosInstance, system: string, entity: string, options?: AxiosRequestConfig, isSearchApi?: boolean, field?: string) => UseApiFetchByIdsReturnType<R>;
468
+
469
+ declare type UseApiFetchByIdsReturnType<R> = {
470
+ executeFetch: (ids: DocId[] | IntegerId[], urlTemplate: string, urlParams?: UrlParams | undefined) => Promise<R>;
471
+ abortFetch: () => void;
472
+ };
473
+
474
+ /**
475
+ * @template R Response type override, optional
476
+ */
477
+ export declare const useApiFetchList: <R>(client: () => AxiosInstance, system: string, entity: string, options?: AxiosRequestConfig) => UseApiFetchListReturnType<R>;
478
+
479
+ /**
480
+ * @template R Response type override
481
+ */
482
+ export declare const useApiFetchListBatch: <R>(client: () => AxiosInstance, system: string, entity: string, options?: AxiosRequestConfig) => UseApiFetchListBatchReturnType<R>;
483
+
484
+ declare type UseApiFetchListBatchReturnType<R> = {
485
+ executeFetch: (filterData: FilterData<any>, filterConfig: FilterConfig<any>, urlTemplate: string, urlParams?: UrlParams, sortBy?: string, sortDesc?: boolean, batchSize?: number, forceElastic?: boolean) => Promise<R>;
486
+ abortFetch: () => void;
487
+ };
488
+
489
+ declare type UseApiFetchListReturnType<R> = {
490
+ executeFetch: (pagination: Ref<Pagination>, filterData: FilterData<any>, filterConfig: FilterConfig<any>, urlTemplate: string, urlParams?: UrlParams | undefined) => Promise<R>;
491
+ abortFetch: () => void;
492
+ };
493
+
494
+ /**
495
+ * Docs: /doc/Admin-Cms-Doc/Filters.md
496
+ */
497
+ export declare function useApiQueryBuilder(): {
498
+ querySetLimit: (value: number) => void;
499
+ querySetOffset: (page: number, limit: number) => void;
500
+ querySetOrder: (field: string | null, desc: boolean) => void;
501
+ queryAddFilter: (filterVariant: FilterVariant_2, field: string, value: string | number | boolean) => void;
502
+ querySetFilters: (filterData: FilterData<any>, filterConfig: FilterConfig<any>) => void;
503
+ queryAdd: (key: string, value: any) => void;
504
+ queryBuild: () => string;
505
+ };
506
+
507
+ /**
508
+ * @template T Type used for request payload, by default same as Response type
509
+ * @template R Response type override, optional
510
+ */
511
+ export declare const useApiRequest: <R, T = R>(client: () => AxiosInstance, method: Method, system: string, entity: string, options?: AxiosRequestConfig) => UseApiAnyRequestReturnType<R, T>;
512
+
513
+ export declare function useFilterHelpers<F extends readonly MakeFilterOption<string>[] = readonly MakeFilterOption<string>[]>(filterData: FilterData<F>, filterConfig: FilterConfig<F>, systemResource?: string | undefined): {
514
+ loadStoredFilters: () => boolean;
515
+ resetFilter: (pagination: Ref<Pagination>, callback?: AnyFn) => void;
516
+ submitFilter: (pagination: Ref<Pagination>, callback?: AnyFn) => void;
517
+ serializeFilters: (data: Record<string, AllowedFilterValues>, pagination: Ref<Pagination>, includeSort: boolean) => string;
518
+ deserializeFilters: (hash: string) => {
519
+ filters: Record<string, AllowedFilterValues>;
520
+ sortBy: DatatableSortBy;
521
+ } | null;
522
+ };
523
+
524
+ export declare function usePagination(sortBy?: DatatableSortBy): Ref< {
525
+ sortBy: {
526
+ key: string;
527
+ order: SortOrderType_2;
528
+ } | null | undefined;
529
+ page: number;
530
+ rowsPerPage: number;
531
+ rowsNumber: number;
532
+ hasNextPage: null | boolean;
533
+ currentViewCount: number;
534
+ totalCount: number;
535
+ }, Pagination | {
536
+ sortBy: {
537
+ key: string;
538
+ order: SortOrderType_2;
539
+ } | null | undefined;
540
+ page: number;
541
+ rowsPerPage: number;
542
+ rowsNumber: number;
543
+ hasNextPage: null | boolean;
544
+ currentViewCount: number;
545
+ totalCount: number;
546
+ }>;
547
+
548
+ declare interface ValueObjectOption<T> {
549
+ value: T;
550
+ title: string;
551
+ color?: string;
552
+ active?: false;
553
+ subtitle?: string;
554
+ }
555
+
556
+ export { }