@nova-ui/dashboards 12.0.10 → 12.0.11
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 +17 -3
- package/bundles/nova-ui-dashboards.umd.js.map +1 -1
- package/esm2015/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +7 -4
- package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +14 -3
- package/fesm2015/nova-ui-dashboards.js +18 -4
- package/fesm2015/nova-ui-dashboards.js.map +1 -1
- package/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +3 -1
- package/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.d.ts +3 -1
- package/package.json +3 -3
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +2 -0
- package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +6 -1
- 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.d.ts +3 -1
- package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +11 -0
- 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
- package/sdk/locale/messages.en.xlf +21 -5
package/esm2015/lib/configurator/components/formatters/link-formatter/link-formatter.component.js
CHANGED
|
@@ -8,12 +8,13 @@ export class LinkFormatterComponent {
|
|
|
8
8
|
}
|
|
9
9
|
ngOnChanges(changes) {
|
|
10
10
|
this.isValid = Boolean(this.data && this.data.value && this.data.link);
|
|
11
|
+
this.target = this.targetSelf ? "_self" : "_blank";
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
LinkFormatterComponent.lateLoadKey = "LinkFormatterComponent";
|
|
14
15
|
/** @nocollapse */ LinkFormatterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LinkFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
/** @nocollapse */ LinkFormatterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkFormatterComponent, selector: "ng-component", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `<div class="link-formatter-container">
|
|
16
|
-
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" target="
|
|
16
|
+
/** @nocollapse */ LinkFormatterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkFormatterComponent, selector: "ng-component", inputs: { data: "data", targetSelf: "targetSelf" }, usesOnChanges: true, ngImport: i0, template: `<div class="link-formatter-container">
|
|
17
|
+
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" [target]="target">
|
|
17
18
|
{{data?.value}}
|
|
18
19
|
</a>
|
|
19
20
|
</div>`, isInline: true, styles: [".link-formatter-container {display: grid; grid-template-columns: 1fr;}"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
@@ -21,7 +22,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
21
22
|
type: Component,
|
|
22
23
|
args: [{
|
|
23
24
|
template: `<div class="link-formatter-container">
|
|
24
|
-
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" target="
|
|
25
|
+
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" [target]="target">
|
|
25
26
|
{{data?.value}}
|
|
26
27
|
</a>
|
|
27
28
|
</div>`,
|
|
@@ -29,5 +30,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
29
30
|
}]
|
|
30
31
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
31
32
|
type: Input
|
|
33
|
+
}], targetSelf: [{
|
|
34
|
+
type: Input
|
|
32
35
|
}] } });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay1mb3JtYXR0ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb25maWd1cmF0b3IvY29tcG9uZW50cy9mb3JtYXR0ZXJzL2xpbmstZm9ybWF0dGVyL2xpbmstZm9ybWF0dGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBNEIsTUFBTSxlQUFlLENBQUM7OztBQWE5RixNQUFNLE9BQU8sc0JBQXNCO0lBUy9CLFlBQW1CLGNBQWlDO1FBQWpDLG1CQUFjLEdBQWQsY0FBYyxDQUFtQjtRQUY3QyxZQUFPLEdBQUcsS0FBSyxDQUFDO0lBR3ZCLENBQUM7SUFFTSxXQUFXLENBQUMsT0FBc0I7UUFDckMsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLEtBQUssSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3ZFLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ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10ZW1wbGF0ZS1jb2x1bW5zOiAxZnI7fWBdLFxufSlcbmV4cG9ydCBjbGFzcyBMaW5rRm9ybWF0dGVyQ29tcG9uZW50IGltcGxlbWVudHMgT25DaGFuZ2VzLCBJSGFzQ2hhbmdlRGV0ZWN0b3Ige1xuICAgIHN0YXRpYyBsYXRlTG9hZEtleSA9IFwiTGlua0Zvcm1hdHRlckNvbXBvbmVudFwiO1xuXG4gICAgQElucHV0KCkgZGF0YTogSUxpbmtGb3JtYXR0ZXJEYXRhO1xuICAgIEBJbnB1dCgpIHRhcmdldFNlbGY/OiBib29sZWFuO1xuXG4gICAgcHVibGljIHRhcmdldDogc3RyaW5nO1xuICAgIHB1YmxpYyBpc1ZhbGlkID0gZmFsc2U7XG5cbiAgICBjb25zdHJ1Y3RvcihwdWJsaWMgY2hhbmdlRGV0ZWN0b3I6IENoYW5nZURldGVjdG9yUmVmKSB7XG4gICAgfVxuXG4gICAgcHVibGljIG5nT25DaGFuZ2VzKGNoYW5nZXM6IFNpbXBsZUNoYW5nZXMpIHtcbiAgICAgICAgdGhpcy5pc1ZhbGlkID0gQm9vbGVhbih0aGlzLmRhdGEgJiYgdGhpcy5kYXRhLnZhbHVlICYmIHRoaXMuZGF0YS5saW5rKTtcbiAgICAgICAgdGhpcy50YXJnZXQgPSB0aGlzLnRhcmdldFNlbGYgPyBcIl9zZWxmXCIgOiBcIl9ibGFua1wiO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Component } from "@angular/core";
|
|
2
|
-
import { FormBuilder } from "@angular/forms";
|
|
2
|
+
import { FormBuilder, Validators } from "@angular/forms";
|
|
3
3
|
import { LoggerService } from "@nova-ui/bits";
|
|
4
4
|
import { ConfiguratorHeadingService } from "../../../../../../../../services/configurator-heading.service";
|
|
5
5
|
import { FormatterConfiguratorComponent } from "../formatter-configurator.component";
|
|
@@ -12,10 +12,21 @@ export class LinkConfiguratorComponent extends FormatterConfiguratorComponent {
|
|
|
12
12
|
constructor(changeDetector, configuratorHeading, formBuilder, logger) {
|
|
13
13
|
super(changeDetector, configuratorHeading, formBuilder, logger);
|
|
14
14
|
}
|
|
15
|
+
initForm() {
|
|
16
|
+
const dataFieldForm = {
|
|
17
|
+
link: [null, Validators.required],
|
|
18
|
+
value: [null, Validators.required],
|
|
19
|
+
};
|
|
20
|
+
this.form = this.formBuilder.group({
|
|
21
|
+
dataFieldIds: this.formBuilder.group(dataFieldForm),
|
|
22
|
+
});
|
|
23
|
+
this.form.addControl("target", this.formBuilder.control(false, []));
|
|
24
|
+
this.formReady.emit(this.form);
|
|
25
|
+
}
|
|
15
26
|
}
|
|
16
27
|
LinkConfiguratorComponent.lateLoadKey = "LinkConfiguratorComponent";
|
|
17
28
|
/** @nocollapse */ LinkConfiguratorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LinkConfiguratorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ConfiguratorHeadingService }, { token: i2.FormBuilder }, { token: i3.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
/** @nocollapse */ LinkConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkConfiguratorComponent, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <div formGroupName=\"dataFieldIds\">\n <div class=\"mb-4\">\n <nui-form-field caption=\"Label\"\n i18n-caption\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\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", components: [{ type: i3.FormFieldComponent, selector: "nui-form-field", inputs: ["showOptionalText", "control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth"] }, { type: i3.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { type: i3.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["outfiltered", "value", "index", "displayValueContext"] }, { type: i3.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }], directives: [{ type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
29
|
+
/** @nocollapse */ LinkConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkConfiguratorComponent, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0, 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['target']\">\n <nui-switch id=\"nui-switch-target\" formControlName=\"target\">\n </nui-switch>\n </nui-form-field>\n </div>\n</div>\n", components: [{ type: i3.FormFieldComponent, selector: "nui-form-field", inputs: ["showOptionalText", "control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth"] }, { type: i3.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { type: i3.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["outfiltered", "value", "index", "displayValueContext"] }, { type: i3.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { type: i3.SwitchComponent, selector: "nui-switch", inputs: ["ariaLabel", "value", "disabled"], outputs: ["valueChange"] }], directives: [{ type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
19
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LinkConfiguratorComponent, decorators: [{
|
|
20
31
|
type: Component,
|
|
21
32
|
args: [{
|
|
@@ -23,4 +34,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
23
34
|
templateUrl: "./link-configurator.component.html",
|
|
24
35
|
}]
|
|
25
36
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.ConfiguratorHeadingService }, { type: i2.FormBuilder }, { type: i3.LoggerService }]; } });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay1jb25maWd1cmF0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb25maWd1cmF0b3IvY29tcG9uZW50cy93aWRnZXRzL3RhYmxlL2NvbHVtbnMtZWRpdG9yL2NvbHVtbi1jb25maWd1cmF0aW9uL3ByZXNlbnRhdGlvbi1jb25maWd1cmF0aW9uL3BvcnRhbHMvbGluay1jb25maWd1cmF0b3IvbGluay1jb25maWd1cmF0b3IuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb25maWd1cmF0b3IvY29tcG9uZW50cy93a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XRlbVZhbHVlIG9mIGRyb3Bkb3duSXRlbXMudmFsdWVcIiBbdmFsdWVdPVwiaXRlbVZhbHVlLmlkXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICB7e2l0ZW1WYWx1ZS5sYWJlbH19XG4gICAgICAgICAgICAgICAgICAgIDwvbnVpLXNlbGVjdC12Mi1vcHRpb24+XG4gICAgICAgICAgICAgICAgPC9udWktc2VsZWN0LXYyPlxuICAgICAgICAgICAgICAgIDxudWktdmFsaWRhdGlvbi1tZXNzYWdlIGZvcj1cInJlcXVpcmVkXCIgaTE4bj5cbiAgICAgICAgICAgICAgICAgICAgVGhpcyBmaWVsZCBpcyByZXF1aXJlZFxuICAgICAgICAgICAgICAgIDwvbnVpLXZhbGlkYXRpb24tbWVzc2FnZT5cbiAgICAgICAgICAgIDwvbnVpLWZvcm0tZmllbGQ+XG4gICAgICAgIDwvZGl2PlxuICAgICAgICA8ZGl2PlxuICAgICAgICAgICAgPG51aS1mb3JtLWZpZWxkIGNhcHRpb249XCJVUkxcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGkxOG4tY2FwdGlvbj1cInVybCBmaWVsZCBjYXB0aW9ufCB0aGUgZW50aXR5IGZpZWxkIHRvIGJlIHNlbGVjdGVkIGZvciB0aGUgdXJsIGh0bWwgcHJvcGVydHlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwibWItM1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgW2NvbnRyb2xdPVwiZGF0YUZpZWxkSWRzLmNvbnRyb2xzWydsaW5rJ11cIj5cbiAgICAgICAgICAgICAgICA8bnVpLXNlbGVjdC12MiBmb3JtQ29udHJvbE5hbWU9XCJsaW5rXCI+XG4gICAgICAgICAgICAgICAgICAgIDxudWktc2VsZWN0LXYyLW9wdGlvbiAqbmdGb3I9XCJsZXQgaXRlbUxpbmsgb2YgZHJvcGRvd25JdGVtcy5saW5rXCIgW3ZhbHVlXT1cIml0ZW1MaW5rLmlkXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICB7e2l0ZW1MaW5rLmxhYmVsfX1cbiAgICAgICAgICAgICAgICAgICAgPC9udWktc2VsZWN0LXYyLW9wdGlvbj5cbiAgICAgICAgICAgICAgICA8L251aS1zZWxlY3QtdjI+XG4gICAgICAgICAgICAgICAgPG51aS12YWxpZGF0aW9uLW1lc3NhZ2UgZm9yPVwicmVxdWlyZWRcIiBpMThuPlxuICAgICAgICAgICAgICAgICAgICBUaGlzIGZpZWxkIGlzIHJlcXVpcmVkXG4gICAgICAgICAgICAgICAgPC9udWktdmFsaWRhdGlvbi1tZXNzYWdlPlxuICAgICAgICAgICAgPC9udWktZm9ybS1maWVsZD5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gICAgPGRpdj5cbiAgICAgICAgPG51aS1mb3JtLWZpZWxkIGNhcHRpb249XCJPcGVuIGluIHRoZSBzYW1lIHdpbmRvd1wiXG4gICAgICAgICAgICAgICAgICAgICAgICBpMThuLWNhcHRpb249XCJmb3JtIGZpZWxkIGNhcHRpb258c3dpdGNoIGNvbmZpZ3VyaW5nIHdoZXRoZXIgZm9ybWF0dGVkIGxpbmsgc2hvdWxkIG9wZW4gaW4gbmV3IHdpbmRvdy90YWJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJtYi0zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtjb250cm9sXT1cImZvcm0uY29udHJvbHNbJ3RhcmdldCddXCI+XG4gICAgICAgICAgICA8bnVpLXN3aXRjaCBpZD1cIm51aS1zd2l0Y2gtdGFyZ2V0XCIgZm9ybUNvbnRyb2xOYW1lPVwidGFyZ2V0XCI+XG4gICAgICAgICAgICA8L251aS1zd2l0Y2g+XG4gICAgICAgIDwvbnVpLWZvcm0tZmllbGQ+XG4gICAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -7358,12 +7358,13 @@ class LinkFormatterComponent {
|
|
|
7358
7358
|
}
|
|
7359
7359
|
ngOnChanges(changes) {
|
|
7360
7360
|
this.isValid = Boolean(this.data && this.data.value && this.data.link);
|
|
7361
|
+
this.target = this.targetSelf ? "_self" : "_blank";
|
|
7361
7362
|
}
|
|
7362
7363
|
}
|
|
7363
7364
|
LinkFormatterComponent.lateLoadKey = "LinkFormatterComponent";
|
|
7364
7365
|
/** @nocollapse */ LinkFormatterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LinkFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7365
|
-
/** @nocollapse */ LinkFormatterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkFormatterComponent, selector: "ng-component", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `<div class="link-formatter-container">
|
|
7366
|
-
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" target="
|
|
7366
|
+
/** @nocollapse */ LinkFormatterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkFormatterComponent, selector: "ng-component", inputs: { data: "data", targetSelf: "targetSelf" }, usesOnChanges: true, ngImport: i0, template: `<div class="link-formatter-container">
|
|
7367
|
+
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" [target]="target">
|
|
7367
7368
|
{{data?.value}}
|
|
7368
7369
|
</a>
|
|
7369
7370
|
</div>`, isInline: true, styles: [".link-formatter-container {display: grid; grid-template-columns: 1fr;}"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
@@ -7371,7 +7372,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
7371
7372
|
type: Component,
|
|
7372
7373
|
args: [{
|
|
7373
7374
|
template: `<div class="link-formatter-container">
|
|
7374
|
-
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" target="
|
|
7375
|
+
<a *ngIf="isValid" class="nui-text-ellipsis" [href]="data?.link" [target]="target">
|
|
7375
7376
|
{{data?.value}}
|
|
7376
7377
|
</a>
|
|
7377
7378
|
</div>`,
|
|
@@ -7379,6 +7380,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImpor
|
|
|
7379
7380
|
}]
|
|
7380
7381
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
7381
7382
|
type: Input
|
|
7383
|
+
}], targetSelf: [{
|
|
7384
|
+
type: Input
|
|
7382
7385
|
}] } });
|
|
7383
7386
|
|
|
7384
7387
|
class RawFormatterComponent {
|
|
@@ -11775,10 +11778,21 @@ class LinkConfiguratorComponent extends FormatterConfiguratorComponent {
|
|
|
11775
11778
|
constructor(changeDetector, configuratorHeading, formBuilder, logger) {
|
|
11776
11779
|
super(changeDetector, configuratorHeading, formBuilder, logger);
|
|
11777
11780
|
}
|
|
11781
|
+
initForm() {
|
|
11782
|
+
const dataFieldForm = {
|
|
11783
|
+
link: [null, Validators.required],
|
|
11784
|
+
value: [null, Validators.required],
|
|
11785
|
+
};
|
|
11786
|
+
this.form = this.formBuilder.group({
|
|
11787
|
+
dataFieldIds: this.formBuilder.group(dataFieldForm),
|
|
11788
|
+
});
|
|
11789
|
+
this.form.addControl("target", this.formBuilder.control(false, []));
|
|
11790
|
+
this.formReady.emit(this.form);
|
|
11791
|
+
}
|
|
11778
11792
|
}
|
|
11779
11793
|
LinkConfiguratorComponent.lateLoadKey = "LinkConfiguratorComponent";
|
|
11780
11794
|
/** @nocollapse */ LinkConfiguratorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LinkConfiguratorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: ConfiguratorHeadingService }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11781
|
-
/** @nocollapse */ LinkConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkConfiguratorComponent, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <div formGroupName=\"dataFieldIds\">\n <div class=\"mb-4\">\n <nui-form-field caption=\"Label\"\n i18n-caption\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\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", components: [{ type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["showOptionalText", "control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth"] }, { type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["outfiltered", "value", "index", "displayValueContext"] }, { type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }], directives: [{ type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
11795
|
+
/** @nocollapse */ LinkConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkConfiguratorComponent, selector: "nui-link-configurator", usesInheritance: true, ngImport: i0, 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['target']\">\n <nui-switch id=\"nui-switch-target\" formControlName=\"target\">\n </nui-switch>\n </nui-form-field>\n </div>\n</div>\n", components: [{ type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["showOptionalText", "control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth"] }, { type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["outfiltered", "value", "index", "displayValueContext"] }, { type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { type: i2.SwitchComponent, selector: "nui-switch", inputs: ["ariaLabel", "value", "disabled"], outputs: ["valueChange"] }], directives: [{ type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
11782
11796
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LinkConfiguratorComponent, decorators: [{
|
|
11783
11797
|
type: Component,
|
|
11784
11798
|
args: [{
|