@nova-ui/dashboards 12.0.11-3657 → 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.
Files changed (16) hide show
  1. package/bundles/nova-ui-dashboards.umd.js +16 -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 +6 -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 +17 -4
  6. package/fesm2015/nova-ui-dashboards.js.map +1 -1
  7. package/lib/configurator/components/formatters/link-formatter/link-formatter.component.d.ts +2 -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 +1 -0
  11. package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +5 -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
@@ -8396,15 +8396,17 @@
8396
8396
  }());
8397
8397
  LinkFormatterComponent.lateLoadKey = "LinkFormatterComponent";
8398
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 });
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"] }] });
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"] }] });
8400
8400
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkFormatterComponent, decorators: [{
8401
8401
  type: i0.Component,
8402
8402
  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>",
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>",
8404
8404
  styles: [".link-formatter-container {display: grid; grid-template-columns: 1fr;}"],
8405
8405
  }]
8406
8406
  }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { data: [{
8407
8407
  type: i0.Input
8408
+ }], targetSelf: [{
8409
+ type: i0.Input
8408
8410
  }] } });
8409
8411
 
8410
8412
  var RawFormatterComponent = /** @class */ (function () {
@@ -12925,11 +12927,22 @@
12925
12927
  function LinkConfiguratorComponent(changeDetector, configuratorHeading, formBuilder, logger) {
12926
12928
  return _super.call(this, changeDetector, configuratorHeading, formBuilder, logger) || this;
12927
12929
  }
12930
+ LinkConfiguratorComponent.prototype.initForm = function () {
12931
+ var dataFieldForm = {
12932
+ link: [null, i1$1.Validators.required],
12933
+ value: [null, i1$1.Validators.required],
12934
+ };
12935
+ this.form = this.formBuilder.group({
12936
+ dataFieldIds: this.formBuilder.group(dataFieldForm),
12937
+ targetSelf: [false],
12938
+ });
12939
+ this.formReady.emit(this.form);
12940
+ };
12928
12941
  return LinkConfiguratorComponent;
12929
12942
  }(FormatterConfiguratorComponent));
12930
12943
  LinkConfiguratorComponent.lateLoadKey = "LinkConfiguratorComponent";
12931
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 });
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"] }] });
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"] }] });
12933
12946
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LinkConfiguratorComponent, decorators: [{
12934
12947
  type: i0.Component,
12935
12948
  args: [{