pivotkit-react 0.0.0-stage → 0.2.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 (89) hide show
  1. package/CHANGELOG.md +442 -0
  2. package/LICENSE +21 -0
  3. package/README.md +77 -2
  4. package/dist/chunks/chunk-53ZMK4BH.js +177 -0
  5. package/dist/chunks/chunk-F6MVUAQD.js +741 -0
  6. package/dist/chunks/chunk-LQCWFJBS.js +310 -0
  7. package/dist/chunks/chunk-OYY4BKIL.js +93 -0
  8. package/dist/chunks/chunk-QBD4FOBB.js +254 -0
  9. package/dist/chunks/chunk-X7H7BAVT.js +1752 -0
  10. package/dist/chunks/unused-texts-YTNJCFFC.js +10 -0
  11. package/dist/chunks/unused-texts-de-SGOHV4N7.js +6 -0
  12. package/dist/echarts.js +347 -0
  13. package/dist/index.js +3482 -0
  14. package/dist/labels.js +21 -0
  15. package/dist/menu-texts-de.js +6 -0
  16. package/dist/menus.js +1681 -0
  17. package/dist/styles.css +2529 -0
  18. package/package.json +70 -4
  19. package/types/PivotReport.d.ts +20 -0
  20. package/types/all-labels.d.ts +5 -0
  21. package/types/chart-decorate.d.ts +16 -0
  22. package/types/chart-layout.d.ts +111 -0
  23. package/types/chart-options.d.ts +23 -0
  24. package/types/chart-summary.d.ts +12 -0
  25. package/types/chart-tooltip.d.ts +38 -0
  26. package/types/chart-types.d.ts +61 -0
  27. package/types/chart.d.ts +39 -0
  28. package/types/chip-menus.d.ts +32 -0
  29. package/types/clear-input.d.ts +20 -0
  30. package/types/dnd-moves.d.ts +45 -0
  31. package/types/dnd.d.ts +101 -0
  32. package/types/dom.d.ts +52 -0
  33. package/types/drill-export.d.ts +42 -0
  34. package/types/drill-panel.d.ts +22 -0
  35. package/types/drill-table.d.ts +71 -0
  36. package/types/drill.d.ts +26 -0
  37. package/types/echarts.d.ts +4 -0
  38. package/types/export-run.d.ts +59 -0
  39. package/types/field-info.d.ts +34 -0
  40. package/types/fields.d.ts +32 -0
  41. package/types/files.d.ts +27 -0
  42. package/types/filter.d.ts +21 -0
  43. package/types/help.d.ts +21 -0
  44. package/types/icons.d.ts +80 -0
  45. package/types/index.d.ts +536 -0
  46. package/types/info.d.ts +34 -0
  47. package/types/iso.d.ts +2 -0
  48. package/types/labels.d.ts +663 -0
  49. package/types/lazy-menus.d.ts +28 -0
  50. package/types/menu-labels-de.d.ts +2 -0
  51. package/types/menu-labels.d.ts +317 -0
  52. package/types/menu-ops.d.ts +145 -0
  53. package/types/menu-texts.d.ts +2 -0
  54. package/types/menus.d.ts +7 -0
  55. package/types/names.d.ts +80 -0
  56. package/types/numbers.d.ts +13 -0
  57. package/types/overflow.d.ts +62 -0
  58. package/types/place.d.ts +43 -0
  59. package/types/popover.d.ts +93 -0
  60. package/types/rove.d.ts +20 -0
  61. package/types/section.d.ts +25 -0
  62. package/types/sections.d.ts +2 -0
  63. package/types/share-actions.d.ts +99 -0
  64. package/types/share.d.ts +114 -0
  65. package/types/skeleton.d.ts +9 -0
  66. package/types/storage.d.ts +24 -0
  67. package/types/table.d.ts +29 -0
  68. package/types/templates.d.ts +46 -0
  69. package/types/theme.d.ts +24 -0
  70. package/types/tip-list.d.ts +20 -0
  71. package/types/tips.d.ts +300 -0
  72. package/types/toasts.d.ts +26 -0
  73. package/types/toolbar-panels.d.ts +93 -0
  74. package/types/toolbar.d.ts +5 -0
  75. package/types/unused-load.d.ts +23 -0
  76. package/types/unused-texts-de.d.ts +2 -0
  77. package/types/unused-texts.d.ts +130 -0
  78. package/types/unused.d.ts +22 -0
  79. package/types/use-big-result.d.ts +29 -0
  80. package/types/use-export.d.ts +7 -0
  81. package/types/use-theme.d.ts +11 -0
  82. package/types/use-view-history.d.ts +37 -0
  83. package/types/version.d.ts +2 -0
  84. package/types/view-history.d.ts +106 -0
  85. package/types/view-ops.d.ts +293 -0
  86. package/types/view-save.d.ts +76 -0
  87. package/types/view-store.d.ts +59 -0
  88. package/types/virtual.d.ts +44 -0
  89. package/types/zones.d.ts +42 -0
