ngx-techlify-core 18.82.0 → 18.84.0
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/entity-files/entity-file-list/entity-file-list.component.mjs +12 -3
- package/esm2022/lib/note/comment-form/comment-form.component.mjs +12 -9
- package/esm2022/lib/note/index.mjs +2 -1
- package/esm2022/lib/note/note-comment-list/note-comment-list.component.mjs +103 -0
- package/esm2022/lib/note/note-form/note-form.component.mjs +50 -66
- package/esm2022/lib/note/note-list/note-list.component.mjs +39 -106
- package/esm2022/lib/note/note.module.mjs +14 -45
- package/esm2022/lib/note/note.service.mjs +4 -15
- package/esm2022/lib/techlify-company-switcher/techlify-company-switcher/techlify-company-switcher.component.mjs +10 -8
- package/esm2022/lib/user-client-enable-disable-button/user-client-enable-disable-button.component.mjs +4 -4
- package/esm2022/lib/user-clients-list/user-clients-list.component.mjs +4 -4
- package/esm2022/lib/user-clients-list/{user-client.service.mjs → user-tenant.service.mjs} +10 -10
- package/fesm2022/ngx-techlify-core.mjs +831 -848
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/entity-files/entity-file-list/entity-file-list.component.d.ts +3 -1
- package/lib/note/comment-form/comment-form.component.d.ts +1 -1
- package/lib/note/index.d.ts +1 -0
- package/lib/note/note-comment-list/note-comment-list.component.d.ts +33 -0
- package/lib/note/note-form/note-form.component.d.ts +24 -25
- package/lib/note/note-list/note-list.component.d.ts +7 -11
- package/lib/note/note.module.d.ts +4 -12
- package/lib/note/note.service.d.ts +2 -6
- package/lib/techlify-company-switcher/techlify-company-switcher/techlify-company-switcher.component.d.ts +3 -1
- package/lib/user-client-enable-disable-button/user-client-enable-disable-button.component.d.ts +3 -3
- package/lib/user-clients-list/user-clients-list.component.d.ts +3 -3
- package/lib/user-clients-list/user-tenant.service.d.ts +11 -0
- package/package.json +1 -1
- package/lib/user-clients-list/user-client.service.d.ts +0 -11
|
@@ -32,6 +32,8 @@ export declare class EntityFileListComponent extends TechlifyListComponent imple
|
|
|
32
32
|
viewMode: 'list' | 'timeline';
|
|
33
33
|
fileDropperHeight: string;
|
|
34
34
|
isShowDragDropSection: boolean;
|
|
35
|
+
isWidgetView: boolean;
|
|
36
|
+
defaultFilters: Record<string, any>;
|
|
35
37
|
set isFilterPatchFromRoute(value: boolean);
|
|
36
38
|
get isFilterPatchFromRoute(): boolean;
|
|
37
39
|
/**
|
|
@@ -63,5 +65,5 @@ export declare class EntityFileListComponent extends TechlifyListComponent imple
|
|
|
63
65
|
fileChanged(event: any): Promise<void>;
|
|
64
66
|
bulkUpdate(fieldName: any): Promise<void>;
|
|
65
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntityFileListComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntityFileListComponent, "app-entity-file-list, app-entity-files-view-all", never, { "entityId": { "alias": "entityId"; "required": false; }; "entityType": { "alias": "entityType"; "required": false; }; "viewOnly": { "alias": "viewOnly"; "required": false; }; "removeSearch": { "alias": "removeSearch"; "required": false; }; "hideTitleAndDetails": { "alias": "hideTitleAndDetails"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "allowMultipleFiles": { "alias": "allowMultipleFiles"; "required": false; }; "allowBulkUpdate": { "alias": "allowBulkUpdate"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "fileDropperHeight": { "alias": "fileDropperHeight"; "required": false; }; "isShowDragDropSection": { "alias": "isShowDragDropSection"; "required": false; }; "isFilterPatchFromRoute": { "alias": "isFilterPatchFromRoute"; "required": false; }; "useTechlifyTags": { "alias": "useTechlifyTags"; "required": false; }; "techlifyTagCategories": { "alias": "techlifyTagCategories"; "required": false; }; "techlifyTagConfig": { "alias": "techlifyTagConfig"; "required": false; }; "title": { "alias": "title"; "required": false; }; "permission": { "alias": "permission"; "required": false; }; }, {}, never, never, false, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntityFileListComponent, "app-entity-file-list, app-entity-files-view-all", never, { "entityId": { "alias": "entityId"; "required": false; }; "entityType": { "alias": "entityType"; "required": false; }; "viewOnly": { "alias": "viewOnly"; "required": false; }; "removeSearch": { "alias": "removeSearch"; "required": false; }; "hideTitleAndDetails": { "alias": "hideTitleAndDetails"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "allowMultipleFiles": { "alias": "allowMultipleFiles"; "required": false; }; "allowBulkUpdate": { "alias": "allowBulkUpdate"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "fileDropperHeight": { "alias": "fileDropperHeight"; "required": false; }; "isShowDragDropSection": { "alias": "isShowDragDropSection"; "required": false; }; "isWidgetView": { "alias": "isWidgetView"; "required": false; }; "defaultFilters": { "alias": "defaultFilters"; "required": false; }; "isFilterPatchFromRoute": { "alias": "isFilterPatchFromRoute"; "required": false; }; "useTechlifyTags": { "alias": "useTechlifyTags"; "required": false; }; "techlifyTagCategories": { "alias": "techlifyTagCategories"; "required": false; }; "techlifyTagConfig": { "alias": "techlifyTagConfig"; "required": false; }; "title": { "alias": "title"; "required": false; }; "permission": { "alias": "permission"; "required": false; }; }, {}, never, never, false, never>;
|
|
67
69
|
}
|
|
@@ -21,5 +21,5 @@ export declare class CommentFormComponent implements OnInit, OnDestroy {
|
|
|
21
21
|
deleteComment(): void;
|
|
22
22
|
ngOnDestroy(): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommentFormComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentFormComponent, "app-comment-form", never, { "commentData": { "alias": "commentData"; "required": false; }; }, { "action": "action"; }, never, never,
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentFormComponent, "app-comment-form", never, { "commentData": { "alias": "commentData"; "required": false; }; }, { "action": "action"; }, never, never, true, never>;
|
|
25
25
|
}
|
package/lib/note/index.d.ts
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { TechlifyListComponent } from '../../base-model';
|
|
4
|
+
import { NoteService } from '../note.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Notes rendered as a comment thread, where each comment is edited in place
|
|
8
|
+
* through app-comment-form. Use app-note-list for the table/timeline views.
|
|
9
|
+
*/
|
|
10
|
+
export declare class NoteCommentListComponent extends TechlifyListComponent implements OnInit {
|
|
11
|
+
protected service: NoteService;
|
|
12
|
+
private dialog;
|
|
13
|
+
relatedModelId: any;
|
|
14
|
+
modelType: any;
|
|
15
|
+
labelText: string;
|
|
16
|
+
constructor(service: NoteService, dialog: MatDialog);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Comments are not filtered from the route, so the filters are held
|
|
20
|
+
* on the component rather than in a filter form
|
|
21
|
+
*/
|
|
22
|
+
loadData(): void;
|
|
23
|
+
commentAction(event: any): void;
|
|
24
|
+
addComment(comment: any): void;
|
|
25
|
+
editComment(comment: any): void;
|
|
26
|
+
/**
|
|
27
|
+
* app-comment-form has its own delete link rather than
|
|
28
|
+
* app-techlify-delete-button, so the confirmation is opened here
|
|
29
|
+
*/
|
|
30
|
+
deleteComment(comment: any): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoteCommentListComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoteCommentListComponent, "app-note-comment-list", never, { "relatedModelId": { "alias": "relatedModelId"; "required": false; }; "modelType": { "alias": "modelType"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import {
|
|
3
|
-
import { MatDialogRef } from
|
|
4
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { TechlifyFormComponent } from '../../base-model';
|
|
5
5
|
import { FormValidatorService } from '../../core/form-validator.service';
|
|
6
|
-
import {
|
|
6
|
+
import { NoteService } from '../note.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class NoteFormComponent implements OnInit {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare class NoteFormComponent extends TechlifyFormComponent implements OnInit {
|
|
9
|
+
protected formValidatorService: FormValidatorService;
|
|
10
|
+
protected service: NoteService;
|
|
11
11
|
private fb;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
dialogRef: MatDialogRef<NoteFormComponent>;
|
|
13
|
+
data?: {
|
|
14
|
+
model?: any;
|
|
15
|
+
model_type?: string;
|
|
16
|
+
related_model_id?: any;
|
|
17
|
+
labelText?: string;
|
|
18
|
+
};
|
|
19
|
+
labelText: string;
|
|
20
|
+
constructor(formValidatorService: FormValidatorService, service: NoteService, fb: UntypedFormBuilder, dialogRef: MatDialogRef<NoteFormComponent>, data?: {
|
|
21
|
+
model?: any;
|
|
22
|
+
model_type?: string;
|
|
23
|
+
related_model_id?: any;
|
|
24
|
+
labelText?: string;
|
|
25
|
+
});
|
|
21
26
|
ngOnInit(): void;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**Method to evaluate form fields*/
|
|
25
|
-
isFieldValid(field: string): any;
|
|
26
|
-
/**Method to find error in form fields*/
|
|
27
|
-
getErrorMessage(field: string): any;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NoteFormComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NoteFormComponent, "app-note-form", never, {}, {}, never, never, false, never>;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoteFormComponent, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoteFormComponent, "app-note-form", never, {}, {}, never, never, true, never>;
|
|
30
29
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { NoteService } from '../note.service';
|
|
3
|
-
import {
|
|
3
|
+
import { NoteFormComponent } from '../note-form/note-form.component';
|
|
4
4
|
import { TechlifyListComponent } from '../../base-model';
|
|
5
5
|
import { AlertService } from "../../core";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class NoteListComponent extends TechlifyListComponent implements OnInit {
|
|
8
|
-
|
|
9
|
-
private dialog;
|
|
8
|
+
protected noteService: NoteService;
|
|
10
9
|
private alertService;
|
|
11
10
|
relatedModelId: any;
|
|
12
11
|
modelType: any;
|
|
@@ -14,20 +13,17 @@ export declare class NoteListComponent extends TechlifyListComponent implements
|
|
|
14
13
|
labelText: string;
|
|
15
14
|
commentsView: boolean;
|
|
16
15
|
viewMode: 'list' | 'timeline';
|
|
17
|
-
filters: any;
|
|
18
16
|
displayedColumns: string[];
|
|
17
|
+
noteForm: import("@angular/core").WritableSignal<typeof NoteFormComponent>;
|
|
19
18
|
note: any;
|
|
20
19
|
isSaving: boolean;
|
|
21
20
|
total: number;
|
|
22
|
-
constructor(noteService: NoteService,
|
|
21
|
+
constructor(noteService: NoteService, alertService: AlertService);
|
|
23
22
|
ngOnInit(): void;
|
|
24
23
|
loadData(): void;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
commentAction(event: any): void;
|
|
29
|
-
editComment(comment: any): Promise<void>;
|
|
30
|
-
addComment(comment: any): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* This is needed here for the timeline view
|
|
26
|
+
*/
|
|
31
27
|
saveNote(): void;
|
|
32
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoteListComponent, never>;
|
|
33
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<NoteListComponent, "app-note-list", never, { "relatedModelId": { "alias": "relatedModelId"; "required": false; }; "modelType": { "alias": "modelType"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "commentsView": { "alias": "commentsView"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./note-list/note-list.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/forms";
|
|
7
|
-
import * as i6 from "ngx-infinite-scroll";
|
|
8
|
-
import * as i7 from "@angular/flex-layout";
|
|
9
|
-
import * as i8 from "../action-popup/action-popup.module";
|
|
10
|
-
import * as i9 from "../material.module";
|
|
11
|
-
import * as i10 from "../read-more/read-more.module";
|
|
12
|
-
import * as i11 from "@angular/material/progress-bar";
|
|
13
|
-
import * as i12 from "../techlify-icon/techlify-icon.module";
|
|
3
|
+
import * as i2 from "@angular/flex-layout";
|
|
4
|
+
import * as i3 from "../shared.module";
|
|
5
|
+
import * as i4 from "./note-comment-list/note-comment-list.component";
|
|
14
6
|
export declare class NoteModule {
|
|
15
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoteModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NoteModule, [typeof i1.NoteListComponent, typeof i2.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NoteModule, [typeof i1.NoteListComponent], [typeof i2.FlexLayoutModule, typeof i3.SharedModule, typeof i4.NoteCommentListComponent], [typeof i1.NoteListComponent, typeof i4.NoteCommentListComponent]>;
|
|
17
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<NoteModule>;
|
|
18
10
|
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { HttpService } from '../core/http.service';
|
|
2
|
+
import { TechlifyService } from '../base-model/techlify-service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NoteService {
|
|
4
|
-
private http;
|
|
4
|
+
export declare class NoteService extends TechlifyService {
|
|
5
5
|
constructor(http: HttpService);
|
|
6
|
-
getNotes(filterModel: any): Promise<Object>;
|
|
7
|
-
addNote(note: any): Promise<Object>;
|
|
8
|
-
editNote(note: any): Promise<Object>;
|
|
9
|
-
deleteNote(note: any): Promise<Object>;
|
|
10
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoteService, never>;
|
|
11
7
|
static ɵprov: i0.ɵɵInjectableDeclaration<NoteService>;
|
|
12
8
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { AlertService, CredentialsService, HttpService } from '../../core';
|
|
3
3
|
import { CurrentUserService, User } from '../../user';
|
|
4
|
+
import { UserTenantService } from '../../user-clients-list/user-tenant.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TechlifyCompanySwitcherComponent implements OnInit {
|
|
6
7
|
private http;
|
|
7
8
|
private credentialsService;
|
|
8
9
|
private alertService;
|
|
9
10
|
private currentUserService;
|
|
11
|
+
private userTenantService;
|
|
10
12
|
userClients: any[];
|
|
11
13
|
user: User;
|
|
12
|
-
constructor(http: HttpService, credentialsService: CredentialsService, alertService: AlertService, currentUserService: CurrentUserService);
|
|
14
|
+
constructor(http: HttpService, credentialsService: CredentialsService, alertService: AlertService, currentUserService: CurrentUserService, userTenantService: UserTenantService);
|
|
13
15
|
ngOnInit(): void;
|
|
14
16
|
/**
|
|
15
17
|
* Load User Clients.
|
package/lib/user-client-enable-disable-button/user-client-enable-disable-button.component.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { AlertService, CredentialsService } from '../core';
|
|
3
|
-
import {
|
|
3
|
+
import { UserTenantService } from '../user-clients-list/user-tenant.service';
|
|
4
4
|
import { User } from "../user/user.model";
|
|
5
5
|
import { CurrentUserService } from "../user/current-user.service";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class UserClientEnableDisableButtonComponent implements OnInit {
|
|
8
8
|
private credentialsService;
|
|
9
9
|
protected currentUserService: CurrentUserService;
|
|
10
|
-
protected service:
|
|
10
|
+
protected service: UserTenantService;
|
|
11
11
|
private alertService;
|
|
12
12
|
userClient: any;
|
|
13
13
|
saved: EventEmitter<any>;
|
|
14
14
|
user: User;
|
|
15
15
|
isWorking: boolean;
|
|
16
|
-
constructor(credentialsService: CredentialsService, currentUserService: CurrentUserService, service:
|
|
16
|
+
constructor(credentialsService: CredentialsService, currentUserService: CurrentUserService, service: UserTenantService, alertService: AlertService);
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
enable(): void;
|
|
19
19
|
disable(): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { User } from '../user/user.model';
|
|
3
3
|
import { TechlifyListComponent } from '../base-model';
|
|
4
|
-
import {
|
|
4
|
+
import { UserTenantService } from './user-tenant.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class UserClientsListComponent extends TechlifyListComponent implements OnInit {
|
|
7
|
-
protected service:
|
|
7
|
+
protected service: UserTenantService;
|
|
8
8
|
user: User;
|
|
9
9
|
displayedColumns: string[];
|
|
10
|
-
constructor(service:
|
|
10
|
+
constructor(service: UserTenantService);
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
loadData(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserClientsListComponent, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TechlifyService } from '../base-model';
|
|
2
|
+
import { HttpService } from '../core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserTenantService extends TechlifyService {
|
|
6
|
+
constructor(httpService: HttpService);
|
|
7
|
+
enable(userTenant: any, params?: any): Observable<any>;
|
|
8
|
+
disable(userTenant: any, params?: any): Observable<any>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserTenantService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserTenantService>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TechlifyService } from '../base-model';
|
|
2
|
-
import { HttpService } from '../core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserClientService extends TechlifyService {
|
|
6
|
-
constructor(httpService: HttpService);
|
|
7
|
-
enable(userClient: any, params?: any): Observable<any>;
|
|
8
|
-
disable(userClient: any, params?: any): Observable<any>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserClientService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserClientService>;
|
|
11
|
-
}
|