pivotkit-react 0.2.0 → 0.3.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +164 -1
  2. package/README.md +1 -1
  3. package/dist/chunks/{chunk-F6MVUAQD.js → chunk-32Z33U6S.js} +23 -0
  4. package/dist/chunks/{chunk-QBD4FOBB.js → chunk-7CC4JHDY.js} +123 -14
  5. package/dist/chunks/{chunk-LQCWFJBS.js → chunk-APB4NW4O.js} +146 -22
  6. package/dist/chunks/{chunk-53ZMK4BH.js → chunk-EM23V5GH.js} +6 -0
  7. package/dist/chunks/{chunk-X7H7BAVT.js → chunk-IOPAM4JD.js} +307 -179
  8. package/dist/chunks/{chunk-OYY4BKIL.js → chunk-RWYHJRQO.js} +6 -0
  9. package/dist/chunks/{unused-texts-YTNJCFFC.js → unused-texts-K3VFH65P.js} +1 -1
  10. package/dist/chunks/{unused-texts-de-SGOHV4N7.js → unused-texts-de-OW4TGIVX.js} +1 -1
  11. package/dist/index.js +58 -56
  12. package/dist/labels.js +5 -5
  13. package/dist/menu-texts-de.js +1 -1
  14. package/dist/menus.js +2429 -670
  15. package/dist/styles.css +557 -117
  16. package/package.json +2 -2
  17. package/types/chip-menus.d.ts +20 -4
  18. package/types/dnd.d.ts +8 -4
  19. package/types/filter-level.d.ts +16 -0
  20. package/types/filter.d.ts +31 -0
  21. package/types/help.d.ts +0 -7
  22. package/types/labels.d.ts +71 -0
  23. package/types/lazy-menus.d.ts +2 -2
  24. package/types/levels.d.ts +105 -0
  25. package/types/menu-fields.d.ts +80 -0
  26. package/types/menu-labels.d.ts +214 -19
  27. package/types/menu-ops.d.ts +150 -9
  28. package/types/menu-topics.d.ts +293 -0
  29. package/types/menus.d.ts +1 -1
  30. package/types/names.d.ts +141 -1
  31. package/types/place.d.ts +44 -0
  32. package/types/section.d.ts +8 -11
  33. package/types/tips.d.ts +1 -36
  34. package/types/toolbar-panels.d.ts +15 -8
  35. package/types/unused-texts.d.ts +6 -0
  36. package/types/use-view-history.d.ts +2 -1
  37. package/types/view-ops.d.ts +12 -0
  38. package/types/zones.d.ts +5 -4
  39. package/types/sections.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pivotkit-react",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "React 18/19 pivot report builder on pivotkit-core: drag-and-drop fields, table and Apache ECharts chart, filters, templates as JSON, undo, Excel and CSV export.",
5
5
  "license": "MIT",
6
6
  "author": "eizedev <oss@eize.dev>",
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "@dnd-kit/core": "6.3.1",
62
62
  "@dnd-kit/sortable": "10.0.0",
63
- "pivotkit-core": "^0.2.0"
63
+ "pivotkit-core": "^0.3.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "echarts": "6.1.0"
@@ -1,31 +1,47 @@
1
1
  import React from "react";
2
2
  /** The menu of a chip on Rows or Columns. */
