@nova-ui/bits 17.0.4 → 17.0.5
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.
- package/constants/color-picker.constants.d.ts +5 -0
- package/esm2022/constants/color-picker.constants.mjs +163 -0
- package/esm2022/functions/color.helper.mjs +30 -0
- package/esm2022/functions/public-api.mjs +2 -1
- package/esm2022/lib/color-picker/color-picker.component.mjs +192 -0
- package/esm2022/lib/color-picker/color-picker.module.mjs +24 -0
- package/esm2022/lib/color-picker/color.service.mjs +56 -0
- package/esm2022/lib/docs/live-example-files/app.module.mjs +3 -1
- package/esm2022/lib/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/tabgroup/tab-heading/tab-heading.component.mjs +24 -8
- package/esm2022/nui-api.mjs +2 -1
- package/esm2022/public_api.mjs +3 -1
- package/fesm2022/nova-ui-bits.mjs +465 -9
- package/fesm2022/nova-ui-bits.mjs.map +1 -1
- package/functions/color.helper.d.ts +1 -0
- package/functions/public-api.d.ts +1 -0
- package/lib/color-picker/color-picker.component.d.ts +56 -0
- package/lib/color-picker/color-picker.module.d.ts +13 -0
- package/lib/color-picker/color.service.d.ts +8 -0
- package/lib/tabgroup/tab-heading/tab-heading.component.d.ts +5 -2
- package/nui-api.d.ts +1 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
|
@@ -18492,7 +18492,7 @@ class RadioComponent {
|
|
|
18492
18492
|
this.eventBusService.getStream(DOCUMENT_CLICK_EVENT).next(event);
|
|
18493
18493
|
}
|
|
18494
18494
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioComponent, deps: [{ token: RadioGroupComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: EventBusService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18495
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: RadioComponent, 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 }); }
|
|
18495
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: RadioComponent, 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 }); }
|
|
18496
18496
|
}
|
|
18497
18497
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RadioComponent, decorators: [{
|
|
18498
18498
|
type: Component,
|
|
@@ -18500,7 +18500,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
18500
18500
|
"[class.nui-radio--hovered]": "hovered",
|
|
18501
18501
|
"[class.nui-radio--checked]": "checked",
|
|
18502
18502
|
role: "radio",
|
|
18503
|
-
}, 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"] }]
|
|
18503
|
+
}, 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"] }]
|
|
18504
18504
|
}], ctorParameters: () => [{ type: RadioGroupComponent, decorators: [{
|
|
18505
18505
|
type: Optional
|
|
18506
18506
|
}] }, { type: i0.ChangeDetectorRef }, { type: EventBusService }], propDecorators: { value: [{
|
|
@@ -19506,6 +19506,9 @@ class TabHeadingComponent {
|
|
|
19506
19506
|
get isDisabled() {
|
|
19507
19507
|
return this.disabled;
|
|
19508
19508
|
}
|
|
19509
|
+
get ariaSelected() {
|
|
19510
|
+
return this.active ? "true" : null;
|
|
19511
|
+
}
|
|
19509
19512
|
/** Tab active state toggle */
|
|
19510
19513
|
set active(isActive) {
|
|
19511
19514
|
this._active = isActive;
|
|
@@ -19514,23 +19517,35 @@ class TabHeadingComponent {
|
|
|
19514
19517
|
get active() {
|
|
19515
19518
|
return this._active;
|
|
19516
19519
|
}
|
|
19517
|
-
constructor(changeDetector) {
|
|
19520
|
+
constructor(changeDetector, elementRef) {
|
|
19518
19521
|
this.changeDetector = changeDetector;
|
|
19522
|
+
this.elementRef = elementRef;
|
|
19519
19523
|
/** Event is fired when tab became active, $event:Tab equals to selected instance of Tab component */
|
|
19520
19524
|
this.selected = new EventEmitter();
|
|
19521
19525
|
}
|
|
19522
19526
|
selectTab() {
|
|
19523
|
-
this.
|
|
19527
|
+
if (!this.disabled) {
|
|
19528
|
+
this.selected.emit(this);
|
|
19529
|
+
}
|
|
19524
19530
|
}
|
|
19525
|
-
|
|
19526
|
-
|
|
19531
|
+
onKeyDown(event) {
|
|
19532
|
+
if (event.code === KEYBOARD_CODE.ENTER || event.code === KEYBOARD_CODE.SPACE) {
|
|
19533
|
+
event.preventDefault();
|
|
19534
|
+
this.elementRef.nativeElement.click();
|
|
19535
|
+
}
|
|
19536
|
+
}
|
|
19537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TabHeadingComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19538
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: TabHeadingComponent, selector: "nui-tab-heading", inputs: { disabled: "disabled", active: "active", tabId: "tabId" }, outputs: { selected: "selected" }, host: { attributes: { "role": "tab" }, properties: { "class.disabled": "this.isDisabled", "attr.aria-selected": "this.ariaSelected" } }, ngImport: i0, template: "<div class=\"nui-tab-heading\" \n [class.active]=\"active\"\n [tabindex]=\"disabled ? -1 : 0\"\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"] }); }
|
|
19527
19539
|
}
|
|
19528
19540
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TabHeadingComponent, decorators: [{
|
|
19529
19541
|
type: Component,
|
|
19530
|
-
args: [{ selector: "nui-tab-heading", host: { role: "tab" }, template: "<div class=\"nui-tab-heading\" [class.active]=\"active\"
|
|
19531
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { isDisabled: [{
|
|
19542
|
+
args: [{ selector: "nui-tab-heading", host: { role: "tab" }, template: "<div class=\"nui-tab-heading\" \n [class.active]=\"active\"\n [tabindex]=\"disabled ? -1 : 0\"\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"] }]
|
|
19543
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { isDisabled: [{
|
|
19532
19544
|
type: HostBinding,
|
|
19533
19545
|
args: ["class.disabled"]
|
|
19546
|
+
}], ariaSelected: [{
|
|
19547
|
+
type: HostBinding,
|
|
19548
|
+
args: ["attr.aria-selected"]
|
|
19534
19549
|
}], disabled: [{
|
|
19535
19550
|
type: Input
|
|
19536
19551
|
}], active: [{
|
|
@@ -21145,6 +21160,445 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
21145
21160
|
}]
|
|
21146
21161
|
}] });
|
|
21147
21162
|
|
|
21163
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
21164
|
+
//
|
|
21165
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
21166
|
+
// of this software and associated documentation files (the "Software"), to
|
|
21167
|
+
// deal in the Software without restriction, including without limitation the
|
|
21168
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
21169
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
21170
|
+
// furnished to do so, subject to the following conditions:
|
|
21171
|
+
//
|
|
21172
|
+
// The above copyright notice and this permission notice shall be included in
|
|
21173
|
+
// all copies or substantial portions of the Software.
|
|
21174
|
+
//
|
|
21175
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21176
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21177
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21178
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21179
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21180
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21181
|
+
// THE SOFTWARE.
|
|
21182
|
+
const HTML_COLORS = new Map([
|
|
21183
|
+
["aliceblue", "#f0f8ff"],
|
|
21184
|
+
["antiquewhite", "#faebd7"],
|
|
21185
|
+
["aqua", "#00ffff"],
|
|
21186
|
+
["aquamarine", "#7fffd4"],
|
|
21187
|
+
["azure", "#f0ffff"],
|
|
21188
|
+
["beige", "#f5f5dc"],
|
|
21189
|
+
["bisque", "#ffe4c4"],
|
|
21190
|
+
["black", "#000000"],
|
|
21191
|
+
["blanchedalmond", "#ffebcd"],
|
|
21192
|
+
["blue", "#0000ff"],
|
|
21193
|
+
["blueviolet", "#8a2be2"],
|
|
21194
|
+
["brown", "#a52a2a"],
|
|
21195
|
+
["burlywood", "#deb887"],
|
|
21196
|
+
["cadetblue", "#5f9ea0"],
|
|
21197
|
+
["chartreuse", "#7fff00"],
|
|
21198
|
+
["chocolate", "#d2691e"],
|
|
21199
|
+
["coral", "#ff7f50"],
|
|
21200
|
+
["cornflowerblue", "#6495ed"],
|
|
21201
|
+
["cornsilk", "#fff8dc"],
|
|
21202
|
+
["crimson", "#dc143c"],
|
|
21203
|
+
["cyan", "#00ffff"],
|
|
21204
|
+
["darkblue", "#00008b"],
|
|
21205
|
+
["darkcyan", "#008b8b"],
|
|
21206
|
+
["darkgoldenrod", "#b8860b"],
|
|
21207
|
+
["darkgray", "#a9a9a9"],
|
|
21208
|
+
["darkgreen", "#006400"],
|
|
21209
|
+
["darkkhaki", "#bdb76b"],
|
|
21210
|
+
["darkmagenta", "#8b008b"],
|
|
21211
|
+
["darkolivegreen", "#556b2f"],
|
|
21212
|
+
["darkorange", "#ff8c00"],
|
|
21213
|
+
["darkorchid", "#9932cc"],
|
|
21214
|
+
["darkred", "#8b0000"],
|
|
21215
|
+
["darksalmon", "#e9967a"],
|
|
21216
|
+
["darkseagreen", "#8fbc8f"],
|
|
21217
|
+
["darkslateblue", "#483d8b"],
|
|
21218
|
+
["darkslategray", "#2f4f4f"],
|
|
21219
|
+
["darkturquoise", "#00ced1"],
|
|
21220
|
+
["darkviolet", "#9400d3"],
|
|
21221
|
+
["deeppink", "#ff1493"],
|
|
21222
|
+
["deepskyblue", "#00bfff"],
|
|
21223
|
+
["dimgray", "#696969"],
|
|
21224
|
+
["dodgerblue", "#1e90ff"],
|
|
21225
|
+
["firebrick", "#b22222"],
|
|
21226
|
+
["floralwhite", "#fffaf0"],
|
|
21227
|
+
["forestgreen", "#228b22"],
|
|
21228
|
+
["fuchsia", "#ff00ff"],
|
|
21229
|
+
["gainsboro", "#dcdcdc"],
|
|
21230
|
+
["ghostwhite", "#f8f8ff"],
|
|
21231
|
+
["gold", "#ffd700"],
|
|
21232
|
+
["goldenrod", "#daa520"],
|
|
21233
|
+
["gray", "#808080"],
|
|
21234
|
+
["green", "#008000"],
|
|
21235
|
+
["greenyellow", "#adff2f"],
|
|
21236
|
+
["honeydew", "#f0fff0"],
|
|
21237
|
+
["hotpink", "#ff69b4"],
|
|
21238
|
+
["indianred ", "#cd5c5c"],
|
|
21239
|
+
["indigo", "#4b0082"],
|
|
21240
|
+
["ivory", "#fffff0"],
|
|
21241
|
+
["khaki", "#f0e68c"],
|
|
21242
|
+
["lavender", "#e6e6fa"],
|
|
21243
|
+
["lavenderblush", "#fff0f5"],
|
|
21244
|
+
["lawngreen", "#7cfc00"],
|
|
21245
|
+
["lemonchiffon", "#fffacd"],
|
|
21246
|
+
["lightblue", "#add8e6"],
|
|
21247
|
+
["lightcoral", "#f08080"],
|
|
21248
|
+
["lightcyan", "#e0ffff"],
|
|
21249
|
+
["lightgoldenrodyellow", "#fafad2"],
|
|
21250
|
+
["lightgrey", "#d3d3d3"],
|
|
21251
|
+
["lightgreen", "#90ee90"],
|
|
21252
|
+
["lightpink", "#ffb6c1"],
|
|
21253
|
+
["lightsalmon", "#ffa07a"],
|
|
21254
|
+
["lightseagreen", "#20b2aa"],
|
|
21255
|
+
["lightskyblue", "#87cefa"],
|
|
21256
|
+
["lightslategray", "#778899"],
|
|
21257
|
+
["lightsteelblue", "#b0c4de"],
|
|
21258
|
+
["lightyellow", "#ffffe0"],
|
|
21259
|
+
["lime", "#00ff00"],
|
|
21260
|
+
["limegreen", "#32cd32"],
|
|
21261
|
+
["linen", "#faf0e6"],
|
|
21262
|
+
["magenta", "#ff00ff"],
|
|
21263
|
+
["maroon", "#800000"],
|
|
21264
|
+
["mediumaquamarine", "#66cdaa"],
|
|
21265
|
+
["mediumblue", "#0000cd"],
|
|
21266
|
+
["mediumorchid", "#ba55d3"],
|
|
21267
|
+
["mediumpurple", "#9370d8"],
|
|
21268
|
+
["mediumseagreen", "#3cb371"],
|
|
21269
|
+
["mediumslateblue", "#7b68ee"],
|
|
21270
|
+
["mediumspringgreen", "#00fa9a"],
|
|
21271
|
+
["mediumturquoise", "#48d1cc"],
|
|
21272
|
+
["mediumvioletred", "#c71585"],
|
|
21273
|
+
["midnightblue", "#191970"],
|
|
21274
|
+
["mintcream", "#f5fffa"],
|
|
21275
|
+
["mistyrose", "#ffe4e1"],
|
|
21276
|
+
["moccasin", "#ffe4b5"],
|
|
21277
|
+
["navajowhite", "#ffdead"],
|
|
21278
|
+
["navy", "#000080"],
|
|
21279
|
+
["oldlace", "#fdf5e6"],
|
|
21280
|
+
["olive", "#808000"],
|
|
21281
|
+
["olivedrab", "#6b8e23"],
|
|
21282
|
+
["orange", "#ffa500"],
|
|
21283
|
+
["orangered", "#ff4500"],
|
|
21284
|
+
["orchid", "#da70d6"],
|
|
21285
|
+
["palegoldenrod", "#eee8aa"],
|
|
21286
|
+
["palegreen", "#98fb98"],
|
|
21287
|
+
["paleturquoise", "#afeeee"],
|
|
21288
|
+
["palevioletred", "#d87093"],
|
|
21289
|
+
["papayawhip", "#ffefd5"],
|
|
21290
|
+
["peachpuff", "#ffdab9"],
|
|
21291
|
+
["peru", "#cd853f"],
|
|
21292
|
+
["pink", "#ffc0cb"],
|
|
21293
|
+
["plum", "#dda0dd"],
|
|
21294
|
+
["powderblue", "#b0e0e6"],
|
|
21295
|
+
["purple", "#800080"],
|
|
21296
|
+
["rebeccapurple", "#663399"],
|
|
21297
|
+
["red", "#ff0000"],
|
|
21298
|
+
["rosybrown", "#bc8f8f"],
|
|
21299
|
+
["royalblue", "#4169e1"],
|
|
21300
|
+
["saddlebrown", "#8b4513"],
|
|
21301
|
+
["salmon", "#fa8072"],
|
|
21302
|
+
["sandybrown", "#f4a460"],
|
|
21303
|
+
["seagreen", "#2e8b57"],
|
|
21304
|
+
["seashell", "#fff5ee"],
|
|
21305
|
+
["sienna", "#a0522d"],
|
|
21306
|
+
["silver", "#c0c0c0"],
|
|
21307
|
+
["skyblue", "#87ceeb"],
|
|
21308
|
+
["slateblue", "#6a5acd"],
|
|
21309
|
+
["slategray", "#708090"],
|
|
21310
|
+
["snow", "#fffafa"],
|
|
21311
|
+
["springgreen", "#00ff7f"],
|
|
21312
|
+
["steelblue", "#4682b4"],
|
|
21313
|
+
["tan", "#d2b48c"],
|
|
21314
|
+
["teal", "#008080"],
|
|
21315
|
+
["thistle", "#d8bfd8"],
|
|
21316
|
+
["tomato", "#ff6347"],
|
|
21317
|
+
["turquoise", "#40e0d0"],
|
|
21318
|
+
["violet", "#ee82ee"],
|
|
21319
|
+
["wheat", "#f5deb3"],
|
|
21320
|
+
["white", "#ffffff"],
|
|
21321
|
+
["whitesmoke", "#f5f5f5"],
|
|
21322
|
+
["yellow", "#ffff00"],
|
|
21323
|
+
["yellowgreen", "#9acd32"],
|
|
21324
|
+
]);
|
|
21325
|
+
|
|
21326
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
21327
|
+
//
|
|
21328
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
21329
|
+
// of this software and associated documentation files (the "Software"), to
|
|
21330
|
+
// deal in the Software without restriction, including without limitation the
|
|
21331
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
21332
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
21333
|
+
// furnished to do so, subject to the following conditions:
|
|
21334
|
+
//
|
|
21335
|
+
// The above copyright notice and this permission notice shall be included in
|
|
21336
|
+
// all copies or substantial portions of the Software.
|
|
21337
|
+
//
|
|
21338
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21339
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21340
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21341
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21342
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21343
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21344
|
+
// THE SOFTWARE.
|
|
21345
|
+
class ColorService {
|
|
21346
|
+
RGBToHexRGBToHex(rgbColor) {
|
|
21347
|
+
// Choose correct separator
|
|
21348
|
+
const sep = rgbColor.indexOf(",") > -1 ? "," : " ";
|
|
21349
|
+
// Turn "rgb(r,g,b)" into [r,g,b]
|
|
21350
|
+
const rgbParts = rgbColor.substr(4).split(")")[0].split(sep);
|
|
21351
|
+
let r = (+rgbParts[0]).toString(16), g = (+rgbParts[1]).toString(16), b = (+rgbParts[2]).toString(16);
|
|
21352
|
+
if (r.length === 1) {
|
|
21353
|
+
r = "0" + r;
|
|
21354
|
+
}
|
|
21355
|
+
if (g.length === 1) {
|
|
21356
|
+
g = "0" + g;
|
|
21357
|
+
}
|
|
21358
|
+
if (b.length === 1) {
|
|
21359
|
+
b = "0" + b;
|
|
21360
|
+
}
|
|
21361
|
+
return "#" + r + g + b;
|
|
21362
|
+
}
|
|
21363
|
+
isHEX(hexColor) {
|
|
21364
|
+
return (/^#[0-9A-F]{6}$/i.test(hexColor) ||
|
|
21365
|
+
/^#([0-9A-F]{3}){1,2}$/i.test(hexColor));
|
|
21366
|
+
}
|
|
21367
|
+
colorKeywordsToHex(color) {
|
|
21368
|
+
const hexOfColor = HTML_COLORS.get(color);
|
|
21369
|
+
return !_isNil(hexOfColor) ? hexOfColor : "";
|
|
21370
|
+
}
|
|
21371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
21372
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ColorService }); }
|
|
21373
|
+
}
|
|
21374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ColorService, decorators: [{
|
|
21375
|
+
type: Injectable
|
|
21376
|
+
}] });
|
|
21377
|
+
|
|
21378
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
21379
|
+
//
|
|
21380
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
21381
|
+
// of this software and associated documentation files (the "Software"), to
|
|
21382
|
+
// deal in the Software without restriction, including without limitation the
|
|
21383
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
21384
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
21385
|
+
// furnished to do so, subject to the following conditions:
|
|
21386
|
+
//
|
|
21387
|
+
// The above copyright notice and this permission notice shall be included in
|
|
21388
|
+
// all copies or substantial portions of the Software.
|
|
21389
|
+
//
|
|
21390
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21391
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21392
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21393
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21394
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21395
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21396
|
+
// THE SOFTWARE.
|
|
21397
|
+
function getColorValueByName(colorVariable) {
|
|
21398
|
+
if (!colorVariable.startsWith("var(")) {
|
|
21399
|
+
return colorVariable;
|
|
21400
|
+
}
|
|
21401
|
+
const colorName = colorVariable
|
|
21402
|
+
.replace(/^var\(/, "")
|
|
21403
|
+
.replace(/\)$/, "")
|
|
21404
|
+
.trim();
|
|
21405
|
+
return getComputedStyle(document.body).getPropertyValue(colorName);
|
|
21406
|
+
}
|
|
21407
|
+
|
|
21408
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
21409
|
+
//
|
|
21410
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
21411
|
+
// of this software and associated documentation files (the "Software"), to
|
|
21412
|
+
// deal in the Software without restriction, including without limitation the
|
|
21413
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
21414
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
21415
|
+
// furnished to do so, subject to the following conditions:
|
|
21416
|
+
//
|
|
21417
|
+
// The above copyright notice and this permission notice shall be included in
|
|
21418
|
+
// all copies or substantial portions of the Software.
|
|
21419
|
+
//
|
|
21420
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21421
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21422
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21423
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21424
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21425
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21426
|
+
// THE SOFTWARE.
|
|
21427
|
+
// Left and right paddings of .color-picker-container element
|
|
21428
|
+
const CONTAINER_SIDE_PADDINGS_PX = 20;
|
|
21429
|
+
// Width of the .box element
|
|
21430
|
+
const BOX_WIDTH_PX = 30;
|
|
21431
|
+
// <example-url>./../examples/index.html#/color-picker</example-url><br />
|
|
21432
|
+
class ColorPickerComponent {
|
|
21433
|
+
constructor(changeDetection, colorService, cdkOverlay) {
|
|
21434
|
+
this.changeDetection = changeDetection;
|
|
21435
|
+
this.colorService = colorService;
|
|
21436
|
+
this.cdkOverlay = cdkOverlay;
|
|
21437
|
+
this.defaultColor = "var(--nui-color-bg-secondary)";
|
|
21438
|
+
this.overlayUtilities = new OverlayUtilitiesService();
|
|
21439
|
+
this.destroy$ = new Subject();
|
|
21440
|
+
this.setStyles = (color) => ({
|
|
21441
|
+
"background-color": color || this.defaultColor,
|
|
21442
|
+
});
|
|
21443
|
+
}
|
|
21444
|
+
ngOnChanges(changes) {
|
|
21445
|
+
if (changes.colors) {
|
|
21446
|
+
this.colors = changes.colors.currentValue;
|
|
21447
|
+
}
|
|
21448
|
+
if (changes.colorPalette) {
|
|
21449
|
+
this.colorPalette = changes.colorPalette.currentValue;
|
|
21450
|
+
}
|
|
21451
|
+
}
|
|
21452
|
+
ngAfterViewInit() {
|
|
21453
|
+
if (!this.select) {
|
|
21454
|
+
return;
|
|
21455
|
+
}
|
|
21456
|
+
if (this.value) {
|
|
21457
|
+
this.select?.writeValue(this.value);
|
|
21458
|
+
this.isBlackTick = this.determineBlackTick(this.value.toString());
|
|
21459
|
+
}
|
|
21460
|
+
this.palette =
|
|
21461
|
+
this.colorPalette || this.colors.map((color) => ({ color }));
|
|
21462
|
+
this.initOverlayUtilities();
|
|
21463
|
+
this.select.valueSelected
|
|
21464
|
+
.pipe(tap((value) => this.writeValue(value)), tap((value) => this.onChange(value)), takeUntil(this.destroy$))
|
|
21465
|
+
.subscribe((value) => {
|
|
21466
|
+
if (value) {
|
|
21467
|
+
this.isBlackTick = this.determineBlackTick(value.toString());
|
|
21468
|
+
}
|
|
21469
|
+
});
|
|
21470
|
+
const positions = getOverlayPositions();
|
|
21471
|
+
const positionStrategy = this.cdkOverlay
|
|
21472
|
+
.position()
|
|
21473
|
+
.flexibleConnectedTo(this.select.elRef.nativeElement)
|
|
21474
|
+
.withPush(false)
|
|
21475
|
+
.withViewportMargin(0)
|
|
21476
|
+
.withPositions([
|
|
21477
|
+
positions["bottom-right"],
|
|
21478
|
+
positions["bottom-left"],
|
|
21479
|
+
positions["top-right"],
|
|
21480
|
+
positions["top-left"],
|
|
21481
|
+
]);
|
|
21482
|
+
this.overlayConfig = {
|
|
21483
|
+
maxWidth: this.cols
|
|
21484
|
+
? this.cols * BOX_WIDTH_PX + CONTAINER_SIDE_PADDINGS_PX + "px"
|
|
21485
|
+
: "260px",
|
|
21486
|
+
positionStrategy,
|
|
21487
|
+
};
|
|
21488
|
+
}
|
|
21489
|
+
ngOnDestroy() {
|
|
21490
|
+
this.destroy$.next();
|
|
21491
|
+
this.destroy$.complete();
|
|
21492
|
+
}
|
|
21493
|
+
onChange(value) { }
|
|
21494
|
+
_onTouched() { }
|
|
21495
|
+
writeValue(value) {
|
|
21496
|
+
this.value = value;
|
|
21497
|
+
this.select?.writeValue(value);
|
|
21498
|
+
}
|
|
21499
|
+
registerOnChange(fn) {
|
|
21500
|
+
this.onChange = fn;
|
|
21501
|
+
}
|
|
21502
|
+
registerOnTouched(fn) {
|
|
21503
|
+
this._onTouched = fn;
|
|
21504
|
+
}
|
|
21505
|
+
determineBlackTick(color) {
|
|
21506
|
+
let hexColorValue = "#fff";
|
|
21507
|
+
if (this.colorService.isHEX(color)) {
|
|
21508
|
+
hexColorValue = color;
|
|
21509
|
+
}
|
|
21510
|
+
else {
|
|
21511
|
+
hexColorValue =
|
|
21512
|
+
getColorValueByName(color) ||
|
|
21513
|
+
this.colorService.RGBToHexRGBToHex(color) ||
|
|
21514
|
+
this.colorService.colorKeywordsToHex(color);
|
|
21515
|
+
}
|
|
21516
|
+
return this.getContrastOnBgColor(hexColorValue) === "#fff";
|
|
21517
|
+
}
|
|
21518
|
+
initOverlayUtilities() {
|
|
21519
|
+
const dropdown = this.select.dropdown;
|
|
21520
|
+
const config = { updateSize: false };
|
|
21521
|
+
this.selectResizeObserver = this.overlayUtilities
|
|
21522
|
+
.setPopupComponent(this.select.dropdown)
|
|
21523
|
+
.getResizeObserver(config);
|
|
21524
|
+
dropdown.show$.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
21525
|
+
this.overlayUtilities.syncWidth();
|
|
21526
|
+
this.selectResizeObserver.observe(this.select.elRef.nativeElement);
|
|
21527
|
+
});
|
|
21528
|
+
dropdown.hide$.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
21529
|
+
this.selectResizeObserver.unobserve(this.select.elRef.nativeElement);
|
|
21530
|
+
});
|
|
21531
|
+
}
|
|
21532
|
+
// convert hex code to rgb and compare the contrast of pure black and pure white on bgColor
|
|
21533
|
+
getContrastOnBgColor(bgColor) {
|
|
21534
|
+
if (!bgColor) {
|
|
21535
|
+
return "";
|
|
21536
|
+
}
|
|
21537
|
+
return parseInt(bgColor.replace("#", ""), 16) > 0xffffff / 2
|
|
21538
|
+
? "#fff"
|
|
21539
|
+
: "#000";
|
|
21540
|
+
}
|
|
21541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ColorService }, { token: i1$1.Overlay }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21542
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: ColorPickerComponent, selector: "nui-color-picker", inputs: { colors: "colors", colorPalette: "colorPalette", cols: "cols", isSelect: "isSelect" }, providers: [
|
|
21543
|
+
{
|
|
21544
|
+
provide: NuiFormFieldControl,
|
|
21545
|
+
useExisting: forwardRef(() => ColorPickerComponent),
|
|
21546
|
+
multi: true,
|
|
21547
|
+
},
|
|
21548
|
+
{
|
|
21549
|
+
provide: NG_VALUE_ACCESSOR,
|
|
21550
|
+
useExisting: forwardRef(() => ColorPickerComponent),
|
|
21551
|
+
multi: true,
|
|
21552
|
+
},
|
|
21553
|
+
ColorService,
|
|
21554
|
+
], 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 }); }
|
|
21555
|
+
}
|
|
21556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
21557
|
+
type: Component,
|
|
21558
|
+
args: [{ selector: "nui-color-picker", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, providers: [
|
|
21559
|
+
{
|
|
21560
|
+
provide: NuiFormFieldControl,
|
|
21561
|
+
useExisting: forwardRef(() => ColorPickerComponent),
|
|
21562
|
+
multi: true,
|
|
21563
|
+
},
|
|
21564
|
+
{
|
|
21565
|
+
provide: NG_VALUE_ACCESSOR,
|
|
21566
|
+
useExisting: forwardRef(() => ColorPickerComponent),
|
|
21567
|
+
multi: true,
|
|
21568
|
+
},
|
|
21569
|
+
ColorService,
|
|
21570
|
+
], 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"] }]
|
|
21571
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: ColorService }, { type: i1$1.Overlay }], propDecorators: { colors: [{
|
|
21572
|
+
type: Input
|
|
21573
|
+
}], colorPalette: [{
|
|
21574
|
+
type: Input
|
|
21575
|
+
}], cols: [{
|
|
21576
|
+
type: Input
|
|
21577
|
+
}], isSelect: [{
|
|
21578
|
+
type: Input
|
|
21579
|
+
}], select: [{
|
|
21580
|
+
type: ViewChild,
|
|
21581
|
+
args: [forwardRef(() => SelectV2Component)]
|
|
21582
|
+
}] } });
|
|
21583
|
+
|
|
21584
|
+
/**
|
|
21585
|
+
* @ignore
|
|
21586
|
+
*/
|
|
21587
|
+
class NuiColorPickerModule {
|
|
21588
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NuiColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
21589
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: NuiColorPickerModule, declarations: [ColorPickerComponent], imports: [NuiCommonModule, NuiSelectV2Module, NuiIconModule], exports: [ColorPickerComponent] }); }
|
|
21590
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NuiColorPickerModule, imports: [NuiCommonModule, NuiSelectV2Module, NuiIconModule] }); }
|
|
21591
|
+
}
|
|
21592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NuiColorPickerModule, decorators: [{
|
|
21593
|
+
type: NgModule,
|
|
21594
|
+
args: [{
|
|
21595
|
+
imports: [NuiCommonModule, NuiSelectV2Module, NuiIconModule],
|
|
21596
|
+
declarations: [ColorPickerComponent],
|
|
21597
|
+
exports: [ColorPickerComponent],
|
|
21598
|
+
providers: [],
|
|
21599
|
+
}]
|
|
21600
|
+
}] });
|
|
21601
|
+
|
|
21148
21602
|
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
21149
21603
|
//
|
|
21150
21604
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -30939,6 +31393,7 @@ const APP_MODULE = (filenamePrefix, context, imports, mainComponentName, compone
|
|
|
30939
31393
|
" NuiBreadcrumbModule,\n" +
|
|
30940
31394
|
" NuiBusyModule,\n" +
|
|
30941
31395
|
" NuiChipsModule,\n" +
|
|
31396
|
+
" NuiColorPickerModule,\n" +
|
|
30942
31397
|
" NuiContentModule,\n" +
|
|
30943
31398
|
" NuiDatePickerModule,\n" +
|
|
30944
31399
|
" NuiDateTimePickerModule,\n" +
|
|
@@ -31005,6 +31460,7 @@ const APP_MODULE = (filenamePrefix, context, imports, mainComponentName, compone
|
|
|
31005
31460
|
" NuiBreadcrumbModule,\n" +
|
|
31006
31461
|
" NuiBusyModule,\n" +
|
|
31007
31462
|
" NuiChipsModule,\n" +
|
|
31463
|
+
" NuiColorPickerModule,\n" +
|
|
31008
31464
|
" NuiContentModule,\n" +
|
|
31009
31465
|
" NuiDatePickerModule,\n" +
|
|
31010
31466
|
" NuiDateTimePickerModule,\n" +
|
|
@@ -33132,5 +33588,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
33132
33588
|
* Generated bundle index. Do not edit.
|
|
33133
33589
|
*/
|
|
33134
33590
|
|
|
33135
|
-
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 };
|
|
33591
|
+
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 };
|
|
33136
33592
|
//# sourceMappingURL=nova-ui-bits.mjs.map
|