@contentstudio/ui 0.2.24 → 0.2.25-rc.24
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/components/Accordion/Accordion.vue.d.ts +58 -0
- package/dist/components/Accordion/AccordionItem.vue.d.ts +63 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion/types.d.ts +15 -0
- package/dist/components/ActionIcon/ActionIcon.vue.d.ts +17 -0
- package/dist/components/ActionIcon/types.d.ts +17 -0
- package/dist/components/Card/Card.vue.d.ts +17 -2
- package/dist/components/Card/CardSection.vue.d.ts +2 -0
- package/dist/components/Card/types.d.ts +6 -2
- package/dist/components/Modal/Modal.vue.d.ts +19 -0
- package/dist/components/Modal/types.d.ts +4 -0
- package/dist/components/Popover/Popover.vue.d.ts +11 -6
- package/dist/components/Popover/types.d.ts +2 -0
- package/dist/components/Stepper/Stepper.vue.d.ts +65 -0
- package/dist/components/Stepper/StepperItem.vue.d.ts +79 -0
- package/dist/components/Stepper/index.d.ts +3 -0
- package/dist/components/Stepper/types.d.ts +14 -0
- package/dist/components/Table/Table.vue.d.ts +78 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/types.d.ts +25 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.js +17900 -16651
- package/dist/index.umd.cjs +1634 -1631
- package/dist/style.css +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { TableColumn, TableSortState, TableRowClickPayload, TableHeaderClickPayload } from './types';
|
|
2
|
+
declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
4
|
+
"onUpdate:selectedRows"?: ((value: (string | number)[]) => any) | undefined;
|
|
5
|
+
"onUpdate:sort"?: ((value: TableSortState | null) => any) | undefined;
|
|
6
|
+
"onRow-click"?: ((payload: TableRowClickPayload<T>) => any) | undefined;
|
|
7
|
+
"onHeader-click"?: ((payload: TableHeaderClickPayload) => any) | undefined;
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:selectedRows" | "onUpdate:sort" | "onRow-click" | "onHeader-click"> & {
|
|
9
|
+
columns: TableColumn<T>[];
|
|
10
|
+
rows: T[];
|
|
11
|
+
rowKey?: string | ((row: T) => string | number);
|
|
12
|
+
size?: "sm" | "md";
|
|
13
|
+
rowHeight?: string | number;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
striped?: boolean;
|
|
17
|
+
hoverable?: boolean;
|
|
18
|
+
hoverClass?: string;
|
|
19
|
+
stickyHeader?: boolean;
|
|
20
|
+
withRowSelection?: boolean;
|
|
21
|
+
checkboxSize?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
22
|
+
selectedRows?: (string | number)[];
|
|
23
|
+
sort?: TableSortState | null;
|
|
24
|
+
wrapperClass?: string;
|
|
25
|
+
virtual?: boolean;
|
|
26
|
+
estimatedRowHeight?: number;
|
|
27
|
+
}> & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
28
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
29
|
+
attrs: any;
|
|
30
|
+
slots: Partial<Record<`header-cell-${string}`, (_: {
|
|
31
|
+
column: TableColumn<T>;
|
|
32
|
+
}) => any>> & Partial<Record<"cell-actions", (_: {
|
|
33
|
+
row: T;
|
|
34
|
+
value: any;
|
|
35
|
+
column: TableColumn<T>;
|
|
36
|
+
rowIndex: number;
|
|
37
|
+
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
38
|
+
row: T;
|
|
39
|
+
value: any;
|
|
40
|
+
column: TableColumn<T>;
|
|
41
|
+
rowIndex: number;
|
|
42
|
+
}) => any>> & Partial<Record<"cell-actions", (_: {
|
|
43
|
+
row: T;
|
|
44
|
+
value: any;
|
|
45
|
+
column: TableColumn<T>;
|
|
46
|
+
rowIndex: number;
|
|
47
|
+
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
48
|
+
row: T;
|
|
49
|
+
value: any;
|
|
50
|
+
column: TableColumn<T>;
|
|
51
|
+
rowIndex: number;
|
|
52
|
+
}) => any>> & {
|
|
53
|
+
loading?(_: {}): any;
|
|
54
|
+
empty?(_: {}): any;
|
|
55
|
+
actions?(_: {
|
|
56
|
+
row: T;
|
|
57
|
+
rowIndex: number;
|
|
58
|
+
}): any;
|
|
59
|
+
actions?(_: {
|
|
60
|
+
row: T;
|
|
61
|
+
rowIndex: number;
|
|
62
|
+
}): any;
|
|
63
|
+
default?(_: {}): any;
|
|
64
|
+
footer?(_: {}): any;
|
|
65
|
+
};
|
|
66
|
+
emit: {
|
|
67
|
+
(e: "update:selectedRows", value: (string | number)[]): void;
|
|
68
|
+
(e: "update:sort", value: TableSortState | null): void;
|
|
69
|
+
(e: "row-click", payload: TableRowClickPayload<T>): void;
|
|
70
|
+
(e: "header-click", payload: TableHeaderClickPayload): void;
|
|
71
|
+
};
|
|
72
|
+
}>) => import('vue').VNode & {
|
|
73
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
74
|
+
};
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_PrettifyLocal<T> = {
|
|
77
|
+
[K in keyof T]: T[K];
|
|
78
|
+
} & {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface TableColumn<T = Record<string, any>> {
|
|
2
|
+
key: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
minWidth?: string | number;
|
|
6
|
+
align?: 'left' | 'center' | 'right';
|
|
7
|
+
sortable?: boolean;
|
|
8
|
+
sticky?: 'left' | 'right';
|
|
9
|
+
headerClass?: string;
|
|
10
|
+
cellClass?: string;
|
|
11
|
+
topAlign?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface TableSortState {
|
|
14
|
+
key: string;
|
|
15
|
+
direction: 'asc' | 'desc';
|
|
16
|
+
}
|
|
17
|
+
export interface TableRowClickPayload<T = Record<string, any>> {
|
|
18
|
+
row: T;
|
|
19
|
+
rowIndex: number;
|
|
20
|
+
event: MouseEvent;
|
|
21
|
+
}
|
|
22
|
+
export interface TableHeaderClickPayload {
|
|
23
|
+
column: TableColumn;
|
|
24
|
+
event: MouseEvent;
|
|
25
|
+
}
|