aril 1.1.52 → 1.1.54
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/esm2022/ui/fileUpload/src/file-upload.component.mjs +4 -3
- package/esm2022/ui/password/src/password.component.mjs +3 -3
- package/esm2022/ui-business/image-viewer/aril-ui-business-image-viewer.mjs +5 -0
- package/esm2022/ui-business/image-viewer/index.mjs +2 -0
- package/esm2022/ui-business/image-viewer/src/aril-image-viewer.component.mjs +111 -0
- package/fesm2022/aril-ui-business-image-viewer.mjs +118 -0
- package/fesm2022/aril-ui-business-image-viewer.mjs.map +1 -0
- package/fesm2022/aril-ui-fileUpload.mjs +3 -2
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +2 -2
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/package.json +86 -80
- package/ui/fileUpload/src/file-upload.component.d.ts +2 -1
- package/ui-business/image-viewer/index.d.ts +1 -0
- package/ui-business/image-viewer/src/aril-image-viewer.component.d.ts +20 -0
|
@@ -26,6 +26,7 @@ export class FileUploadComponent {
|
|
|
26
26
|
this.showCancelButton = input(true);
|
|
27
27
|
this.showNotificationTemplatesButton = input(true);
|
|
28
28
|
this.customUpload = input(false);
|
|
29
|
+
this.mode = input('advanced');
|
|
29
30
|
this.beforeSend = new EventEmitter();
|
|
30
31
|
this.upload = new EventEmitter();
|
|
31
32
|
this.uploadHandler = new EventEmitter();
|
|
@@ -51,11 +52,11 @@ export class FileUploadComponent {
|
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, deps: [{ token: i1.MessageService }, { token: i2.DialogService }, { token: i3.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FileUploadComponent, isStandalone: true, selector: "aril-file-upload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, showUploadButton: { classPropertyName: "showUploadButton", publicName: "showUploadButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null }, showNotificationTemplatesButton: { classPropertyName: "showNotificationTemplatesButton", publicName: "showNotificationTemplatesButton", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { beforeSend: "beforeSend", upload: "upload", uploadHandler: "uploadHandler", errors: "errors", selects: "selects", clear: "clear" }, providers: [MessageService], ngImport: i0, template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i4.FileUpload, selector: "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", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }] }); }
|
|
55
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FileUploadComponent, isStandalone: true, selector: "aril-file-upload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, showUploadButton: { classPropertyName: "showUploadButton", publicName: "showUploadButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null }, showNotificationTemplatesButton: { classPropertyName: "showNotificationTemplatesButton", publicName: "showNotificationTemplatesButton", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { beforeSend: "beforeSend", upload: "upload", uploadHandler: "uploadHandler", errors: "errors", selects: "selects", clear: "clear" }, providers: [MessageService], ngImport: i0, template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[mode]=\"mode()\"\r\n\tchooseLabel=\"{{ fileUpload.chooseButtonLabel }}\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i4.FileUpload, selector: "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", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }] }); }
|
|
55
56
|
}
|
|
56
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, decorators: [{
|
|
57
58
|
type: Component,
|
|
58
|
-
args: [{ standalone: true, selector: 'aril-file-upload', imports: [FileUploadModule, ButtonComponent], providers: [MessageService], template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"] }]
|
|
59
|
+
args: [{ standalone: true, selector: 'aril-file-upload', imports: [FileUploadModule, ButtonComponent], providers: [MessageService], template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[mode]=\"mode()\"\r\n\tchooseLabel=\"{{ fileUpload.chooseButtonLabel }}\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"] }]
|
|
59
60
|
}], ctorParameters: () => [{ type: i1.MessageService }, { type: i2.DialogService }, { type: i3.TranslocoService }], propDecorators: { beforeSend: [{
|
|
60
61
|
type: Output
|
|
61
62
|
}], upload: [{
|
|
@@ -69,4 +70,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
69
70
|
}], clear: [{
|
|
70
71
|
type: Output
|
|
71
72
|
}] } });
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXJpbC91aS9maWxlVXBsb2FkL3NyYy9maWxlLXVwbG9hZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3VpL2ZpbGVVcGxvYWQvc3JjL2ZpbGUtdXBsb2FkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdkUsT0FBTyxFQUFFL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ZXMnKVwiXHJcblx0XHRcdFx0XHQoY2xpY2tFdmVudCk9XCJvcGVuTm90aWZpY2F0aW9uVGVtcGxhdGVzRGlhbG9nKClcIiAvPlxyXG5cdFx0XHR9XHJcblx0XHQ8L2Rpdj5cclxuXHQ8L25nLXRlbXBsYXRlPlxyXG5cclxuXHQ8bmctdGVtcGxhdGUgcFRlbXBsYXRlPVwiY29udGVudFwiPlxyXG5cdFx0QGlmICh1cGxvYWRlZEZpbGVzLmxlbmd0aCkge1xyXG5cdFx0XHQ8ZGl2IGNsYXNzPVwiZmxleCBmbGV4LWNvbHVtblwiPlxyXG5cdFx0XHRcdEBmb3IgKGZpbGUgb2YgdXBsb2FkZWRGaWxlczsgdHJhY2sgZmlsZSkge1xyXG5cdFx0XHRcdFx0PGRpdiBjbGFzcz1cIm10LTJcIj5cclxuXHRcdFx0XHRcdFx0PGkgY2xhc3M9XCJwaSBwaS1maWxlLWV4Y2VsXCIgc3R5bGU9XCJjb2xvcjogc2xhdGVibHVlOyBmb250LXNpemU6IDEuNHJlbVwiPjwvaT5cclxuXHRcdFx0XHRcdFx0e3sgZmlsZS5uYW1lIH19IC0ge3sgZmlsZS5zaXplIH19IGJ5dGVzXHJcblx0XHRcdFx0XHQ8L2Rpdj5cclxuXHRcdFx0XHR9XHJcblx0XHRcdDwvZGl2PlxyXG5cdFx0fVxyXG5cdDwvbmctdGVtcGxhdGU+XHJcbjwvcC1maWxlVXBsb2FkPlxyXG4iXX0=
|
|
@@ -20,10 +20,10 @@ export class PasswordComponent extends BaseInputComponent {
|
|
|
20
20
|
this.tabindex = input();
|
|
21
21
|
}
|
|
22
22
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: PasswordComponent, isStandalone: true, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: { feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: true, isRequired: false, transformFunction: null }, passwordCriterias: { classPropertyName: "passwordCriterias", publicName: "passwordCriterias", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "variant"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i5.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: PasswordComponent, isStandalone: true, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: { feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: true, isRequired: false, transformFunction: null }, passwordCriterias: { classPropertyName: "passwordCriterias", publicName: "passwordCriterias", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\tautocomplete=\"off\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "variant"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i5.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
24
24
|
}
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
|
-
args: [{ standalone: true, selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]', imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n" }]
|
|
27
|
+
args: [{ standalone: true, selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]', imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\tautocomplete=\"off\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n" }]
|
|
28
28
|
}] });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFzc3dvcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXJpbC91aS9wYXNzd29yZC9zcmMvcGFzc3dvcmQuY29t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ZXJcIj5cclxuXHRcdFx0PHAtZGl2aWRlcj48L3AtZGl2aWRlcj5cclxuXHRcdFx0PHAgY2xhc3M9XCJtdC0yXCI+xZ5hcnRsYXI8L3A+XHJcblx0XHRcdDx1bCBjbGFzcz1cInBsLTIgbWwtMiBtdC0wXCIgc3R5bGU9XCJsaW5lLWhlaWdodDogMS41XCI+XHJcblx0XHRcdFx0QGZvciAoY3JpdGVyaWEgb2YgcGFzc3dvcmRDcml0ZXJpYXMoKTsgdHJhY2sgY3JpdGVyaWEpIHtcclxuXHRcdFx0XHRcdDxsaT57eyBjcml0ZXJpYSB9fTwvbGk+XHJcblx0XHRcdFx0fVxyXG5cdFx0XHQ8L3VsPlxyXG5cdFx0PC9uZy10ZW1wbGF0ZT5cclxuXHR9XHJcbjwvcC1wYXNzd29yZD5cclxuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJpbC11aS1idXNpbmVzcy1pbWFnZS12aWV3ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3VpLWJ1c2luZXNzL2ltYWdlLXZpZXdlci9hcmlsLXVpLWJ1c2luZXNzLWltYWdlLXZpZXdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './src/aril-image-viewer.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL3VpLWJ1c2luZXNzL2ltYWdlLXZpZXdlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvYXJpbC1pbWFnZS12aWV3ZXIuY29tcG9uZW50JyJdfQ==
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Component, input, signal, effect } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { API_CONFIGS } from 'aril/boot/config/api';
|
|
4
|
+
import { Apps } from 'aril/boot/config/apps';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common/http";
|
|
7
|
+
import * as i2 from "@angular/common";
|
|
8
|
+
export class ArilImageViewerComponent {
|
|
9
|
+
constructor(http) {
|
|
10
|
+
this.http = http;
|
|
11
|
+
this.imageUrl = input(null);
|
|
12
|
+
this.alt = input('image');
|
|
13
|
+
this.styleClass = input('');
|
|
14
|
+
this.width = input('');
|
|
15
|
+
this.height = input('');
|
|
16
|
+
this.borderRadius = input('');
|
|
17
|
+
this.objectFit = input('cover');
|
|
18
|
+
this.customStyle = input({});
|
|
19
|
+
this.imageDataUrl = signal(null);
|
|
20
|
+
this.isLoading = signal(false);
|
|
21
|
+
this.computedStyle = signal({});
|
|
22
|
+
effect(() => {
|
|
23
|
+
const url = this.imageUrl();
|
|
24
|
+
if (url) {
|
|
25
|
+
this.loadImage(url);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.imageDataUrl.set(null);
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
allowSignalWrites: true
|
|
32
|
+
});
|
|
33
|
+
effect(() => {
|
|
34
|
+
const styles = { ...this.customStyle() };
|
|
35
|
+
if (this.width())
|
|
36
|
+
styles['width'] = this.width();
|
|
37
|
+
if (this.height())
|
|
38
|
+
styles['height'] = this.height();
|
|
39
|
+
if (this.borderRadius())
|
|
40
|
+
styles['border-radius'] = this.borderRadius();
|
|
41
|
+
if (this.objectFit())
|
|
42
|
+
styles['object-fit'] = this.objectFit();
|
|
43
|
+
this.computedStyle.set(styles);
|
|
44
|
+
}, {
|
|
45
|
+
allowSignalWrites: true
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
loadImage(url) {
|
|
49
|
+
this.isLoading.set(true);
|
|
50
|
+
this.imageDataUrl.set(null);
|
|
51
|
+
this.http
|
|
52
|
+
.get(`${API_CONFIGS.getExternalAppEndpoint(Apps.MW)}/buckets/view-object`, {
|
|
53
|
+
params: { url },
|
|
54
|
+
responseType: 'blob'
|
|
55
|
+
})
|
|
56
|
+
.subscribe({
|
|
57
|
+
next: (blob) => {
|
|
58
|
+
const reader = new FileReader();
|
|
59
|
+
reader.onloadend = () => {
|
|
60
|
+
this.imageDataUrl.set(reader.result);
|
|
61
|
+
this.isLoading.set(false);
|
|
62
|
+
};
|
|
63
|
+
reader.readAsDataURL(blob);
|
|
64
|
+
},
|
|
65
|
+
error: () => {
|
|
66
|
+
this.imageDataUrl.set(null);
|
|
67
|
+
this.isLoading.set(false);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilImageViewerComponent, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
72
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ArilImageViewerComponent, isStandalone: true, selector: "aril-image-viewer", inputs: { imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, objectFit: { classPropertyName: "objectFit", publicName: "objectFit", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
73
|
+
@if (imageDataUrl()) {
|
|
74
|
+
<img
|
|
75
|
+
[src]="imageDataUrl()"
|
|
76
|
+
[alt]="alt()"
|
|
77
|
+
[class]="styleClass()"
|
|
78
|
+
[ngStyle]="computedStyle()" />
|
|
79
|
+
} @else if (isLoading()) {
|
|
80
|
+
<div [class]="styleClass()" [ngStyle]="computedStyle()">
|
|
81
|
+
<ng-content select="[loading]"></ng-content>
|
|
82
|
+
</div>
|
|
83
|
+
} @else {
|
|
84
|
+
<ng-content></ng-content>
|
|
85
|
+
}
|
|
86
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
87
|
+
}
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilImageViewerComponent, decorators: [{
|
|
89
|
+
type: Component,
|
|
90
|
+
args: [{
|
|
91
|
+
selector: 'aril-image-viewer',
|
|
92
|
+
standalone: true,
|
|
93
|
+
imports: [CommonModule],
|
|
94
|
+
template: `
|
|
95
|
+
@if (imageDataUrl()) {
|
|
96
|
+
<img
|
|
97
|
+
[src]="imageDataUrl()"
|
|
98
|
+
[alt]="alt()"
|
|
99
|
+
[class]="styleClass()"
|
|
100
|
+
[ngStyle]="computedStyle()" />
|
|
101
|
+
} @else if (isLoading()) {
|
|
102
|
+
<div [class]="styleClass()" [ngStyle]="computedStyle()">
|
|
103
|
+
<ng-content select="[loading]"></ng-content>
|
|
104
|
+
</div>
|
|
105
|
+
} @else {
|
|
106
|
+
<ng-content></ng-content>
|
|
107
|
+
}
|
|
108
|
+
`
|
|
109
|
+
}]
|
|
110
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
111
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJpbC1pbWFnZS12aWV3ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXJpbC91aS1idXNpbmVzcy9pbWFnZS12aWV3ZXIvc3JjL2FyaWwtaW1hZ2Utdmlld2VyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWpFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDbkQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLHVCQUF1QixDQUFDOzs7O0FBc0I3QyxNQUFNLE9BQU8sd0JBQXdCO0lBZXBDLFlBQTZCLElBQWdCO1FBQWhCLFNBQUksR0FBSixJQUFJLENBQVk7UUFkN0MsYUFBUSxHQUFHLEtBQUssQ0FBZ0IsSUFBSSxDQUFDLENBQUM7UUFDdEMsUUFBRyxHQUFHLEtBQUssQ0FBUyxPQUFPLENBQUMsQ0FBQztRQUM3Q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VSZWFkZXIoKTtcclxuXHRcdFx0XHRcdHJlYWRlci5vbmxvYWRlbmQgPSAoKSA9PiB7XHJcblx0XHRcdFx0XHRcdHRoaXMuaW1hZ2VEYXRhVXJsLnNldChyZWFkZXIucmVzdWx0IGFzIHN0cmluZyk7XHJcblx0XHRcdFx0XHRcdHRoaXMuaXNMb2FkaW5nLnNldChmYWxzZSk7XHJcblx0XHRcdFx0XHR9O1xyXG5cdFx0XHRcdFx0cmVhZGVyLnJlYWRBc0RhdGFVUkwoYmxvYik7XHJcblx0XHRcdFx0fSxcclxuXHRcdFx0XHRlcnJvcjogKCkgPT4ge1xyXG5cdFx0XHRcdFx0dGhpcy5pbWFnZURhdGFVcmwuc2V0KG51bGwpO1xyXG5cdFx0XHRcdFx0dGhpcy5pc0xvYWRpbmcuc2V0KGZhbHNlKTtcclxuXHRcdFx0XHR9XHJcblx0XHRcdH0pO1xyXG5cdH1cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, signal, effect, Component } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { API_CONFIGS } from 'aril/boot/config/api';
|
|
6
|
+
import { Apps } from 'aril/boot/config/apps';
|
|
7
|
+
import * as i1 from '@angular/common/http';
|
|
8
|
+
|
|
9
|
+
class ArilImageViewerComponent {
|
|
10
|
+
constructor(http) {
|
|
11
|
+
this.http = http;
|
|
12
|
+
this.imageUrl = input(null);
|
|
13
|
+
this.alt = input('image');
|
|
14
|
+
this.styleClass = input('');
|
|
15
|
+
this.width = input('');
|
|
16
|
+
this.height = input('');
|
|
17
|
+
this.borderRadius = input('');
|
|
18
|
+
this.objectFit = input('cover');
|
|
19
|
+
this.customStyle = input({});
|
|
20
|
+
this.imageDataUrl = signal(null);
|
|
21
|
+
this.isLoading = signal(false);
|
|
22
|
+
this.computedStyle = signal({});
|
|
23
|
+
effect(() => {
|
|
24
|
+
const url = this.imageUrl();
|
|
25
|
+
if (url) {
|
|
26
|
+
this.loadImage(url);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.imageDataUrl.set(null);
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
allowSignalWrites: true
|
|
33
|
+
});
|
|
34
|
+
effect(() => {
|
|
35
|
+
const styles = { ...this.customStyle() };
|
|
36
|
+
if (this.width())
|
|
37
|
+
styles['width'] = this.width();
|
|
38
|
+
if (this.height())
|
|
39
|
+
styles['height'] = this.height();
|
|
40
|
+
if (this.borderRadius())
|
|
41
|
+
styles['border-radius'] = this.borderRadius();
|
|
42
|
+
if (this.objectFit())
|
|
43
|
+
styles['object-fit'] = this.objectFit();
|
|
44
|
+
this.computedStyle.set(styles);
|
|
45
|
+
}, {
|
|
46
|
+
allowSignalWrites: true
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
loadImage(url) {
|
|
50
|
+
this.isLoading.set(true);
|
|
51
|
+
this.imageDataUrl.set(null);
|
|
52
|
+
this.http
|
|
53
|
+
.get(`${API_CONFIGS.getExternalAppEndpoint(Apps.MW)}/buckets/view-object`, {
|
|
54
|
+
params: { url },
|
|
55
|
+
responseType: 'blob'
|
|
56
|
+
})
|
|
57
|
+
.subscribe({
|
|
58
|
+
next: (blob) => {
|
|
59
|
+
const reader = new FileReader();
|
|
60
|
+
reader.onloadend = () => {
|
|
61
|
+
this.imageDataUrl.set(reader.result);
|
|
62
|
+
this.isLoading.set(false);
|
|
63
|
+
};
|
|
64
|
+
reader.readAsDataURL(blob);
|
|
65
|
+
},
|
|
66
|
+
error: () => {
|
|
67
|
+
this.imageDataUrl.set(null);
|
|
68
|
+
this.isLoading.set(false);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilImageViewerComponent, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
73
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: ArilImageViewerComponent, isStandalone: true, selector: "aril-image-viewer", inputs: { imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, borderRadius: { classPropertyName: "borderRadius", publicName: "borderRadius", isSignal: true, isRequired: false, transformFunction: null }, objectFit: { classPropertyName: "objectFit", publicName: "objectFit", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
74
|
+
@if (imageDataUrl()) {
|
|
75
|
+
<img
|
|
76
|
+
[src]="imageDataUrl()"
|
|
77
|
+
[alt]="alt()"
|
|
78
|
+
[class]="styleClass()"
|
|
79
|
+
[ngStyle]="computedStyle()" />
|
|
80
|
+
} @else if (isLoading()) {
|
|
81
|
+
<div [class]="styleClass()" [ngStyle]="computedStyle()">
|
|
82
|
+
<ng-content select="[loading]"></ng-content>
|
|
83
|
+
</div>
|
|
84
|
+
} @else {
|
|
85
|
+
<ng-content></ng-content>
|
|
86
|
+
}
|
|
87
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
88
|
+
}
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ArilImageViewerComponent, decorators: [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{
|
|
92
|
+
selector: 'aril-image-viewer',
|
|
93
|
+
standalone: true,
|
|
94
|
+
imports: [CommonModule],
|
|
95
|
+
template: `
|
|
96
|
+
@if (imageDataUrl()) {
|
|
97
|
+
<img
|
|
98
|
+
[src]="imageDataUrl()"
|
|
99
|
+
[alt]="alt()"
|
|
100
|
+
[class]="styleClass()"
|
|
101
|
+
[ngStyle]="computedStyle()" />
|
|
102
|
+
} @else if (isLoading()) {
|
|
103
|
+
<div [class]="styleClass()" [ngStyle]="computedStyle()">
|
|
104
|
+
<ng-content select="[loading]"></ng-content>
|
|
105
|
+
</div>
|
|
106
|
+
} @else {
|
|
107
|
+
<ng-content></ng-content>
|
|
108
|
+
}
|
|
109
|
+
`
|
|
110
|
+
}]
|
|
111
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Generated bundle index. Do not edit.
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
export { ArilImageViewerComponent };
|
|
118
|
+
//# sourceMappingURL=aril-ui-business-image-viewer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-ui-business-image-viewer.mjs","sources":["../../projects/aril/ui-business/image-viewer/src/aril-image-viewer.component.ts","../../projects/aril/ui-business/image-viewer/aril-ui-business-image-viewer.ts"],"sourcesContent":["import { Component, input, signal, effect } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { CommonModule } from '@angular/common';\r\nimport { API_CONFIGS } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\n\r\n@Component({\r\n\tselector: 'aril-image-viewer',\r\n\tstandalone: true,\r\n\timports: [CommonModule],\r\n\ttemplate: `\r\n\t\t@if (imageDataUrl()) {\r\n\t\t\t<img \r\n\t\t\t\t[src]=\"imageDataUrl()\" \r\n\t\t\t\t[alt]=\"alt()\" \r\n\t\t\t\t[class]=\"styleClass()\" \r\n\t\t\t\t[ngStyle]=\"computedStyle()\" />\r\n\t\t} @else if (isLoading()) {\r\n\t\t\t<div [class]=\"styleClass()\" [ngStyle]=\"computedStyle()\">\r\n\t\t\t\t<ng-content select=\"[loading]\"></ng-content>\r\n\t\t\t</div>\r\n\t\t} @else {\r\n\t\t\t<ng-content></ng-content>\r\n\t\t}\r\n\t`\r\n})\r\nexport class ArilImageViewerComponent {\r\n\timageUrl = input<string | null>(null);\r\n\talt = input<string>('image');\r\n\tstyleClass = input<string>('');\r\n\twidth = input<string>('');\r\n\theight = input<string>('');\r\n\tborderRadius = input<string>('');\r\n\tobjectFit = input<'contain' | 'cover' | 'fill' | 'none' | 'scale-down'>('cover');\r\n\tcustomStyle = input<Record<string, string>>({});\r\n\r\n\timageDataUrl = signal<string | null>(null);\r\n\tisLoading = signal<boolean>(false);\r\n\r\n\tcomputedStyle = signal<Record<string, string>>({});\r\n\r\n\tconstructor(private readonly http: HttpClient) {\r\n\t\teffect(() => {\r\n\t\t\tconst url = this.imageUrl();\r\n\t\t\tif (url) {\r\n\t\t\t\tthis.loadImage(url);\r\n\t\t\t} else {\r\n\t\t\t\tthis.imageDataUrl.set(null);\r\n\t\t\t}\r\n\t\t},{\r\n allowSignalWrites: true\r\n });\r\n\r\n\t\teffect(() => {\r\n\t\t\tconst styles: Record<string, string> = { ...this.customStyle() };\r\n\t\t\t\r\n\t\t\tif (this.width()) styles['width'] = this.width();\r\n\t\t\tif (this.height()) styles['height'] = this.height();\r\n\t\t\tif (this.borderRadius()) styles['border-radius'] = this.borderRadius();\r\n\t\t\tif (this.objectFit()) styles['object-fit'] = this.objectFit();\r\n\t\t\t\r\n\t\t\tthis.computedStyle.set(styles);\r\n\t\t}, {\r\n\t\t\tallowSignalWrites: true\r\n\t\t});\r\n\t}\r\n\r\n\tprivate loadImage(url: string) {\r\n\t\tthis.isLoading.set(true);\r\n\t\tthis.imageDataUrl.set(null);\r\n\r\n\t\tthis.http\r\n\t\t\t.get(`${API_CONFIGS.getExternalAppEndpoint(Apps.MW)}/buckets/view-object`, {\r\n\t\t\t\tparams: { url },\r\n\t\t\t\tresponseType: 'blob'\r\n\t\t\t})\r\n\t\t\t.subscribe({\r\n\t\t\t\tnext: (blob) => {\r\n\t\t\t\t\tconst reader = new FileReader();\r\n\t\t\t\t\treader.onloadend = () => {\r\n\t\t\t\t\t\tthis.imageDataUrl.set(reader.result as string);\r\n\t\t\t\t\t\tthis.isLoading.set(false);\r\n\t\t\t\t\t};\r\n\t\t\t\t\treader.readAsDataURL(blob);\r\n\t\t\t\t},\r\n\t\t\t\terror: () => {\r\n\t\t\t\t\tthis.imageDataUrl.set(null);\r\n\t\t\t\t\tthis.isLoading.set(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MA0Ba,wBAAwB,CAAA;AAepC,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAd7C,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAAS,OAAO,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC1B,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AAC3B,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAuD,OAAO,CAAC,CAAC;AACjF,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAyB,EAAE,CAAC,CAAC;AAEhD,QAAA,IAAA,CAAA,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A,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;AAcT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAfS,YAAY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAiBV,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;AAcT,CAAA,CAAA;AACD,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
|
@@ -27,6 +27,7 @@ class FileUploadComponent {
|
|
|
27
27
|
this.showCancelButton = input(true);
|
|
28
28
|
this.showNotificationTemplatesButton = input(true);
|
|
29
29
|
this.customUpload = input(false);
|
|
30
|
+
this.mode = input('advanced');
|
|
30
31
|
this.beforeSend = new EventEmitter();
|
|
31
32
|
this.upload = new EventEmitter();
|
|
32
33
|
this.uploadHandler = new EventEmitter();
|
|
@@ -52,11 +53,11 @@ class FileUploadComponent {
|
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, deps: [{ token: i1.MessageService }, { token: i2.DialogService }, { token: i3.TranslocoService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
55
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FileUploadComponent, isStandalone: true, selector: "aril-file-upload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, showUploadButton: { classPropertyName: "showUploadButton", publicName: "showUploadButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null }, showNotificationTemplatesButton: { classPropertyName: "showNotificationTemplatesButton", publicName: "showNotificationTemplatesButton", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { beforeSend: "beforeSend", upload: "upload", uploadHandler: "uploadHandler", errors: "errors", selects: "selects", clear: "clear" }, providers: [MessageService], ngImport: i0, template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i4.FileUpload, selector: "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", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }] }); }
|
|
56
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FileUploadComponent, isStandalone: true, selector: "aril-file-upload", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, auto: { classPropertyName: "auto", publicName: "auto", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, withCredentials: { classPropertyName: "withCredentials", publicName: "withCredentials", isSignal: true, isRequired: false, transformFunction: null }, showUploadButton: { classPropertyName: "showUploadButton", publicName: "showUploadButton", isSignal: true, isRequired: false, transformFunction: null }, showCancelButton: { classPropertyName: "showCancelButton", publicName: "showCancelButton", isSignal: true, isRequired: false, transformFunction: null }, showNotificationTemplatesButton: { classPropertyName: "showNotificationTemplatesButton", publicName: "showNotificationTemplatesButton", isSignal: true, isRequired: false, transformFunction: null }, customUpload: { classPropertyName: "customUpload", publicName: "customUpload", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { beforeSend: "beforeSend", upload: "upload", uploadHandler: "uploadHandler", errors: "errors", selects: "selects", clear: "clear" }, providers: [MessageService], ngImport: i0, template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[mode]=\"mode()\"\r\n\tchooseLabel=\"{{ fileUpload.chooseButtonLabel }}\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i4.FileUpload, selector: "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", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: ButtonComponent, selector: "aril-button:not([click])", inputs: ["label", "loading", "disabled", "raised", "rounded", "text", "outlined", "badge", "size", "icon", "iconPos", "color"], outputs: ["clickEvent"] }] }); }
|
|
56
57
|
}
|
|
57
58
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, decorators: [{
|
|
58
59
|
type: Component,
|
|
59
|
-
args: [{ standalone: true, selector: 'aril-file-upload', imports: [FileUploadModule, ButtonComponent], providers: [MessageService], template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"] }]
|
|
60
|
+
args: [{ standalone: true, selector: 'aril-file-upload', imports: [FileUploadModule, ButtonComponent], providers: [MessageService], template: "<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[mode]=\"mode()\"\r\n\tchooseLabel=\"{{ fileUpload.chooseButtonLabel }}\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n", styles: [":host ::ng-deep .p-fileupload-buttonbar{display:flex;justify-content:center}\n"] }]
|
|
60
61
|
}], ctorParameters: () => [{ type: i1.MessageService }, { type: i2.DialogService }, { type: i3.TranslocoService }], propDecorators: { beforeSend: [{
|
|
61
62
|
type: Output
|
|
62
63
|
}], upload: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-fileUpload.mjs","sources":["../../projects/aril/ui/fileUpload/src/file-upload.component.ts","../../projects/aril/ui/fileUpload/src/file-upload.component.html","../../projects/aril/ui/fileUpload/aril-ui-fileUpload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { HttpEvent } from '@angular/common/http';\r\nimport { Component, EventEmitter, Output, input } from '@angular/core';\r\n\r\nimport { MessageService } from 'primeng/api';\r\nimport { DialogService } from 'primeng/dynamicdialog';\r\nimport { FileUploadModule } from 'primeng/fileupload';\r\n\r\nimport { TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { NotificationTemplatesDialogComponent } from 'aril/ui-business/notification-templates-dialog';\r\nimport { ButtonComponent } from 'aril/ui/button';\r\n\r\ninterface UploadEvent {\r\n\toriginalEvent: HttpEvent<any>;\r\n\tfiles: File[];\r\n}\r\n\r\ninterface UploadFile {\r\n\tname: string;\r\n\tsize: number;\r\n\ttype: string;\r\n\tobjectURL?: string;\r\n}\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-file-upload',\r\n\ttemplateUrl: './file-upload.component.html',\r\n\timports: [FileUploadModule, ButtonComponent],\r\n\tproviders: [MessageService],\r\n\tstyles: [\r\n\t\t`\r\n\t\t\t:host ::ng-deep .p-fileupload-buttonbar {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t}\r\n\t\t`\r\n\t]\r\n})\r\nexport class FileUploadComponent {\r\n\tname = input<string>();\r\n\turl = input.required<string>();\r\n\tmultiple = input(false);\r\n\taccept = input<string>('.xlsx');\r\n\tdisabled = input(false);\r\n\tauto = input(false);\r\n\tmaxFileSize = input<number>();\r\n\ttabindex = input<number>();\r\n\twithCredentials = input(false);\r\n\tshowUploadButton = input(true);\r\n\tshowCancelButton = input(true);\r\n\tshowNotificationTemplatesButton = input(true);\r\n\tcustomUpload = input(false);\r\n\r\n\t@Output() beforeSend: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() upload: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() uploadHandler: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() errors: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() selects: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() clear: EventEmitter<unknown> = new EventEmitter();\r\n\r\n\tuploadedFiles: UploadFile[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate readonly messageService: MessageService,\r\n\t\tprivate readonly dialogService: DialogService,\r\n\t\tpublic readonly translocoService: TranslocoService\r\n\t) {}\r\n\r\n\tonUpload(event: UploadEvent) {\r\n\t\tthis.upload.emit(event);\r\n\t\tthis.uploadedFiles = event.files;\r\n\t\tthis.messageService.add({ key: 'toast-root', severity: 'success', summary: 'Dosya başarıyla yüklendi.' });\r\n\t}\r\n\r\n\tonError(event: any) {\r\n\t\tthis.errors.emit(event);\r\n\t\tthis.messageService.add({ key: 'toast-root', severity: 'error', summary: 'Dosya yüklenemedi.' });\r\n\t}\r\n\r\n\topenNotificationTemplatesDialog() {\r\n\t\tthis.dialogService.open(NotificationTemplatesDialogComponent, {\r\n\t\t\tcontentStyle: { overflow: 'hidden', 'max-width': '500px' },\r\n\t\t\tdraggable: true,\r\n\t\t\theader: this.translocoService.translate('notifications.notificationTemplates')\r\n\t\t});\r\n\t}\r\n}\r\n","<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAwCa,mBAAmB,CAAA;AAwB/B,IAAA,WAAA,CACkB,cAA8B,EAC9B,aAA4B,EAC7B,gBAAkC,EAAA;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AAgB,EAAE,eAAe,CAAC,EAAA,SAAA,EACjC,CAAC,cAAc,CAAC,EAAA,QAAA,EAAA,ixFAAA,EAAA,MAAA,EAAA,CAAA,gFAAA,CAAA,EAAA,CAAA;8IAyBjB,UAAU,EAAA,CAAA;sBAAnB,MAAM;gBACG,MAAM,EAAA,CAAA;sBAAf,MAAM;gBACG,aAAa,EAAA,CAAA;sBAAtB,MAAM;gBACG,MAAM,EAAA,CAAA;sBAAf,MAAM;gBACG,OAAO,EAAA,CAAA;sBAAhB,MAAM;gBACG,KAAK,EAAA,CAAA;sBAAd,MAAM;;;AE5DR;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"aril-ui-fileUpload.mjs","sources":["../../projects/aril/ui/fileUpload/src/file-upload.component.ts","../../projects/aril/ui/fileUpload/src/file-upload.component.html","../../projects/aril/ui/fileUpload/aril-ui-fileUpload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { HttpEvent } from '@angular/common/http';\r\nimport { Component, EventEmitter, Output, input } from '@angular/core';\r\n\r\nimport { MessageService } from 'primeng/api';\r\nimport { DialogService } from 'primeng/dynamicdialog';\r\nimport { FileUploadModule } from 'primeng/fileupload';\r\n\r\nimport { TranslocoService } from '@ngneat/transloco';\r\n\r\nimport { NotificationTemplatesDialogComponent } from 'aril/ui-business/notification-templates-dialog';\r\nimport { ButtonComponent } from 'aril/ui/button';\r\n\r\ninterface UploadEvent {\r\n\toriginalEvent: HttpEvent<any>;\r\n\tfiles: File[];\r\n}\r\n\r\ninterface UploadFile {\r\n\tname: string;\r\n\tsize: number;\r\n\ttype: string;\r\n\tobjectURL?: string;\r\n}\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-file-upload',\r\n\ttemplateUrl: './file-upload.component.html',\r\n\timports: [FileUploadModule, ButtonComponent],\r\n\tproviders: [MessageService],\r\n\tstyles: [\r\n\t\t`\r\n\t\t\t:host ::ng-deep .p-fileupload-buttonbar {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t}\r\n\t\t`\r\n\t]\r\n})\r\nexport class FileUploadComponent {\r\n\tname = input<string>();\r\n\turl = input.required<string>();\r\n\tmultiple = input(false);\r\n\taccept = input<string>('.xlsx');\r\n\tdisabled = input(false);\r\n\tauto = input(false);\r\n\tmaxFileSize = input<number>();\r\n\ttabindex = input<number>();\r\n\twithCredentials = input(false);\r\n\tshowUploadButton = input(true);\r\n\tshowCancelButton = input(true);\r\n\tshowNotificationTemplatesButton = input(true);\r\n\tcustomUpload = input(false);\r\n\tmode = input<'advanced' | 'basic'>('advanced');\r\n\t\r\n\t@Output() beforeSend: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() upload: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() uploadHandler: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() errors: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() selects: EventEmitter<unknown> = new EventEmitter();\r\n\t@Output() clear: EventEmitter<unknown> = new EventEmitter();\r\n\r\n\tuploadedFiles: UploadFile[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate readonly messageService: MessageService,\r\n\t\tprivate readonly dialogService: DialogService,\r\n\t\tpublic readonly translocoService: TranslocoService\r\n\t) {}\r\n\r\n\tonUpload(event: UploadEvent) {\r\n\t\tthis.upload.emit(event);\r\n\t\tthis.uploadedFiles = event.files;\r\n\t\tthis.messageService.add({ key: 'toast-root', severity: 'success', summary: 'Dosya başarıyla yüklendi.' });\r\n\t}\r\n\r\n\tonError(event: any) {\r\n\t\tthis.errors.emit(event);\r\n\t\tthis.messageService.add({ key: 'toast-root', severity: 'error', summary: 'Dosya yüklenemedi.' });\r\n\t}\r\n\r\n\topenNotificationTemplatesDialog() {\r\n\t\tthis.dialogService.open(NotificationTemplatesDialogComponent, {\r\n\t\t\tcontentStyle: { overflow: 'hidden', 'max-width': '500px' },\r\n\t\t\tdraggable: true,\r\n\t\t\theader: this.translocoService.translate('notifications.notificationTemplates')\r\n\t\t});\r\n\t}\r\n}\r\n","<p-fileUpload\r\n\t#fileUpload\r\n\t[name]=\"name()\"\r\n\t[url]=\"url()\"\r\n\tmethod=\"post\"\r\n\t[multiple]=\"multiple()\"\r\n\t[mode]=\"mode()\"\r\n\tchooseLabel=\"{{ fileUpload.chooseButtonLabel }}\"\r\n\t[accept]=\"accept()\"\r\n\t[disabled]=\"disabled()\"\r\n\t[auto]=\"auto()\"\r\n\t[maxFileSize]=\"maxFileSize()\"\r\n\t[tabindex]=\"tabindex()\"\r\n\t[withCredentials]=\"withCredentials()\"\r\n\t[showUploadButton]=\"showUploadButton()\"\r\n\t[showCancelButton]=\"showCancelButton()\"\r\n\t[customUpload]=\"customUpload()\"\r\n\t[invalidFileTypeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageSummary')\"\r\n\t[invalidFileTypeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileTypeMessageDetail')\"\r\n\t[invalidFileSizeMessageSummary]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageSummary')\"\r\n\t[invalidFileSizeMessageDetail]=\"this.translocoService.translate('fileUpload.invalidFileSizeMessageDetail')\"\r\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\r\n\t(onUpload)=\"onUpload($event)\"\r\n\t(uploadHandler)=\"uploadHandler.emit($event)\"\r\n\t(onError)=\"onError($event)\"\r\n\t(onSelect)=\"selects.emit($event)\"\r\n\t(onClear)=\"clear.emit($event)\">\r\n\t<ng-template pTemplate=\"header\" let-files>\r\n\t\t<div class=\"flex gap-2\">\r\n\t\t\t<aril-button\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\ticon=\"PLUS\"\r\n\t\t\t\t[label]=\"fileUpload.chooseButtonLabel\"\r\n\t\t\t\t(clickEvent)=\"fileUpload.choose()\" />\r\n\r\n\t\t\t@if (showUploadButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"UPLOAD\"\r\n\t\t\t\t\t[label]=\"fileUpload.uploadButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.upload()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showCancelButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"TIMES\"\r\n\t\t\t\t\t[label]=\"fileUpload.cancelButtonLabel\"\r\n\t\t\t\t\t(clickEvent)=\"fileUpload.clear()\"\r\n\t\t\t\t\t[disabled]=\"!files || files.length === 0\" />\r\n\t\t\t}\r\n\r\n\t\t\t@if (showNotificationTemplatesButton()) {\r\n\t\t\t\t<aril-button\r\n\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\ticon=\"LIST\"\r\n\t\t\t\t\t[label]=\"translocoService.translate('notifications.notificationTemplates')\"\r\n\t\t\t\t\t(clickEvent)=\"openNotificationTemplatesDialog()\" />\r\n\t\t\t}\r\n\t\t</div>\r\n\t</ng-template>\r\n\r\n\t<ng-template pTemplate=\"content\">\r\n\t\t@if (uploadedFiles.length) {\r\n\t\t\t<div class=\"flex flex-column\">\r\n\t\t\t\t@for (file of uploadedFiles; track file) {\r\n\t\t\t\t\t<div class=\"mt-2\">\r\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\r\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\r\n\t\t\t\t\t</div>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t}\r\n\t</ng-template>\r\n</p-fileUpload>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAwCa,mBAAmB,CAAA;AAyB/B,IAAA,WAAA,CACkB,cAA8B,EAC9B,aAA4B,EAC7B,gBAAkC,EAAA;QAFjC,IAAc,CAAA,cAAA,GAAd,c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,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAW/B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAf/B,SAAS;iCACG,IAAI,EAAA,QAAA,EACN,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,EAAE,eAAe,CAAC,EAAA,SAAA,EACjC,CAAC,cAAc,CAAC,EAAA,QAAA,EAAA,g2FAAA,EAAA,MAAA,EAAA,CAAA,gFAAA,CAAA,EAAA,CAAA;8IA0BjB,UAAU,EAAA,CAAA;sBAAnB,MAAM;gBACG,MAAM,EAAA,CAAA;sBAAf,MAAM;gBACG,aAAa,EAAA,CAAA;sBAAtB,MAAM;gBACG,MAAM,EAAA,CAAA;sBAAf,MAAM;gBACG,OAAO,EAAA,CAAA;sBAAhB,MAAM;gBACG,KAAK,EAAA,CAAA;sBAAd,MAAM;;;AE7DR;;AAEG;;;;"}
|
|
@@ -21,11 +21,11 @@ class PasswordComponent extends BaseInputComponent {
|
|
|
21
21
|
this.tabindex = input();
|
|
22
22
|
}
|
|
23
23
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: PasswordComponent, isStandalone: true, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: { feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: true, isRequired: false, transformFunction: null }, passwordCriterias: { classPropertyName: "passwordCriterias", publicName: "passwordCriterias", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "variant"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i5.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: PasswordComponent, isStandalone: true, selector: "aril-password[ngModel], aril-password[formControl], aril-password[formControlName]", inputs: { feedback: { classPropertyName: "feedback", publicName: "feedback", isSignal: true, isRequired: false, transformFunction: null }, passwordCriterias: { classPropertyName: "passwordCriterias", publicName: "passwordCriterias", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\tautocomplete=\"off\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PasswordModule }, { kind: "component", type: i3.Password, selector: "p-password", inputs: ["ariaLabel", "ariaLabelledBy", "label", "disabled", "promptLabel", "mediumRegex", "strongRegex", "weakLabel", "mediumLabel", "maxLength", "strongLabel", "inputId", "feedback", "appendTo", "toggleMask", "inputStyleClass", "styleClass", "style", "inputStyle", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "placeholder", "showClear", "autofocus", "variant"], outputs: ["onFocus", "onBlur", "onClear"] }, { kind: "directive", type: i4.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i5.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i6.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
25
25
|
}
|
|
26
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
|
-
args: [{ standalone: true, selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]', imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n" }]
|
|
28
|
+
args: [{ standalone: true, selector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]', imports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-password\r\n\t[feedback]=\"feedback()\"\r\n\tautocomplete=\"off\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>\u015Eifre Olu\u015Ftur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">\u015Eartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n" }]
|
|
29
29
|
}] });
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-password.mjs","sources":["../../projects/aril/ui/password/src/password.component.ts","../../projects/aril/ui/password/src/password.component.html","../../projects/aril/ui/password/aril-ui-password.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { DividerModule } from 'primeng/divider';\r\nimport { PasswordModule } from 'primeng/password';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]',\r\n\ttemplateUrl: './password.component.html',\r\n\timports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class PasswordComponent extends BaseInputComponent {\r\n\tfeedback = input(false);\r\n\tpasswordCriterias = input<string[]>();\r\n\tplaceholder = input<string>('');\r\n\ttabindex = input<number>();\r\n}\r\n","<p-password\r\n\t[feedback]=\"feedback()\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>Şifre Oluştur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">Şartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QACxB,IAAiB,CAAA,iBAAA,GAAG,KAAK,EAAY,CAAC;AACtC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,EAAE,CAAC,CAAC;QAChC,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC3B,KAAA;8GALY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oFAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChB9B,
|
|
1
|
+
{"version":3,"file":"aril-ui-password.mjs","sources":["../../projects/aril/ui/password/src/password.component.ts","../../projects/aril/ui/password/src/password.component.html","../../projects/aril/ui/password/aril-ui-password.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\n\r\nimport { DividerModule } from 'primeng/divider';\r\nimport { PasswordModule } from 'primeng/password';\r\nimport { TooltipModule } from 'primeng/tooltip';\r\n\r\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-password[ngModel], aril-password[formControl], aril-password[formControlName]',\r\n\ttemplateUrl: './password.component.html',\r\n\timports: [ReactiveFormsModule, PasswordModule, DividerModule, TooltipModule, InputErrorMessagePipe],\r\n\thostDirectives: [ValueAccessorDirective]\r\n})\r\nexport class PasswordComponent extends BaseInputComponent {\r\n\tfeedback = input(false);\r\n\tpasswordCriterias = input<string[]>();\r\n\tplaceholder = input<string>('');\r\n\ttabindex = input<number>();\r\n}\r\n","<p-password\r\n\t[feedback]=\"feedback()\"\r\n\tautocomplete=\"off\"\r\n\t[toggleMask]=\"true\"\r\n\t[placeholder]=\"placeholder()\"\r\n\t[tabindex]=\"tabindex\"\r\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\r\n\t[tooltipOptions]=\"tooltipOptions\"\r\n\t[formControl]=\"ngControl.control\"\r\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\r\n\t@if (passwordCriterias()?.length) {\r\n\t\t<ng-template pTemplate=\"header\">\r\n\t\t\t<h6>Şifre Oluştur</h6>\r\n\t\t</ng-template>\r\n\t\t<ng-template pTemplate=\"footer\">\r\n\t\t\t<p-divider></p-divider>\r\n\t\t\t<p class=\"mt-2\">Şartlar</p>\r\n\t\t\t<ul class=\"pl-2 ml-2 mt-0\" style=\"line-height: 1.5\">\r\n\t\t\t\t@for (criteria of passwordCriterias(); track criteria) {\r\n\t\t\t\t\t<li>{{ criteria }}</li>\r\n\t\t\t\t}\r\n\t\t\t</ul>\r\n\t\t</ng-template>\r\n\t}\r\n</p-password>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QACx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AA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,eAAA,EAAA,mBAAA,EAAA,eAAA,EAAA,QAAA,EAAA,WAAA,EAAA,WAAA,EAAA,MAAA,EAAA,aAAA,EAAA,cAAA,EAAA,UAAA,EAAA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGtF,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,oFAAoF,EAAA,OAAA,EAErF,CAAC,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACnF,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,45BAAA,EAAA,CAAA;;;AEdzC;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aril",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.54",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "~17.1.0",
|
|
6
6
|
"@angular/common": "^17.1.0",
|
|
@@ -51,12 +51,6 @@
|
|
|
51
51
|
"esm": "./esm2022/http/aril-http.mjs",
|
|
52
52
|
"default": "./fesm2022/aril-http.mjs"
|
|
53
53
|
},
|
|
54
|
-
"./keycloak": {
|
|
55
|
-
"types": "./keycloak/index.d.ts",
|
|
56
|
-
"esm2022": "./esm2022/keycloak/aril-keycloak.mjs",
|
|
57
|
-
"esm": "./esm2022/keycloak/aril-keycloak.mjs",
|
|
58
|
-
"default": "./fesm2022/aril-keycloak.mjs"
|
|
59
|
-
},
|
|
60
54
|
"./boot": {
|
|
61
55
|
"types": "./boot/index.d.ts",
|
|
62
56
|
"esm2022": "./esm2022/boot/aril-boot.mjs",
|
|
@@ -69,11 +63,11 @@
|
|
|
69
63
|
"esm": "./esm2022/i18n/aril-i18n.mjs",
|
|
70
64
|
"default": "./fesm2022/aril-i18n.mjs"
|
|
71
65
|
},
|
|
72
|
-
"./
|
|
73
|
-
"types": "./
|
|
74
|
-
"esm2022": "./esm2022/
|
|
75
|
-
"esm": "./esm2022/
|
|
76
|
-
"default": "./fesm2022/aril-
|
|
66
|
+
"./keycloak": {
|
|
67
|
+
"types": "./keycloak/index.d.ts",
|
|
68
|
+
"esm2022": "./esm2022/keycloak/aril-keycloak.mjs",
|
|
69
|
+
"esm": "./esm2022/keycloak/aril-keycloak.mjs",
|
|
70
|
+
"default": "./fesm2022/aril-keycloak.mjs"
|
|
77
71
|
},
|
|
78
72
|
"./theme": {
|
|
79
73
|
"types": "./theme/index.d.ts",
|
|
@@ -81,6 +75,12 @@
|
|
|
81
75
|
"esm": "./esm2022/theme/aril-theme.mjs",
|
|
82
76
|
"default": "./fesm2022/aril-theme.mjs"
|
|
83
77
|
},
|
|
78
|
+
"./provider": {
|
|
79
|
+
"types": "./provider/index.d.ts",
|
|
80
|
+
"esm2022": "./esm2022/provider/aril-provider.mjs",
|
|
81
|
+
"esm": "./esm2022/provider/aril-provider.mjs",
|
|
82
|
+
"default": "./fesm2022/aril-provider.mjs"
|
|
83
|
+
},
|
|
84
84
|
"./ui": {
|
|
85
85
|
"types": "./ui/index.d.ts",
|
|
86
86
|
"esm2022": "./esm2022/ui/aril-ui.mjs",
|
|
@@ -99,18 +99,18 @@
|
|
|
99
99
|
"esm": "./esm2022/util/aril-util.mjs",
|
|
100
100
|
"default": "./fesm2022/aril-util.mjs"
|
|
101
101
|
},
|
|
102
|
-
"./boot/host": {
|
|
103
|
-
"types": "./boot/host/index.d.ts",
|
|
104
|
-
"esm2022": "./esm2022/boot/host/aril-boot-host.mjs",
|
|
105
|
-
"esm": "./esm2022/boot/host/aril-boot-host.mjs",
|
|
106
|
-
"default": "./fesm2022/aril-boot-host.mjs"
|
|
107
|
-
},
|
|
108
102
|
"./boot/mfe": {
|
|
109
103
|
"types": "./boot/mfe/index.d.ts",
|
|
110
104
|
"esm2022": "./esm2022/boot/mfe/aril-boot-mfe.mjs",
|
|
111
105
|
"esm": "./esm2022/boot/mfe/aril-boot-mfe.mjs",
|
|
112
106
|
"default": "./fesm2022/aril-boot-mfe.mjs"
|
|
113
107
|
},
|
|
108
|
+
"./boot/host": {
|
|
109
|
+
"types": "./boot/host/index.d.ts",
|
|
110
|
+
"esm2022": "./esm2022/boot/host/aril-boot-host.mjs",
|
|
111
|
+
"esm": "./esm2022/boot/host/aril-boot-host.mjs",
|
|
112
|
+
"default": "./fesm2022/aril-boot-host.mjs"
|
|
113
|
+
},
|
|
114
114
|
"./theme/layout": {
|
|
115
115
|
"types": "./theme/layout/index.d.ts",
|
|
116
116
|
"esm2022": "./esm2022/theme/layout/aril-theme-layout.mjs",
|
|
@@ -147,18 +147,18 @@
|
|
|
147
147
|
"esm": "./esm2022/ui/charts/aril-ui-charts.mjs",
|
|
148
148
|
"default": "./fesm2022/aril-ui-charts.mjs"
|
|
149
149
|
},
|
|
150
|
-
"./ui/checkbox": {
|
|
151
|
-
"types": "./ui/checkbox/index.d.ts",
|
|
152
|
-
"esm2022": "./esm2022/ui/checkbox/aril-ui-checkbox.mjs",
|
|
153
|
-
"esm": "./esm2022/ui/checkbox/aril-ui-checkbox.mjs",
|
|
154
|
-
"default": "./fesm2022/aril-ui-checkbox.mjs"
|
|
155
|
-
},
|
|
156
150
|
"./ui/chip": {
|
|
157
151
|
"types": "./ui/chip/index.d.ts",
|
|
158
152
|
"esm2022": "./esm2022/ui/chip/aril-ui-chip.mjs",
|
|
159
153
|
"esm": "./esm2022/ui/chip/aril-ui-chip.mjs",
|
|
160
154
|
"default": "./fesm2022/aril-ui-chip.mjs"
|
|
161
155
|
},
|
|
156
|
+
"./ui/checkbox": {
|
|
157
|
+
"types": "./ui/checkbox/index.d.ts",
|
|
158
|
+
"esm2022": "./esm2022/ui/checkbox/aril-ui-checkbox.mjs",
|
|
159
|
+
"esm": "./esm2022/ui/checkbox/aril-ui-checkbox.mjs",
|
|
160
|
+
"default": "./fesm2022/aril-ui-checkbox.mjs"
|
|
161
|
+
},
|
|
162
162
|
"./ui/collapse-reorder-list": {
|
|
163
163
|
"types": "./ui/collapse-reorder-list/index.d.ts",
|
|
164
164
|
"esm2022": "./esm2022/ui/collapse-reorder-list/aril-ui-collapse-reorder-list.mjs",
|
|
@@ -183,23 +183,17 @@
|
|
|
183
183
|
"esm": "./esm2022/ui/editor/aril-ui-editor.mjs",
|
|
184
184
|
"default": "./fesm2022/aril-ui-editor.mjs"
|
|
185
185
|
},
|
|
186
|
-
"./ui/field": {
|
|
187
|
-
"types": "./ui/field/index.d.ts",
|
|
188
|
-
"esm2022": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
189
|
-
"esm": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
190
|
-
"default": "./fesm2022/aril-ui-field.mjs"
|
|
191
|
-
},
|
|
192
186
|
"./ui/fileUpload": {
|
|
193
187
|
"types": "./ui/fileUpload/index.d.ts",
|
|
194
188
|
"esm2022": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
195
189
|
"esm": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
196
190
|
"default": "./fesm2022/aril-ui-fileUpload.mjs"
|
|
197
191
|
},
|
|
198
|
-
"./ui/
|
|
199
|
-
"types": "./ui/
|
|
200
|
-
"esm2022": "./esm2022/ui/
|
|
201
|
-
"esm": "./esm2022/ui/
|
|
202
|
-
"default": "./fesm2022/aril-ui-
|
|
192
|
+
"./ui/field": {
|
|
193
|
+
"types": "./ui/field/index.d.ts",
|
|
194
|
+
"esm2022": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
195
|
+
"esm": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
196
|
+
"default": "./fesm2022/aril-ui-field.mjs"
|
|
203
197
|
},
|
|
204
198
|
"./ui/img-viewer": {
|
|
205
199
|
"types": "./ui/img-viewer/index.d.ts",
|
|
@@ -207,6 +201,12 @@
|
|
|
207
201
|
"esm": "./esm2022/ui/img-viewer/aril-ui-img-viewer.mjs",
|
|
208
202
|
"default": "./fesm2022/aril-ui-img-viewer.mjs"
|
|
209
203
|
},
|
|
204
|
+
"./ui/form": {
|
|
205
|
+
"types": "./ui/form/index.d.ts",
|
|
206
|
+
"esm2022": "./esm2022/ui/form/aril-ui-form.mjs",
|
|
207
|
+
"esm": "./esm2022/ui/form/aril-ui-form.mjs",
|
|
208
|
+
"default": "./fesm2022/aril-ui-form.mjs"
|
|
209
|
+
},
|
|
210
210
|
"./ui/json-diff-comparison": {
|
|
211
211
|
"types": "./ui/json-diff-comparison/index.d.ts",
|
|
212
212
|
"esm2022": "./esm2022/ui/json-diff-comparison/aril-ui-json-diff-comparison.mjs",
|
|
@@ -243,12 +243,6 @@
|
|
|
243
243
|
"esm": "./esm2022/ui/number/aril-ui-number.mjs",
|
|
244
244
|
"default": "./fesm2022/aril-ui-number.mjs"
|
|
245
245
|
},
|
|
246
|
-
"./ui/overlayPanel": {
|
|
247
|
-
"types": "./ui/overlayPanel/index.d.ts",
|
|
248
|
-
"esm2022": "./esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs",
|
|
249
|
-
"esm": "./esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs",
|
|
250
|
-
"default": "./fesm2022/aril-ui-overlayPanel.mjs"
|
|
251
|
-
},
|
|
252
246
|
"./ui/operation-types-dialog": {
|
|
253
247
|
"types": "./ui/operation-types-dialog/index.d.ts",
|
|
254
248
|
"esm2022": "./esm2022/ui/operation-types-dialog/aril-ui-operation-types-dialog.mjs",
|
|
@@ -273,6 +267,12 @@
|
|
|
273
267
|
"esm": "./esm2022/ui/progressbar/aril-ui-progressbar.mjs",
|
|
274
268
|
"default": "./fesm2022/aril-ui-progressbar.mjs"
|
|
275
269
|
},
|
|
270
|
+
"./ui/overlayPanel": {
|
|
271
|
+
"types": "./ui/overlayPanel/index.d.ts",
|
|
272
|
+
"esm2022": "./esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs",
|
|
273
|
+
"esm": "./esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs",
|
|
274
|
+
"default": "./fesm2022/aril-ui-overlayPanel.mjs"
|
|
275
|
+
},
|
|
276
276
|
"./ui/radioButton": {
|
|
277
277
|
"types": "./ui/radioButton/index.d.ts",
|
|
278
278
|
"esm2022": "./esm2022/ui/radioButton/aril-ui-radioButton.mjs",
|
|
@@ -291,12 +291,6 @@
|
|
|
291
291
|
"esm": "./esm2022/ui/selectBox/aril-ui-selectBox.mjs",
|
|
292
292
|
"default": "./fesm2022/aril-ui-selectBox.mjs"
|
|
293
293
|
},
|
|
294
|
-
"./ui/pdf-viewer": {
|
|
295
|
-
"types": "./ui/pdf-viewer/index.d.ts",
|
|
296
|
-
"esm2022": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
297
|
-
"esm": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
298
|
-
"default": "./fesm2022/aril-ui-pdf-viewer.mjs"
|
|
299
|
-
},
|
|
300
294
|
"./ui/switch": {
|
|
301
295
|
"types": "./ui/switch/index.d.ts",
|
|
302
296
|
"esm2022": "./esm2022/ui/switch/aril-ui-switch.mjs",
|
|
@@ -345,17 +339,11 @@
|
|
|
345
339
|
"esm": "./esm2022/ui/toggle-button/aril-ui-toggle-button.mjs",
|
|
346
340
|
"default": "./fesm2022/aril-ui-toggle-button.mjs"
|
|
347
341
|
},
|
|
348
|
-
"./ui/
|
|
349
|
-
"types": "./ui/
|
|
350
|
-
"esm2022": "./esm2022/ui/
|
|
351
|
-
"esm": "./esm2022/ui/
|
|
352
|
-
"default": "./fesm2022/aril-ui-
|
|
353
|
-
},
|
|
354
|
-
"./ui/translate-input": {
|
|
355
|
-
"types": "./ui/translate-input/index.d.ts",
|
|
356
|
-
"esm2022": "./esm2022/ui/translate-input/aril-ui-translate-input.mjs",
|
|
357
|
-
"esm": "./esm2022/ui/translate-input/aril-ui-translate-input.mjs",
|
|
358
|
-
"default": "./fesm2022/aril-ui-translate-input.mjs"
|
|
342
|
+
"./ui/pdf-viewer": {
|
|
343
|
+
"types": "./ui/pdf-viewer/index.d.ts",
|
|
344
|
+
"esm2022": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
345
|
+
"esm": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
346
|
+
"default": "./fesm2022/aril-ui-pdf-viewer.mjs"
|
|
359
347
|
},
|
|
360
348
|
"./ui/tooltip": {
|
|
361
349
|
"types": "./ui/tooltip/index.d.ts",
|
|
@@ -363,11 +351,17 @@
|
|
|
363
351
|
"esm": "./esm2022/ui/tooltip/aril-ui-tooltip.mjs",
|
|
364
352
|
"default": "./fesm2022/aril-ui-tooltip.mjs"
|
|
365
353
|
},
|
|
366
|
-
"./ui/
|
|
367
|
-
"types": "./ui/
|
|
368
|
-
"esm2022": "./esm2022/ui/
|
|
369
|
-
"esm": "./esm2022/ui/
|
|
370
|
-
"default": "./fesm2022/aril-ui-
|
|
354
|
+
"./ui/translate-input": {
|
|
355
|
+
"types": "./ui/translate-input/index.d.ts",
|
|
356
|
+
"esm2022": "./esm2022/ui/translate-input/aril-ui-translate-input.mjs",
|
|
357
|
+
"esm": "./esm2022/ui/translate-input/aril-ui-translate-input.mjs",
|
|
358
|
+
"default": "./fesm2022/aril-ui-translate-input.mjs"
|
|
359
|
+
},
|
|
360
|
+
"./ui/tree": {
|
|
361
|
+
"types": "./ui/tree/index.d.ts",
|
|
362
|
+
"esm2022": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
363
|
+
"esm": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
364
|
+
"default": "./fesm2022/aril-ui-tree.mjs"
|
|
371
365
|
},
|
|
372
366
|
"./ui/treeTable": {
|
|
373
367
|
"types": "./ui/treeTable/index.d.ts",
|
|
@@ -375,11 +369,11 @@
|
|
|
375
369
|
"esm": "./esm2022/ui/treeTable/aril-ui-treeTable.mjs",
|
|
376
370
|
"default": "./fesm2022/aril-ui-treeTable.mjs"
|
|
377
371
|
},
|
|
378
|
-
"./ui/
|
|
379
|
-
"types": "./ui/
|
|
380
|
-
"esm2022": "./esm2022/ui/
|
|
381
|
-
"esm": "./esm2022/ui/
|
|
382
|
-
"default": "./fesm2022/aril-ui-
|
|
372
|
+
"./ui/treeSelect": {
|
|
373
|
+
"types": "./ui/treeSelect/index.d.ts",
|
|
374
|
+
"esm2022": "./esm2022/ui/treeSelect/aril-ui-treeSelect.mjs",
|
|
375
|
+
"esm": "./esm2022/ui/treeSelect/aril-ui-treeSelect.mjs",
|
|
376
|
+
"default": "./fesm2022/aril-ui-treeSelect.mjs"
|
|
383
377
|
},
|
|
384
378
|
"./ui-business/assetPicker": {
|
|
385
379
|
"types": "./ui-business/assetPicker/index.d.ts",
|
|
@@ -405,6 +399,12 @@
|
|
|
405
399
|
"esm": "./esm2022/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.mjs",
|
|
406
400
|
"default": "./fesm2022/aril-ui-business-multiple-ref-value.mjs"
|
|
407
401
|
},
|
|
402
|
+
"./ui-business/image-viewer": {
|
|
403
|
+
"types": "./ui-business/image-viewer/index.d.ts",
|
|
404
|
+
"esm2022": "./esm2022/ui-business/image-viewer/aril-ui-business-image-viewer.mjs",
|
|
405
|
+
"esm": "./esm2022/ui-business/image-viewer/aril-ui-business-image-viewer.mjs",
|
|
406
|
+
"default": "./fesm2022/aril-ui-business-image-viewer.mjs"
|
|
407
|
+
},
|
|
408
408
|
"./ui-business/notification-templates-dialog": {
|
|
409
409
|
"types": "./ui-business/notification-templates-dialog/index.d.ts",
|
|
410
410
|
"esm2022": "./esm2022/ui-business/notification-templates-dialog/aril-ui-business-notification-templates-dialog.mjs",
|
|
@@ -441,24 +441,30 @@
|
|
|
441
441
|
"esm": "./esm2022/util/block/aril-util-block.mjs",
|
|
442
442
|
"default": "./fesm2022/aril-util-block.mjs"
|
|
443
443
|
},
|
|
444
|
-
"./util/custom_pages": {
|
|
445
|
-
"types": "./util/custom_pages/index.d.ts",
|
|
446
|
-
"esm2022": "./esm2022/util/custom_pages/aril-util-custom_pages.mjs",
|
|
447
|
-
"esm": "./esm2022/util/custom_pages/aril-util-custom_pages.mjs",
|
|
448
|
-
"default": "./fesm2022/aril-util-custom_pages.mjs"
|
|
449
|
-
},
|
|
450
444
|
"./util/init-event": {
|
|
451
445
|
"types": "./util/init-event/index.d.ts",
|
|
452
446
|
"esm2022": "./esm2022/util/init-event/aril-util-init-event.mjs",
|
|
453
447
|
"esm": "./esm2022/util/init-event/aril-util-init-event.mjs",
|
|
454
448
|
"default": "./fesm2022/aril-util-init-event.mjs"
|
|
455
449
|
},
|
|
450
|
+
"./ui/value": {
|
|
451
|
+
"types": "./ui/value/index.d.ts",
|
|
452
|
+
"esm2022": "./esm2022/ui/value/aril-ui-value.mjs",
|
|
453
|
+
"esm": "./esm2022/ui/value/aril-ui-value.mjs",
|
|
454
|
+
"default": "./fesm2022/aril-ui-value.mjs"
|
|
455
|
+
},
|
|
456
456
|
"./util/lib": {
|
|
457
457
|
"types": "./util/lib/index.d.ts",
|
|
458
458
|
"esm2022": "./esm2022/util/lib/aril-util-lib.mjs",
|
|
459
459
|
"esm": "./esm2022/util/lib/aril-util-lib.mjs",
|
|
460
460
|
"default": "./fesm2022/aril-util-lib.mjs"
|
|
461
461
|
},
|
|
462
|
+
"./util/custom_pages": {
|
|
463
|
+
"types": "./util/custom_pages/index.d.ts",
|
|
464
|
+
"esm2022": "./esm2022/util/custom_pages/aril-util-custom_pages.mjs",
|
|
465
|
+
"esm": "./esm2022/util/custom_pages/aril-util-custom_pages.mjs",
|
|
466
|
+
"default": "./fesm2022/aril-util-custom_pages.mjs"
|
|
467
|
+
},
|
|
462
468
|
"./util/loaders": {
|
|
463
469
|
"types": "./util/loaders/index.d.ts",
|
|
464
470
|
"esm2022": "./esm2022/util/loaders/aril-util-loaders.mjs",
|
|
@@ -501,18 +507,18 @@
|
|
|
501
507
|
"esm": "./esm2022/boot/config/api/aril-boot-config-api.mjs",
|
|
502
508
|
"default": "./fesm2022/aril-boot-config-api.mjs"
|
|
503
509
|
},
|
|
504
|
-
"./boot/config/plugins": {
|
|
505
|
-
"types": "./boot/config/plugins/index.d.ts",
|
|
506
|
-
"esm2022": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
507
|
-
"esm": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
508
|
-
"default": "./fesm2022/aril-boot-config-plugins.mjs"
|
|
509
|
-
},
|
|
510
510
|
"./boot/config/apps": {
|
|
511
511
|
"types": "./boot/config/apps/index.d.ts",
|
|
512
512
|
"esm2022": "./esm2022/boot/config/apps/aril-boot-config-apps.mjs",
|
|
513
513
|
"esm": "./esm2022/boot/config/apps/aril-boot-config-apps.mjs",
|
|
514
514
|
"default": "./fesm2022/aril-boot-config-apps.mjs"
|
|
515
515
|
},
|
|
516
|
+
"./boot/config/plugins": {
|
|
517
|
+
"types": "./boot/config/plugins/index.d.ts",
|
|
518
|
+
"esm2022": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
519
|
+
"esm": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
520
|
+
"default": "./fesm2022/aril-boot-config-plugins.mjs"
|
|
521
|
+
},
|
|
516
522
|
"./boot/config/translate": {
|
|
517
523
|
"types": "./boot/config/translate/index.d.ts",
|
|
518
524
|
"esm2022": "./esm2022/boot/config/translate/aril-boot-config-translate.mjs",
|
|
@@ -31,6 +31,7 @@ export declare class FileUploadComponent {
|
|
|
31
31
|
showCancelButton: import("@angular/core").InputSignal<boolean, boolean>;
|
|
32
32
|
showNotificationTemplatesButton: import("@angular/core").InputSignal<boolean, boolean>;
|
|
33
33
|
customUpload: import("@angular/core").InputSignal<boolean, boolean>;
|
|
34
|
+
mode: import("@angular/core").InputSignal<"advanced" | "basic", "advanced" | "basic">;
|
|
34
35
|
beforeSend: EventEmitter<unknown>;
|
|
35
36
|
upload: EventEmitter<unknown>;
|
|
36
37
|
uploadHandler: EventEmitter<unknown>;
|
|
@@ -43,6 +44,6 @@ export declare class FileUploadComponent {
|
|
|
43
44
|
onError(event: any): void;
|
|
44
45
|
openNotificationTemplatesDialog(): void;
|
|
45
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "aril-file-upload", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "url": { "alias": "url"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "auto": { "alias": "auto"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "withCredentials": { "alias": "withCredentials"; "required": false; "isSignal": true; }; "showUploadButton": { "alias": "showUploadButton"; "required": false; "isSignal": true; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; "isSignal": true; }; "showNotificationTemplatesButton": { "alias": "showNotificationTemplatesButton"; "required": false; "isSignal": true; }; "customUpload": { "alias": "customUpload"; "required": false; "isSignal": true; }; }, { "beforeSend": "beforeSend"; "upload": "upload"; "uploadHandler": "uploadHandler"; "errors": "errors"; "selects": "selects"; "clear": "clear"; }, never, never, true, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "aril-file-upload", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "url": { "alias": "url"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "auto": { "alias": "auto"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; "withCredentials": { "alias": "withCredentials"; "required": false; "isSignal": true; }; "showUploadButton": { "alias": "showUploadButton"; "required": false; "isSignal": true; }; "showCancelButton": { "alias": "showCancelButton"; "required": false; "isSignal": true; }; "showNotificationTemplatesButton": { "alias": "showNotificationTemplatesButton"; "required": false; "isSignal": true; }; "customUpload": { "alias": "customUpload"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, { "beforeSend": "beforeSend"; "upload": "upload"; "uploadHandler": "uploadHandler"; "errors": "errors"; "selects": "selects"; "clear": "clear"; }, never, never, true, never>;
|
|
47
48
|
}
|
|
48
49
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/aril-image-viewer.component';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ArilImageViewerComponent {
|
|
4
|
+
private readonly http;
|
|
5
|
+
imageUrl: import("@angular/core").InputSignal<string | null, string | null>;
|
|
6
|
+
alt: import("@angular/core").InputSignal<string, string>;
|
|
7
|
+
styleClass: import("@angular/core").InputSignal<string, string>;
|
|
8
|
+
width: import("@angular/core").InputSignal<string, string>;
|
|
9
|
+
height: import("@angular/core").InputSignal<string, string>;
|
|
10
|
+
borderRadius: import("@angular/core").InputSignal<string, string>;
|
|
11
|
+
objectFit: import("@angular/core").InputSignal<"contain" | "cover" | "fill" | "none" | "scale-down", "contain" | "cover" | "fill" | "none" | "scale-down">;
|
|
12
|
+
customStyle: import("@angular/core").InputSignal<Record<string, string>, Record<string, string>>;
|
|
13
|
+
imageDataUrl: import("@angular/core").WritableSignal<string | null>;
|
|
14
|
+
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
+
computedStyle: import("@angular/core").WritableSignal<Record<string, string>>;
|
|
16
|
+
constructor(http: HttpClient);
|
|
17
|
+
private loadImage;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArilImageViewerComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArilImageViewerComponent, "aril-image-viewer", never, { "imageUrl": { "alias": "imageUrl"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "borderRadius"; "required": false; "isSignal": true; }; "objectFit": { "alias": "objectFit"; "required": false; "isSignal": true; }; "customStyle": { "alias": "customStyle"; "required": false; "isSignal": true; }; }, {}, never, ["[loading]", "*"], true, never>;
|
|
20
|
+
}
|