import { AllowedComponentProps } from 'vue'; import { Component } from 'vue'; import { ComponentCustomProps } from 'vue'; import { ComponentOptionsBase } from 'vue'; import { ComponentOptionsMixin } from 'vue'; import { ComponentProvideOptions } from 'vue'; import { ComputedRef } from 'vue'; import { CreateComponentPublicInstanceWithMixins } from 'vue'; import { DefineComponent } from 'vue'; import { GlobalComponents } from 'vue'; import { GlobalDirectives } from 'vue'; import { PropType } from 'vue'; import { PublicProps } from 'vue'; import { Ref } from 'vue'; import { ShallowRef } from 'vue'; import { UnwrapRef } from 'vue'; import { VNode } from 'vue'; import { VNodeProps } from 'vue'; declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:pivotModel": (model: PivotModelInterface) => any; change: (model: PivotModelInterface) => any; }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{ "onUpdate:pivotModel"?: ((model: PivotModelInterface) => any) | undefined; onChange?: ((model: PivotModelInterface) => any) | undefined; }>, { aggregators: Record; cols: string[]; rows: string[]; vals: string[]; aggregatorName: string; sorters: any; valueFilter: Record; rowOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; derivedAttributes: any; tableColorScaleGenerator: ((...args: any[]) => any) & ((...args: any[]) => any); heatmapMode: "full" | "col" | "row" | ""; tableOptions: Record; renderers: Record; rendererName: string; locale: string; languagePack: Record; attributes: string[]; tableMaxWidth: number; aggregatorMap: Record; hiddenAttributes: string[]; hiddenFromAggregators: string[]; hiddenFromDragDrop: string[]; restrictedFromDragDrop: string[]; hideFilterBoxOfUnusedAttributes: boolean; menuLimit: number; pivotModel: PivotModelInterface; }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLTableElement>; declare type __VLS_Props = Partial & { data: any; renderers: Record; hiddenAttributes?: string[]; hiddenFromAggregators?: string[]; hiddenFromDragDrop?: string[]; restrictedFromDragDrop?: string[]; menuLimit?: number; pivotModel?: PivotModelInterface; hideFilterBoxOfUnusedAttributes?: boolean; aggregators?: Record; aggregatorName?: string; heatmapMode?: 'full' | 'col' | 'row' | ''; tableColorScaleGenerator?: (...args: any[]) => any; tableOptions?: Record; rendererName?: string; locale?: string; languagePack?: Record; showRowTotal?: boolean; showColTotal?: boolean; cols?: string[]; rows?: string[]; vals?: string[]; attributes?: string[]; valueFilter?: Record; sorters?: any; derivedAttributes?: any; rowOrder?: 'key_a_to_z' | 'value_a_to_z' | 'value_z_to_a'; colOrder?: 'key_a_to_z' | 'value_a_to_z' | 'value_z_to_a'; tableMaxWidth?: number; aggregatorMap?: Record; }; declare function __VLS_template(): { attrs: Partial<{}>; slots: { colGroup?(_: {}): any; rendererCell?(_: {}): any; aggregatorCell?(_: {}): any; pvtAttr?(_: { attrName: string; }): any; pvtAttr?(_: { attrName: string; }): any; outputSlot?(_: { outputSlot: { pivotData: PivotData; }; }): any; output?(_: {}): any; }; refs: {}; rootEl: HTMLTableElement; }; declare type __VLS_TemplateResult = ReturnType; declare type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; }; declare type AggregatorFunction = (data?: PivotDataContext, rowKey?: any[], colKey?: any[]) => AggregatorInstance; declare interface AggregatorInstance { count?: number; sum?: number; vals?: number[]; uniq?: any[]; val?: any; sorter?: SortFunction; n?: number; m?: number; s?: number; sumNum?: number; sumDenom?: number; selector?: [any[], any[]]; inner?: AggregatorInstance; push: (record: DataRecord) => void; value: () => any; format?: Formatter | ((x: any) => string); numInputs?: number; } declare const aggregators: Record; declare type AggregatorTemplate = (...args: any[]) => AggregatorFunction; declare interface AggregatorTemplates { count: (formatter?: Formatter) => AggregatorTemplate; uniques: (fn: (uniq: any[]) => any, formatter?: Formatter) => AggregatorTemplate; sum: (formatter?: Formatter) => AggregatorTemplate; extremes: (mode: 'min' | 'max' | 'first' | 'last', formatter?: Formatter) => AggregatorTemplate; quantile: (q: number, formatter?: Formatter) => AggregatorTemplate; runningStat: (mode: 'mean' | 'var' | 'stdev', ddof?: number, formatter?: Formatter) => AggregatorTemplate; sumOverSum: (formatter?: Formatter) => AggregatorTemplate; fractionOf: (wrapped: AggregatorTemplate, type?: 'total' | 'row' | 'col', formatter?: Formatter) => AggregatorTemplate; countUnique: (formatter?: Formatter) => AggregatorTemplate; listUnique: (separator: string) => AggregatorTemplate; max: (formatter?: Formatter) => AggregatorTemplate; min: (formatter?: Formatter) => AggregatorTemplate; first: (formatter?: Formatter) => AggregatorTemplate; last: (formatter?: Formatter) => AggregatorTemplate; median: (formatter?: Formatter) => AggregatorTemplate; average: (formatter?: Formatter) => AggregatorTemplate; var: (ddof: number, formatter?: Formatter) => AggregatorTemplate; stdev: (ddof: number, formatter?: Formatter) => AggregatorTemplate; } declare const aggregatorTemplates: AggregatorTemplates; declare type AttributeName = string & { readonly __brand: unique symbol; }; declare type DataRecord = Record; declare const _default: { VuePivottable: DefineComponent & Readonly<{}>, { aggregators: Record; cols: string[]; rows: string[]; vals: string[]; aggregatorName: string; sorters: any; valueFilter: Record; rowOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; derivedAttributes: any; renderers: Record; rendererName: string; locale: string; languagePack: Record; tableMaxWidth: number; aggregatorMap: Record; }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>; VuePivottableUi: { new (...args: any[]): CreateComponentPublicInstanceWithMixins & { data: any; renderers: Record; hiddenAttributes?: string[]; hiddenFromAggregators?: string[]; hiddenFromDragDrop?: string[]; restrictedFromDragDrop?: string[]; menuLimit?: number; pivotModel?: PivotModelInterface; hideFilterBoxOfUnusedAttributes?: boolean; aggregators?: Record; aggregatorName?: string; heatmapMode?: "full" | "col" | "row" | ""; tableColorScaleGenerator?: (...args: any[]) => any; tableOptions?: Record; rendererName?: string; locale?: string; languagePack?: Record; showRowTotal?: boolean; showColTotal?: boolean; cols?: string[]; rows?: string[]; vals?: string[]; attributes?: string[]; valueFilter?: Record; sorters?: any; derivedAttributes?: any; rowOrder?: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder?: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; tableMaxWidth?: number; aggregatorMap?: Record; }> & Readonly<{ "onUpdate:pivotModel"?: ((model: PivotModelInterface) => any) | undefined; onChange?: ((model: PivotModelInterface) => any) | undefined; }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:pivotModel": (model: PivotModelInterface) => any; change: (model: PivotModelInterface) => any; }, PublicProps, { aggregators: Record; cols: string[]; rows: string[]; vals: string[]; aggregatorName: string; sorters: any; valueFilter: Record; rowOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; derivedAttributes: any; tableColorScaleGenerator: ((...args: any[]) => any) & ((...args: any[]) => any); heatmapMode: "full" | "col" | "row" | ""; tableOptions: Record; renderers: Record; rendererName: string; locale: string; languagePack: Record; attributes: string[]; tableMaxWidth: number; aggregatorMap: Record; hiddenAttributes: string[]; hiddenFromAggregators: string[]; hiddenFromDragDrop: string[]; restrictedFromDragDrop: string[]; hideFilterBoxOfUnusedAttributes: boolean; menuLimit: number; pivotModel: PivotModelInterface; }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLTableElement, ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly & { data: any; renderers: Record; hiddenAttributes?: string[]; hiddenFromAggregators?: string[]; hiddenFromDragDrop?: string[]; restrictedFromDragDrop?: string[]; menuLimit?: number; pivotModel?: PivotModelInterface; hideFilterBoxOfUnusedAttributes?: boolean; aggregators?: Record; aggregatorName?: string; heatmapMode?: "full" | "col" | "row" | ""; tableColorScaleGenerator?: (...args: any[]) => any; tableOptions?: Record; rendererName?: string; locale?: string; languagePack?: Record; showRowTotal?: boolean; showColTotal?: boolean; cols?: string[]; rows?: string[]; vals?: string[]; attributes?: string[]; valueFilter?: Record; sorters?: any; derivedAttributes?: any; rowOrder?: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder?: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; tableMaxWidth?: number; aggregatorMap?: Record; }> & Readonly<{ "onUpdate:pivotModel"?: ((model: PivotModelInterface) => any) | undefined; onChange?: ((model: PivotModelInterface) => any) | undefined; }>, {}, {}, {}, {}, { aggregators: Record; cols: string[]; rows: string[]; vals: string[]; aggregatorName: string; sorters: any; valueFilter: Record; rowOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; derivedAttributes: any; tableColorScaleGenerator: ((...args: any[]) => any) & ((...args: any[]) => any); heatmapMode: "full" | "col" | "row" | ""; tableOptions: Record; renderers: Record; rendererName: string; locale: string; languagePack: Record; attributes: string[]; tableMaxWidth: number; aggregatorMap: Record; hiddenAttributes: string[]; hiddenFromAggregators: string[]; hiddenFromDragDrop: string[]; restrictedFromDragDrop: string[]; hideFilterBoxOfUnusedAttributes: boolean; menuLimit: number; pivotModel: PivotModelInterface; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & ComponentOptionsBase & { data: any; renderers: Record; hiddenAttributes?: string[]; hiddenFromAggregators?: string[]; hiddenFromDragDrop?: string[]; restrictedFromDragDrop?: string[]; menuLimit?: number; pivotModel?: PivotModelInterface; hideFilterBoxOfUnusedAttributes?: boolean; aggregators?: Record; aggregatorName?: string; heatmapMode?: "full" | "col" | "row" | ""; tableColorScaleGenerator?: (...args: any[]) => any; tableOptions?: Record; rendererName?: string; locale?: string; languagePack?: Record; showRowTotal?: boolean; showColTotal?: boolean; cols?: string[]; rows?: string[]; vals?: string[]; attributes?: string[]; valueFilter?: Record; sorters?: any; derivedAttributes?: any; rowOrder?: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder?: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; tableMaxWidth?: number; aggregatorMap?: Record; }> & Readonly<{ "onUpdate:pivotModel"?: ((model: PivotModelInterface) => any) | undefined; onChange?: ((model: PivotModelInterface) => any) | undefined; }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:pivotModel": (model: PivotModelInterface) => any; change: (model: PivotModelInterface) => any; }, string, { aggregators: Record; cols: string[]; rows: string[]; vals: string[]; aggregatorName: string; sorters: any; valueFilter: Record; rowOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; derivedAttributes: any; tableColorScaleGenerator: ((...args: any[]) => any) & ((...args: any[]) => any); heatmapMode: "full" | "col" | "row" | ""; tableOptions: Record; renderers: Record; rendererName: string; locale: string; languagePack: Record; attributes: string[]; tableMaxWidth: number; aggregatorMap: Record; hiddenAttributes: string[]; hiddenFromAggregators: string[]; hiddenFromDragDrop: string[]; restrictedFromDragDrop: string[]; hideFilterBoxOfUnusedAttributes: boolean; menuLimit: number; pivotModel: PivotModelInterface; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => { $slots: { colGroup?(_: {}): any; rendererCell?(_: {}): any; aggregatorCell?(_: {}): any; pvtAttr?(_: { attrName: string; }): any; pvtAttr?(_: { attrName: string; }): any; outputSlot?(_: { outputSlot: { pivotData: PivotUtilities.PivotData; }; }): any; output?(_: {}): any; }; }); PivotUtilities: typeof PivotUtilities; Renderer: Record; }; export default _default; declare const _default_2: { data: { type: PropType; required: boolean; }; aggregators: { type: PropType>; default: () => Record; }; aggregatorName: { type: StringConstructor; default: string; }; heatmapMode: PropType<"full" | "col" | "row" | "">; tableColorScaleGenerator: { type: FunctionConstructor; default: (value: number[]) => (x: number) => { backgroundColor: string; }; }; tableOptions: { type: PropType>; default: () => {}; }; renderers: { type: PropType>; default: () => {}; }; rendererName: { type: StringConstructor; default: string; }; locale: { type: StringConstructor; default: string; }; languagePack: { type: PropType>; default: () => Record; }; showRowTotal: { type: PropType; default: boolean; }; showColTotal: { type: PropType; default: boolean; }; cols: { type: PropType; default: () => never[]; }; rows: { type: PropType; default: () => never[]; }; vals: { type: PropType; default: () => never[]; }; attributes: { type: PropType; default: () => never[]; }; valueFilter: { type: PropType>; default: () => {}; }; sorters: { type: PropType; default: () => {}; }; derivedAttributes: { type: PropType; default: () => {}; }; rowOrder: { type: PropType<"key_a_to_z" | "value_a_to_z" | "value_z_to_a">; default: string; validator: (value: string) => boolean; }; colOrder: { type: PropType<"key_a_to_z" | "value_a_to_z" | "value_z_to_a">; default: string; validator: (value: string) => boolean; }; tableMaxWidth: { type: NumberConstructor; default: number; validator: (value: number) => boolean; }; }; declare interface DefaultPropsType { data: any; aggregators?: Record; aggregatorName?: string; heatmapMode?: 'full' | 'col' | 'row' | ''; tableColorScaleGenerator?: (...args: any[]) => any; tableOptions?: Record; renderers?: Record; rendererName?: string; locale?: string; languagePack?: Record; showRowTotal?: boolean; showColTotal?: boolean; cols?: string[]; rows?: string[]; vals?: string[]; attributes?: string[]; valueFilter?: Record; sorters?: any; derivedAttributes?: any; rowOrder?: 'key_a_to_z' | 'value_a_to_z' | 'value_z_to_a'; colOrder?: 'key_a_to_z' | 'value_a_to_z' | 'value_z_to_a'; tableMaxWidth?: number; aggregatorMap?: Record; } declare interface Derivers { bin: (col: string, binWidth: number) => (record: DataRecord) => number; dateFormat: (col: string, formatString: string, utcOutput?: boolean, mthNames?: string[], dayNames?: string[]) => (record: DataRecord) => string; } declare const derivers: Derivers; declare interface FilterBoxContext { localeStrings: ComputedRef; sorter: (x: string) => any; menuLimit: ComputedRef; } declare type FlatKey = string & { readonly __brand: unique symbol; }; declare type Formatter = (value: number) => string; declare const getSort: (sorters: Record | ((attr: string) => SortFunction) | null, attr: string) => SortFunction; declare interface Locale { aggregators?: Record; frAggregators?: Record; localeStrings: LocaleStrings; } declare const locales: Record; declare interface LocaleStrings { renderError: string; computeError: string; uiRenderError: string; selectAll: string; selectNone: string; tooMany: string; filterResults: string; totals: string; vs: string; by: string; cancel: string; only: string; apply?: string; } declare const naturalSort: SortFunction; declare const numberFormat: (optsIn?: NumberFormatOptions) => Formatter; declare interface NumberFormatOptions { digitsAfterDecimal?: number; scaler?: number; thousandsSep?: string; decimalSep?: string; prefix?: string; suffix?: string; } declare type NumericValue = number & { readonly __brand: unique symbol; }; declare class PivotData { static defaultProps: Required; props: Required; aggregator: AggregatorFunction; tree: Record>; rowKeys: any[][]; colKeys: any[][]; rowTotals: Record; colTotals: Record; allTotal: AggregatorInstance; sorted: boolean; filteredData: DataRecord[]; constructor(inputProps?: Partial); filter(record: DataRecord): boolean; forEachMatchingRecord(criteria: Record, callback: (record: DataRecord) => void): void; arrSort(attrs: string[]): SortFunction; sortKeys(): void; getFilteredData(): DataRecord[]; getColKeys(): any[][]; getRowKeys(): any[][]; processRecord(record: DataRecord): void; getAggregator(rowKey: any[], colKey: any[]): AggregatorInstance; static forEachRecord(input: DataRecord[] | DataRecord[][] | ((callback: (record: DataRecord) => void) => void), derivedAttributes: Record RecordValue>, f: (record: DataRecord) => void): void; } declare interface PivotDataContext { getAggregator: (rowKey: any[], colKey: any[]) => AggregatorInstance; } declare interface PivotDataContext_2 { pivotData: ShallowRef; rowKeys: ComputedRef; colKeys: ComputedRef; colAttrs: ComputedRef; rowAttrs: ComputedRef; getAggregator: (rowKey: any[], colKey: any[]) => any; grandTotalAggregator: ComputedRef; spanSize: (arr: any[][], i: number, j: number) => number; valueCellColors: (rowKey: any[], colKey: any[], value: any) => any; rowTotalColors: (value: any) => any; colTotalColors: (value: any) => any; error: Ref; } declare interface PivotDataProps { data: DataRecord[] | DataRecord[][] | ((callback: (record: DataRecord) => void) => void); aggregators?: Record; cols?: string[]; rows?: string[]; vals?: string[]; aggregatorName?: string; sorters?: Record | ((attr: string) => SortFunction); valueFilter?: Record>; rowOrder?: 'key_a_to_z' | 'key_z_to_a' | 'value_a_to_z' | 'value_z_to_a'; colOrder?: 'key_a_to_z' | 'key_z_to_a' | 'value_a_to_z' | 'value_z_to_a'; derivedAttributes?: Record RecordValue>; } declare interface PivotModelInterface { rows: string[]; cols: string[]; vals: string[]; aggregatorName: string; rendererName: string; heatmapMode?: 'full' | 'col' | 'row' | ''; valueFilter: Record; rowOrder: 'key_a_to_z' | 'value_a_to_z' | 'value_z_to_a'; colOrder: 'key_a_to_z' | 'value_a_to_z' | 'value_z_to_a'; timestamp?: number; version?: string; } declare namespace PivotUtilities { export { _default_2 as defaultProps, redColorScaleGenerator, NumberFormatOptions, Formatter, SortFunction, RecordValue, DataRecord, AggregatorInstance, AggregatorFunction, AggregatorTemplate, AggregatorTemplates, PivotDataProps, PivotDataContext, LocaleStrings, Locale, Derivers, AttributeName, FlatKey, NumericValue, aggregatorTemplates, aggregators, derivers, locales, naturalSort, numberFormat, getSort, sortAs, PivotData } } export { PivotUtilities } export declare function provideFilterBox(props: ProvideFilterBoxProps): void; declare type ProvideFilterBoxProps = Pick & { menuLimit: number; languagePack: Record; locale: string; }; export declare function providePivotData(props: ProvidePivotDataProps): PivotDataContext_2; declare interface ProvidePivotDataProps { [key: string]: any; } declare type RecordValue = string | number; declare function redColorScaleGenerator(values: number[]): (x: number) => { backgroundColor: string; }; export declare const Renderer: Record; declare interface RendererDefinition { name: string; props?: Record; setup: (props: any) => () => VNode; } declare const sortAs: (order: any[]) => SortFunction; declare type SortFunction = (a: any, b: any) => number; export declare function useMaterializeInput(dataSource: Ref, options: UseMaterializeInputOptions): UseMaterializeInputReturn; declare interface UseMaterializeInputOptions { derivedAttributes: Ref) => any>>; } declare interface UseMaterializeInputReturn { rawData: Ref; allFilters: ShallowRef>>; materializedInput: ShallowRef; processData: (data: any) => { AllFilters: Record>; materializedInput: any[]; } | void; } export declare function usePivotData(props: ProvidePivotDataProps): { pivotData: ShallowRef; error: Ref; }; export declare function usePivotUiState(): { state: { unusedOrder: string[]; zIndices: Record; maxZIndex: number; openStatus: Record; }; onMoveFilterBoxToTop: (attributeName: string) => void; onUpdateOpenStatus: ({ key, value }: { key: string; value: boolean; }) => void; onUpdateUnusedOrder: (newOrder: string[]) => void; }; export declare function usePropsState(initialProps: T, emit?: (event: string, payload: any) => void): UsePropsStateReturn; declare type UsePropsStateProps = Pick & { data?: any; renderers?: any; hiddenAttributes?: string[]; hiddenFromAggregators?: string[]; hiddenFromDragDrop?: string[]; restrictedFromDragDrop?: string[]; hideFilterBoxOfUnusedAttributes?: boolean; tableOptions?: any; showRowTotal?: boolean; showColTotal?: boolean; attributes?: string[]; sorters?: any; derivedAttributes?: any; tableMaxWidth?: number; allFilters?: any; materializedInput?: any; }; declare interface UsePropsStateReturn { state: UnwrapRef; localeStrings: ComputedRef | LocaleStrings>; updateState: (key: keyof T, value: any) => void; updateMultiple: (updates: Partial & { allFilters?: any; materializedInput?: any; }) => void; onUpdateValueFilter: (payload: { key: string; value: any; }) => void; onUpdateRendererName: (rendererName: string) => void; onUpdateAggregatorName: (aggregatorName: string) => void; onUpdateRowOrder: (rowOrder: string) => void; onUpdateColOrder: (colOrder: string) => void; onUpdateVals: (vals: any[]) => void; onDraggedAttribute: (payload: { key: keyof T; value: any; }) => void; cleanup?: () => void; } export declare function useProvideFilterBox(): FilterBoxContext | undefined; export declare function useProvidePivotData(): PivotDataContext_2; export declare const VuePivottable: DefineComponent & Readonly<{}>, { aggregators: Record; cols: string[]; rows: string[]; vals: string[]; aggregatorName: string; sorters: any; valueFilter: Record; rowOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; colOrder: "key_a_to_z" | "value_a_to_z" | "value_z_to_a"; derivedAttributes: any; renderers: Record; rendererName: string; locale: string; languagePack: Record; tableMaxWidth: number; aggregatorMap: Record; }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>; export declare const VuePivottableUi: __VLS_WithTemplateSlots; export { }