vuetable-next 1.0.5 → 1.0.7
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/vuetable-next.d.ts +63 -14
- package/dist/vuetable-next.js +1538 -1548
- package/dist/vuetable-next.js.map +1 -1
- package/dist/vuetable-next.umd.cjs +20 -20
- package/dist/vuetable-next.umd.cjs.map +1 -1
- package/package.json +9 -9
- package/.eslintignore +0 -4
- package/.idea/easycode.ignore +0 -13
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/jsLinters/eslint.xml +0 -6
- package/.idea/material_theme_project_new.xml +0 -13
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/vuetable-next.iml +0 -12
- package/.vscode/extensions.json +0 -3
- package/auto-imports.d.ts +0 -73
- package/demo/vue2/index.ts +0 -6
- package/demo/vue2/index.vue +0 -17
- package/demo/vue3/index.ts +0 -4
- package/demo/vue3/index.vue +0 -12
- package/eslint.config.js +0 -122
- package/index.html +0 -86
- package/public/vite.svg +0 -1
- package/src/assets/vue.svg +0 -1
- package/src/components/Vuetable.vue +0 -1207
- package/src/components/VuetableColGroup.vue +0 -66
- package/src/components/VuetableColGutter.vue +0 -25
- package/src/components/VuetableCssSemanticUI.ts +0 -36
- package/src/components/VuetableFieldCheckbox.vue +0 -87
- package/src/components/VuetableFieldCheckboxMixin.vue +0 -46
- package/src/components/VuetableFieldHandle.vue +0 -41
- package/src/components/VuetableFieldMixin.vue +0 -30
- package/src/components/VuetableFieldSequence.vue +0 -43
- package/src/components/VuetablePagination.vue +0 -119
- package/src/components/VuetablePaginationDropdown.vue +0 -88
- package/src/components/VuetablePaginationInfo.vue +0 -51
- package/src/components/VuetablePaginationInfoMixin.vue +0 -64
- package/src/components/VuetablePaginationMixin.vue +0 -107
- package/src/components/VuetableRowHeader.vue +0 -196
- package/src/components/useVuetablePagination.ts +0 -56
- package/src/components/useVuetablePaginationInfo.ts +0 -40
- package/src/data/fields.ts +0 -102
- package/src/data/lang.ts +0 -4
- package/src/index.ts +0 -57
- package/src/main.ts +0 -398
- package/src/style.css +0 -79
- package/src/vite-env.d.ts +0 -1
- package/test/Vuetable.AJAX.test.ts +0 -291
- package/test/Vuetable.Components.test.ts +0 -27
- package/test/Vuetable.Composable.test.ts +0 -151
- package/test/Vuetable.Computed.test.ts +0 -211
- package/test/Vuetable.Features.test.ts +0 -145
- package/test/Vuetable.FieldsDefinition.test.ts +0 -236
- package/test/Vuetable.HTML.test.ts +0 -16
- package/test/Vuetable.Methods.test.ts +0 -373
- package/test/__snapshots__/Vuetable.Components.test.ts.snap +0 -11
- package/test/__snapshots__/Vuetable.HTML.test.ts.snap +0 -85
- package/tsconfig.app.json +0 -32
- package/tsconfig.json +0 -22
- package/tsconfig.node.json +0 -13
- package/vite.config.ts +0 -52
- package/vitest.config.ts +0 -17
package/dist/vuetable-next.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<Props, {
|
|
|
43
43
|
isApiMode: ComputedRef<boolean>;
|
|
44
44
|
tableFields: Ref< {
|
|
45
45
|
[x: string]: unknown;
|
|
46
|
-
name:
|
|
46
|
+
name: any;
|
|
47
47
|
sortField: string;
|
|
48
48
|
title: string | ((str?: any) => string);
|
|
49
49
|
titleClass: string;
|
|
@@ -54,7 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<Props, {
|
|
|
54
54
|
$_index: number;
|
|
55
55
|
}[], Field[] | {
|
|
56
56
|
[x: string]: unknown;
|
|
57
|
-
name:
|
|
57
|
+
name: any;
|
|
58
58
|
sortField: string;
|
|
59
59
|
title: string | ((str?: any) => string);
|
|
60
60
|
titleClass: string;
|
|
@@ -224,12 +224,24 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<Props, {
|
|
|
224
224
|
"onVuetable:checkbox-toggled-all"?: (isChecked: boolean) => any;
|
|
225
225
|
"onVuetable:data-reset"?: () => any;
|
|
226
226
|
"onVuetable:initialized"?: (tableFields: Field[]) => any;
|
|
227
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, Readonly<
|
|
227
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, Readonly<NonNullable<{
|
|
228
|
+
[x: `cell:${string}`]: (_: any) => any;
|
|
229
|
+
} & {
|
|
230
|
+
default?: (_: Record<string, any>) => any;
|
|
231
|
+
tableHeader?: () => any;
|
|
232
|
+
tableFooter?: () => any;
|
|
233
|
+
}>> & {
|
|
234
|
+
[x: `cell:${string}`]: (_: any) => any;
|
|
235
|
+
} & {
|
|
236
|
+
default?: (_: Record<string, any>) => any;
|
|
237
|
+
tableHeader?: () => any;
|
|
238
|
+
tableFooter?: () => any;
|
|
239
|
+
}>;
|
|
228
240
|
export { _default as Vuetable }
|
|
229
241
|
export default _default;
|
|
230
242
|
|
|
231
243
|
declare interface Field {
|
|
232
|
-
name:
|
|
244
|
+
name: any | DefineComponent;
|
|
233
245
|
sortField: string | null;
|
|
234
246
|
title: string | ((str?: any) => string);
|
|
235
247
|
titleClass: string;
|
|
@@ -272,7 +284,7 @@ export declare function install(Vue: App): void;
|
|
|
272
284
|
|
|
273
285
|
declare function isFieldComponent(fieldName: any): boolean;
|
|
274
286
|
|
|
275
|
-
declare function isFieldSlot(fieldName:
|
|
287
|
+
declare function isFieldSlot(fieldName: any | DefineComponent): boolean;
|
|
276
288
|
|
|
277
289
|
declare function isInCurrentSortGroup(field: Field_2): boolean;
|
|
278
290
|
|
|
@@ -368,6 +380,37 @@ declare interface Props {
|
|
|
368
380
|
}
|
|
369
381
|
|
|
370
382
|
declare interface Props_2 {
|
|
383
|
+
rowData?: {
|
|
384
|
+
[key: string]: any;
|
|
385
|
+
};
|
|
386
|
+
rowIndex?: number;
|
|
387
|
+
rowField?: {
|
|
388
|
+
[key: string]: any;
|
|
389
|
+
} | null;
|
|
390
|
+
isHeader?: boolean;
|
|
391
|
+
title?: string;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
declare interface Props_3 {
|
|
395
|
+
isHeader?: boolean;
|
|
396
|
+
title?: string;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare interface Props_4 {
|
|
400
|
+
rowIndex?: number;
|
|
401
|
+
isHeader?: boolean;
|
|
402
|
+
title?: string;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
declare interface Props_5 {
|
|
406
|
+
css?: {
|
|
407
|
+
[key: string]: string;
|
|
408
|
+
};
|
|
409
|
+
onEachSide?: number;
|
|
410
|
+
firstPage?: number;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
declare interface Props_6 {
|
|
371
414
|
css: {
|
|
372
415
|
[key: string]: string;
|
|
373
416
|
};
|
|
@@ -376,6 +419,12 @@ declare interface Props_2 {
|
|
|
376
419
|
firstPage: number;
|
|
377
420
|
}
|
|
378
421
|
|
|
422
|
+
declare interface Props_7 {
|
|
423
|
+
css?: any;
|
|
424
|
+
infoTemplate?: string;
|
|
425
|
+
noDataTemplate?: string;
|
|
426
|
+
}
|
|
427
|
+
|
|
379
428
|
declare function refresh(): Promise<void>;
|
|
380
429
|
|
|
381
430
|
declare function resetData(): void;
|
|
@@ -409,7 +458,7 @@ declare function toggleField(index: number): void;
|
|
|
409
458
|
|
|
410
459
|
export declare const VuetableColGutter: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
411
460
|
|
|
412
|
-
export declare const VuetableFieldCheckbox: DefineComponent<
|
|
461
|
+
export declare const VuetableFieldCheckbox: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
413
462
|
|
|
414
463
|
export declare const VuetableFieldCheckboxMixin: DefineComponent< {}, {}, {}, {}, {
|
|
415
464
|
toggleCheckbox(dataItem: any, event: Event & {
|
|
@@ -477,7 +526,7 @@ title: string;
|
|
|
477
526
|
vuetable: Record<string, any>;
|
|
478
527
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
479
528
|
|
|
480
|
-
export declare const VuetableFieldHandle: DefineComponent<
|
|
529
|
+
export declare const VuetableFieldHandle: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
481
530
|
|
|
482
531
|
export declare const VuetableFieldMixin: DefineComponent<ExtractPropTypes< {
|
|
483
532
|
rowData: {
|
|
@@ -532,9 +581,9 @@ title: string;
|
|
|
532
581
|
vuetable: Record<string, any>;
|
|
533
582
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
534
583
|
|
|
535
|
-
export declare const VuetableFieldSequence: DefineComponent<
|
|
584
|
+
export declare const VuetableFieldSequence: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
536
585
|
|
|
537
|
-
export declare const VuetablePagination: DefineComponent<
|
|
586
|
+
export declare const VuetablePagination: DefineComponent<Props_5, {
|
|
538
587
|
tablePagination: any;
|
|
539
588
|
$_css: any;
|
|
540
589
|
totalPage: any;
|
|
@@ -552,11 +601,11 @@ setPaginationData: any;
|
|
|
552
601
|
resetData: any;
|
|
553
602
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
554
603
|
"vuetable-pagination:change-page": (page: string | number) => any;
|
|
555
|
-
}, string, PublicProps, Readonly<
|
|
604
|
+
}, string, PublicProps, Readonly<Props_5> & Readonly<{
|
|
556
605
|
"onVuetable-pagination:change-page"?: (page: string | number) => any;
|
|
557
606
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
558
607
|
|
|
559
|
-
export declare const VuetablePaginationDropdown: DefineComponent<
|
|
608
|
+
export declare const VuetablePaginationDropdown: DefineComponent<Props_6, {
|
|
560
609
|
tablePagination: any;
|
|
561
610
|
$_css: any;
|
|
562
611
|
firstPage: number;
|
|
@@ -570,9 +619,9 @@ loadPage: typeof loadPage_2;
|
|
|
570
619
|
isCurrentPage: any;
|
|
571
620
|
setPaginationData: any;
|
|
572
621
|
resetData: any;
|
|
573
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
622
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_6> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
574
623
|
|
|
575
|
-
export declare const VuetablePaginationInfo: DefineComponent<
|
|
624
|
+
export declare const VuetablePaginationInfo: DefineComponent<Props_7, {
|
|
576
625
|
tablePagination: any;
|
|
577
626
|
$_css: Ref<any, any>;
|
|
578
627
|
infoTemplate: Readonly<Ref<string, string>>;
|
|
@@ -580,7 +629,7 @@ noDataTemplate: Readonly<Ref<string, string>>;
|
|
|
580
629
|
paginationInfo: any;
|
|
581
630
|
setPaginationData: any;
|
|
582
631
|
resetData: any;
|
|
583
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
632
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
584
633
|
|
|
585
634
|
export declare const VuetablePaginationInfoMixin: DefineComponent<ExtractPropTypes< {
|
|
586
635
|
css: {
|