nectiasw 0.0.266 → 0.0.268
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/components/Chart/Chart.stories.d.ts +12 -0
- package/dist/components/Chart/index.d.ts +23 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +4082 -4049
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +173 -173
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,3 +14,15 @@ export declare const SingleStage: Story;
|
|
|
14
14
|
export declare const CustomTextStyle: Story;
|
|
15
15
|
export declare const WithoutAspect: Story;
|
|
16
16
|
export declare const CustomTooltipContent: Story;
|
|
17
|
+
export declare const RegisteredWithMultipleLevels: Story;
|
|
18
|
+
export declare const ExecutionWithMultipleLevels: Story;
|
|
19
|
+
export declare const DeliverOCWithMultipleLevels: Story;
|
|
20
|
+
/**
|
|
21
|
+
* Interactive chart with click handler.
|
|
22
|
+
* Click on any segment to see the event data in the Actions panel.
|
|
23
|
+
*/
|
|
24
|
+
export declare const WithClickHandler: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Multiple interactive charts simulating dashboard behavior.
|
|
27
|
+
*/
|
|
28
|
+
export declare const DashboardSimulation: Story;
|
|
@@ -10,6 +10,25 @@ export interface Graph {
|
|
|
10
10
|
color: string;
|
|
11
11
|
percent: string;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @description
|
|
15
|
+
* Query data emitted when clicking on a chart segment.
|
|
16
|
+
* Contains all necessary information to filter courses.
|
|
17
|
+
*/
|
|
18
|
+
export interface ChartClickData {
|
|
19
|
+
/** The stage type (e.g., 'registered', 'execution', 'deliverOC', etc.) */
|
|
20
|
+
stageType: string;
|
|
21
|
+
/** The level clicked (e.g., 'normal', 'medio', 'critico') */
|
|
22
|
+
level: string;
|
|
23
|
+
/** The count of courses in this segment */
|
|
24
|
+
count: number;
|
|
25
|
+
/** The percentage of this segment */
|
|
26
|
+
percent: string;
|
|
27
|
+
/** The label of the chart (e.g., 'Cursos Inscritos') */
|
|
28
|
+
chartLabel: string;
|
|
29
|
+
/** The index of the clicked segment */
|
|
30
|
+
dataIndex: number;
|
|
31
|
+
}
|
|
13
32
|
export type ChartProps = {
|
|
14
33
|
className?: string;
|
|
15
34
|
partials: Graph[];
|
|
@@ -26,4 +45,8 @@ export type ChartProps = {
|
|
|
26
45
|
fontStyle?: string;
|
|
27
46
|
innerText?: string;
|
|
28
47
|
content?: string;
|
|
48
|
+
/** Stage type identifier for click events (e.g., 'registered', 'execution') */
|
|
49
|
+
stageType?: string;
|
|
50
|
+
/** Callback fired when a chart segment is clicked */
|
|
51
|
+
onBarClick?: (data: ChartClickData) => void;
|
|
29
52
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { ColProps } from './components/Col/types';
|
|
|
7
7
|
export { Row } from './components/Row';
|
|
8
8
|
export type { RowProps } from './components/Row';
|
|
9
9
|
export { Chart } from './components/Chart';
|
|
10
|
-
export type { ChartProps } from './components/Chart';
|
|
10
|
+
export type { ChartProps, ChartClickData } from './components/Chart';
|
|
11
11
|
export { FirstModal } from './components/FirstModal';
|
|
12
12
|
export type { FirstModalProps } from './components/FirstModal/types';
|
|
13
13
|
export { TCModal } from './components/Modal/variant/TCModal';
|