import { Indicator } from '@/services/data/tuples/indicator-types' ; import { Navigation , NavigationIndicator , NavigationIndicatorCriteria } from '@/services/data/tuples/navigation-types' ; import { CalculatedIndicatorValues , IndicatorValues } from './types' ; export enum NavigationEditEventTypes { REPAINT = 'repaint' , EXPAND_NAME = 'expand-name' , NAME_EXPANDED = 'name-expanded' , EXPAND_CRITERIA = 'expand-criteria' , CRITERIA_EXPANDED = 'criteria-expanded' , EXPAND_CALCULATION = 'expand-calculation' , CALCULATION_EXPANDED = 'calculation-expanded' , TIME_RANGE_CHANGED = 'time-range-changed' , INDICATOR_ADDED = 'indicator-added' , COMPUTE_INDICATOR_ADDED = 'compute-indicator-added' , INDICATOR_REMOVED = 'indicator-removed' , INDICATOR_NAME_CHANGED = 'indicator-name-changed' , INDICATOR_CRITERIA_ADDED = 'indicator-criteria-added' , INDICATOR_CRITERIA_CHANGED = 'indicator-criteria-changed' , INDICATOR_CRITERIA_FACTOR_CHANGED = 'indicator-criteria-factor-changed' , INDICATOR_CRITERIA_ARITHMETIC_CHANGED = 'indicator-criteria-arithmetic-changed' , INDICATOR_CRITERIA_REMOVED = 'indicator-criteria-removed' , INDICATOR_AGGREGATION_CHANGED = 'indicator-aggregation-changed' , INDICATOR_FORMULA_CHANGED = 'indicator-formula-changed' , INDICATOR_SCORE_INCLUDE_CHANGED = 'indicator-score-included-changed' , VALUES_CHANGED = 'values-changed' , VALUES_CALCULATED = 'values-calculated' , ASK_CALCULATED_VALUES = 'ask-calculated-values' } export interface NavigationEditEventBus { fire ( type ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator , indicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator , criteria ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator , criteria ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator , values ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator , values ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , navigation , navigationIndicator , onData ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }