@codemonster-ru/vueforge 0.22.0 → 0.24.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.
@@ -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
+ };
@@ -0,0 +1,36 @@
1
+ type ProgressVariant = 'linear' | 'circular';
2
+ type ProgressSize = 'small' | 'normal' | 'large';
3
+ type ProgressSeverity = 'neutral' | 'info' | 'success' | 'warn' | 'danger';
4
+ interface Props {
5
+ value?: number | null;
6
+ variant?: ProgressVariant;
7
+ size?: ProgressSize;
8
+ label?: string;
9
+ showValue?: boolean;
10
+ severity?: ProgressSeverity;
11
+ ariaLabel?: string;
12
+ }
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
23
+ label: string;
24
+ size: ProgressSize;
25
+ variant: ProgressVariant;
26
+ severity: ProgressSeverity;
27
+ ariaLabel: string;
28
+ showValue: boolean;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -466,6 +466,75 @@ export type SkeletonTokens = {
466
466
  shimmerColor?: string;
467
467
  animationDuration?: string;
468
468
  };
469
+ export type ProgressTokens = {
470
+ width?: string;
471
+ height?: string;
472
+ borderRadius?: string;
473
+ backgroundColor?: string;
474
+ barColor?: string;
475
+ labelColor?: string;
476
+ labelFontSize?: string;
477
+ gap?: string;
478
+ circularSize?: string;
479
+ circularThickness?: string;
480
+ animationDuration?: string;
481
+ info?: {
482
+ barColor?: string;
483
+ };
484
+ success?: {
485
+ barColor?: string;
486
+ };
487
+ warn?: {
488
+ barColor?: string;
489
+ };
490
+ danger?: {
491
+ barColor?: string;
492
+ };
493
+ small?: {
494
+ height?: string;
495
+ labelFontSize?: string;
496
+ circularSize?: string;
497
+ circularThickness?: string;
498
+ };
499
+ large?: {
500
+ height?: string;
501
+ labelFontSize?: string;
502
+ circularSize?: string;
503
+ circularThickness?: string;
504
+ };
505
+ };
506
+ export type DataTableTokens = {
507
+ borderColor?: string;
508
+ borderRadius?: string;
509
+ backgroundColor?: string;
510
+ fontSize?: string;
511
+ textColor?: string;
512
+ headerBackgroundColor?: string;
513
+ headerTextColor?: string;
514
+ headerFontSize?: string;
515
+ headerFontWeight?: string;
516
+ headerBorderColor?: string;
517
+ headerGap?: string;
518
+ rowBackgroundColor?: string;
519
+ rowTextColor?: string;
520
+ rowBorderColor?: string;
521
+ cellPadding?: string;
522
+ stripedBackgroundColor?: string;
523
+ hoverBackgroundColor?: string;
524
+ sortIconColor?: string;
525
+ sortIconActiveColor?: string;
526
+ sortIconSize?: string;
527
+ statePadding?: string;
528
+ stateTextColor?: string;
529
+ small?: {
530
+ fontSize?: string;
531
+ cellPadding?: string;
532
+ };
533
+ large?: {
534
+ fontSize?: string;
535
+ cellPadding?: string;
536
+ };
537
+ };
469
538
  export type ToastTokens = {
470
539
  gap?: string;
471
540
  padding?: string;
@@ -567,6 +636,8 @@ export type ThemeComponentTokens = {
567
636
  switch?: SwitchTokens;
568
637
  tooltip?: TooltipTokens;
569
638
  skeleton?: SkeletonTokens;
639
+ progress?: ProgressTokens;
640
+ datatable?: DataTableTokens;
570
641
  toast?: ToastTokens;
571
642
  alert?: AlertTokens;
572
643
  [key: string]: unknown;
@@ -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;
@@ -0,0 +1,38 @@
1
+ declare const _default: {
2
+ width: string;
3
+ height: string;
4
+ borderRadius: string;
5
+ backgroundColor: string;
6
+ barColor: string;
7
+ labelColor: string;
8
+ labelFontSize: string;
9
+ gap: string;
10
+ circularSize: string;
11
+ circularThickness: string;
12
+ animationDuration: string;
13
+ info: {
14
+ barColor: string;
15
+ };
16
+ success: {
17
+ barColor: string;
18
+ };
19
+ warn: {
20
+ barColor: string;
21
+ };
22
+ danger: {
23
+ barColor: string;
24
+ };
25
+ small: {
26
+ height: string;
27
+ labelFontSize: string;
28
+ circularSize: string;
29
+ circularThickness: string;
30
+ };
31
+ large: {
32
+ height: string;
33
+ labelFontSize: string;
34
+ circularSize: string;
35
+ circularThickness: string;
36
+ };
37
+ };
38
+ export default _default;
@@ -648,6 +648,38 @@ declare const _default: {
648
648
  shimmerColor: string;
649
649
  animationDuration: string;
650
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
+ };
651
683
  toast: {
652
684
  gap: string;
653
685
  padding: string;
@@ -727,6 +759,43 @@ declare const _default: {
727
759
  textColor: string;
728
760
  };
729
761
  };
762
+ progress: {
763
+ width: string;
764
+ height: string;
765
+ borderRadius: string;
766
+ backgroundColor: string;
767
+ barColor: string;
768
+ labelColor: string;
769
+ labelFontSize: string;
770
+ gap: string;
771
+ circularSize: string;
772
+ circularThickness: string;
773
+ animationDuration: string;
774
+ info: {
775
+ barColor: string;
776
+ };
777
+ success: {
778
+ barColor: string;
779
+ };
780
+ warn: {
781
+ barColor: string;
782
+ };
783
+ danger: {
784
+ barColor: string;
785
+ };
786
+ small: {
787
+ height: string;
788
+ labelFontSize: string;
789
+ circularSize: string;
790
+ circularThickness: string;
791
+ };
792
+ large: {
793
+ height: string;
794
+ labelFontSize: string;
795
+ circularSize: string;
796
+ circularThickness: string;
797
+ };
798
+ };
730
799
  };
731
800
  colors: {
732
801
  white: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",