drizzle-cube 0.2.2 → 0.2.3
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/dist/client/charts.js +11 -11
- package/dist/client/chunks/chart-activitygridchart-BzL97Vnm.js +2510 -0
- package/dist/client/chunks/chart-activitygridchart-BzL97Vnm.js.map +1 -0
- package/dist/client/chunks/chart-activitygridchart-config-48WqIofo.js +230 -0
- package/dist/client/chunks/chart-activitygridchart-config-48WqIofo.js.map +1 -0
- package/dist/client/chunks/{chart-areachart-C_luzpU9.js → chart-areachart-BtH3SvAM.js} +3 -3
- package/dist/client/chunks/{chart-areachart-C_luzpU9.js.map → chart-areachart-BtH3SvAM.js.map} +1 -1
- package/dist/client/chunks/{chart-areachart-config-InZgxubz.js → chart-areachart-config-D8taXdn1.js} +5 -6
- package/dist/client/chunks/chart-areachart-config-D8taXdn1.js.map +1 -0
- package/dist/client/chunks/{chart-barchart-CJzMunji.js → chart-barchart-DX6DIoIp.js} +4 -4
- package/dist/client/chunks/{chart-barchart-CJzMunji.js.map → chart-barchart-DX6DIoIp.js.map} +1 -1
- package/dist/client/chunks/{chart-barchart-config-DxatOnVV.js → chart-barchart-config-DjRZBtLb.js} +5 -6
- package/dist/client/chunks/chart-barchart-config-DjRZBtLb.js.map +1 -0
- package/dist/client/chunks/{chart-bubblechart-DPyYu4B-.js → chart-bubblechart-Lj_PnppP.js} +2 -2
- package/dist/client/chunks/{chart-bubblechart-DPyYu4B-.js.map → chart-bubblechart-Lj_PnppP.js.map} +1 -1
- package/dist/client/chunks/{chart-bubblechart-config-CcZTMTCx.js → chart-bubblechart-config-C6ck2qmg.js} +5 -6
- package/dist/client/chunks/chart-bubblechart-config-C6ck2qmg.js.map +1 -0
- package/dist/client/chunks/{chart-charttooltip-CyhJAnW_.js → chart-charttooltip-D9BKscsw.js} +2 -2
- package/dist/client/chunks/{chart-charttooltip-CyhJAnW_.js.map → chart-charttooltip-D9BKscsw.js.map} +1 -1
- package/dist/client/chunks/{chart-datatable-xonQ9udl.js → chart-datatable-BaECYDn2.js} +2 -2
- package/dist/client/chunks/{chart-datatable-xonQ9udl.js.map → chart-datatable-BaECYDn2.js.map} +1 -1
- package/dist/client/chunks/{chart-datatable-config-D7mojhYA.js → chart-datatable-config-B5z0SlOJ.js} +5 -6
- package/dist/client/chunks/chart-datatable-config-B5z0SlOJ.js.map +1 -0
- package/dist/client/chunks/{chart-kpidelta-DTq92DyT.js → chart-kpidelta-Bx-stIIk.js} +23 -23
- package/dist/client/chunks/{chart-kpidelta-DTq92DyT.js.map → chart-kpidelta-Bx-stIIk.js.map} +1 -1
- package/dist/client/chunks/{chart-kpidelta-config-icJXuFxe.js → chart-kpidelta-config-CnZfi_P2.js} +5 -6
- package/dist/client/chunks/chart-kpidelta-config-CnZfi_P2.js.map +1 -0
- package/dist/client/chunks/{chart-kpinumber-CiOvJAlz.js → chart-kpinumber-BrXgyKGP.js} +23 -23
- package/dist/client/chunks/{chart-kpinumber-CiOvJAlz.js.map → chart-kpinumber-BrXgyKGP.js.map} +1 -1
- package/dist/client/chunks/{chart-kpinumber-config-T39g03ud.js → chart-kpinumber-config-CVikHojM.js} +5 -6
- package/dist/client/chunks/chart-kpinumber-config-CVikHojM.js.map +1 -0
- package/dist/client/chunks/{chart-kpitext-D5kNrcSl.js → chart-kpitext-_2tnYN_z.js} +3 -3
- package/dist/client/chunks/{chart-kpitext-D5kNrcSl.js.map → chart-kpitext-_2tnYN_z.js.map} +1 -1
- package/dist/client/chunks/{chart-kpitext-config-BbJGXAVk.js → chart-kpitext-config-B2MovXSw.js} +5 -6
- package/dist/client/chunks/chart-kpitext-config-B2MovXSw.js.map +1 -0
- package/dist/client/chunks/{chart-linechart-4AF7Q_zF.js → chart-linechart-DBdIULsM.js} +4 -4
- package/dist/client/chunks/{chart-linechart-4AF7Q_zF.js.map → chart-linechart-DBdIULsM.js.map} +1 -1
- package/dist/client/chunks/{chart-linechart-config-BS1qVC8K.js → chart-linechart-config-CVBVB7nS.js} +5 -6
- package/dist/client/chunks/chart-linechart-config-CVBVB7nS.js.map +1 -0
- package/dist/client/chunks/{chart-markdownchart-config-DMCD8phf.js → chart-markdownchart-config-Cq5Sxrgq.js} +5 -6
- package/dist/client/chunks/chart-markdownchart-config-Cq5Sxrgq.js.map +1 -0
- package/dist/client/chunks/{chart-piechart-Bf4TMIJP.js → chart-piechart-CzesCpZ_.js} +3 -3
- package/dist/client/chunks/{chart-piechart-Bf4TMIJP.js.map → chart-piechart-CzesCpZ_.js.map} +1 -1
- package/dist/client/chunks/{chart-piechart-config-6ZK8XaSX.js → chart-piechart-config-Bdd31Gdi.js} +5 -6
- package/dist/client/chunks/chart-piechart-config-Bdd31Gdi.js.map +1 -0
- package/dist/client/chunks/{chart-radarchart-DYar9VDH.js → chart-radarchart-B3WUEiTh.js} +3 -3
- package/dist/client/chunks/{chart-radarchart-DYar9VDH.js.map → chart-radarchart-B3WUEiTh.js.map} +1 -1
- package/dist/client/chunks/{chart-radarchart-config-CCWOkkwO.js → chart-radarchart-config-BWyfn0ij.js} +5 -6
- package/dist/client/chunks/chart-radarchart-config-BWyfn0ij.js.map +1 -0
- package/dist/client/chunks/{chart-radialbarchart-BzRlxNfh.js → chart-radialbarchart-DBiRcLd9.js} +3 -3
- package/dist/client/chunks/{chart-radialbarchart-BzRlxNfh.js.map → chart-radialbarchart-DBiRcLd9.js.map} +1 -1
- package/dist/client/chunks/{chart-radialbarchart-config-DicXYrMW.js → chart-radialbarchart-config-lU2_NQCD.js} +5 -6
- package/dist/client/chunks/chart-radialbarchart-config-lU2_NQCD.js.map +1 -0
- package/dist/client/chunks/{chart-scatterchart-DNVKc7nQ.js → chart-scatterchart-C_D9OqA1.js} +2 -2
- package/dist/client/chunks/{chart-scatterchart-DNVKc7nQ.js.map → chart-scatterchart-C_D9OqA1.js.map} +1 -1
- package/dist/client/chunks/{chart-scatterchart-config-DgYa-5vm.js → chart-scatterchart-config-DtLnut1M.js} +5 -6
- package/dist/client/chunks/chart-scatterchart-config-DtLnut1M.js.map +1 -0
- package/dist/client/chunks/{chart-treemapchart-CworQneQ.js → chart-treemapchart-DJqy3Sy7.js} +3 -3
- package/dist/client/chunks/{chart-treemapchart-CworQneQ.js.map → chart-treemapchart-DJqy3Sy7.js.map} +1 -1
- package/dist/client/chunks/{chart-treemapchart-config-DGhteyBe.js → chart-treemapchart-config-BEiIWQnR.js} +5 -6
- package/dist/client/chunks/chart-treemapchart-config-BEiIWQnR.js.map +1 -0
- package/dist/client/chunks/{charts-Cjl5gNIQ.js → charts-DFbr7EGW.js} +45 -45
- package/dist/client/chunks/{charts-Cjl5gNIQ.js.map → charts-DFbr7EGW.js.map} +1 -1
- package/dist/client/chunks/icons-D6z-_9sa.js +1400 -0
- package/dist/client/chunks/icons-D6z-_9sa.js.map +1 -0
- package/dist/client/chunks/index-_pVwmFVW.js +551 -0
- package/dist/client/chunks/index-_pVwmFVW.js.map +1 -0
- package/dist/client/components.js +3149 -3132
- package/dist/client/components.js.map +1 -1
- package/dist/client/hooks.js +5 -5
- package/dist/client/icons/defaultIcons.d.ts +5 -0
- package/dist/client/icons/index.d.ts +22 -0
- package/dist/client/icons/registry.d.ts +58 -0
- package/dist/client/icons/types.d.ts +111 -0
- package/dist/client/icons.d.ts +2 -0
- package/dist/client/icons.js +15 -0
- package/dist/client/icons.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +44 -32
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers/CubeProvider.d.ts +1 -1
- package/dist/client/providers.js +1 -1
- package/dist/client/styles.css +1 -1
- package/dist/client/types.d.ts +1 -0
- package/dist/client-bundle-stats.html +1 -1
- package/package.json +21 -9
- package/dist/client/chunks/chart-activitygridchart--4a5X5eV.js +0 -3713
- package/dist/client/chunks/chart-activitygridchart--4a5X5eV.js.map +0 -1
- package/dist/client/chunks/chart-activitygridchart-config-D9CgNH02.js +0 -51
- package/dist/client/chunks/chart-activitygridchart-config-D9CgNH02.js.map +0 -1
- package/dist/client/chunks/chart-areachart-config-InZgxubz.js.map +0 -1
- package/dist/client/chunks/chart-barchart-config-DxatOnVV.js.map +0 -1
- package/dist/client/chunks/chart-bubblechart-config-CcZTMTCx.js.map +0 -1
- package/dist/client/chunks/chart-datatable-config-D7mojhYA.js.map +0 -1
- package/dist/client/chunks/chart-kpidelta-config-icJXuFxe.js.map +0 -1
- package/dist/client/chunks/chart-kpinumber-config-T39g03ud.js.map +0 -1
- package/dist/client/chunks/chart-kpitext-config-BbJGXAVk.js.map +0 -1
- package/dist/client/chunks/chart-linechart-config-BS1qVC8K.js.map +0 -1
- package/dist/client/chunks/chart-markdownchart-config-DMCD8phf.js.map +0 -1
- package/dist/client/chunks/chart-piechart-config-6ZK8XaSX.js.map +0 -1
- package/dist/client/chunks/chart-radarchart-config-CCWOkkwO.js.map +0 -1
- package/dist/client/chunks/chart-radialbarchart-config-DicXYrMW.js.map +0 -1
- package/dist/client/chunks/chart-scatterchart-config-DgYa-5vm.js.map +0 -1
- package/dist/client/chunks/chart-treemapchart-config-DGhteyBe.js.map +0 -1
- package/dist/client/chunks/icons-D-n_woAP.js +0 -2386
- package/dist/client/chunks/icons-D-n_woAP.js.map +0 -1
- package/dist/client/chunks/index-Cn50vSlx.js +0 -8707
- package/dist/client/chunks/index-Cn50vSlx.js.map +0 -1
package/dist/client/hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as b, useRef as w, useEffect as y, useCallback as C, useMemo as m } from "react";
|
|
2
|
-
import { u as L } from "./chunks/chart-activitygridchart
|
|
3
|
-
import {
|
|
2
|
+
import { u as L } from "./chunks/chart-activitygridchart-BzL97Vnm.js";
|
|
3
|
+
import { D as F } from "./chunks/chart-activitygridchart-BzL97Vnm.js";
|
|
4
4
|
function W(e, r = {}) {
|
|
5
5
|
const { cubeApi: s, batchCoordinator: u, enableBatching: a } = L(), [l, d] = b({
|
|
6
6
|
resultSet: null,
|
|
@@ -38,7 +38,7 @@ function W(e, r = {}) {
|
|
|
38
38
|
});
|
|
39
39
|
}, [e, s, u, a, r.skip, r.resetResultSetOnChange]), l;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function O(e, r = !0) {
|
|
42
42
|
const [s, u] = b([]), [a, l] = b(null), d = w(null), f = w(""), {
|
|
43
43
|
resultSet: n,
|
|
44
44
|
isLoading: o,
|
|
@@ -164,10 +164,10 @@ function k() {
|
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
export {
|
|
167
|
-
|
|
167
|
+
F as useCubeMeta,
|
|
168
168
|
W as useCubeQuery,
|
|
169
169
|
Q as useDebounce,
|
|
170
|
-
|
|
170
|
+
O as useFilterValues,
|
|
171
171
|
k as useResponsiveDashboard
|
|
172
172
|
};
|
|
173
173
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drizzle Cube Icon System
|
|
3
|
+
*
|
|
4
|
+
* Centralized, configurable icon registry following the theme pattern.
|
|
5
|
+
* All icons can be overridden by users with their own implementations.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // Get an icon component
|
|
10
|
+
* import { getIcon } from 'drizzle-cube/client/icons'
|
|
11
|
+
* const CloseIcon = getIcon('close')
|
|
12
|
+
* <CloseIcon className="w-4 h-4" />
|
|
13
|
+
*
|
|
14
|
+
* // Override icons at app initialization
|
|
15
|
+
* import { registerIcons } from 'drizzle-cube/client/icons'
|
|
16
|
+
* import myCloseIcon from '@iconify-icons/mdi/close'
|
|
17
|
+
* registerIcons({ close: myCloseIcon })
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export type { IconCategory, IconProps, IconComponent, IconDefinition, IconRegistry, IconName, PartialIconRegistry } from './types';
|
|
21
|
+
export { getIconRegistry, getIcon, getIconData, setIcon, registerIcons, resetIcons, getIconsByCategory, getMeasureTypeIcon, getChartTypeIcon, getFieldTypeIcon } from './registry';
|
|
22
|
+
export { DEFAULT_ICONS } from './defaultIcons';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IconifyIcon } from '@iconify/types';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
import { IconRegistry, IconName, IconCategory, IconProps, PartialIconRegistry } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Get the full icon registry
|
|
6
|
+
*/
|
|
7
|
+
export declare function getIconRegistry(): IconRegistry;
|
|
8
|
+
/**
|
|
9
|
+
* Get a specific icon as a React component
|
|
10
|
+
* @param name The icon name from the registry
|
|
11
|
+
* @returns A React component that renders the icon
|
|
12
|
+
*/
|
|
13
|
+
export declare function getIcon(name: IconName): ComponentType<IconProps>;
|
|
14
|
+
/**
|
|
15
|
+
* Get icon data directly (for use with Iconify's Icon component)
|
|
16
|
+
* @param name The icon name from the registry
|
|
17
|
+
* @returns The IconifyIcon data
|
|
18
|
+
*/
|
|
19
|
+
export declare function getIconData(name: IconName): IconifyIcon;
|
|
20
|
+
/**
|
|
21
|
+
* Override a single icon in the registry
|
|
22
|
+
* @param name The icon name to override
|
|
23
|
+
* @param icon The new IconifyIcon data
|
|
24
|
+
*/
|
|
25
|
+
export declare function setIcon(name: IconName, icon: IconifyIcon): void;
|
|
26
|
+
/**
|
|
27
|
+
* Register multiple icon overrides at once
|
|
28
|
+
* @param overrides Partial registry with icons to override
|
|
29
|
+
*/
|
|
30
|
+
export declare function registerIcons(overrides: PartialIconRegistry): void;
|
|
31
|
+
/**
|
|
32
|
+
* Reset the registry to default icons
|
|
33
|
+
*/
|
|
34
|
+
export declare function resetIcons(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Get all icons in a specific category
|
|
37
|
+
* @param category The icon category to filter by
|
|
38
|
+
* @returns Record of icon names to their components
|
|
39
|
+
*/
|
|
40
|
+
export declare function getIconsByCategory(category: IconCategory): Record<string, ComponentType<IconProps>>;
|
|
41
|
+
/**
|
|
42
|
+
* Helper to get measure type icon component
|
|
43
|
+
* @param measureType The measure type (count, avg, sum, etc.)
|
|
44
|
+
* @returns React component for the icon
|
|
45
|
+
*/
|
|
46
|
+
export declare function getMeasureTypeIcon(measureType: string | undefined): ComponentType<IconProps>;
|
|
47
|
+
/**
|
|
48
|
+
* Helper to get chart type icon component
|
|
49
|
+
* @param chartType The chart type (bar, line, pie, etc.)
|
|
50
|
+
* @returns React component for the icon
|
|
51
|
+
*/
|
|
52
|
+
export declare function getChartTypeIcon(chartType: string): ComponentType<IconProps>;
|
|
53
|
+
/**
|
|
54
|
+
* Helper to get field type icon component
|
|
55
|
+
* @param fieldType The field type (measure, dimension, timeDimension)
|
|
56
|
+
* @returns React component for the icon
|
|
57
|
+
*/
|
|
58
|
+
export declare function getFieldTypeIcon(fieldType: string): ComponentType<IconProps>;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { IconifyIcon } from '@iconify/types';
|
|
2
|
+
import { ComponentType } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Icon categories for organization and filtering
|
|
5
|
+
*/
|
|
6
|
+
export type IconCategory = 'action' | 'field' | 'chart' | 'measure' | 'state' | 'navigation';
|
|
7
|
+
/**
|
|
8
|
+
* Standard icon component props
|
|
9
|
+
*/
|
|
10
|
+
export interface IconProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
'aria-hidden'?: boolean;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Icon component type that can be used in JSX
|
|
17
|
+
*/
|
|
18
|
+
export type IconComponent = ComponentType<IconProps>;
|
|
19
|
+
/**
|
|
20
|
+
* Icon definition with Iconify data and metadata
|
|
21
|
+
*/
|
|
22
|
+
export interface IconDefinition {
|
|
23
|
+
/** The Iconify icon data */
|
|
24
|
+
icon: IconifyIcon;
|
|
25
|
+
/** Category for filtering/organization */
|
|
26
|
+
category: IconCategory;
|
|
27
|
+
/** Optional description */
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Complete icon registry with all available icons
|
|
32
|
+
*/
|
|
33
|
+
export interface IconRegistry {
|
|
34
|
+
close: IconDefinition;
|
|
35
|
+
add: IconDefinition;
|
|
36
|
+
edit: IconDefinition;
|
|
37
|
+
delete: IconDefinition;
|
|
38
|
+
refresh: IconDefinition;
|
|
39
|
+
copy: IconDefinition;
|
|
40
|
+
duplicate: IconDefinition;
|
|
41
|
+
settings: IconDefinition;
|
|
42
|
+
filter: IconDefinition;
|
|
43
|
+
share: IconDefinition;
|
|
44
|
+
expand: IconDefinition;
|
|
45
|
+
collapse: IconDefinition;
|
|
46
|
+
search: IconDefinition;
|
|
47
|
+
menu: IconDefinition;
|
|
48
|
+
run: IconDefinition;
|
|
49
|
+
check: IconDefinition;
|
|
50
|
+
link: IconDefinition;
|
|
51
|
+
eye: IconDefinition;
|
|
52
|
+
eyeOff: IconDefinition;
|
|
53
|
+
adjustments: IconDefinition;
|
|
54
|
+
desktop: IconDefinition;
|
|
55
|
+
table: IconDefinition;
|
|
56
|
+
measure: IconDefinition;
|
|
57
|
+
dimension: IconDefinition;
|
|
58
|
+
timeDimension: IconDefinition;
|
|
59
|
+
segment: IconDefinition;
|
|
60
|
+
chartBar: IconDefinition;
|
|
61
|
+
chartLine: IconDefinition;
|
|
62
|
+
chartArea: IconDefinition;
|
|
63
|
+
chartPie: IconDefinition;
|
|
64
|
+
chartScatter: IconDefinition;
|
|
65
|
+
chartBubble: IconDefinition;
|
|
66
|
+
chartRadar: IconDefinition;
|
|
67
|
+
chartRadialBar: IconDefinition;
|
|
68
|
+
chartTreemap: IconDefinition;
|
|
69
|
+
chartTable: IconDefinition;
|
|
70
|
+
chartActivityGrid: IconDefinition;
|
|
71
|
+
chartKpiNumber: IconDefinition;
|
|
72
|
+
chartKpiDelta: IconDefinition;
|
|
73
|
+
chartKpiText: IconDefinition;
|
|
74
|
+
chartMarkdown: IconDefinition;
|
|
75
|
+
measureCount: IconDefinition;
|
|
76
|
+
measureCountDistinct: IconDefinition;
|
|
77
|
+
measureCountDistinctApprox: IconDefinition;
|
|
78
|
+
measureSum: IconDefinition;
|
|
79
|
+
measureAvg: IconDefinition;
|
|
80
|
+
measureMin: IconDefinition;
|
|
81
|
+
measureMax: IconDefinition;
|
|
82
|
+
measureRunningTotal: IconDefinition;
|
|
83
|
+
measureCalculated: IconDefinition;
|
|
84
|
+
measureNumber: IconDefinition;
|
|
85
|
+
success: IconDefinition;
|
|
86
|
+
warning: IconDefinition;
|
|
87
|
+
error: IconDefinition;
|
|
88
|
+
info: IconDefinition;
|
|
89
|
+
loading: IconDefinition;
|
|
90
|
+
sparkles: IconDefinition;
|
|
91
|
+
chevronUp: IconDefinition;
|
|
92
|
+
chevronDown: IconDefinition;
|
|
93
|
+
chevronLeft: IconDefinition;
|
|
94
|
+
chevronRight: IconDefinition;
|
|
95
|
+
chevronUpDown: IconDefinition;
|
|
96
|
+
arrowUp: IconDefinition;
|
|
97
|
+
arrowDown: IconDefinition;
|
|
98
|
+
arrowRight: IconDefinition;
|
|
99
|
+
arrowPath: IconDefinition;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Type for icon registry keys
|
|
103
|
+
*/
|
|
104
|
+
export type IconName = keyof IconRegistry;
|
|
105
|
+
/**
|
|
106
|
+
* Partial icon registry for user overrides
|
|
107
|
+
* Users can provide just the IconifyIcon or a full IconDefinition
|
|
108
|
+
*/
|
|
109
|
+
export type PartialIconRegistry = Partial<{
|
|
110
|
+
[K in keyof IconRegistry]: IconifyIcon | Partial<IconDefinition>;
|
|
111
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { D as a, g as t, h as o, a as c, b as g, d as I, e as n, f as r, r as y, c as p, s as T } from "./chunks/chart-activitygridchart-config-48WqIofo.js";
|
|
2
|
+
export {
|
|
3
|
+
a as DEFAULT_ICONS,
|
|
4
|
+
t as getChartTypeIcon,
|
|
5
|
+
o as getFieldTypeIcon,
|
|
6
|
+
c as getIcon,
|
|
7
|
+
g as getIconData,
|
|
8
|
+
I as getIconRegistry,
|
|
9
|
+
n as getIconsByCategory,
|
|
10
|
+
r as getMeasureTypeIcon,
|
|
11
|
+
y as registerIcons,
|
|
12
|
+
p as resetIcons,
|
|
13
|
+
T as setIcon
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/client/index.d.ts
CHANGED
|
@@ -19,3 +19,5 @@ export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from '.
|
|
|
19
19
|
export { createDashboardLayout, formatChartData } from './utils/index';
|
|
20
20
|
export { getThemeVariable, setThemeVariable, applyTheme, resetTheme, getTheme, setTheme, isDarkMode, watchThemeChanges, THEME_PRESETS } from './theme';
|
|
21
21
|
export type { ThemeColorTokens, ThemeConfig, Theme } from './theme';
|
|
22
|
+
export { getIcon, getIconData, setIcon, registerIcons, resetIcons, getIconRegistry, getIconsByCategory, getMeasureTypeIcon, getChartTypeIcon, getFieldTypeIcon, DEFAULT_ICONS } from './icons';
|
|
23
|
+
export type { IconCategory, IconProps, IconComponent, IconDefinition, IconRegistry, IconName, PartialIconRegistry } from './icons';
|
package/dist/client/index.js
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
|
-
import { AnalyticsDashboard as r, AnalyticsPortlet as
|
|
2
|
-
import { L as
|
|
3
|
-
import { L as
|
|
4
|
-
import { n as
|
|
5
|
-
import { ScrollContainerProvider as
|
|
6
|
-
import { useCubeQuery as
|
|
1
|
+
import { AnalyticsDashboard as r, AnalyticsPortlet as s, DashboardEditModal as t, DashboardGrid as o, Modal as i, PortletContainer as n, PortletEditModal as l, QueryBuilder as d } from "./components.js";
|
|
2
|
+
import { L as c } from "./chunks/chart-chartcontainer-CdwzIKP1.js";
|
|
3
|
+
import { L as g, c as p, f as y, g as T, i as m, p as u, a as b } from "./chunks/charts-DFbr7EGW.js";
|
|
4
|
+
import { n as f, T as x, y as D, r as E, g as L, v as M, B as P, z as A, A as S, x as v, u as B, w as V } from "./chunks/chart-activitygridchart-BzL97Vnm.js";
|
|
5
|
+
import { ScrollContainerProvider as z, useScrollContainer as F } from "./providers.js";
|
|
6
|
+
import { useCubeQuery as R } from "./hooks.js";
|
|
7
|
+
import { D as k, g as G, h as H, a as N, b as O, d as U, e as j, f as q, r as J, c as K, s as W } from "./chunks/chart-activitygridchart-config-48WqIofo.js";
|
|
7
8
|
export {
|
|
8
9
|
r as AnalyticsDashboard,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
i as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
s as AnalyticsPortlet,
|
|
11
|
+
f as CubeProvider,
|
|
12
|
+
k as DEFAULT_ICONS,
|
|
13
|
+
t as DashboardEditModal,
|
|
14
|
+
o as DashboardGrid,
|
|
15
|
+
g as LazyChart,
|
|
16
|
+
c as LoadingIndicator,
|
|
17
|
+
i as Modal,
|
|
18
|
+
n as PortletContainer,
|
|
19
|
+
l as PortletEditModal,
|
|
20
|
+
d as QueryBuilder,
|
|
21
|
+
z as ScrollContainerProvider,
|
|
22
|
+
x as THEME_PRESETS,
|
|
23
|
+
D as applyTheme,
|
|
24
|
+
E as createCubeClient,
|
|
25
|
+
p as createDashboardLayout,
|
|
26
|
+
y as formatChartData,
|
|
27
|
+
T as getAvailableChartTypes,
|
|
28
|
+
G as getChartTypeIcon,
|
|
29
|
+
H as getFieldTypeIcon,
|
|
30
|
+
N as getIcon,
|
|
31
|
+
O as getIconData,
|
|
32
|
+
U as getIconRegistry,
|
|
33
|
+
j as getIconsByCategory,
|
|
34
|
+
q as getMeasureTypeIcon,
|
|
26
35
|
L as getTheme,
|
|
27
36
|
M as getThemeVariable,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
P as isDarkMode,
|
|
38
|
+
m as isValidChartType,
|
|
39
|
+
u as preloadChart,
|
|
40
|
+
b as preloadCharts,
|
|
41
|
+
J as registerIcons,
|
|
42
|
+
K as resetIcons,
|
|
32
43
|
A as resetTheme,
|
|
44
|
+
W as setIcon,
|
|
33
45
|
S as setTheme,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
46
|
+
v as setThemeVariable,
|
|
47
|
+
B as useCubeContext,
|
|
48
|
+
R as useCubeQuery,
|
|
49
|
+
F as useScrollContainer,
|
|
50
|
+
V as watchThemeChanges
|
|
39
51
|
};
|
|
40
52
|
//# sourceMappingURL=index.js.map
|
package/dist/client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -27,7 +27,7 @@ interface CubeProviderProps {
|
|
|
27
27
|
batchDelayMs?: number;
|
|
28
28
|
children: React.ReactNode;
|
|
29
29
|
}
|
|
30
|
-
export declare function CubeProvider({ cubeApi: initialCubeApi, apiOptions: initialApiOptions, token: initialToken, options, features, // Default to AI enabled
|
|
30
|
+
export declare function CubeProvider({ cubeApi: initialCubeApi, apiOptions: initialApiOptions, token: initialToken, options, features, // Default to AI enabled, schema diagram disabled
|
|
31
31
|
enableBatching, // Default to batching enabled
|
|
32
32
|
batchDelayMs, // Default 100ms batch window
|
|
33
33
|
children }: CubeProviderProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/client/providers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as a, r as c, u as i } from "./chunks/chart-activitygridchart
|
|
1
|
+
import { n as a, r as c, u as i } from "./chunks/chart-activitygridchart-BzL97Vnm.js";
|
|
2
2
|
import { createContext as o, useContext as r } from "react";
|
|
3
3
|
const e = o(null), n = e.Provider, C = () => r(e);
|
|
4
4
|
export {
|