@wisemen/vue-core-components 1.12.1 → 1.13.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/dist/{AlertCircleIcon-DDmde2YO.js → AlertCircleIcon-Osj38Uxx.js} +1 -1
- package/dist/{AlertTriangleIcon-DbCLi54c.js → AlertTriangleIcon-DW2k0_tY.js} +1 -1
- package/dist/{ArrowDownIcon-Ddff90Tq.js → ArrowDownIcon-Z8uLQAGC.js} +1 -1
- package/dist/{ArrowLeftIcon-Lz8tekU8.js → ArrowLeftIcon-ChrRmjQq.js} +1 -1
- package/dist/{ArrowRightIcon-B2-DiVgx.js → ArrowRightIcon-U8_lHDlm.js} +1 -1
- package/dist/{ArrowUpIcon-6SSIxm_3.js → ArrowUpIcon-CZ2AWOz8.js} +1 -1
- package/dist/{CalendarIcon-Dg3ua1pV.js → CalendarIcon-DLnK5D3m.js} +1 -1
- package/dist/{CheckCircleIcon-IthRtbq-.js → CheckCircleIcon-D7eGMX-4.js} +1 -1
- package/dist/{CheckIcon-Dx4iUBsR.js → CheckIcon-D2dFRw9r.js} +1 -1
- package/dist/{ChevronLeftDoubleIcon-Bfloqxkw.js → ChevronLeftDoubleIcon-D41EDFcc.js} +1 -1
- package/dist/{ChevronLeftIcon-BCDW9yjO.js → ChevronLeftIcon-qLqV3hY9.js} +1 -1
- package/dist/{ChevronRightDoubleIcon-BYC5sEya.js → ChevronRightDoubleIcon-DUyQ_UBw.js} +1 -1
- package/dist/{ChevronRightIcon-B0MAeOxM.js → ChevronRightIcon-DMez0v5h.js} +1 -1
- package/dist/{CloseIcon-C9yG3441.js → CloseIcon-BRAqiIfh.js} +1 -1
- package/dist/{EyeIcon-B3-JmiEr.js → EyeIcon-BXsjW_6_.js} +1 -1
- package/dist/{EyeOffIcon-1T6Wz162.js → EyeOffIcon-Curu6YMU.js} +1 -1
- package/dist/{InfoCircleIcon-ByTGNygB.js → InfoCircleIcon-CFp_s-7e.js} +1 -1
- package/dist/{MinusIcon-BiwicMHY.js → MinusIcon-DUyl06qr.js} +1 -1
- package/dist/{PlusIcon-CYP-QLY4.js → PlusIcon-DuhLXOVV.js} +1 -1
- package/dist/{SearchIcon-XLNWP0ce.js → SearchIcon-FuXj3KYU.js} +1 -1
- package/dist/{SelectIconRight-Cxo-acUV.js → SelectIconRight-DuMv6Sr1.js} +1 -1
- package/dist/{StarsIcon-Bw_fIBcF.js → StarsIcon-DqnRtR23.js} +1 -1
- package/dist/{SwitchVerticalIcon-Dtl4f4Fc.js → SwitchVerticalIcon-CJM2isgr.js} +1 -1
- package/dist/{TranslateIcon-BZ2DYUni.js → TranslateIcon-JRPwy4XY.js} +1 -1
- package/dist/class-variant/classVariant.type.d.ts +7 -0
- package/dist/components/config-provider/ConfigProvider.d.ts +5 -0
- package/dist/components/config-provider/config.context.d.ts +1 -0
- package/dist/components/dropdown-menu/parts/DropdownMenuItem.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/table-next/index.d.ts +11 -0
- package/dist/components/table-next/parts/TableBody.d.ts +17 -0
- package/dist/components/table-next/parts/TableCell.d.ts +24 -0
- package/dist/components/table-next/parts/TableCellSkeleton.d.ts +2 -0
- package/dist/components/table-next/parts/TableContent.d.ts +17 -0
- package/dist/components/table-next/parts/TableHeader.d.ts +17 -0
- package/dist/components/table-next/parts/TableHeaderCell.d.ts +29 -0
- package/dist/components/table-next/parts/TableHiddenResultsHint.d.ts +8 -0
- package/dist/components/table-next/parts/TableRoot.d.ts +27 -0
- package/dist/components/table-next/parts/TableRow.d.ts +23 -0
- package/dist/components/table-next/parts/TableScrollContainer.d.ts +21 -0
- package/dist/components/table-next/table.composable.d.ts +7 -0
- package/dist/components/table-next/table.context.d.ts +15 -0
- package/dist/components/table-next/table.props.d.ts +21 -0
- package/dist/components/table-next/table.style.d.ts +37 -0
- package/dist/components/table-next/table.type.d.ts +12 -0
- package/dist/{index-BueSa_-n.js → index-BBGGCoRq.js} +8013 -8161
- package/dist/index.js +146 -136
- package/dist/index.umd +14 -14
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -21,6 +21,7 @@ import { createRadioGroupItemStyle } from '../components/radio-group-item/radioG
|
|
|
21
21
|
import { createSelectStyle } from '../components/select/style/select.style';
|
|
22
22
|
import { createSwitchStyle } from '../components/switch/switch.style';
|
|
23
23
|
import { createTableStyle } from '../components/table/table.style';
|
|
24
|
+
import { createTableNextStyle } from '../components/table-next/table.style';
|
|
24
25
|
import { createTabsStyle } from '../components/tabs/shared/tabs.style';
|
|
25
26
|
import { createTextFieldStyle } from '../components/text-field/textField.style';
|
|
26
27
|
import { createTextareaStyle } from '../components/textarea/textarea.style';
|
|
@@ -139,6 +140,12 @@ export interface ComponentMap {
|
|
|
139
140
|
headerCellButton: 'button';
|
|
140
141
|
};
|
|
141
142
|
};
|
|
143
|
+
tableNext: {
|
|
144
|
+
style: typeof createTableNextStyle;
|
|
145
|
+
children: {
|
|
146
|
+
headerCellButton: 'button';
|
|
147
|
+
};
|
|
148
|
+
};
|
|
142
149
|
tabs: {
|
|
143
150
|
style: typeof createTabsStyle;
|
|
144
151
|
children: {
|
|
@@ -5,6 +5,11 @@ type __VLS_Props = {
|
|
|
5
5
|
* @default false
|
|
6
6
|
*/
|
|
7
7
|
areKeyboardShortcutHintsHidden?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to automatically close toast notifications after a certain time. This does not apply to error toasts.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
autoCloseToast?: boolean;
|
|
8
13
|
/**
|
|
9
14
|
* The Google Maps API key (used for example to validate addresses using the AddressAutocomplete component).
|
|
10
15
|
* @default null
|
|
@@ -2,6 +2,7 @@ import { ComputedRef } from 'vue';
|
|
|
2
2
|
import { ToastPosition } from '../toast/toast.composable';
|
|
3
3
|
interface ConfigContext {
|
|
4
4
|
areKeyboardShortcutHintsHidden: ComputedRef<boolean>;
|
|
5
|
+
autoCloseToast: ComputedRef<boolean>;
|
|
5
6
|
googleMapsApiKey: string | null;
|
|
6
7
|
locale: ComputedRef<string>;
|
|
7
8
|
pagination?: {
|
|
@@ -10,9 +10,9 @@ declare function __VLS_template(): {
|
|
|
10
10
|
};
|
|
11
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
12
|
declare const __VLS_component: import('vue').DefineComponent<DropdownMenuItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
-
select: () => any;
|
|
13
|
+
select: (event: Event) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<DropdownMenuItemProps> & Readonly<{
|
|
15
|
-
onSelect?: (() => any) | undefined;
|
|
15
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
icon: import('../../..').Icon | null;
|
|
18
18
|
testId: string | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as VcTableBodyNext } from './parts/TableBody';
|
|
2
|
+
export { default as VcTableCellNext } from './parts/TableCell';
|
|
3
|
+
export { default as VcTableCellSkeletonNext } from './parts/TableCellSkeleton';
|
|
4
|
+
export { default as VcTableContentNext } from './parts/TableContent';
|
|
5
|
+
export { default as VcTableHeaderNext } from './parts/TableHeader';
|
|
6
|
+
export { default as VcTableHeaderCellNext } from './parts/TableHeaderCell';
|
|
7
|
+
export { default as VcTableHiddenResultsHintNext } from './parts/TableHiddenResultsHint';
|
|
8
|
+
export { default as VcTableRootNext } from './parts/TableRoot';
|
|
9
|
+
export { default as VcTableRowNext } from './parts/TableRow';
|
|
10
|
+
export { default as VcTableScrollContainerNext } from './parts/TableScrollContainer';
|
|
11
|
+
export { type TableRowAction } from './table.type';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
hasInteractiveContent?: boolean;
|
|
3
|
+
isPrimaryCell?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
isPrimaryCell: boolean;
|
|
16
|
+
hasInteractiveContent: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isSortable?: boolean;
|
|
3
|
+
sortDirection?: 'asc' | 'desc' | null;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
sort: () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onSort?: (() => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
isSortable: boolean;
|
|
21
|
+
sortDirection: "asc" | "desc" | null;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isEmpty: boolean;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
activeFilterCount: number;
|
|
5
|
+
onClear: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TableProps } from '../table.props';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {
|
|
6
|
+
hasReachedHorizontalEnd: boolean;
|
|
7
|
+
hasVerticalOverflow: boolean;
|
|
8
|
+
isScrolledHorizontally: boolean;
|
|
9
|
+
}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TableProps> & Readonly<{}>, {
|
|
16
|
+
variant: null;
|
|
17
|
+
classConfig: import('../../../class-variant/classVariant.type').ResolvedClassConfig<"tableNext"> | null;
|
|
18
|
+
isFirstColumnSticky: boolean;
|
|
19
|
+
isLastColumnSticky: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TableRowAction } from '../table.type';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
action?: TableRowAction | null;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
action: TableRowAction | null;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
tableScrollContainerRef: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
13
|
+
tableScrollContainerRef: HTMLDivElement;
|
|
14
|
+
}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useTable(): {
|
|
2
|
+
hasReachedHorizontalEnd: import('vue').ComputedRef<boolean>;
|
|
3
|
+
hasVerticalOverflow: import('vue').ComputedRef<boolean>;
|
|
4
|
+
isScrolledHorizontally: import('vue').ComputedRef<boolean>;
|
|
5
|
+
setTableScrollContainerRef: (el: HTMLElement) => void;
|
|
6
|
+
tableScrollContainerRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
|
|
3
|
+
import { TableProps } from './table.props';
|
|
4
|
+
import { CreateTableNextStyle } from './table.style';
|
|
5
|
+
import { PropsToComputed } from '../../utils/props.util';
|
|
6
|
+
interface TableContext extends PropsToComputed<TableProps> {
|
|
7
|
+
hasReachedHorizontalEnd: ComputedRef<boolean>;
|
|
8
|
+
hasVerticalOverflow: ComputedRef<boolean>;
|
|
9
|
+
isScrolledHorizontally: ComputedRef<boolean>;
|
|
10
|
+
customClassConfig: ComputedRef<ResolvedClassConfig<'tableNext'>>;
|
|
11
|
+
setTableScrollContainerRef: (el: HTMLElement) => void;
|
|
12
|
+
style: ComputedRef<CreateTableNextStyle>;
|
|
13
|
+
}
|
|
14
|
+
export declare const useProvideTableContext: (context: TableContext) => TableContext, useInjectTableContext: <TFallback extends TableContext | null = TableContext>(fallback?: TFallback | undefined) => TFallback extends null ? TableContext | null : TableContext;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomizableElement, GetComponentProp } from '../../class-variant/classVariant.type';
|
|
2
|
+
export interface TableProps extends CustomizableElement<'tableNext'> {
|
|
3
|
+
/**
|
|
4
|
+
* Makes the first column sticky (fixed) when horizontally scrolling.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
isFirstColumnSticky?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Makes the last column sticky (fixed) when horizontally scrolling.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
isLastColumnSticky?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The grid template columns style for the table.
|
|
15
|
+
*/
|
|
16
|
+
gridTemplateColumns: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the visual style of the table.
|
|
19
|
+
*/
|
|
20
|
+
variant?: GetComponentProp<'tableNext', 'variant'> | null;
|
|
21
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const createTableNextStyle: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
variant: {};
|
|
4
|
+
}, {
|
|
5
|
+
cell: string;
|
|
6
|
+
cellSkeleton: string;
|
|
7
|
+
header: string;
|
|
8
|
+
headerCell: string;
|
|
9
|
+
headerCellLabel: string;
|
|
10
|
+
hiddenResultsHint: string;
|
|
11
|
+
root: string;
|
|
12
|
+
row: string;
|
|
13
|
+
}, undefined, {
|
|
14
|
+
variant: {};
|
|
15
|
+
}, {
|
|
16
|
+
cell: string;
|
|
17
|
+
cellSkeleton: string;
|
|
18
|
+
header: string;
|
|
19
|
+
headerCell: string;
|
|
20
|
+
headerCellLabel: string;
|
|
21
|
+
hiddenResultsHint: string;
|
|
22
|
+
root: string;
|
|
23
|
+
row: string;
|
|
24
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
25
|
+
variant: {};
|
|
26
|
+
}, {
|
|
27
|
+
cell: string;
|
|
28
|
+
cellSkeleton: string;
|
|
29
|
+
header: string;
|
|
30
|
+
headerCell: string;
|
|
31
|
+
headerCellLabel: string;
|
|
32
|
+
hiddenResultsHint: string;
|
|
33
|
+
root: string;
|
|
34
|
+
row: string;
|
|
35
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
36
|
+
export type TableNextStyle = VariantProps<typeof createTableNextStyle>;
|
|
37
|
+
export type CreateTableNextStyle = ReturnType<typeof createTableNextStyle>;
|