xt-plugin-web 0.4.4 → 0.4.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.
@@ -2,11 +2,13 @@ import * as i0 from '@angular/core';
2
2
  import { inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { XtSimpleComponent, MessageHandler, StoreSupport } from 'xt-components';
4
4
  import * as i1 from '@angular/forms';
5
- import { ReactiveFormsModule } from '@angular/forms';
5
+ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
6
6
  import { FileUpload } from 'primeng/fileupload';
7
7
  import { NgIf } from '@angular/common';
8
8
  import { InputText } from 'primeng/inputtext';
9
9
  import { Image } from 'primeng/image';
10
+ import { Rating } from 'primeng/rating';
11
+ import { Tooltip } from 'primeng/tooltip';
10
12
 
11
13
  class WebImageComponent extends XtSimpleComponent {
12
14
  constructor() {
@@ -57,20 +59,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
57
59
 
58
60
  class WebRatingComponent extends XtSimpleComponent {
59
61
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebRatingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
60
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: WebRatingComponent, isStandalone: true, selector: "xt-web-rating", usesInheritance: true, ngImport: i0, template: "<p>web-rating works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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
63
  }
62
64
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebRatingComponent, decorators: [{
63
65
  type: Component,
64
- args: [{ selector: 'xt-web-rating', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>web-rating works!</p>\n" }]
66
+ args: [{ selector: 'xt-web-rating', imports: [
67
+ Rating,
68
+ ReactiveFormsModule,
69
+ FormsModule
70
+ ], changeDetection: ChangeDetectionStrategy.OnPush, 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" }]
65
71
  }] });
66
72
 
67
73
  class WebLinkComponent extends XtSimpleComponent {
74
+ calculateUrl(url) {
75
+ if (url == null)
76
+ return url;
77
+ if (url.includes('//')) {
78
+ url = url.substring(url.indexOf('//') + 2);
79
+ }
80
+ if (url.length > 20)
81
+ return url.substring(0, 17) + '...';
82
+ else
83
+ return url;
84
+ }
68
85
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebLinkComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
69
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: WebLinkComponent, isStandalone: true, selector: "xt-web-link", usesInheritance: true, ngImport: i0, template: "<p>web-link works!</p>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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 }); }
70
87
  }
71
88
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebLinkComponent, decorators: [{
72
89
  type: Component,
73
- args: [{ selector: 'xt-web-link', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>web-link works!</p>\n" }]
90
+ args: [{ selector: 'xt-web-link', imports: [
91
+ ReactiveFormsModule,
92
+ InputText,
93
+ Tooltip
94
+ ], changeDetection: ChangeDetectionStrategy.OnPush, 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" }]
74
95
  }] });
75
96
 
76
97
  function registerWebPlugin(resolverService) {
@@ -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.documentName);\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 <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]=\"componentNameInForm ()\" [formControlName]=\"formControlName()\" [auto]=\"true\" [multiple]=\"false\" accept=\"image/*\" [customUpload]=\"true\" (uploadHandler)=\"uploadImage ($event)\"></p-fileupload>\n </div>\n <div>\n <input [name]=\"componentNameInForm ()\" [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';\n\n@Component({\n selector: 'xt-web-rating',\n imports: [],\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","<p>web-rating works!</p>\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { XtSimpleComponent } from 'xt-components';\n\n@Component({\n selector: 'xt-web-link',\n imports: [],\n templateUrl: './web-link.component.html',\n styleUrl: './web-link.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WebLinkComponent extends XtSimpleComponent{\n\n}\n","<p>web-link works!</p>\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):boolean {\n console.info ('Registering Plugin Web');\n resolverService.registerPlugin ({\n name:'PluginWeb',\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 true;\n}\n\nexport function registerPlugin (resolverService:XtResolverService):boolean {\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,cAAc,CAAC;AAIlC,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;;iBACN;AACL,gBAAA,OAAO,KAAK;;AAEhB,SAAC,CAAC;AAIA,QAAA,IAAI,YAAY,CAAC,uBAAuB,EAAE,EAAE;YAC1C,IAAI,CAAC,KAAK,GAAC,YAAY,CAAC,eAAe,EAAE,CAAC,kBAAkB,EAAE;;;IAGlE,mBAAmB,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,KAAK,EAAE,gBAAgB,EAAE;;IAGvC,MAAM,WAAW,CAAC,MAA8B,EAAA;AAC9C,QAAA,IAAI,IAAI,CAAC,KAAK,IAAE,IAAI,EAAE;AACpB,YAAA,IAAI;AACF,gBAAA,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC/D,gBAAA,MAAM,IAAI,GAAE,IAAI,CAAC,OAAO,EAAE,CAAC,YAAY,CAAE,O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C,eAAe,CAAC;AAC3C;;AC9BA;;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, 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.documentName);\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 <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]=\"componentNameInForm ()\" [formControlName]=\"formControlName()\" [auto]=\"true\" [multiple]=\"false\" accept=\"image/*\" [customUpload]=\"true\" (uploadHandler)=\"uploadImage ($event)\"></p-fileupload>\n </div>\n <div>\n <input [name]=\"componentNameInForm ()\" [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):boolean {\n console.info ('Registering Plugin Web');\n resolverService.registerPlugin ({\n name:'PluginWeb',\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 true;\n}\n\nexport function registerPlugin (resolverService:XtResolverService):boolean {\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,iBAA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QAAA,EAAA,iWAAA,EAAA;;;AEV3C,SAAU,iBAAiB,CAAE,eAAiC,EAAA;AAChE,IAAA,OAAO,CAAC,IAAI,CAAE,wBAAwB,CAAC;IACvC,eAAe,CAAC,cAAc,CAAE;AAC5B,QAAA,IAAI,EAAC,WAAW;AAChB,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,IAAI;AACf;AAEM,SAAU,cAAc,CAAE,eAAiC,EAAA;AAC/D,IAAA,OAAO,iBAAiB,CAAC,eAAe,CAAC;AAC3C;;AC9BA;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,6 +1,7 @@
1
1
  import { XtSimpleComponent } from 'xt-components';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class WebLinkComponent extends XtSimpleComponent {
4
+ calculateUrl(url: string): string;
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<WebLinkComponent, never>;
5
6
  static ɵcmp: i0.ɵɵComponentDeclaration<WebLinkComponent, "xt-web-link", never, {}, {}, never, never, true, never>;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xt-plugin-web",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^19.0.5",
6
6
  "@angular/common": "^19.0.5",