xt-plugin-web 0.4.4

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/README.md ADDED
@@ -0,0 +1,17 @@
1
+ ![ng-xtend logo](https://dont-code.net/assets/images/logos/logo-xtend-angular-red-small.png)
2
+
3
+ # Plugin xt-default
4
+
5
+ This plugin is part of the [ng-xtend framework](https://github.com/dont-code/ng-xtend/blob/main/README.md)
6
+
7
+ It enable [xt-components](https://github.com/dont-code/ng-xtend/tree/main/libs/xt-components) to
8
+
9
+ - Display and edit any primitive value
10
+ ![Primitive Editor](https://dont-code.net/assets/images/screenshots/plugin-default-primitive.png)
11
+ - or complex object
12
+ ![Object Editor](https://dont-code.net/assets/images/screenshots/plugin-default-object.png)
13
+ - or list of objects
14
+ ![List Viewer](https://dont-code.net/assets/images//screenshots/plugin-default-list.png)
15
+
16
+ With it you are sure you can display / edit any type within any xt-components application like [xt-host](https://github.com/dont-code/ng-xtend/tree/main/libs/xt-host).
17
+
@@ -0,0 +1,111 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { XtSimpleComponent, MessageHandler, StoreSupport } from 'xt-components';
4
+ import * as i1 from '@angular/forms';
5
+ import { ReactiveFormsModule } from '@angular/forms';
6
+ import { FileUpload } from 'primeng/fileupload';
7
+ import { NgIf } from '@angular/common';
8
+ import { InputText } from 'primeng/inputtext';
9
+ import { Image } from 'primeng/image';
10
+
11
+ class WebImageComponent extends XtSimpleComponent {
12
+ constructor() {
13
+ super();
14
+ this.msgHandler = inject(MessageHandler);
15
+ this.displayIsInline = computed(() => {
16
+ const displayMode = this.context().displayMode;
17
+ if ((displayMode == "INLINE_VIEW") || (displayMode == "LIST_VIEW")) {
18
+ return true;
19
+ }
20
+ else {
21
+ return false;
22
+ }
23
+ });
24
+ if (StoreSupport.isStoreManagerAvailable()) {
25
+ this.store = StoreSupport.getStoreManager().getDefaultProvider();
26
+ }
27
+ }
28
+ supportsImageUpload() {
29
+ return this.store?.canStoreDocument();
30
+ }
31
+ async uploadImage($event) {
32
+ if (this.store != null) {
33
+ try {
34
+ const docInfo = await this.store.storeDocument($event.files[0]);
35
+ const done = this.context().setFormValue(docInfo.documentName);
36
+ if (!done)
37
+ throw new Error("Cannot update form");
38
+ }
39
+ catch (err) {
40
+ this.msgHandler.errorOccurred(err, "Error while uploading image");
41
+ }
42
+ }
43
+ }
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
45
+ 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 <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", 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
+ }
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebImageComponent, decorators: [{
48
+ type: Component,
49
+ args: [{ selector: 'xt-web-image', imports: [
50
+ ReactiveFormsModule,
51
+ FileUpload,
52
+ NgIf,
53
+ InputText,
54
+ Image
55
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@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", styles: [".inline-image{max-height:5em;max-width:10em;display:inline-flex}\n"] }]
56
+ }], ctorParameters: () => [] });
57
+
58
+ class WebRatingComponent extends XtSimpleComponent {
59
+ 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 }); }
61
+ }
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebRatingComponent, decorators: [{
63
+ type: Component,
64
+ args: [{ selector: 'xt-web-rating', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>web-rating works!</p>\n" }]
65
+ }] });
66
+
67
+ class WebLinkComponent extends XtSimpleComponent {
68
+ 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 }); }
70
+ }
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: WebLinkComponent, decorators: [{
72
+ type: Component,
73
+ args: [{ selector: 'xt-web-link', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>web-link works!</p>\n" }]
74
+ }] });
75
+
76
+ function registerWebPlugin(resolverService) {
77
+ console.info('Registering Plugin Web');
78
+ resolverService.registerPlugin({
79
+ name: 'PluginWeb',
80
+ components: [
81
+ {
82
+ componentName: 'WebImage',
83
+ componentClass: WebImageComponent,
84
+ typesHandled: ['image'],
85
+ }, {
86
+ componentName: 'WebLink',
87
+ componentClass: WebLinkComponent,
88
+ typesHandled: ['link']
89
+ }, {
90
+ componentName: 'WebRating',
91
+ componentClass: WebRatingComponent,
92
+ typesHandled: ['rating']
93
+ }
94
+ ]
95
+ });
96
+ return true;
97
+ }
98
+ function registerPlugin(resolverService) {
99
+ return registerWebPlugin(resolverService);
100
+ }
101
+
102
+ /*
103
+ * Public API Surface of web plugin
104
+ */
105
+
106
+ /**
107
+ * Generated bundle index. Do not edit.
108
+ */
109
+
110
+ export { WebImageComponent, WebLinkComponent, WebRatingComponent, registerPlugin, registerWebPlugin };
111
+ //# sourceMappingURL=xt-plugin-web.mjs.map
@@ -0,0 +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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CAAE,eAAiC,EAAA;AAC/D,IAAA,OAAO,iBAAiB,CAAC,eAAe,CAAC;AAC3C;;AC9BA;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="xt-plugin-web" />
5
+ export * from './public-api';
@@ -0,0 +1,3 @@
1
+ import { XtResolverService } from 'xt-components';
2
+ export declare function registerWebPlugin(resolverService: XtResolverService): boolean;
3
+ export declare function registerPlugin(resolverService: XtResolverService): boolean;
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ import { XtSimpleComponent } from 'xt-components';
2
+ import * as i0 from "@angular/core";
3
+ export declare class WebLinkComponent extends XtSimpleComponent {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<WebLinkComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<WebLinkComponent, "xt-web-link", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1,6 @@
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/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "xt-plugin-web",
3
+ "version": "0.4.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",
13
+ "xt-components": "workspace:^",
14
+ "rxjs": "^7.8.0",
15
+ "primeng": "^19.0.2",
16
+ "primeicons": "^7.0.0"
17
+ },
18
+ "dependencies": {
19
+ "tslib": "^2.3.0"
20
+ },
21
+ "sideEffects": false,
22
+ "module": "fesm2022/xt-plugin-web.mjs",
23
+ "typings": "index.d.ts",
24
+ "exports": {
25
+ "./package.json": {
26
+ "default": "./package.json"
27
+ },
28
+ ".": {
29
+ "types": "./index.d.ts",
30
+ "default": "./fesm2022/xt-plugin-web.mjs"
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,4 @@
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';