@codemonster-ru/vueforge 0.21.0 → 0.23.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 +136 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.ts.mjs +1670 -1326
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/accordion.test.d.ts +1 -0
- package/dist/package/components/__tests__/data-table.test.d.ts +1 -0
- package/dist/package/components/accordion-context.d.ts +15 -0
- package/dist/package/components/accordion-item.vue.d.ts +29 -0
- package/dist/package/components/accordion.vue.d.ts +39 -0
- package/dist/package/components/data-table.vue.d.ts +83 -0
- package/dist/package/config/theme-core.d.ts +66 -0
- package/dist/package/themes/default/components/accordion.d.ts +33 -0
- package/dist/package/themes/default/components/datatable.d.ts +33 -0
- package/dist/package/themes/default/index.d.ts +64 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
export type AccordionValue = string | number;
|
|
3
|
+
export type AccordionVariant = 'filled' | 'outlined';
|
|
4
|
+
export type AccordionSize = 'small' | 'normal' | 'large';
|
|
5
|
+
export type AccordionContext = {
|
|
6
|
+
modelValue: ComputedRef<AccordionValue | AccordionValue[] | undefined>;
|
|
7
|
+
multiple: ComputedRef<boolean>;
|
|
8
|
+
disabled: ComputedRef<boolean>;
|
|
9
|
+
variant: ComputedRef<AccordionVariant>;
|
|
10
|
+
size: ComputedRef<AccordionSize>;
|
|
11
|
+
onToggle: (value: AccordionValue, event: Event) => void;
|
|
12
|
+
getHeaderId: (value: AccordionValue) => string;
|
|
13
|
+
getPanelId: (value: AccordionValue) => string;
|
|
14
|
+
};
|
|
15
|
+
export declare const accordionKey: unique symbol;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AccordionValue } from './accordion-context';
|
|
2
|
+
interface Props {
|
|
3
|
+
value: AccordionValue;
|
|
4
|
+
title?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
unmount?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
title?(_: {}): any;
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
title: string;
|
|
21
|
+
unmount: boolean;
|
|
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,39 @@
|
|
|
1
|
+
import { AccordionSize, AccordionValue, AccordionVariant } from './accordion-context';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: AccordionValue | AccordionValue[];
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
variant?: AccordionVariant;
|
|
7
|
+
size?: AccordionSize;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
ariaLabelledby?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
change: (...args: any[]) => void;
|
|
22
|
+
"update:modelValue": (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
24
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
size: AccordionSize;
|
|
29
|
+
variant: AccordionVariant;
|
|
30
|
+
modelValue: AccordionValue | AccordionValue[];
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined';
|
|
3
|
+
type Align = 'left' | 'center' | 'right';
|
|
4
|
+
type SortOrder = 'asc' | 'desc' | null;
|
|
5
|
+
export interface DataTableColumn {
|
|
6
|
+
field: string;
|
|
7
|
+
header?: string;
|
|
8
|
+
sortable?: boolean;
|
|
9
|
+
align?: Align;
|
|
10
|
+
width?: string;
|
|
11
|
+
minWidth?: string;
|
|
12
|
+
formatter?: (row: Record<string, unknown>, value: unknown, column: DataTableColumn) => string | number;
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
rows?: Array<Record<string, unknown>>;
|
|
16
|
+
columns?: Array<DataTableColumn>;
|
|
17
|
+
rowKey?: string | ((row: Record<string, unknown>, index: number) => string | number);
|
|
18
|
+
sortable?: boolean;
|
|
19
|
+
sortField?: string | null;
|
|
20
|
+
sortOrder?: SortOrder;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
loadingText?: string;
|
|
23
|
+
emptyText?: string;
|
|
24
|
+
striped?: boolean;
|
|
25
|
+
hover?: boolean;
|
|
26
|
+
size?: Size;
|
|
27
|
+
variant?: Variant;
|
|
28
|
+
showHeader?: boolean;
|
|
29
|
+
ariaLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
declare function __VLS_template(): {
|
|
32
|
+
attrs: Partial<{}>;
|
|
33
|
+
slots: Partial<Record<`header-${string}`, (_: {
|
|
34
|
+
column: DataTableColumn;
|
|
35
|
+
}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
36
|
+
column: DataTableColumn;
|
|
37
|
+
}) => any>> & Partial<Record<`cell-${string}`, (_: {
|
|
38
|
+
row: Record<string, unknown>;
|
|
39
|
+
column: DataTableColumn;
|
|
40
|
+
value: unknown;
|
|
41
|
+
index: number;
|
|
42
|
+
}) => any>> & {
|
|
43
|
+
loading?(_: {}): any;
|
|
44
|
+
empty?(_: {}): any;
|
|
45
|
+
};
|
|
46
|
+
refs: {};
|
|
47
|
+
rootEl: HTMLDivElement;
|
|
48
|
+
};
|
|
49
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
50
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
+
sort: (...args: any[]) => void;
|
|
52
|
+
"update:sortField": (...args: any[]) => void;
|
|
53
|
+
"update:sortOrder": (...args: any[]) => void;
|
|
54
|
+
rowClick: (...args: any[]) => void;
|
|
55
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
56
|
+
onSort?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onUpdate:sortField"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
"onUpdate:sortOrder"?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onRowClick?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
size: Size;
|
|
62
|
+
loading: boolean;
|
|
63
|
+
variant: Variant;
|
|
64
|
+
rows: Array<Record<string, unknown>>;
|
|
65
|
+
loadingText: string;
|
|
66
|
+
emptyText: string;
|
|
67
|
+
ariaLabel: string;
|
|
68
|
+
columns: Array<DataTableColumn>;
|
|
69
|
+
rowKey: string | ((row: Record<string, unknown>, index: number) => string | number);
|
|
70
|
+
sortable: boolean;
|
|
71
|
+
sortField: string | null;
|
|
72
|
+
sortOrder: SortOrder;
|
|
73
|
+
striped: boolean;
|
|
74
|
+
hover: boolean;
|
|
75
|
+
showHeader: boolean;
|
|
76
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
77
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -413,6 +413,38 @@ export type TabsTokens = {
|
|
|
413
413
|
panelTextColor?: string;
|
|
414
414
|
disabledOpacity?: string;
|
|
415
415
|
};
|
|
416
|
+
export type AccordionTokens = {
|
|
417
|
+
gap?: string;
|
|
418
|
+
borderRadius?: string;
|
|
419
|
+
borderColor?: string;
|
|
420
|
+
backgroundColor?: string;
|
|
421
|
+
headerGap?: string;
|
|
422
|
+
headerPadding?: string;
|
|
423
|
+
headerFontSize?: string;
|
|
424
|
+
headerFontWeight?: string;
|
|
425
|
+
headerTextColor?: string;
|
|
426
|
+
headerBackgroundColor?: string;
|
|
427
|
+
headerHoverBackgroundColor?: string;
|
|
428
|
+
headerActiveBackgroundColor?: string;
|
|
429
|
+
contentPadding?: string;
|
|
430
|
+
contentTextColor?: string;
|
|
431
|
+
contentBackgroundColor?: string;
|
|
432
|
+
iconSize?: string;
|
|
433
|
+
iconColor?: string;
|
|
434
|
+
dividerColor?: string;
|
|
435
|
+
focusRingShadow?: string;
|
|
436
|
+
disabledOpacity?: string;
|
|
437
|
+
small?: {
|
|
438
|
+
headerPadding?: string;
|
|
439
|
+
headerFontSize?: string;
|
|
440
|
+
contentPadding?: string;
|
|
441
|
+
};
|
|
442
|
+
large?: {
|
|
443
|
+
headerPadding?: string;
|
|
444
|
+
headerFontSize?: string;
|
|
445
|
+
contentPadding?: string;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
416
448
|
export type TooltipTokens = {
|
|
417
449
|
padding?: string;
|
|
418
450
|
borderRadius?: string;
|
|
@@ -434,6 +466,38 @@ export type SkeletonTokens = {
|
|
|
434
466
|
shimmerColor?: string;
|
|
435
467
|
animationDuration?: string;
|
|
436
468
|
};
|
|
469
|
+
export type DataTableTokens = {
|
|
470
|
+
borderColor?: string;
|
|
471
|
+
borderRadius?: string;
|
|
472
|
+
backgroundColor?: string;
|
|
473
|
+
fontSize?: string;
|
|
474
|
+
textColor?: string;
|
|
475
|
+
headerBackgroundColor?: string;
|
|
476
|
+
headerTextColor?: string;
|
|
477
|
+
headerFontSize?: string;
|
|
478
|
+
headerFontWeight?: string;
|
|
479
|
+
headerBorderColor?: string;
|
|
480
|
+
headerGap?: string;
|
|
481
|
+
rowBackgroundColor?: string;
|
|
482
|
+
rowTextColor?: string;
|
|
483
|
+
rowBorderColor?: string;
|
|
484
|
+
cellPadding?: string;
|
|
485
|
+
stripedBackgroundColor?: string;
|
|
486
|
+
hoverBackgroundColor?: string;
|
|
487
|
+
sortIconColor?: string;
|
|
488
|
+
sortIconActiveColor?: string;
|
|
489
|
+
sortIconSize?: string;
|
|
490
|
+
statePadding?: string;
|
|
491
|
+
stateTextColor?: string;
|
|
492
|
+
small?: {
|
|
493
|
+
fontSize?: string;
|
|
494
|
+
cellPadding?: string;
|
|
495
|
+
};
|
|
496
|
+
large?: {
|
|
497
|
+
fontSize?: string;
|
|
498
|
+
cellPadding?: string;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
437
501
|
export type ToastTokens = {
|
|
438
502
|
gap?: string;
|
|
439
503
|
padding?: string;
|
|
@@ -519,6 +583,7 @@ export type ThemeComponentTokens = {
|
|
|
519
583
|
checkbox?: CheckboxTokens;
|
|
520
584
|
radio?: RadioTokens;
|
|
521
585
|
tabs?: TabsTokens;
|
|
586
|
+
accordion?: AccordionTokens;
|
|
522
587
|
input?: InputTokens;
|
|
523
588
|
formField?: FormFieldTokens;
|
|
524
589
|
textarea?: TextareaTokens;
|
|
@@ -534,6 +599,7 @@ export type ThemeComponentTokens = {
|
|
|
534
599
|
switch?: SwitchTokens;
|
|
535
600
|
tooltip?: TooltipTokens;
|
|
536
601
|
skeleton?: SkeletonTokens;
|
|
602
|
+
datatable?: DataTableTokens;
|
|
537
603
|
toast?: ToastTokens;
|
|
538
604
|
alert?: AlertTokens;
|
|
539
605
|
[key: string]: unknown;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
borderRadius: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
headerGap: string;
|
|
7
|
+
headerPadding: string;
|
|
8
|
+
headerFontSize: string;
|
|
9
|
+
headerFontWeight: string;
|
|
10
|
+
headerTextColor: string;
|
|
11
|
+
headerBackgroundColor: string;
|
|
12
|
+
headerHoverBackgroundColor: string;
|
|
13
|
+
headerActiveBackgroundColor: string;
|
|
14
|
+
contentPadding: string;
|
|
15
|
+
contentTextColor: string;
|
|
16
|
+
contentBackgroundColor: string;
|
|
17
|
+
iconSize: string;
|
|
18
|
+
iconColor: string;
|
|
19
|
+
dividerColor: string;
|
|
20
|
+
focusRingShadow: string;
|
|
21
|
+
disabledOpacity: string;
|
|
22
|
+
small: {
|
|
23
|
+
headerPadding: string;
|
|
24
|
+
headerFontSize: string;
|
|
25
|
+
contentPadding: string;
|
|
26
|
+
};
|
|
27
|
+
large: {
|
|
28
|
+
headerPadding: string;
|
|
29
|
+
headerFontSize: string;
|
|
30
|
+
contentPadding: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
borderColor: string;
|
|
3
|
+
borderRadius: string;
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
fontSize: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
headerBackgroundColor: string;
|
|
8
|
+
headerTextColor: string;
|
|
9
|
+
headerFontSize: string;
|
|
10
|
+
headerFontWeight: string;
|
|
11
|
+
headerBorderColor: string;
|
|
12
|
+
headerGap: string;
|
|
13
|
+
rowBackgroundColor: string;
|
|
14
|
+
rowTextColor: string;
|
|
15
|
+
rowBorderColor: string;
|
|
16
|
+
cellPadding: string;
|
|
17
|
+
stripedBackgroundColor: string;
|
|
18
|
+
hoverBackgroundColor: string;
|
|
19
|
+
sortIconColor: string;
|
|
20
|
+
sortIconActiveColor: string;
|
|
21
|
+
sortIconSize: string;
|
|
22
|
+
statePadding: string;
|
|
23
|
+
stateTextColor: string;
|
|
24
|
+
small: {
|
|
25
|
+
fontSize: string;
|
|
26
|
+
cellPadding: string;
|
|
27
|
+
};
|
|
28
|
+
large: {
|
|
29
|
+
fontSize: string;
|
|
30
|
+
cellPadding: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -595,6 +595,38 @@ declare const _default: {
|
|
|
595
595
|
panelTextColor: string;
|
|
596
596
|
disabledOpacity: string;
|
|
597
597
|
};
|
|
598
|
+
accordion: {
|
|
599
|
+
gap: string;
|
|
600
|
+
borderRadius: string;
|
|
601
|
+
borderColor: string;
|
|
602
|
+
backgroundColor: string;
|
|
603
|
+
headerGap: string;
|
|
604
|
+
headerPadding: string;
|
|
605
|
+
headerFontSize: string;
|
|
606
|
+
headerFontWeight: string;
|
|
607
|
+
headerTextColor: string;
|
|
608
|
+
headerBackgroundColor: string;
|
|
609
|
+
headerHoverBackgroundColor: string;
|
|
610
|
+
headerActiveBackgroundColor: string;
|
|
611
|
+
contentPadding: string;
|
|
612
|
+
contentTextColor: string;
|
|
613
|
+
contentBackgroundColor: string;
|
|
614
|
+
iconSize: string;
|
|
615
|
+
iconColor: string;
|
|
616
|
+
dividerColor: string;
|
|
617
|
+
focusRingShadow: string;
|
|
618
|
+
disabledOpacity: string;
|
|
619
|
+
small: {
|
|
620
|
+
headerPadding: string;
|
|
621
|
+
headerFontSize: string;
|
|
622
|
+
contentPadding: string;
|
|
623
|
+
};
|
|
624
|
+
large: {
|
|
625
|
+
headerPadding: string;
|
|
626
|
+
headerFontSize: string;
|
|
627
|
+
contentPadding: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
598
630
|
tooltip: {
|
|
599
631
|
padding: string;
|
|
600
632
|
borderRadius: string;
|
|
@@ -616,6 +648,38 @@ declare const _default: {
|
|
|
616
648
|
shimmerColor: string;
|
|
617
649
|
animationDuration: string;
|
|
618
650
|
};
|
|
651
|
+
datatable: {
|
|
652
|
+
borderColor: string;
|
|
653
|
+
borderRadius: string;
|
|
654
|
+
backgroundColor: string;
|
|
655
|
+
fontSize: string;
|
|
656
|
+
textColor: string;
|
|
657
|
+
headerBackgroundColor: string;
|
|
658
|
+
headerTextColor: string;
|
|
659
|
+
headerFontSize: string;
|
|
660
|
+
headerFontWeight: string;
|
|
661
|
+
headerBorderColor: string;
|
|
662
|
+
headerGap: string;
|
|
663
|
+
rowBackgroundColor: string;
|
|
664
|
+
rowTextColor: string;
|
|
665
|
+
rowBorderColor: string;
|
|
666
|
+
cellPadding: string;
|
|
667
|
+
stripedBackgroundColor: string;
|
|
668
|
+
hoverBackgroundColor: string;
|
|
669
|
+
sortIconColor: string;
|
|
670
|
+
sortIconActiveColor: string;
|
|
671
|
+
sortIconSize: string;
|
|
672
|
+
statePadding: string;
|
|
673
|
+
stateTextColor: string;
|
|
674
|
+
small: {
|
|
675
|
+
fontSize: string;
|
|
676
|
+
cellPadding: string;
|
|
677
|
+
};
|
|
678
|
+
large: {
|
|
679
|
+
fontSize: string;
|
|
680
|
+
cellPadding: string;
|
|
681
|
+
};
|
|
682
|
+
};
|
|
619
683
|
toast: {
|
|
620
684
|
gap: string;
|
|
621
685
|
padding: string;
|