@posiwise/enterprise-module 0.0.100 → 0.0.102
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/fesm2022/posiwise-enterprise-module.mjs +158 -86
- package/fesm2022/posiwise-enterprise-module.mjs.map +1 -1
- package/package.json +6 -6
- package/types/posiwise-enterprise-module.d.ts +492 -0
- package/index.d.ts +0 -11
- package/lib/components/enterprise-communication-details/enterprise-communication-details.component.d.ts +0 -24
- package/lib/components/enterprise-communications/enterprise-communications.component.d.ts +0 -90
- package/lib/components/enterprise-insights/enterprise-insights.component.d.ts +0 -26
- package/lib/components/enterprise-members/enterprise-members.component.d.ts +0 -69
- package/lib/components/enterprise-partners/enterprise-partners.component.d.ts +0 -81
- package/lib/components/enterprise-subscriptions/enterprise-subscriptions.component.d.ts +0 -20
- package/lib/components/enterprise-tabs/enterprise-tabs.component.d.ts +0 -11
- package/lib/components/enterprise-wiki/enterprise-wiki.component.d.ts +0 -93
- package/lib/components/enterprise-wiki-details/enterprise-wiki-details.component.d.ts +0 -24
- package/lib/enterprise.module.d.ts +0 -31
- package/lib/interfaces/enterprise.interface.d.ts +0 -64
- package/lib/models/enterprise.model.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posiwise/enterprise-module",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.102",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@angular/forms": "^
|
|
5
|
+
"@angular/common": "^21.2.6",
|
|
6
|
+
"@angular/core": "^21.2.6",
|
|
7
|
+
"@angular/forms": "^21.2.6",
|
|
8
8
|
"angular-plotly.js": "^5.2.2"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"module": "fesm2022/posiwise-enterprise-module.mjs",
|
|
15
|
-
"typings": "
|
|
15
|
+
"typings": "types/posiwise-enterprise-module.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
"./package.json": {
|
|
18
18
|
"default": "./package.json"
|
|
19
19
|
},
|
|
20
20
|
".": {
|
|
21
|
-
"types": "./
|
|
21
|
+
"types": "./types/posiwise-enterprise-module.d.ts",
|
|
22
22
|
"default": "./fesm2022/posiwise-enterprise-module.mjs"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, Injector, ChangeDetectorRef, EventEmitter, AfterViewInit, Renderer2, ElementRef } from '@angular/core';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { DataService, SubscriptionService, AuthService, ProductService, GroupService } from '@posiwise/common-services';
|
|
5
|
+
import { Subscription, User, Plotly } from '@posiwise/common-utilities';
|
|
6
|
+
import * as _angular_forms from '@angular/forms';
|
|
7
|
+
import { UntypedFormGroup, UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
|
|
8
|
+
import { AdminService } from '@posiwise/admin-module-utils';
|
|
9
|
+
import * as i25 from 'ngx-uploader';
|
|
10
|
+
import { UploadFile, UploadInput, UploaderOptions, UploadOutput } from 'ngx-uploader';
|
|
11
|
+
import { LazyLoadEvent, MenuItem } from 'primeng/api';
|
|
12
|
+
import { AutoComplete } from 'primeng/autocomplete';
|
|
13
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
14
|
+
import * as i10 from '@angular/common';
|
|
15
|
+
import * as i11 from 'primeng/inputtext';
|
|
16
|
+
import * as i12 from 'primeng/iconfield';
|
|
17
|
+
import * as i13 from 'primeng/inputicon';
|
|
18
|
+
import * as i14 from '@posiwise/core-transloco';
|
|
19
|
+
import * as i15 from 'angular-plotly.js';
|
|
20
|
+
import * as i16 from '@ng-bootstrap/ng-bootstrap';
|
|
21
|
+
import * as i17 from 'ngx-ui-switch';
|
|
22
|
+
import * as i19 from 'primeng/select';
|
|
23
|
+
import * as i20 from 'primeng/fileupload';
|
|
24
|
+
import * as i21 from '@posiwise/pipes';
|
|
25
|
+
import * as i22 from '@posiwise/directives';
|
|
26
|
+
import * as i23 from '@posiwise/shared-components';
|
|
27
|
+
import * as i24 from '@angular/router';
|
|
28
|
+
import * as i26 from 'primeng/multiselect';
|
|
29
|
+
import * as i27 from 'ngx-quill';
|
|
30
|
+
|
|
31
|
+
declare class EnterpriseSubscriptionsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
32
|
+
private readonly data;
|
|
33
|
+
private readonly cdr;
|
|
34
|
+
subscriptions: any[];
|
|
35
|
+
message: number;
|
|
36
|
+
isLoaded: boolean;
|
|
37
|
+
subscription: Subscription;
|
|
38
|
+
userSlug: string;
|
|
39
|
+
constructor(injector: Injector, data: DataService, cdr: ChangeDetectorRef);
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
private getEnterpriseSubscription;
|
|
42
|
+
nextUrl(): void;
|
|
43
|
+
ngOnDestroy(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseSubscriptionsComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseSubscriptionsComponent, "pw-enterprise-subscriptions", never, {}, {}, never, never, false, never>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface EnterPriseCommunication {
|
|
49
|
+
id: number;
|
|
50
|
+
group_id: number;
|
|
51
|
+
body: string;
|
|
52
|
+
visible_globally: false;
|
|
53
|
+
created_at: string;
|
|
54
|
+
user_id: number;
|
|
55
|
+
title: string;
|
|
56
|
+
published: boolean;
|
|
57
|
+
pushed: boolean;
|
|
58
|
+
communication_type: string;
|
|
59
|
+
pushed_at: string;
|
|
60
|
+
group_communication_files: object[];
|
|
61
|
+
author: object;
|
|
62
|
+
group: EnterPriseGroup;
|
|
63
|
+
}
|
|
64
|
+
interface EnterPriseMember {
|
|
65
|
+
id: number;
|
|
66
|
+
first_name: string;
|
|
67
|
+
last_name: string;
|
|
68
|
+
email: string;
|
|
69
|
+
current_sign_in_at: string;
|
|
70
|
+
last_sign_in_at: string;
|
|
71
|
+
signed_up_at: string;
|
|
72
|
+
slug: string;
|
|
73
|
+
enable_two_factor_authenticator: boolean;
|
|
74
|
+
beta: boolean;
|
|
75
|
+
alpha: boolean;
|
|
76
|
+
blocked: boolean;
|
|
77
|
+
warnings: string;
|
|
78
|
+
welcomed_at: boolean;
|
|
79
|
+
has_password: boolean;
|
|
80
|
+
is_super_admin: boolean;
|
|
81
|
+
has_stripe_account: boolean;
|
|
82
|
+
joined_at: string;
|
|
83
|
+
user_groups: object[];
|
|
84
|
+
user_roles: {
|
|
85
|
+
id: number;
|
|
86
|
+
}[];
|
|
87
|
+
user_avatar: string;
|
|
88
|
+
}
|
|
89
|
+
interface EnterPriseGroup {
|
|
90
|
+
id: number;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
93
|
+
group_definition_id: number;
|
|
94
|
+
members: EnterPriseMember[];
|
|
95
|
+
}
|
|
96
|
+
interface EnterPriseGroupDefinition {
|
|
97
|
+
id: number;
|
|
98
|
+
name: string;
|
|
99
|
+
description: string;
|
|
100
|
+
related_entity_id: number;
|
|
101
|
+
related_entity_type: string;
|
|
102
|
+
groups: EnterPriseGroup[];
|
|
103
|
+
}
|
|
104
|
+
interface EnterpriseMembersResponse {
|
|
105
|
+
members: EnterPriseMember[];
|
|
106
|
+
object_count: number;
|
|
107
|
+
unfiltered_count: number;
|
|
108
|
+
owner_id: number;
|
|
109
|
+
admins: number[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare class EnterpriseMembersComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
113
|
+
private readonly formBuilder;
|
|
114
|
+
private readonly subscriptionService;
|
|
115
|
+
private readonly authService;
|
|
116
|
+
private readonly adminService;
|
|
117
|
+
private readonly cdr;
|
|
118
|
+
private readonly token;
|
|
119
|
+
private userSubscription;
|
|
120
|
+
private page;
|
|
121
|
+
previousRolesMap: Map<number, string[]>;
|
|
122
|
+
id: number;
|
|
123
|
+
form: UntypedFormGroup;
|
|
124
|
+
emailsFormArray: UntypedFormArray;
|
|
125
|
+
user: User;
|
|
126
|
+
subscription: Subscription;
|
|
127
|
+
subscriptionOwner: number;
|
|
128
|
+
chatPermission: string;
|
|
129
|
+
hasAccess: boolean;
|
|
130
|
+
productName: string;
|
|
131
|
+
allRoles: any[];
|
|
132
|
+
subscriptionMembers: EnterpriseMembersResponse;
|
|
133
|
+
files: UploadFile[];
|
|
134
|
+
uploadInput: EventEmitter<UploadInput>;
|
|
135
|
+
dragOver: boolean;
|
|
136
|
+
options: UploaderOptions;
|
|
137
|
+
isLoaded: boolean;
|
|
138
|
+
loading: boolean;
|
|
139
|
+
isAddEnabled: boolean;
|
|
140
|
+
availableUnits: number;
|
|
141
|
+
totalRecordsUnFiltered: number;
|
|
142
|
+
searchText: string;
|
|
143
|
+
humanizeBytes: (bytes: number) => string;
|
|
144
|
+
buttonBusy: boolean;
|
|
145
|
+
constructor(injector: Injector, formBuilder: UntypedFormBuilder, subscriptionService: SubscriptionService, authService: AuthService, adminService: AdminService, cdr: ChangeDetectorRef);
|
|
146
|
+
ngOnInit(): void;
|
|
147
|
+
onLazyLoad(event: LazyLoadEvent): void;
|
|
148
|
+
onUploadOutput(output: UploadOutput): void;
|
|
149
|
+
private createItem;
|
|
150
|
+
addItem(): void;
|
|
151
|
+
removeItem(index: any): void;
|
|
152
|
+
/**
|
|
153
|
+
* Gets the list of members for the subscription and also shows the admins for the
|
|
154
|
+
* subscription
|
|
155
|
+
* @param page Page number
|
|
156
|
+
* @param page_size Page Size
|
|
157
|
+
*/
|
|
158
|
+
private getSubscribedUsers;
|
|
159
|
+
getSubscriptionRoles(): void;
|
|
160
|
+
filterRoles(): void;
|
|
161
|
+
onRoleChange(event: any, user: any): void;
|
|
162
|
+
private getSubscriptionDetails;
|
|
163
|
+
onSignUpMember(): void;
|
|
164
|
+
onDelete(user: User): void;
|
|
165
|
+
makeAdmin(user: any, value: boolean): void;
|
|
166
|
+
ngOnDestroy(): void;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseMembersComponent, never>;
|
|
168
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseMembersComponent, "pw-enterprise-members", never, {}, {}, never, never, false, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class EnterprisePartnersComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
172
|
+
private readonly formBuilder;
|
|
173
|
+
private readonly subscriptionService;
|
|
174
|
+
private readonly authService;
|
|
175
|
+
private readonly adminService;
|
|
176
|
+
private readonly productService;
|
|
177
|
+
private readonly cdr;
|
|
178
|
+
private readonly token;
|
|
179
|
+
private userSubscription;
|
|
180
|
+
private page;
|
|
181
|
+
refProduct: AutoComplete;
|
|
182
|
+
id: number;
|
|
183
|
+
subscriptionId: number;
|
|
184
|
+
form: UntypedFormGroup;
|
|
185
|
+
emailsFormArray: UntypedFormArray;
|
|
186
|
+
user: User;
|
|
187
|
+
subscription: Subscription;
|
|
188
|
+
subscriptionOwner: number;
|
|
189
|
+
chatPermission: string;
|
|
190
|
+
hasAccess: boolean;
|
|
191
|
+
filteredProducts: any[];
|
|
192
|
+
searchOptions: {
|
|
193
|
+
id: unknown;
|
|
194
|
+
label: unknown;
|
|
195
|
+
}[];
|
|
196
|
+
searchText: string;
|
|
197
|
+
productName: string;
|
|
198
|
+
allRoles: any[];
|
|
199
|
+
subscriptionPartners: any;
|
|
200
|
+
files: UploadFile[];
|
|
201
|
+
uploadInput: EventEmitter<UploadInput>;
|
|
202
|
+
dragOver: boolean;
|
|
203
|
+
options: UploaderOptions;
|
|
204
|
+
isLoaded: boolean;
|
|
205
|
+
loading: boolean;
|
|
206
|
+
isAddEnabled: boolean;
|
|
207
|
+
invoiceFrequency: string[];
|
|
208
|
+
availableUnits: number;
|
|
209
|
+
totalRecordsUnFiltered: number;
|
|
210
|
+
totalRecords: number;
|
|
211
|
+
humanizeBytes: (bytes: number) => string;
|
|
212
|
+
buttonBusy: boolean;
|
|
213
|
+
unitsText: string;
|
|
214
|
+
currency: string;
|
|
215
|
+
constructor(injector: Injector, formBuilder: UntypedFormBuilder, subscriptionService: SubscriptionService, authService: AuthService, adminService: AdminService, productService: ProductService, cdr: ChangeDetectorRef);
|
|
216
|
+
ngOnInit(): void;
|
|
217
|
+
addItem(): void;
|
|
218
|
+
removeItem(index: any): void;
|
|
219
|
+
private createItem;
|
|
220
|
+
onLazyLoad(event: LazyLoadEvent): void;
|
|
221
|
+
private getSubscribedPartners;
|
|
222
|
+
private getSubscriptionDetails;
|
|
223
|
+
getSupportedCurrency(): void;
|
|
224
|
+
onSave(): void;
|
|
225
|
+
onDelete(partner: {
|
|
226
|
+
id: number;
|
|
227
|
+
}): void;
|
|
228
|
+
onDeactivate(partner: {
|
|
229
|
+
id: number;
|
|
230
|
+
is_active: boolean;
|
|
231
|
+
}): void;
|
|
232
|
+
private getProductsList;
|
|
233
|
+
sortObj(obj: any): {};
|
|
234
|
+
searchProduct(event: any): void;
|
|
235
|
+
onProductChange(event: any): void;
|
|
236
|
+
onProductClear(_event: any): void;
|
|
237
|
+
private groupProducts;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterprisePartnersComponent, never>;
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterprisePartnersComponent, "pw-enterprise-partners", never, {}, {}, never, never, false, never>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
declare class EnterpriseTabsComponent extends AppBaseComponent {
|
|
243
|
+
constructor(injector: Injector);
|
|
244
|
+
activeTab: MenuItem;
|
|
245
|
+
items: MenuItem[];
|
|
246
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseTabsComponent, never>;
|
|
247
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseTabsComponent, "pw-enterprise-tabs", never, {}, {}, never, never, false, never>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare class EnterpriseInsightsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
251
|
+
private readonly subscriptionService;
|
|
252
|
+
private readonly cdr;
|
|
253
|
+
graph: Plotly.Figure;
|
|
254
|
+
user: User;
|
|
255
|
+
subscriptionId: number;
|
|
256
|
+
hasAccess: boolean;
|
|
257
|
+
isLoaded: boolean;
|
|
258
|
+
userId: number;
|
|
259
|
+
selectedDateRange: any;
|
|
260
|
+
dateRanges: any;
|
|
261
|
+
constructor(subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef);
|
|
262
|
+
ngOnInit(): void;
|
|
263
|
+
private getChartData;
|
|
264
|
+
onDateRangeSelect(event: {
|
|
265
|
+
startDate: moment.Moment;
|
|
266
|
+
endDate: moment.Moment;
|
|
267
|
+
}): void;
|
|
268
|
+
ngOnDestroy(): void;
|
|
269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseInsightsComponent, never>;
|
|
270
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseInsightsComponent, "pw-enterprise-insights", never, {}, {}, never, never, false, never>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare class EnterpriseCommunicationsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
274
|
+
private readonly groupService;
|
|
275
|
+
private readonly cdr;
|
|
276
|
+
private readonly renderer;
|
|
277
|
+
private readonly el;
|
|
278
|
+
private page;
|
|
279
|
+
groupDefinition: EnterPriseGroupDefinition[];
|
|
280
|
+
allGroups: EnterPriseGroup[];
|
|
281
|
+
allCommunicationGroups: EnterPriseGroup[];
|
|
282
|
+
allCommunication: EnterPriseCommunication[];
|
|
283
|
+
data: {
|
|
284
|
+
id?: number;
|
|
285
|
+
};
|
|
286
|
+
form: UntypedFormGroup;
|
|
287
|
+
submitted: boolean;
|
|
288
|
+
buttonBusy: boolean;
|
|
289
|
+
user: User;
|
|
290
|
+
hasAccess: boolean;
|
|
291
|
+
subscriptionId: number;
|
|
292
|
+
subscription: Subscription;
|
|
293
|
+
id: number;
|
|
294
|
+
groupId: number;
|
|
295
|
+
groupName: string;
|
|
296
|
+
uploadedFiles: any[];
|
|
297
|
+
filesData: string[];
|
|
298
|
+
busy: boolean;
|
|
299
|
+
loading: boolean;
|
|
300
|
+
isLoaded: boolean;
|
|
301
|
+
filesUploaded: boolean;
|
|
302
|
+
invalidFile: boolean;
|
|
303
|
+
searchText: string;
|
|
304
|
+
totalRecords: number;
|
|
305
|
+
totalRecordsUnFiltered: number;
|
|
306
|
+
editorConfig: any;
|
|
307
|
+
isEdit: boolean;
|
|
308
|
+
isAdd: boolean;
|
|
309
|
+
constructor(groupService: GroupService, injector: Injector, cdr: ChangeDetectorRef, renderer: Renderer2, el: ElementRef);
|
|
310
|
+
ngAfterViewInit(): void;
|
|
311
|
+
ngOnInit(): void;
|
|
312
|
+
onLazyLoad(event: LazyLoadEvent): void;
|
|
313
|
+
/** Function to get all labels */
|
|
314
|
+
private getAllGroupDefinition;
|
|
315
|
+
/** Function to get group name and to setValue to group field if we have group_id */
|
|
316
|
+
private getParticularGroupDetails;
|
|
317
|
+
/** Function to get all communications */
|
|
318
|
+
private getAllCommunications;
|
|
319
|
+
/** Function to filter by groups */
|
|
320
|
+
filterDomainsList(): void;
|
|
321
|
+
onSave(): void;
|
|
322
|
+
/** Function to Post communications */
|
|
323
|
+
postCommunications(): void;
|
|
324
|
+
/** Function to edit communications */
|
|
325
|
+
updateCommunications(): void;
|
|
326
|
+
/** Shared method to save communications (post or update) */
|
|
327
|
+
private saveCommunication;
|
|
328
|
+
/** Function to get edit communication details */
|
|
329
|
+
getCommunicationDetails(id: number): void;
|
|
330
|
+
/** Function to delete communications */
|
|
331
|
+
onDelete(id: number): void;
|
|
332
|
+
/** Function to delete communications Files */
|
|
333
|
+
deleteCommunicationFiles(id: number, index: number): void;
|
|
334
|
+
/** Function to get form controls */
|
|
335
|
+
get f(): {
|
|
336
|
+
[key: string]: _angular_forms.AbstractControl<any, any, any>;
|
|
337
|
+
};
|
|
338
|
+
/** Function to show question edit form */
|
|
339
|
+
showEditForm(): void;
|
|
340
|
+
/** Function to hide the edit form */
|
|
341
|
+
onCancel(): void;
|
|
342
|
+
/** Function for toggle */
|
|
343
|
+
onChange(event: boolean, formControlName: string): void;
|
|
344
|
+
onSelect(event?: any): void;
|
|
345
|
+
attachCloseButtonListener(): void;
|
|
346
|
+
handleCloseButtonClick(): void;
|
|
347
|
+
onRemove(event: any): void;
|
|
348
|
+
onUploadError(event: any): void;
|
|
349
|
+
saveFile(id: number): void;
|
|
350
|
+
ngOnDestroy(): void;
|
|
351
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseCommunicationsComponent, never>;
|
|
352
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseCommunicationsComponent, "pw-enterprise-communications", never, {}, {}, never, never, false, never>;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare class EnterpriseViewParticularCommunicationComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
356
|
+
private readonly groupService;
|
|
357
|
+
private readonly sanitizer;
|
|
358
|
+
private readonly cdr;
|
|
359
|
+
id: number;
|
|
360
|
+
communicationId: number;
|
|
361
|
+
chatPermission: string;
|
|
362
|
+
communicationDetails: EnterPriseCommunication;
|
|
363
|
+
isLoaded: boolean;
|
|
364
|
+
constructor(injector: Injector, groupService: GroupService, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
365
|
+
ngOnInit(): void;
|
|
366
|
+
/** Function to call communication */
|
|
367
|
+
private getCommunication;
|
|
368
|
+
onCancel(): void;
|
|
369
|
+
trackByFileId(_index: number, item: any): any;
|
|
370
|
+
ngOnDestroy(): void;
|
|
371
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseViewParticularCommunicationComponent, never>;
|
|
372
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseViewParticularCommunicationComponent, "pw-enterprise-communication-details", never, {}, {}, never, never, false, never>;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
declare class EnterpriseWikiComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
376
|
+
private readonly groupService;
|
|
377
|
+
private readonly cdr;
|
|
378
|
+
private readonly renderer;
|
|
379
|
+
private readonly el;
|
|
380
|
+
private page;
|
|
381
|
+
groupDefinition: EnterPriseGroupDefinition[];
|
|
382
|
+
allGroups: EnterPriseGroup[];
|
|
383
|
+
allDocumentationGroups: EnterPriseGroup[];
|
|
384
|
+
allCommunication: EnterPriseCommunication[];
|
|
385
|
+
data: {
|
|
386
|
+
id?: number;
|
|
387
|
+
};
|
|
388
|
+
form: UntypedFormGroup;
|
|
389
|
+
submitted: boolean;
|
|
390
|
+
buttonBusy: boolean;
|
|
391
|
+
user: User;
|
|
392
|
+
hasAccess: boolean;
|
|
393
|
+
subscriptionId: number;
|
|
394
|
+
subscription: Subscription;
|
|
395
|
+
masterSubscriptionId: any;
|
|
396
|
+
id: number;
|
|
397
|
+
groupId: number;
|
|
398
|
+
groupName: string;
|
|
399
|
+
uploadedFiles: any[];
|
|
400
|
+
filesData: string[];
|
|
401
|
+
busy: boolean;
|
|
402
|
+
loading: boolean;
|
|
403
|
+
isLoaded: boolean;
|
|
404
|
+
filesUploaded: boolean;
|
|
405
|
+
invalidFile: boolean;
|
|
406
|
+
searchText: string;
|
|
407
|
+
totalRecords: number;
|
|
408
|
+
totalRecordsUnFiltered: number;
|
|
409
|
+
editorConfig: any;
|
|
410
|
+
isEdit: boolean;
|
|
411
|
+
isAdd: boolean;
|
|
412
|
+
constructor(groupService: GroupService, injector: Injector, cdr: ChangeDetectorRef, renderer: Renderer2, el: ElementRef);
|
|
413
|
+
ngAfterViewInit(): void;
|
|
414
|
+
ngOnInit(): void;
|
|
415
|
+
onLazyLoad(event: LazyLoadEvent): void;
|
|
416
|
+
/** Function to get all labels */
|
|
417
|
+
private getAllGroupDefinition;
|
|
418
|
+
/** Function to get group name and to setValue to group field if we have group_id */
|
|
419
|
+
private getParticularGroupDetails;
|
|
420
|
+
/** Function to get all communications */
|
|
421
|
+
private getAllCommunications;
|
|
422
|
+
/** Function to filter by groups */
|
|
423
|
+
filterDomainsList(): void;
|
|
424
|
+
onSave(): void;
|
|
425
|
+
/** Function to Post communications */
|
|
426
|
+
postCommunications(): void;
|
|
427
|
+
/** Function to edit communications */
|
|
428
|
+
updateCommunications(id: number): void;
|
|
429
|
+
/** Shared method to save communications (post or update) */
|
|
430
|
+
private saveCommunication;
|
|
431
|
+
/** Function to get edit communication details */
|
|
432
|
+
getCommunicationDetails(id: number): void;
|
|
433
|
+
/** Function to delete communications */
|
|
434
|
+
onDelete(id: number): void;
|
|
435
|
+
/** Function to delete communications Files */
|
|
436
|
+
deleteCommunicationFiles(id: number, index: number): void;
|
|
437
|
+
/** Helper method to confirm and execute delete operations */
|
|
438
|
+
private confirmAndExecute;
|
|
439
|
+
/** Function to get form controls */
|
|
440
|
+
get f(): {
|
|
441
|
+
[key: string]: _angular_forms.AbstractControl<any, any, any>;
|
|
442
|
+
};
|
|
443
|
+
/** Function to show question edit form */
|
|
444
|
+
showEditForm(): void;
|
|
445
|
+
/** Function to hide the edit form */
|
|
446
|
+
onCancel(): void;
|
|
447
|
+
/** Function for toggle */
|
|
448
|
+
onChange(event: boolean, formControlName: string): void;
|
|
449
|
+
onSelect(event?: any): void;
|
|
450
|
+
onRemove(event: any): void;
|
|
451
|
+
onUploadError(event: any): void;
|
|
452
|
+
attachCloseButtonListener(): void;
|
|
453
|
+
handleCloseButtonClick(): void;
|
|
454
|
+
saveFile(id: number): void;
|
|
455
|
+
ngOnDestroy(): void;
|
|
456
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseWikiComponent, never>;
|
|
457
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseWikiComponent, "pw-enterprise-wiki", never, {}, {}, never, never, false, never>;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
declare class EnterpriseWikiDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
461
|
+
private readonly groupService;
|
|
462
|
+
private readonly sanitizer;
|
|
463
|
+
private readonly cdr;
|
|
464
|
+
id: number;
|
|
465
|
+
communicationId: number;
|
|
466
|
+
communicationDetails: EnterPriseCommunication;
|
|
467
|
+
isLoaded: boolean;
|
|
468
|
+
chatPermission: string;
|
|
469
|
+
constructor(injector: Injector, groupService: GroupService, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
|
|
470
|
+
ngOnInit(): void;
|
|
471
|
+
/** Function to call communication */
|
|
472
|
+
private getCommunication;
|
|
473
|
+
onCancel(): void;
|
|
474
|
+
trackByFileId(_index: number, item: any): any;
|
|
475
|
+
ngOnDestroy(): void;
|
|
476
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseWikiDetailsComponent, never>;
|
|
477
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseWikiDetailsComponent, "pw-enterprise-wiki-details", never, {}, {}, never, never, false, never>;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
declare class EnterpriseModule {
|
|
481
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseModule, never>;
|
|
482
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EnterpriseModule, [typeof EnterpriseSubscriptionsComponent, typeof EnterpriseMembersComponent, typeof EnterprisePartnersComponent, typeof EnterpriseTabsComponent, typeof EnterpriseInsightsComponent, typeof EnterpriseCommunicationsComponent, typeof EnterpriseViewParticularCommunicationComponent, typeof EnterpriseWikiComponent, typeof EnterpriseWikiDetailsComponent], [typeof i10.CommonModule, typeof i11.InputTextModule, typeof i12.IconFieldModule, typeof i13.InputIconModule, typeof i14.CoreTranslocoModule, typeof i15.PlotlyViaCDNModule, typeof i16.NgbTooltipModule, typeof i17.UiSwitchModule, typeof _angular_forms.FormsModule, typeof i19.SelectModule, typeof i20.FileUploadModule, typeof _angular_forms.ReactiveFormsModule, typeof i21.PipesModule, typeof i22.DirectivesModule, typeof i23.SharedComponentsModule, typeof i24.RouterModule, typeof i25.NgxUploaderModule, typeof i26.MultiSelectModule, typeof i27.QuillModule], never>;
|
|
483
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EnterpriseModule>;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
declare class AppEnterprise {
|
|
487
|
+
static getWikiForm(): _angular_forms.UntypedFormGroup;
|
|
488
|
+
static getCommunicationsForm(): _angular_forms.UntypedFormGroup;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export { AppEnterprise, EnterpriseCommunicationsComponent, EnterpriseInsightsComponent, EnterpriseMembersComponent, EnterpriseModule, EnterpriseSubscriptionsComponent, EnterpriseTabsComponent, EnterpriseViewParticularCommunicationComponent, EnterpriseWikiComponent, EnterpriseWikiDetailsComponent };
|
|
492
|
+
export type { EnterPriseCommunication, EnterPriseGroup, EnterPriseGroupDefinition, EnterpriseMembersResponse };
|
package/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './lib/enterprise.module';
|
|
2
|
-
export * from './lib/components/enterprise-communication-details/enterprise-communication-details.component';
|
|
3
|
-
export * from './lib/components/enterprise-communications/enterprise-communications.component';
|
|
4
|
-
export * from './lib/components/enterprise-insights/enterprise-insights.component';
|
|
5
|
-
export * from './lib/components/enterprise-members/enterprise-members.component';
|
|
6
|
-
export * from './lib/components/enterprise-subscriptions/enterprise-subscriptions.component';
|
|
7
|
-
export * from './lib/components/enterprise-tabs/enterprise-tabs.component';
|
|
8
|
-
export * from './lib/components/enterprise-wiki/enterprise-wiki.component';
|
|
9
|
-
export * from './lib/components/enterprise-wiki-details/enterprise-wiki-details.component';
|
|
10
|
-
export * from './lib/interfaces/enterprise.interface';
|
|
11
|
-
export * from './lib/models/enterprise.model';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
-
import { GroupService } from '@posiwise/common-services';
|
|
5
|
-
import { EnterPriseCommunication } from '../../interfaces/enterprise.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class EnterpriseViewParticularCommunicationComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
8
|
-
private readonly groupService;
|
|
9
|
-
private readonly sanitizer;
|
|
10
|
-
id: number;
|
|
11
|
-
communicationId: number;
|
|
12
|
-
chatPermission: string;
|
|
13
|
-
communicationDetails: EnterPriseCommunication;
|
|
14
|
-
isLoaded: boolean;
|
|
15
|
-
constructor(injector: Injector, groupService: GroupService, sanitizer: DomSanitizer);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
/** Function to call communication */
|
|
18
|
-
private getCommunication;
|
|
19
|
-
onCancel(): void;
|
|
20
|
-
trackByFileId(_index: number, item: any): any;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseViewParticularCommunicationComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseViewParticularCommunicationComponent, "pw-enterprise-communication-details", never, {}, {}, never, never, false, never>;
|
|
24
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
-
import { GroupService } from '@posiwise/common-services';
|
|
5
|
-
import { Subscription, User } from '@posiwise/common-utilities';
|
|
6
|
-
import { LazyLoadEvent } from 'primeng/api';
|
|
7
|
-
import { EnterPriseCommunication, EnterPriseGroup, EnterPriseGroupDefinition } from '../../interfaces/enterprise.interface';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class EnterpriseCommunicationsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked, AfterViewInit {
|
|
10
|
-
private readonly groupService;
|
|
11
|
-
private readonly cdr;
|
|
12
|
-
private readonly renderer;
|
|
13
|
-
private readonly el;
|
|
14
|
-
private page;
|
|
15
|
-
groupDefinition: EnterPriseGroupDefinition[];
|
|
16
|
-
allGroups: EnterPriseGroup[];
|
|
17
|
-
allCommunicationGroups: EnterPriseGroup[];
|
|
18
|
-
allCommunication: EnterPriseCommunication[];
|
|
19
|
-
data: {
|
|
20
|
-
id?: number;
|
|
21
|
-
};
|
|
22
|
-
form: UntypedFormGroup;
|
|
23
|
-
submitted: boolean;
|
|
24
|
-
buttonBusy: boolean;
|
|
25
|
-
user: User;
|
|
26
|
-
hasAccess: boolean;
|
|
27
|
-
subscriptionId: number;
|
|
28
|
-
subscription: Subscription;
|
|
29
|
-
id: number;
|
|
30
|
-
groupId: number;
|
|
31
|
-
groupName: string;
|
|
32
|
-
uploadedFiles: any[];
|
|
33
|
-
filesData: string[];
|
|
34
|
-
busy: boolean;
|
|
35
|
-
loading: boolean;
|
|
36
|
-
isLoaded: boolean;
|
|
37
|
-
filesUploaded: boolean;
|
|
38
|
-
invalidFile: boolean;
|
|
39
|
-
searchText: string;
|
|
40
|
-
totalRecords: number;
|
|
41
|
-
totalRecordsUnFiltered: number;
|
|
42
|
-
editorConfig: any;
|
|
43
|
-
isEdit: boolean;
|
|
44
|
-
isAdd: boolean;
|
|
45
|
-
constructor(groupService: GroupService, injector: Injector, cdr: ChangeDetectorRef, renderer: Renderer2, el: ElementRef);
|
|
46
|
-
ngAfterViewInit(): void;
|
|
47
|
-
ngOnInit(): void;
|
|
48
|
-
ngAfterViewChecked(): void;
|
|
49
|
-
onLazyLoad(event: LazyLoadEvent): void;
|
|
50
|
-
/** Function to get all labels */
|
|
51
|
-
private getAllGroupDefinition;
|
|
52
|
-
/** Function to get group name and to setValue to group field if we have group_id */
|
|
53
|
-
private getParticularGroupDetails;
|
|
54
|
-
/** Function to get all communications */
|
|
55
|
-
private getAllCommunications;
|
|
56
|
-
/** Function to filter by groups */
|
|
57
|
-
filterDomainsList(): void;
|
|
58
|
-
onSave(): void;
|
|
59
|
-
/** Function to Post communications */
|
|
60
|
-
postCommunications(): void;
|
|
61
|
-
/** Function to edit communications */
|
|
62
|
-
updateCommunications(): void;
|
|
63
|
-
/** Shared method to save communications (post or update) */
|
|
64
|
-
private saveCommunication;
|
|
65
|
-
/** Function to get edit communication details */
|
|
66
|
-
getCommunicationDetails(id: number): void;
|
|
67
|
-
/** Function to delete communications */
|
|
68
|
-
onDelete(id: number): void;
|
|
69
|
-
/** Function to delete communications Files */
|
|
70
|
-
deleteCommunicationFiles(id: number, index: number): void;
|
|
71
|
-
/** Function to get form controls */
|
|
72
|
-
get f(): {
|
|
73
|
-
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
74
|
-
};
|
|
75
|
-
/** Function to show question edit form */
|
|
76
|
-
showEditForm(): void;
|
|
77
|
-
/** Function to hide the edit form */
|
|
78
|
-
onCancel(): void;
|
|
79
|
-
/** Function for toggle */
|
|
80
|
-
onChange(event: boolean, formControlName: string): void;
|
|
81
|
-
onSelect(event?: any): void;
|
|
82
|
-
attachCloseButtonListener(): void;
|
|
83
|
-
handleCloseButtonClick(): void;
|
|
84
|
-
onRemove(event: any): void;
|
|
85
|
-
onUploadError(event: any): void;
|
|
86
|
-
saveFile(id: number): void;
|
|
87
|
-
ngOnDestroy(): void;
|
|
88
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseCommunicationsComponent, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseCommunicationsComponent, "pw-enterprise-communications", never, {}, {}, never, never, false, never>;
|
|
90
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
-
import { SubscriptionService } from '@posiwise/common-services';
|
|
4
|
-
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class EnterpriseInsightsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
7
|
-
private readonly subscriptionService;
|
|
8
|
-
graph: Plotly.Figure;
|
|
9
|
-
user: User;
|
|
10
|
-
subscriptionId: number;
|
|
11
|
-
hasAccess: boolean;
|
|
12
|
-
isLoaded: boolean;
|
|
13
|
-
userId: number;
|
|
14
|
-
selectedDateRange: any;
|
|
15
|
-
dateRanges: any;
|
|
16
|
-
constructor(subscriptionService: SubscriptionService, injector: Injector);
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
private getChartData;
|
|
19
|
-
onDateRangeSelect(event: {
|
|
20
|
-
startDate: moment.Moment;
|
|
21
|
-
endDate: moment.Moment;
|
|
22
|
-
}): void;
|
|
23
|
-
ngOnDestroy(): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EnterpriseInsightsComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EnterpriseInsightsComponent, "pw-enterprise-insights", never, {}, {}, never, never, false, never>;
|
|
26
|
-
}
|