@rivet-health/design-system
Advanced tools
Comparing version 4.12.2 to 5.0.0
@@ -34,5 +34,7 @@ import { BehaviorSubject, Observable, Subject } from 'rxjs'; | ||
readonly presetFilterQuery$: BehaviorSubject<string>; | ||
readonly filteredPresetOptions$: Observable<(SingleSelectComponent.Option & { | ||
dates: [Date, Date]; | ||
})[]>; | ||
readonly filteredPresetOptions$: Observable<{ | ||
options: (SingleSelectComponent.Option & { | ||
dates: [Date, Date]; | ||
})[]; | ||
}[]>; | ||
readonly selectedPreset$: Observable<DateRangeComponent.Preset | null>; | ||
@@ -61,5 +63,7 @@ readonly favoritePresetIds$: LocalStorage<string[]>; | ||
type Preset = (typeof Presets)[number]; | ||
const filterPresets: (query: string) => (SingleSelectComponent.Option & { | ||
dates: [Date, Date]; | ||
})[]; | ||
const filterPresets: (query: string) => { | ||
options: (SingleSelectComponent.Option & { | ||
dates: [Date, Date]; | ||
})[]; | ||
}[]; | ||
} |
@@ -6,5 +6,5 @@ import { ElementRef, EventEmitter, TemplateRef } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export declare class SingleSelectComponent<T extends SingleSelectComponent.Option> extends InputLabelComponent { | ||
options: T[]; | ||
selectedOption: T | null; | ||
export declare class SingleSelectComponent<T extends SingleSelectComponent.OptionGroup<U>, U extends SingleSelectComponent.Option> extends InputLabelComponent { | ||
groups: T[]; | ||
selectedOption: U | null; | ||
filterabilityOptions: SingleSelectComponent.FilterabilityOptions; | ||
@@ -20,3 +20,3 @@ loading: boolean; | ||
filterQueryChange: EventEmitter<string>; | ||
selectedOptionChange: EventEmitter<T>; | ||
selectedOptionChange: EventEmitter<U>; | ||
customTriggerButton?: ElementRef; | ||
@@ -26,8 +26,8 @@ standardTriggerButton?: ElementRef; | ||
getFilterPlaceholder(): string; | ||
getNodes(): SingleSelectComponent.Node<T>[]; | ||
allowedOpen(): void; | ||
trackBy(_: number, node: SingleSelectComponent.Node<T>): string; | ||
trackByHeader(i: number, group: SingleSelectComponent.OptionGroup<U>): string; | ||
trackByOption(_: number, option: U): string; | ||
open: boolean; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectComponent<any>, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent<any>, "riv-single-select", never, { "options": "options"; "selectedOption": "selectedOption"; "filterabilityOptions": "filterabilityOptions"; "loading": "loading"; "locked": "locked"; "noOptionsMessage": "noOptionsMessage"; "nodeTemplate": "nodeTemplate"; "triggerTemplate": "triggerTemplate"; "placeholder": "placeholder"; "disabled": "disabled"; }, { "filterQueryChange": "filterQueryChange"; "selectedOptionChange": "selectedOptionChange"; }, never, ["[footer]"], false>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectComponent<any, any>, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent<any, any>, "riv-single-select", never, { "groups": "groups"; "selectedOption": "selectedOption"; "filterabilityOptions": "filterabilityOptions"; "loading": "loading"; "locked": "locked"; "noOptionsMessage": "noOptionsMessage"; "nodeTemplate": "nodeTemplate"; "triggerTemplate": "triggerTemplate"; "placeholder": "placeholder"; "disabled": "disabled"; }, { "filterQueryChange": "filterQueryChange"; "selectedOptionChange": "selectedOptionChange"; }, never, ["[footer]"], false>; | ||
} | ||
@@ -44,4 +44,5 @@ export declare namespace SingleSelectComponent { | ||
}; | ||
type Node<T extends Option> = T & { | ||
selected: boolean; | ||
type OptionGroup<O extends Option> = { | ||
header?: string; | ||
options: O[]; | ||
}; | ||
@@ -54,7 +55,7 @@ type FilterabilityOptions = { | ||
}; | ||
function getFilterSync<T extends SingleSelectComponent.Option>(options: T[], exact?: boolean): (query: string) => T[]; | ||
function getFilterAsync<T extends SingleSelectComponent.Option>(query$: Observable<string>, fetcher: (query: string) => Promise<T[]>, debounceInput?: number): Observable<{ | ||
function getFilterSync<T extends OptionGroup<U>, U extends Option>(groups: T[], exact?: boolean): (query: string) => T[]; | ||
function getFilterAsync<T extends OptionGroup<U>, U extends Option>(query$: Observable<string>, fetcher: (query: string) => Promise<T[]>, debounceInput?: number): Observable<{ | ||
loading: boolean; | ||
options: T[]; | ||
groups: T[]; | ||
}>; | ||
} |
@@ -30,20 +30,21 @@ import * as i0 from "@angular/core"; | ||
import * as i28 from "./format/pipes/number.pipe"; | ||
import * as i29 from "./format/pipes/percentage.pipe"; | ||
import * as i30 from "./input/single-select/single-select.component"; | ||
import * as i31 from "./format/pipes/small-currency.pipe"; | ||
import * as i32 from "./visualization/stacked-column/stacked-column.component"; | ||
import * as i33 from "./visualization/stacked-row/stacked-row.component"; | ||
import * as i34 from "./format/svg-text-truncate/svg-text-truncate.directive"; | ||
import * as i35 from "./content-toggle/text-toggle/text-toggle.component"; | ||
import * as i36 from "./visualization/time-series/time-series.component"; | ||
import * as i37 from "./modal/tooltip/tooltip.component"; | ||
import * as i38 from "./modal/tooltip/tooltip.directive"; | ||
import * as i39 from "./visualization/trend/trend.component"; | ||
import * as i40 from "./format/truncate/truncate.component"; | ||
import * as i41 from "./visualization/zero-state/zero-state.component"; | ||
import * as i42 from "@angular/common"; | ||
import * as i29 from "./format/pipes/option-group.pipe"; | ||
import * as i30 from "./format/pipes/percentage.pipe"; | ||
import * as i31 from "./input/single-select/single-select.component"; | ||
import * as i32 from "./format/pipes/small-currency.pipe"; | ||
import * as i33 from "./visualization/stacked-column/stacked-column.component"; | ||
import * as i34 from "./visualization/stacked-row/stacked-row.component"; | ||
import * as i35 from "./format/svg-text-truncate/svg-text-truncate.directive"; | ||
import * as i36 from "./content-toggle/text-toggle/text-toggle.component"; | ||
import * as i37 from "./visualization/time-series/time-series.component"; | ||
import * as i38 from "./modal/tooltip/tooltip.component"; | ||
import * as i39 from "./modal/tooltip/tooltip.directive"; | ||
import * as i40 from "./visualization/trend/trend.component"; | ||
import * as i41 from "./format/truncate/truncate.component"; | ||
import * as i42 from "./visualization/zero-state/zero-state.component"; | ||
import * as i43 from "@angular/common"; | ||
export declare class RivModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<RivModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<RivModule, [typeof i1.ButtonComponent, typeof i2.CalendarComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FunnelChartComponent, typeof i17.HelpComponent, typeof i18.HighlightComponent, typeof i19.IconComponent, typeof i20.InputLabelComponent, typeof i21.IssueComponent, typeof i22.LegendItemComponent, typeof i23.LinkComponent, typeof i24.LoadingComponent, typeof i25.LoadingCoverComponent, typeof i26.LockScrollDirective, typeof i27.MetricComponent, typeof i28.NumberPipe, typeof i29.PercentagePipe, typeof i30.SingleSelectComponent, typeof i31.SmallCurrencyPipe, typeof i32.StackedColumnComponent, typeof i33.StackedRowComponent, typeof i34.SVGTextTruncateDirective, typeof i35.TextToggleComponent, typeof i36.TimeSeriesComponent, typeof i37.TooltipComponent, typeof i38.TooltipDirective, typeof i39.TrendComponent, typeof i40.TruncateComponent, typeof i41.ZeroStateComponent], [typeof i42.CommonModule], [typeof i1.ButtonComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FunnelChartComponent, typeof i17.HelpComponent, typeof i18.HighlightComponent, typeof i19.IconComponent, typeof i20.InputLabelComponent, typeof i21.IssueComponent, typeof i22.LegendItemComponent, typeof i23.LinkComponent, typeof i24.LoadingComponent, typeof i25.LoadingCoverComponent, typeof i27.MetricComponent, typeof i28.NumberPipe, typeof i29.PercentagePipe, typeof i30.SingleSelectComponent, typeof i31.SmallCurrencyPipe, typeof i32.StackedColumnComponent, typeof i33.StackedRowComponent, typeof i34.SVGTextTruncateDirective, typeof i35.TextToggleComponent, typeof i36.TimeSeriesComponent, typeof i37.TooltipComponent, typeof i38.TooltipDirective, typeof i39.TrendComponent, typeof i40.TruncateComponent, typeof i41.ZeroStateComponent]>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<RivModule, [typeof i1.ButtonComponent, typeof i2.CalendarComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FunnelChartComponent, typeof i17.HelpComponent, typeof i18.HighlightComponent, typeof i19.IconComponent, typeof i20.InputLabelComponent, typeof i21.IssueComponent, typeof i22.LegendItemComponent, typeof i23.LinkComponent, typeof i24.LoadingComponent, typeof i25.LoadingCoverComponent, typeof i26.LockScrollDirective, typeof i27.MetricComponent, typeof i28.NumberPipe, typeof i29.OptionGroupPipe, typeof i30.PercentagePipe, typeof i31.SingleSelectComponent, typeof i32.SmallCurrencyPipe, typeof i33.StackedColumnComponent, typeof i34.StackedRowComponent, typeof i35.SVGTextTruncateDirective, typeof i36.TextToggleComponent, typeof i37.TimeSeriesComponent, typeof i38.TooltipComponent, typeof i39.TooltipDirective, typeof i40.TrendComponent, typeof i41.TruncateComponent, typeof i42.ZeroStateComponent], [typeof i43.CommonModule], [typeof i1.ButtonComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FunnelChartComponent, typeof i17.HelpComponent, typeof i18.HighlightComponent, typeof i19.IconComponent, typeof i20.InputLabelComponent, typeof i21.IssueComponent, typeof i22.LegendItemComponent, typeof i23.LinkComponent, typeof i24.LoadingComponent, typeof i25.LoadingCoverComponent, typeof i27.MetricComponent, typeof i28.NumberPipe, typeof i29.OptionGroupPipe, typeof i30.PercentagePipe, typeof i31.SingleSelectComponent, typeof i32.SmallCurrencyPipe, typeof i33.StackedColumnComponent, typeof i34.StackedRowComponent, typeof i35.SVGTextTruncateDirective, typeof i36.TextToggleComponent, typeof i37.TimeSeriesComponent, typeof i38.TooltipComponent, typeof i39.TooltipDirective, typeof i40.TrendComponent, typeof i41.TruncateComponent, typeof i42.ZeroStateComponent]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<RivModule>; | ||
} |
{ | ||
"name": "@rivet-health/design-system", | ||
"version": "4.12.2", | ||
"version": "5.0.0", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^14.0.0", |
@@ -6,2 +6,3 @@ export * from './lib/content-toggle/text-toggle/text-toggle.component'; | ||
export * from './lib/format/pipes/number.pipe'; | ||
export * from './lib/format/pipes/option-group.pipe'; | ||
export * from './lib/format/pipes/percentage.pipe'; | ||
@@ -8,0 +9,0 @@ export * from './lib/format/pipes/small-currency.pipe'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2257178
128
14616