barsa-sap-ui 1.0.322 → 1.0.323
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/esm2020/lib/barsa-pishnamayesh-payam/barsa-pishnamayesh-payam.component.mjs +129 -11
- package/esm2020/lib/blob-viewer/blob-viewer.component.mjs +11 -3
- package/esm2020/lib/file-viewer-popover/file-viewer-popover.component.mjs +9 -4
- package/fesm2015/barsa-sap-ui.mjs +136 -11
- package/fesm2015/barsa-sap-ui.mjs.map +1 -1
- package/fesm2020/barsa-sap-ui.mjs +135 -11
- package/fesm2020/barsa-sap-ui.mjs.map +1 -1
- package/lib/barsa-pishnamayesh-payam/barsa-pishnamayesh-payam.component.d.ts +56 -6
- package/lib/blob-viewer/blob-viewer.component.d.ts +3 -2
- package/lib/file-viewer-popover/file-viewer-popover.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import { FieldBaseComponent } from 'barsa-novin-ray-core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import { FieldBaseComponent, DateService, FileAttachmentInfo } from 'barsa-novin-ray-core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class BarsaPishnamayeshPayamComponent extends FieldBaseComponent implements OnInit {
|
|
6
|
-
data:
|
|
6
|
+
data: PayamClassType;
|
|
7
7
|
expanded: boolean;
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarsaPishnamayeshPayamComponent, never>;
|
|
@@ -11,18 +11,68 @@ export declare class BarsaPishnamayeshPayamComponent extends FieldBaseComponent
|
|
|
11
11
|
}
|
|
12
12
|
declare type PayamType = {
|
|
13
13
|
AccessLevel: number;
|
|
14
|
+
Attachments?: PayamAttachment[];
|
|
14
15
|
BccText: string;
|
|
16
|
+
Subject: string;
|
|
15
17
|
CategoryString: string;
|
|
16
18
|
CcText: string;
|
|
17
19
|
ContentHtml: string;
|
|
18
20
|
CustomText: string;
|
|
19
21
|
FromText: string;
|
|
22
|
+
FromPhoto: string;
|
|
23
|
+
Order: number;
|
|
20
24
|
Importance: number;
|
|
21
25
|
ReadDate: string;
|
|
22
26
|
SendDate: string;
|
|
23
|
-
Subject: string;
|
|
24
27
|
ToText: string;
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
Todo: PayamTodo;
|
|
29
|
+
Details?: PayamType[];
|
|
30
|
+
};
|
|
31
|
+
declare class PayamClassType {
|
|
32
|
+
payam: PayamType;
|
|
33
|
+
private _domSanitizer;
|
|
34
|
+
private _dateService;
|
|
35
|
+
$content?: SafeHtml;
|
|
36
|
+
$sendDate?: string;
|
|
37
|
+
$readDate?: string;
|
|
38
|
+
$fromPhoto?: string;
|
|
39
|
+
$toText?: string[];
|
|
40
|
+
$ccText?: string[];
|
|
41
|
+
$bccText?: string[];
|
|
42
|
+
$details?: PayamClassType[];
|
|
43
|
+
$attachments?: FileAttachmentInfo[];
|
|
44
|
+
$importance: {
|
|
45
|
+
icon: string | null;
|
|
46
|
+
text: string | null;
|
|
47
|
+
};
|
|
48
|
+
$accessLevel: {
|
|
49
|
+
icon: string | null;
|
|
50
|
+
text: string | null;
|
|
51
|
+
};
|
|
52
|
+
$todo: {
|
|
53
|
+
text: string;
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
constructor(payam: PayamType, _domSanitizer: DomSanitizer, _dateService: DateService);
|
|
57
|
+
private _textTodo;
|
|
58
|
+
private _textImportance;
|
|
59
|
+
private _textAccessLevel;
|
|
60
|
+
private _iconImportance;
|
|
61
|
+
private _iconAccessLevel;
|
|
62
|
+
private _getSize;
|
|
63
|
+
private _getAttachmentIcon;
|
|
64
|
+
private _getDateString;
|
|
65
|
+
}
|
|
66
|
+
declare type PayamAttachment = {
|
|
67
|
+
Attachtype: string;
|
|
68
|
+
Extension: string;
|
|
69
|
+
Id: string;
|
|
70
|
+
Name: string;
|
|
71
|
+
Size: string;
|
|
72
|
+
};
|
|
73
|
+
declare type PayamTodo = {
|
|
74
|
+
DueDate: string;
|
|
75
|
+
State: number;
|
|
76
|
+
DoneDate?: string;
|
|
27
77
|
};
|
|
28
78
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
3
|
import { BaseComponent, FileAttachmentInfo } from 'barsa-novin-ray-core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BlobViewerComponent extends BaseComponent implements OnInit {
|
|
5
|
+
export declare class BlobViewerComponent extends BaseComponent implements OnInit, OnChanges {
|
|
6
6
|
private _cdr;
|
|
7
7
|
private _domSanitizer;
|
|
8
8
|
file: FileAttachmentInfo;
|
|
@@ -11,6 +11,7 @@ export declare class BlobViewerComponent extends BaseComponent implements OnInit
|
|
|
11
11
|
fallbackUrl: string;
|
|
12
12
|
constructor(_cdr: ChangeDetectorRef, _domSanitizer: DomSanitizer);
|
|
13
13
|
ngOnInit(): void;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
15
|
protected _downloadFileId(fileId: any, viewInBrowser: any, convertTo: any, forOcx: any, isOfficeOnline: any): void;
|
|
15
16
|
protected getFallbackUrl(fileId: any): string;
|
|
16
17
|
protected _setLoading(loading: any): void;
|
|
@@ -2,12 +2,14 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { AbbrevationDeviceSize, BaseComponent, FileAttachmentInfo } from 'barsa-novin-ray-core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FileViewerPopoverComponent extends BaseComponent implements OnInit {
|
|
5
|
+
files: FileAttachmentInfo[];
|
|
5
6
|
file: FileAttachmentInfo;
|
|
6
7
|
deviceSize: AbbrevationDeviceSize;
|
|
7
8
|
canDownload: boolean;
|
|
9
|
+
disableRemove: boolean;
|
|
8
10
|
remove: EventEmitter<void>;
|
|
9
11
|
constructor();
|
|
10
12
|
ngOnInit(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileViewerPopoverComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileViewerPopoverComponent, "bsu-file-viewer-popover", never, { "file": "file"; "deviceSize": "deviceSize"; "canDownload": "canDownload"; }, { "remove": "remove"; }, never, never, false>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileViewerPopoverComponent, "bsu-file-viewer-popover", never, { "files": "files"; "file": "file"; "deviceSize": "deviceSize"; "canDownload": "canDownload"; "disableRemove": "disableRemove"; }, { "remove": "remove"; }, never, never, false>;
|
|
13
15
|
}
|