voiptime-components 1.17.12 → 1.17.13
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/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +64 -0
- package/dist/index.es.js +3073 -2851
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -855,6 +855,13 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
855
855
|
|
|
856
856
|
declare type AnyObject = Record<string, any>;
|
|
857
857
|
|
|
858
|
+
declare interface ChartSegment {
|
|
859
|
+
label: string;
|
|
860
|
+
count: number;
|
|
861
|
+
color: string;
|
|
862
|
+
icon?: any;
|
|
863
|
+
}
|
|
864
|
+
|
|
858
865
|
export declare interface CollapseContext {
|
|
859
866
|
readonly activeNames: string[];
|
|
860
867
|
readonly accordion: boolean;
|
|
@@ -881,6 +888,27 @@ export declare interface CollapseProps {
|
|
|
881
888
|
accordion?: boolean;
|
|
882
889
|
}
|
|
883
890
|
|
|
891
|
+
declare interface ComboChartProps {
|
|
892
|
+
type: VChartType.combo;
|
|
893
|
+
data: Record<string, number | string>[];
|
|
894
|
+
seriesConfig: Record<string, ComboSeriesConfig>;
|
|
895
|
+
categoryKey: string;
|
|
896
|
+
width?: number;
|
|
897
|
+
height?: number;
|
|
898
|
+
padding?: {
|
|
899
|
+
top: number;
|
|
900
|
+
right: number;
|
|
901
|
+
bottom: number;
|
|
902
|
+
left: number;
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
declare interface ComboSeriesConfig {
|
|
907
|
+
type: 'bar' | 'line';
|
|
908
|
+
color: string;
|
|
909
|
+
axis?: 'left' | 'right';
|
|
910
|
+
}
|
|
911
|
+
|
|
884
912
|
export declare const containUpperCaseLetter: ValidatorFn;
|
|
885
913
|
|
|
886
914
|
export declare interface DatePickerShortcut {
|
|
@@ -922,6 +950,13 @@ export declare const DEFAULT_TIME_FORMATS: {
|
|
|
922
950
|
readonly '12h_no_seconds': "hh:mm A";
|
|
923
951
|
};
|
|
924
952
|
|
|
953
|
+
declare interface DonutChartProps {
|
|
954
|
+
type: VChartType.donut;
|
|
955
|
+
segments: ChartSegment[];
|
|
956
|
+
size?: number;
|
|
957
|
+
labels?: boolean;
|
|
958
|
+
}
|
|
959
|
+
|
|
925
960
|
export declare interface DropdownContext {
|
|
926
961
|
handleCommand: (command: string | number) => void;
|
|
927
962
|
hideOnClick: boolean;
|
|
@@ -1022,6 +1057,12 @@ export declare const generateTimeOptions: (min?: number, max?: number, step?: nu
|
|
|
1022
1057
|
disabled: boolean;
|
|
1023
1058
|
}>;
|
|
1024
1059
|
|
|
1060
|
+
declare interface HorizontalBarChartProps {
|
|
1061
|
+
type: VChartType.horizontal;
|
|
1062
|
+
segments: ChartSegment[];
|
|
1063
|
+
showAxis?: boolean;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1025
1066
|
export declare type IconName = keyof typeof icons;
|
|
1026
1067
|
|
|
1027
1068
|
declare const icons: {
|
|
@@ -1360,6 +1401,18 @@ export declare type RulesObject = {
|
|
|
1360
1401
|
|
|
1361
1402
|
export declare const sameAs: (compare: () => any, msg?: string) => ValidatorFn;
|
|
1362
1403
|
|
|
1404
|
+
declare interface ScaleBarChartProps {
|
|
1405
|
+
type: VChartType.scale;
|
|
1406
|
+
left: ScaleBarSide;
|
|
1407
|
+
right: ScaleBarSide;
|
|
1408
|
+
wrapperClass?: string;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
declare interface ScaleBarSide {
|
|
1412
|
+
label?: string;
|
|
1413
|
+
value: number;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1363
1416
|
export declare interface SelectionChangeEventData {
|
|
1364
1417
|
selection: Record<string, any>[];
|
|
1365
1418
|
row?: Record<string, any>;
|
|
@@ -1530,6 +1583,17 @@ declare type VButtonShape = 'circle' | 'square';
|
|
|
1530
1583
|
|
|
1531
1584
|
export declare type VButtonType = 'default' | 'primary' | 'success' | 'danger' | 'warning' | 'info';
|
|
1532
1585
|
|
|
1586
|
+
export declare const VChart: DefineComponent<DonutChartProps | HorizontalBarChartProps | ComboChartProps | ScaleBarChartProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DonutChartProps | HorizontalBarChartProps | ComboChartProps | ScaleBarChartProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1587
|
+
|
|
1588
|
+
export declare type VChartProps = DonutChartProps | HorizontalBarChartProps | ComboChartProps | ScaleBarChartProps;
|
|
1589
|
+
|
|
1590
|
+
export declare enum VChartType {
|
|
1591
|
+
donut = "donut",
|
|
1592
|
+
combo = "combo",
|
|
1593
|
+
horizontal = "horizontal-bar",
|
|
1594
|
+
scale = "scale-bar"
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1533
1597
|
export declare const VCheckbox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1534
1598
|
|
|
1535
1599
|
export declare interface VCheckboxEmits {
|