ngx-wapp-components 3.2.32 → 3.2.33-alpha.2
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.
|
@@ -11124,7 +11124,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
11124
11124
|
}] } });
|
|
11125
11125
|
|
|
11126
11126
|
class WEditInputColorpickerComponent {
|
|
11127
|
-
constructor() {
|
|
11127
|
+
constructor(changeDetectorRef) {
|
|
11128
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
11128
11129
|
this.required = false;
|
|
11129
11130
|
this.requiredErrorDescription = 'Data is required';
|
|
11130
11131
|
this.format = "hex";
|
|
@@ -11141,12 +11142,14 @@ class WEditInputColorpickerComponent {
|
|
|
11141
11142
|
writeValue(value) {
|
|
11142
11143
|
if (value == null || value === '') {
|
|
11143
11144
|
this.clearInternal();
|
|
11145
|
+
this.changeDetectorRef.detectChanges();
|
|
11144
11146
|
return;
|
|
11145
11147
|
}
|
|
11146
|
-
if (this.format
|
|
11148
|
+
if (this.format === 'rgb') {
|
|
11147
11149
|
const rgb = this.toRgbObject(value);
|
|
11148
11150
|
if (!rgb) {
|
|
11149
11151
|
this.clearInternal();
|
|
11152
|
+
this.changeDetectorRef.detectChanges();
|
|
11150
11153
|
return;
|
|
11151
11154
|
}
|
|
11152
11155
|
this.setInternalRGB(rgb, false);
|
|
@@ -11154,6 +11157,7 @@ class WEditInputColorpickerComponent {
|
|
|
11154
11157
|
else {
|
|
11155
11158
|
this.setInternal(value, false);
|
|
11156
11159
|
}
|
|
11160
|
+
this.changeDetectorRef.detectChanges();
|
|
11157
11161
|
}
|
|
11158
11162
|
registerOnChange(fn) {
|
|
11159
11163
|
this.propagateChange = fn;
|
|
@@ -11280,7 +11284,7 @@ class WEditInputColorpickerComponent {
|
|
|
11280
11284
|
return null;
|
|
11281
11285
|
return `rgb(${color.r},${color.g},${color.b})`;
|
|
11282
11286
|
}
|
|
11283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: WEditInputColorpickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11287
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: WEditInputColorpickerComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11284
11288
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: WEditInputColorpickerComponent, isStandalone: false, selector: "w-edit-input-colorpicker", inputs: { formControl: "formControl", label: "label", required: "required", requiredErrorDescription: "requiredErrorDescription", tooltip: "tooltip", tooltipPosition: "tooltipPosition", format: "format", secondFormat: "secondFormat" }, outputs: { onChange: "onChange", onSecondFormat: "onSecondFormat" }, providers: [
|
|
11285
11289
|
{
|
|
11286
11290
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -11298,7 +11302,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
11298
11302
|
multi: true
|
|
11299
11303
|
}
|
|
11300
11304
|
], standalone: false, template: "<div class=\"w-edit-input-colorpicker-field\">\r\n <div class=\"w-edit-input-colorpicker\">\r\n <w-edit-input-text\r\n class=\"flex\"\r\n [label]=\"label\"\r\n [required]=\"required\"\r\n [requiredErrorDescription]=\"requiredErrorDescription\"\r\n [disabled]=\"disabled\"\r\n [tooltip]=\"tooltip\"\r\n [tooltipPosition]=\"tooltipPosition\"\r\n [(ngModel)]=\"textValue\"\r\n (ngModelChange)=\"onTextChange($event)\"\r\n (blur)=\"onBlur()\">\r\n </w-edit-input-text>\r\n <p-colorpicker\r\n class=\"w-colorpicker flex\"\r\n [ngModel]=\"pickerValue\"\r\n (ngModelChange)=\"onPickerChange($event)\"\r\n [format]=\"format\"\r\n [appendTo]=\"'body'\"\r\n [disabled]=\"disabled\">\r\n </p-colorpicker>\r\n </div>\r\n @if (formControl && formControl.hasError('required') && formControl.dirty) {\r\n <span class=\"w-alert-message w-input-error-alert-text p-error block\">{{requiredErrorDescription}}</span>\r\n }\r\n</div>\r\n", styles: [".heading1{font-size:2.6666666667rem;line-height:3rem;font-weight:700}.heading2{font-size:2.3333333333rem;line-height:2.6666666667rem;font-weight:700}.heading3{font-size:2rem;line-height:2.3333333333rem;font-weight:700}.heading4{font-size:1.6666666667rem;line-height:2rem;font-weight:700}.heading5,.w-sidebar-title-text{font-size:1.5rem;line-height:1.8333333333rem;font-weight:700}.heading6{font-size:1.3333333333rem;line-height:1.6666666667rem;font-weight:700}.subtitle1,.w-tab-text,.w-panel-title-text{font-size:1.1666666667rem;line-height:1.3333333333rem;font-weight:700}.subtitle2,.w-table-th-text,.w-panel-subtitle-text,.w-input-small-label-text-typography,.w-input-small-label-text,.w-input-small-label-disabled,.w-view-small-label-text-typography,.w-view-small-label-text,.w-button-small-text-label-text-typography,.w-button-small-text-label-text{font-size:1rem;line-height:1.1666666667rem;font-weight:600}.body,.w-image-file-uploader-navigators-text,.w-table-td-text,.w-chip-text,.w-panel-content,.w-input-small-select-options-text,.w-input-small-placeholder-text-typography,.w-input-small-placeholder-text-disabled,.w-input-small-placeholder-text,::ng-deep .w-colorpicker.p-colorpicker .p-colorpicker-preview.p-inputtext,.w-view-small-value-text-typography,.w-view-small-value-text,.w-button-small-label-text-typography,.w-button-small-tertiary-label-text{font-size:1rem;line-height:1.1666666667rem;font-weight:400}.caption,.w-input-success-alert-text{font-size:.6666666667rem;line-height:1rem;font-weight:400}.light,.w-input-small-placeholder-text-only-color{font-size:.9166666667rem;line-height:1.0833333333rem;font-weight:300}.small,.w-error-message,.w-input-error-alert-text,.w-input-warning-alert-text,.w-button-small-label-text-typography-sm{font-size:.8333333333rem;line-height:1rem;font-weight:400}.textMainColor{color:#1f2224}.textSoftColor{color:#5f6468}.textSofterColor{color:#9aa0a7}.textSoftestColor{color:#e8ebee}.textInverseColor{color:#fff}.spacingXXS{padding:4px}.spacingXSM{padding:6px}.spacingXSMDivider{height:6px}.spacingXS{padding:8px}.spacingS{padding:12px}.spacingM{padding:16px}.spacingL{padding:20px}.spacingXL{padding:24px}.spacingXXL{padding:28px}.spacingXXXL{padding:32px}.panel-title-gap-divider{height:20px}.panel-section-gap-divider{height:32px}.input-vertical-gap-divider{height:24px}.input-label-gap-divider{height:6px}.focusedInput{border:1px solid rgba(0,157,253,.25);box-shadow:0 0 10px #00b3eb40}.focus{box-shadow:0 0 8px #00a6e980}.hover{border-radius:8px;border:1px solid #00b3eb}.hoveredInput{border-radius:8px;border:1px solid rgba(0,179,235,.5)}.input-generic-valid{border-radius:8px;border:1px solid #B3FFD3}.input-generic-valid-focus{border-radius:8px;border:1px solid #B3FFD3!important;box-shadow:0 0 8px #46ff9b80!important;padding-left:16px}.input-generic-warning{border-radius:8px;border:1px solid #FFECB8!important}.input-generic-warning-focus{border-radius:8px;border:1px solid #FFECB8!important;box-shadow:0 0 8px #ffcd4680!important;padding-left:16px}.input-generic-error-focus{border-radius:8px;border:1px solid #FFBDBD!important;box-shadow:0 0 8px #ff555580!important;padding-left:16px}.input-generic-error{border-radius:8px;border:1px solid #FFBDBD}.toggle-small-typography{font-size:12px;line-height:16px;font-weight:600}.w-button-small-label-text-typography,.w-button-small-tertiary-label-text,.w-button-small-label-text-typography-sm{font-weight:600}.w-button-small-tertiary-label-text{color:#5f6468}.w-button-small-text-label-text{color:#1f2224}.w-button-small-icon-text{font-size:12px;font-weight:600}.w-table-button-small-icon-text{font-size:12px;color:#9aa0a7}.w-control-button-small-label-text{font-size:12px;font-weight:600;line-height:16px}.w-control-button-x-small-icon-text{font-size:10px;font-weight:700}.w-control-button-small-icon-text{font-size:8px;font-weight:700}.w-button-medium-label-text-typography,.w-button-medium-tertiary-label-text{font-size:16px;font-weight:600;line-height:16px}.w-button-medium-tertiary-label-text{color:#1f2224}.w-button-medium-icon-text{font-size:16px}.w-control-button-medium-label-text{font-size:14px;font-weight:600;line-height:16px}.w-control-button-medium-icon-text{font-size:12px;font-weight:700}.w-button-large-label-text-typography,.w-button-large-tertiary-label-text{font-size:20px;font-weight:600;line-height:24px}.w-button-large-tertiary-label-text{color:#1f2224}.w-button-x-small-label-text{font-size:10px;font-weight:600;line-height:10px}.w-button-small-only-label-text{font-size:12px;font-weight:600;line-height:16px}.w-button-large-icon-text{font-size:24px}.w-view-small-label-text{color:#1f2224}.w-view-small-value-text{color:#5f6468}.w-input-no-label-height{height:14px}.w-input-disabled{background-color:#f8f9fa!important;border-color:#e8ebee!important;opacity:.6!important}.w-input-small-label-text-typography,.w-input-small-label-text,.w-input-small-label-disabled{height:fit-content}.w-input-small-label-text,.w-input-small-label-disabled{color:#1f2224}.w-input-small-label-disabled{color:#9aa0a7}.w-input-small-label-text-content{padding:12px 8px 8px 0;margin:0}.w-input-small-label-text-content-no-top{padding-top:0}.w-input-small-placeholder-text,::ng-deep .w-colorpicker.p-colorpicker .p-colorpicker-preview.p-inputtext{color:#1f2224}.w-input-small-placeholder-text-only-color{color:#9aa0a7;line-height:1.3333333333rem}.w-input-small-placeholder-text-disabled,.w-input-small-placeholder-text-disabled-only-color{color:#5f6468}.w-input-small-text-icon,.w-input-small-select-options-text{color:#1f2224}.w-input-medium-label-text-typography,.w-input-medium-label-text,.w-input-medium-label-disabled{font-size:14px;font-weight:600;line-height:16px}.w-input-medium-label-text,.w-input-medium-label-disabled{color:#1f2224}.w-input-medium-label-disabled{color:#9aa0a7}.w-input-medium-placeholder-text-typography,.w-input-medium-placeholder-text-disabled,.w-input-medium-placeholder-text{font-size:16px;font-weight:400;line-height:24px}.w-input-medium-placeholder-text,.w-input-medium-placeholder-text-only-color{color:#1f2224}.w-input-medium-placeholder-text-disabled,.w-input-medium-placeholder-text-disabled-only-color{color:#5f6468}.w-input-medium-text-icon{color:#1f2224}.w-input-medium-select-options-text{font-size:16px;font-weight:400;line-height:24px;color:#1f2224}.w-input-success-alert-text{color:#00db5d;padding:8px 8px 0;margin-top:0}.w-input-warning-alert-text{color:#eeae00;padding:0 4px;margin-top:-2px}.w-input-error-alert-text{color:#e50000;padding:0 4px;margin-top:-2px}.w-input-alert-message-height{height:32px}.w-error-message{color:#e50000;padding:0 4px;margin-top:-2px}.w-sidebar-title-text,.w-panel-title-text,.w-panel-subtitle-text{color:#1f2224}.w-panel-content{color:#5f6468}.w-tab-text,.w-chip-text{color:#1f2224}.w-badge-text{font-size:10px;font-weight:700;line-height:8px}.w-table-th-text{color:#1f2224}.w-table-td-text{color:#5f6468}.w-table-height{padding:6px 8px 5px}.w-table-no-buttons-height{padding:16px 8px 15px!important}.w-tree-table-height{padding:8px 8px 7px}.w-image-file-uploader-navigators-text{font-size:12px;color:#fff}.grid{margin:0}::ng-deep .p-tooltip,.p-tooltip{filter:0px 0px 1px 0px rgba(0,0,0,.1) inset,1px 1px 5px rgba(0,0,0,.06),1px 1px 1px rgba(0,0,0,.08)}::ng-deep .p-tooltip .p-tooltip-text,.p-tooltip .p-tooltip-text{background:#fff!important;color:#1f2224;padding:12px 16px;max-width:192px;width:max-content;margin-left:3px;pointer-events:none}::ng-deep .p-tooltip.p-tooltip-left,.p-tooltip.p-tooltip-left{margin-right:6px;width:max-content;transform:translate(-6px)}::ng-deep .p-tooltip.p-tooltip-left .p-tooltip-arrow,.p-tooltip.p-tooltip-left .p-tooltip-arrow{border-left-color:#fff!important;top:50%;right:-3px;margin-top:-4px;border-width:4px 0 4px 6px!important}::ng-deep .p-tooltip.p-tooltip-right,.p-tooltip.p-tooltip-right{margin-left:6px;width:max-content;transform:translateY(-1px)}::ng-deep .p-tooltip.p-tooltip-right .p-tooltip-arrow,.p-tooltip.p-tooltip-right .p-tooltip-arrow{border-right-color:#fff!important;top:50%;left:0;margin-top:-4px;border-width:4px 6px 4px 0!important}::ng-deep .p-tooltip.p-tooltip-bottom .p-tooltip-arrow,.p-tooltip.p-tooltip-bottom .p-tooltip-arrow{border-bottom-color:#fff!important;border-width:0 4px 6px 4px!important;margin-top:-3px}.w-edit-input-colorpicker-field{margin:0;display:grid;gap:6px!important}.w-edit-input-colorpicker{display:flex;gap:12px;width:100%}.w-edit-input-colorpicker>w-edit-input-text{flex:1 1 0%;min-width:0;flex-direction:column}.w-edit-input-colorpicker>p-colorPicker{flex:0 0 28px;margin-left:auto;align-items:end}::ng-deep .w-colorpicker.p-colorpicker .p-colorpicker-preview{width:28px;height:28px;border:1px solid #e8ebee!important}::ng-deep .w-colorpicker.p-colorpicker .p-colorpicker-preview.p-inputtext{border-radius:8px}\n"] }]
|
|
11301
|
-
}], propDecorators: { formControl: [{
|
|
11305
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { formControl: [{
|
|
11302
11306
|
type: Input,
|
|
11303
11307
|
args: ['formControl']
|
|
11304
11308
|
}], label: [{
|