vuetable-next 1.1.1 → 1.2.0
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/README.md +296 -605
- package/dist/chunks/vue2/createVuetable-GewoatYE.cjs +11 -0
- package/dist/chunks/vue2/createVuetable-zwzXUm5x.js +1511 -0
- package/dist/chunks/vue3/createVuetable-CE_PTu-W.cjs +5 -0
- package/dist/chunks/vue3/createVuetable-wZayTXed.js +1733 -0
- package/dist/portable/components/useVuetablePagination.d.ts +1 -0
- package/dist/portable/components/useVuetablePaginationInfo.d.ts +1 -0
- package/dist/public.d.ts +14 -1
- package/dist/structure.css +30 -0
- package/dist/style.css +77 -2
- package/dist/table.d.ts +13 -0
- package/dist/themes/semantic.css +47 -0
- package/dist/themes/tailwind.cjs +55 -0
- package/dist/themes/tailwind.js +35 -0
- package/dist/types/components/Vuetable.vue.d.ts +19 -53
- package/dist/types/components/VuetableContext.d.ts +1 -0
- package/dist/types/components/VuetableDetailHost.vue.d.ts +1 -1
- package/dist/types/components/VuetablePagination.vue.d.ts +13 -16
- package/dist/types/components/VuetablePaginationDropdown.vue.d.ts +13 -16
- package/dist/types/components/VuetablePaginationInfo.vue.d.ts +13 -1
- package/dist/types/components/VuetablePaginationInfoMixin.vue.d.ts +10 -0
- package/dist/types/components/VuetablePaginationMixin.vue.d.ts +10 -0
- package/dist/types/components/fetchAxios.d.ts +2 -0
- package/dist/types/components/resolveVuetableCss.d.ts +2 -0
- package/dist/types/components/useVuetableConfig.d.ts +15 -0
- package/dist/types/components/useVuetableFixedColumns.d.ts +1 -0
- package/dist/types/components/useVuetablePagination.d.ts +1 -0
- package/dist/types/components/useVuetablePaginationInfo.d.ts +1 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/table.d.ts +10 -0
- package/dist/types/themes/tailwind.d.ts +35 -0
- package/dist/vue2-table.cjs +1 -0
- package/dist/vue2-table.js +21 -0
- package/dist/vue2.cjs +14 -21
- package/dist/vue2.js +384 -1805
- package/dist/vue3-table.cjs +1 -0
- package/dist/vue3-table.js +21 -0
- package/dist/vue3.cjs +1 -6
- package/dist/vue3.js +442 -2051
- package/package.json +23 -4
- package/style.css +77 -2
- package/dist/vue2.cjs.map +0 -1
- package/dist/vue2.js.map +0 -1
- package/dist/vue3.cjs.map +0 -1
- package/dist/vue3.js.map +0 -1
|
@@ -11,6 +11,7 @@ export interface VuetablePaginationOptions {
|
|
|
11
11
|
onEachSide?: MaybeRefOrGetter<number>;
|
|
12
12
|
firstPage?: MaybeRefOrGetter<number>;
|
|
13
13
|
css?: MaybeRefOrGetter<Record<string, any>>;
|
|
14
|
+
unstyled?: MaybeRefOrGetter<boolean>;
|
|
14
15
|
emit?: (event: "vuetable-pagination:change-page", page: number | string) => void;
|
|
15
16
|
}
|
|
16
17
|
export interface VuetablePaginationResult {
|
|
@@ -11,6 +11,7 @@ export interface VuetablePaginationInfoOptions {
|
|
|
11
11
|
noDataTemplate?: MaybeRefOrGetter<string>;
|
|
12
12
|
infoTemplate?: MaybeRefOrGetter<string>;
|
|
13
13
|
css?: MaybeRefOrGetter<Record<string, any>>;
|
|
14
|
+
unstyled?: MaybeRefOrGetter<boolean>;
|
|
14
15
|
}
|
|
15
16
|
export interface VuetablePaginationInfoResult {
|
|
16
17
|
tablePagination: Ref<TablePagination | null>;
|
package/dist/public.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface VuetableField {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface VuetableProps {
|
|
41
|
+
unstyled?: boolean;
|
|
41
42
|
fixedMode?: "edges" | "in-place";
|
|
42
43
|
groupBy?: string | null;
|
|
43
44
|
fields?: Array<string | VuetableField>;
|
|
@@ -103,9 +104,21 @@ export interface VuetableMixin {
|
|
|
103
104
|
[key: string]: any;
|
|
104
105
|
}
|
|
105
106
|
|
|
107
|
+
export interface VuetableInstallOptions {
|
|
108
|
+
unstyled?: boolean;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare module "vue/types/options" {
|
|
112
|
+
interface ComponentOptions<V> {
|
|
113
|
+
vuetable?: VuetableInstallOptions & ThisType<V>;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
106
117
|
export declare function install(app: {
|
|
107
118
|
component(name: string, component: any): any;
|
|
108
|
-
|
|
119
|
+
provide?(key: symbol, value: Readonly<VuetableInstallOptions>): unknown;
|
|
120
|
+
prototype?: { $vuetableConfig?: Readonly<VuetableInstallOptions> };
|
|
121
|
+
}, options?: VuetableInstallOptions): void;
|
|
109
122
|
|
|
110
123
|
export declare const Vuetable: VuetableComponent<VuetableInstance> & { install: typeof install };
|
|
111
124
|
export interface CreateVuetableOptions {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.vuetable-root.vuetable-fixed-columns > .vuetable-body-wrapper {
|
|
2
|
+
overflow-x: auto;
|
|
3
|
+
}
|
|
4
|
+
.vuetable > thead > tr > .vuetable-fixed-column,
|
|
5
|
+
.vuetable > tbody > tr > .vuetable-fixed-column,
|
|
6
|
+
.vuetable > tfoot > tr > .vuetable-fixed-column {
|
|
7
|
+
z-index: var(--vuetable-fixed-z-index, 2);
|
|
8
|
+
}
|
|
9
|
+
.vuetable > thead > tr > .vuetable-fixed-header {
|
|
10
|
+
z-index: var(--vuetable-fixed-header-z-index, 3);
|
|
11
|
+
}
|
|
12
|
+
[v-cloak] {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
table.vuetable.fixed-header {
|
|
16
|
+
table-layout: fixed;
|
|
17
|
+
}
|
|
18
|
+
.vuetable > thead > tr > th.sortable {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
.vuetable-head-wrapper {
|
|
22
|
+
overflow-x: hidden;
|
|
23
|
+
}
|
|
24
|
+
.vuetable-body-wrapper.fixed-header {
|
|
25
|
+
position: relative;
|
|
26
|
+
overflow-y: auto;
|
|
27
|
+
}
|
|
28
|
+
.vuetable-th-gutter {
|
|
29
|
+
padding: 0 !important;
|
|
30
|
+
}
|
package/dist/style.css
CHANGED
|
@@ -1,3 +1,78 @@
|
|
|
1
|
-
.vuetable-
|
|
1
|
+
.vuetable-root.vuetable-fixed-columns > .vuetable-body-wrapper {
|
|
2
|
+
overflow-x: auto;
|
|
3
|
+
}
|
|
4
|
+
.vuetable > thead > tr > .vuetable-fixed-column,
|
|
5
|
+
.vuetable > tbody > tr > .vuetable-fixed-column,
|
|
6
|
+
.vuetable > tfoot > tr > .vuetable-fixed-column {
|
|
7
|
+
z-index: var(--vuetable-fixed-z-index, 2);
|
|
8
|
+
}
|
|
9
|
+
.vuetable > thead > tr > .vuetable-fixed-header {
|
|
10
|
+
z-index: var(--vuetable-fixed-header-z-index, 3);
|
|
11
|
+
}
|
|
12
|
+
[v-cloak] {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
table.vuetable.fixed-header {
|
|
16
|
+
table-layout: fixed;
|
|
17
|
+
}
|
|
18
|
+
.vuetable > thead > tr > th.sortable {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
.vuetable-head-wrapper {
|
|
22
|
+
overflow-x: hidden;
|
|
23
|
+
}
|
|
24
|
+
.vuetable-body-wrapper.fixed-header {
|
|
25
|
+
position: relative;
|
|
26
|
+
overflow-y: auto;
|
|
27
|
+
}
|
|
28
|
+
.vuetable-th-gutter {
|
|
29
|
+
padding: 0 !important;
|
|
30
|
+
}
|
|
2
31
|
|
|
3
|
-
.
|
|
32
|
+
.v-application .vuetable.vuetable-semantic-table {
|
|
33
|
+
background-color: #fff !important;
|
|
34
|
+
border-color: rgba(34, 36, 38, 0.15) !important;
|
|
35
|
+
border-top-color: #2185d0 !important;
|
|
36
|
+
}
|
|
37
|
+
.v-application .vuetable-semantic-icon {
|
|
38
|
+
background-color: transparent !important;
|
|
39
|
+
border-color: transparent !important;
|
|
40
|
+
}
|
|
41
|
+
.vuetable.vuetable-styled > thead > tr > .vuetable-fixed-column,
|
|
42
|
+
.vuetable.vuetable-styled > tbody > tr > .vuetable-fixed-column,
|
|
43
|
+
.vuetable.vuetable-styled > tfoot > tr > .vuetable-fixed-column {
|
|
44
|
+
background: var(--vuetable-fixed-background, #fff);
|
|
45
|
+
}
|
|
46
|
+
.vuetable.vuetable-styled > thead > tr > .vuetable-fixed-header {
|
|
47
|
+
background: var(--vuetable-fixed-header-background, var(--vuetable-fixed-background, #fff));
|
|
48
|
+
}
|
|
49
|
+
.vuetable.vuetable-styled > tfoot > tr > .vuetable-fixed-footer {
|
|
50
|
+
background: var(--vuetable-fixed-footer-background, var(--vuetable-fixed-background, #fff));
|
|
51
|
+
}
|
|
52
|
+
.vuetable.vuetable-styled > thead > tr > th.sortable:hover {
|
|
53
|
+
color: #2185d0;
|
|
54
|
+
}
|
|
55
|
+
.vuetable-head-wrapper > table.vuetable.vuetable-styled {
|
|
56
|
+
border-bottom-left-radius: 0;
|
|
57
|
+
border-bottom-right-radius: 0;
|
|
58
|
+
}
|
|
59
|
+
.vuetable-body-wrapper > table.vuetable.vuetable-styled.fixed-header {
|
|
60
|
+
border-top: none !important;
|
|
61
|
+
margin-top: 0 !important;
|
|
62
|
+
border-top-left-radius: 0;
|
|
63
|
+
border-top-right-radius: 0;
|
|
64
|
+
}
|
|
65
|
+
.vuetable.vuetable-styled > tbody > tr > .vuetable-empty-result {
|
|
66
|
+
text-align: center;
|
|
67
|
+
}
|
|
68
|
+
.vuetable.vuetable-styled > thead > tr > .vuetable-th-gutter {
|
|
69
|
+
border-left: none !important;
|
|
70
|
+
border-right: none !important;
|
|
71
|
+
}
|
|
72
|
+
.vuetable-pagination:not(.vuetable-unstyled) {
|
|
73
|
+
background: #f9fafb !important;
|
|
74
|
+
}
|
|
75
|
+
.vuetable-pagination-info.vuetable-styled {
|
|
76
|
+
margin-top: auto;
|
|
77
|
+
margin-bottom: auto;
|
|
78
|
+
}
|
package/dist/table.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VuetableComponent, VuetableInstance } from "./public.js";
|
|
2
|
+
|
|
3
|
+
export { VuetableColumn, createVuetable } from "./public.js";
|
|
4
|
+
export type {
|
|
5
|
+
VuetableComponent, VuetableInstance, VuetableProps, VuetableField, VuetablePaginationData,
|
|
6
|
+
VuetableSortOrder, CreateVuetableOptions, VuetableColumnProps, VuetableColumnDefinition,
|
|
7
|
+
VuetableColumnCellScope, VuetableColumnHeaderScope, VuetableGroupValue, VuetableColumnGroup,
|
|
8
|
+
VuetableTableSlotScope, VuetableTableScope, VuetableHeaderGroup, VuetableFixedSide,
|
|
9
|
+
VuetableCellRegion, VuetableCellProps
|
|
10
|
+
} from "./public.js";
|
|
11
|
+
|
|
12
|
+
export declare const Vuetable: VuetableComponent<VuetableInstance>;
|
|
13
|
+
export default Vuetable;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.v-application .vuetable.vuetable-semantic-table {
|
|
2
|
+
background-color: #fff !important;
|
|
3
|
+
border-color: rgba(34, 36, 38, 0.15) !important;
|
|
4
|
+
border-top-color: #2185d0 !important;
|
|
5
|
+
}
|
|
6
|
+
.v-application .vuetable-semantic-icon {
|
|
7
|
+
background-color: transparent !important;
|
|
8
|
+
border-color: transparent !important;
|
|
9
|
+
}
|
|
10
|
+
.vuetable.vuetable-styled > thead > tr > .vuetable-fixed-column,
|
|
11
|
+
.vuetable.vuetable-styled > tbody > tr > .vuetable-fixed-column,
|
|
12
|
+
.vuetable.vuetable-styled > tfoot > tr > .vuetable-fixed-column {
|
|
13
|
+
background: var(--vuetable-fixed-background, #fff);
|
|
14
|
+
}
|
|
15
|
+
.vuetable.vuetable-styled > thead > tr > .vuetable-fixed-header {
|
|
16
|
+
background: var(--vuetable-fixed-header-background, var(--vuetable-fixed-background, #fff));
|
|
17
|
+
}
|
|
18
|
+
.vuetable.vuetable-styled > tfoot > tr > .vuetable-fixed-footer {
|
|
19
|
+
background: var(--vuetable-fixed-footer-background, var(--vuetable-fixed-background, #fff));
|
|
20
|
+
}
|
|
21
|
+
.vuetable.vuetable-styled > thead > tr > th.sortable:hover {
|
|
22
|
+
color: #2185d0;
|
|
23
|
+
}
|
|
24
|
+
.vuetable-head-wrapper > table.vuetable.vuetable-styled {
|
|
25
|
+
border-bottom-left-radius: 0;
|
|
26
|
+
border-bottom-right-radius: 0;
|
|
27
|
+
}
|
|
28
|
+
.vuetable-body-wrapper > table.vuetable.vuetable-styled.fixed-header {
|
|
29
|
+
border-top: none !important;
|
|
30
|
+
margin-top: 0 !important;
|
|
31
|
+
border-top-left-radius: 0;
|
|
32
|
+
border-top-right-radius: 0;
|
|
33
|
+
}
|
|
34
|
+
.vuetable.vuetable-styled > tbody > tr > .vuetable-empty-result {
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
.vuetable.vuetable-styled > thead > tr > .vuetable-th-gutter {
|
|
38
|
+
border-left: none !important;
|
|
39
|
+
border-right: none !important;
|
|
40
|
+
}
|
|
41
|
+
.vuetable-pagination:not(.vuetable-unstyled) {
|
|
42
|
+
background: #f9fafb !important;
|
|
43
|
+
}
|
|
44
|
+
.vuetable-pagination-info.vuetable-styled {
|
|
45
|
+
margin-top: auto;
|
|
46
|
+
margin-bottom: auto;
|
|
47
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/themes/tailwind.ts
|
|
20
|
+
var tailwind_exports = {};
|
|
21
|
+
__export(tailwind_exports, {
|
|
22
|
+
default: () => tailwind_default,
|
|
23
|
+
tailwind: () => tailwind
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(tailwind_exports);
|
|
26
|
+
var tailwind = {
|
|
27
|
+
table: {
|
|
28
|
+
tableWrapper: "relative w-full",
|
|
29
|
+
tableHeaderClass: "",
|
|
30
|
+
tableBodyClass: "",
|
|
31
|
+
tableClass: "w-full border-separate border-spacing-0 bg-white dark:bg-slate-900 text-left text-sm text-slate-700 dark:text-slate-200 [&>thead>tr>th]:bg-slate-100 dark:[&>thead>tr>th]:bg-slate-800 [&>thead>tr>th]:px-4 [&>thead>tr>th]:py-3 [&>thead>tr>th]:font-semibold [&>tbody>tr>*]:border-b [&>tbody>tr>*]:border-slate-200 dark:[&>tbody>tr>*]:border-slate-700 [&>tbody>tr>*]:px-4 [&>tbody>tr>*]:py-3 [&>tbody>tr>.vuetable-fixed-column]:bg-white dark:[&>tbody>tr>.vuetable-fixed-column]:bg-slate-900 [&>tbody>tr:hover>*]:bg-slate-50 dark:[&>tbody>tr:hover>*]:bg-slate-800 [&>tfoot>tr>*]:px-4 [&>tfoot>tr>*]:py-3 [&>tfoot>tr>.vuetable-fixed-column]:bg-white dark:[&>tfoot>tr>.vuetable-fixed-column]:bg-slate-900",
|
|
32
|
+
loadingClass: "opacity-50",
|
|
33
|
+
ascendingIcon: "",
|
|
34
|
+
descendingIcon: "",
|
|
35
|
+
ascendingClass: "text-blue-600 dark:text-blue-400",
|
|
36
|
+
descendingClass: "text-blue-600 dark:text-blue-400",
|
|
37
|
+
sortableIcon: "",
|
|
38
|
+
handleIcon: ""
|
|
39
|
+
},
|
|
40
|
+
pagination: {
|
|
41
|
+
wrapperClass: "flex flex-wrap items-center justify-end gap-1",
|
|
42
|
+
activeClass: "bg-blue-600 text-white dark:bg-blue-500",
|
|
43
|
+
disabledClass: "pointer-events-none opacity-50",
|
|
44
|
+
pageClass: "cursor-pointer rounded border border-slate-300 px-3 py-2 text-sm dark:border-slate-600 dark:text-slate-200",
|
|
45
|
+
linkClass: "cursor-pointer rounded border border-slate-300 px-3 py-2 text-sm text-slate-700 hover:bg-slate-100 dark:border-slate-600 dark:text-slate-200 dark:hover:bg-slate-800",
|
|
46
|
+
paginationClass: "flex flex-wrap items-center justify-between gap-3",
|
|
47
|
+
paginationInfoClass: "text-sm text-slate-600 dark:text-slate-300",
|
|
48
|
+
dropdownClass: "rounded border border-slate-300 bg-white px-3 py-2 text-sm text-slate-700 dark:border-slate-600 dark:bg-slate-900 dark:text-slate-200",
|
|
49
|
+
icons: { first: "", prev: "", next: "", last: "" }
|
|
50
|
+
},
|
|
51
|
+
paginationInfo: {
|
|
52
|
+
infoClass: "text-sm text-slate-600 dark:text-slate-300"
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var tailwind_default = tailwind;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/themes/tailwind.ts
|
|
2
|
+
var tailwind = {
|
|
3
|
+
table: {
|
|
4
|
+
tableWrapper: "relative w-full",
|
|
5
|
+
tableHeaderClass: "",
|
|
6
|
+
tableBodyClass: "",
|
|
7
|
+
tableClass: "w-full border-separate border-spacing-0 bg-white dark:bg-slate-900 text-left text-sm text-slate-700 dark:text-slate-200 [&>thead>tr>th]:bg-slate-100 dark:[&>thead>tr>th]:bg-slate-800 [&>thead>tr>th]:px-4 [&>thead>tr>th]:py-3 [&>thead>tr>th]:font-semibold [&>tbody>tr>*]:border-b [&>tbody>tr>*]:border-slate-200 dark:[&>tbody>tr>*]:border-slate-700 [&>tbody>tr>*]:px-4 [&>tbody>tr>*]:py-3 [&>tbody>tr>.vuetable-fixed-column]:bg-white dark:[&>tbody>tr>.vuetable-fixed-column]:bg-slate-900 [&>tbody>tr:hover>*]:bg-slate-50 dark:[&>tbody>tr:hover>*]:bg-slate-800 [&>tfoot>tr>*]:px-4 [&>tfoot>tr>*]:py-3 [&>tfoot>tr>.vuetable-fixed-column]:bg-white dark:[&>tfoot>tr>.vuetable-fixed-column]:bg-slate-900",
|
|
8
|
+
loadingClass: "opacity-50",
|
|
9
|
+
ascendingIcon: "",
|
|
10
|
+
descendingIcon: "",
|
|
11
|
+
ascendingClass: "text-blue-600 dark:text-blue-400",
|
|
12
|
+
descendingClass: "text-blue-600 dark:text-blue-400",
|
|
13
|
+
sortableIcon: "",
|
|
14
|
+
handleIcon: ""
|
|
15
|
+
},
|
|
16
|
+
pagination: {
|
|
17
|
+
wrapperClass: "flex flex-wrap items-center justify-end gap-1",
|
|
18
|
+
activeClass: "bg-blue-600 text-white dark:bg-blue-500",
|
|
19
|
+
disabledClass: "pointer-events-none opacity-50",
|
|
20
|
+
pageClass: "cursor-pointer rounded border border-slate-300 px-3 py-2 text-sm dark:border-slate-600 dark:text-slate-200",
|
|
21
|
+
linkClass: "cursor-pointer rounded border border-slate-300 px-3 py-2 text-sm text-slate-700 hover:bg-slate-100 dark:border-slate-600 dark:text-slate-200 dark:hover:bg-slate-800",
|
|
22
|
+
paginationClass: "flex flex-wrap items-center justify-between gap-3",
|
|
23
|
+
paginationInfoClass: "text-sm text-slate-600 dark:text-slate-300",
|
|
24
|
+
dropdownClass: "rounded border border-slate-300 bg-white px-3 py-2 text-sm text-slate-700 dark:border-slate-600 dark:bg-slate-900 dark:text-slate-200",
|
|
25
|
+
icons: { first: "", prev: "", next: "", last: "" }
|
|
26
|
+
},
|
|
27
|
+
paginationInfo: {
|
|
28
|
+
infoClass: "text-sm text-slate-600 dark:text-slate-300"
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var tailwind_default = tailwind;
|
|
32
|
+
export {
|
|
33
|
+
tailwind_default as default,
|
|
34
|
+
tailwind
|
|
35
|
+
};
|
|
@@ -53,6 +53,7 @@ interface Props {
|
|
|
53
53
|
css?: {
|
|
54
54
|
[key: string]: any;
|
|
55
55
|
};
|
|
56
|
+
unstyled?: boolean;
|
|
56
57
|
minRows?: number;
|
|
57
58
|
silent?: boolean;
|
|
58
59
|
noDataTemplate?: string;
|
|
@@ -244,6 +245,11 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
244
245
|
required: false;
|
|
245
246
|
default: () => {};
|
|
246
247
|
};
|
|
248
|
+
unstyled: {
|
|
249
|
+
type: BooleanConstructor;
|
|
250
|
+
required: false;
|
|
251
|
+
default: undefined;
|
|
252
|
+
};
|
|
247
253
|
minRows: {
|
|
248
254
|
type: NumberConstructor;
|
|
249
255
|
required: false;
|
|
@@ -359,6 +365,7 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
359
365
|
}[], region?: import('./useVuetableFixedColumns').VuetableCellRegion) => import('./useVuetableFixedColumns').VuetableCellProps;
|
|
360
366
|
fixedColumnsEnabled: boolean;
|
|
361
367
|
hasFixedRightColumn: boolean;
|
|
368
|
+
headerTableWidth: string | undefined;
|
|
362
369
|
scheduleFixedColumns: () => void;
|
|
363
370
|
getHeaderWidth: (field: {
|
|
364
371
|
[x: string]: unknown;
|
|
@@ -431,32 +438,9 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
431
438
|
sortField: string;
|
|
432
439
|
direction: "asc" | "desc";
|
|
433
440
|
}[];
|
|
434
|
-
css:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
tableBodyClass: string;
|
|
438
|
-
tableClass: string;
|
|
439
|
-
loadingClass: string;
|
|
440
|
-
ascendingIcon: string;
|
|
441
|
-
descendingIcon: string;
|
|
442
|
-
ascendingClass: string;
|
|
443
|
-
descendingClass: string;
|
|
444
|
-
sortableIcon: string;
|
|
445
|
-
handleIcon: string;
|
|
446
|
-
};
|
|
447
|
-
$_css: {
|
|
448
|
-
tableWrapper: string;
|
|
449
|
-
tableHeaderClass: string;
|
|
450
|
-
tableBodyClass: string;
|
|
451
|
-
tableClass: string;
|
|
452
|
-
loadingClass: string;
|
|
453
|
-
ascendingIcon: string;
|
|
454
|
-
descendingIcon: string;
|
|
455
|
-
ascendingClass: string;
|
|
456
|
-
descendingClass: string;
|
|
457
|
-
sortableIcon: string;
|
|
458
|
-
handleIcon: string;
|
|
459
|
-
};
|
|
441
|
+
css: Record<string, any>;
|
|
442
|
+
$_css: Record<string, any>;
|
|
443
|
+
unstyled: boolean;
|
|
460
444
|
isFieldSlot: (fieldName: any | DefineComponent) => boolean;
|
|
461
445
|
getColumnSlot: (name: string, header?: boolean) => ((scope: any) => any) | undefined;
|
|
462
446
|
columnRevision: number;
|
|
@@ -600,19 +584,7 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
600
584
|
}[]>;
|
|
601
585
|
optionsHttp: import('vue').Ref<Record<string, unknown>, Record<string, unknown>>;
|
|
602
586
|
instanceFetch: import('vue').Ref<Promise<AxiosResponse<any, any, {}, any>> | undefined, Promise<AxiosResponse<any, any, {}, any>> | undefined>;
|
|
603
|
-
tableCss: import('vue').ComputedRef<
|
|
604
|
-
tableWrapper: string;
|
|
605
|
-
tableHeaderClass: string;
|
|
606
|
-
tableBodyClass: string;
|
|
607
|
-
tableClass: string;
|
|
608
|
-
loadingClass: string;
|
|
609
|
-
ascendingIcon: string;
|
|
610
|
-
descendingIcon: string;
|
|
611
|
-
ascendingClass: string;
|
|
612
|
-
descendingClass: string;
|
|
613
|
-
sortableIcon: string;
|
|
614
|
-
handleIcon: string;
|
|
615
|
-
}>;
|
|
587
|
+
tableCss: import('vue').ComputedRef<Record<string, any>>;
|
|
616
588
|
dataIsAvailable: import('vue').ComputedRef<boolean>;
|
|
617
589
|
useDetailRow: import('vue').ComputedRef<boolean>;
|
|
618
590
|
hasRowIdentifier: import('vue').ComputedRef<boolean | null>;
|
|
@@ -725,19 +697,7 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
725
697
|
direction: "asc" | "desc";
|
|
726
698
|
}[], SortOrder[]> | undefined;
|
|
727
699
|
}, {}, {
|
|
728
|
-
$_css():
|
|
729
|
-
tableWrapper: string;
|
|
730
|
-
tableHeaderClass: string;
|
|
731
|
-
tableBodyClass: string;
|
|
732
|
-
tableClass: string;
|
|
733
|
-
loadingClass: string;
|
|
734
|
-
ascendingIcon: string;
|
|
735
|
-
descendingIcon: string;
|
|
736
|
-
ascendingClass: string;
|
|
737
|
-
descendingClass: string;
|
|
738
|
-
sortableIcon: string;
|
|
739
|
-
handleIcon: string;
|
|
740
|
-
};
|
|
700
|
+
$_css(): Record<string, any>;
|
|
741
701
|
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
742
702
|
fields: {
|
|
743
703
|
type: PropType<Props["fields"]>;
|
|
@@ -895,6 +855,11 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
895
855
|
required: false;
|
|
896
856
|
default: () => {};
|
|
897
857
|
};
|
|
858
|
+
unstyled: {
|
|
859
|
+
type: BooleanConstructor;
|
|
860
|
+
required: false;
|
|
861
|
+
default: undefined;
|
|
862
|
+
};
|
|
898
863
|
minRows: {
|
|
899
864
|
type: NumberConstructor;
|
|
900
865
|
required: false;
|
|
@@ -941,6 +906,7 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
941
906
|
default: string;
|
|
942
907
|
};
|
|
943
908
|
}>> & Readonly<{}>, {
|
|
909
|
+
unstyled: boolean;
|
|
944
910
|
data: any;
|
|
945
911
|
fields: any[];
|
|
946
912
|
fieldPrefix: string;
|
|
@@ -1230,8 +1196,8 @@ declare const _default: DefineComponent<import('vue').ExtractPropTypes<{
|
|
|
1230
1196
|
default: () => {};
|
|
1231
1197
|
};
|
|
1232
1198
|
}>> & Readonly<{}>, {
|
|
1233
|
-
detailComponent: string | Record<string, any>;
|
|
1234
1199
|
options: Record<string, any>;
|
|
1200
|
+
detailComponent: string | Record<string, any>;
|
|
1235
1201
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1236
1202
|
"vuetable-field-checkbox": DefineComponent<import('vue').ExtractPropTypes<{
|
|
1237
1203
|
rowData: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VuetableTableScope } from './useVuetableColumnGroups';
|
|
2
2
|
import { VuetableCellProps, VuetableCellRegion } from './useVuetableFixedColumns';
|
|
3
3
|
export interface VuetableContext {
|
|
4
|
+
unstyled: boolean;
|
|
4
5
|
hasFixedRightColumn: boolean;
|
|
5
6
|
getHeaderWidth(field: any): string | undefined;
|
|
6
7
|
getColumnKey(field: any): string | number;
|
|
@@ -38,7 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
38
38
|
default: () => {};
|
|
39
39
|
};
|
|
40
40
|
}>> & Readonly<{}>, {
|
|
41
|
-
detailComponent: string | Record<string, any>;
|
|
42
41
|
options: Record<string, any>;
|
|
42
|
+
detailComponent: string | Record<string, any>;
|
|
43
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
export default _default;
|
|
@@ -4,6 +4,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
required: false;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
|
+
unstyled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
7
12
|
onEachSide: {
|
|
8
13
|
type: NumberConstructor;
|
|
9
14
|
required: false;
|
|
@@ -15,22 +20,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
20
|
default: number;
|
|
16
21
|
};
|
|
17
22
|
}>, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
activeClass: string;
|
|
21
|
-
disabledClass: string;
|
|
22
|
-
pageClass: string;
|
|
23
|
-
linkClass: string;
|
|
24
|
-
paginationClass: string;
|
|
25
|
-
paginationInfoClass: string;
|
|
26
|
-
dropdownClass: string;
|
|
27
|
-
icons: {
|
|
28
|
-
first: string;
|
|
29
|
-
prev: string;
|
|
30
|
-
next: string;
|
|
31
|
-
last: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
23
|
+
resolvedUnstyled: import('vue').ComputedRef<boolean>;
|
|
24
|
+
tableCss: import('vue').ComputedRef<Record<string, any>>;
|
|
34
25
|
tablePagination: import('vue').Ref<import('./useVuetablePagination').TablePagination | null, import('./useVuetablePagination').TablePagination | null>;
|
|
35
26
|
totalPage: import('vue').ComputedRef<number>;
|
|
36
27
|
lastPage: import('vue').ComputedRef<number>;
|
|
@@ -49,6 +40,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
49
40
|
required: false;
|
|
50
41
|
default: () => {};
|
|
51
42
|
};
|
|
43
|
+
unstyled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
52
48
|
onEachSide: {
|
|
53
49
|
type: NumberConstructor;
|
|
54
50
|
required: false;
|
|
@@ -62,6 +58,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
62
58
|
}>> & Readonly<{
|
|
63
59
|
"onVuetable-pagination:change-page"?: ((...args: any[]) => any) | undefined;
|
|
64
60
|
}>, {
|
|
61
|
+
unstyled: boolean;
|
|
65
62
|
css: Record<string, any>;
|
|
66
63
|
firstPage: number;
|
|
67
64
|
onEachSide: number;
|
|
@@ -4,6 +4,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
required: false;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
|
+
unstyled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
7
12
|
pageText: {
|
|
8
13
|
type: StringConstructor;
|
|
9
14
|
required: false;
|
|
@@ -20,23 +25,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
25
|
default: number;
|
|
21
26
|
};
|
|
22
27
|
}>, {
|
|
28
|
+
resolvedUnstyled: import('vue').ComputedRef<boolean>;
|
|
23
29
|
emitter: import('mitt').Emitter<Record<import('mitt').EventType, unknown>>;
|
|
24
|
-
tableCss:
|
|
25
|
-
wrapperClass: string;
|
|
26
|
-
activeClass: string;
|
|
27
|
-
disabledClass: string;
|
|
28
|
-
pageClass: string;
|
|
29
|
-
linkClass: string;
|
|
30
|
-
paginationClass: string;
|
|
31
|
-
paginationInfoClass: string;
|
|
32
|
-
dropdownClass: string;
|
|
33
|
-
icons: {
|
|
34
|
-
first: string;
|
|
35
|
-
prev: string;
|
|
36
|
-
next: string;
|
|
37
|
-
last: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
30
|
+
tableCss: import('vue').ComputedRef<Record<string, any>>;
|
|
40
31
|
tablePagination: import('vue').Ref<import('./useVuetablePagination.ts').TablePagination | null, import('./useVuetablePagination.ts').TablePagination | null>;
|
|
41
32
|
totalPage: import('vue').ComputedRef<number>;
|
|
42
33
|
lastPage: import('vue').ComputedRef<number>;
|
|
@@ -56,6 +47,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
56
47
|
required: false;
|
|
57
48
|
default: () => {};
|
|
58
49
|
};
|
|
50
|
+
unstyled: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
required: false;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
59
55
|
pageText: {
|
|
60
56
|
type: StringConstructor;
|
|
61
57
|
required: false;
|
|
@@ -74,6 +70,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
74
70
|
}>> & Readonly<{
|
|
75
71
|
"onVuetable-pagination:change-page"?: ((...args: any[]) => any) | undefined;
|
|
76
72
|
}>, {
|
|
73
|
+
unstyled: boolean;
|
|
77
74
|
css: Record<string, any>;
|
|
78
75
|
firstPage: number;
|
|
79
76
|
onEachSide: number;
|
|
@@ -4,6 +4,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
required: false;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
|
+
unstyled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
7
12
|
infoTemplate: {
|
|
8
13
|
type: StringConstructor;
|
|
9
14
|
required: false;
|
|
@@ -15,17 +20,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
20
|
default: string;
|
|
16
21
|
};
|
|
17
22
|
}>, {
|
|
23
|
+
resolvedUnstyled: import('vue').ComputedRef<boolean>;
|
|
18
24
|
tablePagination: import('vue').Ref<import('./useVuetablePaginationInfo.ts').TablePagination | null, import('./useVuetablePaginationInfo.ts').TablePagination | null>;
|
|
19
25
|
paginationInfo: import('vue').ComputedRef<string>;
|
|
20
26
|
setPaginationData: (value: import('./useVuetablePaginationInfo.ts').TablePagination | null) => void;
|
|
21
27
|
resetData: () => void;
|
|
22
|
-
tableCss: import('vue').
|
|
28
|
+
tableCss: import('vue').ComputedRef<Record<string, any>>;
|
|
23
29
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
30
|
css: {
|
|
25
31
|
type: null;
|
|
26
32
|
required: false;
|
|
27
33
|
default: () => {};
|
|
28
34
|
};
|
|
35
|
+
unstyled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
required: false;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
29
40
|
infoTemplate: {
|
|
30
41
|
type: StringConstructor;
|
|
31
42
|
required: false;
|
|
@@ -37,6 +48,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
37
48
|
default: string;
|
|
38
49
|
};
|
|
39
50
|
}>> & Readonly<{}>, {
|
|
51
|
+
unstyled: boolean;
|
|
40
52
|
css: any;
|
|
41
53
|
noDataTemplate: string;
|
|
42
54
|
infoTemplate: string;
|
|
@@ -8,6 +8,10 @@ interface Data {
|
|
|
8
8
|
customCss: Record<string, any>;
|
|
9
9
|
}
|
|
10
10
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
unstyled: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
11
15
|
css: {
|
|
12
16
|
type: ObjectConstructor;
|
|
13
17
|
default: () => {};
|
|
@@ -21,12 +25,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
21
25
|
default: string;
|
|
22
26
|
};
|
|
23
27
|
}>, {}, Data, {
|
|
28
|
+
resolvedUnstyled(): boolean;
|
|
24
29
|
paginationInfo(): string;
|
|
25
30
|
}, {
|
|
26
31
|
mergeCss(): void;
|
|
27
32
|
setPaginationData(tablePagination: TablePagination): void;
|
|
28
33
|
resetData(): void;
|
|
29
34
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
unstyled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
30
39
|
css: {
|
|
31
40
|
type: ObjectConstructor;
|
|
32
41
|
default: () => {};
|
|
@@ -40,6 +49,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
40
49
|
default: string;
|
|
41
50
|
};
|
|
42
51
|
}>> & Readonly<{}>, {
|
|
52
|
+
unstyled: boolean;
|
|
43
53
|
css: Record<string, any>;
|
|
44
54
|
noDataTemplate: string;
|
|
45
55
|
infoTemplate: string;
|