@nova-ui/bits 12.0.39 → 12.0.41

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.
@@ -19720,6 +19720,95 @@ NuiProgressModule.decorators = [
19720
19720
  },] }
19721
19721
  ];
19722
19722
 
19723
+ // © 2023 SolarWinds Worldwide, LLC. All rights reserved.
19724
+ /**
19725
+ * Component for displaying risk level from severity 'OK' to 'Critical'
19726
+ */
19727
+ // <example-url>./../examples/index.html#/risk-score</example-url>
19728
+ class RiskScoreComponent {
19729
+ constructor(changeDetectorRef, ngZone) {
19730
+ this.changeDetectorRef = changeDetectorRef;
19731
+ this.ngZone = ngZone;
19732
+ this.level = 0;
19733
+ this.minLevel = 0;
19734
+ this.maxLevel = 100;
19735
+ this.floatOffset = 0;
19736
+ this.colorLineWidth$ = new BehaviorSubject(0);
19737
+ this.resizeObserver = new ResizeObserver((entries) => this.colorLineWidth$.next(entries[0].contentRect.width));
19738
+ }
19739
+ ngAfterViewInit() {
19740
+ this.colorLineWidth$.subscribe(this.updateOffset.bind(this));
19741
+ if (this.colorLine === undefined) {
19742
+ return;
19743
+ }
19744
+ this.ngZone.runOutsideAngular(() => {
19745
+ this.resizeObserver.observe(this.colorLine.nativeElement);
19746
+ });
19747
+ this.colorLineWidth$.next(this.colorLine.nativeElement.offsetWidth);
19748
+ }
19749
+ ngOnDestroy() {
19750
+ if (this.resizeObserver !== undefined && this.colorLine !== undefined) {
19751
+ this.resizeObserver.unobserve(this.colorLine.nativeElement);
19752
+ this.resizeObserver.disconnect();
19753
+ }
19754
+ this.colorLineWidth$.unsubscribe();
19755
+ }
19756
+ ngOnChanges(changes) {
19757
+ this.updateOffset(this.colorLineWidth$.getValue());
19758
+ }
19759
+ updateOffset(width) {
19760
+ if (this.minLevel >= this.maxLevel) {
19761
+ console.error("RiskScoreComponent - minLevel >= maxLevel");
19762
+ return;
19763
+ }
19764
+ const level = this.clamp(this.level, this.minLevel, this.maxLevel);
19765
+ const scaleInterval = this.maxLevel - this.minLevel;
19766
+ const widthPerOneLevel = width / scaleInterval;
19767
+ this.floatOffset = widthPerOneLevel * (level - this.minLevel);
19768
+ this.changeDetectorRef.detectChanges();
19769
+ }
19770
+ clamp(a, min = 0, max = 1) {
19771
+ return Math.min(max, Math.max(min, a));
19772
+ }
19773
+ }
19774
+ RiskScoreComponent.decorators = [
19775
+ { type: Component, args: [{
19776
+ selector: "nui-risk-score",
19777
+ host: {
19778
+ class: "nui-risk-score",
19779
+ },
19780
+ template: "<div class=\"nui-risk-score\" [title]=\"level\">\n <div class=\"nui-risk-score__float\" [style.margin-left.px]=\"floatOffset\">\n <div class=\"nui-risk-score__float-title\" *ngIf=\"title !== undefined\">\n {{ title }}\n </div>\n <div class=\"nui-risk-score__float-path\"></div>\n </div>\n\n <div class=\"nui-risk-score__color-line\" #colorLine></div>\n</div>\n",
19781
+ encapsulation: ViewEncapsulation.None,
19782
+ styles: [".nui-risk-score__color-line{height:.65em;background:var(--gradient,linear-gradient(90deg, #00a753 0%, #fec405 35%, #dd2c00 70%, #950000 100%))}.nui-risk-score__float{font-size:.35em;display:grid}.nui-risk-score__float-title{font-size:1.4em;color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));text-align:center;white-space:nowrap;display:inline-block;transform:translate(-50%)}.nui-risk-score__float-path{transform:translate(-50%);width:2em;height:1em;background-color:var(--nui-color-text-default,#111);-webkit-clip-path:polygon(0 0%,50% 100%,100% 0);clip-path:polygon(0 0%,50% 100%,100% 0)}\n"]
19783
+ },] }
19784
+ ];
19785
+ RiskScoreComponent.ctorParameters = () => [
19786
+ { type: ChangeDetectorRef },
19787
+ { type: NgZone }
19788
+ ];
19789
+ RiskScoreComponent.propDecorators = {
19790
+ colorLine: [{ type: ViewChild, args: ["colorLine",] }],
19791
+ level: [{ type: Input }],
19792
+ minLevel: [{ type: Input }],
19793
+ maxLevel: [{ type: Input }],
19794
+ title: [{ type: Input }]
19795
+ };
19796
+
19797
+ // © 2023 SolarWinds Worldwide, LLC. All rights reserved.
19798
+ /**
19799
+ * @ignore
19800
+ */
19801
+ class NuiRiskScoreModule {
19802
+ }
19803
+ NuiRiskScoreModule.decorators = [
19804
+ { type: NgModule, args: [{
19805
+ imports: [NuiCommonModule],
19806
+ declarations: [RiskScoreComponent],
19807
+ exports: [RiskScoreComponent],
19808
+ providers: [],
19809
+ },] }
19810
+ ];
19811
+
19723
19812
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
19724
19813
  // <example-url>./../examples/index.html#/search</example-url>
