@nova-ui/bits 19.0.1 → 19.0.2-6573

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.
@@ -5882,6 +5882,7 @@ class ZoomContentDirective {
5882
5882
  this.checkScaleBoundaries(data.targetValue);
5883
5883
  });
5884
5884
  }
5885
+ this.applyTransform();
5885
5886
  }
5886
5887
  ngAfterViewInit() {
5887
5888
  const resizeObserver = new ResizeObserver(() => this.onResize());
@@ -5905,7 +5906,15 @@ class ZoomContentDirective {
5905
5906
  if (!this.elementRect || !this.parentRect) {
5906
5907
  return;
5907
5908
  }
5908
- this.useZoom ? this.applyZoom() : this.applyScale();
5909
+ this.applyTransform();
5910
+ }
5911
+ applyTransform() {
5912
+ if (this.useZoom) {
5913
+ this.applyZoom();
5914
+ }
5915
+ else {
5916
+ this.applyScale();
5917
+ }
5909
5918
  }
5910
5919
  applyZoom() {
5911
5920
  const widthZoom = this.parentRect.width / this.elementRect.width;
@@ -14074,13 +14083,16 @@ class TableStickyHeaderDirective {
14074
14083
  const tableColumnsUpdate$ = merge(this.table.columnsOrderChange, this.table.columnsWidthChange, this.table._contentColumnDefs.changes).pipe(
14075
14084
  // Note: Using delay(0) to grant some time to the table
14076
14085
  // to update the rows and then proceed with the event
14077
- delay(0),
14086
+ delay(0, asyncScheduler),
14078
14087
  // Note: Reattaching native header on every columns changes
14079
14088
  tap(() => this.updateNativeHeaderPlaceholder()));
14080
14089
  if (!this.virtualFor) {
14081
14090
  throw new Error("Unable to find CdkVirtualForOf");
14082
14091
  }
14083
- merge(onScroll$, onResize$, tableColumnsUpdate$, this.virtualFor.dataStream)
14092
+ const dataStream$ = this.virtualFor.dataStream.pipe(
14093
+ // give CDK some time to render rows after a change
14094
+ delay(0, asyncScheduler), tap(() => this.updateNativeHeaderPlaceholder()));
14095
+ merge(onScroll$, onResize$, tableColumnsUpdate$, dataStream$)
14084
14096
  .pipe(
14085
14097
  // Note: Preventing function to be invoked multiple times
14086
14098
  // by merging new observable only if the previous one was completed
@@ -18524,7 +18536,7 @@ class RadioComponent {
18524
18536
  this.eventBusService.getStream(DOCUMENT_CLICK_EVENT).next(event);
18525
18537
  }
18526
18538
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: RadioComponent, deps: [{ token: RadioGroupComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: EventBusService }], target: i0.ɵɵFactoryTarget.Component }); }
18527
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: RadioComponent, isStandalone: false, selector: "nui-radio", inputs: { value: "value", hovered: "hovered", checked: "checked", hint: "hint", disabled: "disabled", ariaLabel: "ariaLabel" }, outputs: { valueChange: "valueChange" }, host: { attributes: { "role": "radio" }, properties: { "class.nui-radio--hovered": "hovered", "class.nui-radio--checked": "checked" } }, queries: [{ propertyName: "contentHints", predicate: ["[nui-radio-hint]"] }], viewQueries: [{ propertyName: "inputViewContainer", first: true, predicate: ["inputViewContainer"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "radioTransclude", first: true, predicate: ["radioTransclude"], descendants: true, static: true }], ngImport: i0, template: "<div\n class=\"nui-radio\"\n [class.nui-radio--empty]=\"radioTranscludeIsEmpty && !hint\"\n>\n <label\n class=\"nui-radio__label\"\n [class.nui-radio__label--translucent]=\"disabled\"\n (mouseenter)=\"hoverHandler()\"\n (mouseleave)=\"hoverHandler()\"\n >\n <div class=\"nui-radio__content\">\n <input\n #inputViewContainer\n class=\"nui-radio__input\"\n type=\"radio\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"ariaLabel\"\n (change)=\"changeHandler()\"\n (click)=\"onInputClick($event)\"\n />\n\n <div\n class=\"nui-radio__mark\"\n [class.nui-radio__mark--disabled]=\"disabled\"\n >\n <div class=\"nui-radio__glyph\"></div>\n </div>\n\n <div #radioTransclude class=\"nui-radio__transclude\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <div #hintDiv class=\"nui-radio__hint nui-help-hint\">\n <ng-content select=\"[hint]\"></ng-content>\n <ng-container *ngIf=\"!!hint\">\n {{ hint }}\n </ng-container>\n </div>\n </label>\n</div>\n", styles: [".nui-radio-group-inline>.nui-radio-group{display:inline-flex}.nui-radio-group-inline>.nui-radio-group .nui-radio{margin-left:5px}.nui .nui-radio{border-radius:3px;cursor:pointer;line-height:14px}.nui .nui-radio:hover{background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-radio__label{cursor:pointer;font-weight:400;margin:0;min-height:30px;min-width:30px;padding:7px;position:relative;width:100%}.nui .nui-radio__label--translucent{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3));cursor:default}.nui .nui-radio__content{align-items:center;display:flex;flex-wrap:nowrap;justify-content:flex-start;min-height:16px}.nui .nui-radio__mark{background:var(--nui-color-bg-content,#fff);background-size:16px;border:solid 2px;border-color:var(--nui-color-active,#0079aa);border-radius:100%;height:16px;margin:0 7px 0 0;padding:3px;width:16px;flex-shrink:0;flex-grow:0}.nui .nui-radio__mark.nui-radio__mark--disabled{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3);cursor:not-allowed}.nui .nui-radio__glyph{background:var(--nui-color-bg-content,#fff);border-radius:100%;display:none;height:100%;width:100%}.nui .nui-radio__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;outline:0;overflow:hidden;padding:0;position:absolute;width:1px}.nui .nui-radio__input[disabled],.nui .nui-radio__input.disabled{cursor:not-allowed}.nui .nui-radio__input:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.nui .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3)}.nui .nui-radio.nui-radio--empty{display:inline-block}.nui .nui-radio.nui-radio--empty .nui-radio__label{justify-content:center;margin:auto;width:auto}.nui .nui-radio.nui-radio--empty .nui-radio__mark{margin:auto}.nui .nui-radio .nui-help-hint{line-height:14px;margin-left:23px;padding:0}.nui .nui-radio--checked .nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__mark--disabled{background-color:var(--nui-color-off,#4d4d4d);border-color:var(--nui-color-off,#4d4d4d)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-disabled,#b3b3b3);border-color:var(--nui-color-disabled,#b3b3b3)}.nui-repeat-item__radio .nui-radio:hover{background:none}.nui-repeat-item__radio .nui-radio .nui-radio__hint{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
18539
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: RadioComponent, isStandalone: false, selector: "nui-radio", inputs: { value: "value", hovered: "hovered", checked: "checked", hint: "hint", disabled: "disabled", ariaLabel: "ariaLabel" }, outputs: { valueChange: "valueChange" }, host: { attributes: { "role": "radio" }, properties: { "class.nui-radio--hovered": "hovered", "class.nui-radio--checked": "checked" } }, queries: [{ propertyName: "contentHints", predicate: ["[nui-radio-hint]"] }], viewQueries: [{ propertyName: "inputViewContainer", first: true, predicate: ["inputViewContainer"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "radioTransclude", first: true, predicate: ["radioTransclude"], descendants: true, static: true }], ngImport: i0, template: "<div\n class=\"nui-radio\"\n [class.nui-radio--empty]=\"radioTranscludeIsEmpty && !hint\"\n>\n <label\n class=\"nui-radio__label\"\n [class.nui-radio__label--translucent]=\"disabled\"\n (mouseenter)=\"hoverHandler()\"\n (mouseleave)=\"hoverHandler()\"\n >\n <div class=\"nui-radio__content\">\n <input\n #inputViewContainer\n class=\"nui-radio__input\"\n type=\"radio\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-checked]=\"checked\"\n (change)=\"changeHandler()\"\n (click)=\"onInputClick($event)\"\n />\n\n <div\n class=\"nui-radio__mark\"\n [class.nui-radio__mark--disabled]=\"disabled\"\n >\n <div class=\"nui-radio__glyph\"></div>\n </div>\n\n <div #radioTransclude class=\"nui-radio__transclude\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <div #hintDiv class=\"nui-radio__hint nui-help-hint\">\n <ng-content select=\"[hint]\"></ng-content>\n <ng-container *ngIf=\"!!hint\">\n {{ hint }}\n </ng-container>\n </div>\n </label>\n</div>\n", styles: [".nui-radio-group-inline>.nui-radio-group{display:inline-flex}.nui-radio-group-inline>.nui-radio-group .nui-radio{margin-left:5px}.nui .nui-radio{border-radius:3px;cursor:pointer;line-height:14px}.nui .nui-radio:hover{background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-radio__label{cursor:pointer;font-weight:400;margin:0;min-height:30px;min-width:30px;padding:7px;position:relative;width:100%}.nui .nui-radio__label--translucent{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3));cursor:default}.nui .nui-radio__content{align-items:center;display:flex;flex-wrap:nowrap;justify-content:flex-start;min-height:16px}.nui .nui-radio__mark{background:var(--nui-color-bg-content,#fff);background-size:16px;border:solid 2px;border-color:var(--nui-color-active,#0079aa);border-radius:100%;height:16px;margin:0 7px 0 0;padding:3px;width:16px;flex-shrink:0;flex-grow:0}.nui .nui-radio__mark.nui-radio__mark--disabled{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3);cursor:not-allowed}.nui .nui-radio__glyph{background:var(--nui-color-bg-content,#fff);border-radius:100%;display:none;height:100%;width:100%}.nui .nui-radio__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;outline:0;overflow:hidden;padding:0;position:absolute;width:1px}.nui .nui-radio__input[disabled],.nui .nui-radio__input.disabled{cursor:not-allowed}.nui .nui-radio__input:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.nui .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3)}.nui .nui-radio.nui-radio--empty{display:inline-block}.nui .nui-radio.nui-radio--empty .nui-radio__label{justify-content:center;margin:auto;width:auto}.nui .nui-radio.nui-radio--empty .nui-radio__mark{margin:auto}.nui .nui-radio .nui-help-hint{line-height:14px;margin-left:23px;padding:0}.nui .nui-radio--checked .nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__mark--disabled{background-color:var(--nui-color-off,#4d4d4d);border-color:var(--nui-color-off,#4d4d4d)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-disabled,#b3b3b3);border-color:var(--nui-color-disabled,#b3b3b3)}.nui-repeat-item__radio .nui-radio:hover{background:none}.nui-repeat-item__radio .nui-radio .nui-radio__hint{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
18528
18540
  }
18529
18541
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: RadioComponent, decorators: [{
18530
18542
  type: Component,
@@ -18532,7 +18544,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
18532
18544
  "[class.nui-radio--hovered]": "hovered",
18533
18545
  "[class.nui-radio--checked]": "checked",
18534
18546
  role: "radio",
18535
- }, standalone: false, template: "<div\n class=\"nui-radio\"\n [class.nui-radio--empty]=\"radioTranscludeIsEmpty && !hint\"\n>\n <label\n class=\"nui-radio__label\"\n [class.nui-radio__label--translucent]=\"disabled\"\n (mouseenter)=\"hoverHandler()\"\n (mouseleave)=\"hoverHandler()\"\n >\n <div class=\"nui-radio__content\">\n <input\n #inputViewContainer\n class=\"nui-radio__input\"\n type=\"radio\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"ariaLabel\"\n (change)=\"changeHandler()\"\n (click)=\"onInputClick($event)\"\n />\n\n <div\n class=\"nui-radio__mark\"\n [class.nui-radio__mark--disabled]=\"disabled\"\n >\n <div class=\"nui-radio__glyph\"></div>\n </div>\n\n <div #radioTransclude class=\"nui-radio__transclude\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <div #hintDiv class=\"nui-radio__hint nui-help-hint\">\n <ng-content select=\"[hint]\"></ng-content>\n <ng-container *ngIf=\"!!hint\">\n {{ hint }}\n </ng-container>\n </div>\n </label>\n</div>\n", styles: [".nui-radio-group-inline>.nui-radio-group{display:inline-flex}.nui-radio-group-inline>.nui-radio-group .nui-radio{margin-left:5px}.nui .nui-radio{border-radius:3px;cursor:pointer;line-height:14px}.nui .nui-radio:hover{background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-radio__label{cursor:pointer;font-weight:400;margin:0;min-height:30px;min-width:30px;padding:7px;position:relative;width:100%}.nui .nui-radio__label--translucent{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3));cursor:default}.nui .nui-radio__content{align-items:center;display:flex;flex-wrap:nowrap;justify-content:flex-start;min-height:16px}.nui .nui-radio__mark{background:var(--nui-color-bg-content,#fff);background-size:16px;border:solid 2px;border-color:var(--nui-color-active,#0079aa);border-radius:100%;height:16px;margin:0 7px 0 0;padding:3px;width:16px;flex-shrink:0;flex-grow:0}.nui .nui-radio__mark.nui-radio__mark--disabled{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3);cursor:not-allowed}.nui .nui-radio__glyph{background:var(--nui-color-bg-content,#fff);border-radius:100%;display:none;height:100%;width:100%}.nui .nui-radio__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;outline:0;overflow:hidden;padding:0;position:absolute;width:1px}.nui .nui-radio__input[disabled],.nui .nui-radio__input.disabled{cursor:not-allowed}.nui .nui-radio__input:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.nui .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3)}.nui .nui-radio.nui-radio--empty{display:inline-block}.nui .nui-radio.nui-radio--empty .nui-radio__label{justify-content:center;margin:auto;width:auto}.nui .nui-radio.nui-radio--empty .nui-radio__mark{margin:auto}.nui .nui-radio .nui-help-hint{line-height:14px;margin-left:23px;padding:0}.nui .nui-radio--checked .nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__mark--disabled{background-color:var(--nui-color-off,#4d4d4d);border-color:var(--nui-color-off,#4d4d4d)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-disabled,#b3b3b3);border-color:var(--nui-color-disabled,#b3b3b3)}.nui-repeat-item__radio .nui-radio:hover{background:none}.nui-repeat-item__radio .nui-radio .nui-radio__hint{display:none}\n"] }]
18547
+ }, standalone: false, template: "<div\n class=\"nui-radio\"\n [class.nui-radio--empty]=\"radioTranscludeIsEmpty && !hint\"\n>\n <label\n class=\"nui-radio__label\"\n [class.nui-radio__label--translucent]=\"disabled\"\n (mouseenter)=\"hoverHandler()\"\n (mouseleave)=\"hoverHandler()\"\n >\n <div class=\"nui-radio__content\">\n <input\n #inputViewContainer\n class=\"nui-radio__input\"\n type=\"radio\"\n [value]=\"value\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-checked]=\"checked\"\n (change)=\"changeHandler()\"\n (click)=\"onInputClick($event)\"\n />\n\n <div\n class=\"nui-radio__mark\"\n [class.nui-radio__mark--disabled]=\"disabled\"\n >\n <div class=\"nui-radio__glyph\"></div>\n </div>\n\n <div #radioTransclude class=\"nui-radio__transclude\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <div #hintDiv class=\"nui-radio__hint nui-help-hint\">\n <ng-content select=\"[hint]\"></ng-content>\n <ng-container *ngIf=\"!!hint\">\n {{ hint }}\n </ng-container>\n </div>\n </label>\n</div>\n", styles: [".nui-radio-group-inline>.nui-radio-group{display:inline-flex}.nui-radio-group-inline>.nui-radio-group .nui-radio{margin-left:5px}.nui .nui-radio{border-radius:3px;cursor:pointer;line-height:14px}.nui .nui-radio:hover{background-color:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}.nui .nui-radio__label{cursor:pointer;font-weight:400;margin:0;min-height:30px;min-width:30px;padding:7px;position:relative;width:100%}.nui .nui-radio__label--translucent{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3));cursor:default}.nui .nui-radio__content{align-items:center;display:flex;flex-wrap:nowrap;justify-content:flex-start;min-height:16px}.nui .nui-radio__mark{background:var(--nui-color-bg-content,#fff);background-size:16px;border:solid 2px;border-color:var(--nui-color-active,#0079aa);border-radius:100%;height:16px;margin:0 7px 0 0;padding:3px;width:16px;flex-shrink:0;flex-grow:0}.nui .nui-radio__mark.nui-radio__mark--disabled{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3);cursor:not-allowed}.nui .nui-radio__glyph{background:var(--nui-color-bg-content,#fff);border-radius:100%;display:none;height:100%;width:100%}.nui .nui-radio__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;outline:0;overflow:hidden;padding:0;position:absolute;width:1px}.nui .nui-radio__input[disabled],.nui .nui-radio__input.disabled{cursor:not-allowed}.nui .nui-radio__input:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.nui .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-bg-content,#fff);border-color:var(--nui-color-disabled,#b3b3b3)}.nui .nui-radio.nui-radio--empty{display:inline-block}.nui .nui-radio.nui-radio--empty .nui-radio__label{justify-content:center;margin:auto;width:auto}.nui .nui-radio.nui-radio--empty .nui-radio__mark{margin:auto}.nui .nui-radio .nui-help-hint{line-height:14px;margin-left:23px;padding:0}.nui .nui-radio--checked .nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__mark--disabled{background-color:var(--nui-color-off,#4d4d4d);border-color:var(--nui-color-off,#4d4d4d)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark{background-color:var(--nui-color-active,#0079aa);border-color:var(--nui-color-active,#0079aa)}.nui .nui-radio--checked .nui-radio__input+.nui-radio__mark>.nui-radio__glyph{display:block}.nui .nui-radio--checked .nui-radio__input:disabled+.nui-radio__mark{background-color:var(--nui-color-disabled,#b3b3b3);border-color:var(--nui-color-disabled,#b3b3b3)}.nui-repeat-item__radio .nui-radio:hover{background:none}.nui-repeat-item__radio .nui-radio .nui-radio__hint{display:none}\n"] }]
18536
18548
  }], ctorParameters: () => [{ type: RadioGroupComponent, decorators: [{
18537
18549
  type: Optional
18538
18550
  }] }, { type: i0.ChangeDetectorRef }, { type: EventBusService }], propDecorators: { value: [{
@@ -19551,21 +19563,30 @@ class TabHeadingComponent {
19551
19563
  get active() {
19552
19564
  return this._active;
19553
19565
  }
19554
- constructor(changeDetector) {
19566
+ constructor(changeDetector, elementRef) {
19555
19567
  this.changeDetector = changeDetector;
19568
+ this.elementRef = elementRef;
19556
19569
  /** Event is fired when tab became active, $event:Tab equals to selected instance of Tab component */
19557
19570
  this.selected = new EventEmitter();
19558
19571
  }
19559
19572
  selectTab() {
19560
- this.selected.emit(this);
19573
+ if (!this.disabled) {
19574
+ this.selected.emit(this);
19575
+ }
19576
+ }
19577
+ onKeyDown(event) {
19578
+ if (event.code === KEYBOARD_CODE.ENTER || event.code === KEYBOARD_CODE.SPACE) {
19579
+ event.preventDefault();
19580
+ this.elementRef.nativeElement.click();
19581
+ }
19561
19582
  }
19562
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TabHeadingComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
19563
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TabHeadingComponent, isStandalone: false, selector: "nui-tab-heading", inputs: { disabled: "disabled", active: "active", tabId: "tabId" }, outputs: { selected: "selected" }, host: { attributes: { "role": "tab" }, properties: { "class.disabled": "this.isDisabled" } }, ngImport: i0, template: "<div class=\"nui-tab-heading\" [class.active]=\"active\">\n <span class=\"tab-link\" (click)=\"selectTab()\">\n <ng-content></ng-content>\n </span>\n</div>\n", styles: [":host{max-width:250px;min-height:37px;background-color:var(--nui-color-bg-transparent,transparent)}:host .nui-tab-heading{white-space:nowrap}:host .nui-tab-heading.active{border-left:none;border-bottom:3px solid;border-bottom-color:var(--nui-color-selected-contrast,#00c4d2)}:host .nui-tab-heading.active>.tab-link{color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-content,#fff)}:host .nui-tab-heading .tab-link{background:var(--nui-color-bg-transparent,transparent);color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));line-height:var(--nui-line-height-default,18px);font-weight:var(--nui-font-weight-semibold,600);font-size:var(--nui-font-size-default,13px);display:block;padding:10px 15px;text-transform:uppercase;min-height:37px;cursor:pointer}:host .nui-tab-heading .tab-link:hover{background:var(--transparent,transparent)}:host.disabled>.nui-tab-heading .tab-link{cursor:not-allowed;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3))}:host.disabled>.nui-tab-heading .tab-link:hover{background:transparent}:host.disabled:hover{background:transparent}:host:hover{background:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}:host:focus{outline:none}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading{max-width:250px;min-height:40px;border-left:3px solid transparent}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading.active{border-bottom:none;border-left:3px solid;border-left-color:var(--nui-color-selected-contrast,#00c4d2)}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading .tab-link{min-height:40px}\n"] }); }
19583
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TabHeadingComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
19584
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: TabHeadingComponent, isStandalone: false, selector: "nui-tab-heading", inputs: { disabled: "disabled", active: "active", tabId: "tabId" }, outputs: { selected: "selected" }, host: { properties: { "class.disabled": "this.isDisabled" } }, ngImport: i0, template: "<div class=\"nui-tab-heading\" \n [class.active]=\"active\"\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-selected]=\"active ? 'true' : 'false'\"\n role=\"tab\"\n (click)=\"selectTab()\" \n (keydown)=\"onKeyDown($event)\">\n <span class=\"tab-link\">\n <ng-content></ng-content>\n </span>\n</div>", styles: [":host{max-width:250px;min-height:37px;background-color:var(--nui-color-bg-transparent,transparent)}:host .nui-tab-heading{white-space:nowrap}:host .nui-tab-heading.active{border-left:none;border-bottom:3px solid;border-bottom-color:var(--nui-color-selected-contrast,#00c4d2)}:host .nui-tab-heading.active>.tab-link{color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-content,#fff)}:host .nui-tab-heading:focus{outline:none;background:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}:host .nui-tab-heading .tab-link{background:var(--nui-color-bg-transparent,transparent);color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));line-height:var(--nui-line-height-default,18px);font-weight:var(--nui-font-weight-semibold,600);font-size:var(--nui-font-size-default,13px);display:block;padding:10px 15px;text-transform:uppercase;min-height:37px;cursor:pointer}:host .nui-tab-heading .tab-link:hover{background:var(--transparent,transparent)}:host.disabled>.nui-tab-heading .tab-link{cursor:not-allowed;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3))}:host.disabled>.nui-tab-heading .tab-link:hover{background:transparent}:host.disabled:hover{background:transparent}:host:hover{background:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}:host:focus{outline:none}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading{max-width:250px;min-height:40px;border-left:3px solid transparent}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading.active{border-bottom:none;border-left:3px solid;border-left-color:var(--nui-color-selected-contrast,#00c4d2)}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading .tab-link{min-height:40px}\n"] }); }
19564
19585
  }
