ngx-histaff-alpha 2.3.4 → 2.3.6
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/lib/app/app-pipes/map-attachment-to-server.pipe.mjs +25 -0
- package/esm2022/lib/app/app-pipes/uploaded-filename-cutoff.pipe.mjs +22 -0
- package/esm2022/lib/app/libraries/core-attachment/core-attachment/core-attachment.component.mjs +59 -24
- package/esm2022/lib/app/libraries/core-control/core-control/core-control.component.mjs +1 -1
- package/esm2022/lib/app/libraries/core-seen-by/core-seen-by.component.mjs +32 -0
- package/esm2022/lib/app/libraries/core-table/EnumCoreTablePipeType.mjs +2 -1
- package/esm2022/lib/app/libraries/core-table/core-table.component.mjs +4 -2
- package/esm2022/lib/app/libraries/pipes/table-cell.pipe.mjs +9 -1
- package/esm2022/lib/app/services/app-config.service.mjs +2 -1
- package/esm2022/lib/app/services/app-initialization.service.mjs +4 -3
- package/esm2022/lib/app/services/uploaded-file.service.mjs +24 -0
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/ngx-histaff-alpha.mjs +159 -25
- package/fesm2022/ngx-histaff-alpha.mjs.map +1 -1
- package/lib/app/app-pipes/map-attachment-to-server.pipe.d.ts +10 -0
- package/lib/app/app-pipes/uploaded-filename-cutoff.pipe.d.ts +7 -0
- package/lib/app/libraries/core-attachment/core-attachment/core-attachment.component.d.ts +15 -5
- package/lib/app/libraries/core-seen-by/core-seen-by.component.d.ts +14 -0
- package/lib/app/libraries/core-table/EnumCoreTablePipeType.d.ts +2 -1
- package/lib/app/services/app-config.service.d.ts +1 -0
- package/lib/app/services/uploaded-file.service.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AppConfigService } from '../services/app-config.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MapAttachmentToServerPipe implements PipeTransform {
|
|
5
|
+
private appConfigService;
|
|
6
|
+
constructor(appConfigService: AppConfigService);
|
|
7
|
+
transform(value: string | null | undefined): string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapAttachmentToServerPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MapAttachmentToServerPipe, "mapAttachmentToServer", true>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UploadedFilenameCutoffPipe implements PipeTransform {
|
|
4
|
+
transform(value: string | undefined, ...args: unknown[]): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadedFilenameCutoffPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<UploadedFilenameCutoffPipe, "uploadedFilenameCutoff", true>;
|
|
7
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ElementRef, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, Renderer2, ElementRef, Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { CoreFormControlBaseComponent } from '../../core-form-control-base/core-form-control-base.component';
|
|
3
3
|
import { NgControl } from '@angular/forms';
|
|
4
4
|
import { AlertService } from '../../alert/alert.service';
|
|
5
5
|
import { MultiLanguageService } from '../../../services/multi-language.service';
|
|
6
6
|
import { AppConfigService } from '../../../services/app-config.service';
|
|
7
|
+
import { UploadedFileService } from '../../../services/uploaded-file.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export interface ICoreAttachment {
|
|
9
10
|
assignTo: string;
|
|
@@ -12,26 +13,35 @@ export interface ICoreAttachment {
|
|
|
12
13
|
clientFileType: string;
|
|
13
14
|
clientFileData: string;
|
|
14
15
|
}
|
|
15
|
-
export declare class CoreAttachmentComponent extends CoreFormControlBaseComponent implements OnChanges, OnInit {
|
|
16
|
+
export declare class CoreAttachmentComponent extends CoreFormControlBaseComponent implements OnChanges, OnInit, AfterViewInit {
|
|
16
17
|
private injector;
|
|
17
18
|
private alertService;
|
|
18
19
|
private mls;
|
|
19
20
|
private appConfigService;
|
|
20
|
-
|
|
21
|
+
private uploadedFileService;
|
|
22
|
+
private renderer;
|
|
21
23
|
assignTo: string;
|
|
24
|
+
readonly: boolean;
|
|
22
25
|
valueToShow: string;
|
|
26
|
+
container: ElementRef;
|
|
27
|
+
previewable: boolean;
|
|
23
28
|
value: ICoreAttachment | null;
|
|
24
29
|
onChange: (_: ICoreAttachment | null) => void;
|
|
25
30
|
writeValue(obj: ICoreAttachment | null): void;
|
|
26
31
|
ngControl: NgControl;
|
|
27
32
|
worker: Worker;
|
|
28
33
|
rawInput: ElementRef;
|
|
29
|
-
|
|
34
|
+
listenerFn: () => void;
|
|
35
|
+
dropdownHeight: number;
|
|
36
|
+
dropdownPadding: number;
|
|
37
|
+
constructor(injector: Injector, alertService: AlertService, mls: MultiLanguageService, appConfigService: AppConfigService, uploadedFileService: UploadedFileService, renderer: Renderer2);
|
|
30
38
|
ngOnChanges(changes: SimpleChanges): void;
|
|
31
39
|
ngOnInit(): void;
|
|
40
|
+
ngAfterViewInit(): void;
|
|
32
41
|
onClickUpload(): void;
|
|
33
42
|
onClickDownload(): void;
|
|
43
|
+
isPreviewable(): boolean;
|
|
34
44
|
handleInputChange(e: any): void;
|
|
35
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreAttachmentComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoreAttachmentComponent, "core-attachment", never, { "
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoreAttachmentComponent, "core-attachment", never, { "assignTo": { "alias": "assignTo"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "valueToShow": { "alias": "valueToShow"; "required": false; }; }, {}, never, never, true, never>;
|
|
37
47
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CoreFormControlBaseComponent } from '../core-form-control-base/core-form-control-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ICoreSeenBy {
|
|
4
|
+
id: string;
|
|
5
|
+
username: string;
|
|
6
|
+
userFullname?: string;
|
|
7
|
+
avatar?: string;
|
|
8
|
+
lastSeenOn: Date;
|
|
9
|
+
}
|
|
10
|
+
export declare class CoreSeenByComponent extends CoreFormControlBaseComponent {
|
|
11
|
+
value: ICoreSeenBy[];
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoreSeenByComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoreSeenByComponent, "core-seen-by", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -14,5 +14,6 @@ export declare enum EnumCoreTablePipeType {
|
|
|
14
14
|
BOOLEAN_TO_ACTIVE_INACTIVE = "BOOLEAN_TO_ACTIVE_INACTIVE",
|
|
15
15
|
LOWERCASE = "LOWERCASE",
|
|
16
16
|
UPPERCASE = "UPPERCASE",
|
|
17
|
-
NORMALIZE_HUMAN_NAME = "NORMALIZE_HUMAN_NAME"
|
|
17
|
+
NORMALIZE_HUMAN_NAME = "NORMALIZE_HUMAN_NAME",
|
|
18
|
+
UPLOADED_FILENAME_CUT_OFF = "UPLOADED_FILENAME_CUT_OFF"
|
|
18
19
|
}
|
|
@@ -23,6 +23,7 @@ export declare class AppConfigService {
|
|
|
23
23
|
HANGFIRE_PATH: string;
|
|
24
24
|
STATIC_FOLDER: string;
|
|
25
25
|
AVATAR_FOLDER: string;
|
|
26
|
+
ATTACHMENT_FOLDER: string;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
|
|
27
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UploadedFileService {
|
|
3
|
+
constructor();
|
|
4
|
+
canPreviewAsImage(fileName: string): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadedFileService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UploadedFileService>;
|
|
7
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './lib/ngx-histaff-alpha.service';
|
|
2
2
|
export * from './lib/ngx-histaff-alpha.component';
|
|
3
|
+
export * from './lib/app/app-pipes/map-attachment-to-server.pipe';
|
|
3
4
|
export * from './lib/app/app-pipes/map-avatar-to-server.pipe';
|
|
4
5
|
export * from './lib/app/app-pipes/translate.pipe';
|
|
6
|
+
export * from './lib/app/app-pipes/uploaded-filename-cutoff.pipe';
|
|
5
7
|
export * from './lib/app/components/dialog-state/dialog-state.component';
|
|
6
8
|
export * from './lib/app/components/footer/footer.component';
|
|
7
9
|
export * from './lib/app/components/rightchat/rightchat.component';
|
|
@@ -82,6 +84,7 @@ export * from './lib/app/services/sys-menu.service';
|
|
|
82
84
|
export * from './lib/app/services/timesheet.service';
|
|
83
85
|
export * from './lib/app/services/topic-permission.service';
|
|
84
86
|
export * from './lib/app/services/topic-tree.service';
|
|
87
|
+
export * from './lib/app/services/uploaded-file.service';
|
|
85
88
|
export * from './lib/app/services/url.service';
|
|
86
89
|
export * from './lib/app/services/user-activity.service';
|
|
87
90
|
export * from './lib/app/services/valuate-dialog.service';
|
|
@@ -218,6 +221,7 @@ export * from './lib/app/libraries/core-reducer-icon/core-reducer-icon/core-redu
|
|
|
218
221
|
export * from './lib/app/libraries/core-routing-history/core-routing-history/core-routing-history.component';
|
|
219
222
|
export * from './lib/app/libraries/core-scroll/core-scroll/core-scroll.component';
|
|
220
223
|
export * from './lib/app/libraries/core-scroll-lazy/core-scroll-lazy/core-scroll-lazy.component';
|
|
224
|
+
export * from './lib/app/libraries/core-seen-by/core-seen-by.component';
|
|
221
225
|
export * from './lib/app/libraries/core-status-sticker/core-status-sticker/IStickerColorSchema';
|
|
222
226
|
export * from './lib/app/libraries/core-status-sticker/core-status-sticker/STICKER_COLOR_SCHEMA';
|
|
223
227
|
export * from './lib/app/libraries/core-status-sticker/core-status-sticker/core-status-sticker.component';
|