@@ -0,0 +1,42 @@
1
+ export type DrillExportKind = "drill-copy" | "drill-json" | "drill-csv" | "drill-xlsx";
2
+ /** @typedef {"drill-copy" | "drill-json" | "drill-csv" | "drill-xlsx"} DrillExportKind */
3
+ /**
4
+ * What the export holds, in words: "4 rows", or "1,000 of 4,212 rows" when the panel shows the first
5
+ * of more.
6
+ * @param {{ shown: number, count: number }} part
7
+ * @param {import("./labels.js").UiLabels} labels
8
+ * @param {string} locale
9
+ */
10
+ export declare function rowsText({ shown, count }: {
11
+ shown: number;
12
+ count: number;
13
+ }, labels: import("./labels.js").UiLabels, locale: string): string;
14
+ /**
15
+ * @param {DrillExportKind} kind
16
+ * @param {{ drill: { name: string, count: number, locale: string, indices: ArrayLike<number>, formats: Record<string, string>,
17
+ * columns: Array<{ name: string, label?: string }>, rows: string[][] },
18
+ * encoded: import("pivotkit-core").Encoded, labels: import("./labels.js").UiLabels,
19
+ * onExport?: (file: import("./export-run.js").ExportFile) => unknown,
20
+ * announce: (text: string, extra?: { tone?: "error" }) => void, root: HTMLElement | null }} context
21
+ */
22
+ export declare function exportDrill(kind: DrillExportKind, { drill, encoded, labels, onExport, announce, root }: {
23
+ drill: {
24
+ name: string;
25
+ count: number;
26
+ locale: string;
27
+ indices: ArrayLike<number>;
28
+ formats: Record<string, string>;
29
+ columns: Array<{
30
+ name: string;
31
+ label?: string;
32
+ }>;
33
+ rows: string[][];
34
+ };
35
+ encoded: import("pivotkit-core").Encoded;
36
+ labels: import("./labels.js").UiLabels;
37
+ onExport?: (file: import("./export-run.js").ExportFile) => unknown;
38
+ announce: (text: string, extra?: {
39
+ tone?: "error";
40
+ }) => void;
41
+ root: HTMLElement | null;
42
+ }): Promise<void>;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ export type Drill = import("./drill-table.js").Drill;
3
+ /** @typedef {import("./drill-table.js").Drill} Drill */
4
+ /**
5
+ * @param {{ drill: import("./drill-table.js").DrillSource | null, onClose: () => void, labels: import("./labels.js").UiLabels, locale: string,
6
+ * exportContext?: { encoded: import("pivotkit-core").Encoded, onExport?: (file: import("./export-run.js").ExportFile) => unknown,
7
+ * announce: (text: string, extra?: { tone?: "error" }) => void, root: React.RefObject<HTMLElement | null> } }} props
8
+ */
9
+ export declare function DrillPanel({ drill: source, onClose, labels, locale, exportContext }: {
10
+ drill: import("./drill-table.js").DrillSource | null;
11
+ onClose: () => void;
12
+ labels: import("./labels.js").UiLabels;
13
+ locale: string;
14
+ exportContext?: {
15
+ encoded: import("pivotkit-core").Encoded;
16
+ onExport?: (file: import("./export-run.js").ExportFile) => unknown;
17
+ announce: (text: string, extra?: {
18
+ tone?: "error";
19
+ }) => void;
20
+ root: React.RefObject<HTMLElement | null>;
21
+ };
22
+ }): React.JSX.Element | null;
@@ -0,0 +1,71 @@
1
+ export type DrillSource = {
2
+ result: import("pivotkit-core").PivotResult;
3
+ rowPath: unknown[];
4
+ colPath: unknown[];
5
+ count: number;
6
+ indices: ArrayLike<number>;
7
+ formatOf: (field: string) => unknown;
8
+ nameOf: (field: string) => string;
9
+ infoOf: (field: string) => {
10
+ description?: string;
11
+ } | null | undefined;
12
+ };
13
+ export type Drill = {
14
+ title: string;
15
+ name: string;
16
+ count: number;
17
+ locale: string;
18
+ indices: ArrayLike<number>;
19
+ formats: Record<string, string>;
20
+ columns: Array<{
21
+ name: string;
22
+ numeric: boolean;
23
+ label?: string;
24
+ description?: string;
25
+ }>;
26
+ rows: string[][];
27
+ };
28
+ /**
29
+ * The text of one column's values: a date as the table shows it (its day, with the time when the
30
+ * column has times), a number with `format` (a format of pivotkit-core: "text" shows an identifier
31
+ * as it is, "40072") or else in the locale with up to 6 decimals, yes/no with the labels' words.
32
+ * @param {import("pivotkit-core").Column} column
33
+ * @param {{ locale: string, labels: import("pivotkit-core").Labels, format?: unknown }} options
34
+ * @returns {{ text: (value: unknown) => string, numeric: boolean }}
35
+ */
36
+ export declare function columnText(column: import("pivotkit-core").Column, { locale, labels, format }: {
37
+ locale: string;
38
+ labels: import("pivotkit-core").Labels;
39
+ format?: unknown;
40
+ }): {
41
+ text: (value: unknown) => string;
42
+ numeric: boolean;
43
+ };
44
+ /**
45
+ * The rows of the drill-down panel as text, from the encoded columns: one entry per column (its name,
46
+ * whether it is right-aligned as a number) and per row the texts; a blank value is "".
47
+ * @param {import("pivotkit-core").Encoded} encoded
48
+ * @param {ArrayLike<number>} indices positions of the rows in the data (drillRows)
49
+ * @param {{ locale: string, labels: import("pivotkit-core").Labels, formatOf?: (column: string) => unknown }} options
50
+ * `formatOf`: the host's format for a column's values (fieldDefaults)
51
+ * @returns {{ columns: Array<{ name: string, numeric: boolean }>, rows: string[][] }}
52
+ */
53
+ export declare function drillTable(encoded: import("pivotkit-core").Encoded, indices: ArrayLike<number>, { locale, labels, formatOf }: {
54
+ locale: string;
55
+ labels: import("pivotkit-core").Labels;
56
+ formatOf?: (column: string) => unknown;
57
+ }): {
58
+ columns: Array<{
59
+ name: string;
60
+ numeric: boolean;
61
+ }>;
62
+ rows: string[][];
63
+ };
64
+ /**
65
+ * The panel's contents for a clicked value: its title, its table, and the formats the panel's exports
66
+ * use (pivotkit-core's rows exporters write them as the table shows them).
67
+ * @param {DrillSource} source
68
+ * @param {import("./labels.js").UiLabels} labels
69
+ * @returns {Drill}
70
+ */
71
+ export declare function drillOf({ result, rowPath, colPath, count, indices, formatOf, nameOf, infoOf }: DrillSource, labels: import("./labels.js").UiLabels): Drill;
@@ -0,0 +1,26 @@
1
+ /** Rows passed to the panel and to onCellClick by default. */
2
+ export declare const DRILL_LIMIT = 1000;
3
+ /**
4
+ * One row rebuilt from encoded columns: blank is null, dates are ISO texts of their wall clock.
5
+ * A plain object for the host; every column is defined as an own property, so a column named
6
+ * "__proto__" is a value like any other instead of setting the prototype.
7
+ * @param {import("pivotkit-core").Encoded} encoded
8
+ * @param {number} i
9
+ */
10
+ export declare function decodeRow(encoded: import("pivotkit-core").Encoded, i: number): {};
11
+ /**
12
+ * The rows behind a cell.
13
+ * @param {import("pivotkit-core").PivotResult} result
14
+ * @param {{ rowPath?: any[], colPath?: any[], data?: object[] | null, limit?: number }} options
15
+ * @returns {{ count: number, rows: object[], indices: Int32Array }} `indices`: the rows' positions in the data
16
+ */
17
+ export declare function drillRows(result: import("pivotkit-core").PivotResult, { rowPath, colPath, data, limit }: {
18
+ rowPath?: any[];
19
+ colPath?: any[];
20
+ data?: object[] | null;
21
+ limit?: number;
22
+ }): {
23
+ count: number;
24
+ rows: object[];
25
+ indices: Int32Array;
26
+ };
@@ -0,0 +1,4 @@
1
+ import { init } from "echarts/core";
2
+ export { init };
3
+ export { cleanChartOptions, mergeChartOptions } from "./chart-options.js";
4
+ export { decorate } from "./chart-decorate.js";
@@ -0,0 +1,59 @@
1
+ export declare const XLSX_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
2
+ export type ExportFile = import("./index.js").ExportFile;
3
+ /**
4
+ * pivotkit-core/export, imported once; a failed import is forgotten, so the next call tries again. A
5
+ * menu that copies calls it when it opens: a copy right in the click (no import to wait for) is
6
+ * allowed in every browser.
7
+ */
8
+ export declare function loadExporters(): Promise<typeof import("pivotkit-core/export")>;
9
+ /** The export module, at once when it is loaded. */
10
+ export declare const exportersNow: () => typeof import("pivotkit-core/export") | null;
11
+ /** Starts loading the export module (a menu that copies, when it opens); a failure waits for the click. */
12
+ export declare const prepareExporters: () => undefined;
13
+ /**
14
+ * Hands the file to the host's onExport, then downloads it unless onExport returned false.
15
+ * @returns {boolean} whether the report downloaded it
16
+ * @param {Blob} blob
17
+ * @param {Omit<ExportFile, "blob"> & { doc?: Document, onExport?: (file: ExportFile) => unknown }} options
18
+ */
19
+ export declare function deliver(blob: Blob, { doc, onExport, ...file }: Omit<ExportFile, "blob"> & {
20
+ doc?: Document;
21
+ onExport?: (file: ExportFile) => unknown;
22
+ }): boolean;
23
+ /**
24
+ * Hands the text to the host's onExport, then puts it on the clipboard unless onExport returned
25
+ * false.
26
+ * @param {string} text
27
+ * @param {Omit<ExportFile, "blob" | "text"> & { type: string, container: HTMLElement | null, onExport?: (file: ExportFile) => unknown }} options
28
+ * @returns {Promise<"copied" | "kept" | "blocked">} kept: the host took it; blocked: the browser refused
29
+ */
30
+ export declare function copyOut(text: string, { type, container, onExport, ...file }: Omit<ExportFile, "blob" | "text"> & {
31
+ type: string;
32
+ container: HTMLElement | null;
33
+ onExport?: (file: ExportFile) => unknown;
34
+ }): Promise<"copied" | "kept" | "blocked">;
35
+ export type ExportContext = {
36
+ fileName: string;
37
+ result: import("pivotkit-core").PivotResult | null;
38
+ locale: string;
39
+ labels: import("./labels.js").UiLabels;
40
+ limits: object | undefined;
41
+ root: React.RefObject<HTMLElement | null>;
42
+ chartRef: React.RefObject<any>;
43
+ announce: (text: string, extra?: {
44
+ tone?: "error";
45
+ }) => void;
46
+ onExport?: (file: ExportFile) => unknown;
47
+ };
48
+ /**
49
+ * @typedef {{ fileName: string, result: import("pivotkit-core").PivotResult | null, locale: string,
50
+ * labels: import("./labels.js").UiLabels, limits: object | undefined, root: React.RefObject<HTMLElement | null>,
51
+ * chartRef: React.RefObject<any>, announce: (text: string, extra?: { tone?: "error" }) => void,
52
+ * onExport?: (file: ExportFile) => unknown }} ExportContext
53
+ */
54
+ /**
55
+ * One export of the Export menu.
56
+ * @param {"xlsx" | "csv" | "png" | "copy-table" | "copy-json"} kind
57
+ * @param {ExportContext} context
58
+ */
59
+ export declare function runExport(kind: "xlsx" | "csv" | "png" | "copy-table" | "copy-json", { fileName, result, locale, labels, limits, root, chartRef, announce, onExport }: ExportContext): Promise<void>;
@@ -0,0 +1,34 @@
1
+ export type FieldInfo = {
2
+ label?: string;
3
+ description?: string;
4
+ href?: string;
5
+ };
6
+ /**
7
+ * Every field's label, description and link, by lower-case name (matched case-insensitively, like
8
+ * column names). Empty without fieldDefaults.
9
+ * @param {unknown} fieldDefaults
10
+ * @returns {Map<string, FieldInfo>}
11
+ */
12
+ export declare function fieldInfoOf(fieldDefaults: unknown): Map<string, FieldInfo>;
13
+ /**
14
+ * The display names for pivotkit-core's labels (`labels.fields`), or null when no field has one. A
15
+ * label that two fields share, or that is another field's own name, gets the field's name in
16
+ * parentheses ("Name (product_name)"), so no two fields look the same anywhere.
17
+ * @param {Map<string, FieldInfo>} info
18
+ * @param {readonly string[]} [fieldNames] the data's column names, in their own spelling
19
+ * @returns {Record<string, string> | null}
20
+ */
21
+ export declare function displayNames(info: Map<string, FieldInfo>, fieldNames?: readonly string[]): Record<string, string> | null;
22
+ /**
23
+ * The column types a host named (fieldDefaults[field].type), for encode's `types`; null without any.
24
+ * @param {unknown} fieldDefaults
25
+ * @returns {Record<string, string> | null}
26
+ */
27
+ export declare function typesOf(fieldDefaults: unknown): Record<string, string> | null;
28
+ /**
29
+ * Whether a field matches the search of the field list: its name, its display name or its description.
30
+ * @param {string} field
31
+ * @param {string} query lower case, trimmed
32
+ * @param {FieldInfo | undefined} info
33
+ */
34
+ export declare function fieldMatches(field: string, query: string, info: FieldInfo | undefined): boolean;
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ /**
3
+ * @param {{ fields: Array<{ name: string, type: string }>, placed: Map<string, string[]>, labels: import("./labels.js").UiLabels,
4
+ * onAdd: (field: string, zone: string) => void, onNote: (text: string) => void, drawer: boolean, open: boolean, onClose: () => void,
5
+ * onFilter?: (field: string, anchor: HTMLElement | null) => void, showInfo?: boolean,
6
+ * nameOf: (field: string) => string, info: Map<string, import("./field-info.js").FieldInfo>, onSkip?: () => void,
7
+ * collapsed?: boolean, onCollapse?: (collapsed: boolean) => void }} props
8
+ * `nameOf`: a field's display name; `info`: the host's descriptions by lower-case field name;
9
+ * `onSkip`: the link past the list to the toolbar (not in the drawer, which the toolbar opens);
10
+ * `collapsed`, `onCollapse`: the list folded to a rail ("Fields" and a search button) beside the
11
+ * report, and the change of it (not in the drawer)
12
+ */
13
+ export declare function FieldPanel({ fields, placed, labels, onAdd, onNote, onFilter, drawer, open, onClose, nameOf, info, showInfo, onSkip, collapsed, onCollapse }: {
14
+ fields: Array<{
15
+ name: string;
16
+ type: string;
17
+ }>;
18
+ placed: Map<string, string[]>;
19
+ labels: import("./labels.js").UiLabels;
20
+ onAdd: (field: string, zone: string) => void;
21
+ onNote: (text: string) => void;
22
+ drawer: boolean;
23
+ open: boolean;
24
+ onClose: () => void;
25
+ onFilter?: (field: string, anchor: HTMLElement | null) => void;
26
+ showInfo?: boolean;
27
+ nameOf: (field: string) => string;
28
+ info: Map<string, import("./field-info.js").FieldInfo>;
29
+ onSkip?: () => void;
30
+ collapsed?: boolean;
31
+ onCollapse?: (collapsed: boolean) => void;
32
+ }): React.JSX.Element;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * A file name without extension from the host's `fileName`: no path, no characters a file system
3
+ * refuses, no leading dots, at most 120 characters; "pivot" when nothing is left.
4
+ * @param {unknown} name
5
+ */
6
+ export declare function safeFileName(name: unknown): any;
7
+ /**
8
+ * A Blob from a data: URL (base64 or percent-encoded), as ECharts' getDataURL() gives it.
9
+ * @param {string} url
10
+ */
11
+ export declare function dataUrlToBlob(url: string): Blob;
12
+ /**
13
+ * Starts the download of a Blob under a name, from the document the report is in.
14
+ * @param {Blob} blob
15
+ * @param {string} name
16
+ * @param {Document} [doc]
17
+ */
18
+ export declare function saveBlob(blob: Blob, name: string, doc?: Document): void;
19
+ /**
20
+ * Puts a text on the clipboard: the Clipboard API, else a copy from a hidden text field inside the
21
+ * report (`container`, so it works in a shadow root too). False when the browser allows neither (no
22
+ * secure context, a frame without the permission).
23
+ * @param {string} text
24
+ * @param {HTMLElement | null} container
25
+ * @returns {Promise<boolean>}
26
+ */
27
+ export declare function copyText(text: string, container: HTMLElement | null): Promise<boolean>;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ /** Values listed at once; the search finds the others. */
3
+ export declare const FILTER_LIST_MAX = 300;
4
+ /**
5
+ * @param {{ target: { field: string, anchor: HTMLElement, base?: object } | null, onClose: () => void, view: object,
6
+ * encoded: import("pivotkit-core").Encoded, locale: string, labels: import("./labels.js").UiLabels, commit: (v: object, note?: any) => void }} props
7
+ * `target.base`: the draft view of a field that is not placed yet (it goes into Filters on Apply)
8
+ */
9
+ export declare function FilterPopover({ target, onClose, view, encoded, locale, labels, commit }: {
10
+ target: {
11
+ field: string;
12
+ anchor: HTMLElement;
13
+ base?: object;
14
+ } | null;
15
+ onClose: () => void;
16
+ view: object;
17
+ encoded: import("pivotkit-core").Encoded;
18
+ locale: string;
19
+ labels: import("./labels.js").UiLabels;
20
+ commit: (v: object, note?: any) => void;
21
+ }): React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ export type Help = {
2
+ /**
3
+ * the "i" of the settings are shown
4
+ */
5
+ explain: boolean;
6
+ /**
7
+ * whether a section is open
8
+ */
9
+ isOpen: (id: string) => boolean;
10
+ setOpen: (id: string, open: boolean) => void;
11
+ labels: import("./labels.js").UiLabels | null;
12
+ };
13
+ /**
14
+ * @typedef {object} Help
15
+ * @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
+ * @property {import("./labels.js").UiLabels | null} labels
19
+ */
20
+ /** @type {import("react").Context<Help>} */
21
+ export declare const HelpContext: import("react").Context<Help>;
@@ -0,0 +1,80 @@
1
+ import React from "react";
2
+ declare const PATHS: {
3
+ grip: string;
4
+ text: string;
5
+ number: string;
6
+ date: string;
7
+ boolean: string;
8
+ search: string;
9
+ x: string;
10
+ chevronDown: string;
11
+ chevronRight: string;
12
+ arrowUp: string;
13
+ arrowDown: string;
14
+ undo: string;
15
+ redo: string;
16
+ reset: string;
17
+ table: string;
18
+ chart: string;
19
+ stacked: string;
20
+ horizontal: string;
21
+ line: string;
22
+ area: string;
23
+ pie: string;
24
+ donut: string;
25
+ heatmap: string;
26
+ download: string;
27
+ bookmark: string;
28
+ sliders: string;
29
+ filter: string;
30
+ more: string;
31
+ plus: string;
32
+ check: string;
33
+ sortAsc: string;
34
+ sortDesc: string;
35
+ panel: string;
36
+ layout: string;
37
+ trash: string;
38
+ save: string;
39
+ sparkle: string;
40
+ rows: string;
41
+ cols: string;
42
+ sigma: string;
43
+ info: string;
44
+ warn: string;
45
+ image: string;
46
+ file: string;
47
+ newFile: string;
48
+ swap: string;
49
+ top: string;
50
+ link: string;
51
+ copy: string;
52
+ upload: string;
53
+ drag: string;
54
+ enlarge: string;
55
+ fullScreen: string;
56
+ };
57
+ /**
58
+ * @param {{ name: keyof typeof PATHS, size?: number, className?: string }} props
59
+ */
60
+ export declare function Icon({ name, size, className }: {
61
+ name: keyof typeof PATHS;
62
+ size?: number;
63
+ className?: string;
64
+ }): React.JSX.Element;
65
+ /** The icon of a column type. */
66
+ export declare const TYPE_ICON: {
67
+ string: string;
68
+ number: string;
69
+ date: string;
70
+ boolean: string;
71
+ null: string;
72
+ };
73
+ /** The icon of each zone. */
74
+ export declare const ZONE_ICON: {
75
+ rows: string;
76
+ cols: string;
77
+ values: string;
78
+ filters: string;
79
+ };
80
+ export {};