19565
19586
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TabHeadingComponent, decorators: [{
19566
19587
  type: Component,
19567
- args: [{ selector: "nui-tab-heading", host: { role: "tab" }, standalone: false, template: "<div class=\"nui-tab-heading\" [class.active]=\"active\">\n <span class=\"tab-link\" (click)=\"selectTab()\">\n <ng-content></ng-content>\n </span>\n</div>\n", styles: [":host{max-width:250px;min-height:37px;background-color:var(--nui-color-bg-transparent,transparent)}:host .nui-tab-heading{white-space:nowrap}:host .nui-tab-heading.active{border-left:none;border-bottom:3px solid;border-bottom-color:var(--nui-color-selected-contrast,#00c4d2)}:host .nui-tab-heading.active>.tab-link{color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-content,#fff)}:host .nui-tab-heading .tab-link{background:var(--nui-color-bg-transparent,transparent);color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));line-height:var(--nui-line-height-default,18px);font-weight:var(--nui-font-weight-semibold,600);font-size:var(--nui-font-size-default,13px);display:block;padding:10px 15px;text-transform:uppercase;min-height:37px;cursor:pointer}:host .nui-tab-heading .tab-link:hover{background:var(--transparent,transparent)}:host.disabled>.nui-tab-heading .tab-link{cursor:not-allowed;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3))}:host.disabled>.nui-tab-heading .tab-link:hover{background:transparent}:host.disabled:hover{background:transparent}:host:hover{background:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}:host:focus{outline:none}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading{max-width:250px;min-height:40px;border-left:3px solid transparent}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading.active{border-bottom:none;border-left:3px solid;border-left-color:var(--nui-color-selected-contrast,#00c4d2)}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading .tab-link{min-height:40px}\n"] }]
19568
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { isDisabled: [{
19588
+ args: [{ selector: "nui-tab-heading", standalone: false, template: "<div class=\"nui-tab-heading\" \n [class.active]=\"active\"\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-selected]=\"active ? 'true' : 'false'\"\n role=\"tab\"\n (click)=\"selectTab()\" \n (keydown)=\"onKeyDown($event)\">\n <span class=\"tab-link\">\n <ng-content></ng-content>\n </span>\n</div>", styles: [":host{max-width:250px;min-height:37px;background-color:var(--nui-color-bg-transparent,transparent)}:host .nui-tab-heading{white-space:nowrap}:host .nui-tab-heading.active{border-left:none;border-bottom:3px solid;border-bottom-color:var(--nui-color-selected-contrast,#00c4d2)}:host .nui-tab-heading.active>.tab-link{color:var(--nui-color-text-default,#111);background-color:var(--nui-color-bg-content,#fff)}:host .nui-tab-heading:focus{outline:none;background:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}:host .nui-tab-heading .tab-link{background:var(--nui-color-bg-transparent,transparent);color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));line-height:var(--nui-line-height-default,18px);font-weight:var(--nui-font-weight-semibold,600);font-size:var(--nui-font-size-default,13px);display:block;padding:10px 15px;text-transform:uppercase;min-height:37px;cursor:pointer}:host .nui-tab-heading .tab-link:hover{background:var(--transparent,transparent)}:host.disabled>.nui-tab-heading .tab-link{cursor:not-allowed;color:var(--nui-color-text-disabled,rgba(17, 17, 17, .3))}:host.disabled>.nui-tab-heading .tab-link:hover{background:transparent}:host.disabled:hover{background:transparent}:host:hover{background:var(--nui-color-bg-transparent-hover,rgba(17, 17, 17, .05))}:host:focus{outline:none}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading{max-width:250px;min-height:40px;border-left:3px solid transparent}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading.active{border-bottom:none;border-left:3px solid;border-left-color:var(--nui-color-selected-contrast,#00c4d2)}:host-context(nui-tab-heading-group.vertical) .nui-tab-heading .tab-link{min-height:40px}\n"] }]
19589
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { isDisabled: [{
19569
19590
  type: HostBinding,
19570
19591
  args: ["class.disabled"]
19571
19592
  }], disabled: [{
@@ -21182,6 +21203,445 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
21182
21203
  }]
21183
21204
  }] });
21184
21205
 
21206
+ // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
21207
+ //
21208
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
21209
+ // of this software and associated documentation files (the "Software"), to
21210
+ // deal in the Software without restriction, including without limitation the
21211
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
21212
+ // sell copies of the Software, and to permit persons to whom the Software is
21213
+ // furnished to do so, subject to the following conditions:
21214
+ //
21215
+ // The above copyright notice and this permission notice shall be included in
21216
+ // all copies or substantial portions of the Software.
21217
+ //
21218
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21219
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21220
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21221
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21222
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21223
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21224
+ // THE SOFTWARE.
21225
+ const HTML_COLORS = new Map([
21226
+ ["aliceblue", "#f0f8ff"],
21227
+ ["antiquewhite", "#faebd7"],
21228
+ ["aqua", "#00ffff"],
21229
+ ["aquamarine", "#7fffd4"],
21230
+ ["azure", "#f0ffff"],
21231
+ ["beige", "#f5f5dc"],
21232
+ ["bisque", "#ffe4c4"],
21233
+ ["black", "#000000"],
21234
+ ["blanchedalmond", "#ffebcd"],
21235
+ ["blue", "#0000ff"],
21236
+ ["blueviolet", "#8a2be2"],
21237
+ ["brown", "#a52a2a"],
21238
+ ["burlywood", "#deb887"],
21239
+ ["cadetblue", "#5f9ea0"],
21240
+ ["chartreuse", "#7fff00"],
21241
+ ["chocolate", "#d2691e"],
21242
+ ["coral", "#ff7f50"],
21243
+ ["cornflowerblue", "#6495ed"],
21244
+ ["cornsilk", "#fff8dc"],
21245
+ ["crimson", "#dc143c"],
21246
+ ["cyan", "#00ffff"],
21247
+ ["darkblue", "#00008b"],
21248
+ ["darkcyan", "#008b8b"],
21249
+ ["darkgoldenrod", "#b8860b"],
21250
+ ["darkgray", "#a9a9a9"],
21251
+ ["darkgreen", "#006400"],
21252
+ ["darkkhaki", "#bdb76b"],
21253
+ ["darkmagenta", "#8b008b"],
21254
+ ["darkolivegreen", "#556b2f"],
21255
+ ["darkorange", "#ff8c00"],
21256
+ ["darkorchid", "#9932cc"],
21257
+ ["darkred", "#8b0000"],
21258
+ ["darksalmon", "#e9967a"],
21259
+ ["darkseagreen", "#8fbc8f"],
21260
+ ["darkslateblue", "#483d8b"],
21261
+ ["darkslategray", "#2f4f4f"],
21262
+ ["darkturquoise", "#00ced1"],
21263
+ ["darkviolet", "#9400d3"],
21264
+ ["deeppink", "#ff1493"],
21265
+ ["deepskyblue", "#00bfff"],
21266
+ ["dimgray", "#696969"],
21267
+ ["dodgerblue", "#1e90ff"],
21268
+ ["firebrick", "#b22222"],
21269
+ ["floralwhite", "#fffaf0"],
21270
+ ["forestgreen", "#228b22"],
21271
+ ["fuchsia", "#ff00ff"],
21272
+ ["gainsboro", "#dcdcdc"],
21273
+ ["ghostwhite", "#f8f8ff"],
21274
+ ["gold", "#ffd700"],
21275
+ ["goldenrod", "#daa520"],
21276
+ ["gray", "#808080"],
21277
+ ["green", "#008000"],
21278
+ ["greenyellow", "#adff2f"],
21279
+ ["honeydew", "#f0fff0"],
21280
+ ["hotpink", "#ff69b4"],
21281
+ ["indianred ", "#cd5c5c"],
21282
+ ["indigo", "#4b0082"],
21283
+ ["ivory", "#fffff0"],
21284
+ ["khaki", "#f0e68c"],
21285
+ ["lavender", "#e6e6fa"],
21286
+ ["lavenderblush", "#fff0f5"],
21287
+ ["lawngreen", "#7cfc00"],
21288
+ ["lemonchiffon", "#fffacd"],
21289
+ ["lightblue", "#add8e6"],
21290
+ ["lightcoral", "#f08080"],
21291
+ ["lightcyan", "#e0ffff"],
21292
+ ["lightgoldenrodyellow", "#fafad2"],
21293
+ ["lightgrey", "#d3d3d3"],
21294
+ ["lightgreen", "#90ee90"],
21295
+ ["lightpink", "#ffb6c1"],
21296
+ ["lightsalmon", "#ffa07a"],
21297
+ ["lightseagreen", "#20b2aa"],
21298
+ ["lightskyblue", "#87cefa"],
21299
+ ["lightslategray", "#778899"],
21300
+ ["lightsteelblue", "#b0c4de"],
21301
+ ["lightyellow", "#ffffe0"],
21302
+ ["lime", "#00ff00"],
21303
+ ["limegreen", "#32cd32"],
21304
+ ["linen", "#faf0e6"],
21305
+ ["magenta", "#ff00ff"],
21306
+ ["maroon", "#800000"],
21307
+ ["mediumaquamarine", "#66cdaa"],
21308
+ ["mediumblue", "#0000cd"],
21309
+ ["mediumorchid", "#ba55d3"],
21310
+ ["mediumpurple", "#9370d8"],
21311
+ ["mediumseagreen", "#3cb371"],
21312
+ ["mediumslateblue", "#7b68ee"],
21313
+ ["mediumspringgreen", "#00fa9a"],
21314
+ ["mediumturquoise", "#48d1cc"],
21315
+ ["mediumvioletred", "#c71585"],
21316
+ ["midnightblue", "#191970"],
21317
+ ["mintcream", "#f5fffa"],
21318
+ ["mistyrose", "#ffe4e1"],
21319
+ ["moccasin", "#ffe4b5"],
21320
+ ["navajowhite", "#ffdead"],
21321
+ ["navy", "#000080"],
21322
+ ["oldlace", "#fdf5e6"],
21323
+ ["olive", "#808000"],
21324
+ ["olivedrab", "#6b8e23"],
21325
+ ["orange", "#ffa500"],
21326
+ ["orangered", "#ff4500"],
21327
+ ["orchid", "#da70d6"],
21328
+ ["palegoldenrod", "#eee8aa"],
21329
+ ["palegreen", "#98fb98"],
21330
+ ["paleturquoise", "#afeeee"],
21331
+ ["palevioletred", "#d87093"],
21332
+ ["papayawhip", "#ffefd5"],
21333
+ ["peachpuff", "#ffdab9"],
21334
+ ["peru", "#cd853f"],
21335
+ ["pink", "#ffc0cb"],
21336
+ ["plum", "#dda0dd"],
21337
+ ["powderblue", "#b0e0e6"],
21338
+ ["purple", "#800080"],
21339
+ ["rebeccapurple", "#663399"],
21340
+ ["red", "#ff0000"],
21341
+ ["rosybrown", "#bc8f8f"],
21342
+ ["royalblue", "#4169e1"],
21343
+ ["saddlebrown", "#8b4513"],
21344
+ ["salmon", "#fa8072"],
21345
+ ["sandybrown", "#f4a460"],
21346
+ ["seagreen", "#2e8b57"],
21347
+ ["seashell", "#fff5ee"],
21348
+ ["sienna", "#a0522d"],
21349
+ ["silver", "#c0c0c0"],
21350
+ ["skyblue", "#87ceeb"],
21351
+ ["slateblue", "#6a5acd"],
21352
+ ["slategray", "#708090"],
21353
+ ["snow", "#fffafa"],
21354
+ ["springgreen", "#00ff7f"],
21355
+ ["steelblue", "#4682b4"],
21356
+ ["tan", "#d2b48c"],
21357
+ ["teal", "#008080"],
21358
+ ["thistle", "#d8bfd8"],
21359
+ ["tomato", "#ff6347"],
21360
+ ["turquoise", "#40e0d0"],
21361
+ ["violet", "#ee82ee"],
21362
+ ["wheat", "#f5deb3"],
21363
+ ["white", "#ffffff"],
21364
+ ["whitesmoke", "#f5f5f5"],
21365
+ ["yellow", "#ffff00"],
21366
+ ["yellowgreen", "#9acd32"],
21367
+ ]);
21368
+
21369
+ // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
21370
+ //
21371
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
21372
+ // of this software and associated documentation files (the "Software"), to
21373
+ // deal in the Software without restriction, including without limitation the
21374
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
21375
+ // sell copies of the Software, and to permit persons to whom the Software is
21376
+ // furnished to do so, subject to the following conditions:
21377
+ //
21378
+ // The above copyright notice and this permission notice shall be included in
21379
+ // all copies or substantial portions of the Software.
21380
+ //
21381
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21382
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21383
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21384
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21385
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21386
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21387
+ // THE SOFTWARE.
21388
+ class ColorService {
21389
+ RGBToHexRGBToHex(rgbColor) {
21390
+ // Choose correct separator
21391
+ const sep = rgbColor.indexOf(",") > -1 ? "," : " ";
21392
+ // Turn "rgb(r,g,b)" into [r,g,b]
21393
+ const rgbParts = rgbColor.substr(4).split(")")[0].split(sep);
21394
+ let r = (+rgbParts[0]).toString(16), g = (+rgbParts[1]).toString(16), b = (+rgbParts[2]).toString(16);
21395
+ if (r.length === 1) {
21396
+ r = "0" + r;
21397
+ }
21398
+ if (g.length === 1) {
21399
+ g = "0" + g;
21400
+ }
21401
+ if (b.length === 1) {
21402
+ b = "0" + b;
21403
+ }
21404
+ return "#" + r + g + b;
21405
+ }
21406
+ isHEX(hexColor) {
21407
+ return (/^#[0-9A-F]{6}$/i.test(hexColor) ||
21408
+ /^#([0-9A-F]{3}){1,2}$/i.test(hexColor));
21409
+ }
21410
+ colorKeywordsToHex(color) {
21411
+ const hexOfColor = HTML_COLORS.get(color);
21412
+ return !_isNil(hexOfColor) ? hexOfColor : "";
21413
+ }
21414
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21415
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ColorService }); }
21416
+ }
21417
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ColorService, decorators: [{
21418
+ type: Injectable
21419
+ }] });
21420
+
21421
+ // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
21422
+ //
21423
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
21424
+ // of this software and associated documentation files (the "Software"), to
21425
+ // deal in the Software without restriction, including without limitation the
21426
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
21427
+ // sell copies of the Software, and to permit persons to whom the Software is
21428
+ // furnished to do so, subject to the following conditions:
21429
+ //
21430
+ // The above copyright notice and this permission notice shall be included in
21431
+ // all copies or substantial portions of the Software.
21432
+ //
21433
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21434
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21435
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21436
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21437
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21438
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21439
+ // THE SOFTWARE.
21440
+ function getColorValueByName(colorVariable) {
21441
+ if (!colorVariable.startsWith("var(")) {
21442
+ return colorVariable;
21443
+ }
21444
+ const colorName = colorVariable
21445
+ .replace(/^var\(/, "")
21446
+ .replace(/\)$/, "")
21447
+ .trim();
21448
+ return getComputedStyle(document.body).getPropertyValue(colorName);
21449
+ }
21450
+
21451
+ // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
21452
+ //
21453
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
21454
+ // of this software and associated documentation files (the "Software"), to
21455
+ // deal in the Software without restriction, including without limitation the
21456
+ // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
21457
+ // sell copies of the Software, and to permit persons to whom the Software is
21458
+ // furnished to do so, subject to the following conditions:
21459
+ //
21460
+ // The above copyright notice and this permission notice shall be included in
21461
+ // all copies or substantial portions of the Software.
21462
+ //
21463
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21464
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21465
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21466
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21467
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21468
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21469
+ // THE SOFTWARE.
21470
+ // Left and right paddings of .color-picker-container element
21471
+ const CONTAINER_SIDE_PADDINGS_PX = 20;
21472
+ // Width of the .box element
21473
+ const BOX_WIDTH_PX = 30;
21474
+ // <example-url>./../examples/index.html#/color-picker</example-url><br />
21475
+ class ColorPickerComponent {
21476
+ constructor(changeDetection, colorService, cdkOverlay) {
21477
+ this.changeDetection = changeDetection;
21478
+ this.colorService = colorService;
21479
+ this.cdkOverlay = cdkOverlay;
21480
+ this.defaultColor = "var(--nui-color-bg-secondary)";
21481
+ this.overlayUtilities = new OverlayUtilitiesService();
21482
+ this.destroy$ = new Subject();
21483
+ this.setStyles = (color) => ({
21484
+ "background-color": color || this.defaultColor,
21485
+ });
21486
+ }
21487
+ ngOnChanges(changes) {
21488
+ if (changes.colors) {
21489
+ this.colors = changes.colors.currentValue;
21490
+ }
21491
+ if (changes.colorPalette) {
21492
+ this.colorPalette = changes.colorPalette.currentValue;
21493
+ }
21494
+ }
21495
+ ngAfterViewInit() {
21496
+ if (!this.select) {
21497
+ return;
21498
+ }
21499
+ if (this.value) {
21500
+ this.select?.writeValue(this.value);
21501
+ this.isBlackTick = this.determineBlackTick(this.value.toString());
21502
+ }
21503
+ this.palette =
21504
+ this.colorPalette || this.colors.map((color) => ({ color }));
21505
+ this.initOverlayUtilities();
21506
+ this.select.valueSelected
21507
+ .pipe(tap((value) => this.writeValue(value)), tap((value) => this.onChange(value)), takeUntil(this.destroy$))
21508
+ .subscribe((value) => {
21509
+ if (value) {
21510
+ this.isBlackTick = this.determineBlackTick(value.toString());
21511
+ }
21512
+ });
21513
+ const positions = getOverlayPositions();
21514
+ const positionStrategy = this.cdkOverlay
21515
+ .position()
21516
+ .flexibleConnectedTo(this.select.elRef.nativeElement)
21517
+ .withPush(false)
21518
+ .withViewportMargin(0)
21519
+ .withPositions([
21520
+ positions["bottom-right"],
21521
+ positions["bottom-left"],
21522
+ positions["top-right"],
21523
+ positions["top-left"],
21524
+ ]);
21525
+ this.overlayConfig = {
21526
+ maxWidth: this.cols
21527
+ ? this.cols * BOX_WIDTH_PX + CONTAINER_SIDE_PADDINGS_PX + "px"
21528
+ : "260px",
21529
+ positionStrategy,
21530
+ };
21531
+ }
21532
+ ngOnDestroy() {
21533
+ this.destroy$.next();
21534
+ this.destroy$.complete();
21535
+ }
21536
+ onChange(value) { }
21537
+ _onTouched() { }
21538
+ writeValue(value) {
21539
+ this.value = value;
21540
+ this.select?.writeValue(value);
21541
+ }
21542
+ registerOnChange(fn) {
21543
+ this.onChange = fn;
21544
+ }
21545
+ registerOnTouched(fn) {
21546
+ this._onTouched = fn;
21547
+ }
21548
+ determineBlackTick(color) {
21549
+ let hexColorValue = "#fff";
21550
+ if (this.colorService.isHEX(color)) {
21551
+ hexColorValue = color;
21552
+ }
21553
+ else {
21554
+ hexColorValue =
21555
+ getColorValueByName(color) ||
21556
+ this.colorService.RGBToHexRGBToHex(color) ||
21557
+ this.colorService.colorKeywordsToHex(color);
21558
+ }
21559
+ return this.getContrastOnBgColor(hexColorValue) === "#fff";
21560
+ }
21561
+ initOverlayUtilities() {
21562
+ const dropdown = this.select.dropdown;
21563
+ const config = { updateSize: false };
21564
+ this.selectResizeObserver = this.overlayUtilities
21565
+ .setPopupComponent(this.select.dropdown)
21566
+ .getResizeObserver(config);
21567
+ dropdown.show$.pipe(takeUntil(this.destroy$)).subscribe(() => {
21568
+ this.overlayUtilities.syncWidth();
21569
+ this.selectResizeObserver.observe(this.select.elRef.nativeElement);
21570
+ });
21571
+ dropdown.hide$.pipe(takeUntil(this.destroy$)).subscribe(() => {
21572
+ this.selectResizeObserver.unobserve(this.select.elRef.nativeElement);
21573
+ });
21574
+ }
21575
+ // convert hex code to rgb and compare the contrast of pure black and pure white on bgColor
21576
+ getContrastOnBgColor(bgColor) {
21577
+ if (!bgColor) {
21578
+ return "";
21579
+ }
21580
+ return parseInt(bgColor.replace("#", ""), 16) > 0xffffff / 2
21581
+ ? "#fff"
21582
+ : "#000";
21583
+ }
21584
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ColorService }, { token: i1$1.Overlay }], target: i0.ɵɵFactoryTarget.Component }); }
21585
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: ColorPickerComponent, isStandalone: false, selector: "nui-color-picker", inputs: { colors: "colors", colorPalette: "colorPalette", cols: "cols", isSelect: "isSelect" }, providers: [
21586
+ {
21587
+ provide: NuiFormFieldControl,
21588
+ useExisting: forwardRef(() => ColorPickerComponent),
21589
+ multi: true,
21590
+ },
21591
+ {
21592
+ provide: NG_VALUE_ACCESSOR,
21593
+ useExisting: forwardRef(() => ColorPickerComponent),
21594
+ multi: true,
21595
+ },
21596
+ ColorService,
21597
+ ], viewQueries: [{ propertyName: "select", first: true, predicate: i0.forwardRef(() => SelectV2Component), descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (isSelect) {\n<nui-select-v2\n class=\"color-picker-select-label\"\n [displayValueTemplate]=\"colorPickerTemplate\"\n>\n @for (item of palette; track item) {\n <nui-select-v2-option\n class=\"color-picker-select-label__option nui-text-default\"\n [value]=\"item\"\n >\n <div class=\"color-picker-input__box\" [attr.title]=\"item?.label\">\n <div\n class=\"color-picker-select-label__color-box\"\n [ngStyle]=\"setStyles(item?.color)\"\n ></div>\n </div>\n <div>{{ item?.label }}</div>\n </nui-select-v2-option>\n }\n</nui-select-v2>\n} @else {\n<nui-select-v2\n class=\"color-picker-select\"\n [overlayConfig]=\"overlayConfig\"\n [syncWidth]=\"false\"\n [displayValueTemplate]=\"colorPickerTemplate\"\n>\n <div class=\"color-picker-container\">\n @for (item of palette; track item) {\n <div class=\"d-inline-flex flex-wrap box\">\n <nui-select-v2-option\n [value]=\"item?.color\"\n [displayValueContext]=\"item\"\n class=\"w-100 h-100 reset-box-sizes\"\n #option\n >\n <div\n class=\"color-picker-option\"\n [attr.title]=\"item?.label\"\n [class.color-picker-option--selected]=\"option?.selected\"\n >\n <div\n class=\"color-picker-option__color-box\"\n [ngStyle]=\"setStyles(item?.color)\"\n >\n <div\n class=\"color-picker-option__glyph\"\n [class.black-tick]=\"\n isBlackTick || item?.color === defaultColor\n \"\n *ngIf=\"option?.selected\"\n ></div>\n </div>\n </div>\n </nui-select-v2-option>\n </div>\n }\n </div>\n</nui-select-v2>\n}\n\n<ng-template #colorPickerTemplate let-item let-open=\"open\">\n <div class=\"color-picker-input\">\n <div class=\"color-picker-input__box\" [attr.title]=\"item?.label\">\n <div\n class=\"color-picker-input__color-box\"\n [ngStyle]=\"setStyles(item?.color)\"\n ></div>\n @if (isSelect){\n <div class=\"color-picker-input__label nui-text-default\">\n {{ item?.label }}\n </div>\n }\n </div>\n\n <div class=\"color-picker-input__toggle\">\n <nui-icon\n [style.transform]=\"open ? 'rotate(180deg)' : ''\"\n icon=\"caret-down\"\n ></nui-icon>\n </div>\n </div>\n</ng-template>\n", styles: [".box{width:30px;height:30px}.color-picker-container{padding:5px 10px}.color-picker-select{width:fit-content;min-width:unset;cursor:pointer}.color-picker-input{display:flex;justify-content:space-between}.color-picker-input__label{margin:5px 0}.color-picker-input__box{display:flex;align-items:center}.color-picker-input__color-box{width:16px;height:16px;border-radius:3px;border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);width:17px;height:17px;flex-grow:1;margin:0 10px}.color-picker-input__toggle{display:flex;justify-content:center;align-items:center;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);width:30px;height:30px}.color-picker-option{display:flex;justify-content:center;align-items:center;height:100%}.color-picker-option__color-box{width:16px;height:16px;border-radius:3px;border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);padding:1px 0 0 1px}.color-picker-option--selected{background-color:var(--nui-color-selected,rgba(0, 196, 210, .1))}.color-picker-option--selected:focus{outline:none}.color-picker-option__glyph{width:100%;height:100%;background-size:12px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS54dWktY2hlY2tib3gtZ2x5cGh7ZmlsbDpub25lO3N0cm9rZTojRkZGRkZGO3N0cm9rZS13aWR0aDozO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1saW5lY2FwOnJvdW5kO30KPC9zdHlsZT4KPHBvbHlsaW5lIGNsYXNzPSJ4dWktY2hlY2tib3gtZ2x5cGgiIHBvaW50cz0iMTcsNCA4LDE1IDMsOSAiLz4KPC9zdmc+);background-repeat:no-repeat}.color-picker-option__glyph.black-tick{filter:invert(1) grayscale(1) contrast(100)}.color-picker-select-label{width:fit-content;min-width:min(200px,100%);cursor:pointer}.color-picker-select-label__option{display:flex}.color-picker-select-label__color-box{width:16px;height:16px;border-radius:3px;border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);margin:0 10px 0 0}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21598
+ }
21599
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ColorPickerComponent, decorators: [{
21600
+ type: Component,
21601
+ args: [{ selector: "nui-color-picker", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, providers: [
21602
+ {
21603
+ provide: NuiFormFieldControl,
21604
+ useExisting: forwardRef(() => ColorPickerComponent),
21605
+ multi: true,
21606
+ },
21607
+ {
21608
+ provide: NG_VALUE_ACCESSOR,
21609
+ useExisting: forwardRef(() => ColorPickerComponent),
21610
+ multi: true,
21611
+ },
21612
+ ColorService,
21613
+ ], template: "@if (isSelect) {\n<nui-select-v2\n class=\"color-picker-select-label\"\n [displayValueTemplate]=\"colorPickerTemplate\"\n>\n @for (item of palette; track item) {\n <nui-select-v2-option\n class=\"color-picker-select-label__option nui-text-default\"\n [value]=\"item\"\n >\n <div class=\"color-picker-input__box\" [attr.title]=\"item?.label\">\n <div\n class=\"color-picker-select-label__color-box\"\n [ngStyle]=\"setStyles(item?.color)\"\n ></div>\n </div>\n <div>{{ item?.label }}</div>\n </nui-select-v2-option>\n }\n</nui-select-v2>\n} @else {\n<nui-select-v2\n class=\"color-picker-select\"\n [overlayConfig]=\"overlayConfig\"\n [syncWidth]=\"false\"\n [displayValueTemplate]=\"colorPickerTemplate\"\n>\n <div class=\"color-picker-container\">\n @for (item of palette; track item) {\n <div class=\"d-inline-flex flex-wrap box\">\n <nui-select-v2-option\n [value]=\"item?.color\"\n [displayValueContext]=\"item\"\n class=\"w-100 h-100 reset-box-sizes\"\n #option\n >\n <div\n class=\"color-picker-option\"\n [attr.title]=\"item?.label\"\n [class.color-picker-option--selected]=\"option?.selected\"\n >\n <div\n class=\"color-picker-option__color-box\"\n [ngStyle]=\"setStyles(item?.color)\"\n >\n <div\n class=\"color-picker-option__glyph\"\n [class.black-tick]=\"\n isBlackTick || item?.color === defaultColor\n \"\n *ngIf=\"option?.selected\"\n ></div>\n </div>\n </div>\n </nui-select-v2-option>\n </div>\n }\n </div>\n</nui-select-v2>\n}\n\n<ng-template #colorPickerTemplate let-item let-open=\"open\">\n <div class=\"color-picker-input\">\n <div class=\"color-picker-input__box\" [attr.title]=\"item?.label\">\n <div\n class=\"color-picker-input__color-box\"\n [ngStyle]=\"setStyles(item?.color)\"\n ></div>\n @if (isSelect){\n <div class=\"color-picker-input__label nui-text-default\">\n {{ item?.label }}\n </div>\n }\n </div>\n\n <div class=\"color-picker-input__toggle\">\n <nui-icon\n [style.transform]=\"open ? 'rotate(180deg)' : ''\"\n icon=\"caret-down\"\n ></nui-icon>\n </div>\n </div>\n</ng-template>\n", styles: [".box{width:30px;height:30px}.color-picker-container{padding:5px 10px}.color-picker-select{width:fit-content;min-width:unset;cursor:pointer}.color-picker-input{display:flex;justify-content:space-between}.color-picker-input__label{margin:5px 0}.color-picker-input__box{display:flex;align-items:center}.color-picker-input__color-box{width:16px;height:16px;border-radius:3px;border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);width:17px;height:17px;flex-grow:1;margin:0 10px}.color-picker-input__toggle{display:flex;justify-content:center;align-items:center;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);width:30px;height:30px}.color-picker-option{display:flex;justify-content:center;align-items:center;height:100%}.color-picker-option__color-box{width:16px;height:16px;border-radius:3px;border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);padding:1px 0 0 1px}.color-picker-option--selected{background-color:var(--nui-color-selected,rgba(0, 196, 210, .1))}.color-picker-option--selected:focus{outline:none}.color-picker-option__glyph{width:100%;height:100%;background-size:12px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAgMjA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS54dWktY2hlY2tib3gtZ2x5cGh7ZmlsbDpub25lO3N0cm9rZTojRkZGRkZGO3N0cm9rZS13aWR0aDozO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS1saW5lY2FwOnJvdW5kO30KPC9zdHlsZT4KPHBvbHlsaW5lIGNsYXNzPSJ4dWktY2hlY2tib3gtZ2x5cGgiIHBvaW50cz0iMTcsNCA4LDE1IDMsOSAiLz4KPC9zdmc+);background-repeat:no-repeat}.color-picker-option__glyph.black-tick{filter:invert(1) grayscale(1) contrast(100)}.color-picker-select-label{width:fit-content;min-width:min(200px,100%);cursor:pointer}.color-picker-select-label__option{display:flex}.color-picker-select-label__color-box{width:16px;height:16px;border-radius:3px;border:1px solid;border-color:var(--nui-color-line-default,#d9d9d9);margin:0 10px 0 0}\n"] }]
21614
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: ColorService }, { type: i1$1.Overlay }], propDecorators: { colors: [{
21615
+ type: Input
21616
+ }], colorPalette: [{
21617
+ type: Input
21618
+ }], cols: [{
21619
+ type: Input
21620
+ }], isSelect: [{
21621
+ type: Input
21622
+ }], select: [{
21623
+ type: ViewChild,
21624
+ args: [forwardRef(() => SelectV2Component)]
21625
+ }] } });
21626
+
21627
+ /**
21628
+ * @ignore
21629
+ */
21630
+ class NuiColorPickerModule {
21631
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: NuiColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
21632
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: NuiColorPickerModule, declarations: [ColorPickerComponent], imports: [NuiCommonModule, NuiSelectV2Module, NuiIconModule], exports: [ColorPickerComponent] }); }
21633
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: NuiColorPickerModule, imports: [NuiCommonModule, NuiSelectV2Module, NuiIconModule] }); }
21634
+ }
21635
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: NuiColorPickerModule, decorators: [{
21636
+ type: NgModule,
21637
+ args: [{
21638
+ imports: [NuiCommonModule, NuiSelectV2Module, NuiIconModule],
21639
+ declarations: [ColorPickerComponent],
21640
+ exports: [ColorPickerComponent],
21641
+ providers: [],
21642
+ }]
21643
+ }] });
21644
+
21185
21645
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
21186
21646
  //
