@oneteme/jquery-organizer 0.0.2 → 0.0.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.
@@ -1,5 +1,7 @@
1
1
  import { OrganizerButtonEvent, OrganizerConfig, OrganizerState, OrganizerUnifiedState } from './organizer-config.interface';
2
2
  import { UnitConfig } from '@oneteme/jquery-core';
3
+ import { OrganizerChartConfig } from './organizer-chart-config';
4
+ export { OrganizerChartConfig, getGroupItems, getIndicatorItems, getFilterItems, getStackItems } from './organizer-chart-config';
3
5
  export interface OrganizerChartItem {
4
6
  key: string;
5
7
  selected: boolean;
@@ -26,11 +28,6 @@ export interface OrganizerChartSection {
26
28
  optional: boolean;
27
29
  items: OrganizerChartItem[];
28
30
  }
29
- export interface OrganizerChartConfig {
30
- groups: OrganizerChartSection;
31
- indicators: OrganizerChartSection;
32
- filters?: OrganizerChartSection;
33
- }
34
31
  export interface OrganizerChartBridgeOptions {
35
32
  onFetchSliceData?: OrganizerConfig['onFetchSliceData'];
36
33
  onExportVisual?: () => void;
@@ -45,10 +42,10 @@ export interface OrganizerChartEventResult {
45
42
  binding: OrganizerChartBinding;
46
43
  shouldRefetch: boolean;
47
44
  }
48
- export declare function chartConfigToOrganizer(chartConfig: any, options?: OrganizerChartBridgeOptions): OrganizerConfig;
49
- export declare function chartConfigToState(chartConfig: any): OrganizerState;
50
- export declare function buildOrganizerChartBinding(chartConfig: any, options?: OrganizerChartBridgeOptions): OrganizerChartBinding;
51
- export declare function chartConfigToUnifiedState(chartConfig: any, viewMode?: 'chart' | 'table'): OrganizerUnifiedState;
52
- export declare function applyOrganizerEventToChart(event: OrganizerButtonEvent, chartConfig: any): void;
53
- export declare function handleOrganizerChartEvent(event: OrganizerButtonEvent, chartConfig: any, currentBinding: OrganizerChartBinding | undefined, options?: OrganizerChartBridgeOptions): OrganizerChartEventResult;
54
- export declare function resolveYUnit(chartConfig: any, selectedY: string | undefined, selectedYAggregate: string | undefined): string | UnitConfig | undefined;
45
+ export declare function chartConfigToOrganizer(chartConfig: OrganizerChartConfig | null | undefined, options?: OrganizerChartBridgeOptions): OrganizerConfig;
46
+ export declare function chartConfigToState(chartConfig: OrganizerChartConfig | null | undefined): OrganizerState;
47
+ export declare function buildOrganizerChartBinding(chartConfig: OrganizerChartConfig | null | undefined, options?: OrganizerChartBridgeOptions): OrganizerChartBinding;
48
+ export declare function chartConfigToUnifiedState(chartConfig: OrganizerChartConfig | null | undefined, viewMode?: 'chart' | 'table'): OrganizerUnifiedState;
49
+ export declare function applyOrganizerEventToChart(event: OrganizerButtonEvent, chartConfig: OrganizerChartConfig | null | undefined): void;
50
+ export declare function handleOrganizerChartEvent(event: OrganizerButtonEvent, chartConfig: OrganizerChartConfig | null | undefined, currentBinding: OrganizerChartBinding | undefined, options?: OrganizerChartBridgeOptions): OrganizerChartEventResult;
51
+ export declare function resolveYUnit(chartConfig: OrganizerChartConfig | null | undefined, selectedY: string | undefined, selectedYAggregate: string | undefined): string | UnitConfig | undefined;
@@ -0,0 +1,32 @@
1
+ import { OrganizerChartItem, OrganizerChartSection } from './organizer-chart-adapter';
2
+ export interface OrganizerChartConfig {
3
+ groups?: OrganizerChartSection;
4
+ indicators?: OrganizerChartSection;
5
+ filters?: OrganizerChartSection;
6
+ templates?: any[];
7
+ }
8
+ export declare enum SyntheticItemKeys {
9
+ EMPTY = "__empty__",
10
+ SYNTHETIC_MARKER = "__synthetic__"
11
+ }
12
+ export declare enum SlicePanelI18nKeys {
13
+ EXPAND_FILTER = "expandFilterTitle",
14
+ COLLAPSE_FILTER = "collapseFilterTitle",
15
+ FILTER_PANEL_TITLE_SINGLE = "filterPanelTitleSingle",
16
+ FILTER_PANEL_TITLE_PLURAL = "filterPanelTitlePlural",
17
+ FILTER_BLOCK_DEFAULT_TITLE = "filterBlockDefaultTitle",
18
+ FILTER_EMPTY_STATE = "filterEmptyState"
19
+ }
20
+ export declare enum OrganizerButtonEventType {
21
+ FIELD_TOGGLED = "fieldToggled",
22
+ X_SELECTED = "xSelected",
23
+ Y_SELECTED = "ySelected",
24
+ GROUP_BY_SELECTED = "groupBySelected",
25
+ TEMPLATE_SELECTED = "templateSelected",
26
+ SLICE_SELECTED = "sliceSelected",
27
+ VIEW_SWITCHED = "viewSwitched"
28
+ }
29
+ export declare function getGroupItems(config: OrganizerChartConfig | null | undefined): OrganizerChartItem[];
30
+ export declare function getIndicatorItems(config: OrganizerChartConfig | null | undefined): OrganizerChartItem[];
31
+ export declare function getFilterItems(config: OrganizerChartConfig | null | undefined): OrganizerChartItem[];
32
+ export declare function getStackItems(indicator: OrganizerChartItem | undefined): OrganizerChartItem[];
@@ -77,6 +77,7 @@ export interface OrganizerConfig {
77
77
  export interface OrganizerSliceState {
78
78
  sliceConfigs: SliceConfig<any>[];
79
79
  tasks: any[];
80
+ filterApplied?: boolean;
80
81
  }
81
82
  export interface OrganizerState {
82
83
  viewMode?: 'chart' | 'table';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneteme/jquery-organizer",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Independent Organizer Button component library - decentralized organizer management for charts, tables",
5
5
  "homepage": "https://github.com/oneteme/jquery-charts",
6
6
  "bugs": "https://github.com/oneteme/jquery-charts/issues",