@smallwebco/tinypivot-vue 1.0.83 → 1.1.1
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 +40 -0
- package/dist/components/AIAnalyst.vue.d.ts +12 -24
- package/dist/components/AIAnalyst.vue.d.ts.map +1 -1
- package/dist/components/CalculatedFieldModal.vue.d.ts +9 -21
- package/dist/components/CalculatedFieldModal.vue.d.ts.map +1 -1
- package/dist/components/ChartBuilder.vue.d.ts +8 -21
- package/dist/components/ChartBuilder.vue.d.ts.map +1 -1
- package/dist/components/ColumnFilter.vue.d.ts +14 -37
- package/dist/components/ColumnFilter.vue.d.ts.map +1 -1
- package/dist/components/DataGrid.vue.d.ts +39 -168
- package/dist/components/DataGrid.vue.d.ts.map +1 -1
- package/dist/components/DateRangeFilter.vue.d.ts +7 -21
- package/dist/components/DateRangeFilter.vue.d.ts.map +1 -1
- package/dist/components/DrillThroughModal.vue.d.ts +16 -0
- package/dist/components/DrillThroughModal.vue.d.ts.map +1 -0
- package/dist/components/NumericRangeFilter.vue.d.ts +7 -21
- package/dist/components/NumericRangeFilter.vue.d.ts.map +1 -1
- package/dist/components/PivotConfig.vue.d.ts +12 -56
- package/dist/components/PivotConfig.vue.d.ts.map +1 -1
- package/dist/components/PivotSkeleton.vue.d.ts +18 -52
- package/dist/components/PivotSkeleton.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/composables/useAIAnalyst.d.ts +0 -1
- package/dist/composables/useExcelGrid.d.ts +0 -1
- package/dist/composables/useGridFeatures.d.ts +0 -1
- package/dist/composables/useLicense.d.ts +1 -0
- package/dist/composables/useLicense.d.ts.map +1 -1
- package/dist/composables/usePivotTable.d.ts +5 -4
- package/dist/composables/usePivotTable.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tinypivot-vue.js +3714 -3331
- package/dist/tinypivot-vue.js.map +1 -1
- package/dist/tinypivot-vue.umd.cjs +39 -39
- package/dist/tinypivot-vue.umd.cjs.map +1 -1
- package/dist/{vue3-apexcharts-CAskEAyG.js → vue3-apexcharts-k7zOi6pn.js} +1032 -1032
- package/dist/{vue3-apexcharts-CAskEAyG.js.map → vue3-apexcharts-k7zOi6pn.js.map} +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumericRangeFilter.vue.d.ts","sourceRoot":"","sources":["../../src/components/NumericRangeFilter.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumericRangeFilter.vue.d.ts","sourceRoot":"","sources":["../../src/components/NumericRangeFilter.vue"],"names":[],"mappings":"AAweA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAQ5E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,YAAY,GAAG,IAAI,CAAA;IACjC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAC;;;;;;AAmYF,wBAOG"}
|
|
@@ -1,70 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CalculatedField, PivotValueField } from '@smallwebco/tinypivot-core';
|
|
3
2
|
interface FieldStats {
|
|
4
3
|
field: string;
|
|
5
4
|
type: 'string' | 'number' | 'date' | 'boolean' | 'mixed';
|
|
6
5
|
uniqueCount: number;
|
|
7
6
|
isNumeric: boolean;
|
|
8
7
|
}
|
|
9
|
-
|
|
8
|
+
type __VLS_Props = {
|
|
10
9
|
availableFields: FieldStats[];
|
|
11
10
|
rowFields: string[];
|
|
12
11
|
columnFields: string[];
|
|
13
12
|
valueFields: PivotValueField[];
|
|
14
13
|
showRowTotals: boolean;
|
|
15
14
|
showColumnTotals: boolean;
|
|
16
|
-
calculatedFields?: CalculatedField[]
|
|
17
|
-
theme?: string
|
|
18
|
-
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
-
"update:showRowTotals": (value: boolean) => void;
|
|
20
|
-
"update:showColumnTotals": (value: boolean) => void;
|
|
21
|
-
clearConfig: () => void;
|
|
22
|
-
dragStart: (field: string, event: DragEvent) => void;
|
|
23
|
-
dragEnd: () => void;
|
|
24
|
-
updateAggregation: (field: string, oldAgg: AggregationFunction, newAgg: AggregationFunction) => void;
|
|
25
|
-
addRowField: (field: string) => void;
|
|
26
|
-
removeRowField: (field: string) => void;
|
|
27
|
-
addColumnField: (field: string) => void;
|
|
28
|
-
removeColumnField: (field: string) => void;
|
|
29
|
-
addValueField: (field: string, aggregation: AggregationFunction) => void;
|
|
30
|
-
removeValueField: (field: string, aggregation: AggregationFunction) => void;
|
|
31
|
-
addCalculatedField: (field: CalculatedField) => void;
|
|
32
|
-
removeCalculatedField: (id: string) => void;
|
|
33
|
-
updateCalculatedField: (field: CalculatedField) => void;
|
|
34
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
-
availableFields: FieldStats[];
|
|
36
|
-
rowFields: string[];
|
|
37
|
-
columnFields: string[];
|
|
38
|
-
valueFields: PivotValueField[];
|
|
39
|
-
showRowTotals: boolean;
|
|
40
|
-
showColumnTotals: boolean;
|
|
41
|
-
calculatedFields?: CalculatedField[] | undefined;
|
|
42
|
-
theme?: string | undefined;
|
|
43
|
-
}>>> & Readonly<{
|
|
44
|
-
onUpdateAggregation?: ((field: string, oldAgg: AggregationFunction, newAgg: AggregationFunction) => any) | undefined;
|
|
45
|
-
"onUpdate:showRowTotals"?: ((value: boolean) => any) | undefined;
|
|
46
|
-
"onUpdate:showColumnTotals"?: ((value: boolean) => any) | undefined;
|
|
47
|
-
onClearConfig?: (() => any) | undefined;
|
|
48
|
-
onDragStart?: ((field: string, event: DragEvent) => any) | undefined;
|
|
49
|
-
onDragEnd?: (() => any) | undefined;
|
|
50
|
-
onAddRowField?: ((field: string) => any) | undefined;
|
|
51
|
-
onRemoveRowField?: ((field: string) => any) | undefined;
|
|
52
|
-
onAddColumnField?: ((field: string) => any) | undefined;
|
|
53
|
-
onRemoveColumnField?: ((field: string) => any) | undefined;
|
|
54
|
-
onAddValueField?: ((field: string, aggregation: AggregationFunction) => any) | undefined;
|
|
55
|
-
onRemoveValueField?: ((field: string, aggregation: AggregationFunction) => any) | undefined;
|
|
56
|
-
onAddCalculatedField?: ((field: CalculatedField) => any) | undefined;
|
|
57
|
-
onRemoveCalculatedField?: ((id: string) => any) | undefined;
|
|
58
|
-
onUpdateCalculatedField?: ((field: CalculatedField) => any) | undefined;
|
|
59
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
60
|
-
export default _default;
|
|
61
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
62
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
63
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
64
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
65
|
-
} : {
|
|
66
|
-
type: import('vue').PropType<T[K]>;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
15
|
+
calculatedFields?: CalculatedField[];
|
|
16
|
+
theme?: string;
|
|
69
17
|
};
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
} & {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
[x: `on${Capitalize<any>}`]: ((...args: any[] | unknown[]) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
70
26
|
//# sourceMappingURL=PivotConfig.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PivotConfig.vue.d.ts","sourceRoot":"","sources":["../../src/components/PivotConfig.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PivotConfig.vue.d.ts","sourceRoot":"","sources":["../../src/components/PivotConfig.vue"],"names":[],"mappings":"AA2+BA,OAAO,KAAK,EAAuB,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAUvG,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;IACxD,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;CACnB;AASD,KAAK,WAAW,GAAG;IACjB,eAAe,EAAE,UAAU,EAAE,CAAA;IAC7B,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,EAAE,eAAe,EAAE,CAAA;IAC9B,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;AAyrBF,wBAOG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CalculatedField, PivotResult, PivotValueField } from '@smallwebco/tinypivot-core';
|
|
3
2
|
interface ActiveFilter {
|
|
4
3
|
column: string;
|
|
5
4
|
valueCount: number;
|
|
@@ -7,61 +6,28 @@ interface ActiveFilter {
|
|
|
7
6
|
displayText?: string;
|
|
8
7
|
isRange?: boolean;
|
|
9
8
|
}
|
|
10
|
-
|
|
9
|
+
type __VLS_Props = {
|
|
11
10
|
rowFields: string[];
|
|
12
11
|
columnFields: string[];
|
|
13
12
|
valueFields: PivotValueField[];
|
|
14
|
-
calculatedFields?: CalculatedField[]
|
|
13
|
+
calculatedFields?: CalculatedField[];
|
|
15
14
|
isConfigured: boolean;
|
|
16
15
|
draggingField: string | null;
|
|
17
16
|
pivotResult: PivotResult | null;
|
|
18
|
-
fontSize?:
|
|
19
|
-
activeFilters?: ActiveFilter[] | null
|
|
20
|
-
totalRowCount?: number
|
|
21
|
-
filteredRowCount?: number
|
|
22
|
-
theme?: string
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
removeRowField: (field: string) => void;
|
|
26
|
-
addColumnField: (field: string) => void;
|
|
27
|
-
removeColumnField: (field: string) => void;
|
|
28
|
-
addValueField: (field: string, aggregation: AggregationFunction) => void;
|
|
29
|
-
removeValueField: (field: string, aggregation: AggregationFunction) => void;
|
|
30
|
-
updateAggregation: (field: string, oldAgg: AggregationFunction, newAgg: AggregationFunction) => void;
|
|
31
|
-
reorderRowFields: (fields: string[]) => void;
|
|
32
|
-
reorderColumnFields: (fields: string[]) => void;
|
|
33
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
34
|
-
rowFields: string[];
|
|
35
|
-
columnFields: string[];
|
|
36
|
-
valueFields: PivotValueField[];
|
|
37
|
-
calculatedFields?: CalculatedField[] | undefined;
|
|
38
|
-
isConfigured: boolean;
|
|
39
|
-
draggingField: string | null;
|
|
40
|
-
pivotResult: PivotResult | null;
|
|
41
|
-
fontSize?: "base" | "xs" | "sm" | undefined;
|
|
42
|
-
activeFilters?: ActiveFilter[] | null | undefined;
|
|
43
|
-
totalRowCount?: number | undefined;
|
|
44
|
-
filteredRowCount?: number | undefined;
|
|
45
|
-
theme?: string | undefined;
|
|
46
|
-
}>>> & Readonly<{
|
|
47
|
-
onUpdateAggregation?: ((field: string, oldAgg: AggregationFunction, newAgg: AggregationFunction) => any) | undefined;
|
|
48
|
-
onAddRowField?: ((field: string) => any) | undefined;
|
|
49
|
-
onRemoveRowField?: ((field: string) => any) | undefined;
|
|
50
|
-
onAddColumnField?: ((field: string) => any) | undefined;
|
|
51
|
-
onRemoveColumnField?: ((field: string) => any) | undefined;
|
|
52
|
-
onAddValueField?: ((field: string, aggregation: AggregationFunction) => any) | undefined;
|
|
53
|
-
onRemoveValueField?: ((field: string, aggregation: AggregationFunction) => any) | undefined;
|
|
54
|
-
onReorderRowFields?: ((fields: string[]) => any) | undefined;
|
|
55
|
-
onReorderColumnFields?: ((fields: string[]) => any) | undefined;
|
|
56
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
57
|
-
export default _default;
|
|
58
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
59
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
60
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
62
|
-
} : {
|
|
63
|
-
type: import('vue').PropType<T[K]>;
|
|
64
|
-
required: true;
|
|
65
|
-
};
|
|
17
|
+
fontSize?: 'xs' | 'sm' | 'base';
|
|
18
|
+
activeFilters?: ActiveFilter[] | null;
|
|
19
|
+
totalRowCount?: number;
|
|
20
|
+
filteredRowCount?: number;
|
|
21
|
+
theme?: string;
|
|
22
|
+
enableDrillDown?: boolean;
|
|
23
|
+
enableDrillThrough?: boolean;
|
|
66
24
|
};
|
|
25
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
} & {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
[x: `on${Capitalize<any>}`]: ((...args: any[] | unknown[]) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
67
33
|
//# sourceMappingURL=PivotSkeleton.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PivotSkeleton.vue.d.ts","sourceRoot":"","sources":["../../src/components/PivotSkeleton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PivotSkeleton.vue.d.ts","sourceRoot":"","sources":["../../src/components/PivotSkeleton.vue"],"names":[],"mappings":"AA2hEA,OAAO,KAAK,EAAuB,eAAe,EAAmB,WAAW,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AASrI,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,EAAE,eAAe,EAAE,CAAA;IAC9B,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAA;IACpC,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,EAAE,WAAW,GAAG,IAAI,CAAA;IAC/B,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAA;IAC/B,aAAa,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IACrC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAC;;;;;;;;AA6mDF,wBAOG"}
|
|
@@ -3,6 +3,7 @@ export { default as CalculatedFieldModal } from './CalculatedFieldModal.vue';
|
|
|
3
3
|
export { default as ChartBuilder } from './ChartBuilder.vue';
|
|
4
4
|
export { default as ColumnFilter } from './ColumnFilter.vue';
|
|
5
5
|
export { default as DataGrid } from './DataGrid.vue';
|
|
6
|
+
export { default as DrillThroughModal } from './DrillThroughModal.vue';
|
|
6
7
|
export { default as NumericRangeFilter } from './NumericRangeFilter.vue';
|
|
7
8
|
export { default as PivotConfig } from './PivotConfig.vue';
|
|
8
9
|
export { default as PivotSkeleton } from './PivotSkeleton.vue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AIAnalystConfig, AIConversation, AIConversationUpdateEvent, AIDataLoadedEvent, AIDataSource, AIErrorEvent, AIQueryExecutedEvent, AITableSchema } from '@smallwebco/tinypivot-core';
|
|
2
|
-
|
|
3
2
|
export interface UseAIAnalystOptions {
|
|
4
3
|
config: AIAnalystConfig;
|
|
5
4
|
onDataLoaded?: (event: AIDataLoadedEvent) => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ColumnStats, DateRange, NumericRange, formatCellValue, getColumnUniqueValues, isDateRange, isNumericRange } from '@smallwebco/tinypivot-core';
|
|
2
2
|
import { ColumnFiltersState, SortingState, VisibilityState } from '@tanstack/vue-table';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
|
-
|
|
5
4
|
export { formatCellValue, getColumnUniqueValues, isDateRange, isNumericRange };
|
|
6
5
|
export interface ExcelGridOptions<T> {
|
|
7
6
|
data: Ref<T[]>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ExportOptions, PaginationOptions, PivotExportData, PivotValueField, SelectionBounds } from '@smallwebco/tinypivot-core';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
|
|
4
3
|
export { copyToClipboard, exportPivotToCSV, exportToCSV, formatSelectionForClipboard, };
|
|
5
4
|
/**
|
|
6
5
|
* CSV Export functionality wrapper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLicense.d.ts","sourceRoot":"","sources":["../../src/composables/useLicense.ts"],"names":[],"mappings":"AA2BA;;;GAGG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAc9D;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAUrE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE3D;AAED;;GAEG;AACH,wBAAgB,UAAU
|
|
1
|
+
{"version":3,"file":"useLicense.d.ts","sourceRoot":"","sources":["../../src/composables/useLicense.ts"],"names":[],"mappings":"AA2BA;;;GAGG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAc9D;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAUrE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE3D;AAED;;GAEG;AACH,wBAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;0BAqBK,MAAM,KAAG,OAAO;EAoB9C"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { AggregationFunction, CalculatedField, FieldStats, PivotValueField, getAggregationLabel } from '@smallwebco/tinypivot-core';
|
|
1
|
+
import { AggregationFunction, CalculatedField, FieldStats, PivotResult, PivotValueField, getAggregationLabel } from '@smallwebco/tinypivot-core';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
|
|
4
3
|
export { getAggregationLabel };
|
|
5
4
|
/**
|
|
6
5
|
* Main pivot table composable
|
|
7
6
|
*/
|
|
8
|
-
export declare function usePivotTable(data: Ref<Record<string, unknown>[]>): {
|
|
7
|
+
export declare function usePivotTable(data: Ref<Record<string, unknown>[]>, enableDrillDown?: Ref<boolean>): {
|
|
9
8
|
rowFields: Ref<string[], string[]>;
|
|
10
9
|
columnFields: Ref<string[], string[]>;
|
|
11
10
|
valueFields: Ref<{
|
|
@@ -38,10 +37,11 @@ export declare function usePivotTable(data: Ref<Record<string, unknown>[]>): {
|
|
|
38
37
|
formatAs?: "number" | "percent" | "currency" | undefined;
|
|
39
38
|
decimals?: number | undefined;
|
|
40
39
|
}[]>;
|
|
40
|
+
collapsedPaths: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
|
|
41
41
|
availableFields: import('vue').ComputedRef<FieldStats[]>;
|
|
42
42
|
unassignedFields: import('vue').ComputedRef<FieldStats[]>;
|
|
43
43
|
isConfigured: import('vue').ComputedRef<boolean>;
|
|
44
|
-
pivotResult: import('vue').ComputedRef<
|
|
44
|
+
pivotResult: import('vue').ComputedRef<PivotResult | null>;
|
|
45
45
|
addRowField: (field: string) => void;
|
|
46
46
|
removeRowField: (field: string) => void;
|
|
47
47
|
addColumnField: (field: string) => void;
|
|
@@ -60,5 +60,6 @@ export declare function usePivotTable(data: Ref<Record<string, unknown>[]>): {
|
|
|
60
60
|
autoSuggestConfig: () => void;
|
|
61
61
|
addCalculatedField: (field: CalculatedField) => void;
|
|
62
62
|
removeCalculatedField: (id: string) => void;
|
|
63
|
+
toggleCollapsedPath: (key: string, altKey: boolean, _rowFields: string[], currentPivotResult: PivotResult | null) => void;
|
|
63
64
|
};
|
|
64
65
|
//# sourceMappingURL=usePivotTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePivotTable.d.ts","sourceRoot":"","sources":["../../src/composables/usePivotTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,UAAU,EAAe,eAAe,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"usePivotTable.d.ts","sourceRoot":"","sources":["../../src/composables/usePivotTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,UAAU,EAAe,WAAW,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC7I,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9B,OAAO,EAIL,mBAAmB,EAQpB,MAAM,4BAA4B,CAAA;AASnC,OAAO,EAAE,mBAAmB,EAAE,CAAA;AAE9B;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,eAAe,GAAE,GAAG,CAAC,OAAO,CAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA6D/E,MAAM;4BAMH,MAAM;4BAIN,MAAM;+BAMH,MAAM;2BAIV,MAAM,gBAAe,mBAAmB;8BAWrC,MAAM,gBAAgB,mBAAmB;yCAYjE,MAAM,UACL,mBAAmB,UACnB,mBAAmB;;sBAiBrB;QAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,MACrD;QAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE;;gCA2FtB,eAAe;gCAef,MAAM;+BAxFP,MAAM,UAAU,OAAO,cAAc,MAAM,EAAE,sBAAsB,WAAW,GAAG,IAAI;EAuOxH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
1
|
export { ColumnFilter, DataGrid, PivotConfig, PivotSkeleton } from './components';
|
|
3
2
|
export { configureLicenseSecret, copyToClipboard, enableDemoMode, exportPivotToCSV, exportToCSV, formatCellValue, formatSelectionForClipboard, getAggregationLabel, getColumnUniqueValues, setLicenseKey, useColumnResize, useExcelGrid, useGlobalSearch, useLicense, usePagination, usePivotTable, useRowSelection, } from './composables';
|
|
4
|
-
export type { AggregationFunction, AIAnalystConfig, CellClickEvent, ColumnStats, CopyEvent, DataGridProps, ExportEvent, ExportOptions, FieldRoleOverrides, FieldStats, FilterEvent, GridOptions, LicenseInfo, LicenseType, PaginationOptions, PivotCell, PivotConfig as PivotConfigType, PivotField, PivotResult, PivotTableProps, PivotValueField, RowSelectionChangeEvent, SelectionBounds, SelectionChangeEvent, SortEvent, } from '@smallwebco/tinypivot-core';
|
|
3
|
+
export type { AggregationFunction, AIAnalystConfig, CellClickEvent, ColumnStats, CopyEvent, DataGridProps, DrillThroughDescriptor, DrillThroughResult, ExportEvent, ExportOptions, FieldRoleOverrides, FieldStats, FilterEvent, GridOptions, LicenseInfo, LicenseType, PaginationOptions, PivotCell, PivotConfig as PivotConfigType, PivotField, PivotGroupStart, PivotResult, PivotRowMeta, PivotTableProps, PivotValueField, RowSelectionChangeEvent, SelectionBounds, SelectionChangeEvent, SortEvent, } from '@smallwebco/tinypivot-core';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAGjF,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,GAChB,MAAM,eAAe,CAAA;AAGtB,YAAY,EAEV,mBAAmB,EAEnB,eAAe,EACf,cAAc,EAGd,WAAW,EACX,SAAS,EAET,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAGjF,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,GAChB,MAAM,eAAe,CAAA;AAGtB,YAAY,EAEV,mBAAmB,EAEnB,eAAe,EACf,cAAc,EAGd,WAAW,EACX,SAAS,EAET,aAAa,EAEb,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,UAAU,EAEV,WAAW,EAEX,WAAW,EACX,WAAW,EAGX,WAAW,EAEX,iBAAiB,EAEjB,SAAS,EACT,WAAW,IAAI,eAAe,EAC9B,UAAU,EACV,eAAe,EACf,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,uBAAuB,EAEvB,eAAe,EACf,oBAAoB,EACpB,SAAS,GACV,MAAM,4BAA4B,CAAA"}
|