@dou-ui/pivot 0.0.0-stage → 0.1.0-alpha.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.
- package/LICENSE +21 -0
- package/README.md +10 -2
- package/dist/assets/default-PXde2wzm.js.map +1 -0
- package/dist/core/format.js +116 -0
- package/dist/core/format.js.map +1 -0
- package/dist/core/labels.js +28 -0
- package/dist/core/labels.js.map +1 -0
- package/dist/core/layout.js +190 -0
- package/dist/core/layout.js.map +1 -0
- package/dist/core/source.js +46 -0
- package/dist/core/source.js.map +1 -0
- package/dist/core/table.js +154 -0
- package/dist/core/table.js.map +1 -0
- package/dist/engine/aggregate.js +51 -0
- package/dist/engine/aggregate.js.map +1 -0
- package/dist/engine/compute.js +735 -0
- package/dist/engine/compute.js.map +1 -0
- package/dist/engine/engine.js +46 -0
- package/dist/engine/engine.js.map +1 -0
- package/dist/engine/formula.js +225 -0
- package/dist/engine/formula.js.map +1 -0
- package/dist/engine/group.js +107 -0
- package/dist/engine/group.js.map +1 -0
- package/dist/engine/hash.js +108 -0
- package/dist/engine/hash.js.map +1 -0
- package/dist/engine/index.js +8 -0
- package/dist/engine/show.js +132 -0
- package/dist/engine/show.js.map +1 -0
- package/dist/engine/source.js +339 -0
- package/dist/engine/source.js.map +1 -0
- package/dist/engine/tree.js +226 -0
- package/dist/engine/tree.js.map +1 -0
- package/dist/fields/fields.js +6 -0
- package/dist/fields/fields.js.map +1 -0
- package/dist/fields/fields.vue_vue_type_script_setup_true_lang.js +881 -0
- package/dist/fields/fields.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/fields/filter-list.js +6 -0
- package/dist/fields/filter-list.js.map +1 -0
- package/dist/fields/filter-list.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/fields/filter-list.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/fields/formula-dialog.js +6 -0
- package/dist/fields/formula-dialog.js.map +1 -0
- package/dist/fields/formula-dialog.vue_vue_type_script_setup_true_lang.js +165 -0
- package/dist/fields/formula-dialog.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/fields/model.js +200 -0
- package/dist/fields/model.js.map +1 -0
- package/dist/fields/top-dialog.js +6 -0
- package/dist/fields/top-dialog.js.map +1 -0
- package/dist/fields/top-dialog.vue_vue_type_script_setup_true_lang.js +174 -0
- package/dist/fields/top-dialog.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/locale.js +508 -0
- package/dist/locale.js.map +1 -0
- package/dist/pivot.js +6 -0
- package/dist/pivot.js.map +1 -0
- package/dist/pivot.vue_vue_type_script_setup_true_lang.js +1711 -0
- package/dist/pivot.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +13 -0
- package/dist/types/core/format.d.ts +26 -0
- package/dist/types/core/labels.d.ts +14 -0
- package/dist/types/core/layout.d.ts +72 -0
- package/dist/types/core/source.d.ts +7 -0
- package/dist/types/core/table.d.ts +73 -0
- package/dist/types/engine/aggregate.d.ts +35 -0
- package/dist/types/engine/compute.d.ts +173 -0
- package/dist/types/engine/engine.d.ts +29 -0
- package/dist/types/engine/formula.d.ts +44 -0
- package/dist/types/engine/group.d.ts +34 -0
- package/dist/types/engine/hash.d.ts +36 -0
- package/dist/types/engine/index.d.ts +15 -0
- package/dist/types/engine/show.d.ts +27 -0
- package/dist/types/engine/source.d.ts +108 -0
- package/dist/types/engine/tree.d.ts +87 -0
- package/dist/types/engine/types.d.ts +148 -0
- package/dist/types/fields/fields.vue.d.ts +26 -0
- package/dist/types/fields/filter-list.vue.d.ts +20 -0
- package/dist/types/fields/formula-dialog.vue.d.ts +30 -0
- package/dist/types/fields/model.d.ts +52 -0
- package/dist/types/fields/top-dialog.vue.d.ts +25 -0
- package/dist/types/index.d.ts +458 -0
- package/dist/types/locale.d.ts +184 -0
- package/dist/types/pivot.vue.d.ts +29 -0
- package/dist/types/types.d.ts +199 -0
- package/dist/types/worker/client.d.ts +19 -0
- package/dist/types/worker/default.d.ts +1 -0
- package/dist/types/worker/index.d.ts +5 -0
- package/dist/types/worker/protocol.d.ts +60 -0
- package/dist/types/worker/serve.d.ts +22 -0
- package/dist/worker/client.js +191 -0
- package/dist/worker/client.js.map +1 -0
- package/dist/worker/default.js +20 -0
- package/dist/worker/default.js.map +1 -0
- package/dist/worker/index.js +3 -0
- package/dist/worker/serve.js +101 -0
- package/dist/worker/serve.js.map +1 -0
- package/package.json +64 -4
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { PivotGroupBy } from './group';
|
|
2
|
+
/** What a field holds; it decides how values are grouped, sorted and shown. */
|
|
3
|
+
export type PivotFieldType = 'string' | 'number' | 'date' | 'boolean';
|
|
4
|
+
/**
|
|
5
|
+
* How a value or a group label is written: options for `Intl.NumberFormat`
|
|
6
|
+
* (numbers) or `Intl.DateTimeFormat` (dates), or a function.
|
|
7
|
+
*/
|
|
8
|
+
export type PivotFormat = Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((value: any) => string);
|
|
9
|
+
/** A field of the records: something to group by, or to sum up. */
|
|
10
|
+
export interface PivotField<Row = Record<string, unknown>> {
|
|
11
|
+
/** The key on each record, and how the config refers to the field. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** The name in headers and the field list; `name` when left out. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Guessed from the first records when left out. */
|
|
16
|
+
type?: PivotFieldType;
|
|
17
|
+
/** Reads the field from a record, for fields that are worked out per record. */
|
|
18
|
+
value?: (row: Row, index: number) => unknown;
|
|
19
|
+
/** How the field's group labels, or the values summed up from it, are written. */
|
|
20
|
+
format?: PivotFormat;
|
|
21
|
+
/** Groups in this order come first, in this order; the rest follow, sorted. */
|
|
22
|
+
order?: readonly unknown[];
|
|
23
|
+
}
|
|
24
|
+
/** A field on the row or column axis: its name, or the name with options. */
|
|
25
|
+
export type PivotDimension = string | {
|
|
26
|
+
field: string;
|
|
27
|
+
/** By group label; `'asc'` (the default) puts Chinese in pinyin order and numbers by size. */
|
|
28
|
+
sort?: 'asc' | 'desc';
|
|
29
|
+
/** Whether its groups show a total of their own; `true` by default. */
|
|
30
|
+
subtotal?: boolean;
|
|
31
|
+
/** Groups dates by a period, or numbers in ranges, instead of by each value. */
|
|
32
|
+
by?: PivotGroupBy;
|
|
33
|
+
};
|
|
34
|
+
/** The built-in ways to sum up a field. */
|
|
35
|
+
export type PivotAggregateName = 'sum' | 'count' | 'avg' | 'min' | 'max' | 'distinct' | 'median';
|
|
36
|
+
/**
|
|
37
|
+
* How a value is shown instead of as it is summed up:
|
|
38
|
+
*
|
|
39
|
+
* - `percentOfTotal`, `percentOfRow`, `percentOfColumn`: its share of the grand
|
|
40
|
+
* total, of its row's total, or of its column's total
|
|
41
|
+
* - `percentOfParent`: its share of the group it is in
|
|
42
|
+
* - `difference`, `percentDifference`: how far it is from the group before it
|
|
43
|
+
* - `runningTotal`: it and every group before it, added up
|
|
44
|
+
* - `rank`: its place among the groups beside it, the largest first
|
|
45
|
+
*/
|
|
46
|
+
export type PivotShowAs = 'percentOfTotal' | 'percentOfRow' | 'percentOfColumn' | 'percentOfParent' | 'difference' | 'percentDifference' | 'runningTotal' | 'rank';
|
|
47
|
+
/** A way of showing a value, with the axis it works along. */
|
|
48
|
+
export interface PivotShow {
|
|
49
|
+
as: PivotShowAs;
|
|
50
|
+
/**
|
|
51
|
+
* The axis whose groups come "before" or "beside" (`difference`,
|
|
52
|
+
* `percentDifference`, `runningTotal`, `rank`) or "above" (`percentOfParent`).
|
|
53
|
+
* `'columns'` by default for the first three and `'rows'` for the others;
|
|
54
|
+
* the other axis when that one has no fields.
|
|
55
|
+
*/
|
|
56
|
+
axis?: 'rows' | 'columns';
|
|
57
|
+
}
|
|
58
|
+
/** The colors a mark can take. */
|
|
59
|
+
export type PivotTone = 'neutral' | 'primary' | 'success' | 'warning' | 'danger';
|
|
60
|
+
/** Colors the innermost cells of a value by where they fall between its smallest and largest. */
|
|
61
|
+
export interface PivotMark {
|
|
62
|
+
/** `'bar'` draws a bar under the number; `'scale'` tints the cell, deeper for larger values. */
|
|
63
|
+
type: 'bar' | 'scale';
|
|
64
|
+
/** `'neutral'` by default. */
|
|
65
|
+
tone?: PivotTone;
|
|
66
|
+
}
|
|
67
|
+
/** A value to show: a field to sum up, or the name of a field (summed when numeric, counted otherwise). */
|
|
68
|
+
export type PivotValue = string | {
|
|
69
|
+
/** The field to sum up; leave out for `count` to count the records. */
|
|
70
|
+
field?: string;
|
|
71
|
+
/** A built-in name or one from `defineAggregator`; `'sum'` for numbers, `'count'` otherwise. */
|
|
72
|
+
aggregate?: PivotAggregateName | (string & {});
|
|
73
|
+
/**
|
|
74
|
+
* A calculated value worked out from other fields, such as `profit / amount`
|
|
75
|
+
* (see `parsePivotFormula`); `field` and `aggregate` are then left out.
|
|
76
|
+
*/
|
|
77
|
+
formula?: string;
|
|
78
|
+
/** The header; worked out from the field and the aggregate when left out. */
|
|
79
|
+
label?: string;
|
|
80
|
+
/** How the value is written; the field's `format` when left out. */
|
|
81
|
+
format?: PivotFormat;
|
|
82
|
+
/** Shows the value as a share, a difference, a running total or a rank. */
|
|
83
|
+
show?: PivotShowAs | PivotShow;
|
|
84
|
+
/** Colors the cells by their values. */
|
|
85
|
+
mark?: 'bar' | 'scale' | PivotMark;
|
|
86
|
+
};
|
|
87
|
+
/** Keeps the groups of a field with the largest (or smallest) totals of a value. */
|
|
88
|
+
export interface PivotTopFilter {
|
|
89
|
+
count: number;
|
|
90
|
+
/** Which value, by its place in `values`; the first by default. */
|
|
91
|
+
valueIndex?: number;
|
|
92
|
+
/** `'desc'` (the default) keeps the largest. */
|
|
93
|
+
order?: 'asc' | 'desc';
|
|
94
|
+
}
|
|
95
|
+
/** Keeps the groups of a field whose totals of a value are within a range. */
|
|
96
|
+
export interface PivotRangeFilter {
|
|
97
|
+
/** Which value, by its place in `values`; the first by default. */
|
|
98
|
+
valueIndex?: number;
|
|
99
|
+
min?: number;
|
|
100
|
+
max?: number;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Keeps only some groups of a field: those listed in `include`, or all but
|
|
104
|
+
* those in `exclude`; then, by their totals, the `top` ones or those `between`
|
|
105
|
+
* two numbers (worked out over the records the other filters keep).
|
|
106
|
+
*/
|
|
107
|
+
export interface PivotFilter {
|
|
108
|
+
include?: readonly unknown[];
|
|
109
|
+
exclude?: readonly unknown[];
|
|
110
|
+
top?: PivotTopFilter;
|
|
111
|
+
between?: PivotRangeFilter;
|
|
112
|
+
/**
|
|
113
|
+
* The values above are groups of this grouping. Left out, it is the
|
|
114
|
+
* field's grouping on the rows or columns, if it is there.
|
|
115
|
+
*/
|
|
116
|
+
by?: PivotGroupBy;
|
|
117
|
+
}
|
|
118
|
+
/** Orders the row groups by the values in one column (what clicking a value header does). */
|
|
119
|
+
export interface PivotValueSort {
|
|
120
|
+
/** Which value, by its place in `values`. */
|
|
121
|
+
valueIndex: number;
|
|
122
|
+
/** The column's path of group labels; `[]` (the default) for the grand total. */
|
|
123
|
+
column?: readonly unknown[];
|
|
124
|
+
order: 'asc' | 'desc';
|
|
125
|
+
}
|
|
126
|
+
/** Which fields go where. Plain data, so it can be saved and sent to a worker. */
|
|
127
|
+
export interface PivotConfig {
|
|
128
|
+
rows?: readonly PivotDimension[];
|
|
129
|
+
columns?: readonly PivotDimension[];
|
|
130
|
+
/** Leave empty to count the records. */
|
|
131
|
+
values?: readonly PivotValue[];
|
|
132
|
+
filters?: Readonly<Record<string, PivotFilter>>;
|
|
133
|
+
/** Where the values go when there are several; `'columns'` by default. */
|
|
134
|
+
valuesOn?: 'columns' | 'rows';
|
|
135
|
+
sort?: PivotValueSort | null;
|
|
136
|
+
/** The grand total row and column; both shown by default. */
|
|
137
|
+
totals?: {
|
|
138
|
+
rows?: boolean;
|
|
139
|
+
columns?: boolean;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
/** A group's labels from the outermost field in. */
|
|
143
|
+
export type PivotPath = readonly unknown[];
|
|
144
|
+
/** The groups that are collapsed, by their paths. */
|
|
145
|
+
export interface PivotCollapsed {
|
|
146
|
+
rows?: readonly PivotPath[];
|
|
147
|
+
columns?: readonly PivotPath[];
|
|
148
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import type { ForwardedAttributes } from 'dou-ui';
|
|
3
|
+
import type { PivotConfig } from '../engine/types';
|
|
4
|
+
import type { PivotFieldsProps } from '../types';
|
|
5
|
+
declare const __VLS_export: <Row = Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(PivotFieldsProps<Row> & ForwardedAttributes<HTMLAttributes, PivotFieldsProps<Row>> & {
|
|
7
|
+
config?: PivotConfig;
|
|
8
|
+
}) & {
|
|
9
|
+
"onUpdate:config"?: ((value: PivotConfig) => any) | undefined;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {};
|
|
16
|
+
emit: (event: "update:config", value: PivotConfig) => void;
|
|
17
|
+
}>) => import("vue").VNode & {
|
|
18
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
23
|
+
[K in keyof T]: T[K];
|
|
24
|
+
} : {
|
|
25
|
+
[K in keyof T as K]: T[K];
|
|
26
|
+
}) & {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PivotSource } from '../engine';
|
|
2
|
+
import type { PivotGroupBy } from '../engine/group';
|
|
3
|
+
import type { PivotFilter } from '../engine/types';
|
|
4
|
+
import { type PivotMessages } from '../locale';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
source: PivotSource<unknown>;
|
|
7
|
+
field: string;
|
|
8
|
+
by?: PivotGroupBy;
|
|
9
|
+
filter?: PivotFilter;
|
|
10
|
+
messages: PivotMessages;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
apply: (filter: PivotFilter | null) => any;
|
|
14
|
+
cancel: () => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onApply?: ((filter: PivotFilter | null) => any) | undefined;
|
|
17
|
+
onCancel?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type PivotSource } from '../engine';
|
|
2
|
+
import type { PivotMessages } from '../locale';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
source: PivotSource<unknown>;
|
|
5
|
+
messages: PivotMessages;
|
|
6
|
+
/** The value being changed, or null for a new one. */
|
|
7
|
+
initial: {
|
|
8
|
+
formula: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
} | null;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
'open': boolean;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
apply: (value: {
|
|
18
|
+
formula: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
}) => any;
|
|
21
|
+
"update:open": (value: boolean) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
onApply?: ((value: {
|
|
24
|
+
formula: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
}) => any) | undefined;
|
|
27
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { PivotGroupBy } from '../engine/group';
|
|
2
|
+
import type { PivotConfig, PivotFilter, PivotShowAs } from '../engine/types';
|
|
3
|
+
/** The four places a field can go. */
|
|
4
|
+
export type PivotArea = 'filters' | 'columns' | 'rows' | 'values';
|
|
5
|
+
export declare const AREAS: readonly PivotArea[];
|
|
6
|
+
/**
|
|
7
|
+
* A field as the panel shows it. `kind` tells where it came from: the list
|
|
8
|
+
* of all fields, an axis, the values or the filters; `index` is its place
|
|
9
|
+
* in `values` for a value.
|
|
10
|
+
*/
|
|
11
|
+
export interface PivotFieldItem {
|
|
12
|
+
key: string;
|
|
13
|
+
kind: 'field' | 'dimension' | 'value' | 'filter';
|
|
14
|
+
/** The field's name; `''` for a count of records. */
|
|
15
|
+
field: string;
|
|
16
|
+
index: number;
|
|
17
|
+
}
|
|
18
|
+
export type PivotAreas = Record<PivotArea, PivotFieldItem[]>;
|
|
19
|
+
/** Whether a filter keeps out anything. */
|
|
20
|
+
export declare const isFiltering: (filter: PivotFilter | undefined) => boolean;
|
|
21
|
+
/** The fields in each area. A field filtered on an axis stays on its axis, not in the filters. */
|
|
22
|
+
export declare function areasOf(config: PivotConfig): PivotAreas;
|
|
23
|
+
/** The config with the areas as given: what an axis knew of a field (sort, grouping) moves with it. */
|
|
24
|
+
export declare function configOf(areas: PivotAreas, config: PivotConfig): PivotConfig;
|
|
25
|
+
/** Moves an item to the end of an area (what "移到…" in a field's menu does). */
|
|
26
|
+
export declare function moveItem(areas: PivotAreas, from: PivotArea | null, item: PivotFieldItem, to: PivotArea | null): PivotAreas;
|
|
27
|
+
/** A dimension with some of its options changed; plain names stay plain while they can. */
|
|
28
|
+
export declare function withDimension(config: PivotConfig, axis: 'rows' | 'columns', field: string, patch: {
|
|
29
|
+
sort?: 'asc' | 'desc';
|
|
30
|
+
subtotal?: boolean;
|
|
31
|
+
by?: PivotGroupBy | null;
|
|
32
|
+
}): PivotConfig;
|
|
33
|
+
/** A value with its way of summing up changed. */
|
|
34
|
+
export declare function withAggregate(config: PivotConfig, index: number, aggregate: string): PivotConfig;
|
|
35
|
+
/** A value with its way of showing, its mark or its formula changed; `null` takes one away. */
|
|
36
|
+
export declare function withValue(config: PivotConfig, index: number, patch: {
|
|
37
|
+
show?: PivotShowAs | null;
|
|
38
|
+
mark?: 'bar' | 'scale' | null;
|
|
39
|
+
formula?: string;
|
|
40
|
+
label?: string | null;
|
|
41
|
+
}): PivotConfig;
|
|
42
|
+
/** Which groups of a field to keep by their totals: the top (or bottom) N, or a range. */
|
|
43
|
+
export type PivotRank = Pick<PivotFilter, 'top' | 'between'>;
|
|
44
|
+
/** A field's filter with its `top` or `between` set, or both taken away; its lists stay as they are. */
|
|
45
|
+
export declare function withRank(config: PivotConfig, field: string, rank: PivotRank | null, inFilters: boolean): PivotConfig;
|
|
46
|
+
/** A field's filter replaced; an axis field without a filter left has none. */
|
|
47
|
+
export declare function withFilter(config: PivotConfig, field: string, filter: PivotFilter | null, inFilters: boolean): PivotConfig;
|
|
48
|
+
/**
|
|
49
|
+
* Round range sizes for a number field: about 10, 5 and 20 ranges over
|
|
50
|
+
* its values, each 1, 2 or 5 times a power of ten.
|
|
51
|
+
*/
|
|
52
|
+
export declare function stepsFor(min: number, max: number): number[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { PivotFilter } from '../engine/types';
|
|
2
|
+
import type { PivotMessages } from '../locale';
|
|
3
|
+
import type { PivotRank } from './model';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
messages: PivotMessages;
|
|
6
|
+
/** The field's name as shown. */
|
|
7
|
+
field: string;
|
|
8
|
+
/** The values to rank by, with their headers. */
|
|
9
|
+
values: string[];
|
|
10
|
+
/** The field's filter as it is. */
|
|
11
|
+
filter: PivotFilter | undefined;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
'open': boolean;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
apply: (rank: PivotRank | null) => any;
|
|
19
|
+
"update:open": (value: boolean) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onApply?: ((rank: PivotRank | null) => any) | undefined;
|
|
22
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|