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.
- package/CHANGELOG.md +164 -1
- package/README.md +1 -1
- package/dist/chunks/{chunk-F6MVUAQD.js → chunk-32Z33U6S.js} +23 -0
- package/dist/chunks/{chunk-QBD4FOBB.js → chunk-7CC4JHDY.js} +123 -14
- package/dist/chunks/{chunk-LQCWFJBS.js → chunk-APB4NW4O.js} +146 -22
- package/dist/chunks/{chunk-53ZMK4BH.js → chunk-EM23V5GH.js} +6 -0
- package/dist/chunks/{chunk-X7H7BAVT.js → chunk-IOPAM4JD.js} +307 -179
- package/dist/chunks/{chunk-OYY4BKIL.js → chunk-RWYHJRQO.js} +6 -0
- package/dist/chunks/{unused-texts-YTNJCFFC.js → unused-texts-K3VFH65P.js} +1 -1
- package/dist/chunks/{unused-texts-de-SGOHV4N7.js → unused-texts-de-OW4TGIVX.js} +1 -1
- package/dist/index.js +58 -56
- package/dist/labels.js +5 -5
- package/dist/menu-texts-de.js +1 -1
- package/dist/menus.js +2429 -670
- package/dist/styles.css +557 -117
- package/package.json +2 -2
- package/types/chip-menus.d.ts +20 -4
- package/types/dnd.d.ts +8 -4
- package/types/filter-level.d.ts +16 -0
- package/types/filter.d.ts +31 -0
- package/types/help.d.ts +0 -7
- package/types/labels.d.ts +71 -0
- package/types/lazy-menus.d.ts +2 -2
- package/types/levels.d.ts +105 -0
- package/types/menu-fields.d.ts +80 -0
- package/types/menu-labels.d.ts +214 -19
- package/types/menu-ops.d.ts +150 -9
- package/types/menu-topics.d.ts +293 -0
- package/types/menus.d.ts +1 -1
- package/types/names.d.ts +141 -1
- package/types/place.d.ts +44 -0
- package/types/section.d.ts +8 -11
- package/types/tips.d.ts +1 -36
- package/types/toolbar-panels.d.ts +15 -8
- package/types/unused-texts.d.ts +6 -0
- package/types/use-view-history.d.ts +2 -1
- package/types/view-ops.d.ts +12 -0
- package/types/zones.d.ts +5 -4
- package/types/sections.d.ts +0 -2
package/types/view-ops.d.ts
CHANGED
|
@@ -107,6 +107,18 @@ export declare function numberRange(encoded: import("pivotkit-core").Encoded, fi
|
|
|
107
107
|
min: number;
|
|
108
108
|
max: number;
|
|
109
109
|
} | null;
|
|
110
|
+
/**
|
|
111
|
+
* The first and the last date of a date column (wall-clock ms, as the column holds them), or null
|
|
112
|
+
* for another type or a column without dates: the data's span, which a relative range is measured
|
|
113
|
+
* against ("2026 has no data") and the anchor "latest" counts back from.
|
|
114
|
+
* @param {import("pivotkit-core").Encoded} encoded
|
|
115
|
+
* @param {string} field a date column (a grouping's source, see sourceOf)
|
|
116
|
+
* @returns {{ min: number, max: number } | null}
|
|
117
|
+
*/
|
|
118
|
+
export declare function dateSpan(encoded: import("pivotkit-core").Encoded, field: string): {
|
|
119
|
+
min: number;
|
|
120
|
+
max: number;
|
|
121
|
+
} | null;
|
|
110
122
|
/**
|
|
111
123
|
* The derived field a grouping makes of a field on an axis: replaces it in place. `unit` null removes
|
|
112
124
|
* the grouping (back to the source field). Returns the view and the new field's name.
|
package/types/zones.d.ts
CHANGED
|
@@ -14,21 +14,22 @@ export declare function zoneEntries(view: any, types: any, labels: any): {
|
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* @param {{ view: any, types: Map<string, string>, labels: import("./labels.js").UiLabels,
|
|
17
|
-
* commit: (view: object, note?: any) => void,
|
|
17
|
+
* commit: (view: object, note?: any) => void, earlier?: () => any[],
|
|
18
18
|
* encoded: import("pivotkit-core").Encoded, locale: string, onSwap: () => void,
|
|
19
19
|
* id: string, folded: boolean, onShow: () => void, defaultsOf?: (field: string) => import("./index.js").FieldDefaults | undefined,
|
|
20
20
|
* infoOf?: (field: string) => import("./field-info.js").FieldInfo | undefined, explain?: boolean, showInfo?: boolean }} props
|
|
21
21
|
* `explain`: an "i" next to each zone's title that says what the zone does; `showInfo` false: no "i"
|
|
22
22
|
* of a field description on the chips (Options → Help)
|
|
23
23
|
* `folded`: the compact layout's one line; `defaultsOf`: the host's settings for a source field (fieldDefaults);
|
|
24
|
-
* `infoOf`: the host's description of a field (its source field's for a grouping)
|
|
24
|
+
* `infoOf`: the host's description of a field (its source field's for a grouping); `earlier`: the
|
|
25
|
+
* history's views before this one (a value's own colours for its Highlight)
|
|
25
26
|
*/
|
|
26
|
-
export declare function Zones({ view, types, labels, commit,
|
|
27
|
+
export declare function Zones({ view, types, labels, commit, earlier, encoded, locale, onSwap, id, folded, onShow, defaultsOf, infoOf, explain, showInfo }: {
|
|
27
28
|
view: any;
|
|
28
29
|
types: Map<string, string>;
|
|
29
30
|
labels: import("./labels.js").UiLabels;
|
|
30
31
|
commit: (view: object, note?: any) => void;
|
|
31
|
-
|
|
32
|
+
earlier?: () => any[];
|
|
32
33
|
encoded: import("pivotkit-core").Encoded;
|
|
33
34
|
locale: string;
|
|
34
35
|
onSwap: () => void;
|
package/types/sections.d.ts
DELETED