@posiwise/shared-components 0.0.214 → 0.0.216
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.
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as i1$
|
|
1
|
+
import * as i1$3 from "@angular/common";
|
|
2
2
|
import { CommonModule, DOCUMENT, NgIf } from "@angular/common";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import { ChangeDetectionStrategy, Component, ContentChild, DOCUMENT as DOCUMENT$1, Directive, EventEmitter, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, Pipe, SkipSelf, ViewChild, ViewContainerRef, booleanAttribute, isDevMode } from "@angular/core";
|
|
4
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, DOCUMENT as DOCUMENT$1, DestroyRef, Directive, EventEmitter, Host, HostBinding, HostListener, Inject, Injectable, InjectionToken, Input, NgModule, Optional, Output, Pipe, SkipSelf, ViewChild, ViewContainerRef, booleanAttribute, inject, isDevMode } from "@angular/core";
|
|
5
5
|
import * as i4$1 from "@angular/forms";
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormControl, Validators } from "@angular/forms";
|
|
7
|
-
import * as
|
|
7
|
+
import * as i9$1 from "@angular/router";
|
|
8
8
|
import { NavigationEnd, RouterModule } from "@angular/router";
|
|
9
9
|
import * as i8$1 from "@posiwise/app-loader";
|
|
10
10
|
import { AppLoaderModule } from "@posiwise/app-loader";
|
|
11
11
|
import { CoreTranslocoModule } from "@posiwise/core-transloco";
|
|
12
12
|
import * as i1$1 from "@posiwise/directives";
|
|
13
13
|
import { DirectivesModule } from "@posiwise/directives";
|
|
14
|
-
import * as
|
|
14
|
+
import * as i15 from "@posiwise/pipes";
|
|
15
15
|
import { PipesModule } from "@posiwise/pipes";
|
|
16
16
|
import * as i4 from "@posiwise/utils";
|
|
17
17
|
import { FieldErrorDisplayModule, ProfileImageCropperModule, ResourceHeaderModule, ValidateForm } from "@posiwise/utils";
|
|
@@ -34,15 +34,15 @@ import * as i8 from "primeng/progressspinner";
|
|
|
34
34
|
import { ProgressSpinnerModule } from "primeng/progressspinner";
|
|
35
35
|
import * as i6 from "primeng/select";
|
|
36
36
|
import { SelectModule } from "primeng/select";
|
|
37
|
-
import * as
|
|
37
|
+
import * as i11 from "primeng/table";
|
|
38
38
|
import { TableModule } from "primeng/table";
|
|
39
39
|
import * as i2$1 from "primeng/tabs";
|
|
40
40
|
import { TabsModule } from "primeng/tabs";
|
|
41
|
-
import * as
|
|
41
|
+
import * as i10 from "primeng/tooltip";
|
|
42
42
|
import { TooltipModule } from "primeng/tooltip";
|
|
43
|
-
import * as i1$
|
|
43
|
+
import * as i1$4 from "@ng-bootstrap/ng-bootstrap";
|
|
44
44
|
import { NgbModalModule, NgbNavModule, NgbTooltipModule } from "@ng-bootstrap/ng-bootstrap";
|
|
45
|
-
import * as i1$
|
|
45
|
+
import * as i1$2 from "@posiwise/common-services";
|
|
46
46
|
import { KNOWLEDGE_EXTENSIONS, KNOWLEDGE_MAX_BYTES, PermissionService } from "@posiwise/common-services";
|
|
47
47
|
import { ADMIN_ROUTERS, PAGE_SIZE, TAG_ENTITY } from "@posiwise/common-utilities";
|
|
48
48
|
import { catchError, debounceTime, distinctUntilChanged, filter, finalize, map, switchMap, take, takeUntil } from "rxjs/operators";
|
|
@@ -50,13 +50,17 @@ import * as i2$4 from "@jsverse/transloco";
|
|
|
50
50
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
51
51
|
import * as i2$3 from "@posiwise/app-config-service";
|
|
52
52
|
import { BehaviorSubject, Subject, of, takeUntil as takeUntil$1 } from "rxjs";
|
|
53
|
-
import * as i3 from "@ngrx/store";
|
|
53
|
+
import * as i3$1 from "@ngrx/store";
|
|
54
54
|
import { HelperService } from "@posiwise/helper-service";
|
|
55
55
|
import { __decorate, __metadata } from "tslib";
|
|
56
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
56
57
|
import { StatusCodes } from "http-status-codes";
|
|
57
58
|
import * as i2$2 from "@angular/platform-browser";
|
|
58
59
|
import * as i1 from "@posiwise/admin-module-utils";
|
|
59
60
|
import { DragDropModule } from "@angular/cdk/drag-drop";
|
|
61
|
+
import * as i3 from "@fortawesome/angular-fontawesome";
|
|
62
|
+
import { FontAwesomeModule } from "@fortawesome/angular-fontawesome";
|
|
63
|
+
import { faCircle, faCircleCheck, faCircleExclamation, faCircleHalfStroke, faCircleQuestion, faHourglassHalf } from "@fortawesome/free-solid-svg-icons";
|
|
60
64
|
var ConfirmDialogComponent = class ConfirmDialogComponent {
|
|
61
65
|
constructor(modal) {
|
|
62
66
|
this.modal = modal;
|
|
@@ -124,7 +128,7 @@ var ConfirmDialogComponent = class ConfirmDialogComponent {
|
|
|
124
128
|
version: "22.2.0",
|
|
125
129
|
ngImport: i0,
|
|
126
130
|
type: ConfirmDialogComponent,
|
|
127
|
-
deps: [{ token: i1$
|
|
131
|
+
deps: [{ token: i1$4.NgbActiveModal }],
|
|
128
132
|
target: i0.ɵɵFactoryTarget.Component
|
|
129
133
|
});
|
|
130
134
|
}
|
|
@@ -161,7 +165,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
161
165
|
styles: [".pw-confirm{position:relative;padding:24px 24px 20px}.pw-confirm__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pw-confirm__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9999px;font-size:16px;flex-shrink:0}.pw-confirm--info .pw-confirm__icon,.pw-confirm--neutral .pw-confirm__icon{background:#1769e11a;color:var(--first, #1769e1)}.pw-confirm__title{flex:1;margin:0;font-size:16px;font-weight:600;color:var(--titles, #222);line-height:1.3}.pw-confirm__close{flex-shrink:0}.pw-confirm__body{margin-bottom:20px}.pw-confirm__message{margin:0;color:var(--text, #222);font-size:14px;line-height:1.5}.pw-confirm__message ::ng-deep strong{font-weight:600;color:var(--titles, #222)}.pw-confirm__footer{display:flex;justify-content:flex-end;gap:8px}.pw-confirm--destructive{padding:48px 32px 32px;text-align:center}.pw-confirm--destructive .pw-confirm__header{flex-direction:column;align-items:center;gap:24px;margin-bottom:20px}.pw-confirm--destructive .pw-confirm__icon{width:80px;height:80px;font-size:36px;background:transparent;border:4px solid #dc3545;color:#dc3545}.pw-confirm--destructive .pw-confirm__title{flex:none;text-align:center;font-size:24px;font-weight:700;line-height:1.2}.pw-confirm--destructive .pw-confirm__close{display:none}.pw-confirm--destructive .pw-confirm__body{margin-bottom:28px}.pw-confirm--destructive .pw-confirm__message{text-align:center;font-size:16px;line-height:1.5}.pw-confirm--destructive .pw-confirm__footer{justify-content:center;gap:14px;margin-top:0}.pw-confirm--destructive .pw-confirm__footer .btn{min-width:96px;padding:10px 24px;font-weight:600}::ng-deep .pw-confirm-modal .modal-content{border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 10px 30px #1018281f;overflow:hidden}\n"]
|
|
162
166
|
}]
|
|
163
167
|
}],
|
|
164
|
-
ctorParameters: () => [{ type: i1$
|
|
168
|
+
ctorParameters: () => [{ type: i1$4.NgbActiveModal }],
|
|
165
169
|
propDecorators: { config: [{ type: Input }] }
|
|
166
170
|
});
|
|
167
171
|
var ConfirmDialogService = class ConfirmDialogService {
|
|
@@ -193,7 +197,7 @@ var ConfirmDialogService = class ConfirmDialogService {
|
|
|
193
197
|
version: "22.2.0",
|
|
194
198
|
ngImport: i0,
|
|
195
199
|
type: ConfirmDialogService,
|
|
196
|
-
deps: [{ token: i1$
|
|
200
|
+
deps: [{ token: i1$4.NgbModal }],
|
|
197
201
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
198
202
|
});
|
|
199
203
|
}
|
|
@@ -216,7 +220,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
216
220
|
type: Injectable,
|
|
217
221
|
args: [{ providedIn: "root" }]
|
|
218
222
|
}],
|
|
219
|
-
ctorParameters: () => [{ type: i1$
|
|
223
|
+
ctorParameters: () => [{ type: i1$4.NgbModal }]
|
|
220
224
|
});
|
|
221
225
|
function folderOf(file) {
|
|
222
226
|
const slash = file.path.lastIndexOf("/");
|
|
@@ -231,7 +235,7 @@ function formatSize(bytes) {
|
|
|
231
235
|
return `${(bytes / 1048576).toFixed(1)} MB`;
|
|
232
236
|
}
|
|
233
237
|
function folderBadgeClasses(files) {
|
|
234
|
-
const folders = [...new Set(files.map(topFolderOf).filter(Boolean))].sort();
|
|
238
|
+
const folders = [...new Set(files.map(topFolderOf).filter(Boolean))].sort((a, b) => a.localeCompare(b));
|
|
235
239
|
return new Map(folders.map((folder, i) => [folder, `bg-cyan-${i * 7 % 24 + 1}`]));
|
|
236
240
|
}
|
|
237
241
|
function uploadProblem(file) {
|
|
@@ -248,6 +252,14 @@ function matchingCount(filtered, files) {
|
|
|
248
252
|
function shownOnPage(first, pageSize, matching) {
|
|
249
253
|
return Math.max(0, Math.min(pageSize, matching - first));
|
|
250
254
|
}
|
|
255
|
+
function saveBlob(blob, name) {
|
|
256
|
+
const url = URL.createObjectURL(blob);
|
|
257
|
+
const link = document.createElement("a");
|
|
258
|
+
link.href = url;
|
|
259
|
+
link.download = name;
|
|
260
|
+
link.click();
|
|
261
|
+
URL.revokeObjectURL(url);
|
|
262
|
+
}
|
|
251
263
|
var NoDataComponent = class NoDataComponent {
|
|
252
264
|
constructor() {
|
|
253
265
|
this.message = null;
|
|
@@ -311,7 +323,7 @@ var NoDataComponent = class NoDataComponent {
|
|
|
311
323
|
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.no-data{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%;height:100%;border:1px dashed rgb(204,204,204);border-radius:4px;margin:20px 0;padding:10px;background:#fafafa!important;color:oklch(from var(--text) 40% c h)!important}.no-data .message{font-weight:500;font-size:15px;color:#5a6473!important}.no-data.has-content{padding-top:10px;padding-bottom:20px}.no-data .no-data-icon{margin-top:15px;font-size:44px;line-height:1;color:#a8afbc}\n"],
|
|
312
324
|
dependencies: [{
|
|
313
325
|
kind: "directive",
|
|
314
|
-
type: i1$
|
|
326
|
+
type: i1$3.NgClass,
|
|
315
327
|
selector: "[ngClass]",
|
|
316
328
|
inputs: ["class", "ngClass"]
|
|
317
329
|
}]
|
|
@@ -432,6 +444,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
432
444
|
this.scope = "subscription";
|
|
433
445
|
this.subscriptionId = null;
|
|
434
446
|
this.subscriptionName = "";
|
|
447
|
+
this.useOwnData = true;
|
|
435
448
|
this.accept = KNOWLEDGE_EXTENSIONS.join(",");
|
|
436
449
|
this.pageSize = PAGE_SIZE;
|
|
437
450
|
this.files = [];
|
|
@@ -489,14 +502,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
489
502
|
});
|
|
490
503
|
}
|
|
491
504
|
download(file) {
|
|
492
|
-
this.knowledge.downloadFile(this.subscriptionId, this.scope, file.path).subscribe((blob) =>
|
|
493
|
-
const url = URL.createObjectURL(blob);
|
|
494
|
-
const link = document.createElement("a");
|
|
495
|
-
link.href = url;
|
|
496
|
-
link.download = file.name;
|
|
497
|
-
link.click();
|
|
498
|
-
URL.revokeObjectURL(url);
|
|
499
|
-
});
|
|
505
|
+
this.knowledge.downloadFile(this.subscriptionId, this.scope, file.path).subscribe((blob) => saveBlob(blob, file.name));
|
|
500
506
|
}
|
|
501
507
|
remove(file) {
|
|
502
508
|
this.confirmDialog.confirmDelete({
|
|
@@ -532,9 +538,9 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
532
538
|
ngImport: i0,
|
|
533
539
|
type: AiKnowledgeComponent,
|
|
534
540
|
deps: [
|
|
535
|
-
{ token: i1$
|
|
541
|
+
{ token: i1$2.KnowledgeFilesService },
|
|
536
542
|
{ token: ConfirmDialogService },
|
|
537
|
-
{ token: i1$
|
|
543
|
+
{ token: i1$2.CustomToastService },
|
|
538
544
|
{ token: i2$4.TranslocoService },
|
|
539
545
|
{ token: i0.ChangeDetectorRef }
|
|
540
546
|
],
|
|
@@ -551,7 +557,8 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
551
557
|
inputs: {
|
|
552
558
|
scope: "scope",
|
|
553
559
|
subscriptionId: "subscriptionId",
|
|
554
|
-
subscriptionName: "subscriptionName"
|
|
560
|
+
subscriptionName: "subscriptionName",
|
|
561
|
+
useOwnData: "useOwnData"
|
|
555
562
|
},
|
|
556
563
|
viewQueries: [{
|
|
557
564
|
propertyName: "fileInput",
|
|
@@ -561,8 +568,8 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
561
568
|
}],
|
|
562
569
|
usesOnChanges: true,
|
|
563
570
|
ngImport: i0,
|
|
564
|
-
template: "<section class=\"ai-knowledge\">\n <div class=\"title\">\n <h2>{{ (scope === 'personal' ? 'AiKnowledge.PersonalTitle' : 'AiKnowledge.Title') | transloco: { name: subscriptionName } }}</h2>\n </div>\n <p>{{ (scope === 'personal' ? 'AiKnowledge.PersonalIntro' : 'AiKnowledge.Intro') | transloco: { name: subscriptionName } }}</p>\n\n <div class=\"ai-knowledge-toolbar\">\n
|
|
565
|
-
styles: [".ai-knowledge-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px}.ai-knowledge-hint{color:#5a6473;font-size:12px}td[data-head=Name]{min-width:200px}td[data-head=Size],td[data-head=Modified]{white-space:nowrap;font-variant-numeric:tabular-nums}\n"],
|
|
571
|
+
template: "<section class=\"ai-knowledge\">\n <div class=\"title\">\n <h2>{{ (scope === 'personal' ? 'AiKnowledge.PersonalTitle' : 'AiKnowledge.Title') | transloco: { name: subscriptionName } }}</h2>\n </div>\n <p>{{ (scope === 'personal' ? 'AiKnowledge.PersonalIntro' : 'AiKnowledge.Intro') | transloco: { name: subscriptionName } }}</p>\n\n @if (!useOwnData) {\n <output class=\"alert alert-warning ai-knowledge-off\">\n <i class=\"fa fa-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>\n {{ (scope === 'personal' ? 'AiKnowledge.PersonalUseOwnDataOff' : 'AiKnowledge.UseOwnDataOff') | transloco: { name: subscriptionName } }}\n @if (scope === 'subscription' && subscriptionId) {\n <a [routerLink]=\"['/account/subscriptions', subscriptionId]\">{{ 'AiKnowledge.OpenSubscriptionSettings' | transloco }}</a>\n }\n </span>\n </output>\n }\n\n @if (useOwnData) {\n <div class=\"ai-knowledge-toolbar\">\n <span class=\"ai-knowledge-hint\">{{ 'AiKnowledge.Accepted' | transloco }}</span>\n <input #fileInput type=\"file\" class=\"d-none\" id=\"ai-knowledge-file-{{ scope }}\"\n [accept]=\"accept\" (change)=\"onFileSelected($event)\" />\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\"\n [disabled]=\"uploading || !subscriptionId\" (click)=\"chooseFile()\">\n <i class=\"fa\" [class.fa-upload]=\"!uploading\" [class.fa-spinner]=\"uploading\" [class.fa-spin]=\"uploading\"\n aria-hidden=\"true\"></i>\n {{ (uploading ? 'AiKnowledge.Uploading' : 'AiKnowledge.UploadFile') | transloco }}\n </button>\n </div>\n }\n\n <pw-loader [isVisible]=\"loading\"></pw-loader>\n\n @if (!loading) {\n @if (files.length) {\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\">\n <p-table #dt [value]=\"files\" dataKey=\"path\"\n [paginator]=\"files.length !== 0\"\n [rows]=\"pageSize\"\n [globalFilterFields]=\"['name', 'path']\"\n (onPage)=\"pageFirst = $event.first\"\n (onFilter)=\"pageFirst = 0\"\n stateKey=\"pw-table.ai-knowledge\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #caption>\n <div class=\"text-end\">\n <label for=\"ai-knowledge-search-{{ scope }}\" class=\"visually-hidden\">{{ 'AiKnowledge.SearchPlaceholder' | transloco }}</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input type=\"text\"\n id=\"ai-knowledge-search-{{ scope }}\"\n name=\"ai-knowledge-search-{{ scope }}\"\n [(ngModel)]=\"searchText\"\n pInputText\n [placeholder]=\"'AiKnowledge.SearchPlaceholder' | transloco\"\n (input)=\"dt.filterGlobal(searchText, 'contains')\"\n [attr.aria-label]=\"'AiKnowledge.SearchPlaceholder' | transloco\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td [attr.colspan]=\"showFolder ? 5 : 4\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\"\n [description]=\"'Search.NoDataDescription' | transloco\"></pw-no-data>\n </td>\n </tr>\n </ng-template>\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"col\">{{ 'Label.Name' | transloco }}</th>\n @if (showFolder) {\n <th pResizableColumn scope=\"col\">{{ 'AiKnowledge.Folder' | transloco }}</th>\n }\n <th pResizableColumn scope=\"col\">{{ 'AiKnowledge.Size' | transloco }}</th>\n <th pResizableColumn scope=\"col\">{{ 'AiKnowledge.Modified' | transloco }}</th>\n <th class=\"actions-list-two\" scope=\"col\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body let-file>\n <tr>\n <td data-head=\"Name\">\n <a href=\"\" [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n (click)=\"$event.preventDefault(); download(file)\">{{ file.name }}</a>\n </td>\n @if (showFolder) {\n <td data-head=\"Folder\">\n @if (folderOf(file); as folder) {\n <span class=\"badge\" [ngClass]=\"folderBadgeClass(file)\">{{ folder }}</span>\n }\n </td>\n }\n <td data-head=\"Size\">{{ sizeOf(file.size) }}</td>\n <td data-head=\"Modified\">{{ file.last_modified | dateFormat: 'datetime' }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n <li [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DownloadFile' | transloco\"\n (click)=\"download(file)\" (keydown.enter)=\"download(file)\">\n <i class=\"fa fa-download edit-icon\" aria-hidden=\"true\"></i>\n </li>\n <li [pTooltip]=\"'AiKnowledge.DeleteFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DeleteFile' | transloco\"\n (click)=\"remove(file)\" (keydown.enter)=\"remove(file)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n <pw-records-summary [showing]=\"shownOnPage(dt)\" [total]=\"matchingCount(dt)\" />\n </div>\n @if (truncated) {\n <p class=\"ai-knowledge-hint mt-2\">{{ 'AiKnowledge.Truncated' | transloco: { count: files.length } }}</p>\n }\n } @else if (loadFailed) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.LoadFailed' | transloco\"\n [description]=\"unavailableReason || ('AiKnowledge.LoadFailedDescription' | transloco)\">\n <div #content>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\" (click)=\"load()\">\n <i class=\"fa fa-rotate-right\" aria-hidden=\"true\"></i>\n {{ 'AiKnowledge.TryAgain' | transloco }}\n </button>\n </div>\n </pw-no-data>\n } @else if (useOwnData) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoFiles' | transloco\"\n [description]=\"'AiKnowledge.NoFilesDescription' | transloco\"></pw-no-data>\n }\n }\n</section>\n",
|
|
572
|
+
styles: [".ai-knowledge-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px}.ai-knowledge-hint{color:#5a6473;font-size:12px}td[data-head=Name]{min-width:200px}td[data-head=Size],td[data-head=Modified]{white-space:nowrap;font-variant-numeric:tabular-nums}.ai-knowledge-off{display:flex;align-items:baseline;gap:8px}\n"],
|
|
566
573
|
dependencies: [
|
|
567
574
|
{
|
|
568
575
|
kind: "directive",
|
|
@@ -625,7 +632,26 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
625
632
|
},
|
|
626
633
|
{
|
|
627
634
|
kind: "directive",
|
|
628
|
-
type: i9$1.
|
|
635
|
+
type: i9$1.RouterLink,
|
|
636
|
+
selector: "[routerLink]",
|
|
637
|
+
inputs: [
|
|
638
|
+
"target",
|
|
639
|
+
"queryParams",
|
|
640
|
+
"fragment",
|
|
641
|
+
"queryParamsHandling",
|
|
642
|
+
"state",
|
|
643
|
+
"info",
|
|
644
|
+
"relativeTo",
|
|
645
|
+
"preserveFragment",
|
|
646
|
+
"skipLocationChange",
|
|
647
|
+
"replaceUrl",
|
|
648
|
+
"browserUrl",
|
|
649
|
+
"routerLink"
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
kind: "directive",
|
|
654
|
+
type: i10.Tooltip,
|
|
629
655
|
selector: "[pTooltip]",
|
|
630
656
|
inputs: [
|
|
631
657
|
"tooltipPosition",
|
|
@@ -653,7 +679,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
653
679
|
},
|
|
654
680
|
{
|
|
655
681
|
kind: "component",
|
|
656
|
-
type:
|
|
682
|
+
type: i11.Table,
|
|
657
683
|
selector: "p-table",
|
|
658
684
|
inputs: [
|
|
659
685
|
"frozenColumns",
|
|
@@ -766,7 +792,13 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
766
792
|
},
|
|
767
793
|
{
|
|
768
794
|
kind: "directive",
|
|
769
|
-
type:
|
|
795
|
+
type: i11.ResizableColumn,
|
|
796
|
+
selector: "[pResizableColumn]",
|
|
797
|
+
inputs: ["pResizableColumnDisabled"]
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
kind: "directive",
|
|
801
|
+
type: i1$3.NgClass,
|
|
770
802
|
selector: "[ngClass]",
|
|
771
803
|
inputs: ["class", "ngClass"]
|
|
772
804
|
},
|
|
@@ -793,7 +825,7 @@ var AiKnowledgeComponent = class AiKnowledgeComponent {
|
|
|
793
825
|
},
|
|
794
826
|
{
|
|
795
827
|
kind: "pipe",
|
|
796
|
-
type:
|
|
828
|
+
type: i15.DateFormatPipe,
|
|
797
829
|
name: "dateFormat"
|
|
798
830
|
}
|
|
799
831
|
]
|
|
@@ -810,14 +842,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
810
842
|
args: [{
|
|
811
843
|
selector: "pw-ai-knowledge",
|
|
812
844
|
standalone: false,
|
|
813
|
-
template: "<section class=\"ai-knowledge\">\n <div class=\"title\">\n <h2>{{ (scope === 'personal' ? 'AiKnowledge.PersonalTitle' : 'AiKnowledge.Title') | transloco: { name: subscriptionName } }}</h2>\n </div>\n <p>{{ (scope === 'personal' ? 'AiKnowledge.PersonalIntro' : 'AiKnowledge.Intro') | transloco: { name: subscriptionName } }}</p>\n\n <div class=\"ai-knowledge-toolbar\">\n
|
|
814
|
-
styles: [".ai-knowledge-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px}.ai-knowledge-hint{color:#5a6473;font-size:12px}td[data-head=Name]{min-width:200px}td[data-head=Size],td[data-head=Modified]{white-space:nowrap;font-variant-numeric:tabular-nums}\n"]
|
|
845
|
+
template: "<section class=\"ai-knowledge\">\n <div class=\"title\">\n <h2>{{ (scope === 'personal' ? 'AiKnowledge.PersonalTitle' : 'AiKnowledge.Title') | transloco: { name: subscriptionName } }}</h2>\n </div>\n <p>{{ (scope === 'personal' ? 'AiKnowledge.PersonalIntro' : 'AiKnowledge.Intro') | transloco: { name: subscriptionName } }}</p>\n\n @if (!useOwnData) {\n <output class=\"alert alert-warning ai-knowledge-off\">\n <i class=\"fa fa-exclamation-triangle\" aria-hidden=\"true\"></i>\n <span>\n {{ (scope === 'personal' ? 'AiKnowledge.PersonalUseOwnDataOff' : 'AiKnowledge.UseOwnDataOff') | transloco: { name: subscriptionName } }}\n @if (scope === 'subscription' && subscriptionId) {\n <a [routerLink]=\"['/account/subscriptions', subscriptionId]\">{{ 'AiKnowledge.OpenSubscriptionSettings' | transloco }}</a>\n }\n </span>\n </output>\n }\n\n @if (useOwnData) {\n <div class=\"ai-knowledge-toolbar\">\n <span class=\"ai-knowledge-hint\">{{ 'AiKnowledge.Accepted' | transloco }}</span>\n <input #fileInput type=\"file\" class=\"d-none\" id=\"ai-knowledge-file-{{ scope }}\"\n [accept]=\"accept\" (change)=\"onFileSelected($event)\" />\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\"\n [disabled]=\"uploading || !subscriptionId\" (click)=\"chooseFile()\">\n <i class=\"fa\" [class.fa-upload]=\"!uploading\" [class.fa-spinner]=\"uploading\" [class.fa-spin]=\"uploading\"\n aria-hidden=\"true\"></i>\n {{ (uploading ? 'AiKnowledge.Uploading' : 'AiKnowledge.UploadFile') | transloco }}\n </button>\n </div>\n }\n\n <pw-loader [isVisible]=\"loading\"></pw-loader>\n\n @if (!loading) {\n @if (files.length) {\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\">\n <p-table #dt [value]=\"files\" dataKey=\"path\"\n [paginator]=\"files.length !== 0\"\n [rows]=\"pageSize\"\n [globalFilterFields]=\"['name', 'path']\"\n (onPage)=\"pageFirst = $event.first\"\n (onFilter)=\"pageFirst = 0\"\n stateKey=\"pw-table.ai-knowledge\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #caption>\n <div class=\"text-end\">\n <label for=\"ai-knowledge-search-{{ scope }}\" class=\"visually-hidden\">{{ 'AiKnowledge.SearchPlaceholder' | transloco }}</label>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon><i class=\"fa fa-search\" aria-hidden=\"true\"></i></p-inputicon>\n <input type=\"text\"\n id=\"ai-knowledge-search-{{ scope }}\"\n name=\"ai-knowledge-search-{{ scope }}\"\n [(ngModel)]=\"searchText\"\n pInputText\n [placeholder]=\"'AiKnowledge.SearchPlaceholder' | transloco\"\n (input)=\"dt.filterGlobal(searchText, 'contains')\"\n [attr.aria-label]=\"'AiKnowledge.SearchPlaceholder' | transloco\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td [attr.colspan]=\"showFolder ? 5 : 4\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Search.NoDataMessage' | transloco\"\n [description]=\"'Search.NoDataDescription' | transloco\"></pw-no-data>\n </td>\n </tr>\n </ng-template>\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"col\">{{ 'Label.Name' | transloco }}</th>\n @if (showFolder) {\n <th pResizableColumn scope=\"col\">{{ 'AiKnowledge.Folder' | transloco }}</th>\n }\n <th pResizableColumn scope=\"col\">{{ 'AiKnowledge.Size' | transloco }}</th>\n <th pResizableColumn scope=\"col\">{{ 'AiKnowledge.Modified' | transloco }}</th>\n <th class=\"actions-list-two\" scope=\"col\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body let-file>\n <tr>\n <td data-head=\"Name\">\n <a href=\"\" [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n (click)=\"$event.preventDefault(); download(file)\">{{ file.name }}</a>\n </td>\n @if (showFolder) {\n <td data-head=\"Folder\">\n @if (folderOf(file); as folder) {\n <span class=\"badge\" [ngClass]=\"folderBadgeClass(file)\">{{ folder }}</span>\n }\n </td>\n }\n <td data-head=\"Size\">{{ sizeOf(file.size) }}</td>\n <td data-head=\"Modified\">{{ file.last_modified | dateFormat: 'datetime' }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n <li [pTooltip]=\"'AiKnowledge.DownloadFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DownloadFile' | transloco\"\n (click)=\"download(file)\" (keydown.enter)=\"download(file)\">\n <i class=\"fa fa-download edit-icon\" aria-hidden=\"true\"></i>\n </li>\n <li [pTooltip]=\"'AiKnowledge.DeleteFile' | transloco\" tooltipPosition=\"top\" appendTo=\"body\"\n [attr.aria-label]=\"'AiKnowledge.DeleteFile' | transloco\"\n (click)=\"remove(file)\" (keydown.enter)=\"remove(file)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n <pw-records-summary [showing]=\"shownOnPage(dt)\" [total]=\"matchingCount(dt)\" />\n </div>\n @if (truncated) {\n <p class=\"ai-knowledge-hint mt-2\">{{ 'AiKnowledge.Truncated' | transloco: { count: files.length } }}</p>\n }\n } @else if (loadFailed) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.LoadFailed' | transloco\"\n [description]=\"unavailableReason || ('AiKnowledge.LoadFailedDescription' | transloco)\">\n <div #content>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\" (click)=\"load()\">\n <i class=\"fa fa-rotate-right\" aria-hidden=\"true\"></i>\n {{ 'AiKnowledge.TryAgain' | transloco }}\n </button>\n </div>\n </pw-no-data>\n } @else if (useOwnData) {\n <pw-no-data [withImage]=\"true\" [message]=\"'AiKnowledge.NoFiles' | transloco\"\n [description]=\"'AiKnowledge.NoFilesDescription' | transloco\"></pw-no-data>\n }\n }\n</section>\n",
|
|
846
|
+
styles: [".ai-knowledge-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px}.ai-knowledge-hint{color:#5a6473;font-size:12px}td[data-head=Name]{min-width:200px}td[data-head=Size],td[data-head=Modified]{white-space:nowrap;font-variant-numeric:tabular-nums}.ai-knowledge-off{display:flex;align-items:baseline;gap:8px}\n"]
|
|
815
847
|
}]
|
|
816
848
|
}],
|
|
817
849
|
ctorParameters: () => [
|
|
818
|
-
{ type: i1$
|
|
850
|
+
{ type: i1$2.KnowledgeFilesService },
|
|
819
851
|
{ type: ConfirmDialogService },
|
|
820
|
-
{ type: i1$
|
|
852
|
+
{ type: i1$2.CustomToastService },
|
|
821
853
|
{ type: i2$4.TranslocoService },
|
|
822
854
|
{ type: i0.ChangeDetectorRef }
|
|
823
855
|
],
|
|
@@ -828,6 +860,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
828
860
|
}],
|
|
829
861
|
subscriptionId: [{ type: Input }],
|
|
830
862
|
subscriptionName: [{ type: Input }],
|
|
863
|
+
useOwnData: [{ type: Input }],
|
|
831
864
|
fileInput: [{
|
|
832
865
|
type: ViewChild,
|
|
833
866
|
args: ["fileInput"]
|
|
@@ -868,7 +901,7 @@ var AuthenticatorComponent = class AuthenticatorComponent extends AppBaseCompone
|
|
|
868
901
|
ngImport: i0,
|
|
869
902
|
type: AuthenticatorComponent,
|
|
870
903
|
deps: [
|
|
871
|
-
{ token: i1$
|
|
904
|
+
{ token: i1$2.AuthService },
|
|
872
905
|
{ token: i0.Injector },
|
|
873
906
|
{ token: i0.ChangeDetectorRef }
|
|
874
907
|
],
|
|
@@ -902,7 +935,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
902
935
|
}]
|
|
903
936
|
}],
|
|
904
937
|
ctorParameters: () => [
|
|
905
|
-
{ type: i1$
|
|
938
|
+
{ type: i1$2.AuthService },
|
|
906
939
|
{ type: i0.Injector },
|
|
907
940
|
{ type: i0.ChangeDetectorRef }
|
|
908
941
|
]
|
|
@@ -1778,7 +1811,7 @@ var PwBrainChatThreadDirective = class PwBrainChatThreadDirective {
|
|
|
1778
1811
|
version: "22.2.0",
|
|
1779
1812
|
ngImport: i0,
|
|
1780
1813
|
type: PwBrainChatThreadDirective,
|
|
1781
|
-
deps: [{ token:
|
|
1814
|
+
deps: [{ token: i9$1.Router }],
|
|
1782
1815
|
target: i0.ɵɵFactoryTarget.Directive
|
|
1783
1816
|
});
|
|
1784
1817
|
}
|
|
@@ -1803,7 +1836,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1803
1836
|
type: Directive,
|
|
1804
1837
|
args: [{ selector: "[pwBrainChatThread]" }]
|
|
1805
1838
|
}],
|
|
1806
|
-
ctorParameters: () => [{ type:
|
|
1839
|
+
ctorParameters: () => [{ type: i9$1.Router }],
|
|
1807
1840
|
propDecorators: { onClick: [{
|
|
1808
1841
|
type: HostListener,
|
|
1809
1842
|
args: ["click", ["$event"]]
|
|
@@ -1905,7 +1938,7 @@ var PwBrainChatWelcomeComponent = class PwBrainChatWelcomeComponent {
|
|
|
1905
1938
|
styles: [".pw-brain-chat__welcome{flex:1 1 auto;overflow-y:auto;padding:22px 0 10px;display:flex;flex-direction:column;gap:16px}.pw-brain-chat__hero{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:22px;color:#fff;background:var(--bc-accent);box-shadow:inset 0 1px #ffffff40}.pw-brain-chat__greet-h{font-size:20px;font-weight:600;letter-spacing:-.02em;margin:12px 0 4px;color:var(--bc-title)}.pw-brain-chat__greet-sub{font-size:14px;color:var(--bc-ink-2);margin:0}.pw-brain-chat__suggest-lab{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600;margin:6px 0 -4px 2px}.pw-brain-chat__prompts{display:flex;flex-direction:column;gap:9px}.pw-brain-chat__prompt{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px;border-radius:var(--bc-r-md);cursor:pointer;background:var(--bc-panel);border:1px solid var(--bc-line);color:var(--bc-ink);font:inherit;font-size:14px;font-weight:500;transition:border-color .15s var(--bc-ease),background .15s var(--bc-ease)}.pw-brain-chat__prompt:hover{border-color:var(--bc-line-strong);background:var(--bc-surface)}.pw-brain-chat__prompt:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__pic{width:28px;height:28px;border-radius:7px;flex:none;display:grid;place-items:center;background:var(--bc-surface-2);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__pic i{font-size:14px}.pw-brain-chat__prompt-text{flex:1;min-width:0}.pw-brain-chat__arw{margin-left:auto;color:var(--bc-ink-3);font-size:13px}.pw-brain-chat__prompt:hover .pw-brain-chat__arw{color:var(--bc-accent)}.pw-brain-chat__quick{display:flex;gap:7px;margin-bottom:9px;overflow-x:auto;scrollbar-width:none}.pw-brain-chat__quick::-webkit-scrollbar{display:none}.pw-brain-chat__chip{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;font:inherit;font-size:12px;font-weight:500;cursor:pointer;padding:6px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2);transition:border-color .15s var(--bc-ease),color .15s var(--bc-ease)}.pw-brain-chat__chip:hover{color:var(--bc-ink);border-color:var(--bc-line-strong)}.pw-brain-chat__chip:focus-visible{outline:2px solid var(--bc-accent);outline-offset:2px}.pw-brain-chat__chip i{font-size:11px;color:var(--bc-ink-3)}.pw-brain-chat__memory{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;padding:7px 11px;border-radius:9999px;background:var(--bc-surface);border:1px solid var(--bc-line);font-size:12px;color:var(--bc-ink-2)}.pw-brain-chat__memory i{color:var(--bc-success);font-size:12px}.pw-brain-chat__memory .lbl{text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:600;color:var(--bc-ink-3)}\n"],
|
|
1906
1939
|
dependencies: [{
|
|
1907
1940
|
kind: "directive",
|
|
1908
|
-
type: i1$
|
|
1941
|
+
type: i1$3.NgClass,
|
|
1909
1942
|
selector: "[ngClass]",
|
|
1910
1943
|
inputs: ["class", "ngClass"]
|
|
1911
1944
|
}],
|
|
@@ -2402,7 +2435,7 @@ var PwBrainChatVoiceOverlayComponent = class PwBrainChatVoiceOverlayComponent {
|
|
|
2402
2435
|
styles: [".pw-vo{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:18px;background:color-mix(in srgb,#12151a 40%,transparent);animation:pw-vo-in .2s ease}.pw-vo__panel{width:100%;max-width:340px;background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);border-radius:18px;box-shadow:0 20px 50px -18px #1018286b;padding:20px 18px 16px;text-align:center}.pw-vo__head{display:flex;justify-content:center;margin-bottom:2px}.pw-vo__kicker{display:inline-flex;align-items:center;gap:7px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--bc-ink-3, #7c8696);font-weight:600}.pw-vo__live{width:7px;height:7px;border-radius:50%;background:var(--bc-accent, #1769e1);animation:pw-vo-pulse 1.8s ease-out infinite}.pw-vo__live--err{background:var(--bc-error, #c0392b)}.pw-vo__sonar{position:relative;width:250px;height:250px;margin:8px auto 2px}.pw-vo__dial{position:absolute;inset:0;width:250px;height:250px}.pw-vo__core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:var(--bc-panel, #fff);border:1px solid var(--bc-line, #e2e5ea);display:grid;place-items:center;box-shadow:0 6px 18px -8px #10182866}.pw-vo__core i{font-size:21px;color:var(--bc-accent, #1769e1)}.pw-vo__core-i--err{color:var(--bc-error, #c0392b)!important}.pw-vo__label{font-size:19px;font-weight:600;letter-spacing:-.01em;line-height:1.25;margin-top:4px;min-height:24px;color:var(--bc-ink, #1a1d21)}.pw-vo__label--err{color:var(--bc-error, #c0392b)}.pw-vo__transcript{font-size:13px;line-height:1.5;color:var(--bc-ink-2, #5a6473);margin:8px auto 0;max-width:300px}.pw-vo__reply{font-size:13px;line-height:1.5;color:var(--bc-ink-2, #5a6473);margin:8px auto 0;max-width:300px;max-height:76px;overflow-y:auto}.pw-vo__actions{margin-top:16px;display:flex;flex-direction:column;align-items:center;gap:8px}.pw-vo__end{display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 24px;border-radius:999px;border:0;cursor:pointer;font-size:14px;font-weight:600;color:var(--bc-panel, #fff);background:var(--bc-ink, #1a1d21);transition:filter .18s ease,transform .12s ease}.pw-vo__end i{font-size:13px}.pw-vo__end:hover{filter:brightness(1.12)}.pw-vo__end:active{transform:scale(.97)}.pw-vo__end--err{background:var(--bc-error, #c0392b);color:#fff}.pw-vo__hint{font-size:11.5px;color:var(--bc-ink-3, #7c8696)}@keyframes pw-vo-in{0%{opacity:0}}@keyframes pw-vo-pulse{0%{box-shadow:0 0 color-mix(in srgb,var(--bc-accent, #1769e1) 55%,transparent)}70%,to{box-shadow:0 0 0 6px transparent}}@media(prefers-reduced-motion:reduce){.pw-vo,.pw-vo__live{animation:none!important}}\n", ".pw-vo__steps{display:flex;align-items:center;justify-content:center;margin:14px auto 4px}.pw-vo__step{display:flex;align-items:center}.pw-vo__dot{position:relative;width:9px;height:9px;border-radius:50%;background:var(--bc-line-strong, #cfd4dc);transition:background .3s ease,transform .3s ease}.pw-vo__seg{width:20px;height:2px;background:var(--bc-line-strong, #cfd4dc);transition:background .3s ease}.pw-vo__seg.is-done,.pw-vo__step.is-done .pw-vo__dot{background:var(--bc-accent, #1769e1)}.pw-vo__step.is-active .pw-vo__dot{background:var(--bc-accent, #1769e1);transform:scale(1.35)}.pw-vo__step.is-active .pw-vo__dot:after{content:\"\";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid var(--bc-accent, #1769e1);opacity:.5;animation:pw-vo-step 1.4s ease-out infinite}.pw-vo__step-cap{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--bc-ink-3, #7c8696);font-weight:600;margin-top:2px}@keyframes pw-vo-step{0%{transform:scale(.55);opacity:.7}to{transform:scale(1.15);opacity:0}}@media(prefers-reduced-motion:reduce){.pw-vo__step.is-active .pw-vo__dot:after{animation:none!important}}\n"],
|
|
2403
2436
|
dependencies: [{
|
|
2404
2437
|
kind: "directive",
|
|
2405
|
-
type: i1$
|
|
2438
|
+
type: i1$3.NgClass,
|
|
2406
2439
|
selector: "[ngClass]",
|
|
2407
2440
|
inputs: ["class", "ngClass"]
|
|
2408
2441
|
}]
|
|
@@ -2625,7 +2658,7 @@ var SafeMarkdownPipe = class SafeMarkdownPipe {
|
|
|
2625
2658
|
version: "22.2.0",
|
|
2626
2659
|
ngImport: i0,
|
|
2627
2660
|
type: SafeMarkdownPipe,
|
|
2628
|
-
deps: [{ token: i1$
|
|
2661
|
+
deps: [{ token: i1$2.NavigationIndexService }, { token: i2$3.AppConfigService }],
|
|
2629
2662
|
target: i0.ɵɵFactoryTarget.Pipe
|
|
2630
2663
|
});
|
|
2631
2664
|
}
|
|
@@ -2649,7 +2682,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2649
2682
|
type: Pipe,
|
|
2650
2683
|
args: [{ name: "safeMarkdown" }]
|
|
2651
2684
|
}],
|
|
2652
|
-
ctorParameters: () => [{ type: i1$
|
|
2685
|
+
ctorParameters: () => [{ type: i1$2.NavigationIndexService }, { type: i2$3.AppConfigService }]
|
|
2653
2686
|
});
|
|
2654
2687
|
var PwBrainChatComponent = class PwBrainChatComponent {
|
|
2655
2688
|
constructor(orchestrator, localStorage, router, cdr, store, dynamicPageCtx, appConfigService, brainSocket, brainVoice, voiceChatService, directUpload, uploadApis) {
|
|
@@ -2894,30 +2927,30 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2894
2927
|
ngImport: i0,
|
|
2895
2928
|
type: PwBrainChatComponent,
|
|
2896
2929
|
deps: [
|
|
2897
|
-
{ token: i1$
|
|
2898
|
-
{ token: i1$
|
|
2899
|
-
{ token:
|
|
2930
|
+
{ token: i1$2.MCPOrchestratorService },
|
|
2931
|
+
{ token: i1$2.LocalStorage },
|
|
2932
|
+
{ token: i9$1.Router },
|
|
2900
2933
|
{ token: i0.ChangeDetectorRef },
|
|
2901
|
-
{ token: i3.Store },
|
|
2934
|
+
{ token: i3$1.Store },
|
|
2902
2935
|
{ token: DynamicPageContextService },
|
|
2903
2936
|
{
|
|
2904
2937
|
token: i2$3.AppConfigService,
|
|
2905
2938
|
optional: true
|
|
2906
2939
|
},
|
|
2907
2940
|
{
|
|
2908
|
-
token: i1$
|
|
2941
|
+
token: i1$2.BrainSocketService,
|
|
2909
2942
|
optional: true
|
|
2910
2943
|
},
|
|
2911
2944
|
{
|
|
2912
|
-
token: i1$
|
|
2945
|
+
token: i1$2.BrainVoiceService,
|
|
2913
2946
|
optional: true
|
|
2914
2947
|
},
|
|
2915
2948
|
{
|
|
2916
|
-
token: i1$
|
|
2949
|
+
token: i1$2.VoiceChatService,
|
|
2917
2950
|
optional: true
|
|
2918
2951
|
},
|
|
2919
2952
|
{
|
|
2920
|
-
token: i1$
|
|
2953
|
+
token: i1$2.DirectUploadService,
|
|
2921
2954
|
optional: true
|
|
2922
2955
|
},
|
|
2923
2956
|
{
|
|
@@ -2977,7 +3010,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2977
3010
|
},
|
|
2978
3011
|
{
|
|
2979
3012
|
kind: "directive",
|
|
2980
|
-
type: i1$
|
|
3013
|
+
type: i1$4.NgbTooltip,
|
|
2981
3014
|
selector: "[ngbTooltip]",
|
|
2982
3015
|
inputs: [
|
|
2983
3016
|
"animation",
|
|
@@ -2999,7 +3032,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
2999
3032
|
},
|
|
3000
3033
|
{
|
|
3001
3034
|
kind: "directive",
|
|
3002
|
-
type: i1$
|
|
3035
|
+
type: i1$3.NgClass,
|
|
3003
3036
|
selector: "[ngClass]",
|
|
3004
3037
|
inputs: ["class", "ngClass"]
|
|
3005
3038
|
},
|
|
@@ -3031,7 +3064,7 @@ var PwBrainChatComponent = class PwBrainChatComponent {
|
|
|
3031
3064
|
},
|
|
3032
3065
|
{
|
|
3033
3066
|
kind: "pipe",
|
|
3034
|
-
type: i1$
|
|
3067
|
+
type: i1$3.DatePipe,
|
|
3035
3068
|
name: "date"
|
|
3036
3069
|
},
|
|
3037
3070
|
{
|
|
@@ -3067,30 +3100,30 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3067
3100
|
}]
|
|
3068
3101
|
}],
|
|
3069
3102
|
ctorParameters: () => [
|
|
3070
|
-
{ type: i1$
|
|
3071
|
-
{ type: i1$
|
|
3072
|
-
{ type:
|
|
3103
|
+
{ type: i1$2.MCPOrchestratorService },
|
|
3104
|
+
{ type: i1$2.LocalStorage },
|
|
3105
|
+
{ type: i9$1.Router },
|
|
3073
3106
|
{ type: i0.ChangeDetectorRef },
|
|
3074
|
-
{ type: i3.Store },
|
|
3107
|
+
{ type: i3$1.Store },
|
|
3075
3108
|
{ type: DynamicPageContextService },
|
|
3076
3109
|
{
|
|
3077
3110
|
type: i2$3.AppConfigService,
|
|
3078
3111
|
decorators: [{ type: Optional }]
|
|
3079
3112
|
},
|
|
3080
3113
|
{
|
|
3081
|
-
type: i1$
|
|
3114
|
+
type: i1$2.BrainSocketService,
|
|
3082
3115
|
decorators: [{ type: Optional }]
|
|
3083
3116
|
},
|
|
3084
3117
|
{
|
|
3085
|
-
type: i1$
|
|
3118
|
+
type: i1$2.BrainVoiceService,
|
|
3086
3119
|
decorators: [{ type: Optional }]
|
|
3087
3120
|
},
|
|
3088
3121
|
{
|
|
3089
|
-
type: i1$
|
|
3122
|
+
type: i1$2.VoiceChatService,
|
|
3090
3123
|
decorators: [{ type: Optional }]
|
|
3091
3124
|
},
|
|
3092
3125
|
{
|
|
3093
|
-
type: i1$
|
|
3126
|
+
type: i1$2.DirectUploadService,
|
|
3094
3127
|
decorators: [{ type: Optional }]
|
|
3095
3128
|
},
|
|
3096
3129
|
{
|
|
@@ -3216,7 +3249,7 @@ var ClearBitIconComponent = class ClearBitIconComponent {
|
|
|
3216
3249
|
selector: "img"
|
|
3217
3250
|
}, {
|
|
3218
3251
|
kind: "directive",
|
|
3219
|
-
type: i1$
|
|
3252
|
+
type: i1$3.NgClass,
|
|
3220
3253
|
selector: "[ngClass]",
|
|
3221
3254
|
inputs: ["class", "ngClass"]
|
|
3222
3255
|
}]
|
|
@@ -4164,11 +4197,11 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
4164
4197
|
type: CommandPaletteComponent,
|
|
4165
4198
|
deps: [
|
|
4166
4199
|
{ token: CommandPaletteService },
|
|
4167
|
-
{ token: i1$
|
|
4168
|
-
{ token: i1$
|
|
4169
|
-
{ token: i1$
|
|
4200
|
+
{ token: i1$2.NavigationIndexService },
|
|
4201
|
+
{ token: i1$2.DashboardService },
|
|
4202
|
+
{ token: i1$2.RecentPagesService },
|
|
4170
4203
|
{ token: CollapsibleSidebarService },
|
|
4171
|
-
{ token:
|
|
4204
|
+
{ token: i9$1.Router },
|
|
4172
4205
|
{ token: i2$4.TranslocoService },
|
|
4173
4206
|
{ token: i0.ChangeDetectorRef },
|
|
4174
4207
|
{
|
|
@@ -4176,7 +4209,7 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
4176
4209
|
optional: true
|
|
4177
4210
|
},
|
|
4178
4211
|
{
|
|
4179
|
-
token: i1$
|
|
4212
|
+
token: i1$2.CustomToastService,
|
|
4180
4213
|
optional: true
|
|
4181
4214
|
}
|
|
4182
4215
|
],
|
|
@@ -4207,7 +4240,7 @@ var CommandPaletteComponent = class CommandPaletteComponent {
|
|
|
4207
4240
|
styles: [":host{display:inline-flex;align-items:center}.pw-palette-trigger{display:flex;align-items:center;gap:8px;width:220px;max-width:100%;height:34px;padding:0 8px 0 12px;border:1px solid #e2e5ea;border-radius:8px;background:#fff;color:#a8afbc;font-size:13px;text-align:left;transition:border-color .15s ease}.pw-palette-trigger:hover,.pw-palette-trigger:focus-visible{border-color:var(--first, #0d6efd);color:#334155}.pw-palette-trigger-icon{font-size:12px}.pw-palette-trigger-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-palette-kbd{padding:1px 6px;border:1px solid #e2e5ea;border-radius:4px;background:#f5f7fa;color:#a8afbc;font-size:11px;line-height:1.5;white-space:nowrap}.pw-palette{position:fixed;top:12vh;right:auto;bottom:auto;left:50%;z-index:1051;width:min(640px,100vw - 32px);max-width:calc(100vw - 32px);max-height:70vh;margin:0;padding:0;transform:translate(-50%);border:1px solid #e2e5ea;border-radius:12px;background:#fff;box-shadow:0 16px 48px #1018282e;overflow:hidden}.pw-palette[open]{display:flex;flex-direction:column}.pw-palette::backdrop{background:#10182852}.pw-palette-search{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #e2e5ea}.pw-palette-search-icon{color:#a8afbc;font-size:14px}.pw-palette-field{flex:1;border:0;background:transparent;color:#334155;font-size:15px}.pw-palette-field::placeholder{color:#a8afbc}.pw-palette-field:focus{outline:none}.pw-palette-results{flex:1;padding:8px 0;overflow-y:auto}.pw-palette-group+.pw-palette-group{margin-top:4px;padding-top:4px;border-top:1px solid #e2e5ea}.pw-palette-group-label{margin:0;padding:6px 16px 4px;color:#a8afbc;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.pw-palette-row{display:flex;align-items:center;gap:12px;width:100%;min-height:40px;padding:0 16px;border:0;background:transparent;color:#334155;font-size:14px;text-align:left}.pw-palette-row:hover,.pw-palette-row.is-active{background:color-mix(in srgb,var(--first, #0d6efd) 8%,transparent)}.pw-palette-row.is-active{box-shadow:inset 2px 0 0 var(--first, #0d6efd)}.pw-palette-row-icon{flex:0 0 16px;color:#a8afbc;font-size:14px;text-align:center}.pw-palette-row-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-palette-row-prefix{color:#a8afbc}.pw-palette-row-detail{flex:0 1 auto;max-width:45%;overflow:hidden;color:#a8afbc;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.pw-palette-empty{padding:28px 16px;text-align:center}.pw-palette-empty-title{margin:0 0 4px;color:#334155;font-size:14px}.pw-palette-empty-hint{margin:0;color:#a8afbc;font-size:12px}.pw-palette-footer{display:flex;gap:16px;padding:8px 16px;border-top:1px solid #e2e5ea;background:#fbfcfd}.pw-palette-hint{display:flex;align-items:center;gap:6px;color:#a8afbc;font-size:11px}@media(max-width:991px){.pw-palette-trigger{width:34px;padding:0;justify-content:center}.pw-palette-trigger-text,.pw-palette-trigger-kbd{display:none}.pw-palette{top:8vh;max-height:78vh}}\n"],
|
|
4208
4241
|
dependencies: [{
|
|
4209
4242
|
kind: "directive",
|
|
4210
|
-
type: i1$
|
|
4243
|
+
type: i1$3.NgClass,
|
|
4211
4244
|
selector: "[ngClass]",
|
|
4212
4245
|
inputs: ["class", "ngClass"]
|
|
4213
4246
|
}, {
|
|
@@ -4236,11 +4269,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4236
4269
|
}],
|
|
4237
4270
|
ctorParameters: () => [
|
|
4238
4271
|
{ type: CommandPaletteService },
|
|
4239
|
-
{ type: i1$
|
|
4240
|
-
{ type: i1$
|
|
4241
|
-
{ type: i1$
|
|
4272
|
+
{ type: i1$2.NavigationIndexService },
|
|
4273
|
+
{ type: i1$2.DashboardService },
|
|
4274
|
+
{ type: i1$2.RecentPagesService },
|
|
4242
4275
|
{ type: CollapsibleSidebarService },
|
|
4243
|
-
{ type:
|
|
4276
|
+
{ type: i9$1.Router },
|
|
4244
4277
|
{ type: i2$4.TranslocoService },
|
|
4245
4278
|
{ type: i0.ChangeDetectorRef },
|
|
4246
4279
|
{
|
|
@@ -4248,7 +4281,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4248
4281
|
decorators: [{ type: Optional }]
|
|
4249
4282
|
},
|
|
4250
4283
|
{
|
|
4251
|
-
type: i1$
|
|
4284
|
+
type: i1$2.CustomToastService,
|
|
4252
4285
|
decorators: [{ type: Optional }]
|
|
4253
4286
|
}
|
|
4254
4287
|
],
|
|
@@ -4969,9 +5002,9 @@ var PwDynamicPageComponent = class PwDynamicPageComponent {
|
|
|
4969
5002
|
deps: [
|
|
4970
5003
|
{ token: i0.Injector },
|
|
4971
5004
|
{ token: i0.ChangeDetectorRef },
|
|
4972
|
-
{ token: i1$
|
|
5005
|
+
{ token: i1$2.FeatureFlagService },
|
|
4973
5006
|
{
|
|
4974
|
-
token: i1$
|
|
5007
|
+
token: i1$2.UserService,
|
|
4975
5008
|
optional: true
|
|
4976
5009
|
},
|
|
4977
5010
|
{
|
|
@@ -5060,9 +5093,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5060
5093
|
ctorParameters: () => [
|
|
5061
5094
|
{ type: i0.Injector },
|
|
5062
5095
|
{ type: i0.ChangeDetectorRef },
|
|
5063
|
-
{ type: i1$
|
|
5096
|
+
{ type: i1$2.FeatureFlagService },
|
|
5064
5097
|
{
|
|
5065
|
-
type: i1$
|
|
5098
|
+
type: i1$2.UserService,
|
|
5066
5099
|
decorators: [{ type: Optional }]
|
|
5067
5100
|
},
|
|
5068
5101
|
{
|
|
@@ -5117,7 +5150,7 @@ var HeaderComponent = class HeaderComponent extends AppBaseComponent {
|
|
|
5117
5150
|
type: HeaderComponent,
|
|
5118
5151
|
deps: [
|
|
5119
5152
|
{ token: i0.Injector },
|
|
5120
|
-
{ token: i1$
|
|
5153
|
+
{ token: i1$2.AuthService },
|
|
5121
5154
|
{ token: i0.ChangeDetectorRef }
|
|
5122
5155
|
],
|
|
5123
5156
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -5163,7 +5196,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5163
5196
|
}],
|
|
5164
5197
|
ctorParameters: () => [
|
|
5165
5198
|
{ type: i0.Injector },
|
|
5166
|
-
{ type: i1$
|
|
5199
|
+
{ type: i1$2.AuthService },
|
|
5167
5200
|
{ type: i0.ChangeDetectorRef }
|
|
5168
5201
|
],
|
|
5169
5202
|
propDecorators: { landing: [{ type: Input }] }
|
|
@@ -5288,9 +5321,9 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5288
5321
|
ngImport: i0,
|
|
5289
5322
|
type: EntityGroupComponent,
|
|
5290
5323
|
deps: [
|
|
5291
|
-
{ token: i1$
|
|
5292
|
-
{ token: i1$
|
|
5293
|
-
{ token: i1$
|
|
5324
|
+
{ token: i1$2.GroupService },
|
|
5325
|
+
{ token: i1$2.SubscriptionService },
|
|
5326
|
+
{ token: i1$4.NgbModal },
|
|
5294
5327
|
{ token: i0.Injector },
|
|
5295
5328
|
{ token: i0.ChangeDetectorRef }
|
|
5296
5329
|
],
|
|
@@ -5313,7 +5346,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5313
5346
|
}],
|
|
5314
5347
|
usesInheritance: true,
|
|
5315
5348
|
ngImport: i0,
|
|
5316
|
-
template: "<div>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Team View</h2>\n\n <p>\n In this section, based on your permissions, you can add/remove members from your\n teams.\n <br />\n Then, you'll be able to see powerful insight on the activities performed by your\n team's members.\n </p>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-md-6 col-xs-12 d-flex align-items-sm-center align-items-top text-start pe-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"back()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"ms-sm-2 d-inline mt-0 card-title mb-3 mb-sm-0\">\n Team view: {{ selectedGroup?.name }}\n </h3>\n </div>\n <div class=\"col-md-6 col-xs-12 text-end justify-content-end\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"open()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Members\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-2\"\n (click)=\"navigateToCommunications()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> See Communications\n </button>\n }\n </div>\n </div>\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\"\n [class.hideTable]=\"subscribedMembers?.length === 0\">\n <p-table #dt\n [value]=\"subscribedMembers\"\n [paginator]=\"true\"\n [rows]=\"PAGE_SIZE\">\n <ng-template #header>\n <tr>\n <th scope=\"true\">{{ 'Label.FirstName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.LastName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.Email' | transloco }}</th>\n <th scope=\"true\" class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body\n let-member>\n <tr class=\"table-row\">\n <td data-head=\"First Name\">\n <a [routerLink]=\"['/members', member.slug]\">{{ member.first_name || null }}\n </a>\n </td>\n <td data-head=\"Last Name\">{{ member.last_name || null }}</td>\n <td data-head=\"Email\">{{ member.email }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n @if (member.id !== userId) {\n <li pTooltip=\"Message\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n [routerLink]=\"['/message']\"\n [fragment]=\"member.slug\">\n <i\n class=\"fa fa-comments cta1-icon\"\n *rbacAllow=\"chatPermission\"\n aria-hidden=\"true\"\n ></i>\n </li>\n }\n @if (hasAccess) {\n <li pTooltip=\"Remove\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n (click)=\"onDelete(member.id)\"\n (keydown.enter)=\"onDelete(member.id)\"\n (keydown.space)=\"onDelete(member.id)\"\n >\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n @if (subscribedMembers?.length === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"There are no members in this team yet.\"\n >\n </pw-no-data>\n }\n </div>\n\n <ng-template #content\n let-modal>\n <div class=\"modal-header\">\n <h4 class=\"modal-title\"\n id=\"modal-basic-title\">Add Members</h4>\n <button type=\"button\"\n class=\"btn-close float-end\"\n aria-label=\"Close\"\n (click)=\"modal.dismiss()\">\n\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Please start typing to select the members to add to this team.</p>\n <div class=\"ui-fluid skills-modal\">\n <p-auto-complete class=\"w-100\" appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-auto-complete>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\"\n class=\"btn btn-outline-default\"\n (click)=\"closeModal(modal)\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n class=\"btn btn-primary\"\n (click)=\"onSave()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </ng-template>\n",
|
|
5349
|
+
template: "<div>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Team View</h2>\n\n <p>\n In this section, based on your permissions, you can add/remove members from your\n teams.\n <br />\n Then, you'll be able to see powerful insight on the activities performed by your\n team's members.\n </p>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-md-6 col-xs-12 d-flex align-items-sm-center align-items-top text-start pe-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"back()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"ms-sm-2 d-inline mt-0 card-title mb-3 mb-sm-0\">\n Team view: {{ selectedGroup?.name }}\n </h3>\n </div>\n <div class=\"col-md-6 col-xs-12 text-end justify-content-end\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"open()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Members\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-2\"\n (click)=\"navigateToCommunications()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> See Communications\n </button>\n }\n </div>\n </div>\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\"\n [class.hideTable]=\"subscribedMembers?.length === 0\">\n <p-table #dt\n [value]=\"subscribedMembers\"\n [paginator]=\"true\"\n [rows]=\"PAGE_SIZE\"\n stateKey=\"pw-table.entity-group\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"true\">{{ 'Label.FirstName' | transloco }}</th>\n <th pResizableColumn scope=\"true\">{{ 'Label.LastName' | transloco }}</th>\n <th pResizableColumn scope=\"true\">{{ 'Label.Email' | transloco }}</th>\n <th scope=\"true\" class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body\n let-member>\n <tr class=\"table-row\">\n <td data-head=\"First Name\">\n <a [routerLink]=\"['/members', member.slug]\">{{ member.first_name || null }}\n </a>\n </td>\n <td data-head=\"Last Name\">{{ member.last_name || null }}</td>\n <td data-head=\"Email\">{{ member.email }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n @if (member.id !== userId) {\n <li pTooltip=\"Message\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n [routerLink]=\"['/message']\"\n [fragment]=\"member.slug\">\n <i\n class=\"fa fa-comments cta1-icon\"\n *rbacAllow=\"chatPermission\"\n aria-hidden=\"true\"\n ></i>\n </li>\n }\n @if (hasAccess) {\n <li pTooltip=\"Remove\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n (click)=\"onDelete(member.id)\"\n (keydown.enter)=\"onDelete(member.id)\"\n (keydown.space)=\"onDelete(member.id)\"\n >\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n @if (subscribedMembers?.length === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"There are no members in this team yet.\"\n >\n </pw-no-data>\n }\n </div>\n\n <ng-template #content\n let-modal>\n <div class=\"modal-header\">\n <h4 class=\"modal-title\"\n id=\"modal-basic-title\">Add Members</h4>\n <button type=\"button\"\n class=\"btn-close float-end\"\n aria-label=\"Close\"\n (click)=\"modal.dismiss()\">\n\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Please start typing to select the members to add to this team.</p>\n <div class=\"ui-fluid skills-modal\">\n <p-auto-complete class=\"w-100\" appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-auto-complete>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\"\n class=\"btn btn-outline-default\"\n (click)=\"closeModal(modal)\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n class=\"btn btn-primary\"\n (click)=\"onSave()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </ng-template>\n",
|
|
5317
5350
|
styles: ["a.previous i{line-height:23px}\n"],
|
|
5318
5351
|
dependencies: [
|
|
5319
5352
|
{
|
|
@@ -5342,7 +5375,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5342
5375
|
},
|
|
5343
5376
|
{
|
|
5344
5377
|
kind: "directive",
|
|
5345
|
-
type:
|
|
5378
|
+
type: i9$1.RouterLink,
|
|
5346
5379
|
selector: "[routerLink]",
|
|
5347
5380
|
inputs: [
|
|
5348
5381
|
"target",
|
|
@@ -5361,7 +5394,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5361
5394
|
},
|
|
5362
5395
|
{
|
|
5363
5396
|
kind: "directive",
|
|
5364
|
-
type:
|
|
5397
|
+
type: i10.Tooltip,
|
|
5365
5398
|
selector: "[pTooltip]",
|
|
5366
5399
|
inputs: [
|
|
5367
5400
|
"tooltipPosition",
|
|
@@ -5389,7 +5422,7 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5389
5422
|
},
|
|
5390
5423
|
{
|
|
5391
5424
|
kind: "component",
|
|
5392
|
-
type:
|
|
5425
|
+
type: i11.Table,
|
|
5393
5426
|
selector: "p-table",
|
|
5394
5427
|
inputs: [
|
|
5395
5428
|
"frozenColumns",
|
|
@@ -5500,6 +5533,12 @@ var EntityGroupComponent = class EntityGroupComponent extends AppBaseComponent {
|
|
|
5500
5533
|
"onStateRestore"
|
|
5501
5534
|
]
|
|
5502
5535
|
},
|
|
5536
|
+
{
|
|
5537
|
+
kind: "directive",
|
|
5538
|
+
type: i11.ResizableColumn,
|
|
5539
|
+
selector: "[pResizableColumn]",
|
|
5540
|
+
inputs: ["pResizableColumnDisabled"]
|
|
5541
|
+
},
|
|
5503
5542
|
{
|
|
5504
5543
|
kind: "component",
|
|
5505
5544
|
type: i8.ProgressSpinner,
|
|
@@ -5622,14 +5661,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5622
5661
|
args: [{
|
|
5623
5662
|
selector: "pw-entity-group",
|
|
5624
5663
|
standalone: false,
|
|
5625
|
-
template: "<div>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Team View</h2>\n\n <p>\n In this section, based on your permissions, you can add/remove members from your\n teams.\n <br />\n Then, you'll be able to see powerful insight on the activities performed by your\n team's members.\n </p>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-md-6 col-xs-12 d-flex align-items-sm-center align-items-top text-start pe-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"back()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"ms-sm-2 d-inline mt-0 card-title mb-3 mb-sm-0\">\n Team view: {{ selectedGroup?.name }}\n </h3>\n </div>\n <div class=\"col-md-6 col-xs-12 text-end justify-content-end\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"open()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Members\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-2\"\n (click)=\"navigateToCommunications()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> See Communications\n </button>\n }\n </div>\n </div>\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\"\n [class.hideTable]=\"subscribedMembers?.length === 0\">\n <p-table #dt\n [value]=\"subscribedMembers\"\n [paginator]=\"true\"\n [rows]=\"PAGE_SIZE\">\n <ng-template #header>\n <tr>\n <th scope=\"true\">{{ 'Label.FirstName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.LastName' | transloco }}</th>\n <th scope=\"true\">{{ 'Label.Email' | transloco }}</th>\n <th scope=\"true\" class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body\n let-member>\n <tr class=\"table-row\">\n <td data-head=\"First Name\">\n <a [routerLink]=\"['/members', member.slug]\">{{ member.first_name || null }}\n </a>\n </td>\n <td data-head=\"Last Name\">{{ member.last_name || null }}</td>\n <td data-head=\"Email\">{{ member.email }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n @if (member.id !== userId) {\n <li pTooltip=\"Message\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n [routerLink]=\"['/message']\"\n [fragment]=\"member.slug\">\n <i\n class=\"fa fa-comments cta1-icon\"\n *rbacAllow=\"chatPermission\"\n aria-hidden=\"true\"\n ></i>\n </li>\n }\n @if (hasAccess) {\n <li pTooltip=\"Remove\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n (click)=\"onDelete(member.id)\"\n (keydown.enter)=\"onDelete(member.id)\"\n (keydown.space)=\"onDelete(member.id)\"\n >\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n @if (subscribedMembers?.length === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"There are no members in this team yet.\"\n >\n </pw-no-data>\n }\n </div>\n\n <ng-template #content\n let-modal>\n <div class=\"modal-header\">\n <h4 class=\"modal-title\"\n id=\"modal-basic-title\">Add Members</h4>\n <button type=\"button\"\n class=\"btn-close float-end\"\n aria-label=\"Close\"\n (click)=\"modal.dismiss()\">\n\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Please start typing to select the members to add to this team.</p>\n <div class=\"ui-fluid skills-modal\">\n <p-auto-complete class=\"w-100\" appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-auto-complete>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\"\n class=\"btn btn-outline-default\"\n (click)=\"closeModal(modal)\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n class=\"btn btn-primary\"\n (click)=\"onSave()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </ng-template>\n",
|
|
5664
|
+
template: "<div>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Team View</h2>\n\n <p>\n In this section, based on your permissions, you can add/remove members from your\n teams.\n <br />\n Then, you'll be able to see powerful insight on the activities performed by your\n team's members.\n </p>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-md-6 col-xs-12 d-flex align-items-sm-center align-items-top text-start pe-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"back()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"ms-sm-2 d-inline mt-0 card-title mb-3 mb-sm-0\">\n Team view: {{ selectedGroup?.name }}\n </h3>\n </div>\n <div class=\"col-md-6 col-xs-12 text-end justify-content-end\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"open()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Members\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-2\"\n (click)=\"navigateToCommunications()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> See Communications\n </button>\n }\n </div>\n </div>\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progress-spinner strokeWidth=\"2\"> </p-progress-spinner>\n </div>\n }\n\n <div class=\"primeng-datatable-container actions-collapsed table-responsive\"\n [class.hideTable]=\"subscribedMembers?.length === 0\">\n <p-table #dt\n [value]=\"subscribedMembers\"\n [paginator]=\"true\"\n [rows]=\"PAGE_SIZE\"\n stateKey=\"pw-table.entity-group\"\n stateStorage=\"session\"\n [resizableColumns]=\"true\"\n columnResizeMode=\"expand\"\n >\n <ng-template #header>\n <tr>\n <th pResizableColumn scope=\"true\">{{ 'Label.FirstName' | transloco }}</th>\n <th pResizableColumn scope=\"true\">{{ 'Label.LastName' | transloco }}</th>\n <th pResizableColumn scope=\"true\">{{ 'Label.Email' | transloco }}</th>\n <th scope=\"true\" class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n <ng-template #body\n let-member>\n <tr class=\"table-row\">\n <td data-head=\"First Name\">\n <a [routerLink]=\"['/members', member.slug]\">{{ member.first_name || null }}\n </a>\n </td>\n <td data-head=\"Last Name\">{{ member.last_name || null }}</td>\n <td data-head=\"Email\">{{ member.email }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline list-action\">\n @if (member.id !== userId) {\n <li pTooltip=\"Message\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n [routerLink]=\"['/message']\"\n [fragment]=\"member.slug\">\n <i\n class=\"fa fa-comments cta1-icon\"\n *rbacAllow=\"chatPermission\"\n aria-hidden=\"true\"\n ></i>\n </li>\n }\n @if (hasAccess) {\n <li pTooltip=\"Remove\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n class=\"me-2 me-sm-3\"\n (click)=\"onDelete(member.id)\"\n (keydown.enter)=\"onDelete(member.id)\"\n (keydown.space)=\"onDelete(member.id)\"\n >\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n @if (subscribedMembers?.length === 0 && isLoaded) {\n <pw-no-data [withImage]=\"true\" message=\"There are no members in this team yet.\"\n >\n </pw-no-data>\n }\n </div>\n\n <ng-template #content\n let-modal>\n <div class=\"modal-header\">\n <h4 class=\"modal-title\"\n id=\"modal-basic-title\">Add Members</h4>\n <button type=\"button\"\n class=\"btn-close float-end\"\n aria-label=\"Close\"\n (click)=\"modal.dismiss()\">\n\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Please start typing to select the members to add to this team.</p>\n <div class=\"ui-fluid skills-modal\">\n <p-auto-complete class=\"w-100\" appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-auto-complete>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\"\n class=\"btn btn-outline-default\"\n (click)=\"closeModal(modal)\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n class=\"btn btn-primary\"\n (click)=\"onSave()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </ng-template>\n",
|
|
5626
5665
|
styles: ["a.previous i{line-height:23px}\n"]
|
|
5627
5666
|
}]
|
|
5628
5667
|
}],
|
|
5629
5668
|
ctorParameters: () => [
|
|
5630
|
-
{ type: i1$
|
|
5631
|
-
{ type: i1$
|
|
5632
|
-
{ type: i1$
|
|
5669
|
+
{ type: i1$2.GroupService },
|
|
5670
|
+
{ type: i1$2.SubscriptionService },
|
|
5671
|
+
{ type: i1$4.NgbModal },
|
|
5633
5672
|
{ type: i0.Injector },
|
|
5634
5673
|
{ type: i0.ChangeDetectorRef }
|
|
5635
5674
|
],
|
|
@@ -5647,6 +5686,8 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5647
5686
|
this.isReadOnly = false;
|
|
5648
5687
|
this.showTriangle = false;
|
|
5649
5688
|
this.isLeftTooltip = false;
|
|
5689
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
5690
|
+
this.destroyRef = inject(DestroyRef);
|
|
5650
5691
|
}
|
|
5651
5692
|
ngOnInit() {
|
|
5652
5693
|
if (this.controlContainer) {
|
|
@@ -5655,9 +5696,13 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5655
5696
|
if (this.control?.validator) {
|
|
5656
5697
|
if (this.control.validator({})?.["required"]) this.required = true;
|
|
5657
5698
|
}
|
|
5699
|
+
this.refreshOnControlEvents();
|
|
5658
5700
|
}
|
|
5659
5701
|
}
|
|
5660
5702
|
}
|
|
5703
|
+
refreshOnControlEvents() {
|
|
5704
|
+
this.control?.events.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.cdr.markForCheck());
|
|
5705
|
+
}
|
|
5661
5706
|
static {
|
|
5662
5707
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
5663
5708
|
minVersion: "12.0.0",
|
|
@@ -5709,13 +5754,13 @@ var InputContainerComponent = class InputContainerComponent {
|
|
|
5709
5754
|
dependencies: [
|
|
5710
5755
|
{
|
|
5711
5756
|
kind: "directive",
|
|
5712
|
-
type: i1$
|
|
5757
|
+
type: i1$3.NgClass,
|
|
5713
5758
|
selector: "[ngClass]",
|
|
5714
5759
|
inputs: ["class", "ngClass"]
|
|
5715
5760
|
},
|
|
5716
5761
|
{
|
|
5717
5762
|
kind: "directive",
|
|
5718
|
-
type:
|
|
5763
|
+
type: i10.Tooltip,
|
|
5719
5764
|
selector: "[pTooltip]",
|
|
5720
5765
|
inputs: [
|
|
5721
5766
|
"tooltipPosition",
|
|
@@ -5951,10 +5996,10 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
5951
5996
|
ngImport: i0,
|
|
5952
5997
|
type: GroupDefinitionComponent,
|
|
5953
5998
|
deps: [
|
|
5954
|
-
{ token: i1$
|
|
5999
|
+
{ token: i1$2.GroupService },
|
|
5955
6000
|
{ token: i4$1.UntypedFormBuilder },
|
|
5956
|
-
{ token: i1$
|
|
5957
|
-
{ token: i1$
|
|
6001
|
+
{ token: i1$2.SubscriptionService },
|
|
6002
|
+
{ token: i1$2.DataService },
|
|
5958
6003
|
{ token: i0.Injector },
|
|
5959
6004
|
{ token: i0.ChangeDetectorRef },
|
|
5960
6005
|
{ token: ConfirmDialogService }
|
|
@@ -6101,7 +6146,7 @@ var GroupDefinitionComponent = class GroupDefinitionComponent extends AppBaseCom
|
|
|
6101
6146
|
},
|
|
6102
6147
|
{
|
|
6103
6148
|
kind: "pipe",
|
|
6104
|
-
type: i1$
|
|
6149
|
+
type: i1$3.SlicePipe,
|
|
6105
6150
|
name: "slice"
|
|
6106
6151
|
}
|
|
6107
6152
|
]
|
|
@@ -6129,10 +6174,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6129
6174
|
}]
|
|
6130
6175
|
}],
|
|
6131
6176
|
ctorParameters: () => [
|
|
6132
|
-
{ type: i1$
|
|
6177
|
+
{ type: i1$2.GroupService },
|
|
6133
6178
|
{ type: i4$1.UntypedFormBuilder },
|
|
6134
|
-
{ type: i1$
|
|
6135
|
-
{ type: i1$
|
|
6179
|
+
{ type: i1$2.SubscriptionService },
|
|
6180
|
+
{ type: i1$2.DataService },
|
|
6136
6181
|
{ type: i0.Injector },
|
|
6137
6182
|
{ type: i0.ChangeDetectorRef },
|
|
6138
6183
|
{ type: ConfirmDialogService }
|
|
@@ -6340,9 +6385,9 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6340
6385
|
type: GroupsComponent,
|
|
6341
6386
|
deps: [
|
|
6342
6387
|
{ token: i4$1.UntypedFormBuilder },
|
|
6343
|
-
{ token: i1$
|
|
6344
|
-
{ token: i1$
|
|
6345
|
-
{ token: i1$
|
|
6388
|
+
{ token: i1$2.GroupService },
|
|
6389
|
+
{ token: i1$2.SubscriptionService },
|
|
6390
|
+
{ token: i1$2.DataService },
|
|
6346
6391
|
{ token: i0.Injector },
|
|
6347
6392
|
{ token: i0.ChangeDetectorRef },
|
|
6348
6393
|
{ token: ConfirmDialogService }
|
|
@@ -6428,7 +6473,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6428
6473
|
},
|
|
6429
6474
|
{
|
|
6430
6475
|
kind: "directive",
|
|
6431
|
-
type:
|
|
6476
|
+
type: i9$1.RouterLink,
|
|
6432
6477
|
selector: "[routerLink]",
|
|
6433
6478
|
inputs: [
|
|
6434
6479
|
"target",
|
|
@@ -6531,7 +6576,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6531
6576
|
},
|
|
6532
6577
|
{
|
|
6533
6578
|
kind: "directive",
|
|
6534
|
-
type: i1$
|
|
6579
|
+
type: i1$3.NgClass,
|
|
6535
6580
|
selector: "[ngClass]",
|
|
6536
6581
|
inputs: ["class", "ngClass"]
|
|
6537
6582
|
},
|
|
@@ -6575,7 +6620,7 @@ var GroupsComponent = class GroupsComponent extends AppBaseComponent {
|
|
|
6575
6620
|
},
|
|
6576
6621
|
{
|
|
6577
6622
|
kind: "pipe",
|
|
6578
|
-
type: i1$
|
|
6623
|
+
type: i1$3.SlicePipe,
|
|
6579
6624
|
name: "slice"
|
|
6580
6625
|
}
|
|
6581
6626
|
]
|
|
@@ -6604,9 +6649,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6604
6649
|
}],
|
|
6605
6650
|
ctorParameters: () => [
|
|
6606
6651
|
{ type: i4$1.UntypedFormBuilder },
|
|
6607
|
-
{ type: i1$
|
|
6608
|
-
{ type: i1$
|
|
6609
|
-
{ type: i1$
|
|
6652
|
+
{ type: i1$2.GroupService },
|
|
6653
|
+
{ type: i1$2.SubscriptionService },
|
|
6654
|
+
{ type: i1$2.DataService },
|
|
6610
6655
|
{ type: i0.Injector },
|
|
6611
6656
|
{ type: i0.ChangeDetectorRef },
|
|
6612
6657
|
{ type: ConfirmDialogService }
|
|
@@ -6663,7 +6708,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6663
6708
|
ngImport: i0,
|
|
6664
6709
|
type: LandingPageFooterBComponent,
|
|
6665
6710
|
deps: [
|
|
6666
|
-
{ token: i1$
|
|
6711
|
+
{ token: i1$2.AuthService },
|
|
6667
6712
|
{ token: i0.ChangeDetectorRef },
|
|
6668
6713
|
{ token: i0.Injector }
|
|
6669
6714
|
],
|
|
@@ -6689,7 +6734,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6689
6734
|
},
|
|
6690
6735
|
{
|
|
6691
6736
|
kind: "directive",
|
|
6692
|
-
type:
|
|
6737
|
+
type: i9$1.RouterLink,
|
|
6693
6738
|
selector: "[routerLink]",
|
|
6694
6739
|
inputs: [
|
|
6695
6740
|
"target",
|
|
@@ -6708,7 +6753,7 @@ var LandingPageFooterBComponent = class LandingPageFooterBComponent extends AppB
|
|
|
6708
6753
|
},
|
|
6709
6754
|
{
|
|
6710
6755
|
kind: "pipe",
|
|
6711
|
-
type: i1$
|
|
6756
|
+
type: i1$3.DatePipe,
|
|
6712
6757
|
name: "date"
|
|
6713
6758
|
}
|
|
6714
6759
|
]
|
|
@@ -6730,7 +6775,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6730
6775
|
}]
|
|
6731
6776
|
}],
|
|
6732
6777
|
ctorParameters: () => [
|
|
6733
|
-
{ type: i1$
|
|
6778
|
+
{ type: i1$2.AuthService },
|
|
6734
6779
|
{ type: i0.ChangeDetectorRef },
|
|
6735
6780
|
{ type: i0.Injector }
|
|
6736
6781
|
]
|
|
@@ -6930,7 +6975,7 @@ var NumberPickerComponent = class NumberPickerComponent {
|
|
|
6930
6975
|
version: "22.2.0",
|
|
6931
6976
|
ngImport: i0,
|
|
6932
6977
|
type: NumberPickerComponent,
|
|
6933
|
-
deps: [{ token: i1$
|
|
6978
|
+
deps: [{ token: i1$2.NumberPickerService }],
|
|
6934
6979
|
target: i0.ɵɵFactoryTarget.Component
|
|
6935
6980
|
});
|
|
6936
6981
|
}
|
|
@@ -7008,7 +7053,7 @@ var NumberPickerComponent = class NumberPickerComponent {
|
|
|
7008
7053
|
},
|
|
7009
7054
|
{
|
|
7010
7055
|
kind: "directive",
|
|
7011
|
-
type:
|
|
7056
|
+
type: i10.Tooltip,
|
|
7012
7057
|
selector: "[pTooltip]",
|
|
7013
7058
|
inputs: [
|
|
7014
7059
|
"tooltipPosition",
|
|
@@ -7052,7 +7097,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7052
7097
|
styles: ["input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.increase:hover,.decrease:hover{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:pointer;background-color:#d8d8d8}.increase{border-top-right-radius:3px!important;border-bottom-right-radius:3px!important}.vertical{display:flex;justify-content:center;flex-direction:column;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:pointer}.vertical span{line-height:15px}.input-md .vertical span,.input-sm .vertical span{padding:2px 10px}.input-lg .vertical span{padding:4px 10px}.input-xlg .vertical span{padding:7px 10px}.input-md,.input-medium{height:45px}.input-lg,.input-large{height:50px}.input-xlg,.input-xlarge{height:75px}.input-md input,.input-medium input,.input-md span,.input-medium span{font-size:22px}.input-lg input,.input-large input,.input-lg span,.input-large span{font-size:25px}.input-xlg input,.input-xlarge input,.input-xlg span,.input-xlarge span{font-size:38px}\n"]
|
|
7053
7098
|
}]
|
|
7054
7099
|
}],
|
|
7055
|
-
ctorParameters: () => [{ type: i1$
|
|
7100
|
+
ctorParameters: () => [{ type: i1$2.NumberPickerService }],
|
|
7056
7101
|
propDecorators: {
|
|
7057
7102
|
min: [{ type: Input }],
|
|
7058
7103
|
showTooltip: [{ type: Input }],
|
|
@@ -7113,7 +7158,7 @@ var OnlineIndicatorComponent = class OnlineIndicatorComponent {
|
|
|
7113
7158
|
dependencies: [
|
|
7114
7159
|
{
|
|
7115
7160
|
kind: "directive",
|
|
7116
|
-
type:
|
|
7161
|
+
type: i10.Tooltip,
|
|
7117
7162
|
selector: "[pTooltip]",
|
|
7118
7163
|
inputs: [
|
|
7119
7164
|
"tooltipPosition",
|
|
@@ -7146,7 +7191,7 @@ var OnlineIndicatorComponent = class OnlineIndicatorComponent {
|
|
|
7146
7191
|
},
|
|
7147
7192
|
{
|
|
7148
7193
|
kind: "pipe",
|
|
7149
|
-
type:
|
|
7194
|
+
type: i15.IsOnlinePipe,
|
|
7150
7195
|
name: "isOnline"
|
|
7151
7196
|
}
|
|
7152
7197
|
]
|
|
@@ -7222,7 +7267,7 @@ var PasswordValidationComponent = class PasswordValidationComponent extends AppB
|
|
|
7222
7267
|
type: PasswordValidationComponent,
|
|
7223
7268
|
deps: [
|
|
7224
7269
|
{ token: i0.Injector },
|
|
7225
|
-
{ token: i1$
|
|
7270
|
+
{ token: i1$4.NgbModal },
|
|
7226
7271
|
{ token: i0.ChangeDetectorRef }
|
|
7227
7272
|
],
|
|
7228
7273
|
target: i0.ɵɵFactoryTarget.Component
|
|
@@ -7311,7 +7356,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7311
7356
|
}],
|
|
7312
7357
|
ctorParameters: () => [
|
|
7313
7358
|
{ type: i0.Injector },
|
|
7314
|
-
{ type: i1$
|
|
7359
|
+
{ type: i1$4.NgbModal },
|
|
7315
7360
|
{ type: i0.ChangeDetectorRef }
|
|
7316
7361
|
],
|
|
7317
7362
|
propDecorators: {
|
|
@@ -7587,7 +7632,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7587
7632
|
},
|
|
7588
7633
|
{
|
|
7589
7634
|
kind: "directive",
|
|
7590
|
-
type:
|
|
7635
|
+
type: i9$1.RouterLink,
|
|
7591
7636
|
selector: "[routerLink]",
|
|
7592
7637
|
inputs: [
|
|
7593
7638
|
"target",
|
|
@@ -7606,12 +7651,12 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7606
7651
|
},
|
|
7607
7652
|
{
|
|
7608
7653
|
kind: "directive",
|
|
7609
|
-
type: i1$
|
|
7654
|
+
type: i1$4.NgbNavContent,
|
|
7610
7655
|
selector: "ng-template[ngbNavContent]"
|
|
7611
7656
|
},
|
|
7612
7657
|
{
|
|
7613
7658
|
kind: "directive",
|
|
7614
|
-
type: i1$
|
|
7659
|
+
type: i1$4.NgbNav,
|
|
7615
7660
|
selector: "[ngbNav]",
|
|
7616
7661
|
inputs: [
|
|
7617
7662
|
"activeId",
|
|
@@ -7631,7 +7676,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7631
7676
|
},
|
|
7632
7677
|
{
|
|
7633
7678
|
kind: "directive",
|
|
7634
|
-
type: i1$
|
|
7679
|
+
type: i1$4.NgbNavItem,
|
|
7635
7680
|
selector: "[ngbNavItem]",
|
|
7636
7681
|
inputs: [
|
|
7637
7682
|
"destroyOnHide",
|
|
@@ -7644,22 +7689,22 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7644
7689
|
},
|
|
7645
7690
|
{
|
|
7646
7691
|
kind: "directive",
|
|
7647
|
-
type: i1$
|
|
7692
|
+
type: i1$4.NgbNavItemRole,
|
|
7648
7693
|
selector: "[ngbNavItem]:not(ng-container)"
|
|
7649
7694
|
},
|
|
7650
7695
|
{
|
|
7651
7696
|
kind: "directive",
|
|
7652
|
-
type: i1$
|
|
7697
|
+
type: i1$4.NgbNavLink,
|
|
7653
7698
|
selector: "a[ngbNavLink]"
|
|
7654
7699
|
},
|
|
7655
7700
|
{
|
|
7656
7701
|
kind: "directive",
|
|
7657
|
-
type: i1$
|
|
7702
|
+
type: i1$4.NgbNavLinkBase,
|
|
7658
7703
|
selector: "[ngbNavLink]"
|
|
7659
7704
|
},
|
|
7660
7705
|
{
|
|
7661
7706
|
kind: "component",
|
|
7662
|
-
type: i1$
|
|
7707
|
+
type: i1$4.NgbNavOutlet,
|
|
7663
7708
|
selector: "[ngbNavOutlet]",
|
|
7664
7709
|
inputs: ["paneRole", "ngbNavOutlet"]
|
|
7665
7710
|
},
|
|
@@ -7676,7 +7721,7 @@ var PrivacyAndTosComponent = class PrivacyAndTosComponent extends AppBaseCompone
|
|
|
7676
7721
|
},
|
|
7677
7722
|
{
|
|
7678
7723
|
kind: "pipe",
|
|
7679
|
-
type: i1$
|
|
7724
|
+
type: i1$3.DatePipe,
|
|
7680
7725
|
name: "date"
|
|
7681
7726
|
}
|
|
7682
7727
|
]
|
|
@@ -7731,7 +7776,7 @@ var PrivacyPolicyComponent = class PrivacyPolicyComponent {
|
|
|
7731
7776
|
version: "22.2.0",
|
|
7732
7777
|
ngImport: i0,
|
|
7733
7778
|
type: PrivacyPolicyComponent,
|
|
7734
|
-
deps: [{ token: i2$3.AppConfigService }, { token:
|
|
7779
|
+
deps: [{ token: i2$3.AppConfigService }, { token: i9$1.Router }],
|
|
7735
7780
|
target: i0.ɵɵFactoryTarget.Component
|
|
7736
7781
|
});
|
|
7737
7782
|
}
|
|
@@ -7761,7 +7806,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7761
7806
|
standalone: false
|
|
7762
7807
|
}]
|
|
7763
7808
|
}],
|
|
7764
|
-
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type:
|
|
7809
|
+
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i9$1.Router }]
|
|
7765
7810
|
});
|
|
7766
7811
|
var PwTabsComponent = class PwTabsComponent extends AppBaseComponent {
|
|
7767
7812
|
constructor(injector, cdr) {
|
|
@@ -7843,7 +7888,7 @@ var PwTabsComponent = class PwTabsComponent extends AppBaseComponent {
|
|
|
7843
7888
|
dependencies: [
|
|
7844
7889
|
{
|
|
7845
7890
|
kind: "directive",
|
|
7846
|
-
type:
|
|
7891
|
+
type: i9$1.RouterOutlet,
|
|
7847
7892
|
selector: "router-outlet",
|
|
7848
7893
|
inputs: ["name", "routerOutletData"],
|
|
7849
7894
|
outputs: [
|
|
@@ -8154,12 +8199,12 @@ var CompletionBarComponent = class CompletionBarComponent {
|
|
|
8154
8199
|
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.pw-completion-bar{display:inline-flex;align-items:center;gap:8px;line-height:1}.pw-completion-bar__track{display:inline-flex;align-items:flex-end;gap:2px}.pw-completion-bar__seg{width:4px;height:14px;border-radius:1px;background-color:#e2e5ea;transition:background-color .15s ease-out}.pw-completion-bar__label{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:oklch(from var(--text) 40% c h);min-width:30px}.pw-completion-bar__track.tier-low .pw-completion-bar__seg.is-filled{background-color:#ff586b}.pw-completion-bar__track.tier-mid .pw-completion-bar__seg.is-filled{background-color:#fbab00}.pw-completion-bar__track.tier-high .pw-completion-bar__seg.is-filled{background-color:#45d292}\n"],
|
|
8155
8200
|
dependencies: [{
|
|
8156
8201
|
kind: "directive",
|
|
8157
|
-
type: i1$
|
|
8202
|
+
type: i1$3.NgClass,
|
|
8158
8203
|
selector: "[ngClass]",
|
|
8159
8204
|
inputs: ["class", "ngClass"]
|
|
8160
8205
|
}, {
|
|
8161
8206
|
kind: "directive",
|
|
8162
|
-
type: i1$
|
|
8207
|
+
type: i1$4.NgbTooltip,
|
|
8163
8208
|
selector: "[ngbTooltip]",
|
|
8164
8209
|
inputs: [
|
|
8165
8210
|
"animation",
|
|
@@ -8229,6 +8274,211 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8229
8274
|
value: [{ type: Input }]
|
|
8230
8275
|
}
|
|
8231
8276
|
});
|
|
8277
|
+
const STATE_ICONS = {
|
|
8278
|
+
done: faCircleCheck,
|
|
8279
|
+
next: faCircleHalfStroke,
|
|
8280
|
+
ready: faCircleHalfStroke,
|
|
8281
|
+
blocked: faCircleExclamation,
|
|
8282
|
+
waiting: faHourglassHalf,
|
|
8283
|
+
todo: faCircle,
|
|
8284
|
+
optional: faCircle,
|
|
8285
|
+
unknown: faCircleQuestion
|
|
8286
|
+
};
|
|
8287
|
+
var OnboardingChecklistComponent = class OnboardingChecklistComponent {
|
|
8288
|
+
constructor() {
|
|
8289
|
+
this.status = null;
|
|
8290
|
+
this.loading = false;
|
|
8291
|
+
this.loadFailed = false;
|
|
8292
|
+
this.slug = "";
|
|
8293
|
+
this.subscriptionId = null;
|
|
8294
|
+
this.retry = new EventEmitter();
|
|
8295
|
+
this.doneIcon = faCircleCheck;
|
|
8296
|
+
}
|
|
8297
|
+
get visible() {
|
|
8298
|
+
return this.loading || this.loadFailed || this.status?.status === "ok";
|
|
8299
|
+
}
|
|
8300
|
+
get progressPercent() {
|
|
8301
|
+
const progress = this.status?.progress;
|
|
8302
|
+
return progress?.total ? Math.round(100 * progress.done / progress.total) : 0;
|
|
8303
|
+
}
|
|
8304
|
+
get currentStep() {
|
|
8305
|
+
return this.status?.steps.find((step) => step.current) ?? null;
|
|
8306
|
+
}
|
|
8307
|
+
icon(step) {
|
|
8308
|
+
return STATE_ICONS[step.state] ?? faCircle;
|
|
8309
|
+
}
|
|
8310
|
+
routeFor(step) {
|
|
8311
|
+
if (!step.route) return null;
|
|
8312
|
+
return step.route.replace("{slug}", this.slug ?? "").replace("{subscription_id}", String(this.subscriptionId ?? ""));
|
|
8313
|
+
}
|
|
8314
|
+
actionKey(step) {
|
|
8315
|
+
if (step.can_act === false || step.state === "waiting" || !this.routeFor(step)) return null;
|
|
8316
|
+
if (step.state === "blocked") return "OnboardingChecklist.Action.Fix";
|
|
8317
|
+
return step.state === "ready" ? "OnboardingChecklist.Action.Finish" : "OnboardingChecklist.Action.Start";
|
|
8318
|
+
}
|
|
8319
|
+
trackByKey(_index, step) {
|
|
8320
|
+
return step.key;
|
|
8321
|
+
}
|
|
8322
|
+
static {
|
|
8323
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
8324
|
+
minVersion: "12.0.0",
|
|
8325
|
+
version: "22.2.0",
|
|
8326
|
+
ngImport: i0,
|
|
8327
|
+
type: OnboardingChecklistComponent,
|
|
8328
|
+
deps: [],
|
|
8329
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
8330
|
+
});
|
|
8331
|
+
}
|
|
8332
|
+
static {
|
|
8333
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
8334
|
+
minVersion: "17.0.0",
|
|
8335
|
+
version: "22.2.0",
|
|
8336
|
+
type: OnboardingChecklistComponent,
|
|
8337
|
+
isStandalone: false,
|
|
8338
|
+
selector: "pw-onboarding-checklist",
|
|
8339
|
+
inputs: {
|
|
8340
|
+
status: "status",
|
|
8341
|
+
loading: "loading",
|
|
8342
|
+
loadFailed: "loadFailed",
|
|
8343
|
+
slug: "slug",
|
|
8344
|
+
subscriptionId: "subscriptionId"
|
|
8345
|
+
},
|
|
8346
|
+
outputs: { retry: "retry" },
|
|
8347
|
+
ngImport: i0,
|
|
8348
|
+
template: "@if (visible) {\n <div class=\"card pw-onboarding\">\n <div class=\"card-content p-0\">\n <pw-loader [isVisible]=\"loading\"></pw-loader>\n\n @if (!loading) {\n @if (loadFailed) {\n <pw-no-data [withImage]=\"true\" [message]=\"'OnboardingChecklist.LoadFailed' | transloco\">\n <div #content>\n <button type=\"button\" class=\"btn btn-outline-secondary btn-sm\" (click)=\"retry.emit()\">\n {{ 'OnboardingChecklist.Action.Retry' | transloco }}\n </button>\n </div>\n </pw-no-data>\n } @else if (status) {\n <div class=\"card-header mt-0\">\n <h3 class=\"mb-2\">{{ 'OnboardingChecklist.Title' | transloco }}</h3>\n @if (status.activated) {\n <p class=\"pw-onboarding__all-set\">\n <fa-icon [icon]=\"doneIcon\" aria-hidden=\"true\"></fa-icon>\n {{ 'OnboardingChecklist.AllSet' | transloco }}\n </p>\n } @else {\n <p>{{ 'OnboardingChecklist.Intro' | transloco }}</p>\n }\n <pw-completion-bar\n [value]=\"progressPercent\"\n [label]=\"'OnboardingChecklist.Progress' | transloco: { done: status.progress.done, total: status.progress.total }\"\n [ariaLabel]=\"'OnboardingChecklist.Progress' | transloco: { done: status.progress.done, total: status.progress.total }\">\n </pw-completion-bar>\n </div>\n\n @if (currentStep; as step) {\n <div class=\"pw-onboarding__current\" [class.is-blocked]=\"step.state === 'blocked'\">\n <div class=\"pw-onboarding__current-text\">\n <strong>{{ step.title_key | transloco }}</strong>\n @if (step.state === 'blocked' && step.reason_key) {\n <span class=\"pw-onboarding__reason\">\n <fa-icon [icon]=\"icon(step)\" aria-hidden=\"true\"></fa-icon>\n {{ step.reason_key | transloco }}\n </span>\n @if (step.detail) {\n <span class=\"pw-onboarding__detail\">{{ step.detail }}</span>\n }\n } @else if (step.state === 'waiting') {\n <span class=\"pw-onboarding__muted\">{{ 'OnboardingChecklist.Waiting' | transloco }}</span>\n } @else if (step.description_key) {\n <span class=\"pw-onboarding__muted\">{{ step.description_key | transloco }}</span>\n }\n @if (step.can_act === false) {\n <span class=\"pw-onboarding__muted\">{{ 'OnboardingChecklist.AskAdmin' | transloco }}</span>\n }\n </div>\n @if (actionKey(step); as action) {\n <a class=\"btn btn-primary btn-sm\" [routerLink]=\"routeFor(step)\">{{ action | transloco }}</a>\n }\n </div>\n }\n\n <ol class=\"pw-onboarding__steps\">\n @for (item of status.steps; track item.key) {\n <li class=\"pw-onboarding__step\" [ngClass]=\"'is-' + item.state\" [class.is-current]=\"item.current\">\n <fa-icon class=\"pw-onboarding__marker\" [icon]=\"icon(item)\" aria-hidden=\"true\"></fa-icon>\n <span class=\"pw-onboarding__step-title\">{{ item.title_key | transloco }}</span>\n <span class=\"pw-onboarding__state\">\n @if (item.kind === 'optional' && item.state !== 'done') {\n {{ 'OnboardingChecklist.State.optional' | transloco }}\n } @else {\n {{ 'OnboardingChecklist.State.' + item.state | transloco }}\n }\n </span>\n </li>\n }\n </ol>\n }\n }\n </div>\n </div>\n}\n",
|
|
8349
|
+
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.pw-onboarding{margin-top:8px;margin-bottom:16px}.pw-onboarding__all-set{display:flex;align-items:center;gap:8px;color:#45d292}.pw-onboarding__current{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 16px 8px;padding:12px 16px;border:1px solid rgb(226,229,234);border-left:3px solid var(--first, #0d6efd);border-radius:8px;background-color:#f7f8fa}.pw-onboarding__current.is-blocked{border-left-color:#ff586b}.pw-onboarding__current-text{display:flex;flex-direction:column;gap:4px;min-width:0}.pw-onboarding__reason{display:flex;align-items:center;gap:6px;color:#ff586b}.pw-onboarding__detail,.pw-onboarding__muted{color:#5a6473;overflow-wrap:anywhere}.pw-onboarding__steps{list-style:none;margin:0;padding:0 16px 16px}.pw-onboarding__step{display:flex;align-items:center;gap:10px;min-height:40px;border-top:1px solid rgb(226,229,234)}.pw-onboarding__step:first-child{border-top:0}.pw-onboarding__step.is-done .pw-onboarding__marker{color:#45d292}.pw-onboarding__step.is-blocked .pw-onboarding__marker{color:#ff586b}.pw-onboarding__step.is-current .pw-onboarding__marker,.pw-onboarding__step.is-ready .pw-onboarding__marker{color:var(--first, #0d6efd)}.pw-onboarding__step.is-current .pw-onboarding__step-title{font-weight:600}.pw-onboarding__marker{flex:0 0 auto;color:#7c8696}.pw-onboarding__step-title{flex:1 1 auto;min-width:0}.pw-onboarding__state{flex:0 0 auto;color:#7c8696;font-size:12px;white-space:nowrap}@media(max-width:575px){.pw-onboarding__current{flex-direction:column;align-items:stretch}.pw-onboarding__current .btn{align-self:flex-start}}\n"],
|
|
8350
|
+
dependencies: [
|
|
8351
|
+
{
|
|
8352
|
+
kind: "directive",
|
|
8353
|
+
type: i1$3.NgClass,
|
|
8354
|
+
selector: "[ngClass]",
|
|
8355
|
+
inputs: ["class", "ngClass"]
|
|
8356
|
+
},
|
|
8357
|
+
{
|
|
8358
|
+
kind: "directive",
|
|
8359
|
+
type: i9$1.RouterLink,
|
|
8360
|
+
selector: "[routerLink]",
|
|
8361
|
+
inputs: [
|
|
8362
|
+
"target",
|
|
8363
|
+
"queryParams",
|
|
8364
|
+
"fragment",
|
|
8365
|
+
"queryParamsHandling",
|
|
8366
|
+
"state",
|
|
8367
|
+
"info",
|
|
8368
|
+
"relativeTo",
|
|
8369
|
+
"preserveFragment",
|
|
8370
|
+
"skipLocationChange",
|
|
8371
|
+
"replaceUrl",
|
|
8372
|
+
"browserUrl",
|
|
8373
|
+
"routerLink"
|
|
8374
|
+
]
|
|
8375
|
+
},
|
|
8376
|
+
{
|
|
8377
|
+
kind: "component",
|
|
8378
|
+
type: i3.FaIconComponent,
|
|
8379
|
+
selector: "fa-icon",
|
|
8380
|
+
inputs: [
|
|
8381
|
+
"icon",
|
|
8382
|
+
"title",
|
|
8383
|
+
"animation",
|
|
8384
|
+
"mask",
|
|
8385
|
+
"flip",
|
|
8386
|
+
"size",
|
|
8387
|
+
"pull",
|
|
8388
|
+
"border",
|
|
8389
|
+
"inverse",
|
|
8390
|
+
"symbol",
|
|
8391
|
+
"rotate",
|
|
8392
|
+
"fixedWidth",
|
|
8393
|
+
"transform",
|
|
8394
|
+
"a11yRole"
|
|
8395
|
+
],
|
|
8396
|
+
outputs: [
|
|
8397
|
+
"iconChange",
|
|
8398
|
+
"titleChange",
|
|
8399
|
+
"animationChange",
|
|
8400
|
+
"maskChange",
|
|
8401
|
+
"flipChange",
|
|
8402
|
+
"sizeChange",
|
|
8403
|
+
"pullChange",
|
|
8404
|
+
"borderChange",
|
|
8405
|
+
"inverseChange",
|
|
8406
|
+
"symbolChange",
|
|
8407
|
+
"rotateChange",
|
|
8408
|
+
"fixedWidthChange",
|
|
8409
|
+
"transformChange",
|
|
8410
|
+
"a11yRoleChange"
|
|
8411
|
+
]
|
|
8412
|
+
},
|
|
8413
|
+
{
|
|
8414
|
+
kind: "component",
|
|
8415
|
+
type: i8$1.AppLoaderComponent,
|
|
8416
|
+
selector: "pw-loader",
|
|
8417
|
+
inputs: [
|
|
8418
|
+
"isVisible",
|
|
8419
|
+
"closeOnOutsideClick",
|
|
8420
|
+
"autoCloseTimeOut"
|
|
8421
|
+
]
|
|
8422
|
+
},
|
|
8423
|
+
{
|
|
8424
|
+
kind: "component",
|
|
8425
|
+
type: NoDataComponent,
|
|
8426
|
+
selector: "pw-no-data",
|
|
8427
|
+
inputs: [
|
|
8428
|
+
"message",
|
|
8429
|
+
"description",
|
|
8430
|
+
"withImage"
|
|
8431
|
+
]
|
|
8432
|
+
},
|
|
8433
|
+
{
|
|
8434
|
+
kind: "component",
|
|
8435
|
+
type: CompletionBarComponent,
|
|
8436
|
+
selector: "pw-completion-bar",
|
|
8437
|
+
inputs: [
|
|
8438
|
+
"segments",
|
|
8439
|
+
"showLabel",
|
|
8440
|
+
"label",
|
|
8441
|
+
"ariaLabel",
|
|
8442
|
+
"tooltip",
|
|
8443
|
+
"lowThreshold",
|
|
8444
|
+
"highThreshold",
|
|
8445
|
+
"value"
|
|
8446
|
+
]
|
|
8447
|
+
},
|
|
8448
|
+
{
|
|
8449
|
+
kind: "pipe",
|
|
8450
|
+
type: i2$4.TranslocoPipe,
|
|
8451
|
+
name: "transloco"
|
|
8452
|
+
}
|
|
8453
|
+
],
|
|
8454
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
8455
|
+
});
|
|
8456
|
+
}
|
|
8457
|
+
};
|
|
8458
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
8459
|
+
minVersion: "12.0.0",
|
|
8460
|
+
version: "22.2.0",
|
|
8461
|
+
ngImport: i0,
|
|
8462
|
+
type: OnboardingChecklistComponent,
|
|
8463
|
+
decorators: [{
|
|
8464
|
+
type: Component,
|
|
8465
|
+
args: [{
|
|
8466
|
+
selector: "pw-onboarding-checklist",
|
|
8467
|
+
standalone: false,
|
|
8468
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8469
|
+
template: "@if (visible) {\n <div class=\"card pw-onboarding\">\n <div class=\"card-content p-0\">\n <pw-loader [isVisible]=\"loading\"></pw-loader>\n\n @if (!loading) {\n @if (loadFailed) {\n <pw-no-data [withImage]=\"true\" [message]=\"'OnboardingChecklist.LoadFailed' | transloco\">\n <div #content>\n <button type=\"button\" class=\"btn btn-outline-secondary btn-sm\" (click)=\"retry.emit()\">\n {{ 'OnboardingChecklist.Action.Retry' | transloco }}\n </button>\n </div>\n </pw-no-data>\n } @else if (status) {\n <div class=\"card-header mt-0\">\n <h3 class=\"mb-2\">{{ 'OnboardingChecklist.Title' | transloco }}</h3>\n @if (status.activated) {\n <p class=\"pw-onboarding__all-set\">\n <fa-icon [icon]=\"doneIcon\" aria-hidden=\"true\"></fa-icon>\n {{ 'OnboardingChecklist.AllSet' | transloco }}\n </p>\n } @else {\n <p>{{ 'OnboardingChecklist.Intro' | transloco }}</p>\n }\n <pw-completion-bar\n [value]=\"progressPercent\"\n [label]=\"'OnboardingChecklist.Progress' | transloco: { done: status.progress.done, total: status.progress.total }\"\n [ariaLabel]=\"'OnboardingChecklist.Progress' | transloco: { done: status.progress.done, total: status.progress.total }\">\n </pw-completion-bar>\n </div>\n\n @if (currentStep; as step) {\n <div class=\"pw-onboarding__current\" [class.is-blocked]=\"step.state === 'blocked'\">\n <div class=\"pw-onboarding__current-text\">\n <strong>{{ step.title_key | transloco }}</strong>\n @if (step.state === 'blocked' && step.reason_key) {\n <span class=\"pw-onboarding__reason\">\n <fa-icon [icon]=\"icon(step)\" aria-hidden=\"true\"></fa-icon>\n {{ step.reason_key | transloco }}\n </span>\n @if (step.detail) {\n <span class=\"pw-onboarding__detail\">{{ step.detail }}</span>\n }\n } @else if (step.state === 'waiting') {\n <span class=\"pw-onboarding__muted\">{{ 'OnboardingChecklist.Waiting' | transloco }}</span>\n } @else if (step.description_key) {\n <span class=\"pw-onboarding__muted\">{{ step.description_key | transloco }}</span>\n }\n @if (step.can_act === false) {\n <span class=\"pw-onboarding__muted\">{{ 'OnboardingChecklist.AskAdmin' | transloco }}</span>\n }\n </div>\n @if (actionKey(step); as action) {\n <a class=\"btn btn-primary btn-sm\" [routerLink]=\"routeFor(step)\">{{ action | transloco }}</a>\n }\n </div>\n }\n\n <ol class=\"pw-onboarding__steps\">\n @for (item of status.steps; track item.key) {\n <li class=\"pw-onboarding__step\" [ngClass]=\"'is-' + item.state\" [class.is-current]=\"item.current\">\n <fa-icon class=\"pw-onboarding__marker\" [icon]=\"icon(item)\" aria-hidden=\"true\"></fa-icon>\n <span class=\"pw-onboarding__step-title\">{{ item.title_key | transloco }}</span>\n <span class=\"pw-onboarding__state\">\n @if (item.kind === 'optional' && item.state !== 'done') {\n {{ 'OnboardingChecklist.State.optional' | transloco }}\n } @else {\n {{ 'OnboardingChecklist.State.' + item.state | transloco }}\n }\n </span>\n </li>\n }\n </ol>\n }\n }\n </div>\n </div>\n}\n",
|
|
8470
|
+
styles: ["@charset \"UTF-8\";:root{--first: rgb(23 105 225);--second: rgb(54 194 131);--third: rgb(255 171 0);--text: rgb(34 34 34);--tabs_bg: rgb(23 105 225);--tabs_sub_bg: color-mix(in srgb, var(--first, rgb(23 105 225)) 85%, #000000);--tabs_text: rgb(255 255 255);--titles: rgb(34 34 34);--sidebar_bg: rgb(0, 48, 63);--sidebar_text: rgb(255 255 255);--dashboard_bg: rgb(255 255 255);--public-btn-radius: 24px}.pw-onboarding{margin-top:8px;margin-bottom:16px}.pw-onboarding__all-set{display:flex;align-items:center;gap:8px;color:#45d292}.pw-onboarding__current{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 16px 8px;padding:12px 16px;border:1px solid rgb(226,229,234);border-left:3px solid var(--first, #0d6efd);border-radius:8px;background-color:#f7f8fa}.pw-onboarding__current.is-blocked{border-left-color:#ff586b}.pw-onboarding__current-text{display:flex;flex-direction:column;gap:4px;min-width:0}.pw-onboarding__reason{display:flex;align-items:center;gap:6px;color:#ff586b}.pw-onboarding__detail,.pw-onboarding__muted{color:#5a6473;overflow-wrap:anywhere}.pw-onboarding__steps{list-style:none;margin:0;padding:0 16px 16px}.pw-onboarding__step{display:flex;align-items:center;gap:10px;min-height:40px;border-top:1px solid rgb(226,229,234)}.pw-onboarding__step:first-child{border-top:0}.pw-onboarding__step.is-done .pw-onboarding__marker{color:#45d292}.pw-onboarding__step.is-blocked .pw-onboarding__marker{color:#ff586b}.pw-onboarding__step.is-current .pw-onboarding__marker,.pw-onboarding__step.is-ready .pw-onboarding__marker{color:var(--first, #0d6efd)}.pw-onboarding__step.is-current .pw-onboarding__step-title{font-weight:600}.pw-onboarding__marker{flex:0 0 auto;color:#7c8696}.pw-onboarding__step-title{flex:1 1 auto;min-width:0}.pw-onboarding__state{flex:0 0 auto;color:#7c8696;font-size:12px;white-space:nowrap}@media(max-width:575px){.pw-onboarding__current{flex-direction:column;align-items:stretch}.pw-onboarding__current .btn{align-self:flex-start}}\n"]
|
|
8471
|
+
}]
|
|
8472
|
+
}],
|
|
8473
|
+
propDecorators: {
|
|
8474
|
+
status: [{ type: Input }],
|
|
8475
|
+
loading: [{ type: Input }],
|
|
8476
|
+
loadFailed: [{ type: Input }],
|
|
8477
|
+
slug: [{ type: Input }],
|
|
8478
|
+
subscriptionId: [{ type: Input }],
|
|
8479
|
+
retry: [{ type: Output }]
|
|
8480
|
+
}
|
|
8481
|
+
});
|
|
8232
8482
|
var ResourceSharedComponentsModule = class ResourceSharedComponentsModule {
|
|
8233
8483
|
static {
|
|
8234
8484
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -8250,12 +8500,15 @@ var ResourceSharedComponentsModule = class ResourceSharedComponentsModule {
|
|
|
8250
8500
|
NoDataComponent,
|
|
8251
8501
|
InputContainerComponent,
|
|
8252
8502
|
CompletionBarComponent,
|
|
8253
|
-
RecordsSummaryComponent
|
|
8503
|
+
RecordsSummaryComponent,
|
|
8504
|
+
OnboardingChecklistComponent
|
|
8254
8505
|
],
|
|
8255
8506
|
imports: [
|
|
8256
8507
|
CommonModule,
|
|
8257
8508
|
FormsModule,
|
|
8258
8509
|
ReactiveFormsModule,
|
|
8510
|
+
RouterModule,
|
|
8511
|
+
FontAwesomeModule,
|
|
8259
8512
|
AppLoaderModule,
|
|
8260
8513
|
CoreTranslocoModule,
|
|
8261
8514
|
DirectivesModule,
|
|
@@ -8276,6 +8529,7 @@ var ResourceSharedComponentsModule = class ResourceSharedComponentsModule {
|
|
|
8276
8529
|
NoDataComponent,
|
|
8277
8530
|
CompletionBarComponent,
|
|
8278
8531
|
RecordsSummaryComponent,
|
|
8532
|
+
OnboardingChecklistComponent,
|
|
8279
8533
|
ButtonModule,
|
|
8280
8534
|
DragDropModule,
|
|
8281
8535
|
ProgressSpinnerModule,
|
|
@@ -8295,6 +8549,8 @@ var ResourceSharedComponentsModule = class ResourceSharedComponentsModule {
|
|
|
8295
8549
|
CommonModule,
|
|
8296
8550
|
FormsModule,
|
|
8297
8551
|
ReactiveFormsModule,
|
|
8552
|
+
RouterModule,
|
|
8553
|
+
FontAwesomeModule,
|
|
8298
8554
|
AppLoaderModule,
|
|
8299
8555
|
CoreTranslocoModule,
|
|
8300
8556
|
DirectivesModule,
|
|
@@ -8331,12 +8587,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8331
8587
|
NoDataComponent,
|
|
8332
8588
|
InputContainerComponent,
|
|
8333
8589
|
CompletionBarComponent,
|
|
8334
|
-
RecordsSummaryComponent
|
|
8590
|
+
RecordsSummaryComponent,
|
|
8591
|
+
OnboardingChecklistComponent
|
|
8335
8592
|
],
|
|
8336
8593
|
imports: [
|
|
8337
8594
|
CommonModule,
|
|
8338
8595
|
FormsModule,
|
|
8339
8596
|
ReactiveFormsModule,
|
|
8597
|
+
RouterModule,
|
|
8598
|
+
FontAwesomeModule,
|
|
8340
8599
|
AppLoaderModule,
|
|
8341
8600
|
CoreTranslocoModule,
|
|
8342
8601
|
DirectivesModule,
|
|
@@ -8357,6 +8616,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8357
8616
|
NoDataComponent,
|
|
8358
8617
|
CompletionBarComponent,
|
|
8359
8618
|
RecordsSummaryComponent,
|
|
8619
|
+
OnboardingChecklistComponent,
|
|
8360
8620
|
ButtonModule,
|
|
8361
8621
|
DragDropModule,
|
|
8362
8622
|
ProgressSpinnerModule,
|
|
@@ -8432,7 +8692,7 @@ var TermsConditionsComponent = class TermsConditionsComponent {
|
|
|
8432
8692
|
version: "22.2.0",
|
|
8433
8693
|
ngImport: i0,
|
|
8434
8694
|
type: TermsConditionsComponent,
|
|
8435
|
-
deps: [{ token: i2$3.AppConfigService }, { token:
|
|
8695
|
+
deps: [{ token: i2$3.AppConfigService }, { token: i9$1.Router }],
|
|
8436
8696
|
target: i0.ɵɵFactoryTarget.Component
|
|
8437
8697
|
});
|
|
8438
8698
|
}
|
|
@@ -8462,7 +8722,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8462
8722
|
standalone: false
|
|
8463
8723
|
}]
|
|
8464
8724
|
}],
|
|
8465
|
-
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type:
|
|
8725
|
+
ctorParameters: () => [{ type: i2$3.AppConfigService }, { type: i9$1.Router }]
|
|
8466
8726
|
});
|
|
8467
8727
|
const allModules = [
|
|
8468
8728
|
NgbTooltipModule,
|
|
@@ -8767,7 +9027,7 @@ var CollapsibleSidebarSuperAdminGuard = class CollapsibleSidebarSuperAdminGuard
|
|
|
8767
9027
|
version: "22.2.0",
|
|
8768
9028
|
ngImport: i0,
|
|
8769
9029
|
type: CollapsibleSidebarSuperAdminGuard,
|
|
8770
|
-
deps: [{ token: i1$
|
|
9030
|
+
deps: [{ token: i1$2.UserService }, { token: i1$2.PermissionService }],
|
|
8771
9031
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
8772
9032
|
});
|
|
8773
9033
|
}
|
|
@@ -8790,7 +9050,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8790
9050
|
type: Injectable,
|
|
8791
9051
|
args: [{ providedIn: "root" }]
|
|
8792
9052
|
}],
|
|
8793
|
-
ctorParameters: () => [{ type: i1$
|
|
9053
|
+
ctorParameters: () => [{ type: i1$2.UserService }, { type: i1$2.PermissionService }]
|
|
8794
9054
|
});
|
|
8795
9055
|
var UiLayoutService = class UiLayoutService {
|
|
8796
9056
|
constructor(api) {
|
|
@@ -8807,7 +9067,7 @@ var UiLayoutService = class UiLayoutService {
|
|
|
8807
9067
|
version: "22.2.0",
|
|
8808
9068
|
ngImport: i0,
|
|
8809
9069
|
type: UiLayoutService,
|
|
8810
|
-
deps: [{ token: i1$
|
|
9070
|
+
deps: [{ token: i1$2.MainApiHttpService }],
|
|
8811
9071
|
target: i0.ɵɵFactoryTarget.Injectable
|
|
8812
9072
|
});
|
|
8813
9073
|
}
|
|
@@ -8830,8 +9090,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8830
9090
|
type: Injectable,
|
|
8831
9091
|
args: [{ providedIn: "root" }]
|
|
8832
9092
|
}],
|
|
8833
|
-
ctorParameters: () => [{ type: i1$
|
|
9093
|
+
ctorParameters: () => [{ type: i1$2.MainApiHttpService }]
|
|
8834
9094
|
});
|
|
8835
|
-
export { AiKnowledgeComponent, AuthenticatorComponent, BRAIN_CHAT_UPLOAD_APIS, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CommandPaletteComponent, CommandPaletteService, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
9095
|
+
export { AiKnowledgeComponent, AuthenticatorComponent, BRAIN_CHAT_UPLOAD_APIS, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CommandPaletteComponent, CommandPaletteService, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, OnboardingChecklistComponent, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
8836
9096
|
|
|
8837
9097
|
//# sourceMappingURL=posiwise-shared-components.mjs.map
|