vue-chrts 0.0.24 → 0.0.29
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/Base/Area/AreaChart.vue.d.ts +5 -5
- package/dist/components/Base/AreaStacked/AreaStackedChart.vue.d.ts +4 -4
- package/dist/components/Base/Bar/BarChart.vue.d.ts +4 -4
- package/dist/components/Base/Donut/DonutChart.vue.d.ts +5 -5
- package/dist/components/Base/Line/LineChart.vue.d.ts +4 -4
- package/dist/components/Base/Progress.vue.d.ts +3 -3
- package/dist/components/Base/Status.vue.d.ts +1 -1
- package/dist/components/Base/Tooltip.vue.d.ts +4 -4
- package/dist/components/Base/index.d.ts +1 -2
- package/dist/{index.js → vue-chrts.js} +1969 -2002
- package/dist/vue-chrts.umd.cjs +468 -0
- package/package.json +19 -26
- package/dist/components/Base/Crosshair.vue.d.ts +0 -38
- package/dist/components/Elements/Table/Table.d.ts +0 -56
- package/dist/data/AreaChartData.d.ts +0 -27
- package/dist/data/BarChartData.d.ts +0 -8
- package/dist/data/IncomeExpenseData.d.ts +0 -23
- package/dist/data/InvestmentData.d.ts +0 -9
- package/dist/data/RevenueData.d.ts +0 -11
- package/dist/data/VisitorsData.d.ts +0 -5
- package/dist/index.umd.cjs +0 -468
- package/dist/main.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,45 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-chrts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./dist/index.umd.cjs",
|
|
6
5
|
"files": [
|
|
7
6
|
"dist"
|
|
8
7
|
],
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"main": "./dist/vue-chrts.umd.cjs",
|
|
9
|
+
"module": "./dist/vue-chrts.js",
|
|
11
10
|
"exports": {
|
|
12
11
|
".": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
"./dist/style.css": "./dist/style.css"
|
|
12
|
+
"import": "./dist/vue-chrts.js",
|
|
13
|
+
"require": "./dist/vue-chrts.umd.cjs"
|
|
14
|
+
}
|
|
18
15
|
},
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
19
17
|
"scripts": {
|
|
20
18
|
"dev": "vite",
|
|
21
|
-
"build": "vue-tsc
|
|
19
|
+
"build": "vue-tsc && vite build",
|
|
22
20
|
"preview": "vite preview",
|
|
23
21
|
"deploy": "pnpm build && npm publish"
|
|
24
22
|
},
|
|
25
23
|
"dependencies": {
|
|
26
|
-
"vue": "^3.
|
|
24
|
+
"vue": "^3.4.38"
|
|
27
25
|
},
|
|
28
26
|
"devDependencies": {
|
|
29
|
-
"
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"@vue/tsconfig": "^0.7.0",
|
|
39
|
-
"typescript": "~5.6.2",
|
|
40
|
-
"vite": "^6.0.5",
|
|
41
|
-
"vite-plugin-dts": "^3.9.1",
|
|
42
|
-
"vue-tsc": "^2.2.0"
|
|
27
|
+
"@types/node": "^20.11.0",
|
|
28
|
+
"@vitejs/plugin-vue": "^5.1.3",
|
|
29
|
+
"typescript": "^5.5.3",
|
|
30
|
+
"vite": "^5.4.2",
|
|
31
|
+
"vite-plugin-dts": "^3.7.3",
|
|
32
|
+
"vue-tsc": "^2.1.4"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"vue": "^3.0.0"
|
|
43
36
|
},
|
|
44
|
-
"packageManager": "pnpm@
|
|
37
|
+
"packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2"
|
|
45
38
|
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
-
import { Component } from '../../../vue/dist/vue.esm-bundler.js';
|
|
3
|
-
|
|
4
|
-
declare const _default: import('../../../vue/dist/vue.esm-bundler.js').DefineComponent<import('../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
colors: string[];
|
|
6
|
-
index: string;
|
|
7
|
-
items: BulletLegendItemInterface[];
|
|
8
|
-
customTooltip?: Component;
|
|
9
|
-
}>, {
|
|
10
|
-
colors: () => never[];
|
|
11
|
-
}>>, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('../../../vue/dist/vue.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
-
colors: string[];
|
|
13
|
-
index: string;
|
|
14
|
-
items: BulletLegendItemInterface[];
|
|
15
|
-
customTooltip?: Component;
|
|
16
|
-
}>, {
|
|
17
|
-
colors: () => never[];
|
|
18
|
-
}>>> & Readonly<{}>, {
|
|
19
|
-
colors: string[];
|
|
20
|
-
}, {}, {}, {}, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, any>;
|
|
21
|
-
export default _default;
|
|
22
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
-
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
-
} : {
|
|
27
|
-
type: import('../../../vue/dist/vue.esm-bundler.js').PropType<T[K]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
type __VLS_WithDefaults<P, D> = {
|
|
32
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
-
default: D[K];
|
|
34
|
-
}> : P[K];
|
|
35
|
-
};
|
|
36
|
-
type __VLS_Prettify<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ColumnDef, Row, CellContext } from '@tanstack/vue-table';
|
|
2
|
-
|
|
3
|
-
export declare function createTypedColumnHelper<T>(): import('@tanstack/vue-table').ColumnHelper<T>;
|
|
4
|
-
export type CellRenderer<T> = (context: CellContext<T, unknown>) => any;
|
|
5
|
-
export type HeaderRenderer<T> = (context: {
|
|
6
|
-
column: T | any;
|
|
7
|
-
}) => any;
|
|
8
|
-
export declare function createColumn<T>(options: {
|
|
9
|
-
accessorKey: keyof T | string;
|
|
10
|
-
header: string | HeaderRenderer<T>;
|
|
11
|
-
cell?: CellRenderer<T>;
|
|
12
|
-
enableSorting?: boolean;
|
|
13
|
-
enableFiltering?: boolean;
|
|
14
|
-
size?: number;
|
|
15
|
-
minSize?: number;
|
|
16
|
-
maxSize?: number;
|
|
17
|
-
meta?: Record<string, any>;
|
|
18
|
-
}): ColumnDef<T>;
|
|
19
|
-
export declare function createCustomColumn<T, TValue>(options: {
|
|
20
|
-
id: string;
|
|
21
|
-
header: string | HeaderRenderer<T>;
|
|
22
|
-
accessorFn: (row: T) => TValue;
|
|
23
|
-
cell?: CellRenderer<T>;
|
|
24
|
-
enableSorting?: boolean;
|
|
25
|
-
enableFiltering?: boolean;
|
|
26
|
-
size?: number;
|
|
27
|
-
meta?: Record<string, any>;
|
|
28
|
-
}): ColumnDef<T>;
|
|
29
|
-
export declare function createPaginationState(pageIndex?: number, pageSize?: number): {
|
|
30
|
-
pageIndex: number;
|
|
31
|
-
pageSize: number;
|
|
32
|
-
};
|
|
33
|
-
export declare function createSortingState<T>(columnId: keyof T | string, direction?: 'asc' | 'desc'): {
|
|
34
|
-
id: string;
|
|
35
|
-
desc: boolean;
|
|
36
|
-
}[];
|
|
37
|
-
export declare function getSelectedRows<T>(rows: Row<T>[], rowSelection: Record<string, boolean>): T[];
|
|
38
|
-
export interface TableConfig<T> {
|
|
39
|
-
data: T[];
|
|
40
|
-
columns: ColumnDef<T>[];
|
|
41
|
-
enableSorting?: boolean;
|
|
42
|
-
enableMultiSort?: boolean;
|
|
43
|
-
enablePagination?: boolean;
|
|
44
|
-
enableFiltering?: boolean;
|
|
45
|
-
enableRowSelection?: boolean;
|
|
46
|
-
tableSize?: 'sm' | 'md' | 'lg';
|
|
47
|
-
striped?: boolean;
|
|
48
|
-
hover?: boolean;
|
|
49
|
-
bordered?: boolean;
|
|
50
|
-
paginationPosition?: 'top' | 'bottom' | 'both' | 'none';
|
|
51
|
-
pageSizeOptions?: number[];
|
|
52
|
-
initialPageSize?: number;
|
|
53
|
-
onRowClick?: (row: Row<T>) => void;
|
|
54
|
-
getRowClass?: (row: Row<T>) => string;
|
|
55
|
-
}
|
|
56
|
-
export declare function getDefaultTableConfig<T>(): Partial<TableConfig<T>>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
-
|
|
3
|
-
export declare const categories1: Record<string, BulletLegendItemInterface>;
|
|
4
|
-
export declare const categories2: Record<string, BulletLegendItemInterface>;
|
|
5
|
-
export declare const categories3: Record<string, BulletLegendItemInterface>;
|
|
6
|
-
export declare const categories4: Record<string, BulletLegendItemInterface>;
|
|
7
|
-
export declare const categories5: Record<string, BulletLegendItemInterface>;
|
|
8
|
-
export interface AreaChartItem1 {
|
|
9
|
-
date: string;
|
|
10
|
-
desktop: number;
|
|
11
|
-
mobile: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const AreaChartData1: AreaChartItem1[];
|
|
14
|
-
export interface AreaChartItem2 {
|
|
15
|
-
hour: string;
|
|
16
|
-
temperature: number;
|
|
17
|
-
}
|
|
18
|
-
export declare const AreaChartData2: AreaChartItem2[];
|
|
19
|
-
export declare const AreaChartData3: {
|
|
20
|
-
time: string;
|
|
21
|
-
returning: number;
|
|
22
|
-
firstTime: number;
|
|
23
|
-
}[];
|
|
24
|
-
export declare const AreaChartData4: {
|
|
25
|
-
month: string;
|
|
26
|
-
desktop: number;
|
|
27
|
-
}[];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
-
|
|
3
|
-
export interface IncomeExpenseItem {
|
|
4
|
-
month: string;
|
|
5
|
-
year: number;
|
|
6
|
-
income: {
|
|
7
|
-
salary: number;
|
|
8
|
-
sideHustle: number;
|
|
9
|
-
total: number;
|
|
10
|
-
};
|
|
11
|
-
expenses: {
|
|
12
|
-
rent: number;
|
|
13
|
-
groceries: number;
|
|
14
|
-
utilities: number;
|
|
15
|
-
transportation: number;
|
|
16
|
-
entertainment: number;
|
|
17
|
-
eatingOut: number;
|
|
18
|
-
other: number;
|
|
19
|
-
total: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare const categories: Record<string, BulletLegendItemInterface>;
|
|
23
|
-
export declare const IncomeExpenseData: IncomeExpenseItem[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
-
|
|
3
|
-
export declare const categories: Record<string, BulletLegendItemInterface>;
|
|
4
|
-
export declare const InvestmentData: {
|
|
5
|
-
date: string;
|
|
6
|
-
'ETF Shares Vital': number;
|
|
7
|
-
'Vitainvest Core': number;
|
|
8
|
-
'iShares Tech Growth': number;
|
|
9
|
-
}[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
-
|
|
3
|
-
export declare const categories: Record<string, BulletLegendItemInterface>;
|
|
4
|
-
export declare const RevenueData: {
|
|
5
|
-
date: string;
|
|
6
|
-
value: number;
|
|
7
|
-
}[];
|
|
8
|
-
export declare const RevenueDataSmall: {
|
|
9
|
-
date: string;
|
|
10
|
-
value: number;
|
|
11
|
-
}[];
|