19725
19814
  /**
@@ -23693,6 +23782,7 @@ import {
23693
23782
  NuiProgressModule,
23694
23783
  NuiRadioModule,
23695
23784
  NuiRepeatModule,
23785
+ NuiRiskScoreModule,
23696
23786
  NuiSearchModule,
23697
23787
  NuiSelectorModule,
23698
23788
  NuiSorterModule,
@@ -23771,6 +23861,7 @@ export class App {
23771
23861
  NuiProgressModule,
23772
23862
  NuiRadioModule,
23773
23863
  NuiRepeatModule,
23864
+ NuiRiskScoreModule,
23774
23865
  NuiSearchModule,
23775
23866
  NuiSelectorModule,
23776
23867
  NuiSorterModule,
@@ -25301,5 +25392,5 @@ VirtualViewportManager.decorators = [
25301
25392
  * Generated bundle index. Do not edit.
25302
25393
  */
25303
25394
 
25304
- export { ANNOUNCER_CLOSE_MESSAGE, ANNOUNCER_OPEN_MESSAGE_SUFFIX, OverlayArrowComponent as ArrowComponent, BaseSelect, BreadcrumbComponent, BreadcrumbStateService, BusyComponent, ButtonComponent, ButtonIcon, ButtonSizeType, CardComponent, CardGroupComponent, CheckboxChangeEvent, CheckboxComponent, CheckboxGroupComponent, CheckboxStatus, ChipComponent, ChipsComponent, ChipsOverflowComponent, ClickFilterDirective, ClickInterceptorDirective, ClientSideDataSource, ClipboardDirective, ComboboxComponent, ComboboxV2Component, ComboboxV2OptionHighlightDirective, ConfirmationDialogComponent, ContentComponent, CopyTextComponent, CustomValidationMessageComponent, DEFAULT_INTERACTIVE_ELEMENTS, DEFAULT_TABLE_HEADER_OFFSET, DEMO_PATH_TOKEN, DataFilterService, DataSourceFeatures, DataSourceService, DatePickerComponent, DateTimePickerComponent, DialogBackdropComponent, DialogComponent, DialogFooterComponent, DialogHeaderComponent, DialogService, DialogStackService, DividerComponent, DndDropTargetDirective, DomUtilService, DragAndDropService, DraggableDirective, DroppableDirective, EdgeDetectionService, ErrorStateMatcher, EventBus, EventBusService, EventDefinition, EventPropagationService, ExampleCodeComponent, ExampleWrapperComponent, ExpanderComponent, FIXED_WIDTH_CLASS, FormFieldComponent, HighlightPipe, HistoryStorage, IEvent, IconCategory, IconCategoryNamespace, IconComponent, IconService, IconSeverity, IconState, IconStatus, IconWidget, ImageComponent, KEYBOARD_CODE, KEY_CODE, LayoutResizerComponent, LimitToPipe, ListService, LocalFilteringDataSource, LogLevel, LoggerService, MapKeyValuePipe, MarkAsSelectedItemDirective, MenuActionComponent, MenuActionType, MenuComponent, MenuGroupComponent, MenuItemBaseComponent, MenuItemComponent, MenuKeyControlService, MenuLinkComponent, MenuOptionComponent, MenuPopupComponent, MenuSwitchComponent, MessageComponent, NUI_ENV_PROVIDER, NUI_ENV_PROVIDER_FACTORY, NUI_SELECT_V2_OPTION_PARENT_COMPONENT, NoopDataSourceService, NotificationService, NuiActiveDialog, NuiBreadcrumbModule, NuiBusyModule, NuiButtonModule, NuiCheckboxModule, NuiChipsModule, NuiCommonModule, NuiContentModule, NuiDatePickerModule, NuiDateTimePickerModule, NuiDialogEvent, NuiDialogModule, NuiDialogRef, NuiDividerModule, NuiDndModule, NuiDocsModule, NuiEnvironment, NuiExpanderModule, NuiFormFieldControl, NuiFormFieldModule, NuiIconModule, NuiImageModule, NuiLayoutModule, NuiMenuModule, NuiMessageModule, NuiOverlayAdditionsModule, NuiOverlayModule, NuiPaginatorModule, NuiPanelModule, NuiPopoverModule, NuiPopupModule, NuiProgressModule, NuiRadioModule, NuiRepeatModule, NuiSearchModule, NuiSelectModule, NuiSelectV2Module, NuiSelectorModule, NuiSorterModule, NuiSpinnerModule, NuiSwitchModule, NuiTableModule, NuiTabsModule, NuiTextboxModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTimePickerModule, NuiToastModule, NuiToolbarModule, NuiTooltipModule, NuiValidationMessageModule, NuiValidators, NuiWizardModule, NuiWizardV2Module, OVERLAY_ARROW_SIZE, OVERLAY_CONTAINER, OVERLAY_CONTAINER_CLASS, OVERLAY_DEFAULT_PRIORITY, OVERLAY_ITEM, OVERLAY_PANEL_CLASS, OVERLAY_WITH_POPUP_STYLES_CLASS, OverlayComponent, OverlayContainerService, OverlayCustomContainer, OverlayItemComponent, OverlayPlacement, OverlayPosition, OverlayPositionService, OverlayService, OverlayUtilitiesService, POPUP_V2_VIEWPORT_MARGINS_DEFAULT, PaddingOptions, PaginatorComponent, PanelBackgroundColor, PanelComponent, PanelModes, PanelStates, PopoverComponent, PopoverModalComponent, PopoverOverlayPosition, PopupComponent, PopupDeprecatedComponent, PopupToggleDirective, PositionService, ProgressComponent, QuickPickerComponent, RESIZE_DEBOUNCE_TIME, RadioComponent, RadioGroupComponent, RepeatComponent, RepeatItemComponent, RepeatSelectionMode, ResizeDirection, ResizeDirective, ResizeObserverDirective, ResizeUnit, ResizerDirective, SearchComponent, SearchService, SelectComponent, SelectV2Component, SelectV2OptionComponent, SelectV2OptionGroupComponent, SelectionModel, SelectionType, SelectorComponent, SelectorService, ServerSideDataSource, SetFocusDirective, SheetComponent, SheetGroupComponent, SizeParameters, SliceRangePipe, SorterComponent, SorterDirection, SpinnerComponent, SpinnerSize, SrlcIndicatorComponent, SrlcStage, SwitchComponent, TABLE_ROW_HEIGHT, TabComponent, TabGroupComponent, TabHeadingComponent, TabHeadingCustomTemplateRefDirective, TabHeadingDirective, TabHeadingGroupComponent, TableCellDefDirective, TableCellDirective, TableColumnDefDirective, TableComponent, TableFooterCellDefDirective, TableFooterCellDirective, TableFooterRowComponent, TableFooterRowDefDirective, TableHeaderCellComponent, TableHeaderCellDefDirective, TableHeaderRowComponent, TableHeaderRowDefDirective, TableResizerDirective, TableRowComponent, TableRowDefDirective, TableStateHandlerService, TableStickyHeaderDirective, TableVirtualScrollDirective, TableVirtualScrollHeaderPosition, TableVirtualScrollLinearDirective, TextboxComponent, TextboxNumberComponent, ThemeSwitchService, ThemeSwitcherComponent, TimeFrameBarComponent, TimeFrameFormatPipe, TimeFramePickerComponent, TimePickerComponent, TimeframeService, ToastComponent, ToastContainerService, ToastDirective, ToastService, ToolbarComponent, ToolbarGroupComponent, ToolbarItemComponent, ToolbarItemDisplayStyle, ToolbarItemType, ToolbarMessageComponent, ToolbarSplitterComponent, TooltipComponent, TooltipDirective, TransientCacheService, UnitBase, UnitConversionPipe, UnitConversionService, UtilService, ValidationMessageComponent, VirtualViewportManager, WIZARD_CONFIG, WIZARD_CONFIG_DEFAULT, WIZARD_STEP_STATE_DEFAULT_CONFIG, WizardComponent, WizardDirective, WizardFooterComponent, WizardHorizontalComponent, WizardStepComponent, WizardStepFooterDirective, WizardStepHeaderComponent, WizardStepLabelDirective, WizardStepV2Component, WizardStepperNextDirective, WizardStepperPreviousDirective, WizardVerticalComponent, ZoomContentDirective, complexScrollStrategyFactory, datePickerDateFormats, datePickerDefaults, defaultFilters, expand, getOverlayPositions, imagesPresetToken, immutableSet, isTargetAnAnchor, isTargetNotAnAnchor, makePredicate, nameof, removeErrors, resizeDirectionHelpers, traverse, unitConversionConstants, unitConversionToken, uuid, expandV2 as ɵa, unitConversionToken as ɵb, WIZARD_CONFIG as ɵba, WizardOverflowComponent as ɵbb, SourcesService as ɵbc, PlunkerProjectService as ɵbd, PlunkerFiles as ɵbe, ContentRef as ɵbf, unitConversionConstants as ɵc, imagesPresetToken as ɵd, imagesData as ɵe, PopupContainerService as ɵf, PopupContainerComponent as ɵg, PopupAdapterModule as ɵh, fadeIn as ɵi, BaseSelectV2 as ɵj, OptionKeyControlService as ɵk, SelectedItemsKeyControlService as ɵl, ResizerDirective as ɵm, TabNavigationService as ɵn, ChipsOverflowService as ɵo, YearPickerComponent as ɵp, DatePickerInnerComponent as ɵq, MonthPickerComponent as ɵr, DayPickerComponent as ɵs, TimePickerKeyboardService as ɵt, PopoverPositionService as ɵu, SorterKeyboardService as ɵv, ToastServiceBase as ɵw, ToastPackage as ɵx, ToastRef as ɵy, ToolbarKeyboardService as ɵz };
25395
+ export { ANNOUNCER_CLOSE_MESSAGE, ANNOUNCER_OPEN_MESSAGE_SUFFIX, OverlayArrowComponent as ArrowComponent, BaseSelect, BreadcrumbComponent, BreadcrumbStateService, BusyComponent, ButtonComponent, ButtonIcon, ButtonSizeType, CardComponent, CardGroupComponent, CheckboxChangeEvent, CheckboxComponent, CheckboxGroupComponent, CheckboxStatus, ChipComponent, ChipsComponent, ChipsOverflowComponent, ClickFilterDirective, ClickInterceptorDirective, ClientSideDataSource, ClipboardDirective, ComboboxComponent, ComboboxV2Component, ComboboxV2OptionHighlightDirective, ConfirmationDialogComponent, ContentComponent, CopyTextComponent, CustomValidationMessageComponent, DEFAULT_INTERACTIVE_ELEMENTS, DEFAULT_TABLE_HEADER_OFFSET, DEMO_PATH_TOKEN, DataFilterService, DataSourceFeatures, DataSourceService, DatePickerComponent, DateTimePickerComponent, DialogBackdropComponent, DialogComponent, DialogFooterComponent, DialogHeaderComponent, DialogService, DialogStackService, DividerComponent, DndDropTargetDirective, DomUtilService, DragAndDropService, DraggableDirective, DroppableDirective, EdgeDetectionService, ErrorStateMatcher, EventBus, EventBusService, EventDefinition, EventPropagationService, ExampleCodeComponent, ExampleWrapperComponent, ExpanderComponent, FIXED_WIDTH_CLASS, FormFieldComponent, HighlightPipe, HistoryStorage, IEvent, IconCategory, IconCategoryNamespace, IconComponent, IconService, IconSeverity, IconState, IconStatus, IconWidget, ImageComponent, KEYBOARD_CODE, KEY_CODE, LayoutResizerComponent, LimitToPipe, ListService, LocalFilteringDataSource, LogLevel, LoggerService, MapKeyValuePipe, MarkAsSelectedItemDirective, MenuActionComponent, MenuActionType, MenuComponent, MenuGroupComponent, MenuItemBaseComponent, MenuItemComponent, MenuKeyControlService, MenuLinkComponent, MenuOptionComponent, MenuPopupComponent, MenuSwitchComponent, MessageComponent, NUI_ENV_PROVIDER, NUI_ENV_PROVIDER_FACTORY, NUI_SELECT_V2_OPTION_PARENT_COMPONENT, NoopDataSourceService, NotificationService, NuiActiveDialog, NuiBreadcrumbModule, NuiBusyModule, NuiButtonModule, NuiCheckboxModule, NuiChipsModule, NuiCommonModule, NuiContentModule, NuiDatePickerModule, NuiDateTimePickerModule, NuiDialogEvent, NuiDialogModule, NuiDialogRef, NuiDividerModule, NuiDndModule, NuiDocsModule, NuiEnvironment, NuiExpanderModule, NuiFormFieldControl, NuiFormFieldModule, NuiIconModule, NuiImageModule, NuiLayoutModule, NuiMenuModule, NuiMessageModule, NuiOverlayAdditionsModule, NuiOverlayModule, NuiPaginatorModule, NuiPanelModule, NuiPopoverModule, NuiPopupModule, NuiProgressModule, NuiRadioModule, NuiRepeatModule, NuiRiskScoreModule, NuiSearchModule, NuiSelectModule, NuiSelectV2Module, NuiSelectorModule, NuiSorterModule, NuiSpinnerModule, NuiSwitchModule, NuiTableModule, NuiTabsModule, NuiTextboxModule, NuiTimeFrameBarModule, NuiTimeFramePickerModule, NuiTimePickerModule, NuiToastModule, NuiToolbarModule, NuiTooltipModule, NuiValidationMessageModule, NuiValidators, NuiWizardModule, NuiWizardV2Module, OVERLAY_ARROW_SIZE, OVERLAY_CONTAINER, OVERLAY_CONTAINER_CLASS, OVERLAY_DEFAULT_PRIORITY, OVERLAY_ITEM, OVERLAY_PANEL_CLASS, OVERLAY_WITH_POPUP_STYLES_CLASS, OverlayComponent, OverlayContainerService, OverlayCustomContainer, OverlayItemComponent, OverlayPlacement, OverlayPosition, OverlayPositionService, OverlayService, OverlayUtilitiesService, POPUP_V2_VIEWPORT_MARGINS_DEFAULT, PaddingOptions, PaginatorComponent, PanelBackgroundColor, PanelComponent, PanelModes, PanelStates, PopoverComponent, PopoverModalComponent, PopoverOverlayPosition, PopupComponent, PopupDeprecatedComponent, PopupToggleDirective, PositionService, ProgressComponent, QuickPickerComponent, RESIZE_DEBOUNCE_TIME, RadioComponent, RadioGroupComponent, RepeatComponent, RepeatItemComponent, RepeatSelectionMode, ResizeDirection, ResizeDirective, ResizeObserverDirective, ResizeUnit, ResizerDirective, RiskScoreComponent, SearchComponent, SearchService, SelectComponent, SelectV2Component, SelectV2OptionComponent, SelectV2OptionGroupComponent, SelectionModel, SelectionType, SelectorComponent, SelectorService, ServerSideDataSource, SetFocusDirective, SheetComponent, SheetGroupComponent, SizeParameters, SliceRangePipe, SorterComponent, SorterDirection, SpinnerComponent, SpinnerSize, SrlcIndicatorComponent, SrlcStage, SwitchComponent, TABLE_ROW_HEIGHT, TabComponent, TabGroupComponent, TabHeadingComponent, TabHeadingCustomTemplateRefDirective, TabHeadingDirective, TabHeadingGroupComponent, TableCellDefDirective, TableCellDirective, TableColumnDefDirective, TableComponent, TableFooterCellDefDirective, TableFooterCellDirective, TableFooterRowComponent, TableFooterRowDefDirective, TableHeaderCellComponent, TableHeaderCellDefDirective, TableHeaderRowComponent, TableHeaderRowDefDirective, TableResizerDirective, TableRowComponent, TableRowDefDirective, TableStateHandlerService, TableStickyHeaderDirective, TableVirtualScrollDirective, TableVirtualScrollHeaderPosition, TableVirtualScrollLinearDirective, TextboxComponent, TextboxNumberComponent, ThemeSwitchService, ThemeSwitcherComponent, TimeFrameBarComponent, TimeFrameFormatPipe, TimeFramePickerComponent, TimePickerComponent, TimeframeService, ToastComponent, ToastContainerService, ToastDirective, ToastService, ToolbarComponent, ToolbarGroupComponent, ToolbarItemComponent, ToolbarItemDisplayStyle, ToolbarItemType, ToolbarMessageComponent, ToolbarSplitterComponent, TooltipComponent, TooltipDirective, TransientCacheService, UnitBase, UnitConversionPipe, UnitConversionService, UtilService, ValidationMessageComponent, VirtualViewportManager, WIZARD_CONFIG, WIZARD_CONFIG_DEFAULT, WIZARD_STEP_STATE_DEFAULT_CONFIG, WizardComponent, WizardDirective, WizardFooterComponent, WizardHorizontalComponent, WizardStepComponent, WizardStepFooterDirective, WizardStepHeaderComponent, WizardStepLabelDirective, WizardStepV2Component, WizardStepperNextDirective, WizardStepperPreviousDirective, WizardVerticalComponent, ZoomContentDirective, complexScrollStrategyFactory, datePickerDateFormats, datePickerDefaults, defaultFilters, expand, getOverlayPositions, imagesPresetToken, immutableSet, isTargetAnAnchor, isTargetNotAnAnchor, makePredicate, nameof, removeErrors, resizeDirectionHelpers, traverse, unitConversionConstants, unitConversionToken, uuid, expandV2 as ɵa, unitConversionToken as ɵb, WIZARD_CONFIG as ɵba, WizardOverflowComponent as ɵbb, SourcesService as ɵbc, PlunkerProjectService as ɵbd, PlunkerFiles as ɵbe, ContentRef as ɵbf, unitConversionConstants as ɵc, imagesPresetToken as ɵd, imagesData as ɵe, PopupContainerService as ɵf, PopupContainerComponent as ɵg, PopupAdapterModule as ɵh, fadeIn as ɵi, BaseSelectV2 as ɵj, OptionKeyControlService as ɵk, SelectedItemsKeyControlService as ɵl, ResizerDirective as ɵm, TabNavigationService as ɵn, ChipsOverflowService as ɵo, YearPickerComponent as ɵp, DatePickerInnerComponent as ɵq, MonthPickerComponent as ɵr, DayPickerComponent as ɵs, TimePickerKeyboardService as ɵt, PopoverPositionService as ɵu, SorterKeyboardService as ɵv, ToastServiceBase as ɵw, ToastPackage as ɵx, ToastRef as ɵy, ToolbarKeyboardService as ɵz };
25305
25396
  //# sourceMappingURL=nova-ui-bits.js.map