3
- export declare function AxisMenu({ view, zone, index, field, types, labels, commit, close, openFilter, chipRef, onRemove, defaultsOf, rangeOf, locale, info, state }: {
4
- chipRef: any;
3
+ export declare function AxisMenu({ view, zone, index, field, types, labels, commit, close, onRemove, defaultsOf, rangeOf, locale, info, state, encoded }: {
5
4
  close: any;
6
5
  commit: any;
7
6
  defaultsOf: any;
7
+ encoded: any;
8
8
  field: any;
9
9
  index: any;
10
10
  info: any;
11
11
  labels: any;
12
12
  locale: any;
13
13
  onRemove: any;
14
- openFilter: any;
15
14
  rangeOf: any;
16
15
  state: any;
17
16
  types: any;
18
17
  view: any;
19
18
  zone: any;
20
19
  }): React.JSX.Element;
20
+ /** The menu of a chip in Filters (the whole report): the same Filter level, Move to. */
21
+ export declare function FilterMenu({ view, index, field, types, labels, commit, close, onRemove, locale, info, state, encoded }: {
22
+ close: any;
23
+ commit: any;
24
+ encoded: any;
25
+ field: any;
26
+ index: any;
27
+ info: any;
28
+ labels: any;
29
+ locale: any;
30
+ onRemove: any;
31
+ state: any;
32
+ types: any;
33
+ view: any;
34
+ }): React.JSX.Element;
21
35
  /** The menu of a value chip. */
22
- export declare function ValueMenu({ view, index, types, labels, commit, close, onRemove, defaultsOf, info }: {
36
+ export declare function ValueMenu({ view, index, types, labels, commit, close, onRemove, defaultsOf, info, earlier, locale }: {
23
37
  close: any;
24
38
  commit: any;
25
39
  defaultsOf: any;
40
+ earlier: any;
26
41
  index: any;
27
42
  info: any;
28
43
  labels: any;
44
+ locale?: string | undefined;
29
45
  onRemove: any;
30
46
  types: any;
31
47
  view: any;
package/types/dnd.d.ts CHANGED
@@ -36,7 +36,9 @@ export declare function PivotDnd({ labels, onDrop, onDragStart, renderOverlay, c
36
36
  export declare function useDragSource(id: any, source: any, disabled?: boolean): {
37
37
  setNodeRef: (element: HTMLElement | null) => void;
38
38
  isDragging: boolean;
39
- itemProps: any;
39
+ itemProps: {
40
+ [k: string]: (event: any) => void;
41
+ };
40
42
  handleProps: {
41
43
  role: string;
42
44
  tabIndex: number;
@@ -44,7 +46,7 @@ export declare function useDragSource(id: any, source: any, disabled?: boolean):
44
46
  'aria-pressed': boolean | undefined;
45
47
  'aria-roledescription': string;
46
48
  'aria-describedby': string;
47
- onKeyDown: any;
49
+ onKeyDown: (event: any) => void;
48
50
  ref: (element: HTMLElement | null) => void;
49
51
  } | {
50
52
  role: string;
@@ -68,7 +70,9 @@ export declare function useChip(id: any, source: any): {
68
70
  transform?: undefined;
69
71
  transition: string | undefined;
70
72
  };
71
- itemProps: any;
73
+ itemProps: {
74
+ [k: string]: (event: any) => void;
75
+ };
72
76
  handleProps: {
73
77
  role: string;
74
78
  tabIndex: number;
@@ -76,7 +80,7 @@ export declare function useChip(id: any, source: any): {
76
80
  'aria-pressed': boolean | undefined;
77
81
  'aria-roledescription': string;
78
82
  'aria-describedby': string;
79
- onKeyDown: any;
83
+ onKeyDown: (event: any) => void;
80
84
  ref: (element: HTMLElement | null) => void;
81
85
  } | {
82
86
  role: string;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ /**
3
+ * The Filter level. `hint` "conditions": opened from the search on a rule, with the rules open and
4
+ * the focus on the first one.
5
+ */
6
+ export declare function FilterLevel({ view, field, encoded, types, labels, locale, commit, back, hint }: {
7
+ back: any;
8
+ commit: any;
9
+ encoded: any;
10
+ field: any;
11
+ hint: any;
12
+ labels: any;
13
+ locale: any;
14
+ types: any;
15
+ view: any;
16
+ }): React.JSX.Element | null;
package/types/filter.d.ts CHANGED
@@ -1,6 +1,37 @@
1
1
  import React from "react";
2
2
  /** Values listed at once; the search finds the others. */
3
3
  export declare const FILTER_LIST_MAX = 300;
4
+ /** A value as a key of the set of values picked. */
5
+ export declare const keyOf: (v: any) => string;
6
+ /**
7
+ * The values of a field to pick from: a search, Select all and Select none (of what the search
8
+ * shows), and, in a part that scrolls (`children` after them), each value with its row count and
9
+ * "Only". `selected` holds the keys (keyOf) of the values picked; `onChange` gets the next set. The
10
+ * filter popover keeps it as a draft until Apply, the Filter level of a chip menu applies it at once.
11
+ * With `tail`, the items a rule leaves out (`isOut`) are taken out of the list and handed to `render`
12
+ * with the row function, for a folded group at the end of the list (the Filter level; `searching`
13
+ * says whether a search is on, which shows them); the group's markup is the caller's.
14
+ * @param {{ items: Array<{ value: unknown, label: string, count: number, kept?: boolean }>, selected: Set<string>, onChange: (next: Set<string>) => void,
15
+ * labels: any, locale: string, autoFocus?: boolean, tail?: { isOut: (item: any) => boolean, render: (out: any[], row: (item: any) => React.ReactNode, searching: boolean) => React.ReactNode }, children?: React.ReactNode }} props
16
+ */
17
+ export declare function ValueList({ items, selected, onChange, labels, locale, autoFocus, tail, children }: {
18
+ items: Array<{
19
+ value: unknown;
20
+ label: string;
21
+ count: number;
22
+ kept?: boolean;
23
+ }>;
24
+ selected: Set<string>;
25
+ onChange: (next: Set<string>) => void;
26
+ labels: any;
27
+ locale: string;
28
+ autoFocus?: boolean;
29
+ tail?: {
30
+ isOut: (item: any) => boolean;
31
+ render: (out: any[], row: (item: any) => React.ReactNode, searching: boolean) => React.ReactNode;
32
+ };
33
+ children?: React.ReactNode;
34
+ }): React.JSX.Element;
4
35
  /**
5
36
  * @param {{ target: { field: string, anchor: HTMLElement, base?: object } | null, onClose: () => void, view: object,
6
37
  * encoded: import("pivotkit-core").Encoded, locale: string, labels: import("./labels.js").UiLabels, commit: (v: object, note?: any) => void }} props
package/types/help.d.ts CHANGED
@@ -3,18 +3,11 @@ export type Help = {
3
3
  * the "i" of the settings are shown
4
4
  */
5
5
  explain: boolean;
6
- /**
7
- * whether a section is open
8
- */
9
- isOpen: (id: string) => boolean;
10
- setOpen: (id: string, open: boolean) => void;
11
6
  labels: import("./labels.js").UiLabels | null;
12
7
  };
13
8
  /**
14
9
  * @typedef {object} Help
15
10
  * @property {boolean} explain the "i" of the settings are shown
16
- * @property {(id: string) => boolean} isOpen whether a section is open
17
- * @property {(id: string, open: boolean) => void} setOpen
18
11
  * @property {import("./labels.js").UiLabels | null} labels
19
12
  */
20
13
  /** @type {import("react").Context<Help>} */
package/types/labels.d.ts CHANGED
@@ -129,6 +129,8 @@ export declare const en: {
129
129
  filter: string;
130
130
  filtered: string;
131
131
  filterSummary: string;
132
+ /** a text the user typed or a name, quoted as the language quotes: a text condition, field names */
133
+ quote: string;
132
134
  filterTitle: string;
133
135
  condition: string;
134
136
  emptyTitle: string;
@@ -296,6 +298,40 @@ export declare const en: {
296
298
  between: string;
297
299
  notBetween: string;
298
300
  };
301
+ countOfRows: string;
302
+ labelOps: {
303
+ equals: string;
304
+ notEquals: string;
305
+ contains: string;
306
+ notContains: string;
307
+ beginsWith: string;
308
+ endsWith: string;
309
+ };
310
+ relative: {
311
+ year: string;
312
+ years: string;
313
+ month: string;
314
+ months: string;
315
+ day: string;
316
+ days: string;
317
+ };
318
+ withRange: string;
319
+ relativeTo: string;
320
+ withShare: string;
321
+ noData: {
322
+ one: string;
323
+ other: string;
324
+ };
325
+ compareShort: {
326
+ "=": string;
327
+ "!=": string;
328
+ ">": string;
329
+ ">=": string;
330
+ "<": string;
331
+ "<=": string;
332
+ between: string;
333
+ notBetween: string;
334
+ };
299
335
  zoneInfo: {
300
336
  rows: string;
301
337
  cols: string;
@@ -425,6 +461,7 @@ export declare const de: {
425
461
  filter: string;
426
462
  filtered: string;
427
463
  filterSummary: string;
464
+ quote: string;
428
465
  filterTitle: string;
429
466
  condition: string;
430
467
  emptyTitle: string;
@@ -592,6 +629,40 @@ export declare const de: {
592
629
  between: string;
593
630
  notBetween: string;
594
631
  };
632
+ countOfRows: string;
633
+ labelOps: {
634
+ equals: string;
635
+ notEquals: string;
636
+ contains: string;
637
+ notContains: string;
638
+ beginsWith: string;
639
+ endsWith: string;
640
+ };
641
+ relative: {
642
+ year: string;
643
+ years: string;
644
+ month: string;
645
+ months: string;
646
+ day: string;
647
+ days: string;
648
+ };
649
+ withRange: string;
650
+ relativeTo: string;
651
+ withShare: string;
652
+ noData: {
653
+ one: string;
654
+ other: string;
655
+ };
656
+ compareShort: {
657
+ "=": string;
658
+ "!=": string;
659
+ ">": string;
660
+ ">=": string;
661
+ "<": string;
662
+ "<=": string;
663
+ between: string;
664
+ notBetween: string;
665
+ };
595
666
  zoneInfo: {
596
667
  rows: string;
597
668
  cols: string;
@@ -17,12 +17,12 @@ export declare function loadMenus(lang?: string): Promise<typeof import("./menus
17
17
  export declare const menusNow: (lang?: string) => typeof import("./menus.js") | null;
18
18
  /**
19
19
  * One panel of menus.js with its props.
20
- * @param {{ name: "AxisMenu" | "ValueMenu" | "ChartTypePanel" | "OptionsPanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel", loadingText?: string, props: Record<string, any> }} props
20
+ * @param {{ name: "AxisMenu" | "FilterMenu" | "ValueMenu" | "ChartTypePanel" | "OptionsPanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel", loadingText?: string, props: Record<string, any> }} props
21
21
  * `loadingText`: shown while loading; without it nothing is (a popover or panel of its own).
22
22
  * `props.labels` gives the texts of a failed load
23
23
  */
24
24
  export declare function MenuPanel({ name, loadingText, props }: {
25
- name: "AxisMenu" | "ValueMenu" | "ChartTypePanel" | "OptionsPanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel";
25
+ name: "AxisMenu" | "FilterMenu" | "ValueMenu" | "ChartTypePanel" | "OptionsPanel" | "ViewsPanel" | "ExportPanel" | "LoadCheck" | "FilterPopover" | "DrillPanel";
26
26
  loadingText?: string;
27
27
  props: Record<string, any>;
28
28
  }): React.JSX.Element;
@@ -0,0 +1,105 @@
1
+ import React from "react";
2
+ /** The button that opened the popover around `el` (MenuButton's aria-controls names it). */
3
+ export declare function openerOf(el: any): HTMLElement | null;
4
+ /**
5
+ * Tab in a menu leaves it: the focus goes to its button first, so the browser's Tab moves on from
6
+ * there to what follows it, and the menu closes.
7
+ * @param {KeyboardEvent | React.KeyboardEvent} e
8
+ * @param {() => void} close
9
+ */
10
+ export declare function tabLeaves(e: KeyboardEvent | React.KeyboardEvent, close: () => void): boolean;
11
+ /**
12
+ * An ARIA menu: one Tab stop (the item focused last, else the one marked `data-pk-start`, else the
13
+ * first), the arrow keys, Home and End, type-ahead; left and right move inside a group of choices
14
+ * side by side (`data-pk-seg`). `onKey` runs first and may take a key (return true).
15
+ * @param {{ label?: string, labelledBy?: string, className?: string, close: () => void, children: React.ReactNode, testId?: string }} props
16
+ */
17
+ export declare function MenuList({ label, labelledBy, className, close, children, testId }: {
18
+ label?: string;
19
+ labelledBy?: string;
20
+ className?: string;
21
+ close: () => void;
22
+ children: React.ReactNode;
23
+ testId?: string;
24
+ }): React.JSX.Element;
25
+ /**
26
+ * One item of a menu: a choice (`checked` set: menuitemradio, or menuitemcheckbox with `checkbox`)
27
+ * or an action. `hint` stands on its right (a format's example, a date unit's).
28
+ * @param {{ id: string, text: React.ReactNode, onSelect: () => void, checked?: boolean, checkbox?: boolean,
29
+ * hint?: string, icon?: string, danger?: boolean, testId?: string, start?: boolean, plain?: string,
30
+ * label?: string, className?: string, disabled?: boolean, reason?: string, haspopup?: "menu" | "dialog", level?: string,
31
+ * description?: string | null, current?: boolean, children?: React.ReactNode }} props
32
+ * `plain`: the text type-ahead matches; `start`: takes Tab first; `level`: the topic it opens;
33
+ * `description`: an explanation a screen reader reads with it (the "i" next to it shows it);
34
+ * `current`: the entry shown now (the view loaded), with a check and aria-current
35
+ */
36
+ export declare function MenuItem({ id, text, onSelect, checked, checkbox, hint, icon, danger, testId, start, plain, label, className, disabled, reason, haspopup, level, description, current, children }: {
37
+ id: string;
38
+ text: React.ReactNode;
39
+ onSelect: () => void;
40
+ checked?: boolean;
41
+ checkbox?: boolean;
42
+ hint?: string;
43
+ icon?: string;
44
+ danger?: boolean;
45
+ testId?: string;
46
+ start?: boolean;
47
+ plain?: string;
48
+ label?: string;
49
+ className?: string;
50
+ disabled?: boolean;
51
+ reason?: string;
52
+ haspopup?: "menu" | "dialog";
53
+ level?: string;
54
+ description?: string | null;
55
+ current?: boolean;
56
+ children?: React.ReactNode;
57
+ }): React.JSX.Element;
58
+ /**
59
+ * A menu in levels.
60
+ * @param {{ name: string, labels: any, topics: import("./menu-topics.js").Topic[], close: () => void,
61
+ * onPick: (choice: import("./menu-topics.js").Choice) => void, panel: (id: string, back: (focus?: string) => void, hint?: string) => React.ReactNode,
62
+ * head?: React.ReactNode, foot?: React.ReactNode, search?: boolean, locale?: string, focusAgain?: unknown }} props
63
+ * `onPick`: applies a choice (the menu then goes back to its first level, unless the choice closes
64
+ * it); `panel`: the form of a "panel" topic, with `back` (one level back, the focus where the level
65
+ * was opened from, or `focus`); `foot`: items after the topics (Remove field); `focusAgain`: when it
66
+ * changes, the focus goes once more where the last step sent it (that element may come later)
67
+ */
68
+ export declare function LevelMenu({ name, labels, topics, close, onPick, panel, head, foot, search, locale, focusAgain }: {
69
+ name: string;
70
+ labels: any;
71
+ topics: import("./menu-topics.js").Topic[];
72
+ close: () => void;
73
+ onPick: (choice: import("./menu-topics.js").Choice) => void;
74
+ panel: (id: string, back: (focus?: string) => void, hint?: string) => React.ReactNode;
75
+ head?: React.ReactNode;
76
+ foot?: React.ReactNode;
77
+ search?: boolean;
78
+ locale?: string;
79
+ focusAgain?: unknown;
80
+ }): React.JSX.Element;
81
+ /**
82
+ * Runs the last function handed to `later` a moment after the last call (the typing stopped); `now`
83
+ * runs it at once, `cancel` drops it.
84
+ * @param {number} [wait] ms
85
+ */
86
+ export declare function useLater(wait?: number): {
87
+ later: (/** @type {() => void} */ fn: () => void) => void;
88
+ now: () => void;
89
+ cancel: () => void;
90
+ };
91
+ /**
92
+ * A value the user types that applies a moment after the typing stops (`apply` with the text), at
93
+ * once on Enter or when the field is left; Escape gives the text it had back. Returns the text and
94
+ * what the field's handlers call.
95
+ * @param {string} applied the text that applies now
96
+ * @param {(text: string) => void} apply
97
+ * @param {number} [wait] ms; 0: only on Enter and when the field is left (a name)
98
+ */
99
+ export declare function useAppliedText(applied: string, apply: (text: string) => void, wait?: number): {
100
+ text: string;
101
+ set: (/** @type {string} */ value: string) => void;
102
+ flush: () => void;
103
+ /** Escape: back to the text that applies; true when there was something to give back. */
104
+ restore: () => boolean;
105
+ };
@@ -0,0 +1,80 @@
1
+ import React from "react";
2
+ /**
3
+ * A number typed into a menu, read in the report's locale (numbers.js). `kind` says what it must be:
4
+ * "number" any number, "size" above 0, "count" a whole number of 1 or more. The problem shows while
5
+ * the text is not such a number, and for an empty required field once Apply was pressed; `max`: the
6
+ * largest count, a larger one says so.
7
+ * @param {string} text
8
+ * @param {{ kind?: "number" | "size" | "count", required?: boolean, tried?: boolean, max?: number, labels: any, locale: string }} options
9
+ * @returns {{ value: number | null, problem: string | null }}
10
+ */
11
+ export declare function readNumber(text: string, { kind, required, tried, max, labels, locale }: {
12
+ kind?: "number" | "size" | "count";
13
+ required?: boolean;
14
+ tried?: boolean;
15
+ max?: number;
16
+ labels: any;
17
+ locale: string;
18
+ }): {
19
+ value: number | null;
20
+ problem: string | null;
21
+ };
22
+ /**
23
+ * The text field of a number: a text input for the locale's own way of writing numbers (a number
24
+ * input would read "1.000,5" by the browser's rules, not the report's), its problem under it.
25
+ * @param {{ value: string, onChange: (text: string) => void, problem: string | null, label: string,
26
+ * testId: string, className?: string, shown?: string, shownClass?: string, onKeyDown?: (e: React.KeyboardEvent) => void,
27
+ * onBlur?: () => void, onFocus?: () => void, autoFocus?: boolean }} props
28
+ */
29
+ export declare function NumberField({ value, onChange, problem, label, testId, className, shown, shownClass, onKeyDown, onBlur, onFocus, autoFocus }: {
30
+ value: string;
31
+ onChange: (text: string) => void;
32
+ problem: string | null;
33
+ label: string;
34
+ testId: string;
35
+ className?: string;
36
+ shown?: string;
37
+ shownClass?: string;
38
+ onKeyDown?: (e: React.KeyboardEvent) => void;
39
+ onBlur?: () => void;
40
+ onFocus?: () => void;
41
+ autoFocus?: boolean;
42
+ }): React.JSX.Element;
43
+ /**
44
+ * The keys of a field that applies what is typed: Enter applies now; Escape gives back what applies,
45
+ * or, when nothing was changed, goes back a level.
46
+ * @param {{ now: () => void, restore: () => boolean, back: () => void }} actions
47
+ */
48
+ export declare const fieldKeys: ({ now, restore, back }: {
49
+ now: () => void;
50
+ restore: () => boolean;
51
+ back: () => void;
52
+ }) => (/** @type {React.KeyboardEvent} */ e: React.KeyboardEvent) => void;
53
+ /**
54
+ * The measure a top N or a value condition goes by: a select when the view has several values that
55
+ * give numbers, else the one name. `index` is the position in `choices`.
56
+ * @param {{ choices: Array<{ field: string | null, agg: string }>, names: string[], index: number,
57
+ * onChange: (index: number) => void, label: string, prefix?: string, testId: string }} props
58
+ */
59
+ export declare function MeasurePick({ choices, names, index, onChange, label, prefix, testId }: {
60
+ choices: Array<{
61
+ field: string | null;
62
+ agg: string;
63
+ }>;
64
+ names: string[];
65
+ index: number;
66
+ onChange: (index: number) => void;
67
+ label: string;
68
+ prefix?: string;
69
+ testId: string;
70
+ }): React.JSX.Element;
71
+ /** The index of a reference in the choices; the first (the default) when it is not there. */
72
+ export declare const choiceIndex: (choices: any, ref: any) => number;
73
+ /** The measures a filter of a field can go by, with the one it goes by now, and their names. */
74
+ export declare function measuresOf(view: any, types: any, labels: any, ref: any): {
75
+ choices: {
76
+ field: string | null;
77
+ agg: string;
78
+ }[];
79
+ names: any[];
80
+ };