@nova-ui/dashboards 12.0.11 → 12.0.12-3695
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/bundles/nova-ui-dashboards.umd.js +4 -5
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +3 -4
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +3 -3
- package/fesm2015/nova-ui-dashboards.js +4 -5
- package/fesm2015/nova-ui-dashboards.js.map +1 -1
- package/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +0 -1
- package/package.json +3 -3
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +0 -1
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +1 -2
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js.map +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +1 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js.map +1 -1
|
@@ -8391,17 +8391,16 @@
|
|
|
8391
8391
|
}
|
|
8392
8392
|
LinkFormatterComponent.prototype.ngOnChanges = function (changes) {
|
|
8393
8393
|
this.isValid = Boolean(this.data && this.data.value && this.data.link);
|
|
8394
|
-
this.target = this.targetSelf ? "_self" : "_blank";
|
|
8395
8394
|
};
|
|
8396
8395
|
return LinkFormatterComponent;
|
|
8397
8396
|
}());
|
|
8398
8397
|
LinkFormatterComponent.lateLoadKey = "LinkFormatterComponent";
|
|
8399
8398
|
/** @nocollapse */ LinkFormatterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkFormatterComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8400
|
-
/** @nocollapse */ LinkFormatterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkFormatterComponent, selector: "ng-component", inputs: { data: "data", targetSelf: "targetSelf" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"link-formatter-container\">\n <a *ngIf=\"isValid\" class=\"nui-text-ellipsis\" [href]=\"data?.link\" [target]=\"
|
|
8399
|
+
/** @nocollapse */ LinkFormatterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkFormatterComponent, selector: "ng-component", inputs: { data: "data", targetSelf: "targetSelf" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"link-formatter-container\">\n <a *ngIf=\"isValid\" class=\"nui-text-ellipsis\" [href]=\"data?.link\" [target]=\"targetSelf ? '_self' : '_blank'\">\n {{data?.value}}\n </a>\n </div>", isInline: true, styles: [".link-formatter-container {display: grid; grid-template-columns: 1fr;}"], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
8401
8400
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkFormatterComponent, decorators: [{
|
|
8402
8401
|
type: i0.Component,
|
|
8403
8402
|
args: [{
|
|
8404
|
-
template: "<div class=\"link-formatter-container\">\n <a *ngIf=\"isValid\" class=\"nui-text-ellipsis\" [href]=\"data?.link\" [target]=\"
|
|
8403
|
+
template: "<div class=\"link-formatter-container\">\n <a *ngIf=\"isValid\" class=\"nui-text-ellipsis\" [href]=\"data?.link\" [target]=\"targetSelf ? '_self' : '_blank'\">\n {{data?.value}}\n </a>\n </div>",
|
|
8405
8404
|
styles: [".link-formatter-container {display: grid; grid-template-columns: 1fr;}"],
|
|
8406
8405
|
}]
|
|
8407
8406
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
@@ -12935,15 +12934,15 @@
|
|
|
12935
12934
|
};
|
|
12936
12935
|
this.form = this.formBuilder.group({
|
|
12937
12936
|
dataFieldIds: this.formBuilder.group(dataFieldForm),
|
|
12937
|
+
targetSelf: [false],
|
|
12938
12938
|
});
|
|
12939
|
-
this.form.addControl("target", this.formBuilder.control(false, []));
|
|
12940
12939
|
this.formReady.emit(this.form);
|
|
12941
12940
|
};
|
|
12942
12941
|
return LinkConfiguratorComponent;
|
|
12943
12942
|
}(FormatterConfiguratorComponent));
|
|
12944
12943
|
LinkConfiguratorComponent.lateLoadKey = "LinkConfiguratorComponent";
|
|
12945
12944
|
/** @nocollapse */ LinkConfiguratorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkConfiguratorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1__namespace$2.FormBuilder }, { token: i2__namespace.LoggerService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12946
|
-
/** @nocollapse */ LinkConfiguratorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkConfiguratorComponent, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0__namespace, template: "<div [formGroup]=\"form\">\n <div formGroupName=\"dataFieldIds\">\n <div class=\"mb-4\">\n <nui-form-field caption=\"Label\"\n i18n-caption=\"label field caption| the entity field to be selected for the html label property\"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['value']\">\n <nui-select-v2 formControlName=\"value\">\n <nui-select-v2-option *ngFor=\"let itemValue of dropdownItems.value\" [value]=\"itemValue.id\">\n {{itemValue.label}}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field caption=\"URL\"\n i18n-caption=\"url field caption| the entity field to be selected for the url html property\"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['link']\">\n <nui-select-v2 formControlName=\"link\">\n <nui-select-v2-option *ngFor=\"let itemLink of dropdownItems.link\" [value]=\"itemLink.id\">\n {{itemLink.label}}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n <div>\n <nui-form-field caption=\"Open in the same window\"\n i18n-caption=\"form field caption|switch configuring whether formatted link should open in new window/tab\"\n class=\"mb-3\"\n [control]=\"form.controls
|
|
12945
|
+
/** @nocollapse */ LinkConfiguratorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkConfiguratorComponent, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0__namespace, template: "<div [formGroup]=\"form\">\n <div formGroupName=\"dataFieldIds\">\n <div class=\"mb-4\">\n <nui-form-field caption=\"Label\"\n i18n-caption=\"label field caption| the entity field to be selected for the html label property\"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['value']\">\n <nui-select-v2 formControlName=\"value\">\n <nui-select-v2-option *ngFor=\"let itemValue of dropdownItems.value\" [value]=\"itemValue.id\">\n {{itemValue.label}}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n <div>\n <nui-form-field caption=\"URL\"\n i18n-caption=\"url field caption| the entity field to be selected for the url html property\"\n class=\"mb-3\"\n [control]=\"dataFieldIds.controls['link']\">\n <nui-select-v2 formControlName=\"link\">\n <nui-select-v2-option *ngFor=\"let itemLink of dropdownItems.link\" [value]=\"itemLink.id\">\n {{itemLink.label}}\n </nui-select-v2-option>\n </nui-select-v2>\n <nui-validation-message for=\"required\" i18n>\n This field is required\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n <div>\n <nui-form-field caption=\"Open in the same window\"\n i18n-caption=\"form field caption|switch configuring whether formatted link should open in new window/tab\"\n class=\"mb-3\"\n [control]=\"form.controls.targetSelf\">\n <nui-switch id=\"nui-switch-target\" formControlName=\"targetSelf\">\n </nui-switch>\n </nui-form-field>\n </div>\n</div>\n", components: [{ type: i2__namespace.FormFieldComponent, selector: "nui-form-field", inputs: ["showOptionalText", "control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth"] }, { type: i2__namespace.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { type: i2__namespace.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["outfiltered", "value", "index", "displayValueContext"] }, { type: i2__namespace.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { type: i2__namespace.SwitchComponent, selector: "nui-switch", inputs: ["ariaLabel", "value", "disabled"], outputs: ["valueChange"] }], directives: [{ type: i1__namespace$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i1__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
12947
12946
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkConfiguratorComponent, decorators: [{
|
|
12948
12947
|
type: i0.Component,
|
|
12949
12948
|
args: [{
|