myrta-ui 17.0.0-beta.1 → 17.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/esm2022/lib/components/badges/components/badge/badge.component.mjs +2 -2
- package/esm2022/lib/components/form/editor/editor.component.mjs +6 -2
- package/esm2022/lib/components/form/editor/editor.enum.mjs +2 -0
- package/esm2022/lib/components/form/input-date-time/input-date-time.component.mjs +2 -2
- package/esm2022/lib/components/form/input-datepicker/input-datepicker.component.mjs +2 -2
- package/esm2022/lib/components/form/input-file/input-file.component.mjs +44 -46
- package/esm2022/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +8 -8
- package/esm2022/lib/components/form/input-file-image/input-file-image.component.mjs +140 -148
- package/esm2022/lib/components/form/input-file-image/input-file-image.enum.mjs +3 -3
- package/esm2022/lib/components/form/input-file-image/input-file-image.module.mjs +6 -4
- package/esm2022/lib/components/form/input-number/input-number.component.mjs +2 -2
- package/esm2022/lib/components/form/input-password/input-password.component.mjs +2 -2
- package/esm2022/lib/components/form/input-phone/input-phone.component.mjs +2 -2
- package/esm2022/lib/components/form/input-search/input-search.component.mjs +2 -2
- package/esm2022/lib/components/form/input-select/input-select.component.mjs +3 -3
- package/esm2022/lib/components/form/input-tel/input-tel.component.mjs +2 -2
- package/esm2022/lib/components/form/input-text/input-text.component.mjs +2 -2
- package/esm2022/lib/components/form/switch/switch.component.mjs +2 -2
- package/esm2022/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +3 -5
- package/esm2022/lib/components/progress/progress.component.mjs +2 -2
- package/esm2022/lib/components/tabs/tabs-group/tabs-group.component.mjs +2 -2
- package/esm2022/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +2 -2
- package/esm2022/lib/models/input-file/input-file.model.mjs +1 -1
- package/esm2022/lib/services/file-upload/file-upload.service.mjs +5 -4
- package/esm2022/lib/services/index.mjs +5 -1
- package/esm2022/lib/services/modal-service/components/alert-modal/alert-modal.component.mjs +3 -5
- package/esm2022/lib/services/modal-service/components/confirm-modal/confirm-modal.component.mjs +3 -5
- package/esm2022/lib/services/modal-service/helpers/index.mjs +5 -0
- package/esm2022/lib/services/modal-service/helpers/modal.component.mjs +2 -3
- package/esm2022/lib/services/modal-service/modal-service.module.mjs +25 -0
- package/esm2022/lib/services/modal-service/modal-service.service.mjs +1 -1
- package/fesm2022/myrta-ui.mjs +373 -361
- package/fesm2022/myrta-ui.mjs.map +1 -1
- package/lib/components/form/editor/editor.component.d.ts +3 -1
- package/lib/components/form/editor/editor.enum.d.ts +5 -0
- package/lib/components/form/input-file/input-file.component.d.ts +6 -4
- package/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.d.ts +5 -4
- package/lib/components/form/input-file-image/input-file-image.component.d.ts +21 -26
- package/lib/components/form/input-file-image/input-file-image.enum.d.ts +2 -2
- package/lib/components/form/input-file-image/input-file-image.module.d.ts +1 -1
- package/lib/components/form/input-select/input-select.component.d.ts +15 -5
- package/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.d.ts +2 -3
- package/lib/models/input-file/input-file.model.d.ts +5 -4
- package/lib/services/file-upload/file-upload.service.d.ts +1 -1
- package/lib/services/index.d.ts +4 -0
- package/lib/services/modal-service/components/alert-modal/alert-modal.component.d.ts +2 -3
- package/lib/services/modal-service/components/confirm-modal/confirm-modal.component.d.ts +2 -3
- package/lib/services/modal-service/helpers/index.d.ts +4 -0
- package/lib/services/modal-service/helpers/modal.component.d.ts +1 -2
- package/lib/services/modal-service/modal-service.module.d.ts +9 -0
- package/lib/services/modal-service/modal-service.service.d.ts +4 -4
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import 'jodit/esm/plugins/line-height/line-height.js';
|
|
|
8
8
|
import 'jodit/esm/plugins/indent/indent.js';
|
|
9
9
|
import 'jodit/esm/plugins/video/video.js';
|
|
10
10
|
import 'jodit/esm/plugins/search/search.js';
|
|
11
|
+
import { InputEditorValueWithId } from './editor.enum';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export interface CustomJoditConfig extends JoditConfig {
|
|
13
14
|
getIcon: (a: any) => void;
|
|
@@ -42,6 +43,7 @@ export declare class EditorComponent implements ControlValueAccessor, OnChanges
|
|
|
42
43
|
checkInvalid: true | false | null;
|
|
43
44
|
editorElementRef: any;
|
|
44
45
|
changed: EventEmitter<string>;
|
|
46
|
+
modelChange: EventEmitter<InputEditorValueWithId>;
|
|
45
47
|
constructor(changeDetection: ChangeDetectorRef);
|
|
46
48
|
ngOnChanges(changes: SimpleChanges): void;
|
|
47
49
|
get isValid(): boolean;
|
|
@@ -59,5 +61,5 @@ export declare class EditorComponent implements ControlValueAccessor, OnChanges
|
|
|
59
61
|
private _sanitizeValue;
|
|
60
62
|
private _calculateChartsCount;
|
|
61
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "mrx-editor", never, { "fields": { "alias": "fields"; "required": false; }; "toolbar": { "alias": "toolbar"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "iframe": { "alias": "iframe"; "required": false; }; "defaultInlineStyle": { "alias": "defaultInlineStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "editHTMLDocumentMode": { "alias": "editHTMLDocumentMode"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; }; "checkInvalid": { "alias": "checkInvalid"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditorComponent, "mrx-editor", never, { "fields": { "alias": "fields"; "required": false; }; "toolbar": { "alias": "toolbar"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "iframe": { "alias": "iframe"; "required": false; }; "defaultInlineStyle": { "alias": "defaultInlineStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "editHTMLDocumentMode": { "alias": "editHTMLDocumentMode"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; }; "checkInvalid": { "alias": "checkInvalid"; "required": false; }; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never, false, never>;
|
|
63
65
|
}
|
|
@@ -58,14 +58,16 @@ export declare class InputFileComponent {
|
|
|
58
58
|
getTooltipValue(value: string | undefined): string;
|
|
59
59
|
protected baseValidate(): boolean;
|
|
60
60
|
trackByFn(index: number, item: InputFileModel): string | undefined;
|
|
61
|
-
delete(file:
|
|
61
|
+
delete(event: any, file: InputFileModel): void;
|
|
62
62
|
canCancelUploading(file: InputFileModel): boolean;
|
|
63
63
|
clear(file: InputFileModel): void;
|
|
64
64
|
downloadUrl(file: UploadedFileModel): string;
|
|
65
65
|
dropped(files: NgxFileDropEntry[]): void;
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
private
|
|
66
|
+
private _transformUrl;
|
|
67
|
+
private _formDataKeys;
|
|
68
|
+
private _createFormData;
|
|
69
|
+
private _deleteFile;
|
|
70
|
+
private _uploadFile;
|
|
69
71
|
private checkForUpload;
|
|
70
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputFileComponent, never>;
|
|
71
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "mrx-input-file", never, { "autoUpload": { "alias": "autoUpload"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "viewOnly": { "alias": "viewOnly"; "required": false; }; "lightDisabled": { "alias": "lightDisabled"; "required": false; }; "bottomFiles": { "alias": "bottomFiles"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "minFiles": { "alias": "minFiles"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "uploadEndPoint": { "alias": "uploadEndPoint"; "required": false; }; "deleteEndPoint": { "alias": "deleteEndPoint"; "required": false; }; "downloadEndPoint": { "alias": "downloadEndPoint"; "required": false; }; "fileNamePlaceholder": { "alias": "fileNamePlaceholder"; "required": false; }; "showInputWithError": { "alias": "showInputWithError"; "required": false; }; "showDeleteButton": { "alias": "showDeleteButton"; "required": false; }; "isTooltipValue": { "alias": "isTooltipValue"; "required": false; }; "isDownloadingFile": { "alias": "isDownloadingFile"; "required": false; }; "isHideListFiles": { "alias": "isHideListFiles"; "required": false; }; "target": { "alias": "target"; "required": false; }; "deleteConfirm": { "alias": "deleteConfirm"; "required": false; }; "innerTemplate": { "alias": "innerTemplate"; "required": false; }; "uploadAdditionalData": { "alias": "uploadAdditionalData"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; }; "checkInvalid": { "alias": "checkInvalid"; "required": false; }; "messageTooManyFiles": { "alias": "messageTooManyFiles"; "required": false; }; "messageFileTooBig": { "alias": "messageFileTooBig"; "required": false; }; "messageEmptyFile": { "alias": "messageEmptyFile"; "required": false; }; "messageInvalidFileFormat": { "alias": "messageInvalidFileFormat"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "placeholderFileMaxSize": { "alias": "placeholderFileMaxSize"; "required": false; }; "placeholderFileFormat": { "alias": "placeholderFileFormat"; "required": false; }; "initFiles": { "alias": "files"; "required": false; }; "initAllowedExtensions": { "alias": "allowedExtensions"; "required": false; }; }, { "filesChanged": "filesChanged"; "checkDroppedFile": "checkDroppedFile"; }, never, never, false, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageCroppedEvent, ImageTransform, LoadedImage } from 'ngx-image-cropper';
|
|
2
|
-
import {
|
|
2
|
+
import { ModalServiceComponent } from '../../../../../services/modal-service/helpers/modal.component';
|
|
3
3
|
import { ModalRef } from '../../../../../services/modal-service/helpers/modal-ref';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface ImageEditSelect {
|
|
@@ -8,20 +8,21 @@ export interface ImageEditSelect {
|
|
|
8
8
|
cropperMaxWidth: number;
|
|
9
9
|
cropperMaxHeight: number;
|
|
10
10
|
aspectRatio: number;
|
|
11
|
+
maintainAspectRatio: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface ImageEditResult {
|
|
13
14
|
result: boolean;
|
|
14
|
-
fileImage?:
|
|
15
|
+
fileImage?: File;
|
|
15
16
|
fileUrl?: string;
|
|
16
17
|
}
|
|
17
|
-
export declare class FileImageEditModalComponent extends
|
|
18
|
+
export declare class FileImageEditModalComponent extends ModalServiceComponent<ImageEditSelect, ImageEditResult> {
|
|
18
19
|
private dialogRef;
|
|
19
|
-
data: ImageEditSelect;
|
|
20
20
|
title: string;
|
|
21
21
|
fileImage?: any;
|
|
22
22
|
cropperMaxWidth: number;
|
|
23
23
|
cropperMaxHeight: number;
|
|
24
24
|
aspectRatio: number;
|
|
25
|
+
maintainAspectRatio: boolean;
|
|
25
26
|
imageChangedEvent: any;
|
|
26
27
|
croppedImage: string;
|
|
27
28
|
canvasRotation: number;
|
|
@@ -1,62 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InputFileModel, UploadedFileModel } from '../../../models
|
|
3
|
-
import { FileUploadService } from '../../../services
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { InputFileModel, UploadedFileModel } from '../../../models';
|
|
3
|
+
import { FileUploadService, ModalService } from '../../../services';
|
|
4
4
|
import { NgxFileDropEntry } from 'ngx-file-drop';
|
|
5
|
-
import { formatBytes } from '../../../helpers
|
|
5
|
+
import { formatBytes } from '../../../helpers';
|
|
6
6
|
import { InputFileImageTypeTypes } from './input-file-image.enum';
|
|
7
|
-
import { PreviewEnum } from './input-file-image.enum';
|
|
8
|
-
import { ModalService } from '../../../services/modal-service/modal-service.service';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare class InputFileImageComponent {
|
|
11
9
|
private imageUploadService;
|
|
12
10
|
private _modalService;
|
|
11
|
+
private _detector;
|
|
13
12
|
formatBytes: typeof formatBytes;
|
|
14
13
|
extensions?: string;
|
|
15
14
|
allowedExtensions: string[];
|
|
16
15
|
files: InputFileModel[];
|
|
17
|
-
notFoundImage: PreviewEnum;
|
|
18
|
-
hostClass: string;
|
|
19
16
|
type: InputFileImageTypeTypes;
|
|
20
|
-
preview: string;
|
|
21
17
|
customClasses: string;
|
|
22
|
-
|
|
18
|
+
placeholder?: string;
|
|
23
19
|
disabled: boolean;
|
|
24
|
-
|
|
20
|
+
readonly: boolean;
|
|
25
21
|
maxSize: number;
|
|
26
22
|
maxFiles: number;
|
|
27
23
|
minFiles: number;
|
|
24
|
+
formData: any;
|
|
28
25
|
cropperMaxWidth: number;
|
|
29
26
|
cropperMaxHeight: number;
|
|
30
27
|
aspectRatio: number;
|
|
31
|
-
|
|
32
|
-
placeholder?: string;
|
|
28
|
+
maintainAspectRatio: boolean;
|
|
33
29
|
uploadEndPoint: string;
|
|
34
30
|
deleteEndPoint?: string;
|
|
35
31
|
downloadEndPoint?: string;
|
|
36
|
-
fileNamePlaceholder?: string;
|
|
37
32
|
deleteConfirm?: (file: UploadedFileModel, result: (ok: boolean) => void) => void;
|
|
38
|
-
innerTemplate: TemplateRef<any>;
|
|
39
33
|
set initFiles(data: UploadedFileModel[] | UploadedFileModel);
|
|
40
34
|
set initAllowedExtensions(val: string[]);
|
|
41
35
|
filesChanged: EventEmitter<InputFileModel[]>;
|
|
42
|
-
constructor(imageUploadService: FileUploadService, _modalService: ModalService);
|
|
36
|
+
constructor(imageUploadService: FileUploadService, _modalService: ModalService, _detector: ChangeDetectorRef);
|
|
43
37
|
get getDefaultPlaceholder(): string;
|
|
44
38
|
get getClasses(): string;
|
|
45
39
|
get getDropZoneClasses(): string;
|
|
46
40
|
get canAdd(): boolean;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
dropped(files: NgxFileDropEntry[]): void;
|
|
42
|
+
changePreview(event: any, file: InputFileModel): void;
|
|
43
|
+
delete(event: any, file: InputFileModel): void;
|
|
50
44
|
clear(file: InputFileModel): void;
|
|
51
45
|
downloadUrl(file: UploadedFileModel): string;
|
|
52
|
-
dropped(files: NgxFileDropEntry[]): void;
|
|
53
|
-
changePreview(event: any, file: UploadedFileModel): void;
|
|
54
46
|
fileOver(event: any): void;
|
|
55
47
|
fileLeave(event: any): void;
|
|
56
|
-
private
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
private
|
|
48
|
+
private _transformUrl;
|
|
49
|
+
private _formDataKeys;
|
|
50
|
+
private _createFormData;
|
|
51
|
+
private _deleteFile;
|
|
52
|
+
private _updateFile;
|
|
53
|
+
private _uploadFile;
|
|
54
|
+
private _checkForUpload;
|
|
60
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputFileImageComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputFileImageComponent, "mrx-input-file-image", never, { "type": { "alias": "type"; "required": false; }; "
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputFileImageComponent, "mrx-input-file-image", never, { "type": { "alias": "type"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "minFiles": { "alias": "minFiles"; "required": false; }; "formData": { "alias": "formData"; "required": false; }; "cropperMaxWidth": { "alias": "cropperMaxWidth"; "required": false; }; "cropperMaxHeight": { "alias": "cropperMaxHeight"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "maintainAspectRatio": { "alias": "maintainAspectRatio"; "required": false; }; "uploadEndPoint": { "alias": "uploadEndPoint"; "required": false; }; "deleteEndPoint": { "alias": "deleteEndPoint"; "required": false; }; "downloadEndPoint": { "alias": "downloadEndPoint"; "required": false; }; "deleteConfirm": { "alias": "deleteConfirm"; "required": false; }; "initFiles": { "alias": "files"; "required": false; }; "initAllowedExtensions": { "alias": "allowedExtensions"; "required": false; }; }, { "filesChanged": "filesChanged"; }, never, never, false, never>;
|
|
62
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum InputFileImageTypeEnum {
|
|
2
|
-
'default' = "mrx-input-file-
|
|
3
|
-
'avatar' = "mrx-input-file-
|
|
2
|
+
'default' = "mrx-input-file-image-type-default",
|
|
3
|
+
'avatar' = "mrx-input-file-image-type-avatar"
|
|
4
4
|
}
|
|
5
5
|
export type InputFileImageTypeTypes = 'default' | 'avatar';
|
|
6
6
|
export declare enum PreviewEnum {
|
|
@@ -10,6 +10,6 @@ import * as i8 from "../../button/button.module";
|
|
|
10
10
|
import * as i9 from "ngx-image-cropper";
|
|
11
11
|
export declare class InputFileImageModule {
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputFileImageModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InputFileImageModule, [typeof i1.InputFileImageComponent, typeof i2.FileImageEditModalComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.HttpClientModule, typeof i6.NgxFileDropModule, typeof i7.ModalModule, typeof i8.ButtonModule, typeof i9.ImageCropperComponent], [typeof i1.InputFileImageComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InputFileImageModule, [typeof i1.InputFileImageComponent, typeof i2.FileImageEditModalComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.HttpClientModule, typeof i6.NgxFileDropModule, typeof i7.ModalModule, typeof i8.ButtonModule, typeof i9.ImageCropperComponent, typeof i3.NgOptimizedImage], [typeof i1.InputFileImageComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<InputFileImageModule>;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { AddTagFn } from '@ng-select/ng-select/lib/ng-select.component';
|
|
4
4
|
import { InputSelectSizeTypes, InputSelectValueTypes, InputSelectValueWithId } from './input-select.enum';
|
|
@@ -49,10 +49,20 @@ export declare class InputSelectComponent implements ControlValueAccessor {
|
|
|
49
49
|
tooltip: string;
|
|
50
50
|
tooltipHidden: boolean;
|
|
51
51
|
tooltipVisible: boolean;
|
|
52
|
-
selectOptionsTemplate: TemplateRef<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
selectOptionsTemplate: TemplateRef<{
|
|
53
|
+
item: any;
|
|
54
|
+
clear: any;
|
|
55
|
+
}>;
|
|
56
|
+
labelTemplate: TemplateRef<{
|
|
57
|
+
item: any;
|
|
58
|
+
}>;
|
|
59
|
+
tagTemplate: TemplateRef<{
|
|
60
|
+
items: any;
|
|
61
|
+
}>;
|
|
62
|
+
multiLabelTemplate: TemplateRef<{
|
|
63
|
+
items: any;
|
|
64
|
+
clear: any;
|
|
65
|
+
}>;
|
|
56
66
|
set setMaxSelectedItems(val: number);
|
|
57
67
|
changed: EventEmitter<InputSelectValueTypes>;
|
|
58
68
|
modelChange: EventEmitter<InputSelectValueWithId>;
|
package/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalRef } from '../../../../services/modal-service/helpers/modal-ref';
|
|
2
|
-
import {
|
|
2
|
+
import { ModalServiceComponent } from '../../../../services/modal-service/helpers/modal.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface GalleryConfirmParams {
|
|
5
5
|
title: string;
|
|
@@ -8,9 +8,8 @@ export interface GalleryConfirmParams {
|
|
|
8
8
|
export interface GalleryConfirmResult {
|
|
9
9
|
result: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare class GalleryConfirmModalComponent extends
|
|
11
|
+
export declare class GalleryConfirmModalComponent extends ModalServiceComponent<GalleryConfirmParams, GalleryConfirmResult> {
|
|
12
12
|
private dialogRef;
|
|
13
|
-
data: GalleryConfirmParams;
|
|
14
13
|
title: string;
|
|
15
14
|
message: string;
|
|
16
15
|
constructor(dialogRef: ModalRef<GalleryConfirmResult>, data: GalleryConfirmParams);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Subscription } from 'rxjs';
|
|
2
2
|
export interface UploadedFileModel {
|
|
3
|
-
|
|
4
|
-
url?: string;
|
|
3
|
+
id: string;
|
|
5
4
|
name?: string;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
length?: number;
|
|
6
|
+
mD5Hash?: string;
|
|
7
|
+
contentType?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface InputFileModel extends UploadedFileModel {
|
|
10
|
+
url?: string;
|
|
10
11
|
tempUuid?: string;
|
|
11
12
|
uploading?: boolean;
|
|
12
13
|
percentage?: number;
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class FileUploadService {
|
|
6
6
|
private http;
|
|
7
7
|
constructor(http: HttpClient);
|
|
8
|
-
upload(url: string,
|
|
8
|
+
upload(url: string, file: File | FormData): Observable<HttpEvent<UploadedResultModel>>;
|
|
9
9
|
delete(url: string, formData: FormData): Observable<UploadedResultModel>;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadService, never>;
|
|
11
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<FileUploadService>;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -4,3 +4,7 @@ export * from './mrx-form-validator/mrx-form-validator';
|
|
|
4
4
|
export * from './save-store/save-store.module';
|
|
5
5
|
export * from './save-store/store/selectors';
|
|
6
6
|
export * from './save-store/store/actions';
|
|
7
|
+
export * from './modal-service/modal-service.module';
|
|
8
|
+
export * from './modal-service/models/modal-config.model';
|
|
9
|
+
export * from './modal-service/modal-service.service';
|
|
10
|
+
export * from './modal-service/helpers';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModalServiceComponent } from '../../helpers/modal.component';
|
|
2
2
|
import { ModalRef } from '../../helpers/modal-ref';
|
|
3
3
|
import { ModalCustomConfig } from '../../models/modal-config.model';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -7,9 +7,8 @@ export interface DefaultAlertModalParams {
|
|
|
7
7
|
message: string;
|
|
8
8
|
}
|
|
9
9
|
export type DefaultAlertModalResult = boolean | undefined;
|
|
10
|
-
export declare class AlertModalComponent extends
|
|
10
|
+
export declare class AlertModalComponent extends ModalServiceComponent<DefaultAlertModalParams, DefaultAlertModalResult> {
|
|
11
11
|
private dialogRef;
|
|
12
|
-
data: DefaultAlertModalParams;
|
|
13
12
|
config: ModalCustomConfig;
|
|
14
13
|
model: DefaultAlertModalParams;
|
|
15
14
|
constructor(dialogRef: ModalRef<DefaultAlertModalResult>, data: DefaultAlertModalParams, config: ModalCustomConfig);
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ModalRef } from '../../helpers/modal-ref';
|
|
2
2
|
import { ModalCustomConfig } from '../../models/modal-config.model';
|
|
3
|
-
import {
|
|
3
|
+
import { ModalServiceComponent } from '../../helpers/modal.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface DefaultConfirmModalParams {
|
|
6
6
|
title: string;
|
|
7
7
|
message: string;
|
|
8
8
|
}
|
|
9
9
|
export type DefaultConfirmModalResult = boolean | undefined;
|
|
10
|
-
export declare class ConfirmModalComponent extends
|
|
10
|
+
export declare class ConfirmModalComponent extends ModalServiceComponent<DefaultConfirmModalParams, DefaultConfirmModalResult> {
|
|
11
11
|
private dialogRef;
|
|
12
|
-
data: DefaultConfirmModalParams;
|
|
13
12
|
config: ModalCustomConfig;
|
|
14
13
|
model: DefaultConfirmModalParams;
|
|
15
14
|
constructor(dialogRef: ModalRef<DefaultConfirmModalResult>, data: DefaultConfirmModalParams, config: ModalCustomConfig);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./components/alert-modal/alert-modal.component";
|
|
4
|
+
import * as i3 from "./components/confirm-modal/confirm-modal.component";
|
|
5
|
+
export declare class ModalServiceModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalServiceModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ModalServiceModule, never, [typeof i1.CommonModule, typeof i2.AlertModalComponent, typeof i3.ConfirmModalComponent], never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ModalServiceModule>;
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Injector, Type } from '@angular/core';
|
|
2
2
|
import { Overlay } from '@angular/cdk/overlay';
|
|
3
3
|
import { ModalRef } from './helpers/modal-ref';
|
|
4
|
-
import {
|
|
4
|
+
import { ModalServiceComponent } from './helpers/modal.component';
|
|
5
5
|
import { DefaultAlertModalParams, DefaultAlertModalResult } from './components/alert-modal/alert-modal.component';
|
|
6
6
|
import { ModalConfig, ModalCustomConfig } from './models/modal-config.model';
|
|
7
7
|
import { DefaultConfirmModalParams, DefaultConfirmModalResult } from './components/confirm-modal/confirm-modal.component';
|
|
@@ -10,11 +10,11 @@ export declare class ModalService {
|
|
|
10
10
|
private overlay;
|
|
11
11
|
private injector;
|
|
12
12
|
constructor(overlay: Overlay, injector: Injector);
|
|
13
|
-
open<T, T1>(component: Type<
|
|
13
|
+
open<T, T1>(component: Type<ModalServiceComponent<T, T1>>, data: T, config?: ModalConfig): ModalRef<T1>;
|
|
14
14
|
openAlert(data: DefaultAlertModalParams, config?: ModalCustomConfig): ModalRef<DefaultAlertModalResult>;
|
|
15
15
|
openConfirm(data: DefaultConfirmModalParams, config?: ModalCustomConfig): ModalRef<DefaultConfirmModalResult>;
|
|
16
|
-
createModal<T, T1>(component: Type<
|
|
17
|
-
createDefaultModal<T, T1>(component: Type<
|
|
16
|
+
createModal<T, T1>(component: Type<ModalServiceComponent<T, T1>>, data: T, config: ModalConfig): ModalRef<T1>;
|
|
17
|
+
createDefaultModal<T, T1>(component: Type<ModalServiceComponent<T, T1>>, data: T, config: ModalCustomConfig): ModalRef<T1>;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
20
20
|
}
|