xt-plugin-web 0.4.8 → 0.5.5

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.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { XtSimpleComponent, MessageHandler, StoreSupport } from 'xt-components';
3
+ import { XtSimpleComponent, XtMessageHandler, StoreSupport } from 'xt-components';
4
4
  import * as i1 from '@angular/forms';
5
5
  import { ReactiveFormsModule, FormsModule } from '@angular/forms';
6
6
  import { FileUpload } from 'primeng/fileupload';
@@ -13,7 +13,7 @@ import { Tooltip } from 'primeng/tooltip';
13
13
  class WebImageComponent extends XtSimpleComponent {
14
14
  constructor() {
15
15
  super();
16
- this.msgHandler = inject(MessageHandler);
16
+ this.msgHandler = inject(XtMessageHandler);
17
17
  this.displayIsInline = computed(() => {
18
18
  const displayMode = this.context().displayMode;
19
19
  if ((displayMode == "INLINE_VIEW") || (displayMode == "LIST_VIEW")) {
@@ -22,7 +22,7 @@ class WebImageComponent extends XtSimpleComponent {
22
22
  else {
23
23
  return false;
24
24
  }
25
- });
25
+ }, ...(ngDevMode ? [{ debugName: "displayIsInline" }] : []));
26
26
  if (StoreSupport.isStoreManagerAvailable()) {
27
27
  this.store = StoreSupport.getStoreManager().getDefaultProvider();
28
28
  }
@@ -43,10 +43,10 @@ class WebImageComponent extends XtSimpleComponent {
43
43
  }
44
44
  }
45
45
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: WebImageComponent, isStandalone: true, selector: "xt-web-image", usesInheritance: true, ngImport: i0, template: "@if (isInForm() ) {\n @let componentName=componentNameInForm();\n <ng-container [formGroup]=\"formGroup()\">\n <div class=\"grid grid-cols-[auto_1fr] gap-4\">\n <div>\n <p-fileupload *ngIf=\"supportsImageUpload()\" mode=\"basic\" chooseLabel=\"Browse\" [name]=\"componentName+'-btn'\" [auto]=\"true\" [multiple]=\"false\" accept=\"image/*\" [customUpload]=\"true\" (uploadHandler)=\"uploadImage ($event)\"></p-fileupload>\n </div>\n <div>\n <input [name]=\"componentName\" [formControlName]=\"formControlName()\" pInputText fluid=\"true\" />\n </div>\n </div>\n </ng-container>\n} @else if (displayIsInline()) {\n <p-image class=\"inline-image\" [src]=\"displayValue()\" [preview]=\"true\" />\n} @else {\n <p-image [src]=\"displayValue()\" [preview]=\"true\" />\n}\n", styles: [".inline-image{max-height:5em;max-width:10em;display:inline-flex}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FileUpload, selector: "p-fileupload, p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "chooseButtonProps", "uploadButtonProps", "cancelButtonProps", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: Image, selector: "p-image", inputs: ["imageClass", "imageStyle", "styleClass", "style", "src", "srcSet", "sizes", "previewImageSrc", "previewImageSrcSet", "previewImageSizes", "alt", "width", "height", "loading", "appendTo", "preview", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide", "onImageError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: WebImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.9", type: WebImageComponent, isStandalone: true, selector: "xt-web-image", usesInheritance: true, ngImport: i0, template: "@if (isInForm() ) {\n @let componentName=componentNameInForm();\n <ng-container [formGroup]=\"formGroup()\">\n <div class=\"grid grid-cols-[auto_1fr] gap-4\">\n <div>\n <p-fileupload *ngIf=\"supportsImageUpload()\" mode=\"basic\" chooseLabel=\"Browse\" [name]=\"componentName+'-btn'\" [auto]=\"true\" [multiple]=\"false\" accept=\"image/*\" [customUpload]=\"true\" (uploadHandler)=\"uploadImage ($event)\"></p-fileupload>\n </div>\n <div>\n <input [name]=\"componentName\" [formControlName]=\"formControlName()\" pInputText fluid=\"true\" />\n </div>\n </div>\n </ng-container>\n} @else if (displayIsInline()) {\n <p-image class=\"inline-image\" [src]=\"displayValue()\" [preview]=\"true\" />\n} @else {\n <p-image [src]=\"displayValue()\" [preview]=\"true\" />\n}\n", styles: [".inline-image{max-height:5em;max-width:10em;display:inline-flex}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FileUpload, selector: "p-fileupload, p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "chooseButtonProps", "uploadButtonProps", "cancelButtonProps", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: Image, selector: "p-image", inputs: ["imageClass", "imageStyle", "styleClass", "src", "srcSet", "sizes", "previewImageSrc", "previewImageSrcSet", "previewImageSizes", "alt", "width", "height", "loading", "preview", "showTransitionOptions", "hideTransitionOptions", "appendTo"], outputs: ["onShow", "onHide", "onImageError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
48
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebImageComponent, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: WebImageComponent, decorators: [{
50
50
  type: Component,
51
51
  args: [{ selector: 'xt-web-image', imports: [
52
52
  ReactiveFormsModule,
@@ -58,10 +58,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
58
58
  }], ctorParameters: () => [] });
59
59
 
60
60
  class WebRatingComponent extends XtSimpleComponent {
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebRatingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
62
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: WebRatingComponent, isStandalone: true, selector: "xt-web-rating", usesInheritance: true, ngImport: i0, template: "@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\">\n <p-rating [readonly]=\"false\" [formControlName]=\"formControlName()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n </ng-container>\n} @else if (displayValue()!=null) {\n <p-rating [readonly]=\"true\" [ngModel]=\"displayValue()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n}\n", styles: [""], dependencies: [{ kind: "component", type: Rating, selector: "p-rating", inputs: ["disabled", "readonly", "stars", "iconOnClass", "iconOnStyle", "iconOffClass", "iconOffStyle", "autofocus"], outputs: ["onRate", "onCancel", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: WebRatingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
62
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.9", type: WebRatingComponent, isStandalone: true, selector: "xt-web-rating", usesInheritance: true, ngImport: i0, template: "@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\">\n <p-rating [readonly]=\"false\" [formControlName]=\"formControlName()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n </ng-container>\n} @else if (displayValue()!=null) {\n <p-rating [readonly]=\"true\" [ngModel]=\"displayValue()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n}\n", styles: [""], dependencies: [{ kind: "component", type: Rating, selector: "p-rating", inputs: ["readonly", "stars", "iconOnClass", "iconOnStyle", "iconOffClass", "iconOffStyle", "autofocus"], outputs: ["onRate", "onFocus", "onBlur"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
63
63
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebRatingComponent, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: WebRatingComponent, decorators: [{
65
65
  type: Component,
66
66
  args: [{ selector: 'xt-web-rating', imports: [
67
67
  Rating,
@@ -82,10 +82,10 @@ class WebLinkComponent extends XtSimpleComponent {
82
82
  else
83
83
  return url;
84
84
  }
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebLinkComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
86
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: WebLinkComponent, isStandalone: true, selector: "xt-web-link", usesInheritance: true, ngImport: i0, template: "@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\"><input [name]=\"componentNameInForm()\" [formControlName]=\"formControlName()\" pInputText [fluid]=\"true\"/></ng-container>\n} @else if (displayValue()!=null) {\n <a [pTooltip]=\"displayValue()\" [href]=\"displayValue()\" target=\"_blank\">{{calculateUrl (displayValue())}}</a>\n}\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: WebLinkComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
86
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.9", type: WebLinkComponent, isStandalone: true, selector: "xt-web-link", usesInheritance: true, ngImport: i0, template: "@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\"><input [name]=\"componentNameInForm()\" [formControlName]=\"formControlName()\" pInputText [fluid]=\"true\"/></ng-container>\n} @else if (displayValue()!=null) {\n <a [pTooltip]=\"displayValue()\" [href]=\"displayValue()\" target=\"_blank\">{{calculateUrl (displayValue())}}</a>\n}\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pSize", "variant", "fluid", "invalid"] }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
87
87
  }
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebLinkComponent, decorators: [{
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: WebLinkComponent, decorators: [{
89
89
  type: Component,
90
90
  args: [{ selector: 'xt-web-link', imports: [
91
91
  ReactiveFormsModule,
@@ -1 +1 @@
1
- {"version":3,"file":"xt-plugin-web.mjs","sources":["../../../projects/web/src/lib/web-image/web-image.component.ts","../../../projects/web/src/lib/web-image/web-image.component.html","../../../projects/web/src/lib/web-rating/web-rating.component.ts","../../../projects/web/src/lib/web-rating/web-rating.component.html","../../../projects/web/src/lib/web-link/web-link.component.ts","../../../projects/web/src/lib/web-link/web-link.component.html","../../../projects/web/src/lib/register.ts","../../../projects/web/src/public-api.ts","../../../projects/web/src/xt-plugin-web.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\nimport { IStoreProvider, MessageHandler, StoreSupport, XtSimpleComponent } from 'xt-components';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FileUpload, FileUploadHandlerEvent } from 'primeng/fileupload';\nimport { NgIf } from '@angular/common';\nimport { InputText } from 'primeng/inputtext';\nimport { Image } from 'primeng/image';\n\n@Component({\n selector: 'xt-web-image',\n imports: [\n ReactiveFormsModule,\n FileUpload,\n NgIf,\n InputText,\n Image\n ],\n templateUrl: './web-image.component.html',\n styleUrl: './web-image.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WebImageComponent extends XtSimpleComponent{\n\n msgHandler= inject(MessageHandler);\n\n store?:IStoreProvider<any>;\n\n displayIsInline = computed<boolean>( () => {\n const displayMode=this.context().displayMode;\n if ((displayMode == \"INLINE_VIEW\") || (displayMode == \"LIST_VIEW\")) {\n return true;\n } else {\n return false;\n }\n });\n\n constructor() {\n super();\n if (StoreSupport.isStoreManagerAvailable()) {\n this.store=StoreSupport.getStoreManager().getDefaultProvider();\n }\n }\n supportsImageUpload() {\n return this.store?.canStoreDocument();\n }\n\n async uploadImage($event: FileUploadHandlerEvent) {\n if (this.store!=null) {\n try {\n const docInfo = await this.store.storeDocument($event.files[0]);\n const done= this.context().setFormValue (docInfo.documentId, true);\n if (!done) throw new Error (\"Cannot update form\");\n } catch (err) {\n this.msgHandler.errorOccurred(err, \"Error while uploading image\");\n }\n\n }\n }\n}\n","@if (isInForm() ) {\n @let componentName=componentNameInForm();\n <ng-container [formGroup]=\"formGroup()\">\n <div class=\"grid grid-cols-[auto_1fr] gap-4\">\n <div>\n <p-fileupload *ngIf=\"supportsImageUpload()\" mode=\"basic\" chooseLabel=\"Browse\" [name]=\"componentName+'-btn'\" [auto]=\"true\" [multiple]=\"false\" accept=\"image/*\" [customUpload]=\"true\" (uploadHandler)=\"uploadImage ($event)\"></p-fileupload>\n </div>\n <div>\n <input [name]=\"componentName\" [formControlName]=\"formControlName()\" pInputText fluid=\"true\" />\n </div>\n </div>\n </ng-container>\n} @else if (displayIsInline()) {\n <p-image class=\"inline-image\" [src]=\"displayValue()\" [preview]=\"true\" />\n} @else {\n <p-image [src]=\"displayValue()\" [preview]=\"true\" />\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { XtSimpleComponent } from 'xt-components';\nimport { Rating } from 'primeng/rating';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'xt-web-rating',\n imports: [\n Rating,\n ReactiveFormsModule,\n FormsModule\n ],\n templateUrl: './web-rating.component.html',\n styleUrl: './web-rating.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WebRatingComponent extends XtSimpleComponent{\n\n}\n","@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\">\n <p-rating [readonly]=\"false\" [formControlName]=\"formControlName()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n </ng-container>\n} @else if (displayValue()!=null) {\n <p-rating [readonly]=\"true\" [ngModel]=\"displayValue()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { XtSimpleComponent } from 'xt-components';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { InputText } from 'primeng/inputtext';\nimport { Tooltip } from 'primeng/tooltip';\n\n@Component({\n selector: 'xt-web-link',\n imports: [\n ReactiveFormsModule,\n InputText,\n Tooltip\n ],\n templateUrl: './web-link.component.html',\n styleUrl: './web-link.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WebLinkComponent extends XtSimpleComponent{\n\n calculateUrl(url: string): string {\n if (url==null) return url;\n\n if (url.includes('//')) {\n url = url.substring(url.indexOf('//')+2);\n }\n\n if (url.length>20)\n return url.substring(0, 17)+'...';\n else\n return url;\n }\n}\n","@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\"><input [name]=\"componentNameInForm()\" [formControlName]=\"formControlName()\" pInputText [fluid]=\"true\"/></ng-container>\n} @else if (displayValue()!=null) {\n <a [pTooltip]=\"displayValue()\" [href]=\"displayValue()\" target=\"_blank\">{{calculateUrl (displayValue())}}</a>\n}\n\n","import { XtResolverService } from 'xt-components';\nimport { WebImageComponent } from './web-image/web-image.component';\nimport { WebLinkComponent } from './web-link/web-link.component';\nimport { WebRatingComponent } from './web-rating/web-rating.component';\n\nexport function registerWebPlugin (resolverService:XtResolverService):string {\n const pluginName = \"Plugin Web\";\n console.info ('Registering '+pluginName);\n resolverService.registerPlugin ({\n name:pluginName,\n uriLogo:'pluginicon.png',\n components: [\n {\n componentName:'WebImage',\n componentClass:WebImageComponent,\n typesHandled: ['image'],\n },{\n componentName:'WebLink',\n componentClass:WebLinkComponent,\n typesHandled: ['link']\n },{\n componentName:'WebRating',\n componentClass:WebRatingComponent,\n typesHandled: ['rating']\n }\n ]\n });\n return pluginName;\n}\n\nexport function registerPlugin (resolverService:XtResolverService):string {\n return registerWebPlugin(resolverService);\n}\n","/*\n * Public API Surface of web plugin\n */\n\nexport * from './lib/web-image/web-image.component';\nexport * from './lib/web-rating/web-rating.component';\nexport * from './lib/web-link/web-link.component';\nexport * from './lib/register';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAqBM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;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,QAAA,EAAA,iWAAA,EAAA;;;AEV3C,SAAU,iBAAiB,CAAE,eAAiC,EAAA;IAClE,MAAM,UAAU,GAAG,YAAY;AAC7B,IAAA,OAAO,CAAC,IAAI,CAAE,cAAc,GAAC,UAAU,CAAC;IACxC,eAAe,CAAC,cAAc,CAAE;AAC5B,QAAA,IAAI,EAAC,UAAU;AACf,QAAA,OAAO,EAAC,gBAAgB;AACxB,QAAA,UAAU,EAAE;AACR,YAAA;AACE,gBAAA,aAAa,EAAC,UAAU;AACxB,gBAAA,cAAc,EAAC,iBAAiB;gBAChC,YAAY,EAAE,CAAC,OAAO,CAAC;aACxB,EAAC;AACF,gBAAA,aAAa,EAAC,SAAS;AACvB,gBAAA,cAAc,EAAC,gBAAgB;gBAC/B,YAAY,EAAE,CAAC,MAAM;aACtB,EAAC;AACA,gBAAA,aAAa,EAAC,WAAW;AACzB,gBAAA,cAAc,EAAC,kBAAkB;gBACjC,YAAY,EAAE,CAAC,QAAQ;AACxB;AACF;AACJ,KAAA,CAAC;AACF,IAAA,OAAO,UAAU;AACrB;AAEM,SAAU,cAAc,CAAE,eAAiC,EAAA;AAC/D,IAAA,OAAO,iBAAiB,CAAC,eAAe,CAAC;AAC3C;;AChCA;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"xt-plugin-web.mjs","sources":["../../../projects/web/src/lib/web-image/web-image.component.ts","../../../projects/web/src/lib/web-image/web-image.component.html","../../../projects/web/src/lib/web-rating/web-rating.component.ts","../../../projects/web/src/lib/web-rating/web-rating.component.html","../../../projects/web/src/lib/web-link/web-link.component.ts","../../../projects/web/src/lib/web-link/web-link.component.html","../../../projects/web/src/lib/register.ts","../../../projects/web/src/public-api.ts","../../../projects/web/src/xt-plugin-web.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\nimport { IStoreProvider, XtMessageHandler, StoreSupport, XtSimpleComponent } from 'xt-components';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FileUpload, FileUploadHandlerEvent } from 'primeng/fileupload';\nimport { NgIf } from '@angular/common';\nimport { InputText } from 'primeng/inputtext';\nimport { Image } from 'primeng/image';\n\n@Component({\n selector: 'xt-web-image',\n imports: [\n ReactiveFormsModule,\n FileUpload,\n NgIf,\n InputText,\n Image\n ],\n templateUrl: './web-image.component.html',\n styleUrl: './web-image.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WebImageComponent extends XtSimpleComponent{\n\n msgHandler= inject(XtMessageHandler);\n\n store?:IStoreProvider<any>;\n\n displayIsInline = computed<boolean>( () => {\n const displayMode=this.context().displayMode;\n if ((displayMode == \"INLINE_VIEW\") || (displayMode == \"LIST_VIEW\")) {\n return true;\n } else {\n return false;\n }\n });\n\n constructor() {\n super();\n if (StoreSupport.isStoreManagerAvailable()) {\n this.store=StoreSupport.getStoreManager().getDefaultProvider();\n }\n }\n supportsImageUpload() {\n return this.store?.canStoreDocument();\n }\n\n async uploadImage($event: FileUploadHandlerEvent) {\n if (this.store!=null) {\n try {\n const docInfo = await this.store.storeDocument($event.files[0]);\n const done= this.context().setFormValue (docInfo.documentId, true);\n if (!done) throw new Error (\"Cannot update form\");\n } catch (err) {\n this.msgHandler.errorOccurred(err, \"Error while uploading image\");\n }\n\n }\n }\n}\n","@if (isInForm() ) {\n @let componentName=componentNameInForm();\n <ng-container [formGroup]=\"formGroup()\">\n <div class=\"grid grid-cols-[auto_1fr] gap-4\">\n <div>\n <p-fileupload *ngIf=\"supportsImageUpload()\" mode=\"basic\" chooseLabel=\"Browse\" [name]=\"componentName+'-btn'\" [auto]=\"true\" [multiple]=\"false\" accept=\"image/*\" [customUpload]=\"true\" (uploadHandler)=\"uploadImage ($event)\"></p-fileupload>\n </div>\n <div>\n <input [name]=\"componentName\" [formControlName]=\"formControlName()\" pInputText fluid=\"true\" />\n </div>\n </div>\n </ng-container>\n} @else if (displayIsInline()) {\n <p-image class=\"inline-image\" [src]=\"displayValue()\" [preview]=\"true\" />\n} @else {\n <p-image [src]=\"displayValue()\" [preview]=\"true\" />\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { XtSimpleComponent } from 'xt-components';\nimport { Rating } from 'primeng/rating';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'xt-web-rating',\n imports: [\n Rating,\n ReactiveFormsModule,\n FormsModule\n ],\n templateUrl: './web-rating.component.html',\n styleUrl: './web-rating.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WebRatingComponent extends XtSimpleComponent{\n\n}\n","@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\">\n <p-rating [readonly]=\"false\" [formControlName]=\"formControlName()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n </ng-container>\n} @else if (displayValue()!=null) {\n <p-rating [readonly]=\"true\" [ngModel]=\"displayValue()\" iconOnClass=\"pi pi-star-fill\" iconOffClass=\"pi pi-star\"></p-rating>\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { XtSimpleComponent } from 'xt-components';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { InputText } from 'primeng/inputtext';\nimport { Tooltip } from 'primeng/tooltip';\n\n@Component({\n selector: 'xt-web-link',\n imports: [\n ReactiveFormsModule,\n InputText,\n Tooltip\n ],\n templateUrl: './web-link.component.html',\n styleUrl: './web-link.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WebLinkComponent extends XtSimpleComponent{\n\n calculateUrl(url: string): string {\n if (url==null) return url;\n\n if (url.includes('//')) {\n url = url.substring(url.indexOf('//')+2);\n }\n\n if (url.length>20)\n return url.substring(0, 17)+'...';\n else\n return url;\n }\n}\n","@if (isInForm() ) {\n <ng-container [formGroup]=\"formGroup()\"><input [name]=\"componentNameInForm()\" [formControlName]=\"formControlName()\" pInputText [fluid]=\"true\"/></ng-container>\n} @else if (displayValue()!=null) {\n <a [pTooltip]=\"displayValue()\" [href]=\"displayValue()\" target=\"_blank\">{{calculateUrl (displayValue())}}</a>\n}\n\n","import { XtResolverService } from 'xt-components';\nimport { WebImageComponent } from './web-image/web-image.component';\nimport { WebLinkComponent } from './web-link/web-link.component';\nimport { WebRatingComponent } from './web-rating/web-rating.component';\n\nexport function registerWebPlugin (resolverService:XtResolverService):string {\n const pluginName = \"Plugin Web\";\n console.info ('Registering ' +pluginName);\n resolverService.registerPlugin ({\n name:pluginName,\n uriLogo:'pluginicon.png',\n components: [\n {\n componentName:'WebImage',\n componentClass:WebImageComponent,\n typesHandled: ['image'],\n },{\n componentName:'WebLink',\n componentClass:WebLinkComponent,\n typesHandled: ['link']\n },{\n componentName:'WebRating',\n componentClass:WebRatingComponent,\n typesHandled: ['rating']\n }\n ]\n });\n return pluginName;\n}\n\nexport function registerPlugin (resolverService:XtResolverService):string {\n return registerWebPlugin(resolverService);\n}\n","/*\n * Public API Surface of web plugin\n */\n\nexport * from './lib/web-image/web-image.component';\nexport * from './lib/web-rating/web-rating.component';\nexport * from './lib/web-link/web-link.component';\nexport * from './lib/register';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAqBM,MAAO,iBAAkB,SAAQ,iBAAiB,CAAA;AAetD,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;AAdT,QAAA,IAAA,CAAA,UAAU,GAAE,MAAM,CAAC,gBAAgB,CAAC;AAIpC,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CAAW,MAAK;YACxC,MAAM,WAAW,GAAC,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW;AAC5C,YAAA,IAAI,CAAC,WAAW,IAAI,aAAa,MAAM,WAAW,IAAI,WAAW,CAAC,EAAE;AAClE,gBAAA,OAAO,IAAI;YACb;iBAAO;AACL,gBAAA,OAAO,KAAK;YACd;AACF,QAAA,CAAC,2DAAC;AAIA,QAAA,IAAI,YAAY,CAAC,uBAAuB,EAAE,EAAE;YAC1C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ACxB,EAAC;AACF,gBAAA,aAAa,EAAC,SAAS;AACvB,gBAAA,cAAc,EAAC,gBAAgB;gBAC/B,YAAY,EAAE,CAAC,MAAM;aACtB,EAAC;AACA,gBAAA,aAAa,EAAC,WAAW;AACzB,gBAAA,cAAc,EAAC,kBAAkB;gBACjC,YAAY,EAAE,CAAC,QAAQ;AACxB;AACF;AACJ,KAAA,CAAC;AACF,IAAA,OAAO,UAAU;AACrB;AAEM,SAAU,cAAc,CAAE,eAAiC,EAAA;AAC/D,IAAA,OAAO,iBAAiB,CAAC,eAAe,CAAC;AAC3C;;AChCA;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,30 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="xt-plugin-web" />
5
- export * from './public-api';
1
+ import * as i0 from '@angular/core';
2
+ import { XtSimpleComponent, XtMessageHandler, IStoreProvider, XtResolverService } from 'xt-components';
3
+ import { FileUploadHandlerEvent } from 'primeng/fileupload';
4
+
5
+ declare class WebImageComponent extends XtSimpleComponent {
6
+ msgHandler: XtMessageHandler;
7
+ store?: IStoreProvider<any>;
8
+ displayIsInline: i0.Signal<boolean>;
9
+ constructor();
10
+ supportsImageUpload(): boolean | undefined;
11
+ uploadImage($event: FileUploadHandlerEvent): Promise<void>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<WebImageComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<WebImageComponent, "xt-web-image", never, {}, {}, never, never, true, never>;
14
+ }
15
+
16
+ declare class WebRatingComponent extends XtSimpleComponent {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<WebRatingComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<WebRatingComponent, "xt-web-rating", never, {}, {}, never, never, true, never>;
19
+ }
20
+
21
+ declare class WebLinkComponent extends XtSimpleComponent {
22
+ calculateUrl(url: string): string;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<WebLinkComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<WebLinkComponent, "xt-web-link", never, {}, {}, never, never, true, never>;
25
+ }
26
+
27
+ declare function registerWebPlugin(resolverService: XtResolverService): string;
28
+ declare function registerPlugin(resolverService: XtResolverService): string;
29
+
30
+ export { WebImageComponent, WebLinkComponent, WebRatingComponent, registerPlugin, registerWebPlugin };
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "xt-plugin-web",
3
- "version": "0.4.8",
3
+ "version": "0.5.5",
4
4
  "peerDependencies": {
5
- "@angular/animations": "^19.0.5",
6
- "@angular/common": "^19.0.5",
7
- "@angular/compiler": "^19.0.5",
8
- "@angular/core": "^19.0.5",
9
- "@angular/forms": "^19.0.5",
10
- "@angular/platform-browser": "^19.0.5",
11
- "@angular/platform-browser-dynamic": "^19.0.5",
12
- "@angular/router": "^19.0.5",
5
+ "@angular/animations": "^20.2.3",
6
+ "@angular/common": "^20.2.3",
7
+ "@angular/compiler": "^20.2.3",
8
+ "@angular/core": "^20.2.3",
9
+ "@angular/forms": "^20.2.3",
10
+ "@angular/platform-browser": "^20.2.3",
11
+ "@angular/platform-browser-dynamic": "^20.2.3",
12
+ "@angular/router": "^20.2.3",
13
13
  "xt-components": "workspace:^",
14
- "rxjs": "^7.8.0",
15
- "primeng": "^19.0.2",
14
+ "rxjs": "^7.8.2",
15
+ "primeng": "^20.0.1",
16
16
  "primeicons": "^7.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "tslib": "^2.3.0"
19
+ "tslib": "^2.8.1"
20
20
  },
21
21
  "sideEffects": false,
22
22
  "module": "fesm2022/xt-plugin-web.mjs",
package/lib/register.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { XtResolverService } from 'xt-components';
2
- export declare function registerWebPlugin(resolverService: XtResolverService): string;
3
- export declare function registerPlugin(resolverService: XtResolverService): string;
@@ -1,13 +0,0 @@
1
- import { IStoreProvider, MessageHandler, XtSimpleComponent } from 'xt-components';
2
- import { FileUploadHandlerEvent } from 'primeng/fileupload';
3
- import * as i0 from "@angular/core";
4
- export declare class WebImageComponent extends XtSimpleComponent {
5
- msgHandler: MessageHandler;
6
- store?: IStoreProvider<any>;
7
- displayIsInline: import("@angular/core").Signal<boolean>;
8
- constructor();
9
- supportsImageUpload(): boolean | undefined;
10
- uploadImage($event: FileUploadHandlerEvent): Promise<void>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<WebImageComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<WebImageComponent, "xt-web-image", never, {}, {}, never, never, true, never>;
13
- }
@@ -1,7 +0,0 @@
1
- import { XtSimpleComponent } from 'xt-components';
2
- import * as i0 from "@angular/core";
3
- export declare class WebLinkComponent extends XtSimpleComponent {
4
- calculateUrl(url: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<WebLinkComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<WebLinkComponent, "xt-web-link", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,6 +0,0 @@
1
- import { XtSimpleComponent } from 'xt-components';
2
- import * as i0 from "@angular/core";
3
- export declare class WebRatingComponent extends XtSimpleComponent {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<WebRatingComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<WebRatingComponent, "xt-web-rating", never, {}, {}, never, never, true, never>;
6
- }
package/public-api.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './lib/web-image/web-image.component';
2
- export * from './lib/web-rating/web-rating.component';
3
- export * from './lib/web-link/web-link.component';
4
- export * from './lib/register';