21187
21647
  // Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -30973,6 +31433,7 @@ const APP_MODULE = (filenamePrefix, context, imports, mainComponentName, compone
30973
31433
  " NuiBreadcrumbModule,\n" +
30974
31434
  " NuiBusyModule,\n" +
30975
31435
  " NuiChipsModule,\n" +
31436
+ " NuiColorPickerModule,\n" +
30976
31437
  " NuiContentModule,\n" +
30977
31438
  " NuiDatePickerModule,\n" +
30978
31439
  " NuiDateTimePickerModule,\n" +
@@ -31039,6 +31500,7 @@ const APP_MODULE = (filenamePrefix, context, imports, mainComponentName, compone
31039
31500
  " NuiBreadcrumbModule,\n" +
31040
31501
  " NuiBusyModule,\n" +
31041
31502
  " NuiChipsModule,\n" +
31503
+ " NuiColorPickerModule,\n" +
31042
31504
  " NuiContentModule,\n" +
31043
31505
  " NuiDatePickerModule,\n" +
31044
31506
  " NuiDateTimePickerModule,\n" +
@@ -33166,5 +33628,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
33166
33628
  * Generated bundle index. Do not edit.
33167
33629
  */
33168
33630
 
33169
- export { ANNOUNCER_CLOSE_MESSAGE, ANNOUNCER_OPEN_MESSAGE_SUFFIX, OverlayArrowComponent as ArrowComponent, BaseSelect, BreadcrumbComponent, BreadcrumbStateService, BusyComponent, ButtonComponent, ButtonIcon, ButtonSizeType, CHECKBOX_KEYDOWN_EVENT, CLOSE_POPOVER_EVENT, COMPLETE_RESIZE_EVENT, 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, DOCUMENT_CLICK_EVENT, DataFilterService, DataSourceFeatures, DataSourceService, DatePickerComponent, DateTimePickerComponent, DialogBackdropComponent, DialogComponent, DialogFooterComponent, DialogHeaderComponent, DialogService, DialogStackService, DividerComponent, DndDropTargetDirective, DomUtilService, DragAndDropService, DraggableComponent, DraggableDirective, DroppableComponent, DroppableDirective, EdgeDetectionService, ErrorStateMatcher, EventBus, EventBusService, EventDefinition, EventPropagationService, ExampleCodeComponent, ExampleWrapperComponent, ExpanderComponent, FIXED_WIDTH_CLASS, FormFieldComponent, FreetypeQueryBuilderComponent, 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, NuiDragDropModule, NuiEnvironment, NuiExpanderModule, NuiFormFieldControl, NuiFormFieldModule, NuiFreetypeQueryModule, 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, POPOVER_CLOSED_EVENT, 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, TableSelectionMode, TableStateHandlerService, TableStickyHeaderDirective, TableVirtualScrollDirective, TableVirtualScrollHeaderPosition, TableVirtualScrollLinearDirective, TextHighlightOverlayComponent, 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, buttonConstants, complexScrollStrategyFactory, datePickerDateFormats, datePickerDefaults, defaultFilters, expand, getOverlayPositions, imagesPresetToken, immutableSet, isTargetAnAnchor, isTargetNotAnAnchor, makePredicate, nameof, popoverConstants, regexpValidation, removeErrors, resizeDirectionHelpers, scrollConstants, traverse, unitConversionBases, unitConversionConstants, unitConversionToken, uuid };
33631
+ export { ANNOUNCER_CLOSE_MESSAGE, ANNOUNCER_OPEN_MESSAGE_SUFFIX, OverlayArrowComponent as ArrowComponent, BaseSelect, BreadcrumbComponent, BreadcrumbStateService, BusyComponent, ButtonComponent, ButtonIcon, ButtonSizeType, CHECKBOX_KEYDOWN_EVENT, CLOSE_POPOVER_EVENT, COMPLETE_RESIZE_EVENT, CardComponent, CardGroupComponent, CheckboxChangeEvent, CheckboxComponent, CheckboxGroupComponent, CheckboxStatus, ChipComponent, ChipsComponent, ChipsOverflowComponent, ClickFilterDirective, ClickInterceptorDirective, ClientSideDataSource, ClipboardDirective, ColorPickerComponent, ColorService, ComboboxComponent, ComboboxV2Component, ComboboxV2OptionHighlightDirective, ConfirmationDialogComponent, ContentComponent, CopyTextComponent, CustomValidationMessageComponent, DEFAULT_INTERACTIVE_ELEMENTS, DEFAULT_TABLE_HEADER_OFFSET, DEMO_PATH_TOKEN, DOCUMENT_CLICK_EVENT, DataFilterService, DataSourceFeatures, DataSourceService, DatePickerComponent, DateTimePickerComponent, DialogBackdropComponent, DialogComponent, DialogFooterComponent, DialogHeaderComponent, DialogService, DialogStackService, DividerComponent, DndDropTargetDirective, DomUtilService, DragAndDropService, DraggableComponent, DraggableDirective, DroppableComponent, DroppableDirective, EdgeDetectionService, ErrorStateMatcher, EventBus, EventBusService, EventDefinition, EventPropagationService, ExampleCodeComponent, ExampleWrapperComponent, ExpanderComponent, FIXED_WIDTH_CLASS, FormFieldComponent, FreetypeQueryBuilderComponent, 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, NuiColorPickerModule, NuiCommonModule, NuiContentModule, NuiDatePickerModule, NuiDateTimePickerModule, NuiDialogEvent, NuiDialogModule, NuiDialogRef, NuiDividerModule, NuiDndModule, NuiDocsModule, NuiDragDropModule, NuiEnvironment, NuiExpanderModule, NuiFormFieldControl, NuiFormFieldModule, NuiFreetypeQueryModule, 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, POPOVER_CLOSED_EVENT, 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, TableSelectionMode, TableStateHandlerService, TableStickyHeaderDirective, TableVirtualScrollDirective, TableVirtualScrollHeaderPosition, TableVirtualScrollLinearDirective, TextHighlightOverlayComponent, 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, buttonConstants, complexScrollStrategyFactory, datePickerDateFormats, datePickerDefaults, defaultFilters, expand, getColorValueByName, getOverlayPositions, imagesPresetToken, immutableSet, isTargetAnAnchor, isTargetNotAnAnchor, makePredicate, nameof, popoverConstants, regexpValidation, removeErrors, resizeDirectionHelpers, scrollConstants, traverse, unitConversionBases, unitConversionConstants, unitConversionToken, uuid };
33170
33632
  //# sourceMappingURL=nova-ui-bits.mjs.map