@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.
Files changed (16) hide show
  1. package/bundles/nova-ui-dashboards.umd.js +17 -3
  2. package/bundles/nova-ui-dashboards.umd.js.map +1 -1
  3. package/esm2015/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +7 -4
  4. package/esm2015/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +14 -3
  5. package/fesm2015/nova-ui-dashboards.js +18 -4
  6. package/fesm2015/nova-ui-dashboards.js.map +1 -1
  7. package/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +3 -1
  8. package/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.d.ts +3 -1
  9. package/package.json +3 -3
  10. package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +2 -0
  11. package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +6 -1
  12. package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js.map +1 -1
  13. 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
  14. package/sdk/atoms/src/lib/configurator/components/widgets/table/columns-editor/column-configuration/presentation-configuration/portals/link-configurator/link-configurator.component.js +11 -0
  15. 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
  16. package/sdk/locale/messages.en.xlf +21 -5
@@ -8391,20 +8391,23 @@
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";
8394
8395
  };
8395
8396
  return LinkFormatterComponent;
8396
8397
  }());
8397
8398
  LinkFormatterComponent.lateLoadKey = "LinkFormatterComponent";
8398
8399
  /** @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 });
8399
- /** @nocollapse */ LinkFormatterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LinkFormatterComponent, selector: "ng-component", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"link-formatter-container\">\n <a *ngIf=\"isValid\" class=\"nui-text-ellipsis\" [href]=\"data?.link\" target=\"_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"] }] });
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]=\"target\">\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"] }] });
8400
8401
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkFormatterComponent, decorators: [{
8401
8402
  type: i0.Component,
8402
8403
  args: [{
8403
- template: "<div class=\"link-formatter-container\">\n <a *ngIf=\"isValid\" class=\"nui-text-ellipsis\" [href]=\"data?.link\" target=\"_blank\">\n {{data?.value}}\n </a>\n </div>",
8404
+ template: "<div class=\"link-formatter-container\">\n <a *ngIf=\"isValid\" class=\"nui-text-ellipsis\" [href]=\"data?.link\" [target]=\"target\">\n {{data?.value}}\n </a>\n </div>",
8404
8405
  styles: [".link-formatter-container {display: grid; grid-template-columns: 1fr;}"],
8405
8406
  }]
8406
8407
  }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { data: [{
8407
8408
  type: i0.Input
8409
+ }], targetSelf: [{
8410
+ type: i0.Input
8408
8411
  }] } });
8409
8412
 
8410
8413
  var RawFormatterComponent = /** @class */ (function () {
@@ -12925,11 +12928,22 @@
12925
12928
  function LinkConfiguratorComponent(changeDetector, configuratorHeading, formBuilder, logger) {
12926
12929
  return _super.call(this, changeDetector, configuratorHeading, formBuilder, logger) || this;
12927
12930
  }
12931
+ LinkConfiguratorComponent.prototype.initForm = function () {
12932
+ var dataFieldForm = {
12933
+ link: [null, i1$1.Validators.required],
12934
+ value: [null, i1$1.Validators.required],
12935
+ };
12936
+ this.form = this.formBuilder.group({
12937
+ dataFieldIds: this.formBuilder.group(dataFieldForm),
12938
+ });
12939
+ this.form.addControl("target", this.formBuilder.control(false, []));
12940
+ this.formReady.emit(this.form);
12941
+ };
12928
12942
  return LinkConfiguratorComponent;
12929
12943
  }(FormatterConfiguratorComponent));
12930
12944
  LinkConfiguratorComponent.lateLoadKey = "LinkConfiguratorComponent";
12931
12945
  /** @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 });
12932
- /** @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\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__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"] }], 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"] }] });
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['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__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"] }] });
12933
12947
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkConfiguratorComponent, decorators: [{
12934
12948
  type: i0.Component,
12935
12949
  args: [{