@posiwise/shared-components 0.0.198 → 0.0.200
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.
|
@@ -2,7 +2,7 @@ import * as i8 from '@angular/common';
|
|
|
2
2
|
import { DOCUMENT, CommonModule, NgIf } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Component, Injectable, HostListener, Directive, EventEmitter, Output, Input, ChangeDetectionStrategy, ViewChild, Pipe, Optional, ViewContainerRef, booleanAttribute, Inject, isDevMode, HostBinding, ContentChild, Host, SkipSelf, DOCUMENT as DOCUMENT$1, NgModule } from '@angular/core';
|
|
5
|
-
import * as i2$
|
|
5
|
+
import * as i2$2 from '@angular/forms';
|
|
6
6
|
import { NG_VALUE_ACCESSOR, UntypedFormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import * as i2 from '@angular/router';
|
|
8
8
|
import { NavigationEnd, RouterModule } from '@angular/router';
|
|
@@ -14,7 +14,7 @@ import { DirectivesModule } from '@posiwise/directives';
|
|
|
14
14
|
import { PipesModule } from '@posiwise/pipes';
|
|
15
15
|
import * as i4$1 from '@posiwise/utils';
|
|
16
16
|
import { ValidateForm, ProfileImageCropperModule, ResourceHeaderModule, FieldErrorDisplayModule } from '@posiwise/utils';
|
|
17
|
-
import * as i1$
|
|
17
|
+
import * as i1$2 from 'ngx-daterangepicker-material';
|
|
18
18
|
import { DaterangepickerDirective, NgxDaterangepickerMd } from 'ngx-daterangepicker-material';
|
|
19
19
|
import { ImageCropperModule } from 'ngx-image-cropper';
|
|
20
20
|
import * as i6 from 'ngx-ui-switch';
|
|
@@ -29,7 +29,7 @@ import * as i6$1 from 'primeng/select';
|
|
|
29
29
|
import { SelectModule } from 'primeng/select';
|
|
30
30
|
import * as i7 from 'primeng/table';
|
|
31
31
|
import { TableModule } from 'primeng/table';
|
|
32
|
-
import * as i2$
|
|
32
|
+
import * as i2$4 from 'primeng/tabs';
|
|
33
33
|
import { TabsModule } from 'primeng/tabs';
|
|
34
34
|
import * as i3$1 from 'primeng/tooltip';
|
|
35
35
|
import { TooltipModule } from 'primeng/tooltip';
|
|
@@ -38,18 +38,18 @@ import { NgbTooltipModule, NgbNavModule, NgbModalModule } from '@ng-bootstrap/ng
|
|
|
38
38
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
39
39
|
import * as i1 from '@posiwise/common-services';
|
|
40
40
|
import { PermissionService } from '@posiwise/common-services';
|
|
41
|
-
import * as
|
|
42
|
-
import { Subject, BehaviorSubject } from 'rxjs';
|
|
43
|
-
import { take, takeUntil, map, filter, distinctUntilChanged } from 'rxjs/operators';
|
|
41
|
+
import * as i2$1 from '@posiwise/app-config-service';
|
|
42
|
+
import { Subject, BehaviorSubject, of } from 'rxjs';
|
|
43
|
+
import { take, takeUntil, map, filter, debounceTime, distinctUntilChanged, switchMap, catchError } from 'rxjs/operators';
|
|
44
44
|
import * as i3 from '@ngrx/store';
|
|
45
|
-
import * as i1$1 from '@angular/platform-browser';
|
|
46
45
|
import { HelperService } from '@posiwise/helper-service';
|
|
47
|
-
import * as
|
|
46
|
+
import * as i5$1 from '@jsverse/transloco';
|
|
48
47
|
import { TAG_ENTITY, ADMIN_ROUTERS } from '@posiwise/common-utilities';
|
|
49
48
|
import * as i8$1 from 'primeng/api';
|
|
50
49
|
import { __decorate, __metadata } from 'tslib';
|
|
51
50
|
import { StatusCodes } from 'http-status-codes';
|
|
52
|
-
import * as
|
|
51
|
+
import * as i2$3 from '@angular/platform-browser';
|
|
52
|
+
import * as i1$1 from '@posiwise/admin-module-utils';
|
|
53
53
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
54
54
|
|
|
55
55
|
class AuthenticatorComponent extends AppBaseComponent {
|
|
@@ -1383,6 +1383,122 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
1383
1383
|
args: ['endBtn']
|
|
1384
1384
|
}] } });
|
|
1385
1385
|
|
|
1386
|
+
/**
|
|
1387
|
+
* Resolve the app-relative paths Brain answers carry into URLs a browser can follow.
|
|
1388
|
+
*
|
|
1389
|
+
* brain-api publishes documentation with relative `ui_paths` (`/settings/communication`),
|
|
1390
|
+
* and deliberately so: the corpus is shared across subscriptions and surfaces, so it
|
|
1391
|
+
* cannot bake in a host. The FRONTEND is what knows the host — main-api returns it in
|
|
1392
|
+
* the domain metadata every client already fetches, as `links.frontend_link`
|
|
1393
|
+
* (`Settings.endpoints.front_end_base_url`; see `domain_metadata_json_helpers#api_links`),
|
|
1394
|
+
* which is the same value `auth.service` and `linkedin-confirmation` build URLs from.
|
|
1395
|
+
*
|
|
1396
|
+
* Passing no `baseUrl` leaves paths relative, which is what the in-app widget needs
|
|
1397
|
+
* when it is already served from that origin.
|
|
1398
|
+
*/
|
|
1399
|
+
/** A path that addresses a page in this app: leading slash, then a letter. */
|
|
1400
|
+
const APP_PATH_RE = /^\/[a-zA-Z][a-zA-Z0-9\-_/]*$/;
|
|
1401
|
+
/**
|
|
1402
|
+
* First path segments that live UNDER the subscription slug in the router
|
|
1403
|
+
* (`:slug/faq/:id`, `:slug/crm`, … — dashboard-routing.module.ts). brain-api
|
|
1404
|
+
* publishes `/faq/x` because the corpus is shared across subscriptions and
|
|
1405
|
+
* cannot know the caller's slug; the frontend holds it, so it is spliced in
|
|
1406
|
+
* here. Without this the path is one segment short and matches NO route at all.
|
|
1407
|
+
*
|
|
1408
|
+
* `message` is deliberately ABSENT: both `/message` and `:slug/message` exist,
|
|
1409
|
+
* so prefixing would break the valid unscoped route.
|
|
1410
|
+
*
|
|
1411
|
+
* This mirrors the router by hand and can drift — the spec pins the list.
|
|
1412
|
+
*/
|
|
1413
|
+
const SUBSCRIPTION_SCOPED_SEGMENTS = new Set([
|
|
1414
|
+
'build',
|
|
1415
|
+
'hyperdashboard',
|
|
1416
|
+
'paas',
|
|
1417
|
+
'crm',
|
|
1418
|
+
'enterprise',
|
|
1419
|
+
'faq',
|
|
1420
|
+
'documentation'
|
|
1421
|
+
]);
|
|
1422
|
+
/** A bare app path wrapped in a single-backtick code span. */
|
|
1423
|
+
const CODE_SPANNED_PATH_RE = /`(\/[a-zA-Z][a-zA-Z0-9\-_/]*)`/g;
|
|
1424
|
+
/**
|
|
1425
|
+
* Drop any trailing slashes from `baseUrl` so joining never yields `host//path`.
|
|
1426
|
+
*
|
|
1427
|
+
* Deliberately NOT a regex: the obvious `/\/+$/` has no left anchor, so the
|
|
1428
|
+
* engine retries at every offset and backtracks over the run of slashes — O(n^2)
|
|
1429
|
+
* on a pathological host string. Walking back from the end is linear.
|
|
1430
|
+
*/
|
|
1431
|
+
function trimTrailingSlashes(value) {
|
|
1432
|
+
let end = value.length;
|
|
1433
|
+
while (end > 0 && value[end - 1] === '/') {
|
|
1434
|
+
end -= 1;
|
|
1435
|
+
}
|
|
1436
|
+
return value.slice(0, end);
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Join `baseUrl` to an app-relative path. Anything that is not an app path (an
|
|
1440
|
+
* absolute URL, a mailto:, a fragment) is returned untouched, and an empty
|
|
1441
|
+
* `baseUrl` leaves the path relative rather than producing a `//`-prefixed URL.
|
|
1442
|
+
*/
|
|
1443
|
+
function absolutiseAppPath(path, baseUrl = '') {
|
|
1444
|
+
if (!baseUrl || !APP_PATH_RE.test(path))
|
|
1445
|
+
return path;
|
|
1446
|
+
return `${trimTrailingSlashes(baseUrl)}${path}`;
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Splice the caller's subscription slug into a path the router scopes under it.
|
|
1450
|
+
* A no-op for unscoped paths (`/account/details`, `/settings/communication`)
|
|
1451
|
+
* and when no slug is known.
|
|
1452
|
+
*/
|
|
1453
|
+
function scopeAppPath(path, subscriptionSlug = '') {
|
|
1454
|
+
if (!subscriptionSlug || !APP_PATH_RE.test(path))
|
|
1455
|
+
return path;
|
|
1456
|
+
const first = path.split('/')[1];
|
|
1457
|
+
return SUBSCRIPTION_SCOPED_SEGMENTS.has(first) ? `/${subscriptionSlug}${path}` : path;
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Full resolution: correct against the index, scope under the subscription,
|
|
1461
|
+
* then make absolute. Correction runs FIRST — the index holds unscoped paths,
|
|
1462
|
+
* so matching after scoping would never hit.
|
|
1463
|
+
*/
|
|
1464
|
+
function resolveAppPath(path, baseUrl = '', subscriptionSlug = '', known = []) {
|
|
1465
|
+
const corrected = correctKnownPath(path, known);
|
|
1466
|
+
return absolutiseAppPath(scopeAppPath(corrected, subscriptionSlug), baseUrl);
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* Unwrap a path the model emitted as inline code — `` `/settings/communication` ``.
|
|
1470
|
+
*
|
|
1471
|
+
* The renderer supports no code spans, so those backticks were rendered literally
|
|
1472
|
+
* and, worse, the bare-path linkifier's preceding-character class (`[\s(,;:]`)
|
|
1473
|
+
* excludes a backtick, so the path was never linked at all: the user saw grey
|
|
1474
|
+
* code text where a link belonged. Stripping the backticks first lets the normal
|
|
1475
|
+
* linkifier see an ordinary bare path.
|
|
1476
|
+
*/
|
|
1477
|
+
function unwrapCodeSpannedPaths(raw) {
|
|
1478
|
+
return raw.replace(CODE_SPANNED_PATH_RE, '$1');
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Correct a path the model got *nearly* right, using the navigation index.
|
|
1482
|
+
*
|
|
1483
|
+
* The summariser writes prose and sometimes authors a plausible-but-wrong URL:
|
|
1484
|
+
* `/subscriptions` for a page that actually lives at `/account/subscriptions`
|
|
1485
|
+
* (PROD, 2026-09-24 — a 404 presented to the user as a working link).
|
|
1486
|
+
*
|
|
1487
|
+
* The correction is deliberately narrow. It fires only when EXACTLY ONE known
|
|
1488
|
+
* path ends with the candidate, so `/subscriptions` -> `/account/subscriptions`
|
|
1489
|
+
* resolves while anything ambiguous is left untouched. An unmatched path is
|
|
1490
|
+
* also left untouched rather than suppressed: the index holds MENU entries, so
|
|
1491
|
+
* a legitimate deep link (`/faq/can-i-stop-...`) is absent from it, and
|
|
1492
|
+
* treating absence as invalid would strip links that work.
|
|
1493
|
+
*/
|
|
1494
|
+
function correctKnownPath(path, known = []) {
|
|
1495
|
+
if (!known.length || !APP_PATH_RE.test(path) || known.includes(path)) {
|
|
1496
|
+
return path;
|
|
1497
|
+
}
|
|
1498
|
+
const matches = known.filter(candidate => candidate.endsWith(path));
|
|
1499
|
+
return matches.length === 1 ? matches[0] : path;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1386
1502
|
/**
|
|
1387
1503
|
* Minimal markdown-to-HTML renderer for Brain chat assistant bubbles.
|
|
1388
1504
|
* Handles inline links, bold, italic, newlines, and bare app-relative path
|
|
@@ -1445,22 +1561,29 @@ function sanitizeMarkdownHref(url) {
|
|
|
1445
1561
|
* start of the string, and that begin with /letter to avoid matching lone
|
|
1446
1562
|
* slashes, protocol-relative URLs (//), or numeric fractions (1/2).
|
|
1447
1563
|
*/
|
|
1448
|
-
function substituteBarePaths(segment) {
|
|
1449
|
-
return segment.replace(/(^|[\s(,;:])\/([a-zA-Z][a-zA-Z0-9\-_/]*)/g, (_, pre, rest) =>
|
|
1564
|
+
function substituteBarePaths(segment, baseUrl, subSlug, known) {
|
|
1565
|
+
return segment.replace(/(^|[\s(,;:])\/([a-zA-Z][a-zA-Z0-9\-_/]*)/g, (_, pre, rest) => {
|
|
1566
|
+
// Hoisted out of the template literal: nesting one inside another is
|
|
1567
|
+
// unreadable, and the path is needed twice anyway (label + href).
|
|
1568
|
+
const path = `/${rest}`;
|
|
1569
|
+
return `${pre}[${path}](${resolveAppPath(path, baseUrl, subSlug, known)})`;
|
|
1570
|
+
});
|
|
1450
1571
|
}
|
|
1451
1572
|
/**
|
|
1452
1573
|
* Auto-link bare app-relative paths in raw markdown text while leaving paths
|
|
1453
1574
|
* that are already inside a markdown link's URL segment ([text](url)) untouched.
|
|
1454
1575
|
*/
|
|
1455
|
-
function linkifyBareAppPaths(raw) {
|
|
1576
|
+
function linkifyBareAppPaths(raw, baseUrl = '', subSlug = '', known = []) {
|
|
1577
|
+
const src = unwrapCodeSpannedPaths(raw);
|
|
1456
1578
|
let result = '';
|
|
1457
1579
|
let lastIndex = 0;
|
|
1458
|
-
for (const match of
|
|
1459
|
-
result += substituteBarePaths(
|
|
1460
|
-
|
|
1580
|
+
for (const match of src.matchAll(LINK_PATTERN)) {
|
|
1581
|
+
result += substituteBarePaths(src.slice(lastIndex, match.index), baseUrl, subSlug, known);
|
|
1582
|
+
// An href the model already wrote as a markdown link still needs the host.
|
|
1583
|
+
result += `[${match[1]}](${resolveAppPath(match[2], baseUrl, subSlug, known)})`;
|
|
1461
1584
|
lastIndex = (match.index ?? 0) + match[0].length;
|
|
1462
1585
|
}
|
|
1463
|
-
result += substituteBarePaths(
|
|
1586
|
+
result += substituteBarePaths(src.slice(lastIndex), baseUrl, subSlug, known);
|
|
1464
1587
|
return result;
|
|
1465
1588
|
}
|
|
1466
1589
|
/**
|
|
@@ -1475,8 +1598,8 @@ function linkifyBareAppPaths(raw) {
|
|
|
1475
1598
|
* \n → <br>
|
|
1476
1599
|
* /path → <a href="/path">/path</a> (bare app-relative paths)
|
|
1477
1600
|
*/
|
|
1478
|
-
function renderMarkdown(raw) {
|
|
1479
|
-
return renderMarkdownCore(linkifyBareAppPaths(raw));
|
|
1601
|
+
function renderMarkdown(raw, baseUrl = '', subSlug = '', known = []) {
|
|
1602
|
+
return renderMarkdownCore(linkifyBareAppPaths(raw, baseUrl, subSlug, known));
|
|
1480
1603
|
}
|
|
1481
1604
|
function tryLink(raw, i) {
|
|
1482
1605
|
if (raw[i] !== '[')
|
|
@@ -1552,28 +1675,70 @@ function renderMarkdownCore(raw) {
|
|
|
1552
1675
|
|
|
1553
1676
|
/**
|
|
1554
1677
|
* Converts a Brain assistant message string (containing a safe subset of
|
|
1555
|
-
* Markdown) into
|
|
1678
|
+
* Markdown) into an HTML string suitable for `[innerHTML]` binding.
|
|
1556
1679
|
*
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
1680
|
+
* Deliberately returns a plain `string`, NOT a `SafeHtml`: Angular sanitizes any
|
|
1681
|
+
* string bound to `[innerHTML]`, so the output passes through DomSanitizer on
|
|
1682
|
+
* the way to the DOM. `renderMarkdown` already HTML-escapes every user-sourced
|
|
1683
|
+
* fragment and allow-lists hrefs, which makes this defence in depth rather than
|
|
1684
|
+
* a substitute — two independent passes, neither trusting the other.
|
|
1685
|
+
*
|
|
1686
|
+
* Nothing is lost by it. The renderer only emits `<a href target rel>`,
|
|
1687
|
+
* `<strong>`, `<em>` and `<br>`; Angular's own allow-lists carry `href`
|
|
1688
|
+
* (URI_ATTRS) and `rel`/`target` (HTML_ATTRS), so sanitized output is
|
|
1689
|
+
* byte-identical to the rendered input. An earlier revision reached for
|
|
1690
|
+
* `bypassSecurityTrustHtml` here, which bought nothing and disabled the
|
|
1691
|
+
* platform's last line of defence if the renderer ever regressed.
|
|
1560
1692
|
*
|
|
1561
1693
|
* Applied only to assistant bubbles; user bubbles keep plain-text rendering.
|
|
1694
|
+
*
|
|
1695
|
+
* The app-relative paths Brain answers carry (`/settings/communication`) are
|
|
1696
|
+
* resolved against `links.frontend_link` from the domain metadata — the same
|
|
1697
|
+
* host `auth.service` and `linkedin-confirmation` build their URLs from.
|
|
1698
|
+
* `links` lives on the CONFIG object, not on the service, and the service's
|
|
1699
|
+
* only public accessor is `appConfig$`, so the latest value is cached here;
|
|
1700
|
+
* config resolves at app boot, long before a chat bubble renders.
|
|
1562
1701
|
*/
|
|
1563
1702
|
class SafeMarkdownPipe {
|
|
1564
|
-
constructor(
|
|
1565
|
-
this.
|
|
1703
|
+
constructor(navigationIndex, appConfigService) {
|
|
1704
|
+
this.navigationIndex = navigationIndex;
|
|
1705
|
+
this.baseUrl = '';
|
|
1706
|
+
this.configSub = appConfigService.appConfig$.subscribe(config => {
|
|
1707
|
+
this.baseUrl = config?.links?.frontend_link ?? '';
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
ngOnDestroy() {
|
|
1711
|
+
this.configSub.unsubscribe();
|
|
1566
1712
|
}
|
|
1567
1713
|
transform(text) {
|
|
1568
|
-
return
|
|
1714
|
+
return renderMarkdown(text ?? '', this.baseUrl, this.subscriptionSlug(), this.knownPaths());
|
|
1715
|
+
}
|
|
1716
|
+
/**
|
|
1717
|
+
* Every page the palette can reach, used to correct a path the model got
|
|
1718
|
+
* nearly right. An unknown path is left alone, never suppressed.
|
|
1719
|
+
*/
|
|
1720
|
+
knownPaths() {
|
|
1721
|
+
try {
|
|
1722
|
+
return this.navigationIndex.entries().map(entry => entry.path);
|
|
1723
|
+
}
|
|
1724
|
+
catch {
|
|
1725
|
+
return [];
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* Slug the router scopes dashboard pages under (`:slug/faq/:id`). Read per
|
|
1730
|
+
* call rather than cached: the user can switch subscription mid-session.
|
|
1731
|
+
*/
|
|
1732
|
+
subscriptionSlug() {
|
|
1733
|
+
return PermissionService.selectedSubscription?.slug ?? '';
|
|
1569
1734
|
}
|
|
1570
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, deps: [{ token: i1$1.
|
|
1735
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, deps: [{ token: i1.NavigationIndexService }, { token: i2$1.AppConfigService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1571
1736
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, isStandalone: true, name: "safeMarkdown" }); }
|
|
1572
1737
|
}
|
|
1573
1738
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SafeMarkdownPipe, decorators: [{
|
|
1574
1739
|
type: Pipe,
|
|
1575
1740
|
args: [{ name: 'safeMarkdown' }]
|
|
1576
|
-
}], ctorParameters: () => [{ type: i1$1.
|
|
1741
|
+
}], ctorParameters: () => [{ type: i1.NavigationIndexService }, { type: i2$1.AppConfigService }] });
|
|
1577
1742
|
|
|
1578
1743
|
// Brain chat panel — posts to brain-api's MCP orchestrator; thread +
|
|
1579
1744
|
// conversation_id persist per-user in localStorage (#4167).
|
|
@@ -1846,13 +2011,13 @@ class PwBrainChatComponent {
|
|
|
1846
2011
|
stick(force) {
|
|
1847
2012
|
stickThreadToBottom(() => this.threadRef?.nativeElement, force);
|
|
1848
2013
|
}
|
|
1849
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwBrainChatComponent, deps: [{ token: i1.MCPOrchestratorService }, { token: i1.LocalStorage }, { token: i2.Router }, { token: i0.ChangeDetectorRef }, { token: i3.Store }, { token: DynamicPageContextService }, { token:
|
|
1850
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PwBrainChatComponent, isStandalone: false, selector: "pw-brain-chat", viewQueries: [{ propertyName: "threadRef", first: true, predicate: ["thread"], descendants: true }], ngImport: i0, template: "<div class=\"pw-brain-chat\">\n <!-- The sidebar host header owns title + close + live status + New chat\n (SidebarContent.status / headerActions) \u2014 so the panel body starts at\n the thread, no duplicate status strip. newChat() is invoked from the\n host header action. -->\n <div #thread pwBrainChatThread class=\"pw-brain-chat__thread\" role=\"log\" aria-live=\"polite\">\n @if (messages.length <= 1 && !loading && !streamingProse) {\n <pw-brain-chat-welcome\n [userFirstName]=\"userFirstName\"\n [prompts]=\"suggestedPrompts\"\n (pick)=\"usePrompt($event)\"\n ></pw-brain-chat-welcome>\n } @else {\n @for (m of messages; track trackByIndex($index, m)) {\n @if (m.role === 'user') {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--user\">\n <div class=\"pw-brain-chat__user-bubble\"><pre class=\"pw-brain-chat__user-text\">{{ m.text }}</pre></div>\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">{{ m.at | date: 'shortTime' }}</span>\n }\n </div>\n } @else {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">\n {{ brandName }} Brain\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">\u00B7 {{ m.at | date: 'shortTime' }}</span>\n }\n </span>\n <div class=\"pw-brain-chat__bubble\">\n @if (m.markdownEnabled) {\n <div class=\"pw-brain-chat__text\" [innerHTML]=\"m.text | safeMarkdown\"></div>\n } @else {\n <pre class=\"pw-brain-chat__text\">{{ m.text }}</pre>\n }\n </div>\n @if (m.sourcePage) {\n <div class=\"pw-brain-chat__source\" role=\"note\">\n <i class=\"fas fa-file-lines pw-brain-chat__source-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__source-text\">Documented on: {{ m.sourcePage }}</span>\n </div>\n }\n @if (m.pending) {\n <pw-brain-chat-confirm\n [pending]=\"m.pending\"\n [loading]=\"loading\"\n (approveEvent)=\"approve(m)\"\n (cancelEvent)=\"cancel(m)\"\n ></pw-brain-chat-confirm>\n }\n </div>\n </div>\n }\n }\n }\n\n @if (loading && streamingProse) {\n <!-- prose streams token-by-token into a partial bot turn; caret = writing (#51) -->\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">{{ brandName }} Brain</span>\n <div class=\"pw-brain-chat__bubble\">\n <pre class=\"pw-brain-chat__text\"\n >{{ streamingProse }}<span class=\"pw-brain-chat__caret\" aria-hidden=\"true\"></span></pre>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (loading && !streamingProse) {\n <div class=\"pw-brain-chat__loading\">\n <i class=\"fas fa-circle-notch fa-spin pw-brain-chat__loading-spinner\" aria-hidden=\"true\"></i>\n <span aria-live=\"polite\">{{ streamingStage || 'Working\u2026' }}</span>\n <button type=\"button\" class=\"pw-brain-chat__iconbtn pw-brain-chat__stop\" (click)=\"cancelRequest()\"\n [ngbTooltip]=\"'Stop request'\" container=\"body\" aria-label=\"Stop request\">\n <i class=\"fas fa-stop\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- Voice session / dictation \u2192 animated Sonar overlay (#51) -->\n @if (voiceChat.isActive || voiceChat.error || dictation.phase === 'listening' || dictation.phase === 'processing' || dictation.error) {\n <pw-brain-chat-voice-overlay\n [voice]=\"voiceChat\"\n [dictation]=\"dictation\"\n (end)=\"voiceChat.isActive || voiceChat.error ? voiceChat.stop() : dictation.dismiss()\"\n ></pw-brain-chat-voice-overlay>\n }\n\n <div class=\"pw-brain-chat__compose\">\n @if (messages.length > 1) {\n <div class=\"pw-brain-chat__quick\">\n @for (q of quickActions; track q.text) {\n <button type=\"button\" class=\"pw-brain-chat__chip\" (click)=\"usePrompt(q.text)\">\n <i class=\"fas\" [ngClass]=\"q.icon\" aria-hidden=\"true\"></i>{{ q.label }}\n </button>\n }\n </div>\n }\n <label class=\"visually-hidden\" for=\"pw-brain-chat-input\">Message {{ brandName }} Brain</label>\n <div class=\"pw-brain-chat__field\">\n <textarea\n id=\"pw-brain-chat-input\"\n class=\"pw-brain-chat__input\"\n rows=\"1\"\n [(ngModel)]=\"draft\"\n placeholder=\"Ask a question or tell me what to do\u2026\"\n (keydown.enter)=\"$event.preventDefault(); send()\"\n\n aria-label=\"Ask a question or tell me what to do\u2026\" ></textarea>\n <div class=\"pw-brain-chat__tools\">\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn pw-brain-chat__mic\"\n [class.pw-brain-chat__mic--recording]=\"dictation.isRecording\"\n [disabled]=\"loading || dictation.phase === 'processing'\"\n (click)=\"dictation.toggle(loading)\"\n [ngbTooltip]=\"dictation.phase === 'listening' ? 'Stop dictation' : (dictation.phase === 'processing' ? 'Processing\u2026' : 'Dictate')\"\n container=\"body\"\n [attr.aria-label]=\"dictation.phase === 'listening' ? 'Stop dictation' : 'Dictate with your voice'\"\n [attr.aria-pressed]=\"dictation.isRecording\"\n ><i class=\"fas fa-microphone\" aria-hidden=\"true\"></i></button>\n @if (voiceChat.available) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || dictation.isRecording\"\n (click)=\"voiceChat.toggle(loading)\"\n [ngbTooltip]=\"voiceChat.isActive ? 'End voice chat' : 'Voice chat'\"\n container=\"body\"\n [attr.aria-label]=\"voiceChat.isActive ? 'End voice chat' : 'Start voice chat'\"\n [attr.aria-pressed]=\"voiceChat.isActive\"\n >\n @switch (voiceChat.visual) {\n @case ('loader') { <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i> }\n @case ('wave') { <i class=\"fas fa-volume-high\" aria-hidden=\"true\"></i> }\n <!-- fa-waveform-lines (FA Pro, shipped in assets/fontawesome) \u2014 the\n canonical \"voice mode\" glyph; fa-comment-dots read as a second\n text-chat button. -->\n @default { <i class=\"fas fa-waveform-lines\" aria-hidden=\"true\"></i> }\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__send\"\n [class.pw-brain-chat__send--stop]=\"loading\"\n [disabled]=\"!loading && !draft.trim()\"\n (click)=\"loading ? cancelRequest() : send()\"\n [ngbTooltip]=\"loading ? 'Stop request' : 'Send message'\"\n container=\"body\"\n [attr.aria-label]=\"loading ? 'Stop request' : 'Send message'\"\n >\n <i class=\"fas\" [ngClass]=\"loading ? 'fa-stop' : 'fa-paper-plane'\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n <div class=\"pw-brain-chat__disclaimer\" role=\"note\">\n <i class=\"fas fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n AI may be inaccurate \u2014 verify before acting.\n </div>\n </div>\n</div>\n", styles: [".pw-brain-chat{--bc-panel: var(--dashboard_bg, #fff);--bc-shade: #20385e;--bc-surface: color-mix(in srgb, var(--bc-panel) 96.6%, var(--bc-shade));--bc-surface-2: color-mix(in srgb, var(--bc-panel) 92.3%, var(--bc-shade));--bc-line: color-mix(in srgb, var(--bc-panel) 86.8%, var(--bc-shade));--bc-line-strong: color-mix(in srgb, var(--bc-panel) 78.3%, var(--bc-shade));--bc-bubble: color-mix(in srgb, var(--bc-panel) 94.1%, var(--bc-shade));--bc-ink: var(--text, #1a1d21);--bc-title: var(--titles, var(--text, #1a1d21));--bc-ink-2: color-mix(in srgb, var(--bc-ink) 72%, var(--bc-panel));--bc-ink-3: color-mix(in srgb, var(--bc-ink) 55%, var(--bc-panel));--bc-accent: var(--first, #1769e1);--bc-accent-wash: color-mix(in srgb, var(--first, #1769e1) 10%, transparent);--bc-accent-line: color-mix(in srgb, var(--first, #1769e1) 32%, var(--bc-line));--bc-success: #1f9d57;--bc-warning: #b7791f;--bc-error: #c0392b;--bc-r-sm: 4px;--bc-r-md: 8px;--bc-r-lg: 12px;--bc-ease: cubic-bezier(.2, .6, .25, 1);display:flex;flex-direction:column;height:100%;min-height:0;font-size:15px;color:var(--bc-ink);position:relative}:host-context([data-theme=dark]) .pw-brain-chat{--bc-panel: #15181d;--bc-surface: #1c2026;--bc-surface-2: #21262e;--bc-line: #2a2f38;--bc-line-strong: #384150;--bc-bubble: #1c2026;--bc-ink: #edeff2;--bc-title: #edeff2;--bc-ink-2: #aab3c0;--bc-ink-3: #7c8696}.pw-brain-chat__thread{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 2px 8px;display:flex;flex-direction:column;gap:18px}.pw-brain-chat__thread>:first-child{margin-top:auto}.pw-brain-chat__turn--bot{display:grid;grid-template-columns:26px 1fr;column-gap:10px}.pw-brain-chat__spine{display:flex;flex-direction:column;align-items:center}.pw-brain-chat__node{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__node i{font-size:12px}.pw-brain-chat__line{flex:1 1 auto;width:2px;margin-top:6px;background:var(--bc-line);border-radius:9999px}.pw-brain-chat__artifacts{min-width:0;display:flex;flex-direction:column;gap:9px;padding-top:1px}.pw-brain-chat__who{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600}.pw-brain-chat__bubble{background:var(--bc-bubble);border:1px solid var(--bc-line);border-radius:var(--bc-r-md);padding:10px 13px}.pw-brain-chat__source{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:3px 9px;border:1px solid var(--bc-line);border-radius:var(--bc-r-sm);color:var(--bc-ink-3);font-size:11px;line-height:1.4}.pw-brain-chat__source-icon{flex-shrink:0;font-size:11px}.pw-brain-chat__source-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__turn--user{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.pw-brain-chat__time{font-size:10.5px;font-weight:400;letter-spacing:.02em;color:var(--bc-ink-3);white-space:nowrap}.pw-brain-chat__user-bubble{max-width:82%;background:var(--bc-accent);color:#fff;border-radius:var(--bc-r-md);border-top-right-radius:var(--bc-r-sm);padding:10px 13px;font-size:15px;line-height:1.5}\n", ".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", ".pw-brain-chat__text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.55;color:var(--bc-ink)}.pw-brain-chat__text p{margin:0}.pw-brain-chat__text p+p,.pw-brain-chat__text ul,.pw-brain-chat__text ol{margin-top:7px}.pw-brain-chat__text ul,.pw-brain-chat__text ol{padding-left:18px}.pw-brain-chat__text a{color:var(--bc-ink);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--bc-line-strong)}.pw-brain-chat__text a:hover,.pw-brain-chat__text a:focus-visible{color:var(--bc-accent);text-decoration-color:var(--bc-accent)}.pw-brain-chat__text table{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px;border:1px solid var(--bc-line);border-radius:var(--bc-r-md);overflow:hidden}.pw-brain-chat__text th,.pw-brain-chat__text td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--bc-line)}.pw-brain-chat__text th{background:var(--bc-surface);font-weight:600;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--bc-ink-2)}.pw-brain-chat__text tr:last-child td{border-bottom:0}.pw-brain-chat__user-text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.5}.pw-brain-chat__caret{display:inline-block;width:2px;height:1.05em;vertical-align:-2px;margin-left:2px;background:var(--bc-accent);border-radius:1px;animation:pw-brain-chat-caret 1s steps(2,start) infinite}@keyframes pw-brain-chat-caret{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__caret{animation:none}}\n", ".pw-brain-chat__loading{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 2px 0;font-size:12px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__loading-spinner{color:var(--bc-accent, #1769e1)}.pw-brain-chat__iconbtn{width:32px;height:32px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:var(--bc-r-md, 8px);background:transparent;color:var(--bc-ink-3, #7c8696);cursor:pointer;transition:background .15s ease,color .15s ease}.pw-brain-chat__iconbtn:hover:not(:disabled){background:var(--bc-surface, #f7f8fa);color:var(--bc-ink, #1a1d21)}.pw-brain-chat__iconbtn:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__iconbtn:disabled{opacity:.5;cursor:default}.pw-brain-chat__mic--recording{color:var(--bc-error, #c0392b)}.pw-brain-chat__stop:hover:not(:disabled){color:var(--bc-error, #c0392b)}.pw-brain-chat__compose{flex-shrink:0;border-top:1px solid var(--bc-line, #e2e5ea);padding:10px 2px 4px}.pw-brain-chat__field{display:flex;align-items:flex-end;gap:8px;border:1px solid var(--bc-line, #e2e5ea);border-radius:var(--bc-r-md, 8px);background:var(--bc-panel, #fff);padding:6px 6px 6px 12px;transition:border-color .15s ease,box-shadow .15s ease}.pw-brain-chat__field:focus-within{border-color:var(--bc-accent, #1769e1);box-shadow:0 0 0 3px var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__input{flex:1;border:0;resize:none;background:transparent;font-family:inherit;font-size:14px;line-height:1.5;color:var(--bc-ink, #1a1d21);padding:6px 0;max-height:96px}.pw-brain-chat__input:focus{outline:none;box-shadow:none}.pw-brain-chat__input::placeholder{color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__tools{display:flex;align-items:center;gap:2px;flex:none}.pw-brain-chat__send{width:34px;height:34px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--bc-r-md, 8px);background:var(--bc-accent, #1769e1);color:#fff;cursor:pointer;transition:filter .15s ease}.pw-brain-chat__send:hover:not(:disabled){filter:brightness(1.07)}.pw-brain-chat__send:disabled{background:var(--bc-line-strong, #cfd4dc);cursor:default}.pw-brain-chat__send:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__send--stop{background:var(--bc-error, #c0392b)!important}.pw-brain-chat__disclaimer{display:flex;align-items:center;gap:6px;margin:8px 2px 2px;font-size:11px;color:var(--bc-ink-3, #7c8696)}\n", ".pw-brain-chat__mic{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bs-border-color, #ced4da);background:transparent;color:var(--bs-secondary-color, #6c757d);transition:color .15s ease,border-color .15s ease}.pw-brain-chat__mic:hover:not(:disabled){color:var(--first, #0d6efd);border-color:var(--first, #0d6efd)}.pw-brain-chat__mic--recording{color:#dc3545;border-color:#dc3545;animation:pw-brain-chat-mic-pulse 1.2s ease-in-out infinite}@keyframes pw-brain-chat-mic-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__mic--recording{animation:none}}\n"], dependencies: [{ kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i5.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: PwBrainChatThreadDirective, selector: "[pwBrainChatThread]" }, { kind: "component", type: PwBrainChatConfirmComponent, selector: "pw-brain-chat-confirm", inputs: ["pending", "loading"], outputs: ["approveEvent", "cancelEvent"] }, { kind: "component", type: PwBrainChatWelcomeComponent, selector: "pw-brain-chat-welcome", inputs: ["userFirstName", "prompts"], outputs: ["pick"] }, { kind: "component", type: PwBrainChatVoiceOverlayComponent, selector: "pw-brain-chat-voice-overlay", inputs: ["voice", "dictation"], outputs: ["end"] }, { kind: "pipe", type: i8.DatePipe, name: "date" }, { kind: "pipe", type: SafeMarkdownPipe, name: "safeMarkdown" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2014
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwBrainChatComponent, deps: [{ token: i1.MCPOrchestratorService }, { token: i1.LocalStorage }, { token: i2.Router }, { token: i0.ChangeDetectorRef }, { token: i3.Store }, { token: DynamicPageContextService }, { token: i2$1.AppConfigService, optional: true }, { token: i1.BrainSocketService, optional: true }, { token: i1.BrainVoiceService, optional: true }, { token: i1.VoiceChatService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2015
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PwBrainChatComponent, isStandalone: false, selector: "pw-brain-chat", viewQueries: [{ propertyName: "threadRef", first: true, predicate: ["thread"], descendants: true }], ngImport: i0, template: "<div class=\"pw-brain-chat\">\n <!-- The sidebar host header owns title + close + live status + New chat\n (SidebarContent.status / headerActions) \u2014 so the panel body starts at\n the thread, no duplicate status strip. newChat() is invoked from the\n host header action. -->\n <div #thread pwBrainChatThread class=\"pw-brain-chat__thread\" role=\"log\" aria-live=\"polite\">\n @if (messages.length <= 1 && !loading && !streamingProse) {\n <pw-brain-chat-welcome\n [userFirstName]=\"userFirstName\"\n [prompts]=\"suggestedPrompts\"\n (pick)=\"usePrompt($event)\"\n ></pw-brain-chat-welcome>\n } @else {\n @for (m of messages; track trackByIndex($index, m)) {\n @if (m.role === 'user') {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--user\">\n <div class=\"pw-brain-chat__user-bubble\"><pre class=\"pw-brain-chat__user-text\">{{ m.text }}</pre></div>\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">{{ m.at | date: 'shortTime' }}</span>\n }\n </div>\n } @else {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">\n {{ brandName }} Brain\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">\u00B7 {{ m.at | date: 'shortTime' }}</span>\n }\n </span>\n <div class=\"pw-brain-chat__bubble\">\n @if (m.markdownEnabled) {\n <div class=\"pw-brain-chat__text\" [innerHTML]=\"m.text | safeMarkdown\"></div>\n } @else {\n <pre class=\"pw-brain-chat__text\">{{ m.text }}</pre>\n }\n </div>\n @if (m.sourcePage) {\n <div class=\"pw-brain-chat__source\" role=\"note\">\n <i class=\"fas fa-file-lines pw-brain-chat__source-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__source-text\">Documented on: {{ m.sourcePage }}</span>\n </div>\n }\n @if (m.pending) {\n <pw-brain-chat-confirm\n [pending]=\"m.pending\"\n [loading]=\"loading\"\n (approveEvent)=\"approve(m)\"\n (cancelEvent)=\"cancel(m)\"\n ></pw-brain-chat-confirm>\n }\n </div>\n </div>\n }\n }\n }\n\n @if (loading && streamingProse) {\n <!-- prose streams token-by-token into a partial bot turn; caret = writing (#51) -->\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">{{ brandName }} Brain</span>\n <div class=\"pw-brain-chat__bubble\">\n <pre class=\"pw-brain-chat__text\"\n >{{ streamingProse }}<span class=\"pw-brain-chat__caret\" aria-hidden=\"true\"></span></pre>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (loading && !streamingProse) {\n <div class=\"pw-brain-chat__loading\">\n <i class=\"fas fa-circle-notch fa-spin pw-brain-chat__loading-spinner\" aria-hidden=\"true\"></i>\n <span aria-live=\"polite\">{{ streamingStage || 'Working\u2026' }}</span>\n <button type=\"button\" class=\"pw-brain-chat__iconbtn pw-brain-chat__stop\" (click)=\"cancelRequest()\"\n [ngbTooltip]=\"'Stop request'\" container=\"body\" aria-label=\"Stop request\">\n <i class=\"fas fa-stop\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- Voice session / dictation \u2192 animated Sonar overlay (#51) -->\n @if (voiceChat.isActive || voiceChat.error || dictation.phase === 'listening' || dictation.phase === 'processing' || dictation.error) {\n <pw-brain-chat-voice-overlay\n [voice]=\"voiceChat\"\n [dictation]=\"dictation\"\n (end)=\"voiceChat.isActive || voiceChat.error ? voiceChat.stop() : dictation.dismiss()\"\n ></pw-brain-chat-voice-overlay>\n }\n\n <div class=\"pw-brain-chat__compose\">\n @if (messages.length > 1) {\n <div class=\"pw-brain-chat__quick\">\n @for (q of quickActions; track q.text) {\n <button type=\"button\" class=\"pw-brain-chat__chip\" (click)=\"usePrompt(q.text)\">\n <i class=\"fas\" [ngClass]=\"q.icon\" aria-hidden=\"true\"></i>{{ q.label }}\n </button>\n }\n </div>\n }\n <label class=\"visually-hidden\" for=\"pw-brain-chat-input\">Message {{ brandName }} Brain</label>\n <div class=\"pw-brain-chat__field\">\n <textarea\n id=\"pw-brain-chat-input\"\n class=\"pw-brain-chat__input\"\n rows=\"1\"\n [(ngModel)]=\"draft\"\n placeholder=\"Ask a question or tell me what to do\u2026\"\n (keydown.enter)=\"$event.preventDefault(); send()\"\n\n aria-label=\"Ask a question or tell me what to do\u2026\" ></textarea>\n <div class=\"pw-brain-chat__tools\">\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn pw-brain-chat__mic\"\n [class.pw-brain-chat__mic--recording]=\"dictation.isRecording\"\n [disabled]=\"loading || dictation.phase === 'processing'\"\n (click)=\"dictation.toggle(loading)\"\n [ngbTooltip]=\"dictation.phase === 'listening' ? 'Stop dictation' : (dictation.phase === 'processing' ? 'Processing\u2026' : 'Dictate')\"\n container=\"body\"\n [attr.aria-label]=\"dictation.phase === 'listening' ? 'Stop dictation' : 'Dictate with your voice'\"\n [attr.aria-pressed]=\"dictation.isRecording\"\n ><i class=\"fas fa-microphone\" aria-hidden=\"true\"></i></button>\n @if (voiceChat.available) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || dictation.isRecording\"\n (click)=\"voiceChat.toggle(loading)\"\n [ngbTooltip]=\"voiceChat.isActive ? 'End voice chat' : 'Voice chat'\"\n container=\"body\"\n [attr.aria-label]=\"voiceChat.isActive ? 'End voice chat' : 'Start voice chat'\"\n [attr.aria-pressed]=\"voiceChat.isActive\"\n >\n @switch (voiceChat.visual) {\n @case ('loader') { <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i> }\n @case ('wave') { <i class=\"fas fa-volume-high\" aria-hidden=\"true\"></i> }\n <!-- fa-waveform-lines (FA Pro, shipped in assets/fontawesome) \u2014 the\n canonical \"voice mode\" glyph; fa-comment-dots read as a second\n text-chat button. -->\n @default { <i class=\"fas fa-waveform-lines\" aria-hidden=\"true\"></i> }\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__send\"\n [class.pw-brain-chat__send--stop]=\"loading\"\n [disabled]=\"!loading && !draft.trim()\"\n (click)=\"loading ? cancelRequest() : send()\"\n [ngbTooltip]=\"loading ? 'Stop request' : 'Send message'\"\n container=\"body\"\n [attr.aria-label]=\"loading ? 'Stop request' : 'Send message'\"\n >\n <i class=\"fas\" [ngClass]=\"loading ? 'fa-stop' : 'fa-paper-plane'\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n <div class=\"pw-brain-chat__disclaimer\" role=\"note\">\n <i class=\"fas fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n AI may be inaccurate \u2014 verify before acting.\n </div>\n </div>\n</div>\n", styles: [".pw-brain-chat{--bc-panel: var(--dashboard_bg, #fff);--bc-shade: #20385e;--bc-surface: color-mix(in srgb, var(--bc-panel) 96.6%, var(--bc-shade));--bc-surface-2: color-mix(in srgb, var(--bc-panel) 92.3%, var(--bc-shade));--bc-line: color-mix(in srgb, var(--bc-panel) 86.8%, var(--bc-shade));--bc-line-strong: color-mix(in srgb, var(--bc-panel) 78.3%, var(--bc-shade));--bc-bubble: color-mix(in srgb, var(--bc-panel) 94.1%, var(--bc-shade));--bc-ink: var(--text, #1a1d21);--bc-title: var(--titles, var(--text, #1a1d21));--bc-ink-2: color-mix(in srgb, var(--bc-ink) 72%, var(--bc-panel));--bc-ink-3: color-mix(in srgb, var(--bc-ink) 55%, var(--bc-panel));--bc-accent: var(--first, #1769e1);--bc-accent-wash: color-mix(in srgb, var(--first, #1769e1) 10%, transparent);--bc-accent-line: color-mix(in srgb, var(--first, #1769e1) 32%, var(--bc-line));--bc-success: #1f9d57;--bc-warning: #b7791f;--bc-error: #c0392b;--bc-r-sm: 4px;--bc-r-md: 8px;--bc-r-lg: 12px;--bc-ease: cubic-bezier(.2, .6, .25, 1);display:flex;flex-direction:column;height:100%;min-height:0;font-size:15px;color:var(--bc-ink);position:relative}:host-context([data-theme=dark]) .pw-brain-chat{--bc-panel: #15181d;--bc-surface: #1c2026;--bc-surface-2: #21262e;--bc-line: #2a2f38;--bc-line-strong: #384150;--bc-bubble: #1c2026;--bc-ink: #edeff2;--bc-title: #edeff2;--bc-ink-2: #aab3c0;--bc-ink-3: #7c8696}.pw-brain-chat__thread{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 2px 8px;display:flex;flex-direction:column;gap:18px}.pw-brain-chat__thread>:first-child{margin-top:auto}.pw-brain-chat__turn--bot{display:grid;grid-template-columns:26px 1fr;column-gap:10px}.pw-brain-chat__spine{display:flex;flex-direction:column;align-items:center}.pw-brain-chat__node{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__node i{font-size:12px}.pw-brain-chat__line{flex:1 1 auto;width:2px;margin-top:6px;background:var(--bc-line);border-radius:9999px}.pw-brain-chat__artifacts{min-width:0;display:flex;flex-direction:column;gap:9px;padding-top:1px}.pw-brain-chat__who{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600}.pw-brain-chat__bubble{background:var(--bc-bubble);border:1px solid var(--bc-line);border-radius:var(--bc-r-md);padding:10px 13px}.pw-brain-chat__source{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:3px 9px;border:1px solid var(--bc-line);border-radius:var(--bc-r-sm);color:var(--bc-ink-3);font-size:11px;line-height:1.4}.pw-brain-chat__source-icon{flex-shrink:0;font-size:11px}.pw-brain-chat__source-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__turn--user{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.pw-brain-chat__time{font-size:10.5px;font-weight:400;letter-spacing:.02em;color:var(--bc-ink-3);white-space:nowrap}.pw-brain-chat__user-bubble{max-width:82%;background:var(--bc-accent);color:#fff;border-radius:var(--bc-r-md);border-top-right-radius:var(--bc-r-sm);padding:10px 13px;font-size:15px;line-height:1.5}\n", ".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", ".pw-brain-chat__text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.55;color:var(--bc-ink)}.pw-brain-chat__text p{margin:0}.pw-brain-chat__text p+p,.pw-brain-chat__text ul,.pw-brain-chat__text ol{margin-top:7px}.pw-brain-chat__text ul,.pw-brain-chat__text ol{padding-left:18px}.pw-brain-chat__text a{color:var(--bc-ink);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--bc-line-strong)}.pw-brain-chat__text a:hover,.pw-brain-chat__text a:focus-visible{color:var(--bc-accent);text-decoration-color:var(--bc-accent)}.pw-brain-chat__text table{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px;border:1px solid var(--bc-line);border-radius:var(--bc-r-md);overflow:hidden}.pw-brain-chat__text th,.pw-brain-chat__text td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--bc-line)}.pw-brain-chat__text th{background:var(--bc-surface);font-weight:600;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--bc-ink-2)}.pw-brain-chat__text tr:last-child td{border-bottom:0}.pw-brain-chat__user-text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.5}.pw-brain-chat__caret{display:inline-block;width:2px;height:1.05em;vertical-align:-2px;margin-left:2px;background:var(--bc-accent);border-radius:1px;animation:pw-brain-chat-caret 1s steps(2,start) infinite}@keyframes pw-brain-chat-caret{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__caret{animation:none}}\n", ".pw-brain-chat__loading{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 2px 0;font-size:12px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__loading-spinner{color:var(--bc-accent, #1769e1)}.pw-brain-chat__iconbtn{width:32px;height:32px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:var(--bc-r-md, 8px);background:transparent;color:var(--bc-ink-3, #7c8696);cursor:pointer;transition:background .15s ease,color .15s ease}.pw-brain-chat__iconbtn:hover:not(:disabled){background:var(--bc-surface, #f7f8fa);color:var(--bc-ink, #1a1d21)}.pw-brain-chat__iconbtn:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__iconbtn:disabled{opacity:.5;cursor:default}.pw-brain-chat__mic--recording{color:var(--bc-error, #c0392b)}.pw-brain-chat__stop:hover:not(:disabled){color:var(--bc-error, #c0392b)}.pw-brain-chat__compose{flex-shrink:0;border-top:1px solid var(--bc-line, #e2e5ea);padding:10px 2px 4px}.pw-brain-chat__field{display:flex;align-items:flex-end;gap:8px;border:1px solid var(--bc-line, #e2e5ea);border-radius:var(--bc-r-md, 8px);background:var(--bc-panel, #fff);padding:6px 6px 6px 12px;transition:border-color .15s ease,box-shadow .15s ease}.pw-brain-chat__field:focus-within{border-color:var(--bc-accent, #1769e1);box-shadow:0 0 0 3px var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__input{flex:1;border:0;resize:none;background:transparent;font-family:inherit;font-size:14px;line-height:1.5;color:var(--bc-ink, #1a1d21);padding:6px 0;max-height:96px}.pw-brain-chat__input:focus{outline:none;box-shadow:none}.pw-brain-chat__input::placeholder{color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__tools{display:flex;align-items:center;gap:2px;flex:none}.pw-brain-chat__send{width:34px;height:34px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--bc-r-md, 8px);background:var(--bc-accent, #1769e1);color:#fff;cursor:pointer;transition:filter .15s ease}.pw-brain-chat__send:hover:not(:disabled){filter:brightness(1.07)}.pw-brain-chat__send:disabled{background:var(--bc-line-strong, #cfd4dc);cursor:default}.pw-brain-chat__send:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__send--stop{background:var(--bc-error, #c0392b)!important}.pw-brain-chat__disclaimer{display:flex;align-items:center;gap:6px;margin:8px 2px 2px;font-size:11px;color:var(--bc-ink-3, #7c8696)}\n", ".pw-brain-chat__mic{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bs-border-color, #ced4da);background:transparent;color:var(--bs-secondary-color, #6c757d);transition:color .15s ease,border-color .15s ease}.pw-brain-chat__mic:hover:not(:disabled){color:var(--first, #0d6efd);border-color:var(--first, #0d6efd)}.pw-brain-chat__mic--recording{color:#dc3545;border-color:#dc3545;animation:pw-brain-chat-mic-pulse 1.2s ease-in-out infinite}@keyframes pw-brain-chat-mic-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__mic--recording{animation:none}}\n"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i5.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: PwBrainChatThreadDirective, selector: "[pwBrainChatThread]" }, { kind: "component", type: PwBrainChatConfirmComponent, selector: "pw-brain-chat-confirm", inputs: ["pending", "loading"], outputs: ["approveEvent", "cancelEvent"] }, { kind: "component", type: PwBrainChatWelcomeComponent, selector: "pw-brain-chat-welcome", inputs: ["userFirstName", "prompts"], outputs: ["pick"] }, { kind: "component", type: PwBrainChatVoiceOverlayComponent, selector: "pw-brain-chat-voice-overlay", inputs: ["voice", "dictation"], outputs: ["end"] }, { kind: "pipe", type: i8.DatePipe, name: "date" }, { kind: "pipe", type: SafeMarkdownPipe, name: "safeMarkdown" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1851
2016
|
}
|
|
1852
2017
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwBrainChatComponent, decorators: [{
|
|
1853
2018
|
type: Component,
|
|
1854
2019
|
args: [{ selector: 'pw-brain-chat', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"pw-brain-chat\">\n <!-- The sidebar host header owns title + close + live status + New chat\n (SidebarContent.status / headerActions) \u2014 so the panel body starts at\n the thread, no duplicate status strip. newChat() is invoked from the\n host header action. -->\n <div #thread pwBrainChatThread class=\"pw-brain-chat__thread\" role=\"log\" aria-live=\"polite\">\n @if (messages.length <= 1 && !loading && !streamingProse) {\n <pw-brain-chat-welcome\n [userFirstName]=\"userFirstName\"\n [prompts]=\"suggestedPrompts\"\n (pick)=\"usePrompt($event)\"\n ></pw-brain-chat-welcome>\n } @else {\n @for (m of messages; track trackByIndex($index, m)) {\n @if (m.role === 'user') {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--user\">\n <div class=\"pw-brain-chat__user-bubble\"><pre class=\"pw-brain-chat__user-text\">{{ m.text }}</pre></div>\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">{{ m.at | date: 'shortTime' }}</span>\n }\n </div>\n } @else {\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">\n {{ brandName }} Brain\n @if (m.at) {\n <span class=\"pw-brain-chat__time\">\u00B7 {{ m.at | date: 'shortTime' }}</span>\n }\n </span>\n <div class=\"pw-brain-chat__bubble\">\n @if (m.markdownEnabled) {\n <div class=\"pw-brain-chat__text\" [innerHTML]=\"m.text | safeMarkdown\"></div>\n } @else {\n <pre class=\"pw-brain-chat__text\">{{ m.text }}</pre>\n }\n </div>\n @if (m.sourcePage) {\n <div class=\"pw-brain-chat__source\" role=\"note\">\n <i class=\"fas fa-file-lines pw-brain-chat__source-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-brain-chat__source-text\">Documented on: {{ m.sourcePage }}</span>\n </div>\n }\n @if (m.pending) {\n <pw-brain-chat-confirm\n [pending]=\"m.pending\"\n [loading]=\"loading\"\n (approveEvent)=\"approve(m)\"\n (cancelEvent)=\"cancel(m)\"\n ></pw-brain-chat-confirm>\n }\n </div>\n </div>\n }\n }\n }\n\n @if (loading && streamingProse) {\n <!-- prose streams token-by-token into a partial bot turn; caret = writing (#51) -->\n <div class=\"pw-brain-chat__turn pw-brain-chat__turn--bot\">\n <div class=\"pw-brain-chat__spine\" aria-hidden=\"true\">\n <span class=\"pw-brain-chat__node\"><i class=\"fas fa-brain\"></i></span>\n <span class=\"pw-brain-chat__line\"></span>\n </div>\n <div class=\"pw-brain-chat__artifacts\">\n <span class=\"pw-brain-chat__who\">{{ brandName }} Brain</span>\n <div class=\"pw-brain-chat__bubble\">\n <pre class=\"pw-brain-chat__text\"\n >{{ streamingProse }}<span class=\"pw-brain-chat__caret\" aria-hidden=\"true\"></span></pre>\n </div>\n </div>\n </div>\n }\n </div>\n\n @if (loading && !streamingProse) {\n <div class=\"pw-brain-chat__loading\">\n <i class=\"fas fa-circle-notch fa-spin pw-brain-chat__loading-spinner\" aria-hidden=\"true\"></i>\n <span aria-live=\"polite\">{{ streamingStage || 'Working\u2026' }}</span>\n <button type=\"button\" class=\"pw-brain-chat__iconbtn pw-brain-chat__stop\" (click)=\"cancelRequest()\"\n [ngbTooltip]=\"'Stop request'\" container=\"body\" aria-label=\"Stop request\">\n <i class=\"fas fa-stop\" aria-hidden=\"true\"></i>\n </button>\n </div>\n }\n\n <!-- Voice session / dictation \u2192 animated Sonar overlay (#51) -->\n @if (voiceChat.isActive || voiceChat.error || dictation.phase === 'listening' || dictation.phase === 'processing' || dictation.error) {\n <pw-brain-chat-voice-overlay\n [voice]=\"voiceChat\"\n [dictation]=\"dictation\"\n (end)=\"voiceChat.isActive || voiceChat.error ? voiceChat.stop() : dictation.dismiss()\"\n ></pw-brain-chat-voice-overlay>\n }\n\n <div class=\"pw-brain-chat__compose\">\n @if (messages.length > 1) {\n <div class=\"pw-brain-chat__quick\">\n @for (q of quickActions; track q.text) {\n <button type=\"button\" class=\"pw-brain-chat__chip\" (click)=\"usePrompt(q.text)\">\n <i class=\"fas\" [ngClass]=\"q.icon\" aria-hidden=\"true\"></i>{{ q.label }}\n </button>\n }\n </div>\n }\n <label class=\"visually-hidden\" for=\"pw-brain-chat-input\">Message {{ brandName }} Brain</label>\n <div class=\"pw-brain-chat__field\">\n <textarea\n id=\"pw-brain-chat-input\"\n class=\"pw-brain-chat__input\"\n rows=\"1\"\n [(ngModel)]=\"draft\"\n placeholder=\"Ask a question or tell me what to do\u2026\"\n (keydown.enter)=\"$event.preventDefault(); send()\"\n\n aria-label=\"Ask a question or tell me what to do\u2026\" ></textarea>\n <div class=\"pw-brain-chat__tools\">\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn pw-brain-chat__mic\"\n [class.pw-brain-chat__mic--recording]=\"dictation.isRecording\"\n [disabled]=\"loading || dictation.phase === 'processing'\"\n (click)=\"dictation.toggle(loading)\"\n [ngbTooltip]=\"dictation.phase === 'listening' ? 'Stop dictation' : (dictation.phase === 'processing' ? 'Processing\u2026' : 'Dictate')\"\n container=\"body\"\n [attr.aria-label]=\"dictation.phase === 'listening' ? 'Stop dictation' : 'Dictate with your voice'\"\n [attr.aria-pressed]=\"dictation.isRecording\"\n ><i class=\"fas fa-microphone\" aria-hidden=\"true\"></i></button>\n @if (voiceChat.available) {\n <button\n type=\"button\"\n class=\"pw-brain-chat__iconbtn\"\n [disabled]=\"loading || dictation.isRecording\"\n (click)=\"voiceChat.toggle(loading)\"\n [ngbTooltip]=\"voiceChat.isActive ? 'End voice chat' : 'Voice chat'\"\n container=\"body\"\n [attr.aria-label]=\"voiceChat.isActive ? 'End voice chat' : 'Start voice chat'\"\n [attr.aria-pressed]=\"voiceChat.isActive\"\n >\n @switch (voiceChat.visual) {\n @case ('loader') { <i class=\"fas fa-circle-notch fa-spin\" aria-hidden=\"true\"></i> }\n @case ('wave') { <i class=\"fas fa-volume-high\" aria-hidden=\"true\"></i> }\n <!-- fa-waveform-lines (FA Pro, shipped in assets/fontawesome) \u2014 the\n canonical \"voice mode\" glyph; fa-comment-dots read as a second\n text-chat button. -->\n @default { <i class=\"fas fa-waveform-lines\" aria-hidden=\"true\"></i> }\n }\n </button>\n }\n <button\n type=\"button\"\n class=\"pw-brain-chat__send\"\n [class.pw-brain-chat__send--stop]=\"loading\"\n [disabled]=\"!loading && !draft.trim()\"\n (click)=\"loading ? cancelRequest() : send()\"\n [ngbTooltip]=\"loading ? 'Stop request' : 'Send message'\"\n container=\"body\"\n [attr.aria-label]=\"loading ? 'Stop request' : 'Send message'\"\n >\n <i class=\"fas\" [ngClass]=\"loading ? 'fa-stop' : 'fa-paper-plane'\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n <div class=\"pw-brain-chat__disclaimer\" role=\"note\">\n <i class=\"fas fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n AI may be inaccurate \u2014 verify before acting.\n </div>\n </div>\n</div>\n", styles: [".pw-brain-chat{--bc-panel: var(--dashboard_bg, #fff);--bc-shade: #20385e;--bc-surface: color-mix(in srgb, var(--bc-panel) 96.6%, var(--bc-shade));--bc-surface-2: color-mix(in srgb, var(--bc-panel) 92.3%, var(--bc-shade));--bc-line: color-mix(in srgb, var(--bc-panel) 86.8%, var(--bc-shade));--bc-line-strong: color-mix(in srgb, var(--bc-panel) 78.3%, var(--bc-shade));--bc-bubble: color-mix(in srgb, var(--bc-panel) 94.1%, var(--bc-shade));--bc-ink: var(--text, #1a1d21);--bc-title: var(--titles, var(--text, #1a1d21));--bc-ink-2: color-mix(in srgb, var(--bc-ink) 72%, var(--bc-panel));--bc-ink-3: color-mix(in srgb, var(--bc-ink) 55%, var(--bc-panel));--bc-accent: var(--first, #1769e1);--bc-accent-wash: color-mix(in srgb, var(--first, #1769e1) 10%, transparent);--bc-accent-line: color-mix(in srgb, var(--first, #1769e1) 32%, var(--bc-line));--bc-success: #1f9d57;--bc-warning: #b7791f;--bc-error: #c0392b;--bc-r-sm: 4px;--bc-r-md: 8px;--bc-r-lg: 12px;--bc-ease: cubic-bezier(.2, .6, .25, 1);display:flex;flex-direction:column;height:100%;min-height:0;font-size:15px;color:var(--bc-ink);position:relative}:host-context([data-theme=dark]) .pw-brain-chat{--bc-panel: #15181d;--bc-surface: #1c2026;--bc-surface-2: #21262e;--bc-line: #2a2f38;--bc-line-strong: #384150;--bc-bubble: #1c2026;--bc-ink: #edeff2;--bc-title: #edeff2;--bc-ink-2: #aab3c0;--bc-ink-3: #7c8696}.pw-brain-chat__thread{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 2px 8px;display:flex;flex-direction:column;gap:18px}.pw-brain-chat__thread>:first-child{margin-top:auto}.pw-brain-chat__turn--bot{display:grid;grid-template-columns:26px 1fr;column-gap:10px}.pw-brain-chat__spine{display:flex;flex-direction:column;align-items:center}.pw-brain-chat__node{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;background:var(--bc-surface);border:1px solid var(--bc-line);color:var(--bc-ink-2)}.pw-brain-chat__node i{font-size:12px}.pw-brain-chat__line{flex:1 1 auto;width:2px;margin-top:6px;background:var(--bc-line);border-radius:9999px}.pw-brain-chat__artifacts{min-width:0;display:flex;flex-direction:column;gap:9px;padding-top:1px}.pw-brain-chat__who{font-size:11px;text-transform:uppercase;letter-spacing:.11em;color:var(--bc-ink-3);font-weight:600}.pw-brain-chat__bubble{background:var(--bc-bubble);border:1px solid var(--bc-line);border-radius:var(--bc-r-md);padding:10px 13px}.pw-brain-chat__source{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin-top:6px;padding:3px 9px;border:1px solid var(--bc-line);border-radius:var(--bc-r-sm);color:var(--bc-ink-3);font-size:11px;line-height:1.4}.pw-brain-chat__source-icon{flex-shrink:0;font-size:11px}.pw-brain-chat__source-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pw-brain-chat__turn--user{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.pw-brain-chat__time{font-size:10.5px;font-weight:400;letter-spacing:.02em;color:var(--bc-ink-3);white-space:nowrap}.pw-brain-chat__user-bubble{max-width:82%;background:var(--bc-accent);color:#fff;border-radius:var(--bc-r-md);border-top-right-radius:var(--bc-r-sm);padding:10px 13px;font-size:15px;line-height:1.5}\n", ".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", ".pw-brain-chat__text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.55;color:var(--bc-ink)}.pw-brain-chat__text p{margin:0}.pw-brain-chat__text p+p,.pw-brain-chat__text ul,.pw-brain-chat__text ol{margin-top:7px}.pw-brain-chat__text ul,.pw-brain-chat__text ol{padding-left:18px}.pw-brain-chat__text a{color:var(--bc-ink);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--bc-line-strong)}.pw-brain-chat__text a:hover,.pw-brain-chat__text a:focus-visible{color:var(--bc-accent);text-decoration-color:var(--bc-accent)}.pw-brain-chat__text table{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px;border:1px solid var(--bc-line);border-radius:var(--bc-r-md);overflow:hidden}.pw-brain-chat__text th,.pw-brain-chat__text td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--bc-line)}.pw-brain-chat__text th{background:var(--bc-surface);font-weight:600;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--bc-ink-2)}.pw-brain-chat__text tr:last-child td{border-bottom:0}.pw-brain-chat__user-text{margin:0;white-space:pre-wrap;overflow-wrap:break-word;font-family:inherit;font-size:15px;line-height:1.5}.pw-brain-chat__caret{display:inline-block;width:2px;height:1.05em;vertical-align:-2px;margin-left:2px;background:var(--bc-accent);border-radius:1px;animation:pw-brain-chat-caret 1s steps(2,start) infinite}@keyframes pw-brain-chat-caret{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__caret{animation:none}}\n", ".pw-brain-chat__loading{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:4px 2px 0;font-size:12px;color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__loading-spinner{color:var(--bc-accent, #1769e1)}.pw-brain-chat__iconbtn{width:32px;height:32px;flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:var(--bc-r-md, 8px);background:transparent;color:var(--bc-ink-3, #7c8696);cursor:pointer;transition:background .15s ease,color .15s ease}.pw-brain-chat__iconbtn:hover:not(:disabled){background:var(--bc-surface, #f7f8fa);color:var(--bc-ink, #1a1d21)}.pw-brain-chat__iconbtn:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__iconbtn:disabled{opacity:.5;cursor:default}.pw-brain-chat__mic--recording{color:var(--bc-error, #c0392b)}.pw-brain-chat__stop:hover:not(:disabled){color:var(--bc-error, #c0392b)}.pw-brain-chat__compose{flex-shrink:0;border-top:1px solid var(--bc-line, #e2e5ea);padding:10px 2px 4px}.pw-brain-chat__field{display:flex;align-items:flex-end;gap:8px;border:1px solid var(--bc-line, #e2e5ea);border-radius:var(--bc-r-md, 8px);background:var(--bc-panel, #fff);padding:6px 6px 6px 12px;transition:border-color .15s ease,box-shadow .15s ease}.pw-brain-chat__field:focus-within{border-color:var(--bc-accent, #1769e1);box-shadow:0 0 0 3px var(--bc-accent-wash, rgba(23, 105, 225, .1))}.pw-brain-chat__input{flex:1;border:0;resize:none;background:transparent;font-family:inherit;font-size:14px;line-height:1.5;color:var(--bc-ink, #1a1d21);padding:6px 0;max-height:96px}.pw-brain-chat__input:focus{outline:none;box-shadow:none}.pw-brain-chat__input::placeholder{color:var(--bc-ink-3, #7c8696)}.pw-brain-chat__tools{display:flex;align-items:center;gap:2px;flex:none}.pw-brain-chat__send{width:34px;height:34px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--bc-r-md, 8px);background:var(--bc-accent, #1769e1);color:#fff;cursor:pointer;transition:filter .15s ease}.pw-brain-chat__send:hover:not(:disabled){filter:brightness(1.07)}.pw-brain-chat__send:disabled{background:var(--bc-line-strong, #cfd4dc);cursor:default}.pw-brain-chat__send:focus-visible{outline:2px solid var(--bc-accent, #1769e1);outline-offset:2px}.pw-brain-chat__send--stop{background:var(--bc-error, #c0392b)!important}.pw-brain-chat__disclaimer{display:flex;align-items:center;gap:6px;margin:8px 2px 2px;font-size:11px;color:var(--bc-ink-3, #7c8696)}\n", ".pw-brain-chat__mic{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bs-border-color, #ced4da);background:transparent;color:var(--bs-secondary-color, #6c757d);transition:color .15s ease,border-color .15s ease}.pw-brain-chat__mic:hover:not(:disabled){color:var(--first, #0d6efd);border-color:var(--first, #0d6efd)}.pw-brain-chat__mic--recording{color:#dc3545;border-color:#dc3545;animation:pw-brain-chat-mic-pulse 1.2s ease-in-out infinite}@keyframes pw-brain-chat-mic-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.pw-brain-chat__mic--recording{animation:none}}\n"] }]
|
|
1855
|
-
}], ctorParameters: () => [{ type: i1.MCPOrchestratorService }, { type: i1.LocalStorage }, { type: i2.Router }, { type: i0.ChangeDetectorRef }, { type: i3.Store }, { type: DynamicPageContextService }, { type:
|
|
2020
|
+
}], ctorParameters: () => [{ type: i1.MCPOrchestratorService }, { type: i1.LocalStorage }, { type: i2.Router }, { type: i0.ChangeDetectorRef }, { type: i3.Store }, { type: DynamicPageContextService }, { type: i2$1.AppConfigService, decorators: [{
|
|
1856
2021
|
type: Optional
|
|
1857
2022
|
}] }, { type: i1.BrainSocketService, decorators: [{
|
|
1858
2023
|
type: Optional
|
|
@@ -2014,6 +2179,25 @@ class CollapsibleSidebarService {
|
|
|
2014
2179
|
this.sidebarContentSubject.next(content);
|
|
2015
2180
|
this.sidebarExpandedSubject.next(true);
|
|
2016
2181
|
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Load a panel and seed it with one-shot inputs.
|
|
2184
|
+
*
|
|
2185
|
+
* The host re-mounts the panel component on every load and `Object.assign`s
|
|
2186
|
+
* `content.data` onto the fresh instance, so this is how a caller opens a
|
|
2187
|
+
* panel in a particular starting state — e.g. the command palette opening
|
|
2188
|
+
* the Brain panel with the user's typed query already in the composer.
|
|
2189
|
+
*
|
|
2190
|
+
* @param contentId - The ID of the content to load
|
|
2191
|
+
* @param data - Fields copied onto the newly mounted panel instance
|
|
2192
|
+
*/
|
|
2193
|
+
loadContentWithData(contentId, data) {
|
|
2194
|
+
const content = this.sidebarContentMap.get(contentId);
|
|
2195
|
+
if (!content) {
|
|
2196
|
+
return;
|
|
2197
|
+
}
|
|
2198
|
+
this.sidebarContentMap.set(contentId, { ...content, data: { ...content.data, ...data } });
|
|
2199
|
+
this.loadContent(contentId);
|
|
2200
|
+
}
|
|
2017
2201
|
/**
|
|
2018
2202
|
* Toggle sidebar expanded/collapsed state
|
|
2019
2203
|
*/
|
|
@@ -2301,8 +2485,8 @@ class CollapsibleSidebarComponent {
|
|
|
2301
2485
|
toggleSidebar() {
|
|
2302
2486
|
this.sidebarService.toggleSidebar();
|
|
2303
2487
|
}
|
|
2304
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CollapsibleSidebarComponent, deps: [{ token: CollapsibleSidebarService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT }, { token:
|
|
2305
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: CollapsibleSidebarComponent, isStandalone: false, selector: "pw-collapsible-sidebar", inputs: { embedInLayout: ["embedInLayout", "embedInLayout", booleanAttribute] }, viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ViewContainerRef }], hostDirectives: [{ directive: CollapsibleSidebarKeyboardShortcutDirective }], ngImport: i0, template: "<div\n class=\"pw-collapsible-sidebar-host\"\n [class.pw-collapsible-sidebar-host--embedded]=\"embedInLayout\"\n [class.pw-collapsible-sidebar-host--transition-ready]=\"transitionReady\"\n>\n @if (isExpanded && !embedInLayout) {\n <button\n type=\"button\"\n class=\"pw-collapsible-sidebar-backdrop\"\n aria-label=\"Close side panel\"\n (click)=\"closeSidebar()\"\n ></button>\n }\n\n <aside\n class=\"pw-collapsible-sidebar\"\n [class.expanded]=\"isExpanded\"\n [attr.aria-hidden]=\"!isExpanded\"\n >\n <div class=\"sidebar-header\">\n <div class=\"sidebar-header__lead\">\n <div class=\"sidebar-title-group\">\n <h2 class=\"sidebar-title\">{{ currentContent?.title ?? 'Details' }}</h2>\n @if (currentContent?.beta) {\n <span class=\"sidebar-badge\">{{ 'BrainChat.Badge.Beta' | transloco }}</span>\n }\n </div>\n @if (currentContent?.status) {\n <span class=\"sidebar-status\" [attr.title]=\"currentContent?.status\">\n <span class=\"sidebar-status__dot\" aria-hidden=\"true\"></span>\n <span class=\"sidebar-status__text\">{{ currentContent?.status }}</span>\n </span>\n }\n </div>\n <div class=\"sidebar-header__actions\">\n @for (action of currentContent?.headerActions ?? []; track action.id) {\n <button\n type=\"button\"\n class=\"sidebar-action\"\n [attr.aria-label]=\"action.ariaLabel\"\n [attr.title]=\"action.ariaLabel\"\n (click)=\"invokeHeaderAction(action)\"\n >\n <i class=\"{{ action.icon }}\" aria-hidden=\"true\"></i>\n </button>\n }\n <button\n type=\"button\"\n class=\"close-btn\"\n aria-label=\"Close sidebar\"\n (click)=\"closeSidebar()\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"sidebar-content\">\n <div #contentContainer></div>\n </div>\n </aside>\n</div>\n", styles: ["@charset \"UTF-8\";.pw-collapsible-sidebar-host{position:relative}.pw-collapsible-sidebar-backdrop{position:fixed;inset:0;z-index:1040;margin:0;padding:0;border:none;cursor:default;appearance:none;background:#1f1e240f;animation:pw-drawer-backdrop-in .2s ease-out both}@keyframes pw-drawer-backdrop-in{0%{opacity:0}to{opacity:1}}.pw-collapsible-sidebar-host:not(.pw-collapsible-sidebar-host--transition-ready) .pw-collapsible-sidebar{transition:none!important}.pw-collapsible-sidebar{--pw-drawer-width: min(480px, max(300px, 40vw));--pw-drawer-radius: 4px;--pw-drawer-bg: var(--dashboard_bg, #fff);--pw-drawer-shade: #20385e;--pw-drawer-surface: color-mix(in srgb, var(--pw-drawer-bg) 96.6%, var(--pw-drawer-shade));--pw-drawer-hover: color-mix(in srgb, var(--pw-drawer-bg) 92.3%, var(--pw-drawer-shade));--pw-drawer-line: color-mix(in srgb, var(--pw-drawer-bg) 86.8%, var(--pw-drawer-shade));--pw-drawer-line-strong: color-mix(in srgb, var(--pw-drawer-bg) 84%, var(--pw-drawer-shade));--pw-drawer-ink: var(--titles, #1a1d21);--pw-drawer-ink-3: color-mix(in srgb, var(--pw-drawer-ink) 55%, var(--pw-drawer-bg));position:fixed;top:var(--pw-collapsible-sidebar-top, 60px);right:0;bottom:0;width:var(--pw-drawer-width);max-width:100%;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 60px));background-color:var(--pw-drawer-bg);border-left:1px solid var(--pw-drawer-line-strong, #dbdbdb);border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:none;display:flex;flex-direction:column;z-index:1050;overflow:hidden;pointer-events:none;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);will-change:transform}.pw-collapsible-sidebar.expanded{transform:translate(0);pointer-events:auto;transition:transform .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar{--pw-drawer-width: 100%;border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded{flex:0 0 0;width:0;min-width:0;height:0;min-height:0;overflow:visible;pointer-events:none;position:relative}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{--pw-drawer-width: max(300px, min(480px, 32vw));position:fixed;top:var(--pw-collapsible-sidebar-top, 85px);right:0;left:auto;bottom:auto;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));width:0;min-width:0;max-width:min(480px,90vw);transform:none;transition:width .3s cubic-bezier(.4,0,.2,1);z-index:1036;pointer-events:none;will-change:width;border-left:2px solid rgba(0,0,0,.14);border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:inset 1px 0 #ffffff8c,-10px 0 40px #0000001f;display:flex;flex-direction:column}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar:not(.expanded){border-left:none;box-shadow:none}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-header{flex-shrink:0;z-index:2}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--pw-drawer-surface, #f6f8fa);border-top:1px solid rgba(0,0,0,.08)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:var(--pw-drawer-width);min-width:var(--pw-drawer-width);pointer-events:auto;transition:width .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{top:var(--pw-collapsible-sidebar-top, 85px);height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-width:100%;border-top-left-radius:0;border-bottom-left-radius:0;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:100%!important;min-width:100%!important;transform:translate(0);transition:transform .55s cubic-bezier(.16,1,.3,1)}}\n", ".pw-collapsible-sidebar .sidebar-header{--pw-drawer-header-bg: var(--sidebar_bg, #00303f);--pw-drawer-header-ink: var(--sidebar_text, #fff);display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;height:44px;padding:0 8px 0 16px;flex-shrink:0;position:relative;background:var(--pw-drawer-header-bg);border-bottom:1px solid color-mix(in srgb,var(--pw-drawer-header-ink) 16%,var(--pw-drawer-header-bg))}.pw-collapsible-sidebar .sidebar-header .sidebar-title{display:block;margin:0;padding:0;font-size:15px;line-height:1.3;font-weight:600;letter-spacing:-.01em;color:var(--pw-drawer-header-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0;align-self:center}.pw-collapsible-sidebar .sidebar-header h2.sidebar-title{margin:0!important}.pw-collapsible-sidebar .sidebar-header .sidebar-title-group{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-badge{flex:none;display:inline-flex;align-items:center;height:16px;padding:0 6px;border-radius:4px;font-size:10px;font-weight:600;line-height:1;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--pw-drawer-header-ink);background:color-mix(in srgb,var(--pw-drawer-header-ink) 22%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pw-drawer-header-ink) 70%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-header__lead{display:flex;align-items:center;gap:14px;flex:1 1 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-status{display:inline-flex;align-items:center;gap:6px;flex:0 100 auto;min-width:0;font-size:11px;line-height:1.3;letter-spacing:.02em;color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__dot{flex:none;width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 2px color-mix(in srgb,var(--pw-drawer-header-ink) 35%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:480px){.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}}.pw-collapsible-sidebar .sidebar-header .sidebar-header__actions{display:flex;align-items:center;gap:4px;flex:none}.pw-collapsible-sidebar .sidebar-header .sidebar-action,.pw-collapsible-sidebar .sidebar-header .close-btn{background:transparent;border:none;cursor:pointer;width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--pw-drawer-header-ink) 85%,transparent);font-size:13px;border-radius:8px;flex-shrink:0;transition:background-color .16s ease,color .16s ease}.pw-collapsible-sidebar .sidebar-header .sidebar-action:hover,.pw-collapsible-sidebar .sidebar-header .close-btn:hover{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 16%,transparent);color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:active,.pw-collapsible-sidebar .sidebar-header .close-btn:active{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 26%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:focus-visible,.pw-collapsible-sidebar .sidebar-header .close-btn:focus-visible{outline:2px solid var(--pw-drawer-header-ink);outline-offset:2px}.pw-collapsible-sidebar .sidebar-header .close-btn{width:30px;height:30px;font-size:14px}.pw-collapsible-sidebar .sidebar-header .close-btn i{line-height:1;display:block}\n", ".pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 16px 24px;background:var(--pw-drawer-bg, #fff);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar{width:8px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-track{background:transparent}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb:hover{background-color:#00000059}\n"], dependencies: [{ kind: "pipe", type: i1$3.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2488
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CollapsibleSidebarComponent, deps: [{ token: CollapsibleSidebarService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT }, { token: i2$1.AppConfigService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2489
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: CollapsibleSidebarComponent, isStandalone: false, selector: "pw-collapsible-sidebar", inputs: { embedInLayout: ["embedInLayout", "embedInLayout", booleanAttribute] }, viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ViewContainerRef }], hostDirectives: [{ directive: CollapsibleSidebarKeyboardShortcutDirective }], ngImport: i0, template: "<div\n class=\"pw-collapsible-sidebar-host\"\n [class.pw-collapsible-sidebar-host--embedded]=\"embedInLayout\"\n [class.pw-collapsible-sidebar-host--transition-ready]=\"transitionReady\"\n>\n @if (isExpanded && !embedInLayout) {\n <button\n type=\"button\"\n class=\"pw-collapsible-sidebar-backdrop\"\n aria-label=\"Close side panel\"\n (click)=\"closeSidebar()\"\n ></button>\n }\n\n <aside\n class=\"pw-collapsible-sidebar\"\n [class.expanded]=\"isExpanded\"\n [attr.aria-hidden]=\"!isExpanded\"\n >\n <div class=\"sidebar-header\">\n <div class=\"sidebar-header__lead\">\n <div class=\"sidebar-title-group\">\n <h2 class=\"sidebar-title\">{{ currentContent?.title ?? 'Details' }}</h2>\n @if (currentContent?.beta) {\n <span class=\"sidebar-badge\">{{ 'BrainChat.Badge.Beta' | transloco }}</span>\n }\n </div>\n @if (currentContent?.status) {\n <span class=\"sidebar-status\" [attr.title]=\"currentContent?.status\">\n <span class=\"sidebar-status__dot\" aria-hidden=\"true\"></span>\n <span class=\"sidebar-status__text\">{{ currentContent?.status }}</span>\n </span>\n }\n </div>\n <div class=\"sidebar-header__actions\">\n @for (action of currentContent?.headerActions ?? []; track action.id) {\n <button\n type=\"button\"\n class=\"sidebar-action\"\n [attr.aria-label]=\"action.ariaLabel\"\n [attr.title]=\"action.ariaLabel\"\n (click)=\"invokeHeaderAction(action)\"\n >\n <i class=\"{{ action.icon }}\" aria-hidden=\"true\"></i>\n </button>\n }\n <button\n type=\"button\"\n class=\"close-btn\"\n aria-label=\"Close sidebar\"\n (click)=\"closeSidebar()\"\n >\n <i class=\"pi pi-times\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n <div class=\"sidebar-content\">\n <div #contentContainer></div>\n </div>\n </aside>\n</div>\n", styles: ["@charset \"UTF-8\";.pw-collapsible-sidebar-host{position:relative}.pw-collapsible-sidebar-backdrop{position:fixed;inset:0;z-index:1040;margin:0;padding:0;border:none;cursor:default;appearance:none;background:#1f1e240f;animation:pw-drawer-backdrop-in .2s ease-out both}@keyframes pw-drawer-backdrop-in{0%{opacity:0}to{opacity:1}}.pw-collapsible-sidebar-host:not(.pw-collapsible-sidebar-host--transition-ready) .pw-collapsible-sidebar{transition:none!important}.pw-collapsible-sidebar{--pw-drawer-width: min(480px, max(300px, 40vw));--pw-drawer-radius: 4px;--pw-drawer-bg: var(--dashboard_bg, #fff);--pw-drawer-shade: #20385e;--pw-drawer-surface: color-mix(in srgb, var(--pw-drawer-bg) 96.6%, var(--pw-drawer-shade));--pw-drawer-hover: color-mix(in srgb, var(--pw-drawer-bg) 92.3%, var(--pw-drawer-shade));--pw-drawer-line: color-mix(in srgb, var(--pw-drawer-bg) 86.8%, var(--pw-drawer-shade));--pw-drawer-line-strong: color-mix(in srgb, var(--pw-drawer-bg) 84%, var(--pw-drawer-shade));--pw-drawer-ink: var(--titles, #1a1d21);--pw-drawer-ink-3: color-mix(in srgb, var(--pw-drawer-ink) 55%, var(--pw-drawer-bg));position:fixed;top:var(--pw-collapsible-sidebar-top, 60px);right:0;bottom:0;width:var(--pw-drawer-width);max-width:100%;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 60px));background-color:var(--pw-drawer-bg);border-left:1px solid var(--pw-drawer-line-strong, #dbdbdb);border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:none;display:flex;flex-direction:column;z-index:1050;overflow:hidden;pointer-events:none;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);will-change:transform}.pw-collapsible-sidebar.expanded{transform:translate(0);pointer-events:auto;transition:transform .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar{--pw-drawer-width: 100%;border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded{flex:0 0 0;width:0;min-width:0;height:0;min-height:0;overflow:visible;pointer-events:none;position:relative}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{--pw-drawer-width: max(300px, min(480px, 32vw));position:fixed;top:var(--pw-collapsible-sidebar-top, 85px);right:0;left:auto;bottom:auto;height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));width:0;min-width:0;max-width:min(480px,90vw);transform:none;transition:width .3s cubic-bezier(.4,0,.2,1);z-index:1036;pointer-events:none;will-change:width;border-left:2px solid rgba(0,0,0,.14);border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--pw-drawer-radius);border-bottom-left-radius:var(--pw-drawer-radius);box-shadow:inset 1px 0 #ffffff8c,-10px 0 40px #0000001f;display:flex;flex-direction:column}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar:not(.expanded){border-left:none;box-shadow:none}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-header{flex-shrink:0;z-index:2}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--pw-drawer-surface, #f6f8fa);border-top:1px solid rgba(0,0,0,.08)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:var(--pw-drawer-width);min-width:var(--pw-drawer-width);pointer-events:auto;transition:width .55s cubic-bezier(.16,1,.3,1)}@media(max-width:768px){.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar{top:var(--pw-collapsible-sidebar-top, 85px);height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-height:calc(100dvh - var(--pw-collapsible-sidebar-top, 85px));max-width:100%;border-top-left-radius:0;border-bottom-left-radius:0;transform:translate(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}.pw-collapsible-sidebar-host.pw-collapsible-sidebar-host--embedded .pw-collapsible-sidebar.expanded{width:100%!important;min-width:100%!important;transform:translate(0);transition:transform .55s cubic-bezier(.16,1,.3,1)}}\n", ".pw-collapsible-sidebar .sidebar-header{--pw-drawer-header-bg: var(--sidebar_bg, #00303f);--pw-drawer-header-ink: var(--sidebar_text, #fff);display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;height:44px;padding:0 8px 0 16px;flex-shrink:0;position:relative;background:var(--pw-drawer-header-bg);border-bottom:1px solid color-mix(in srgb,var(--pw-drawer-header-ink) 16%,var(--pw-drawer-header-bg))}.pw-collapsible-sidebar .sidebar-header .sidebar-title{display:block;margin:0;padding:0;font-size:15px;line-height:1.3;font-weight:600;letter-spacing:-.01em;color:var(--pw-drawer-header-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0;align-self:center}.pw-collapsible-sidebar .sidebar-header h2.sidebar-title{margin:0!important}.pw-collapsible-sidebar .sidebar-header .sidebar-title-group{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-badge{flex:none;display:inline-flex;align-items:center;height:16px;padding:0 6px;border-radius:4px;font-size:10px;font-weight:600;line-height:1;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--pw-drawer-header-ink);background:color-mix(in srgb,var(--pw-drawer-header-ink) 22%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pw-drawer-header-ink) 70%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-header__lead{display:flex;align-items:center;gap:14px;flex:1 1 auto;min-width:0}.pw-collapsible-sidebar .sidebar-header .sidebar-status{display:inline-flex;align-items:center;gap:6px;flex:0 100 auto;min-width:0;font-size:11px;line-height:1.3;letter-spacing:.02em;color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__dot{flex:none;width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 2px color-mix(in srgb,var(--pw-drawer-header-ink) 35%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:480px){.pw-collapsible-sidebar .sidebar-header .sidebar-status__text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}}.pw-collapsible-sidebar .sidebar-header .sidebar-header__actions{display:flex;align-items:center;gap:4px;flex:none}.pw-collapsible-sidebar .sidebar-header .sidebar-action,.pw-collapsible-sidebar .sidebar-header .close-btn{background:transparent;border:none;cursor:pointer;width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--pw-drawer-header-ink) 85%,transparent);font-size:13px;border-radius:8px;flex-shrink:0;transition:background-color .16s ease,color .16s ease}.pw-collapsible-sidebar .sidebar-header .sidebar-action:hover,.pw-collapsible-sidebar .sidebar-header .close-btn:hover{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 16%,transparent);color:var(--pw-drawer-header-ink)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:active,.pw-collapsible-sidebar .sidebar-header .close-btn:active{background-color:color-mix(in srgb,var(--pw-drawer-header-ink) 26%,transparent)}.pw-collapsible-sidebar .sidebar-header .sidebar-action:focus-visible,.pw-collapsible-sidebar .sidebar-header .close-btn:focus-visible{outline:2px solid var(--pw-drawer-header-ink);outline-offset:2px}.pw-collapsible-sidebar .sidebar-header .close-btn{width:30px;height:30px;font-size:14px}.pw-collapsible-sidebar .sidebar-header .close-btn i{line-height:1;display:block}\n", ".pw-collapsible-sidebar .sidebar-content{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 16px 24px;background:var(--pw-drawer-bg, #fff);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar{width:8px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-track{background:transparent}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.pw-collapsible-sidebar .sidebar-content::-webkit-scrollbar-thumb:hover{background-color:#00000059}\n"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2306
2490
|
}
|
|
2307
2491
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CollapsibleSidebarComponent, decorators: [{
|
|
2308
2492
|
type: Component,
|
|
@@ -2310,7 +2494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
2310
2494
|
}], ctorParameters: () => [{ type: CollapsibleSidebarService }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: Document, decorators: [{
|
|
2311
2495
|
type: Inject,
|
|
2312
2496
|
args: [DOCUMENT]
|
|
2313
|
-
}] }, { type:
|
|
2497
|
+
}] }, { type: i2$1.AppConfigService, decorators: [{
|
|
2314
2498
|
type: Optional
|
|
2315
2499
|
}] }], propDecorators: { contentContainer: [{
|
|
2316
2500
|
type: ViewChild,
|
|
@@ -2411,6 +2595,668 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
2411
2595
|
type: Input
|
|
2412
2596
|
}] } });
|
|
2413
2597
|
|
|
2598
|
+
/**
|
|
2599
|
+
* Open/close state for the global command palette.
|
|
2600
|
+
*
|
|
2601
|
+
* Kept in a root service (rather than inside the component) so any surface can
|
|
2602
|
+
* summon the palette — the navbar button, the ⌘K shortcut, an empty-state
|
|
2603
|
+
* "find a page" link — without reaching for a component reference.
|
|
2604
|
+
*/
|
|
2605
|
+
class CommandPaletteService {
|
|
2606
|
+
constructor() {
|
|
2607
|
+
this.openSubject = new BehaviorSubject(false);
|
|
2608
|
+
this.isOpen$ = this.openSubject.asObservable();
|
|
2609
|
+
}
|
|
2610
|
+
open() {
|
|
2611
|
+
this.openSubject.next(true);
|
|
2612
|
+
}
|
|
2613
|
+
close() {
|
|
2614
|
+
this.openSubject.next(false);
|
|
2615
|
+
}
|
|
2616
|
+
toggle() {
|
|
2617
|
+
this.openSubject.next(!this.openSubject.value);
|
|
2618
|
+
}
|
|
2619
|
+
isOpen() {
|
|
2620
|
+
return this.openSubject.value;
|
|
2621
|
+
}
|
|
2622
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2623
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteService, providedIn: 'root' }); }
|
|
2624
|
+
}
|
|
2625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteService, decorators: [{
|
|
2626
|
+
type: Injectable,
|
|
2627
|
+
args: [{ providedIn: 'root' }]
|
|
2628
|
+
}] });
|
|
2629
|
+
|
|
2630
|
+
/**
|
|
2631
|
+
* Run a row.
|
|
2632
|
+
*
|
|
2633
|
+
* Returns whether the palette should close. Everything closes today; the return
|
|
2634
|
+
* value exists so a future row that reports back in place (a copy confirmation,
|
|
2635
|
+
* a toggle) can keep the panel open without rewriting every caller.
|
|
2636
|
+
*/
|
|
2637
|
+
const activateItem = (item, deps) => {
|
|
2638
|
+
if (!item) {
|
|
2639
|
+
return false;
|
|
2640
|
+
}
|
|
2641
|
+
if (item.kind === 'ask-ai') {
|
|
2642
|
+
deps.askAi(item.label);
|
|
2643
|
+
return true;
|
|
2644
|
+
}
|
|
2645
|
+
if (item.kind === 'action') {
|
|
2646
|
+
runAction(item, deps);
|
|
2647
|
+
return true;
|
|
2648
|
+
}
|
|
2649
|
+
// A page in another product: the index hands it to the sidebar's context
|
|
2650
|
+
// switch, which navigates once that subscription is active.
|
|
2651
|
+
if (item.entry && deps.openEntry(item)) {
|
|
2652
|
+
return true;
|
|
2653
|
+
}
|
|
2654
|
+
if (item.path) {
|
|
2655
|
+
deps.navigate(item.path);
|
|
2656
|
+
}
|
|
2657
|
+
return true;
|
|
2658
|
+
};
|
|
2659
|
+
const runAction = (item, deps) => {
|
|
2660
|
+
if (item.action === 'copy-link') {
|
|
2661
|
+
deps.copyLink();
|
|
2662
|
+
return;
|
|
2663
|
+
}
|
|
2664
|
+
if (item.action === 'log-out') {
|
|
2665
|
+
deps.logOut();
|
|
2666
|
+
}
|
|
2667
|
+
};
|
|
2668
|
+
/**
|
|
2669
|
+
* Build the dispatch table from a component's collaborators.
|
|
2670
|
+
*
|
|
2671
|
+
* Lives here rather than inline in the component so the component stays inside
|
|
2672
|
+
* C1 and so the copy-link branch — the only one with a promise and user-visible
|
|
2673
|
+
* feedback — is reachable from a unit test.
|
|
2674
|
+
*/
|
|
2675
|
+
const buildActivateDeps = (deps) => ({
|
|
2676
|
+
// Seed the Brain composer rather than auto-sending, so the user can still
|
|
2677
|
+
// edit the question before committing to it.
|
|
2678
|
+
askAi: query => deps.sidebar.loadContentWithData('posiwise-brain', { draft: query }),
|
|
2679
|
+
openEntry: item => !!item.entry && deps.navIndex.open(item.entry),
|
|
2680
|
+
navigate: path => void deps.router.navigateByUrl(path),
|
|
2681
|
+
copyLink: () => {
|
|
2682
|
+
const clipboard = deps.clipboard ?? globalThis.navigator?.clipboard;
|
|
2683
|
+
if (!clipboard) {
|
|
2684
|
+
deps.notify?.error(deps.translate('CommandPalette.Action.CopyFailed'));
|
|
2685
|
+
return;
|
|
2686
|
+
}
|
|
2687
|
+
clipboard
|
|
2688
|
+
.writeText(deps.href ? deps.href() : globalThis.location?.href)
|
|
2689
|
+
.then(() => deps.notify?.success(deps.translate('CommandPalette.Action.Copied')))
|
|
2690
|
+
.catch(() => deps.notify?.error(deps.translate('CommandPalette.Action.CopyFailed')));
|
|
2691
|
+
},
|
|
2692
|
+
// The same route the profile menu uses; it owns the whole teardown.
|
|
2693
|
+
logOut: () => void deps.router.navigateByUrl('/logout')
|
|
2694
|
+
});
|
|
2695
|
+
|
|
2696
|
+
/**
|
|
2697
|
+
* The white-label brand for the Ask row.
|
|
2698
|
+
*
|
|
2699
|
+
* `AppConfigService` is optional in this library — a consumer that does not
|
|
2700
|
+
* provide it falls back to the default brand rather than failing to construct
|
|
2701
|
+
* the palette at all.
|
|
2702
|
+
*/
|
|
2703
|
+
const brandName$ = (appConfig) => appConfig ? appConfig.appConfig$.pipe(map(resolveBrandName)) : of(DEFAULT_BRAND);
|
|
2704
|
+
|
|
2705
|
+
/** Cap per group so one noisy group can never bury the others. */
|
|
2706
|
+
const MAX_PER_GROUP = 6;
|
|
2707
|
+
const normalise = (value) => (value ?? '').trim().toLowerCase();
|
|
2708
|
+
/**
|
|
2709
|
+
* Small, predictable ranking — prefix beats word-start beats substring.
|
|
2710
|
+
* Deliberately not fuzzy: a palette that reorders unpredictably as you type
|
|
2711
|
+
* costs more trust than it buys in recall.
|
|
2712
|
+
*/
|
|
2713
|
+
const scoreEntry = (title, section, query) => {
|
|
2714
|
+
const haystack = normalise(title);
|
|
2715
|
+
const needle = normalise(query);
|
|
2716
|
+
if (!needle) {
|
|
2717
|
+
return 0;
|
|
2718
|
+
}
|
|
2719
|
+
if (haystack.startsWith(needle)) {
|
|
2720
|
+
return 3;
|
|
2721
|
+
}
|
|
2722
|
+
if (haystack.includes(` ${needle}`)) {
|
|
2723
|
+
return 2;
|
|
2724
|
+
}
|
|
2725
|
+
if (haystack.includes(needle)) {
|
|
2726
|
+
return 1;
|
|
2727
|
+
}
|
|
2728
|
+
if (normalise(section).includes(needle)) {
|
|
2729
|
+
return 1;
|
|
2730
|
+
}
|
|
2731
|
+
return -1;
|
|
2732
|
+
};
|
|
2733
|
+
const pageItems = (entries, query) => entries
|
|
2734
|
+
.map(entry => ({ entry, score: scoreEntry(entry.title, entry.section, query) }))
|
|
2735
|
+
.filter(scored => scored.score >= 0)
|
|
2736
|
+
.sort((a, b) => b.score - a.score || a.entry.title.localeCompare(b.entry.title))
|
|
2737
|
+
.slice(0, MAX_PER_GROUP)
|
|
2738
|
+
.map(({ entry }) => ({
|
|
2739
|
+
id: `page:${entry.path}`,
|
|
2740
|
+
kind: 'page',
|
|
2741
|
+
label: entry.title,
|
|
2742
|
+
detail: entry.section,
|
|
2743
|
+
icon: entry.icon || 'ft-file',
|
|
2744
|
+
path: entry.path,
|
|
2745
|
+
entry
|
|
2746
|
+
}));
|
|
2747
|
+
const personName = (person) => [person.first_name, person.last_name].filter(Boolean).join(' ').trim();
|
|
2748
|
+
/** `/members/:slug` — the same destination the legacy search results page used. */
|
|
2749
|
+
const personItems = (people) => (people ?? [])
|
|
2750
|
+
.filter(person => person?.slug && (personName(person) || person.email))
|
|
2751
|
+
.slice(0, MAX_PER_GROUP)
|
|
2752
|
+
.map(person => ({
|
|
2753
|
+
id: `person:${person.slug}`,
|
|
2754
|
+
kind: 'person',
|
|
2755
|
+
label: personName(person) || person.email,
|
|
2756
|
+
detail: person.email ?? '',
|
|
2757
|
+
icon: 'ft-user',
|
|
2758
|
+
path: `/members/${person.slug}`
|
|
2759
|
+
}));
|
|
2760
|
+
/**
|
|
2761
|
+
* The jump-back list. Unscored and unsorted: `RecentPagesService` already returns
|
|
2762
|
+
* them newest-first, and re-ranking recency by name would defeat the point.
|
|
2763
|
+
*/
|
|
2764
|
+
const recentItems = (entries) => (entries ?? []).slice(0, MAX_PER_GROUP).map(entry => ({
|
|
2765
|
+
id: `recent:${entry.path}`,
|
|
2766
|
+
kind: 'page',
|
|
2767
|
+
label: entry.title,
|
|
2768
|
+
detail: entry.section,
|
|
2769
|
+
icon: entry.icon || 'ft-clock',
|
|
2770
|
+
path: entry.path,
|
|
2771
|
+
entry
|
|
2772
|
+
}));
|
|
2773
|
+
const askAiItem = (query) => ({
|
|
2774
|
+
id: 'ask-ai',
|
|
2775
|
+
kind: 'ask-ai',
|
|
2776
|
+
label: query,
|
|
2777
|
+
detail: '',
|
|
2778
|
+
icon: 'fas fa-wand-magic-sparkles'
|
|
2779
|
+
});
|
|
2780
|
+
/**
|
|
2781
|
+
* Assemble the rendered groups.
|
|
2782
|
+
*
|
|
2783
|
+
* `Recent` leads when it has anything, because on an empty query it is a far
|
|
2784
|
+
* better first row than the alphabetical head of the full page list.
|
|
2785
|
+
*
|
|
2786
|
+
* `ask-ai` is pinned last and ALWAYS present, including on the empty-query
|
|
2787
|
+
* shortlist — it is the standing escape hatch when the palette (a known-item
|
|
2788
|
+
* finder) is the wrong tool for the question, so it must be discoverable before
|
|
2789
|
+
* the user has typed anything.
|
|
2790
|
+
*/
|
|
2791
|
+
const buildGroups = (sources) => {
|
|
2792
|
+
const groups = [];
|
|
2793
|
+
if (sources.recents?.length) {
|
|
2794
|
+
groups.push({ labelKey: 'CommandPalette.Group.Recent', items: sources.recents });
|
|
2795
|
+
}
|
|
2796
|
+
if (sources.pages.length) {
|
|
2797
|
+
groups.push({ labelKey: 'CommandPalette.Group.Pages', items: sources.pages });
|
|
2798
|
+
}
|
|
2799
|
+
if (sources.people.length) {
|
|
2800
|
+
groups.push({ labelKey: 'CommandPalette.Group.People', items: sources.people });
|
|
2801
|
+
}
|
|
2802
|
+
if (sources.switches?.length) {
|
|
2803
|
+
groups.push({ labelKey: 'CommandPalette.Group.Switch', items: sources.switches });
|
|
2804
|
+
}
|
|
2805
|
+
if (sources.actions?.length) {
|
|
2806
|
+
groups.push({ labelKey: 'CommandPalette.Group.Actions', items: sources.actions });
|
|
2807
|
+
}
|
|
2808
|
+
groups.push({
|
|
2809
|
+
labelKey: 'CommandPalette.Group.Ask',
|
|
2810
|
+
items: [askAiItem(sources.query.trim())]
|
|
2811
|
+
});
|
|
2812
|
+
return groups;
|
|
2813
|
+
};
|
|
2814
|
+
/** Flatten groups back to a single ordered list for keyboard traversal. */
|
|
2815
|
+
const flattenItems = (groups) => groups.flatMap(group => group.items);
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* The palette's own commands.
|
|
2819
|
+
*
|
|
2820
|
+
* Deliberately short. Anything that is really a destination belongs in the
|
|
2821
|
+
* navigation index, where it arrives with the permission gating already applied —
|
|
2822
|
+
* an action row carries no such gate, so every entry here must be safe for any
|
|
2823
|
+
* signed-in user.
|
|
2824
|
+
*/
|
|
2825
|
+
const PALETTE_ACTIONS = [
|
|
2826
|
+
{
|
|
2827
|
+
id: 'copy-link',
|
|
2828
|
+
labelKey: 'CommandPalette.Action.CopyLink',
|
|
2829
|
+
icon: 'fas fa-link'
|
|
2830
|
+
},
|
|
2831
|
+
{
|
|
2832
|
+
id: 'log-out',
|
|
2833
|
+
labelKey: 'CommandPalette.Action.LogOut',
|
|
2834
|
+
icon: 'fas fa-arrow-right-from-bracket'
|
|
2835
|
+
}
|
|
2836
|
+
];
|
|
2837
|
+
/** Below this, a query is too weak to be a deliberate command request. */
|
|
2838
|
+
const MIN_QUERY = 2;
|
|
2839
|
+
/**
|
|
2840
|
+
* Actions matching the typed query, ranked with the same scorer as pages.
|
|
2841
|
+
*
|
|
2842
|
+
* Requires a real query on purpose: `log-out` must never sit on the empty-query
|
|
2843
|
+
* shortlist, where the keyboard's default row is one Enter away.
|
|
2844
|
+
*/
|
|
2845
|
+
const actionItems = (query, translate, defs = PALETTE_ACTIONS) => {
|
|
2846
|
+
const needle = (query ?? '').trim();
|
|
2847
|
+
if (needle.length < MIN_QUERY) {
|
|
2848
|
+
return [];
|
|
2849
|
+
}
|
|
2850
|
+
return defs
|
|
2851
|
+
.map(def => ({ def, label: translate(def.labelKey) }))
|
|
2852
|
+
.map(({ def, label }) => ({ def, label, score: scoreEntry(label, '', needle) }))
|
|
2853
|
+
.filter(scored => scored.score >= 0)
|
|
2854
|
+
.sort((a, b) => b.score - a.score || a.label.localeCompare(b.label))
|
|
2855
|
+
.map(({ def, label }) => ({
|
|
2856
|
+
id: `action:${def.id}`,
|
|
2857
|
+
kind: 'action',
|
|
2858
|
+
label,
|
|
2859
|
+
labelKey: def.labelKey,
|
|
2860
|
+
detail: '',
|
|
2861
|
+
icon: def.icon,
|
|
2862
|
+
action: def.id
|
|
2863
|
+
}));
|
|
2864
|
+
};
|
|
2865
|
+
|
|
2866
|
+
/** Shown without a query too, so switching is discoverable — but kept short there. */
|
|
2867
|
+
const BROWSE_LIMIT = 3;
|
|
2868
|
+
const MATCH_LIMIT = 6;
|
|
2869
|
+
/**
|
|
2870
|
+
* Switching only means something across subscriptions. A user in one subscription
|
|
2871
|
+
* — however many products it carries — has nowhere to switch to, so the whole
|
|
2872
|
+
* group is withheld rather than offering the product they are already in.
|
|
2873
|
+
*/
|
|
2874
|
+
const spansSubscriptions = (products) => new Set(products.map(product => product.subscriptionId)).size > 1;
|
|
2875
|
+
const isCurrent = (product, context) => !!context.currentSubscriptionId &&
|
|
2876
|
+
product.subscriptionId === context.currentSubscriptionId &&
|
|
2877
|
+
product.path === context.currentPath;
|
|
2878
|
+
/**
|
|
2879
|
+
* "Switch to" rows — one per product the user belongs to, in another subscription
|
|
2880
|
+
* or another product of the same one.
|
|
2881
|
+
*
|
|
2882
|
+
* These are `page` rows carrying a `product`, not a new item kind, so activation
|
|
2883
|
+
* goes through `NavigationIndexService.open()` — the same verified path a deep
|
|
2884
|
+
* page in a foreign product already uses. The entry's `path` is empty on purpose:
|
|
2885
|
+
* the sidebar's switcher reads a falsy target as "this product's own dashboard"
|
|
2886
|
+
* and resolves the subscription slug itself, which is the one place that mapping
|
|
2887
|
+
* is known to be correct.
|
|
2888
|
+
*
|
|
2889
|
+
* The row is named for the **organisation**, because that is what a user switching
|
|
2890
|
+
* context is actually choosing; the product name is the detail line.
|
|
2891
|
+
*/
|
|
2892
|
+
const switchItems = (products, query, context = {}) => {
|
|
2893
|
+
const needle = (query ?? '').trim();
|
|
2894
|
+
const switchable = (products ?? []).filter(product => !!product?.subscriptionId);
|
|
2895
|
+
if (!spansSubscriptions(switchable)) {
|
|
2896
|
+
return [];
|
|
2897
|
+
}
|
|
2898
|
+
const candidates = switchable.filter(product => !isCurrent(product, context));
|
|
2899
|
+
const scored = needle
|
|
2900
|
+
? candidates
|
|
2901
|
+
.map(product => ({
|
|
2902
|
+
product,
|
|
2903
|
+
score: scoreEntry(product.organisation ?? '', product.title ?? '', needle)
|
|
2904
|
+
}))
|
|
2905
|
+
.filter(entry => entry.score >= 0)
|
|
2906
|
+
.sort((a, b) => b.score - a.score)
|
|
2907
|
+
.slice(0, MATCH_LIMIT)
|
|
2908
|
+
.map(entry => entry.product)
|
|
2909
|
+
: candidates.slice(0, BROWSE_LIMIT);
|
|
2910
|
+
return scored.map(product => {
|
|
2911
|
+
const label = product.organisation ?? product.title ?? '';
|
|
2912
|
+
const detail = product.organisation ? (product.title ?? '') : '';
|
|
2913
|
+
return {
|
|
2914
|
+
id: `switch:${product.subscriptionId}:${product.path}`,
|
|
2915
|
+
kind: 'page',
|
|
2916
|
+
label,
|
|
2917
|
+
detail,
|
|
2918
|
+
icon: 'fas fa-building',
|
|
2919
|
+
entry: {
|
|
2920
|
+
title: label,
|
|
2921
|
+
path: '',
|
|
2922
|
+
icon: 'fas fa-building',
|
|
2923
|
+
section: detail,
|
|
2924
|
+
product
|
|
2925
|
+
}
|
|
2926
|
+
};
|
|
2927
|
+
});
|
|
2928
|
+
};
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Turn the raw sources into rendered groups.
|
|
2932
|
+
*
|
|
2933
|
+
* Pure so the two precedence rules that shape the panel are testable without a
|
|
2934
|
+
* TestBed:
|
|
2935
|
+
*
|
|
2936
|
+
* 1. On an EMPTY query, recents replace the page list rather than sitting above
|
|
2937
|
+
* it. With no query every page scores 0, so `pageItems` falls back to
|
|
2938
|
+
* alphabetical order — six arbitrary names. Recent history is strictly more
|
|
2939
|
+
* useful, and showing both buries it.
|
|
2940
|
+
* 2. People only appear once something is typed. The list is a remote search;
|
|
2941
|
+
* there is nothing to show for an empty query.
|
|
2942
|
+
*/
|
|
2943
|
+
const composeGroups = (sources) => {
|
|
2944
|
+
const typed = sources.query.trim();
|
|
2945
|
+
const entries = sources.navIndex.entries();
|
|
2946
|
+
const recents = typed ? [] : recentItems(sources.recents.resolve(entries, sources.currentUrl));
|
|
2947
|
+
const pages = typed || !recents.length ? pageItems(entries, sources.query) : [];
|
|
2948
|
+
return buildGroups({
|
|
2949
|
+
recents,
|
|
2950
|
+
pages,
|
|
2951
|
+
people: typed ? sources.people : [],
|
|
2952
|
+
switches: sources.navIndex.canSwitch()
|
|
2953
|
+
? switchItems(sources.navIndex.switchTargets(), sources.query, {
|
|
2954
|
+
currentPath: sources.current?.path,
|
|
2955
|
+
currentSubscriptionId: sources.current?.subscriptionId
|
|
2956
|
+
})
|
|
2957
|
+
: [],
|
|
2958
|
+
actions: actionItems(sources.query, sources.translate),
|
|
2959
|
+
query: sources.query
|
|
2960
|
+
});
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2963
|
+
/**
|
|
2964
|
+
* Keyboard position within the flattened row list.
|
|
2965
|
+
*
|
|
2966
|
+
* Extracted from the component so the component stays inside C1 while gaining
|
|
2967
|
+
* the recents/actions sources; it is also the only piece of palette state with
|
|
2968
|
+
* wrap-around arithmetic worth testing on its own.
|
|
2969
|
+
*/
|
|
2970
|
+
class PaletteCursor {
|
|
2971
|
+
constructor() {
|
|
2972
|
+
this.index = 0;
|
|
2973
|
+
}
|
|
2974
|
+
get position() {
|
|
2975
|
+
return this.index;
|
|
2976
|
+
}
|
|
2977
|
+
reset() {
|
|
2978
|
+
this.index = 0;
|
|
2979
|
+
}
|
|
2980
|
+
/** Wraps at both ends; a no-op while there is nothing to move through. */
|
|
2981
|
+
move(delta, length) {
|
|
2982
|
+
if (length <= 0) {
|
|
2983
|
+
this.index = 0;
|
|
2984
|
+
return;
|
|
2985
|
+
}
|
|
2986
|
+
this.index = (this.index + delta + length) % length;
|
|
2987
|
+
}
|
|
2988
|
+
/** The row the keyboard is on, or undefined once the list has emptied. */
|
|
2989
|
+
current(items) {
|
|
2990
|
+
return items[this.index];
|
|
2991
|
+
}
|
|
2992
|
+
isActive(items, item) {
|
|
2993
|
+
return this.current(items)?.id === item.id;
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
/**
|
|
2998
|
+
* Native <dialog> plumbing for the command palette.
|
|
2999
|
+
*
|
|
3000
|
+
* Split out of the component so `command-palette.component.ts` stays inside the
|
|
3001
|
+
* 200-line ceiling, and so the DOM-level behaviour can be exercised directly.
|
|
3002
|
+
*
|
|
3003
|
+
* Feature detection is NOT defensive padding: jsdom 26 ships `HTMLDialogElement`
|
|
3004
|
+
* with a working `open` property but no `showModal()` / `close()` methods, so a
|
|
3005
|
+
* bare call throws `showModal is not a function` under Jest. Falling back to the
|
|
3006
|
+
* `open` attribute keeps specs meaningful — `open` is what `showModal()` sets in
|
|
3007
|
+
* a real browser anyway, so both paths leave the element in the same state.
|
|
3008
|
+
*/
|
|
3009
|
+
/** Drive the <dialog> to match the palette's open state. Idempotent. */
|
|
3010
|
+
function syncPaletteDialog(dialog, isOpen) {
|
|
3011
|
+
if (!dialog) {
|
|
3012
|
+
return;
|
|
3013
|
+
}
|
|
3014
|
+
if (isOpen && !dialog.open) {
|
|
3015
|
+
openDialog(dialog);
|
|
3016
|
+
}
|
|
3017
|
+
else if (!isOpen && dialog.open) {
|
|
3018
|
+
closeDialog(dialog);
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Close the palette when a click lands on the ::backdrop.
|
|
3023
|
+
*
|
|
3024
|
+
* A modal <dialog>'s backdrop is a pseudo-element with no node of its own, so
|
|
3025
|
+
* the click surfaces with the dialog box itself as `target` — something a click
|
|
3026
|
+
* on any content never produces. Bound imperatively rather than declared in the
|
|
3027
|
+
* template on purpose: the markup then carries no mouse-only close affordance,
|
|
3028
|
+
* and Escape remains the documented keyboard equivalent.
|
|
3029
|
+
*
|
|
3030
|
+
* Returns a teardown for ngOnDestroy.
|
|
3031
|
+
*/
|
|
3032
|
+
function bindBackdropDismiss(dialog, onDismiss) {
|
|
3033
|
+
if (!dialog) {
|
|
3034
|
+
return () => undefined;
|
|
3035
|
+
}
|
|
3036
|
+
const handler = (event) => {
|
|
3037
|
+
if (event.target === dialog) {
|
|
3038
|
+
onDismiss();
|
|
3039
|
+
}
|
|
3040
|
+
};
|
|
3041
|
+
dialog.addEventListener('click', handler);
|
|
3042
|
+
return () => dialog.removeEventListener('click', handler);
|
|
3043
|
+
}
|
|
3044
|
+
function openDialog(dialog) {
|
|
3045
|
+
if (typeof dialog.showModal === 'function') {
|
|
3046
|
+
dialog.showModal();
|
|
3047
|
+
}
|
|
3048
|
+
else {
|
|
3049
|
+
dialog.setAttribute('open', '');
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
function closeDialog(dialog) {
|
|
3053
|
+
if (typeof dialog.close === 'function') {
|
|
3054
|
+
dialog.close();
|
|
3055
|
+
}
|
|
3056
|
+
else {
|
|
3057
|
+
dialog.removeAttribute('open');
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
/**
|
|
3061
|
+
* Bind the native <dialog> once the view exists, and apply any open state that
|
|
3062
|
+
* raced the view's arrival (the palette can be opened from ⌘K before
|
|
3063
|
+
* `ngAfterViewInit` runs).
|
|
3064
|
+
*
|
|
3065
|
+
* Returns the backdrop-listener release function.
|
|
3066
|
+
*/
|
|
3067
|
+
const attachDialog = (dialog, onDismiss, isOpen) => {
|
|
3068
|
+
const release = bindBackdropDismiss(dialog, onDismiss);
|
|
3069
|
+
syncPaletteDialog(dialog, isOpen);
|
|
3070
|
+
return release;
|
|
3071
|
+
};
|
|
3072
|
+
|
|
3073
|
+
/** The global open/close chord. Ctrl on Windows and Linux, ⌘ on a Mac. */
|
|
3074
|
+
const isToggleShortcut = (event) => (event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'k';
|
|
3075
|
+
const listAction = (event) => {
|
|
3076
|
+
if (event.key === 'ArrowDown') {
|
|
3077
|
+
return 'down';
|
|
3078
|
+
}
|
|
3079
|
+
if (event.key === 'ArrowUp') {
|
|
3080
|
+
return 'up';
|
|
3081
|
+
}
|
|
3082
|
+
return event.key === 'Enter' ? 'enter' : null;
|
|
3083
|
+
};
|
|
3084
|
+
/**
|
|
3085
|
+
* The chord as a user should read it. `navigator.platform` is deprecated but is
|
|
3086
|
+
* still the only synchronous signal here; a wrong guess costs a wrong hint, not
|
|
3087
|
+
* a broken shortcut, since the handler accepts either modifier.
|
|
3088
|
+
*/
|
|
3089
|
+
const shortcutHint = () => /Mac|iPhone|iPad/i.test(navigator?.platform ?? '') ? '⌘K' : 'Ctrl K';
|
|
3090
|
+
|
|
3091
|
+
/** Only hit the people endpoint once typing settles, and not for one letter. */
|
|
3092
|
+
const PEOPLE_DEBOUNCE_MS = 250;
|
|
3093
|
+
const PEOPLE_MIN_CHARS = 2;
|
|
3094
|
+
/**
|
|
3095
|
+
* Debounced people lookup, mapped straight to palette rows.
|
|
3096
|
+
*
|
|
3097
|
+
* Lifted out of the component so `command-palette.component.ts` keeps to the
|
|
3098
|
+
* 200-line ceiling once the native-dialog plumbing lands beside it.
|
|
3099
|
+
*/
|
|
3100
|
+
function peopleSearch(queryChanges, dashboard) {
|
|
3101
|
+
return queryChanges.pipe(debounceTime(PEOPLE_DEBOUNCE_MS), distinctUntilChanged(), switchMap(term => fetchPeople(dashboard, term)), map(people => personItems(people)));
|
|
3102
|
+
}
|
|
3103
|
+
function fetchPeople(dashboard, term) {
|
|
3104
|
+
const subscriptionId = PermissionService.selectedSubscription?.id;
|
|
3105
|
+
if (term.length < PEOPLE_MIN_CHARS || !subscriptionId) {
|
|
3106
|
+
return of([]);
|
|
3107
|
+
}
|
|
3108
|
+
// A failed lookup must not blank the palette — pages still render. The catch
|
|
3109
|
+
// sits INSIDE the inner observable so it never tears down the outer stream.
|
|
3110
|
+
return dashboard.search(term, subscriptionId).pipe(map(response => response?.users ?? []), catchError(() => of([])));
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
class CommandPaletteComponent {
|
|
3114
|
+
constructor(palette, navIndex, dashboard, recents, sidebar, router, transloco, cdr, appConfigService, toast) {
|
|
3115
|
+
this.palette = palette;
|
|
3116
|
+
this.navIndex = navIndex;
|
|
3117
|
+
this.dashboard = dashboard;
|
|
3118
|
+
this.recents = recents;
|
|
3119
|
+
this.sidebar = sidebar;
|
|
3120
|
+
this.router = router;
|
|
3121
|
+
this.transloco = transloco;
|
|
3122
|
+
this.cdr = cdr;
|
|
3123
|
+
this.appConfigService = appConfigService;
|
|
3124
|
+
this.toast = toast;
|
|
3125
|
+
this.isOpen = false;
|
|
3126
|
+
this.query = '';
|
|
3127
|
+
this.groups = [];
|
|
3128
|
+
this.brandName = DEFAULT_BRAND;
|
|
3129
|
+
this.shortcutHint = shortcutHint();
|
|
3130
|
+
this.cursor = new PaletteCursor();
|
|
3131
|
+
this.flat = [];
|
|
3132
|
+
this.queryChanges = new Subject();
|
|
3133
|
+
this.destroy$ = new Subject();
|
|
3134
|
+
this.people = [];
|
|
3135
|
+
this.releaseBackdrop = () => undefined;
|
|
3136
|
+
}
|
|
3137
|
+
ngOnInit() {
|
|
3138
|
+
brandName$(this.appConfigService)
|
|
3139
|
+
.pipe(takeUntil(this.destroy$))
|
|
3140
|
+
.subscribe(name => {
|
|
3141
|
+
this.brandName = name;
|
|
3142
|
+
this.cdr.markForCheck();
|
|
3143
|
+
});
|
|
3144
|
+
this.palette.isOpen$.pipe(takeUntil(this.destroy$)).subscribe(isOpen => {
|
|
3145
|
+
this.isOpen = isOpen;
|
|
3146
|
+
if (isOpen) {
|
|
3147
|
+
this.reset();
|
|
3148
|
+
}
|
|
3149
|
+
this.cdr.markForCheck();
|
|
3150
|
+
syncPaletteDialog(this.paletteDialog?.nativeElement, isOpen);
|
|
3151
|
+
});
|
|
3152
|
+
peopleSearch(this.queryChanges, this.dashboard)
|
|
3153
|
+
.pipe(takeUntil(this.destroy$))
|
|
3154
|
+
.subscribe(people => {
|
|
3155
|
+
this.people = people;
|
|
3156
|
+
this.rebuild();
|
|
3157
|
+
});
|
|
3158
|
+
}
|
|
3159
|
+
ngAfterViewInit() {
|
|
3160
|
+
this.releaseBackdrop = attachDialog(this.paletteDialog?.nativeElement, () => this.palette.close(), this.isOpen);
|
|
3161
|
+
}
|
|
3162
|
+
ngOnDestroy() {
|
|
3163
|
+
this.releaseBackdrop();
|
|
3164
|
+
this.destroy$.next();
|
|
3165
|
+
this.destroy$.complete();
|
|
3166
|
+
}
|
|
3167
|
+
/** A native close (Escape, or our own close()) mirrored back onto the service. */
|
|
3168
|
+
onDialogClose() {
|
|
3169
|
+
if (this.isOpen) {
|
|
3170
|
+
this.palette.close();
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
/** ⌘K / Ctrl-K opens from anywhere; Escape closes. */
|
|
3174
|
+
onDocumentKeydown(event) {
|
|
3175
|
+
if (isToggleShortcut(event)) {
|
|
3176
|
+
event.preventDefault();
|
|
3177
|
+
this.palette.toggle();
|
|
3178
|
+
}
|
|
3179
|
+
else if (event.key === 'Escape' && this.isOpen) {
|
|
3180
|
+
this.palette.close();
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
onQueryInput(value) {
|
|
3184
|
+
this.query = value;
|
|
3185
|
+
this.queryChanges.next(value.trim());
|
|
3186
|
+
this.rebuild();
|
|
3187
|
+
}
|
|
3188
|
+
onKeydown(event) {
|
|
3189
|
+
const action = listAction(event);
|
|
3190
|
+
if (!action) {
|
|
3191
|
+
return;
|
|
3192
|
+
}
|
|
3193
|
+
event.preventDefault();
|
|
3194
|
+
if (action === 'enter') {
|
|
3195
|
+
this.activate(this.cursor.current(this.flat));
|
|
3196
|
+
}
|
|
3197
|
+
else {
|
|
3198
|
+
this.cursor.move(action === 'down' ? 1 : -1, this.flat.length);
|
|
3199
|
+
this.cdr.markForCheck();
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
activate(item) {
|
|
3203
|
+
if (activateItem(item, this.activateDeps())) {
|
|
3204
|
+
this.palette.close();
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
isActive(item) {
|
|
3208
|
+
return this.cursor.isActive(this.flat, item);
|
|
3209
|
+
}
|
|
3210
|
+
activateDeps() {
|
|
3211
|
+
return buildActivateDeps({
|
|
3212
|
+
sidebar: this.sidebar,
|
|
3213
|
+
navIndex: this.navIndex,
|
|
3214
|
+
router: this.router,
|
|
3215
|
+
translate: key => this.transloco.translate(key),
|
|
3216
|
+
notify: this.toast
|
|
3217
|
+
});
|
|
3218
|
+
}
|
|
3219
|
+
rebuild() {
|
|
3220
|
+
this.groups = composeGroups({
|
|
3221
|
+
navIndex: this.navIndex,
|
|
3222
|
+
recents: this.recents,
|
|
3223
|
+
currentUrl: this.router.url,
|
|
3224
|
+
people: this.people,
|
|
3225
|
+
query: this.query,
|
|
3226
|
+
translate: key => this.transloco.translate(key),
|
|
3227
|
+
current: PermissionService.selectedProduct
|
|
3228
|
+
});
|
|
3229
|
+
this.flat = flattenItems(this.groups);
|
|
3230
|
+
this.cursor.reset();
|
|
3231
|
+
this.cdr.markForCheck();
|
|
3232
|
+
}
|
|
3233
|
+
reset() {
|
|
3234
|
+
this.query = '';
|
|
3235
|
+
this.people = [];
|
|
3236
|
+
this.rebuild();
|
|
3237
|
+
setTimeout(() => this.queryInput?.nativeElement?.focus());
|
|
3238
|
+
}
|
|
3239
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteComponent, deps: [{ token: CommandPaletteService }, { token: i1.NavigationIndexService }, { token: i1.DashboardService }, { token: i1.RecentPagesService }, { token: CollapsibleSidebarService }, { token: i2.Router }, { token: i5$1.TranslocoService }, { token: i0.ChangeDetectorRef }, { token: i2$1.AppConfigService, optional: true }, { token: i1.CustomToastService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3240
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: CommandPaletteComponent, isStandalone: false, selector: "pw-command-palette", host: { listeners: { "document:keydown": "onDocumentKeydown($event)" } }, viewQueries: [{ propertyName: "queryInput", first: true, predicate: ["queryInput"], descendants: true }, { propertyName: "paletteDialog", first: true, predicate: ["paletteDialog"], descendants: true }], ngImport: i0, template: "<!-- Navbar trigger \u2014 keeps the familiar search affordance, states the shortcut. -->\n<button type=\"button\"\n class=\"pw-palette-trigger\"\n (click)=\"palette.open()\"\n [attr.aria-label]=\"'CommandPalette.Trigger.Label' | transloco\">\n <i class=\"fas fa-magnifying-glass pw-palette-trigger-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-trigger-text\">{{ 'CommandPalette.Trigger.Text' | transloco }}</span>\n <kbd class=\"pw-palette-kbd pw-palette-trigger-kbd\">{{ shortcutHint }}</kbd>\n</button>\n\n<!--\n Native <dialog> opened with showModal(): the platform supplies the modal\n semantics this used to hand-roll \u2014 the implicit dialog role and modal flag, a real\n focus trap, inert background content, Escape-to-close, and a ::backdrop we\n style instead of painting our own overlay <div>.\n\n The element is always in the DOM (a closed <dialog> is display:none) so the\n component holds one stable handle to call showModal()/close() on; only the\n contents are gated on isOpen so the results list costs nothing while closed.\n-->\n<dialog #paletteDialog\n class=\"pw-palette\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\"\n (close)=\"onDialogClose()\">\n @if (isOpen) {\n <div class=\"pw-palette-search\">\n <i class=\"fas fa-magnifying-glass pw-palette-search-icon\" aria-hidden=\"true\"></i>\n <input #queryInput\n type=\"text\"\n class=\"pw-palette-field\"\n autocomplete=\"off\"\n [value]=\"query\"\n (input)=\"onQueryInput($any($event.target).value)\"\n (keydown)=\"onKeydown($event)\"\n [attr.placeholder]=\"'CommandPalette.Placeholder' | transloco\"\n [attr.aria-label]=\"'CommandPalette.Placeholder' | transloco\" />\n <kbd class=\"pw-palette-kbd\">esc</kbd>\n </div>\n\n <div class=\"pw-palette-results\">\n @for (group of groups; track group.labelKey) {\n <div class=\"pw-palette-group\">\n <p class=\"pw-palette-group-label\">{{ group.labelKey | transloco }}</p>\n @for (item of group.items; track item.id) {\n <button type=\"button\"\n class=\"pw-palette-row\"\n [class.is-active]=\"isActive(item)\"\n (click)=\"activate(item)\">\n <i class=\"pw-palette-row-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-row-label\">\n @if (item.kind === 'ask-ai') {\n {{ 'CommandPalette.Ask.Label' | transloco: { company: brandName } }}\n @if (item.label) {\n <span class=\"pw-palette-row-prefix\">\u2014 {{ item.label }}</span>\n }\n } @else if (item.labelKey) {\n <!-- Action rows are chrome, so they translate (C17); page and\n person rows render the data's own text. -->\n {{ item.labelKey | transloco }}\n } @else {\n {{ item.label }}\n }\n </span>\n @if (item.detail) {\n <span class=\"pw-palette-row-detail\">{{ item.detail }}</span>\n }\n </button>\n }\n </div>\n } @empty {\n <div class=\"pw-palette-empty\">\n <p class=\"pw-palette-empty-title\">{{ 'CommandPalette.Empty.Title' | transloco }}</p>\n <p class=\"pw-palette-empty-hint\">{{ 'CommandPalette.Empty.Hint' | transloco }}</p>\n </div>\n }\n </div>\n\n <div class=\"pw-palette-footer\">\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u2191\u2193</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u21B5</kbd>{{ 'CommandPalette.Hint.Open' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">esc</kbd>{{ 'CommandPalette.Hint.Close' | transloco }}</span>\n </div>\n }\n</dialog>\n", 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"], dependencies: [{ kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3241
|
+
}
|
|
3242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: CommandPaletteComponent, decorators: [{
|
|
3243
|
+
type: Component,
|
|
3244
|
+
args: [{ selector: 'pw-command-palette', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<!-- Navbar trigger \u2014 keeps the familiar search affordance, states the shortcut. -->\n<button type=\"button\"\n class=\"pw-palette-trigger\"\n (click)=\"palette.open()\"\n [attr.aria-label]=\"'CommandPalette.Trigger.Label' | transloco\">\n <i class=\"fas fa-magnifying-glass pw-palette-trigger-icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-trigger-text\">{{ 'CommandPalette.Trigger.Text' | transloco }}</span>\n <kbd class=\"pw-palette-kbd pw-palette-trigger-kbd\">{{ shortcutHint }}</kbd>\n</button>\n\n<!--\n Native <dialog> opened with showModal(): the platform supplies the modal\n semantics this used to hand-roll \u2014 the implicit dialog role and modal flag, a real\n focus trap, inert background content, Escape-to-close, and a ::backdrop we\n style instead of painting our own overlay <div>.\n\n The element is always in the DOM (a closed <dialog> is display:none) so the\n component holds one stable handle to call showModal()/close() on; only the\n contents are gated on isOpen so the results list costs nothing while closed.\n-->\n<dialog #paletteDialog\n class=\"pw-palette\"\n [attr.aria-label]=\"'CommandPalette.Aria.Dialog' | transloco\"\n (close)=\"onDialogClose()\">\n @if (isOpen) {\n <div class=\"pw-palette-search\">\n <i class=\"fas fa-magnifying-glass pw-palette-search-icon\" aria-hidden=\"true\"></i>\n <input #queryInput\n type=\"text\"\n class=\"pw-palette-field\"\n autocomplete=\"off\"\n [value]=\"query\"\n (input)=\"onQueryInput($any($event.target).value)\"\n (keydown)=\"onKeydown($event)\"\n [attr.placeholder]=\"'CommandPalette.Placeholder' | transloco\"\n [attr.aria-label]=\"'CommandPalette.Placeholder' | transloco\" />\n <kbd class=\"pw-palette-kbd\">esc</kbd>\n </div>\n\n <div class=\"pw-palette-results\">\n @for (group of groups; track group.labelKey) {\n <div class=\"pw-palette-group\">\n <p class=\"pw-palette-group-label\">{{ group.labelKey | transloco }}</p>\n @for (item of group.items; track item.id) {\n <button type=\"button\"\n class=\"pw-palette-row\"\n [class.is-active]=\"isActive(item)\"\n (click)=\"activate(item)\">\n <i class=\"pw-palette-row-icon\" [ngClass]=\"item.icon\" aria-hidden=\"true\"></i>\n <span class=\"pw-palette-row-label\">\n @if (item.kind === 'ask-ai') {\n {{ 'CommandPalette.Ask.Label' | transloco: { company: brandName } }}\n @if (item.label) {\n <span class=\"pw-palette-row-prefix\">\u2014 {{ item.label }}</span>\n }\n } @else if (item.labelKey) {\n <!-- Action rows are chrome, so they translate (C17); page and\n person rows render the data's own text. -->\n {{ item.labelKey | transloco }}\n } @else {\n {{ item.label }}\n }\n </span>\n @if (item.detail) {\n <span class=\"pw-palette-row-detail\">{{ item.detail }}</span>\n }\n </button>\n }\n </div>\n } @empty {\n <div class=\"pw-palette-empty\">\n <p class=\"pw-palette-empty-title\">{{ 'CommandPalette.Empty.Title' | transloco }}</p>\n <p class=\"pw-palette-empty-hint\">{{ 'CommandPalette.Empty.Hint' | transloco }}</p>\n </div>\n }\n </div>\n\n <div class=\"pw-palette-footer\">\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u2191\u2193</kbd>{{ 'CommandPalette.Hint.Navigate' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">\u21B5</kbd>{{ 'CommandPalette.Hint.Open' | transloco }}</span>\n <span class=\"pw-palette-hint\"><kbd class=\"pw-palette-kbd\">esc</kbd>{{ 'CommandPalette.Hint.Close' | transloco }}</span>\n </div>\n }\n</dialog>\n", 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"] }]
|
|
3245
|
+
}], ctorParameters: () => [{ type: CommandPaletteService }, { type: i1.NavigationIndexService }, { type: i1.DashboardService }, { type: i1.RecentPagesService }, { type: CollapsibleSidebarService }, { type: i2.Router }, { type: i5$1.TranslocoService }, { type: i0.ChangeDetectorRef }, { type: i2$1.AppConfigService, decorators: [{
|
|
3246
|
+
type: Optional
|
|
3247
|
+
}] }, { type: i1.CustomToastService, decorators: [{
|
|
3248
|
+
type: Optional
|
|
3249
|
+
}] }], propDecorators: { queryInput: [{
|
|
3250
|
+
type: ViewChild,
|
|
3251
|
+
args: ['queryInput']
|
|
3252
|
+
}], paletteDialog: [{
|
|
3253
|
+
type: ViewChild,
|
|
3254
|
+
args: ['paletteDialog']
|
|
3255
|
+
}], onDocumentKeydown: [{
|
|
3256
|
+
type: HostListener,
|
|
3257
|
+
args: ['document:keydown', ['$event']]
|
|
3258
|
+
}] } });
|
|
3259
|
+
|
|
2414
3260
|
class ConfirmDialogComponent {
|
|
2415
3261
|
constructor(modal) {
|
|
2416
3262
|
this.modal = modal;
|
|
@@ -2496,7 +3342,7 @@ class ConfirmDialogComponent {
|
|
|
2496
3342
|
this.modal.dismiss(false);
|
|
2497
3343
|
}
|
|
2498
3344
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i5.NgbActiveModal }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2499
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: ConfirmDialogComponent, isStandalone: false, selector: "pw-confirm-dialog", inputs: { config: "config" }, ngImport: i0, template: "<div class=\"pw-confirm\"\n [class.pw-confirm--destructive]=\"tone === 'destructive'\"\n [class.pw-confirm--info]=\"tone === 'info'\"\n [class.pw-confirm--neutral]=\"tone === 'neutral'\">\n <div class=\"pw-confirm__header\">\n <span class=\"pw-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"iconClass\"></i>\n </span>\n <h5 class=\"pw-confirm__title\">\n @if (titleKey) {\n {{ titleKey | transloco: titleParams }}\n } @else {\n {{ titleRaw }}\n }\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-confirm__close\"\n [attr.aria-label]=\"cancelLabelKey | transloco\"\n (click)=\"cancel()\">\n </button>\n </div>\n\n <div class=\"pw-confirm__body\">\n @if (textKey) {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textKey | transloco: textParams\"></p>\n } @else {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textRaw\"></p>\n }\n </div>\n\n <div class=\"pw-confirm__footer\">\n @if (!config.confirmOnly) {\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"cancel()\">\n @if (cancelLabel) {\n {{ cancelLabel }}\n } @else {\n {{ cancelLabelKey | transloco }}\n }\n </button>\n }\n <button type=\"button\"\n [class]=\"confirmButtonClass\"\n (click)=\"confirm()\">\n @if (confirmLabel) {\n {{ confirmLabel }}\n } @else {\n {{ confirmLabelKey | transloco }}\n }\n </button>\n </div>\n</div>\n", 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"], dependencies: [{ kind: "pipe", type:
|
|
3345
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: ConfirmDialogComponent, isStandalone: false, selector: "pw-confirm-dialog", inputs: { config: "config" }, ngImport: i0, template: "<div class=\"pw-confirm\"\n [class.pw-confirm--destructive]=\"tone === 'destructive'\"\n [class.pw-confirm--info]=\"tone === 'info'\"\n [class.pw-confirm--neutral]=\"tone === 'neutral'\">\n <div class=\"pw-confirm__header\">\n <span class=\"pw-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"iconClass\"></i>\n </span>\n <h5 class=\"pw-confirm__title\">\n @if (titleKey) {\n {{ titleKey | transloco: titleParams }}\n } @else {\n {{ titleRaw }}\n }\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-confirm__close\"\n [attr.aria-label]=\"cancelLabelKey | transloco\"\n (click)=\"cancel()\">\n </button>\n </div>\n\n <div class=\"pw-confirm__body\">\n @if (textKey) {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textKey | transloco: textParams\"></p>\n } @else {\n <p class=\"pw-confirm__message\"\n [innerHTML]=\"textRaw\"></p>\n }\n </div>\n\n <div class=\"pw-confirm__footer\">\n @if (!config.confirmOnly) {\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"cancel()\">\n @if (cancelLabel) {\n {{ cancelLabel }}\n } @else {\n {{ cancelLabelKey | transloco }}\n }\n </button>\n }\n <button type=\"button\"\n [class]=\"confirmButtonClass\"\n (click)=\"confirm()\">\n @if (confirmLabel) {\n {{ confirmLabel }}\n } @else {\n {{ confirmLabelKey | transloco }}\n }\n </button>\n </div>\n</div>\n", 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"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
2500
3346
|
}
|
|
2501
3347
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
|
2502
3348
|
type: Component,
|
|
@@ -2623,7 +3469,7 @@ class ChartBlockComponent {
|
|
|
2623
3469
|
{{ 'DynamicPage.State.' + (binding?.state || 'unavailable') | transloco }}
|
|
2624
3470
|
</div>
|
|
2625
3471
|
</div>
|
|
2626
|
-
`, isInline: true, styles: [".dyn-chart{border:1px solid var(--line, #e2e5ea);border-radius:8px;padding:16px;min-height:96px;background:var(--surface, #fff)}.dyn-chart__label{color:var(--ink-2, #5a6473);font-size:12px;font-weight:500;margin-bottom:8px}.dyn-chart__state{color:var(--ink-3, #7c8696);font-size:12px}\n"], dependencies: [{ kind: "pipe", type:
|
|
3472
|
+
`, isInline: true, styles: [".dyn-chart{border:1px solid var(--line, #e2e5ea);border-radius:8px;padding:16px;min-height:96px;background:var(--surface, #fff)}.dyn-chart__label{color:var(--ink-2, #5a6473);font-size:12px;font-weight:500;margin-bottom:8px}.dyn-chart__state{color:var(--ink-3, #7c8696);font-size:12px}\n"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
2627
3473
|
}
|
|
2628
3474
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ChartBlockComponent, decorators: [{
|
|
2629
3475
|
type: Component,
|
|
@@ -2696,7 +3542,7 @@ class DataTableBlockComponent {
|
|
|
2696
3542
|
{{ 'DynamicPage.State.' + stateKey | transloco }}
|
|
2697
3543
|
</div>
|
|
2698
3544
|
}
|
|
2699
|
-
`, isInline: true, styles: [".dyn-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.dyn-table th,.dyn-table td{border-bottom:1px solid var(--line, #e2e5ea);padding:8px 12px;text-align:left;font-size:14px}.dyn-table th{color:var(--ink-2, #5a6473);font-weight:500}.dyn-table__state{color:var(--ink-3, #7c8696);font-size:12px;padding:12px}\n"], dependencies: [{ kind: "pipe", type:
|
|
3545
|
+
`, isInline: true, styles: [".dyn-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.dyn-table th,.dyn-table td{border-bottom:1px solid var(--line, #e2e5ea);padding:8px 12px;text-align:left;font-size:14px}.dyn-table th{color:var(--ink-2, #5a6473);font-weight:500}.dyn-table__state{color:var(--ink-3, #7c8696);font-size:12px;padding:12px}\n"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
2700
3546
|
}
|
|
2701
3547
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: DataTableBlockComponent, decorators: [{
|
|
2702
3548
|
type: Component,
|
|
@@ -2843,7 +3689,7 @@ class StatCardBlockComponent {
|
|
|
2843
3689
|
</div>
|
|
2844
3690
|
}
|
|
2845
3691
|
</div>
|
|
2846
|
-
`, isInline: true, styles: [".dyn-card{border:1px solid var(--line, #e2e5ea);border-radius:8px;padding:16px;background:var(--surface, #fff)}.dyn-card__label{color:var(--ink-2, #5a6473);font-size:12px;font-weight:500}.dyn-card__value{color:var(--ink, #1a1d21);font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.dyn-card__state{color:var(--ink-3, #7c8696);font-size:12px}\n"], dependencies: [{ kind: "pipe", type:
|
|
3692
|
+
`, isInline: true, styles: [".dyn-card{border:1px solid var(--line, #e2e5ea);border-radius:8px;padding:16px;background:var(--surface, #fff)}.dyn-card__label{color:var(--ink-2, #5a6473);font-size:12px;font-weight:500}.dyn-card__value{color:var(--ink, #1a1d21);font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.dyn-card__state{color:var(--ink-3, #7c8696);font-size:12px}\n"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
2847
3693
|
}
|
|
2848
3694
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: StatCardBlockComponent, decorators: [{
|
|
2849
3695
|
type: Component,
|
|
@@ -3037,7 +3883,7 @@ class PwDynamicPageComponent {
|
|
|
3037
3883
|
this.refs = [];
|
|
3038
3884
|
this.host?.clear();
|
|
3039
3885
|
}
|
|
3040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwDynamicPageComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i1.FeatureFlagService }, { token: i1.UserService, optional: true }, { token: CollapsibleSidebarService, optional: true }, { token:
|
|
3886
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwDynamicPageComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i1.FeatureFlagService }, { token: i1.UserService, optional: true }, { token: CollapsibleSidebarService, optional: true }, { token: i2$1.AppConfigService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3041
3887
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PwDynamicPageComponent, isStandalone: false, selector: "pw-dynamic-page", inputs: { config: "config" }, viewQueries: [{ propertyName: "host", first: true, predicate: ["host"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: `
|
|
3042
3888
|
@if (enabled) {
|
|
3043
3889
|
<div class="dyn-page"><ng-container #host></ng-container></div>
|
|
@@ -3053,7 +3899,7 @@ class PwDynamicPageComponent {
|
|
|
3053
3899
|
</div>
|
|
3054
3900
|
}
|
|
3055
3901
|
}
|
|
3056
|
-
`, isInline: true, styles: [".dyn-page{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}:host ::ng-deep .dyn-page>*{grid-column:span 12}.dyn-empty{border:1px solid var(--line, #e2e5ea);border-radius:8px;background:var(--surface, #fff);padding:48px 24px;text-align:center}.dyn-empty__title{color:var(--ink, #1a1d21);font-size:17px;font-weight:700;margin-bottom:4px}.dyn-empty__hint{color:var(--ink-3, #7c8696);font-size:14px;margin:0 auto 16px;max-width:420px}\n"], dependencies: [{ kind: "pipe", type:
|
|
3902
|
+
`, isInline: true, styles: [".dyn-page{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}:host ::ng-deep .dyn-page>*{grid-column:span 12}.dyn-empty{border:1px solid var(--line, #e2e5ea);border-radius:8px;background:var(--surface, #fff);padding:48px 24px;text-align:center}.dyn-empty__title{color:var(--ink, #1a1d21);font-size:17px;font-weight:700;margin-bottom:4px}.dyn-empty__hint{color:var(--ink-3, #7c8696);font-size:14px;margin:0 auto 16px;max-width:420px}\n"], dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
3057
3903
|
}
|
|
3058
3904
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwDynamicPageComponent, decorators: [{
|
|
3059
3905
|
type: Component,
|
|
@@ -3077,7 +3923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
3077
3923
|
type: Optional
|
|
3078
3924
|
}] }, { type: CollapsibleSidebarService, decorators: [{
|
|
3079
3925
|
type: Optional
|
|
3080
|
-
}] }, { type:
|
|
3926
|
+
}] }, { type: i2$1.AppConfigService, decorators: [{
|
|
3081
3927
|
type: Optional
|
|
3082
3928
|
}] }], propDecorators: { host: [{
|
|
3083
3929
|
type: ViewChild,
|
|
@@ -3121,7 +3967,7 @@ class HeaderComponent extends AppBaseComponent {
|
|
|
3121
3967
|
this.cdr.markForCheck();
|
|
3122
3968
|
}
|
|
3123
3969
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: HeaderComponent, deps: [{ token: i0.Injector }, { token: i1.AuthService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3124
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: HeaderComponent, isStandalone: false, selector: "pw-header", inputs: { landing: "landing" }, usesInheritance: true, ngImport: i0, template: "<header class=\"pw-bar\" [class.pw-bar--solid]=\"!landing\">\n <div class=\"pw-bar__inner\">\n <a class=\"pw-bar__brand\" href=\"/\">\n @if (logo) {\n <img class=\"pw-bar__brand-logo\" [src]=\"logo\" alt=\"\" (error)=\"onLogoError()\" />\n }\n <span class=\"visually-hidden\">Home</span>\n </a>\n\n <div class=\"pw-bar__actions\">\n @if (!loggedIn) {\n <button type=\"button\" class=\"pw-bar__login\" (click)=\"navigateToLogin()\">\n {{ 'Button.Login' | transloco }}\n </button>\n }\n <a class=\"pw-bar__cta\" href=\"/\">\n {{ 'Button.Home' | transloco }}\n </a>\n <button type=\"button\"\n class=\"pw-bar__toggle\"\n [class.pw-bar__toggle--open]=\"!isMenuCollapsed\"\n [attr.aria-expanded]=\"!isMenuCollapsed\"\n aria-label=\"Toggle menu\"\n (click)=\"toggleMenu()\">\n <span></span><span></span><span></span>\n </button>\n </div>\n </div>\n</header>\n", 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-bar{position:fixed;top:0;left:0;right:0;z-index:50;padding:0 var(--lp-gutter, clamp(20px, 4vw, 48px));background:color-mix(in srgb,#f7f8fa 80%,transparent);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid transparent;transition:background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar--solid,.pw-bar:hover{background:#f7f8fa;border-bottom-color:#e2e5ea}.pw-bar__inner{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:32px;max-width:var(--lp-max-w-content, 1200px);margin:0 auto;padding:0;height:56px}.pw-bar__brand{display:inline-flex;align-items:center;text-decoration:none}.pw-bar__brand-logo{height:28px;width:auto;display:block;object-fit:contain}.pw-bar__actions{display:flex;align-items:center;gap:8px;justify-self:end}.pw-bar__login{background:transparent;border:0;padding:8px 16px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;cursor:pointer;transition:color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__login:hover,.pw-bar__login:focus-visible{color:#1a1d21;outline:none}.pw-bar__cta{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 24px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:var(--public-btn-radius);box-shadow:0 1px #0000000a;transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s cubic-bezier(.2,.7,.2,1),background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1);will-change:transform}.pw-bar__cta:hover,.pw-bar__cta:focus-visible{background:color-mix(in srgb,var(--first) 88%,#000 12%);border-color:color-mix(in srgb,var(--first) 88%,#000 12%);box-shadow:0 10px 24px -12px var(--first);color:#fff!important;outline:none;transform:translateY(-1px)}.pw-bar__toggle{width:40px;height:40px;display:none;place-items:center;background:transparent;border:0;cursor:pointer;padding:0}.pw-bar__toggle span{display:block;width:20px;height:1.5px;background:#1a1d21;margin:3px 0;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__toggle--open span:nth-child(1){transform:translateY(4.5px) rotate(45deg)}.pw-bar__toggle--open span:nth-child(2){opacity:0}.pw-bar__toggle--open span:nth-child(3){transform:translateY(-4.5px) rotate(-45deg)}@media(max-width:575px){.pw-bar__inner{padding:0 16px;height:60px}.pw-bar__brand-logo{height:24px}.pw-bar__cta{padding:0 16px;height:36px;font-size:13px}.pw-bar__login{padding:8px 10px;font-size:13px}}\n"], dependencies: [{ kind: "directive", type: i4.LazyImgDirective, selector: "img" }, { kind: "pipe", type:
|
|
3970
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: HeaderComponent, isStandalone: false, selector: "pw-header", inputs: { landing: "landing" }, usesInheritance: true, ngImport: i0, template: "<header class=\"pw-bar\" [class.pw-bar--solid]=\"!landing\">\n <div class=\"pw-bar__inner\">\n <a class=\"pw-bar__brand\" href=\"/\">\n @if (logo) {\n <img class=\"pw-bar__brand-logo\" [src]=\"logo\" alt=\"\" (error)=\"onLogoError()\" />\n }\n <span class=\"visually-hidden\">Home</span>\n </a>\n\n <div class=\"pw-bar__actions\">\n @if (!loggedIn) {\n <button type=\"button\" class=\"pw-bar__login\" (click)=\"navigateToLogin()\">\n {{ 'Button.Login' | transloco }}\n </button>\n }\n <a class=\"pw-bar__cta\" href=\"/\">\n {{ 'Button.Home' | transloco }}\n </a>\n <button type=\"button\"\n class=\"pw-bar__toggle\"\n [class.pw-bar__toggle--open]=\"!isMenuCollapsed\"\n [attr.aria-expanded]=\"!isMenuCollapsed\"\n aria-label=\"Toggle menu\"\n (click)=\"toggleMenu()\">\n <span></span><span></span><span></span>\n </button>\n </div>\n </div>\n</header>\n", 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-bar{position:fixed;top:0;left:0;right:0;z-index:50;padding:0 var(--lp-gutter, clamp(20px, 4vw, 48px));background:color-mix(in srgb,#f7f8fa 80%,transparent);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid transparent;transition:background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar--solid,.pw-bar:hover{background:#f7f8fa;border-bottom-color:#e2e5ea}.pw-bar__inner{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:32px;max-width:var(--lp-max-w-content, 1200px);margin:0 auto;padding:0;height:56px}.pw-bar__brand{display:inline-flex;align-items:center;text-decoration:none}.pw-bar__brand-logo{height:28px;width:auto;display:block;object-fit:contain}.pw-bar__actions{display:flex;align-items:center;gap:8px;justify-self:end}.pw-bar__login{background:transparent;border:0;padding:8px 16px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;cursor:pointer;transition:color .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__login:hover,.pw-bar__login:focus-visible{color:#1a1d21;outline:none}.pw-bar__cta{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 24px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:var(--public-btn-radius);box-shadow:0 1px #0000000a;transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s cubic-bezier(.2,.7,.2,1),background-color .2s cubic-bezier(.2,.7,.2,1),border-color .2s cubic-bezier(.2,.7,.2,1);will-change:transform}.pw-bar__cta:hover,.pw-bar__cta:focus-visible{background:color-mix(in srgb,var(--first) 88%,#000 12%);border-color:color-mix(in srgb,var(--first) 88%,#000 12%);box-shadow:0 10px 24px -12px var(--first);color:#fff!important;outline:none;transform:translateY(-1px)}.pw-bar__toggle{width:40px;height:40px;display:none;place-items:center;background:transparent;border:0;cursor:pointer;padding:0}.pw-bar__toggle span{display:block;width:20px;height:1.5px;background:#1a1d21;margin:3px 0;transition:transform .2s cubic-bezier(.2,.7,.2,1),opacity .2s cubic-bezier(.2,.7,.2,1)}.pw-bar__toggle--open span:nth-child(1){transform:translateY(4.5px) rotate(45deg)}.pw-bar__toggle--open span:nth-child(2){opacity:0}.pw-bar__toggle--open span:nth-child(3){transform:translateY(-4.5px) rotate(-45deg)}@media(max-width:575px){.pw-bar__inner{padding:0 16px;height:60px}.pw-bar__brand-logo{height:24px}.pw-bar__cta{padding:0 16px;height:36px;font-size:13px}.pw-bar__login{padding:8px 10px;font-size:13px}}\n"], dependencies: [{ kind: "directive", type: i4.LazyImgDirective, selector: "img" }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
3125
3971
|
}
|
|
3126
3972
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
3127
3973
|
type: Component,
|
|
@@ -3329,7 +4175,7 @@ class EntityGroupComponent extends AppBaseComponent {
|
|
|
3329
4175
|
super.ngOnDestroy();
|
|
3330
4176
|
}
|
|
3331
4177
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: EntityGroupComponent, deps: [{ token: i1.GroupService }, { token: i1.SubscriptionService }, { token: i5.NgbModal }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3332
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: EntityGroupComponent, isStandalone: false, selector: "pw-entity-group", viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, 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-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\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 pTemplate=\"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 pTemplate=\"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-autoComplete appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n styleClass=\"w-100\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-autoComplete>\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", styles: ["a.previous i{line-height:23px}\n"], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i7.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i8$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i10.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i1$3.TranslocoPipe, name: "transloco" }] }); }
|
|
4178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: EntityGroupComponent, isStandalone: false, selector: "pw-entity-group", viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, 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-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\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 pTemplate=\"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 pTemplate=\"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-autoComplete appendTo=\"body\" [suggestions]=\"filteredMembers\"\n [(ngModel)]=\"selectedMembers\"\n dataKey=\"id\"\n optionLabel=\"displayName\"\n (completeMethod)=\"search($event)\"\n styleClass=\"w-100\"\n placeholder=\"Member\"\n [multiple]=\"true\">\n </p-autoComplete>\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", styles: ["a.previous i{line-height:23px}\n"], dependencies: [{ kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i7.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "size", "showGridlines", "stripedRows", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i8$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i10.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo", "motionOptions"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
3333
4179
|
}
|
|
3334
4180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: EntityGroupComponent, decorators: [{
|
|
3335
4181
|
type: Component,
|
|
@@ -3399,7 +4245,7 @@ class InputContainerComponent {
|
|
|
3399
4245
|
}
|
|
3400
4246
|
}
|
|
3401
4247
|
}
|
|
3402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: InputContainerComponent, deps: [{ token: i2$
|
|
4248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: InputContainerComponent, deps: [{ token: i2$2.ControlContainer, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3403
4249
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: InputContainerComponent, isStandalone: false, selector: "pw-input-container", inputs: { name: "name", controlId: "controlId", useAriaLabelledbyOnly: "useAriaLabelledbyOnly", label: "label", labelClass: "labelClass", tooltipPosition: "tooltipPosition", required: "required", errorMsg: "errorMsg", isReadOnly: "isReadOnly", showTooltip: "showTooltip", tooltipText: "tooltipText", showTriangle: "showTriangle", afterLabel: "afterLabel", showAfterLabel: "showAfterLabel", showTriangleText: "showTriangleText", isLeftTooltip: "isLeftTooltip" }, providers: [
|
|
3404
4250
|
{
|
|
3405
4251
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3407,7 +4253,7 @@ class InputContainerComponent {
|
|
|
3407
4253
|
useExisting: InputContainerComponent,
|
|
3408
4254
|
multi: true
|
|
3409
4255
|
}
|
|
3410
|
-
], ngImport: i0, template: "@if (useAriaLabelledbyOnly) {\n <span class=\"pw-input-container-label mb-2 d-block\" [attr.id]=\"controlId ? (controlId + '-label') : null\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </span>\n}\n@if (!useAriaLabelledbyOnly) {\n <label class=\"pw-input-container-label mb-2\" [attr.for]=\"controlId || name\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </label>\n}\n\n<div class=\"mb-3\">\n <ng-content></ng-content>\n @if (control?.errors) {\n <pw-field-error-display [displayError]=\"control?.invalid && control?.touched\"\n [errorMsg]=\"errorMsg | transloco\">\n </pw-field-error-display>\n }\n</div>\n", 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-input-container-label{display:block;color:gray;font-size:.75rem;font-weight:500;letter-spacing:2px;text-transform:uppercase;height:18px;line-height:18px;margin-bottom:8px!important}.mandatory{position:relative;padding-right:10px}.mandatory:after{position:absolute;color:#ff586b;content:\"*\";font-size:15px;line-height:1;right:0;top:0}div.mb-3:has(ui-switch){min-height:36px;display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i4$1.FieldErrorDisplayComponent, selector: "pw-field-error-display", inputs: ["errorMsg", "displayError"] }, { kind: "pipe", type:
|
|
4256
|
+
], ngImport: i0, template: "@if (useAriaLabelledbyOnly) {\n <span class=\"pw-input-container-label mb-2 d-block\" [attr.id]=\"controlId ? (controlId + '-label') : null\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </span>\n}\n@if (!useAriaLabelledbyOnly) {\n <label class=\"pw-input-container-label mb-2\" [attr.for]=\"controlId || name\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </label>\n}\n\n<div class=\"mb-3\">\n <ng-content></ng-content>\n @if (control?.errors) {\n <pw-field-error-display [displayError]=\"control?.invalid && control?.touched\"\n [errorMsg]=\"errorMsg | transloco\">\n </pw-field-error-display>\n }\n</div>\n", 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-input-container-label{display:block;color:gray;font-size:.75rem;font-weight:500;letter-spacing:2px;text-transform:uppercase;height:18px;line-height:18px;margin-bottom:8px!important}.mandatory{position:relative;padding-right:10px}.mandatory:after{position:absolute;color:#ff586b;content:\"*\";font-size:15px;line-height:1;right:0;top:0}div.mb-3:has(ui-switch){min-height:36px;display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "component", type: i4$1.FieldErrorDisplayComponent, selector: "pw-field-error-display", inputs: ["errorMsg", "displayError"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
3411
4257
|
}
|
|
3412
4258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: InputContainerComponent, decorators: [{
|
|
3413
4259
|
type: Component,
|
|
@@ -3419,7 +4265,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
3419
4265
|
multi: true
|
|
3420
4266
|
}
|
|
3421
4267
|
], standalone: false, template: "@if (useAriaLabelledbyOnly) {\n <span class=\"pw-input-container-label mb-2 d-block\" [attr.id]=\"controlId ? (controlId + '-label') : null\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </span>\n}\n@if (!useAriaLabelledbyOnly) {\n <label class=\"pw-input-container-label mb-2\" [attr.for]=\"controlId || name\">\n <span [class]=\"labelClass\"\n [ngClass]=\"{ mandatory: required && !control?.disabled }\">\n {{ label }}\n </span>\n @if (showTooltip && tooltipText) {\n <span class=\"info-circle tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n </span>\n }\n @if (showTriangle) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"'Last month this value was set to ' + showTriangleText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"fas fa-exclamation-triangle text-warning\"></i>\n </span>\n }\n <!-- after label -->\n @if (afterLabel && showAfterLabel) {\n <span\n [innerHTML]=\"afterLabel\"></span>\n }\n <!-- after label end -->\n </label>\n}\n\n<div class=\"mb-3\">\n <ng-content></ng-content>\n @if (control?.errors) {\n <pw-field-error-display [displayError]=\"control?.invalid && control?.touched\"\n [errorMsg]=\"errorMsg | transloco\">\n </pw-field-error-display>\n }\n</div>\n", 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-input-container-label{display:block;color:gray;font-size:.75rem;font-weight:500;letter-spacing:2px;text-transform:uppercase;height:18px;line-height:18px;margin-bottom:8px!important}.mandatory{position:relative;padding-right:10px}.mandatory:after{position:absolute;color:#ff586b;content:\"*\";font-size:15px;line-height:1;right:0;top:0}div.mb-3:has(ui-switch){min-height:36px;display:flex;align-items:center}\n"] }]
|
|
3422
|
-
}], ctorParameters: () => [{ type: i2$
|
|
4268
|
+
}], ctorParameters: () => [{ type: i2$2.ControlContainer, decorators: [{
|
|
3423
4269
|
type: Optional
|
|
3424
4270
|
}, {
|
|
3425
4271
|
type: Host
|
|
@@ -3621,8 +4467,8 @@ class GroupDefinitionComponent extends AppBaseComponent {
|
|
|
3621
4467
|
ngOnDestroy() {
|
|
3622
4468
|
super.ngOnDestroy();
|
|
3623
4469
|
}
|
|
3624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupDefinitionComponent, deps: [{ token: i1.GroupService }, { token: i2$
|
|
3625
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupDefinitionComponent, isStandalone: false, selector: "pw-group-definition", usesInheritance: true, ngImport: i0, template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">Add Category</button>\n </div>\n </div>\n </form>\n </div>\n }\n @if (viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-edit-name\">\n <input type=\"text\"\n id=\"group-definition-edit-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-edit-description\">\n <input type=\"text\"\n id=\"group-definition-edit-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-edit-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-edit-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n\n @if (groupDefinition?.length !== 0) {\n @if (!viewDefinition) {\n <div class=\"row mb-last-3 group-definitions-wrapper\"\n >\n @for (group of groupDefinition; track group) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-danger me-2\"\n (click)=\"onDelete(group.id)\">{{ 'Button.Delete' | transloco }}</a>\n }\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-primary me-2\"\n (click)=\"onGroupDefinitionEdit(group.id)\">{{ 'Button.Edit' | transloco }}</a>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @if (groupDefinition?.length === 0 && hasAccess && !viewDefinition && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (groupDefinition?.length === 0 && !hasAccess && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsUserMessage' | transloco\"> </pw-no-data>\n </div>\n }\n </section>\n", styles: [".mb-last-3{margin-bottom:3rem}\n"], dependencies: [{ kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i6.UiSwitchComponent, selector: "ui-switch", inputs: ["size", "color", "switchOffColor", "switchColor", "defaultBgColor", "defaultBoColor", "checkedLabel", "uncheckedLabel", "checkedTextColor", "uncheckedTextColor", "beforeChange", "ariaLabel", "checked", "disabled", "reverse", "loading"], outputs: ["change", "changeEvent", "valueChange"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i1$3.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
|
|
4470
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupDefinitionComponent, deps: [{ token: i1.GroupService }, { token: i2$2.UntypedFormBuilder }, { token: i1.SubscriptionService }, { token: i1.DataService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: ConfirmDialogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4471
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupDefinitionComponent, isStandalone: false, selector: "pw-group-definition", usesInheritance: true, ngImport: i0, template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">Add Category</button>\n </div>\n </div>\n </form>\n </div>\n }\n @if (viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-edit-name\">\n <input type=\"text\"\n id=\"group-definition-edit-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-edit-description\">\n <input type=\"text\"\n id=\"group-definition-edit-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-edit-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-edit-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n\n @if (groupDefinition?.length !== 0) {\n @if (!viewDefinition) {\n <div class=\"row mb-last-3 group-definitions-wrapper\"\n >\n @for (group of groupDefinition; track group) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-danger me-2\"\n (click)=\"onDelete(group.id)\">{{ 'Button.Delete' | transloco }}</a>\n }\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-primary me-2\"\n (click)=\"onGroupDefinitionEdit(group.id)\">{{ 'Button.Edit' | transloco }}</a>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @if (groupDefinition?.length === 0 && hasAccess && !viewDefinition && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (groupDefinition?.length === 0 && !hasAccess && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsUserMessage' | transloco\"> </pw-no-data>\n </div>\n }\n </section>\n", styles: [".mb-last-3{margin-bottom:3rem}\n"], dependencies: [{ kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i6.UiSwitchComponent, selector: "ui-switch", inputs: ["size", "color", "switchOffColor", "switchColor", "defaultBgColor", "defaultBoColor", "checkedLabel", "uncheckedLabel", "checkedTextColor", "uncheckedTextColor", "beforeChange", "ariaLabel", "checked", "disabled", "reverse", "loading"], outputs: ["change", "changeEvent", "valueChange"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
|
|
3626
4472
|
}
|
|
3627
4473
|
__decorate([
|
|
3628
4474
|
ValidateForm('form'),
|
|
@@ -3633,7 +4479,7 @@ __decorate([
|
|
|
3633
4479
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupDefinitionComponent, decorators: [{
|
|
3634
4480
|
type: Component,
|
|
3635
4481
|
args: [{ selector: 'pw-group-definition', standalone: false, template: "<section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams Categories</h2>\n\n <p>\n Here you can define the categories for your enterprise's groups. For example \"Sales\n Department\", \"Development Department\", etc.\n <br />\n Once the category created, you'll be able to add teams to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!viewDefinition) {\n <div class=\"row\"\n >\n <div class=\"col-6 d-flex align-items-center text-start mb-sm-3 mb-lg-0\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n </div>\n @if (hasAccess) {\n <div class=\"col-6\"\n >\n <button class=\"float-end btn btn-sm btn-outline-primary me-2\"\n (click)=\"viewDefinitions()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Create Team Category\n </button>\n </div>\n }\n </div>\n }\n\n @if (viewDefinition) {\n <div>\n <h4 class=\"card-title d-inline mb-5\">\n {{ viewEdit ? 'Update the' : 'Create a new' }} category\n </h4>\n @if (!viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroupDefinition()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-name\">\n <input type=\"text\"\n id=\"group-definition-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-description\">\n <input type=\"text\"\n id=\"group-definition-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">Add Category</button>\n </div>\n </div>\n </form>\n </div>\n }\n @if (viewEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Label.Name' | transloco\" name=\"name\" controlId=\"group-definition-edit-name\">\n <input type=\"text\"\n id=\"group-definition-edit-name\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Name' | transloco\"\n [attr.aria-label]=\"'Label.Name' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"group-definition-edit-description\">\n <input type=\"text\"\n id=\"group-definition-edit-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.IsPrivate' | transloco\" name=\"is_private\" controlId=\"group-definition-edit-is_private\" [useAriaLabelledbyOnly]=\"true\">\n <ui-switch\n [attr.aria-labelledby]=\"'group-definition-edit-is_private-label'\"\n formControlName=\"is_private\">\n </ui-switch>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onCancel()\"\n (keydown.enter)=\"onCancel()\" >\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"categoryBusyButton\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n\n @if (groupDefinition?.length !== 0) {\n @if (!viewDefinition) {\n <div class=\"row mb-last-3 group-definitions-wrapper\"\n >\n @for (group of groupDefinition; track group) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-danger me-2\"\n (click)=\"onDelete(group.id)\">{{ 'Button.Delete' | transloco }}</a>\n }\n @if (hasAccess) {\n <a class=\"btn btn-sm btn-outline-primary me-2\"\n (click)=\"onGroupDefinitionEdit(group.id)\">{{ 'Button.Edit' | transloco }}</a>\n }\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n }\n @if (groupDefinition?.length === 0 && hasAccess && !viewDefinition && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (groupDefinition?.length === 0 && !hasAccess && isLoaded) {\n <div>\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoLabelsUserMessage' | transloco\"> </pw-no-data>\n </div>\n }\n </section>\n", styles: [".mb-last-3{margin-bottom:3rem}\n"] }]
|
|
3636
|
-
}], ctorParameters: () => [{ type: i1.GroupService }, { type: i2$
|
|
4482
|
+
}], ctorParameters: () => [{ type: i1.GroupService }, { type: i2$2.UntypedFormBuilder }, { type: i1.SubscriptionService }, { type: i1.DataService }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: ConfirmDialogService }], propDecorators: { saveGroupDefinition: [] } });
|
|
3637
4483
|
|
|
3638
4484
|
class GroupsComponent extends AppBaseComponent {
|
|
3639
4485
|
constructor(fb, groupService, subscriptionService, dataService, injector, cdr, confirmDialog) {
|
|
@@ -3855,8 +4701,8 @@ class GroupsComponent extends AppBaseComponent {
|
|
|
3855
4701
|
ngOnDestroy() {
|
|
3856
4702
|
super.ngOnDestroy();
|
|
3857
4703
|
}
|
|
3858
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupsComponent, deps: [{ token: i2$
|
|
3859
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupsComponent, isStandalone: false, selector: "pw-groups", usesInheritance: true, ngImport: i0, template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </div>\n </div>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select styleClass=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n", styles: ["a.previous i{line-height:13px}.clear-both{clear:both}@media screen and (max-width:480px){.filter{flex:none;max-width:100%!important}.communications{margin-top:2%}}\n"], dependencies: [{ kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i1$3.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
|
|
4704
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupsComponent, deps: [{ token: i2$2.UntypedFormBuilder }, { token: i1.GroupService }, { token: i1.SubscriptionService }, { token: i1.DataService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: ConfirmDialogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4705
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: GroupsComponent, isStandalone: false, selector: "pw-groups", usesInheritance: true, ngImport: i0, template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </div>\n </div>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select styleClass=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n", styles: ["a.previous i{line-height:13px}.clear-both{clear:both}@media screen and (max-width:480px){.filter{flex:none;max-width:100%!important}.communications{margin-top:2%}}\n"], dependencies: [{ kind: "directive", type: i2$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i6$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: i9.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "directive", type: i8.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InputContainerComponent, selector: "pw-input-container", inputs: ["name", "controlId", "useAriaLabelledbyOnly", "label", "labelClass", "tooltipPosition", "required", "errorMsg", "isReadOnly", "showTooltip", "tooltipText", "showTriangle", "afterLabel", "showAfterLabel", "showTriangleText", "isLeftTooltip"] }, { kind: "component", type: NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.SlicePipe, name: "slice" }] }); }
|
|
3860
4706
|
}
|
|
3861
4707
|
__decorate([
|
|
3862
4708
|
ValidateForm('form'),
|
|
@@ -3867,7 +4713,7 @@ __decorate([
|
|
|
3867
4713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: GroupsComponent, decorators: [{
|
|
3868
4714
|
type: Component,
|
|
3869
4715
|
args: [{ selector: 'pw-groups', standalone: false, template: "<div>\n <section>\n <div class=\"row\">\n <div class=\"col-12 mb-3\">\n <h2>Enterprise Teams</h2>\n\n <p>\n Here you can define the teams for your Enterprise members. For example\n \"Corporate Sales Team\", \"Frontend Dev Team\" etc.\n <br />\n Once the teams created, you'll be able to add members to them and see useful\n insight based on the members activity in the corresponding team.\n </p>\n </div>\n </div>\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-12 d-flex justify-content-end align-items-center text-end mb-3\">\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary\"\n (click)=\"groupOperation()\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Add Team\n </button>\n }\n @if (hasAccess) {\n <button\n class=\"btn btn-sm btn-outline-primary ms-1\"\n [routerLink]=\"['/' + subscription?.slug + '/enterprise', 'groups', 'labels']\">\n <i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> Manage Team Categories\n </button>\n }\n </div>\n </div>\n }\n\n <!-- Add Group Template -->\n @if (isGroupOperations) {\n <div\n class=\"mb-4\">\n <h4 class=\"card-title d-inline\">{{ viewEdit ? 'Update the' : 'Create a new' }} team</h4>\n @if (!isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"saveGroup()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-teamName\">\n <input type=\"text\"\n id=\"groups-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.Description' | transloco\" name=\"description\" controlId=\"groups-description\">\n <input type=\"text\"\n id=\"groups-description\"\n class=\"form-control\"\n formControlName=\"description\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.Description' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-teamCategory\">\n <p-select\n inputId=\"groups-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n (click)=\"isGroupOperations = !isGroupOperations\"\n class=\"btn btn-outline-default me-2\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">Add</button>\n </div>\n </div>\n </form>\n </div>\n }\n <!-- Edit Group Template -->\n @if (isGroupEdit) {\n <div class=\"mt-4\"\n >\n <form [formGroup]=\"form\"\n (ngSubmit)=\"updateDetails()\">\n <div class=\"row\">\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamName' | transloco\" name=\"name\" controlId=\"groups-edit-teamName\">\n <input type=\"text\"\n id=\"groups-edit-teamName\"\n class=\"form-control\"\n formControlName=\"name\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamName' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamName' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamDescription' | transloco\" name=\"description\" controlId=\"groups-edit-description\">\n <input type=\"text\"\n id=\"groups-edit-description\"\n value=\"{{ description }}\"\n class=\"form-control\"\n formControlName=\"description\"\n required=\"true\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.Description' | transloco\"\n [attr.aria-label]=\"'Enterprise.Teams.TeamDescription' | transloco\" />\n </pw-input-container>\n </div>\n <div class=\"mb-3 col-12 col-md-4\">\n <pw-input-container [label]=\"'Enterprise.Teams.TeamCategory' | transloco\" name=\"group_definition_id\" controlId=\"groups-edit-teamCategory\">\n <p-select\n inputId=\"groups-edit-teamCategory\"\n [options]=\"groupDefinition\"\n formControlName=\"group_definition_id\"\n [ngClass]=\"{'is-invalid': submitted && form.controls['group_definition_id'].errors}\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.TeamCategory' | transloco\"\n optionValue=\"id\"\n optionLabel=\"name\">\n </p-select>\n </pw-input-container>\n </div>\n </div>\n <div class=\"row text-end mt-4\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"cancelUpdate()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\">\n {{ 'Button.Update' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </div>\n }\n </div>\n }\n\n @if (!isGroupOperations) {\n <div class=\"row\"\n >\n <div class=\"col-4 mt-2 filter\">\n <p-select styleClass=\"pw-filter-select\"\n [options]=\"domainGroupDefinition\"\n optionLabel=\"name\"\n optionValue=\"id\"\n [ngModel]=\"'0'\"\n [placeholder]=\"'Enterprise.Teams.Placeholder.FilterTeamCategory' | transloco\"\n (onChange)=\"filterDomainsList($event.value)\">\n </p-select>\n </div>\n </div>\n }\n @if (!isLoaded) {\n <div class=\"w-100 text-center mt-3\"\n >\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n }\n @if (!isGroupOperations) {\n <div class=\"row group_list my-4\"\n >\n @for (group of allGroups; track trackByGroup($index, group)) {\n <div class=\"col-12 col-md-6 col-xl-4 mt-3\"\n >\n <div class=\"card\">\n <div class=\"card-content\">\n <div class=\"card-header\">\n <h5 class=\"mb-3\">{{ group.name }}</h5>\n <p>{{ group.description | slice: 0:200 }}</p>\n <span><a class=\"badge bg-primary\">{{\n group?.group_definition_name\n }}</a></span>\n </div>\n <div class=\"card-footer\">\n <div class=\"float-end px-2\">\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Delete\"\n (click)=\"onDelete(group.id)\">\n <i class=\"fa fa-trash delete-icon\" aria-hidden=\"true\"></i></a>\n }\n @if (hasAccess) {\n <a class=\"me-2 my-1\"\n aria-label=\"Edit Group\"\n (click)=\"editGroup(group.id)\"><i class=\"fa fa-edit edit-icon\" aria-hidden=\"true\"></i></a>\n }\n <a class=\"me-2 my-1\"\n aria-label=\"Members\"\n [routerLink]=\"[group.id, 'members']\"><i class=\"fa fa-tasks cta1-icon\" aria-hidden=\"true\"></i>\n </a>\n <a class=\"communications me-2 my-1\"\n aria-label=\"Communications\"\n (click)=\"navigateToCommunications(group.id)\"><i class=\"fa fa-comments cta2-icon\" aria-hidden=\"true\"></i></a>\n <a class=\"communications my-1\"\n aria-label=\"Documents\"\n (click)=\"navigateToDocumentations(group.id)\"><i class=\"fab fa-wikipedia-w cta1-icon\" aria-hidden=\"true\"></i></a>\n </div>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </section>\n </div>\n @if (allGroups?.length === 0 && hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessage' | transloco\"> </pw-no-data>\n </div>\n }\n @if (allGroups?.length === 0 && !hasAccess && !isGroupOperations && isLoaded) {\n <div\n class=\"clear-both\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Enterprise.Teams.NoTeamMessageIfUser' | transloco\"> </pw-no-data>\n </div>\n }\n", styles: ["a.previous i{line-height:13px}.clear-both{clear:both}@media screen and (max-width:480px){.filter{flex:none;max-width:100%!important}.communications{margin-top:2%}}\n"] }]
|
|
3870
|
-
}], ctorParameters: () => [{ type: i2$
|
|
4716
|
+
}], ctorParameters: () => [{ type: i2$2.UntypedFormBuilder }, { type: i1.GroupService }, { type: i1.SubscriptionService }, { type: i1.DataService }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: ConfirmDialogService }], propDecorators: { saveGroup: [] } });
|
|
3871
4717
|
|
|
3872
4718
|
class LandingPageFooterBComponent extends AppBaseComponent {
|
|
3873
4719
|
get companyName() {
|
|
@@ -4156,7 +5002,7 @@ class NumberPickerComponent {
|
|
|
4156
5002
|
this.placeholder = this.placeholder ?? '';
|
|
4157
5003
|
}
|
|
4158
5004
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: NumberPickerComponent, deps: [{ token: i1.NumberPickerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4159
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: NumberPickerComponent, isStandalone: false, selector: "pw-number-picker", inputs: { min: "min", showTooltip: "showTooltip", tooltipText: "tooltipText", max: "max", step: "step", value: "value", pickStartAfter: "pickStartAfter", pickTimer: "pickTimer", prefix: "prefix", postfix: "postfix", placeholder: "placeholder", buttonsOrientation: "buttonsOrientation", size: "size", customClass: "customClass", mouseWheel: "mouseWheel", arrowKeys: "arrowKeys", inputReadOnly: "inputReadOnly", showUpButton: "showUpButton", showDownButton: "showDownButton", inputId: "inputId" }, outputs: { valueChange: "valueChange", minReached: "minReached", maxReached: "maxReached", pickStarted: "pickStarted", pickStopped: "pickStopped", pickUpStarted: "pickUpStarted", pickUpStopped: "pickUpStopped", pickDownStarted: "pickDownStarted", pickDownStopped: "pickDownStopped" }, ngImport: i0, template: "<div class=\"input-group mb-3 input-{{ size }} {{ customClass.container }}\">\n <!-- Horizontal decrease button orientation -->\n @if (isHorizontal() && showDownButton) {\n <span\n class=\"input-group-text decrease {{ customClass.down }}\"\n (click)=\"onDecrease($event)\"\n (keydown.enter)=\"onDecrease($event)\"\n (mouseup)=\"onMouseUp($event, false)\"\n (mousedown)=\"onMouseDown($event, false)\">-</span>\n }\n <!-- Input prefix -->\n @if (prefix) {\n <span\n class=\"input-group-text {{ customClass.prefix }}\">{{ prefix }}\n </span>\n }\n <input type=\"number\"\n class=\"form-control\"\n [attr.id]=\"inputId\"\n name=\"input-spin-val\"\n [(ngModel)]=\"value\"\n [readOnly]=\"inputReadOnly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (wheel)=\"mouseWheel && onMouseWheel($event)\"\n (keyup)=\"arrowKeys && onKeyUp($event)\"\n (keydown.enter)=\"arrowKeys && onKeyDown($event)\"\n (keydown.arrowup)=\"arrowKeys && onIncrease($event)\"\n (keydown.arrowdown)=\"arrowKeys && onDecrease($event)\"\n (change)=\"onValueChange($event)\"\n [placeholder]=\"placeholder\"\n aria-label=\"Input Spin Val\" />\n <!-- Input postfix -->\n\n @if (postfix) {\n <span\n class=\"input-group-text {{ customClass.postfix }}\"\n [style.borderLeft]=\"'0'\">{{postfix}}\n @if (showTooltip && tooltipText) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"far fa-info-circle text-muted\"></i>\n </span>\n }\n </span>\n }\n\n <!-- Horizontal increase button orientation -->\n @if (isHorizontal() && showUpButton) {\n <span\n class=\"input-group-text increase {{ customClass.up }}\"\n [style.borderLeft]=\"!postfix ? '0' : ''\"\n (click)=\"onIncrease($event)\"\n (keydown.enter)=\"onIncrease($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mousedown)=\"onMouseDown($event)\">+</span>\n }\n <!-- Vertical buttons orientation -->\n @if (!isHorizontal()) {\n <span\n class=\"input-group-text vertical p-0\">\n @if (showUpButton) {\n <span\n class=\"{{ customClass.up }}\"\n (click)=\"onIncrease($event)\"\n (keydown.enter)=\"onIncrease($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mousedown)=\"onMouseDown($event)\">+</span>\n }\n @if (showDownButton) {\n <span\n class=\"{{ customClass.down }}\"\n (keydown.enter)=\"onDecrease($event)\"\n (click)=\"onDecrease($event)\"\n (mouseup)=\"onMouseUp($event, false)\"\n (mousedown)=\"onMouseDown($event, false)\">-</span>\n }\n </span>\n }\n</div>\n", 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"], dependencies: [{ kind: "directive", type: i2$
|
|
5005
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: NumberPickerComponent, isStandalone: false, selector: "pw-number-picker", inputs: { min: "min", showTooltip: "showTooltip", tooltipText: "tooltipText", max: "max", step: "step", value: "value", pickStartAfter: "pickStartAfter", pickTimer: "pickTimer", prefix: "prefix", postfix: "postfix", placeholder: "placeholder", buttonsOrientation: "buttonsOrientation", size: "size", customClass: "customClass", mouseWheel: "mouseWheel", arrowKeys: "arrowKeys", inputReadOnly: "inputReadOnly", showUpButton: "showUpButton", showDownButton: "showDownButton", inputId: "inputId" }, outputs: { valueChange: "valueChange", minReached: "minReached", maxReached: "maxReached", pickStarted: "pickStarted", pickStopped: "pickStopped", pickUpStarted: "pickUpStarted", pickUpStopped: "pickUpStopped", pickDownStarted: "pickDownStarted", pickDownStopped: "pickDownStopped" }, ngImport: i0, template: "<div class=\"input-group mb-3 input-{{ size }} {{ customClass.container }}\">\n <!-- Horizontal decrease button orientation -->\n @if (isHorizontal() && showDownButton) {\n <span\n class=\"input-group-text decrease {{ customClass.down }}\"\n (click)=\"onDecrease($event)\"\n (keydown.enter)=\"onDecrease($event)\"\n (mouseup)=\"onMouseUp($event, false)\"\n (mousedown)=\"onMouseDown($event, false)\">-</span>\n }\n <!-- Input prefix -->\n @if (prefix) {\n <span\n class=\"input-group-text {{ customClass.prefix }}\">{{ prefix }}\n </span>\n }\n <input type=\"number\"\n class=\"form-control\"\n [attr.id]=\"inputId\"\n name=\"input-spin-val\"\n [(ngModel)]=\"value\"\n [readOnly]=\"inputReadOnly\"\n (blur)=\"onBlur($event)\"\n (focus)=\"onFocus($event)\"\n (wheel)=\"mouseWheel && onMouseWheel($event)\"\n (keyup)=\"arrowKeys && onKeyUp($event)\"\n (keydown.enter)=\"arrowKeys && onKeyDown($event)\"\n (keydown.arrowup)=\"arrowKeys && onIncrease($event)\"\n (keydown.arrowdown)=\"arrowKeys && onDecrease($event)\"\n (change)=\"onValueChange($event)\"\n [placeholder]=\"placeholder\"\n aria-label=\"Input Spin Val\" />\n <!-- Input postfix -->\n\n @if (postfix) {\n <span\n class=\"input-group-text {{ customClass.postfix }}\"\n [style.borderLeft]=\"'0'\">{{postfix}}\n @if (showTooltip && tooltipText) {\n <span class=\"tooltip-wrap ms-1\"\n [pTooltip]=\"tooltipText\"\n [appendTo]=\"'body'\"\n [tooltipPosition]=\"tooltipPosition || 'top'\">\n <i class=\"far fa-info-circle text-muted\"></i>\n </span>\n }\n </span>\n }\n\n <!-- Horizontal increase button orientation -->\n @if (isHorizontal() && showUpButton) {\n <span\n class=\"input-group-text increase {{ customClass.up }}\"\n [style.borderLeft]=\"!postfix ? '0' : ''\"\n (click)=\"onIncrease($event)\"\n (keydown.enter)=\"onIncrease($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mousedown)=\"onMouseDown($event)\">+</span>\n }\n <!-- Vertical buttons orientation -->\n @if (!isHorizontal()) {\n <span\n class=\"input-group-text vertical p-0\">\n @if (showUpButton) {\n <span\n class=\"{{ customClass.up }}\"\n (click)=\"onIncrease($event)\"\n (keydown.enter)=\"onIncrease($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mousedown)=\"onMouseDown($event)\">+</span>\n }\n @if (showDownButton) {\n <span\n class=\"{{ customClass.down }}\"\n (keydown.enter)=\"onDecrease($event)\"\n (click)=\"onDecrease($event)\"\n (mouseup)=\"onMouseUp($event, false)\"\n (mousedown)=\"onMouseDown($event, false)\">-</span>\n }\n </span>\n }\n</div>\n", 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"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }] }); }
|
|
4160
5006
|
}
|
|
4161
5007
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: NumberPickerComponent, decorators: [{
|
|
4162
5008
|
type: Component,
|
|
@@ -4275,7 +5121,7 @@ class PasswordValidationComponent extends AppBaseComponent {
|
|
|
4275
5121
|
}
|
|
4276
5122
|
}
|
|
4277
5123
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PasswordValidationComponent, deps: [{ token: i0.Injector }, { token: i5.NgbModal }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4278
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: PasswordValidationComponent, isStandalone: false, selector: "pw-password-validation", inputs: { confirmMessage: "confirmMessage", destructive: "destructive" }, outputs: { successEvent: "successEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "passwordRef", first: true, predicate: ["passwordRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #content\n let-modal>\n <div class=\"pw-password-confirm\"\n [class.pw-password-confirm--destructive]=\"destructive\">\n <div class=\"pw-password-confirm__header\">\n <span class=\"pw-password-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"destructive ? 'pi pi-exclamation-triangle' : 'pi pi-shield'\"></i>\n </span>\n <h5 class=\"pw-password-confirm__title\">\n {{ (destructive\n ? 'Common.Confirm.PasswordValidation.TitleDestructive'\n : 'Common.Confirm.PasswordValidation.Title') | transloco }}\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-password-confirm__close\"\n [attr.aria-label]=\"'Button.Cancel' | transloco\"\n (click)=\"modal.dismiss()\">\n </button>\n </div>\n\n <div class=\"pw-password-confirm__body\">\n <p class=\"pw-password-confirm__message\">\n {{ bodyMessage | transloco }}\n </p>\n\n <ng-content></ng-content>\n\n <div class=\"pw-password-confirm__field\">\n <label class=\"pw-password-confirm__label\"\n for=\"pw-password-confirm-input\">\n {{ 'Common.Confirm.PasswordValidation.PasswordLabel' | transloco }}\n </label>\n <div class=\"pw-password-confirm__input-wrap\">\n <input #passwordRef\n [type]=\"passwordVisible ? 'text' : 'password'\"\n [(ngModel)]=\"password\"\n (keyup.enter)=\"validatePassword()\"\n class=\"form-control pw-password-confirm__input\"\n id=\"pw-password-confirm-input\"\n name=\"pw-password-confirm-input\"\n autocomplete=\"current-password\"\n [placeholder]=\"'Common.Confirm.PasswordValidation.PasswordPlaceholder' | transloco\"\n aria-label=\"Pw Password Confirm Input\" />\n <button type=\"button\"\n class=\"pw-password-confirm__reveal\"\n [attr.aria-label]=\"(passwordVisible\n ? 'Common.Confirm.PasswordValidation.HidePassword'\n : 'Common.Confirm.PasswordValidation.ShowPassword') | transloco\"\n [attr.aria-pressed]=\"passwordVisible\"\n (click)=\"passwordVisible = !passwordVisible\">\n <i [class]=\"passwordVisible ? 'pi pi-eye-slash' : 'pi pi-eye'\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div class=\"pw-password-confirm__footer\">\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"modal.dismiss()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n [buttonBusy]=\"buttonBusy\"\n [disabled]=\"!password\"\n [class]=\"destructive ? 'btn btn-danger' : 'btn btn-primary'\"\n (click)=\"validatePassword()\">\n {{ 'Button.Confirm' | transloco }}\n </button>\n </div>\n </div>\n</ng-template>\n", styles: [".pw-password-confirm{padding:24px 24px 20px}.pw-password-confirm__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pw-password-confirm__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9999px;background:#1769e11a;color:var(--first, #1769e1);font-size:16px;flex-shrink:0}.pw-password-confirm--destructive .pw-password-confirm__icon{background:#dc35451a;color:#dc3545}.pw-password-confirm__title{flex:1;margin:0;font-size:16px;font-weight:600;color:var(--titles, #222);line-height:1.3}.pw-password-confirm__close{flex-shrink:0}.pw-password-confirm__body{margin-bottom:20px}.pw-password-confirm__message{margin:0 0 16px;color:var(--text, #222);font-size:14px;line-height:1.5}.pw-password-confirm__field{margin-top:12px}.pw-password-confirm__label{display:block;margin-bottom:8px;font-size:13px;font-weight:500;color:var(--titles, #222)}.pw-password-confirm__input-wrap{position:relative}.pw-password-confirm__input{padding-right:40px}.pw-password-confirm__reveal{position:absolute;top:50%;right:8px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:0;border-radius:4px;color:#6b7280;cursor:pointer}.pw-password-confirm__reveal:hover,.pw-password-confirm__reveal:focus-visible{color:var(--titles, #222);background:#0000000a;outline:none}.pw-password-confirm__reveal i{font-size:14px}.pw-password-confirm__footer{display:flex;justify-content:flex-end;gap:8px}::ng-deep .pw-password-confirm-modal .modal-content{border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 10px 30px #1018281f;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2$
|
|
5124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: PasswordValidationComponent, isStandalone: false, selector: "pw-password-validation", inputs: { confirmMessage: "confirmMessage", destructive: "destructive" }, outputs: { successEvent: "successEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, static: true }, { propertyName: "passwordRef", first: true, predicate: ["passwordRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #content\n let-modal>\n <div class=\"pw-password-confirm\"\n [class.pw-password-confirm--destructive]=\"destructive\">\n <div class=\"pw-password-confirm__header\">\n <span class=\"pw-password-confirm__icon\"\n aria-hidden=\"true\">\n <i [class]=\"destructive ? 'pi pi-exclamation-triangle' : 'pi pi-shield'\"></i>\n </span>\n <h5 class=\"pw-password-confirm__title\">\n {{ (destructive\n ? 'Common.Confirm.PasswordValidation.TitleDestructive'\n : 'Common.Confirm.PasswordValidation.Title') | transloco }}\n </h5>\n <button type=\"button\"\n class=\"btn-close pw-password-confirm__close\"\n [attr.aria-label]=\"'Button.Cancel' | transloco\"\n (click)=\"modal.dismiss()\">\n </button>\n </div>\n\n <div class=\"pw-password-confirm__body\">\n <p class=\"pw-password-confirm__message\">\n {{ bodyMessage | transloco }}\n </p>\n\n <ng-content></ng-content>\n\n <div class=\"pw-password-confirm__field\">\n <label class=\"pw-password-confirm__label\"\n for=\"pw-password-confirm-input\">\n {{ 'Common.Confirm.PasswordValidation.PasswordLabel' | transloco }}\n </label>\n <div class=\"pw-password-confirm__input-wrap\">\n <input #passwordRef\n [type]=\"passwordVisible ? 'text' : 'password'\"\n [(ngModel)]=\"password\"\n (keyup.enter)=\"validatePassword()\"\n class=\"form-control pw-password-confirm__input\"\n id=\"pw-password-confirm-input\"\n name=\"pw-password-confirm-input\"\n autocomplete=\"current-password\"\n [placeholder]=\"'Common.Confirm.PasswordValidation.PasswordPlaceholder' | transloco\"\n aria-label=\"Pw Password Confirm Input\" />\n <button type=\"button\"\n class=\"pw-password-confirm__reveal\"\n [attr.aria-label]=\"(passwordVisible\n ? 'Common.Confirm.PasswordValidation.HidePassword'\n : 'Common.Confirm.PasswordValidation.ShowPassword') | transloco\"\n [attr.aria-pressed]=\"passwordVisible\"\n (click)=\"passwordVisible = !passwordVisible\">\n <i [class]=\"passwordVisible ? 'pi pi-eye-slash' : 'pi pi-eye'\"\n aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div class=\"pw-password-confirm__footer\">\n <button type=\"button\"\n class=\"btn btn-outline-secondary\"\n (click)=\"modal.dismiss()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"button\"\n [buttonBusy]=\"buttonBusy\"\n [disabled]=\"!password\"\n [class]=\"destructive ? 'btn btn-danger' : 'btn btn-primary'\"\n (click)=\"validatePassword()\">\n {{ 'Button.Confirm' | transloco }}\n </button>\n </div>\n </div>\n</ng-template>\n", styles: [".pw-password-confirm{padding:24px 24px 20px}.pw-password-confirm__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.pw-password-confirm__icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9999px;background:#1769e11a;color:var(--first, #1769e1);font-size:16px;flex-shrink:0}.pw-password-confirm--destructive .pw-password-confirm__icon{background:#dc35451a;color:#dc3545}.pw-password-confirm__title{flex:1;margin:0;font-size:16px;font-weight:600;color:var(--titles, #222);line-height:1.3}.pw-password-confirm__close{flex-shrink:0}.pw-password-confirm__body{margin-bottom:20px}.pw-password-confirm__message{margin:0 0 16px;color:var(--text, #222);font-size:14px;line-height:1.5}.pw-password-confirm__field{margin-top:12px}.pw-password-confirm__label{display:block;margin-bottom:8px;font-size:13px;font-weight:500;color:var(--titles, #222)}.pw-password-confirm__input-wrap{position:relative}.pw-password-confirm__input{padding-right:40px}.pw-password-confirm__reveal{position:absolute;top:50%;right:8px;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background:transparent;border:0;border-radius:4px;color:#6b7280;cursor:pointer}.pw-password-confirm__reveal:hover,.pw-password-confirm__reveal:focus-visible{color:var(--titles, #222);background:#0000000a;outline:none}.pw-password-confirm__reveal i{font-size:14px}.pw-password-confirm__footer{display:flex;justify-content:flex-end;gap:8px}::ng-deep .pw-password-confirm-modal .modal-content{border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 10px 30px #1018281f;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
4279
5125
|
}
|
|
4280
5126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PasswordValidationComponent, decorators: [{
|
|
4281
5127
|
type: Component,
|
|
@@ -4524,16 +5370,16 @@ class PrivacyAndTosComponent extends AppBaseComponent {
|
|
|
4524
5370
|
this.cdr.markForCheck();
|
|
4525
5371
|
});
|
|
4526
5372
|
}
|
|
4527
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyAndTosComponent, deps: [{ token: i1$
|
|
4528
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PrivacyAndTosComponent, isStandalone: false, selector: "pw-privacy-and-tos", inputs: { productId: "productId" }, usesInheritance: true, ngImport: i0, template: "@if (isPublic) {\n <pw-header [landing]=\"false\"></pw-header>\n}\n\n<div class=\"legal-page\" [class.legal-page--public]=\"isPublic\">\n\n <section class=\"legal-hero\">\n <div class=\"legal-hero__container\">\n @if (!isPublic) {\n <a class=\"legal-hero__back\" (click)=\"back()\" (keydown.enter)=\"back()\" role=\"button\" tabindex=\"0\" aria-label=\"Back\">\n <i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i>\n <span>Back</span>\n </a>\n }\n <span class=\"legal-hero__eyebrow\">Legal</span>\n <h1 class=\"legal-hero__title\">Privacy & terms</h1>\n <p class=\"legal-hero__subtitle\">\n @if (companyName) {\n Read how {{ companyName }} handles your data and what governs your use of the product.\n } @else {\n Read how we handle your data and what governs your use of the product.\n }\n </p>\n <div class=\"legal-hero__meta\">\n @if (data?.tos_updated_at) {\n <span class=\"legal-hero__pill\">\n <i class=\"fa fa-clock\" aria-hidden=\"true\"></i>\n Last updated {{ data.tos_updated_at | date: 'MMM d, y' }}\n </span>\n }\n @if (!isPublic && canEditPolicy) {\n <a class=\"legal-hero__edit\"\n [routerLink]=\"[routers.tosAndPrivacyDetails + privacyServiceId]\"\n [attr.aria-label]=\"'Button.Edit' | transloco\">\n <i class=\"fa fa-pen\" aria-hidden=\"true\"></i>\n <span>{{ 'Button.Edit' | transloco }}</span>\n </a>\n }\n </div>\n </div>\n </section>\n\n <div class=\"legal-tabs-band\">\n <div class=\"legal-tabs-band__container\">\n <ul ngbNav #nav=\"ngbNav\" [(activeId)]=\"tabId\" class=\"legal-tabs\">\n <li [ngbNavItem]=\"'privacy-policy'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Privacy policy</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.privacy) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.privacy\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Privacy policy isn't published yet</h2>\n <p>The policy for this product hasn't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"'terms-of-service'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Terms of service</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.tos) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.tos\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Terms of service aren't published yet</h2>\n <p>The terms for this product haven't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n </ul>\n </div>\n </div>\n\n <div class=\"legal-body\" [class.legal-body--no-toc]=\"\n (tabId === 'privacy-policy' && !tocPrivacy.length) ||\n (tabId === 'terms-of-service' && !tocTos.length)\n \">\n <div class=\"legal-body__container\">\n\n @if ((tabId === 'privacy-policy' && tocPrivacy.length) || (tabId === 'terms-of-service' && tocTos.length)) {\n <aside class=\"legal-sidebar\" aria-label=\"On this page\">\n <p class=\"legal-sidebar__label\">On this page</p>\n <nav class=\"legal-sidebar__nav\">\n @if (tabId === 'privacy-policy') {\n @for (item of tocPrivacy; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n } @else {\n @for (item of tocTos; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n }\n </nav>\n </aside>\n }\n\n <main class=\"legal-main\">\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n @if (isLoaded) {\n <div [ngbNavOutlet]=\"nav\"></div>\n }\n\n @if (isLoaded && companyEmail) {\n <section class=\"legal-contact\">\n <span class=\"legal-contact__label\">Questions?</span>\n <h2 class=\"legal-contact__title\">Talk to us about your data.</h2>\n <p class=\"legal-contact__body\">\n If anything here is unclear, or you want to exercise a right under these\n policies, reach out and we'll get back to you.\n </p>\n <a class=\"legal-contact__cta\" [href]=\"'mailto:' + companyEmail\">\n <i class=\"fa fa-envelope\" aria-hidden=\"true\"></i>\n <span>{{ companyEmail }}</span>\n </a>\n </section>\n }\n </main>\n\n </div>\n </div>\n\n</div>\n", 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}.legal-page{background:#f7f8fa;min-height:100vh}.legal-page--public{padding-top:64px}.legal-hero{padding:56px 0 32px}.legal-hero__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-hero__back{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 14px 6px 10px;font:600 13px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border:1px solid #e2e5ea;border-radius:9999px;background:#fff;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__back:hover{color:#1a1d21;border-color:#cfd4dc}.legal-hero__back .fa{font-size:11px;color:#7c8696}.legal-hero__eyebrow{display:inline-block;font:600 12px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--first);margin-bottom:16px}h1.legal-hero__title{font:700 clamp(36px,4.4vw,52px)/1.1 \"Roboto\",sans-serif;color:#1a1d21!important;margin:0 0 16px;letter-spacing:-.02em}.legal-hero__subtitle{font:400 clamp(16px,1.4vw,19px)/1.5 \"Roboto\",sans-serif;color:#5a6473;margin:0;text-wrap:pretty}.legal-hero__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.legal-hero__pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:#fff;border:1px solid #e2e5ea;border-radius:9999px;font:500 12px/1 Roboto,sans-serif;color:#5a6473}.legal-hero__pill .fa{font-size:11px;color:#7c8696}.legal-hero__edit{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;font:600 12px/1 Roboto,sans-serif;color:var(--first);text-decoration:none;border:1px solid #cfd4dc;border-radius:9999px;background:#fff;transition:border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__edit:hover{border-color:var(--first)}.legal-tabs-band{border-bottom:1px solid #e2e5ea;background:#f7f8fa}.legal-tabs-band__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-tabs{display:inline-flex;gap:0;padding:0;margin:0;list-style:none;border-bottom:0}.legal-tabs__item{margin:0;padding:0}.legal-tabs__link{display:inline-flex;align-items:center;padding:14px 4px;margin-right:28px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border-bottom:2px solid transparent;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-tabs__link:hover{color:#1a1d21}.legal-tabs__link.active,.legal-tabs__item.active .legal-tabs__link{color:#1a1d21;border-bottom-color:var(--first)}.legal-body{padding:48px 0 96px}.legal-body__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}.legal-body--no-toc .legal-body__container{grid-template-columns:minmax(0,1fr)}.legal-sidebar{position:sticky;top:88px}.legal-sidebar__label{font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin:0 0 14px}.legal-sidebar__nav{display:flex;flex-direction:column;border-left:1px solid #e2e5ea}.legal-sidebar__link{display:block;padding:7px 14px;margin-left:-1px;border-left:2px solid transparent;font:500 13px/1.45 Roboto,sans-serif;color:#5a6473;text-decoration:none;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-sidebar__link:hover{color:#1a1d21}.legal-sidebar__link:target,.legal-sidebar__link.is-active{color:var(--first);border-left-color:var(--first)}.legal-main{min-width:0}.legal-page__card{display:block;background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:48px;box-shadow:0 1px 2px #0f172a08}.legal-page__body{max-width:70ch}.legal-page__empty{text-align:center;padding:56px 16px;color:#5a6473}.legal-page__empty .fa{font-size:40px;color:#cfd4dc;margin-bottom:20px}.legal-page__empty h2{font:600 20px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 8px}.legal-page__empty p{font:400 15px/1.6 Roboto,sans-serif;color:#5a6473;margin:0}.legal-contact{margin-top:32px;padding:36px;background:#fff;border:1px solid #e2e5ea;border-radius:14px;box-shadow:0 1px 2px #0f172a08}.legal-contact__label{display:inline-block;font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin-bottom:10px}h2.legal-contact__title{font:600 22px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 10px;letter-spacing:-.005em}.legal-contact__body{font:400 15px/1.65 Roboto,sans-serif;color:#5a6473;margin:0 0 20px;max-width:56ch;text-wrap:pretty}.legal-contact__cta{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 22px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:10px;transition:background-color .15s cubic-bezier(.2,.7,.2,1),transform .15s cubic-bezier(.2,.7,.2,1),box-shadow .15s cubic-bezier(.2,.7,.2,1)}.legal-contact__cta:hover{background:color-mix(in srgb,var(--first) 88%,#000 12%);transform:translateY(-1px);box-shadow:0 10px 24px -12px var(--first)}::ng-deep .legal-page__body.ql-container,::ng-deep .legal-page__body .ql-container{max-width:none!important;margin:0;border:0!important;font-family:Roboto,sans-serif;resize:none!important}::ng-deep .legal-page__body .ql-editor{padding:0;max-width:70ch;font:400 16px/1.75 Roboto,sans-serif;color:#5a6473}::ng-deep .legal-page__body .ql-editor h1{font:700 28px/1.25 Roboto,sans-serif;color:#1a1d21;margin:0 0 16px;letter-spacing:-.01em}::ng-deep .legal-page__body .ql-editor h2{font:600 24px/1.3 Roboto,sans-serif;color:#1a1d21;margin:40px 0 12px;letter-spacing:-.005em;scroll-margin-top:88px}::ng-deep .legal-page__body .ql-editor h3{font:600 18px/1.4 Roboto,sans-serif;color:#1a1d21;margin:28px 0 8px}::ng-deep .legal-page__body .ql-editor h4,::ng-deep .legal-page__body .ql-editor h5,::ng-deep .legal-page__body .ql-editor h6{font:600 16px/1.4 Roboto,sans-serif;color:#1a1d21;margin:24px 0 6px}::ng-deep .legal-page__body .ql-editor p{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:0 0 14px;text-wrap:pretty}::ng-deep .legal-page__body .ql-editor p strong,::ng-deep .legal-page__body .ql-editor strong{font-weight:600;color:#1a1d21}::ng-deep .legal-page__body .ql-editor a{color:var(--first);text-decoration:none;font-weight:500}::ng-deep .legal-page__body .ql-editor a:hover{text-decoration:underline}::ng-deep .legal-page__body .ql-editor ol,::ng-deep .legal-page__body .ql-editor ul{padding-left:24px;margin:8px 0 16px}::ng-deep .legal-page__body .ql-editor ol li,::ng-deep .legal-page__body .ql-editor ul li{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:6px 0;padding:0}::ng-deep .legal-page__body .ql-editor ol li::marker,::ng-deep .legal-page__body .ql-editor ul li::marker{color:#7c8696;font-weight:500}::ng-deep .legal-page__body .ql-editor blockquote{border-left:3px solid #e2e5ea;padding:4px 0 4px 18px;margin:20px 0;color:#5a6473;font-style:italic}::ng-deep .legal-page__body .ql-editor hr{border:0;border-top:1px solid #e2e5ea;margin:40px 0}@media(max-width:991px){.legal-hero{padding:40px 0 24px}.legal-body{padding:32px 0 64px}.legal-body__container{grid-template-columns:1fr;gap:32px}.legal-sidebar{position:static}.legal-sidebar__nav{display:none}.legal-page__card{padding:32px}.legal-contact{padding:28px}}@media(max-width:575px){.legal-hero{padding:32px 0 20px}h1.legal-hero__title{font-size:30px}.legal-page__card,.legal-contact{padding:22px;border-radius:12px}.legal-contact__title{font-size:19px}.legal-tabs__link{padding:12px 4px;margin-right:20px;font-size:13px}}@media print{.legal-page{background:#fff}.legal-sidebar,.legal-tabs-band,.legal-hero__back,.legal-hero__edit,.legal-contact__cta{display:none!important}.legal-page__card{border:0;padding:0;box-shadow:none}.legal-body__container{grid-template-columns:1fr}}\n"], dependencies: [{ kind: "component", type: i3$2.AppLoaderComponent, selector: "pw-loader", inputs: ["isVisible", "closeOnOutsideClick", "autoCloseTimeOut"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i5.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i5.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i5.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i5.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i5.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i5.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i5.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: HeaderComponent, selector: "pw-header", inputs: ["landing"] }, { kind: "pipe", type: i1$3.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.DatePipe, name: "date" }] }); }
|
|
5373
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyAndTosComponent, deps: [{ token: i1$1.AdminService }, { token: i0.Injector }, { token: DOCUMENT$1 }, { token: i2$3.DomSanitizer }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5374
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PrivacyAndTosComponent, isStandalone: false, selector: "pw-privacy-and-tos", inputs: { productId: "productId" }, usesInheritance: true, ngImport: i0, template: "@if (isPublic) {\n <pw-header [landing]=\"false\"></pw-header>\n}\n\n<div class=\"legal-page\" [class.legal-page--public]=\"isPublic\">\n\n <section class=\"legal-hero\">\n <div class=\"legal-hero__container\">\n @if (!isPublic) {\n <a class=\"legal-hero__back\" (click)=\"back()\" (keydown.enter)=\"back()\" role=\"button\" tabindex=\"0\" aria-label=\"Back\">\n <i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i>\n <span>Back</span>\n </a>\n }\n <span class=\"legal-hero__eyebrow\">Legal</span>\n <h1 class=\"legal-hero__title\">Privacy & terms</h1>\n <p class=\"legal-hero__subtitle\">\n @if (companyName) {\n Read how {{ companyName }} handles your data and what governs your use of the product.\n } @else {\n Read how we handle your data and what governs your use of the product.\n }\n </p>\n <div class=\"legal-hero__meta\">\n @if (data?.tos_updated_at) {\n <span class=\"legal-hero__pill\">\n <i class=\"fa fa-clock\" aria-hidden=\"true\"></i>\n Last updated {{ data.tos_updated_at | date: 'MMM d, y' }}\n </span>\n }\n @if (!isPublic && canEditPolicy) {\n <a class=\"legal-hero__edit\"\n [routerLink]=\"[routers.tosAndPrivacyDetails + privacyServiceId]\"\n [attr.aria-label]=\"'Button.Edit' | transloco\">\n <i class=\"fa fa-pen\" aria-hidden=\"true\"></i>\n <span>{{ 'Button.Edit' | transloco }}</span>\n </a>\n }\n </div>\n </div>\n </section>\n\n <div class=\"legal-tabs-band\">\n <div class=\"legal-tabs-band__container\">\n <ul ngbNav #nav=\"ngbNav\" [(activeId)]=\"tabId\" class=\"legal-tabs\">\n <li [ngbNavItem]=\"'privacy-policy'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Privacy policy</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.privacy) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.privacy\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Privacy policy isn't published yet</h2>\n <p>The policy for this product hasn't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"'terms-of-service'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Terms of service</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.tos) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.tos\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Terms of service aren't published yet</h2>\n <p>The terms for this product haven't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n </ul>\n </div>\n </div>\n\n <div class=\"legal-body\" [class.legal-body--no-toc]=\"\n (tabId === 'privacy-policy' && !tocPrivacy.length) ||\n (tabId === 'terms-of-service' && !tocTos.length)\n \">\n <div class=\"legal-body__container\">\n\n @if ((tabId === 'privacy-policy' && tocPrivacy.length) || (tabId === 'terms-of-service' && tocTos.length)) {\n <aside class=\"legal-sidebar\" aria-label=\"On this page\">\n <p class=\"legal-sidebar__label\">On this page</p>\n <nav class=\"legal-sidebar__nav\">\n @if (tabId === 'privacy-policy') {\n @for (item of tocPrivacy; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n } @else {\n @for (item of tocTos; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n }\n </nav>\n </aside>\n }\n\n <main class=\"legal-main\">\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n @if (isLoaded) {\n <div [ngbNavOutlet]=\"nav\"></div>\n }\n\n @if (isLoaded && companyEmail) {\n <section class=\"legal-contact\">\n <span class=\"legal-contact__label\">Questions?</span>\n <h2 class=\"legal-contact__title\">Talk to us about your data.</h2>\n <p class=\"legal-contact__body\">\n If anything here is unclear, or you want to exercise a right under these\n policies, reach out and we'll get back to you.\n </p>\n <a class=\"legal-contact__cta\" [href]=\"'mailto:' + companyEmail\">\n <i class=\"fa fa-envelope\" aria-hidden=\"true\"></i>\n <span>{{ companyEmail }}</span>\n </a>\n </section>\n }\n </main>\n\n </div>\n </div>\n\n</div>\n", 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}.legal-page{background:#f7f8fa;min-height:100vh}.legal-page--public{padding-top:64px}.legal-hero{padding:56px 0 32px}.legal-hero__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-hero__back{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 14px 6px 10px;font:600 13px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border:1px solid #e2e5ea;border-radius:9999px;background:#fff;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__back:hover{color:#1a1d21;border-color:#cfd4dc}.legal-hero__back .fa{font-size:11px;color:#7c8696}.legal-hero__eyebrow{display:inline-block;font:600 12px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--first);margin-bottom:16px}h1.legal-hero__title{font:700 clamp(36px,4.4vw,52px)/1.1 \"Roboto\",sans-serif;color:#1a1d21!important;margin:0 0 16px;letter-spacing:-.02em}.legal-hero__subtitle{font:400 clamp(16px,1.4vw,19px)/1.5 \"Roboto\",sans-serif;color:#5a6473;margin:0;text-wrap:pretty}.legal-hero__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.legal-hero__pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:#fff;border:1px solid #e2e5ea;border-radius:9999px;font:500 12px/1 Roboto,sans-serif;color:#5a6473}.legal-hero__pill .fa{font-size:11px;color:#7c8696}.legal-hero__edit{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;font:600 12px/1 Roboto,sans-serif;color:var(--first);text-decoration:none;border:1px solid #cfd4dc;border-radius:9999px;background:#fff;transition:border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__edit:hover{border-color:var(--first)}.legal-tabs-band{border-bottom:1px solid #e2e5ea;background:#f7f8fa}.legal-tabs-band__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-tabs{display:inline-flex;gap:0;padding:0;margin:0;list-style:none;border-bottom:0}.legal-tabs__item{margin:0;padding:0}.legal-tabs__link{display:inline-flex;align-items:center;padding:14px 4px;margin-right:28px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border-bottom:2px solid transparent;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-tabs__link:hover{color:#1a1d21}.legal-tabs__link.active,.legal-tabs__item.active .legal-tabs__link{color:#1a1d21;border-bottom-color:var(--first)}.legal-body{padding:48px 0 96px}.legal-body__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}.legal-body--no-toc .legal-body__container{grid-template-columns:minmax(0,1fr)}.legal-sidebar{position:sticky;top:88px}.legal-sidebar__label{font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin:0 0 14px}.legal-sidebar__nav{display:flex;flex-direction:column;border-left:1px solid #e2e5ea}.legal-sidebar__link{display:block;padding:7px 14px;margin-left:-1px;border-left:2px solid transparent;font:500 13px/1.45 Roboto,sans-serif;color:#5a6473;text-decoration:none;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-sidebar__link:hover{color:#1a1d21}.legal-sidebar__link:target,.legal-sidebar__link.is-active{color:var(--first);border-left-color:var(--first)}.legal-main{min-width:0}.legal-page__card{display:block;background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:48px;box-shadow:0 1px 2px #0f172a08}.legal-page__body{max-width:70ch}.legal-page__empty{text-align:center;padding:56px 16px;color:#5a6473}.legal-page__empty .fa{font-size:40px;color:#cfd4dc;margin-bottom:20px}.legal-page__empty h2{font:600 20px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 8px}.legal-page__empty p{font:400 15px/1.6 Roboto,sans-serif;color:#5a6473;margin:0}.legal-contact{margin-top:32px;padding:36px;background:#fff;border:1px solid #e2e5ea;border-radius:14px;box-shadow:0 1px 2px #0f172a08}.legal-contact__label{display:inline-block;font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin-bottom:10px}h2.legal-contact__title{font:600 22px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 10px;letter-spacing:-.005em}.legal-contact__body{font:400 15px/1.65 Roboto,sans-serif;color:#5a6473;margin:0 0 20px;max-width:56ch;text-wrap:pretty}.legal-contact__cta{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 22px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:10px;transition:background-color .15s cubic-bezier(.2,.7,.2,1),transform .15s cubic-bezier(.2,.7,.2,1),box-shadow .15s cubic-bezier(.2,.7,.2,1)}.legal-contact__cta:hover{background:color-mix(in srgb,var(--first) 88%,#000 12%);transform:translateY(-1px);box-shadow:0 10px 24px -12px var(--first)}::ng-deep .legal-page__body.ql-container,::ng-deep .legal-page__body .ql-container{max-width:none!important;margin:0;border:0!important;font-family:Roboto,sans-serif;resize:none!important}::ng-deep .legal-page__body .ql-editor{padding:0;max-width:70ch;font:400 16px/1.75 Roboto,sans-serif;color:#5a6473}::ng-deep .legal-page__body .ql-editor h1{font:700 28px/1.25 Roboto,sans-serif;color:#1a1d21;margin:0 0 16px;letter-spacing:-.01em}::ng-deep .legal-page__body .ql-editor h2{font:600 24px/1.3 Roboto,sans-serif;color:#1a1d21;margin:40px 0 12px;letter-spacing:-.005em;scroll-margin-top:88px}::ng-deep .legal-page__body .ql-editor h3{font:600 18px/1.4 Roboto,sans-serif;color:#1a1d21;margin:28px 0 8px}::ng-deep .legal-page__body .ql-editor h4,::ng-deep .legal-page__body .ql-editor h5,::ng-deep .legal-page__body .ql-editor h6{font:600 16px/1.4 Roboto,sans-serif;color:#1a1d21;margin:24px 0 6px}::ng-deep .legal-page__body .ql-editor p{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:0 0 14px;text-wrap:pretty}::ng-deep .legal-page__body .ql-editor p strong,::ng-deep .legal-page__body .ql-editor strong{font-weight:600;color:#1a1d21}::ng-deep .legal-page__body .ql-editor a{color:var(--first);text-decoration:none;font-weight:500}::ng-deep .legal-page__body .ql-editor a:hover{text-decoration:underline}::ng-deep .legal-page__body .ql-editor ol,::ng-deep .legal-page__body .ql-editor ul{padding-left:24px;margin:8px 0 16px}::ng-deep .legal-page__body .ql-editor ol li,::ng-deep .legal-page__body .ql-editor ul li{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:6px 0;padding:0}::ng-deep .legal-page__body .ql-editor ol li::marker,::ng-deep .legal-page__body .ql-editor ul li::marker{color:#7c8696;font-weight:500}::ng-deep .legal-page__body .ql-editor blockquote{border-left:3px solid #e2e5ea;padding:4px 0 4px 18px;margin:20px 0;color:#5a6473;font-style:italic}::ng-deep .legal-page__body .ql-editor hr{border:0;border-top:1px solid #e2e5ea;margin:40px 0}@media(max-width:991px){.legal-hero{padding:40px 0 24px}.legal-body{padding:32px 0 64px}.legal-body__container{grid-template-columns:1fr;gap:32px}.legal-sidebar{position:static}.legal-sidebar__nav{display:none}.legal-page__card{padding:32px}.legal-contact{padding:28px}}@media(max-width:575px){.legal-hero{padding:32px 0 20px}h1.legal-hero__title{font-size:30px}.legal-page__card,.legal-contact{padding:22px;border-radius:12px}.legal-contact__title{font-size:19px}.legal-tabs__link{padding:12px 4px;margin-right:20px;font-size:13px}}@media print{.legal-page{background:#fff}.legal-sidebar,.legal-tabs-band,.legal-hero__back,.legal-hero__edit,.legal-contact__cta{display:none!important}.legal-page__card{border:0;padding:0;box-shadow:none}.legal-body__container{grid-template-columns:1fr}}\n"], dependencies: [{ kind: "component", type: i3$2.AppLoaderComponent, selector: "pw-loader", inputs: ["isVisible", "closeOnOutsideClick", "autoCloseTimeOut"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i5.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i5.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i5.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i5.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i5.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i5.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i5.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: HeaderComponent, selector: "pw-header", inputs: ["landing"] }, { kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }, { kind: "pipe", type: i8.DatePipe, name: "date" }] }); }
|
|
4529
5375
|
}
|
|
4530
5376
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyAndTosComponent, decorators: [{
|
|
4531
5377
|
type: Component,
|
|
4532
5378
|
args: [{ selector: 'pw-privacy-and-tos', standalone: false, template: "@if (isPublic) {\n <pw-header [landing]=\"false\"></pw-header>\n}\n\n<div class=\"legal-page\" [class.legal-page--public]=\"isPublic\">\n\n <section class=\"legal-hero\">\n <div class=\"legal-hero__container\">\n @if (!isPublic) {\n <a class=\"legal-hero__back\" (click)=\"back()\" (keydown.enter)=\"back()\" role=\"button\" tabindex=\"0\" aria-label=\"Back\">\n <i class=\"fa fa-chevron-left\" aria-hidden=\"true\"></i>\n <span>Back</span>\n </a>\n }\n <span class=\"legal-hero__eyebrow\">Legal</span>\n <h1 class=\"legal-hero__title\">Privacy & terms</h1>\n <p class=\"legal-hero__subtitle\">\n @if (companyName) {\n Read how {{ companyName }} handles your data and what governs your use of the product.\n } @else {\n Read how we handle your data and what governs your use of the product.\n }\n </p>\n <div class=\"legal-hero__meta\">\n @if (data?.tos_updated_at) {\n <span class=\"legal-hero__pill\">\n <i class=\"fa fa-clock\" aria-hidden=\"true\"></i>\n Last updated {{ data.tos_updated_at | date: 'MMM d, y' }}\n </span>\n }\n @if (!isPublic && canEditPolicy) {\n <a class=\"legal-hero__edit\"\n [routerLink]=\"[routers.tosAndPrivacyDetails + privacyServiceId]\"\n [attr.aria-label]=\"'Button.Edit' | transloco\">\n <i class=\"fa fa-pen\" aria-hidden=\"true\"></i>\n <span>{{ 'Button.Edit' | transloco }}</span>\n </a>\n }\n </div>\n </div>\n </section>\n\n <div class=\"legal-tabs-band\">\n <div class=\"legal-tabs-band__container\">\n <ul ngbNav #nav=\"ngbNav\" [(activeId)]=\"tabId\" class=\"legal-tabs\">\n <li [ngbNavItem]=\"'privacy-policy'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Privacy policy</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.privacy) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.privacy\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Privacy policy isn't published yet</h2>\n <p>The policy for this product hasn't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n <li [ngbNavItem]=\"'terms-of-service'\" class=\"legal-tabs__item\">\n <a ngbNavLink class=\"legal-tabs__link\">Terms of service</a>\n <ng-template ngbNavContent>\n <article class=\"legal-page__card\">\n @if (data?.tos) {\n <div class=\"ql-container ql-snow legal-page__body\">\n <div class=\"ql-editor\" [innerHTML]=\"data?.tos\"></div>\n </div>\n } @else {\n <div class=\"legal-page__empty\">\n <i class=\"fa fa-file-lines\" aria-hidden=\"true\"></i>\n <h2>Terms of service aren't published yet</h2>\n <p>The terms for this product haven't been written. Check back later.</p>\n </div>\n }\n </article>\n </ng-template>\n </li>\n </ul>\n </div>\n </div>\n\n <div class=\"legal-body\" [class.legal-body--no-toc]=\"\n (tabId === 'privacy-policy' && !tocPrivacy.length) ||\n (tabId === 'terms-of-service' && !tocTos.length)\n \">\n <div class=\"legal-body__container\">\n\n @if ((tabId === 'privacy-policy' && tocPrivacy.length) || (tabId === 'terms-of-service' && tocTos.length)) {\n <aside class=\"legal-sidebar\" aria-label=\"On this page\">\n <p class=\"legal-sidebar__label\">On this page</p>\n <nav class=\"legal-sidebar__nav\">\n @if (tabId === 'privacy-policy') {\n @for (item of tocPrivacy; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n } @else {\n @for (item of tocTos; track item.id) {\n <a class=\"legal-sidebar__link\" [href]=\"'#' + item.id\">{{ item.text }}</a>\n }\n }\n </nav>\n </aside>\n }\n\n <main class=\"legal-main\">\n <pw-loader [isVisible]=\"!isLoaded\"></pw-loader>\n @if (isLoaded) {\n <div [ngbNavOutlet]=\"nav\"></div>\n }\n\n @if (isLoaded && companyEmail) {\n <section class=\"legal-contact\">\n <span class=\"legal-contact__label\">Questions?</span>\n <h2 class=\"legal-contact__title\">Talk to us about your data.</h2>\n <p class=\"legal-contact__body\">\n If anything here is unclear, or you want to exercise a right under these\n policies, reach out and we'll get back to you.\n </p>\n <a class=\"legal-contact__cta\" [href]=\"'mailto:' + companyEmail\">\n <i class=\"fa fa-envelope\" aria-hidden=\"true\"></i>\n <span>{{ companyEmail }}</span>\n </a>\n </section>\n }\n </main>\n\n </div>\n </div>\n\n</div>\n", 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}.legal-page{background:#f7f8fa;min-height:100vh}.legal-page--public{padding-top:64px}.legal-hero{padding:56px 0 32px}.legal-hero__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-hero__back{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:6px 14px 6px 10px;font:600 13px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border:1px solid #e2e5ea;border-radius:9999px;background:#fff;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__back:hover{color:#1a1d21;border-color:#cfd4dc}.legal-hero__back .fa{font-size:11px;color:#7c8696}.legal-hero__eyebrow{display:inline-block;font:600 12px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:var(--first);margin-bottom:16px}h1.legal-hero__title{font:700 clamp(36px,4.4vw,52px)/1.1 \"Roboto\",sans-serif;color:#1a1d21!important;margin:0 0 16px;letter-spacing:-.02em}.legal-hero__subtitle{font:400 clamp(16px,1.4vw,19px)/1.5 \"Roboto\",sans-serif;color:#5a6473;margin:0;text-wrap:pretty}.legal-hero__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.legal-hero__pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:#fff;border:1px solid #e2e5ea;border-radius:9999px;font:500 12px/1 Roboto,sans-serif;color:#5a6473}.legal-hero__pill .fa{font-size:11px;color:#7c8696}.legal-hero__edit{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;font:600 12px/1 Roboto,sans-serif;color:var(--first);text-decoration:none;border:1px solid #cfd4dc;border-radius:9999px;background:#fff;transition:border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-hero__edit:hover{border-color:var(--first)}.legal-tabs-band{border-bottom:1px solid #e2e5ea;background:#f7f8fa}.legal-tabs-band__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}.legal-tabs{display:inline-flex;gap:0;padding:0;margin:0;list-style:none;border-bottom:0}.legal-tabs__item{margin:0;padding:0}.legal-tabs__link{display:inline-flex;align-items:center;padding:14px 4px;margin-right:28px;font:600 14px/1 Roboto,sans-serif;color:#5a6473;text-decoration:none;cursor:pointer;border-bottom:2px solid transparent;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-tabs__link:hover{color:#1a1d21}.legal-tabs__link.active,.legal-tabs__item.active .legal-tabs__link{color:#1a1d21;border-bottom-color:var(--first)}.legal-body{padding:48px 0 96px}.legal-body__container{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px);display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}.legal-body--no-toc .legal-body__container{grid-template-columns:minmax(0,1fr)}.legal-sidebar{position:sticky;top:88px}.legal-sidebar__label{font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin:0 0 14px}.legal-sidebar__nav{display:flex;flex-direction:column;border-left:1px solid #e2e5ea}.legal-sidebar__link{display:block;padding:7px 14px;margin-left:-1px;border-left:2px solid transparent;font:500 13px/1.45 Roboto,sans-serif;color:#5a6473;text-decoration:none;transition:color .15s cubic-bezier(.2,.7,.2,1),border-color .15s cubic-bezier(.2,.7,.2,1)}.legal-sidebar__link:hover{color:#1a1d21}.legal-sidebar__link:target,.legal-sidebar__link.is-active{color:var(--first);border-left-color:var(--first)}.legal-main{min-width:0}.legal-page__card{display:block;background:#fff;border:1px solid #e2e5ea;border-radius:14px;padding:48px;box-shadow:0 1px 2px #0f172a08}.legal-page__body{max-width:70ch}.legal-page__empty{text-align:center;padding:56px 16px;color:#5a6473}.legal-page__empty .fa{font-size:40px;color:#cfd4dc;margin-bottom:20px}.legal-page__empty h2{font:600 20px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 8px}.legal-page__empty p{font:400 15px/1.6 Roboto,sans-serif;color:#5a6473;margin:0}.legal-contact{margin-top:32px;padding:36px;background:#fff;border:1px solid #e2e5ea;border-radius:14px;box-shadow:0 1px 2px #0f172a08}.legal-contact__label{display:inline-block;font:600 11px/1 Roboto,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#7c8696;margin-bottom:10px}h2.legal-contact__title{font:600 22px/1.3 Roboto,sans-serif;color:#1a1d21!important;margin:0 0 10px;letter-spacing:-.005em}.legal-contact__body{font:400 15px/1.65 Roboto,sans-serif;color:#5a6473;margin:0 0 20px;max-width:56ch;text-wrap:pretty}.legal-contact__cta{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 22px;font:600 14px/1 Roboto,sans-serif;color:#fff!important;text-decoration:none;background:var(--first);border:1px solid var(--first);border-radius:10px;transition:background-color .15s cubic-bezier(.2,.7,.2,1),transform .15s cubic-bezier(.2,.7,.2,1),box-shadow .15s cubic-bezier(.2,.7,.2,1)}.legal-contact__cta:hover{background:color-mix(in srgb,var(--first) 88%,#000 12%);transform:translateY(-1px);box-shadow:0 10px 24px -12px var(--first)}::ng-deep .legal-page__body.ql-container,::ng-deep .legal-page__body .ql-container{max-width:none!important;margin:0;border:0!important;font-family:Roboto,sans-serif;resize:none!important}::ng-deep .legal-page__body .ql-editor{padding:0;max-width:70ch;font:400 16px/1.75 Roboto,sans-serif;color:#5a6473}::ng-deep .legal-page__body .ql-editor h1{font:700 28px/1.25 Roboto,sans-serif;color:#1a1d21;margin:0 0 16px;letter-spacing:-.01em}::ng-deep .legal-page__body .ql-editor h2{font:600 24px/1.3 Roboto,sans-serif;color:#1a1d21;margin:40px 0 12px;letter-spacing:-.005em;scroll-margin-top:88px}::ng-deep .legal-page__body .ql-editor h3{font:600 18px/1.4 Roboto,sans-serif;color:#1a1d21;margin:28px 0 8px}::ng-deep .legal-page__body .ql-editor h4,::ng-deep .legal-page__body .ql-editor h5,::ng-deep .legal-page__body .ql-editor h6{font:600 16px/1.4 Roboto,sans-serif;color:#1a1d21;margin:24px 0 6px}::ng-deep .legal-page__body .ql-editor p{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:0 0 14px;text-wrap:pretty}::ng-deep .legal-page__body .ql-editor p strong,::ng-deep .legal-page__body .ql-editor strong{font-weight:600;color:#1a1d21}::ng-deep .legal-page__body .ql-editor a{color:var(--first);text-decoration:none;font-weight:500}::ng-deep .legal-page__body .ql-editor a:hover{text-decoration:underline}::ng-deep .legal-page__body .ql-editor ol,::ng-deep .legal-page__body .ql-editor ul{padding-left:24px;margin:8px 0 16px}::ng-deep .legal-page__body .ql-editor ol li,::ng-deep .legal-page__body .ql-editor ul li{font:400 16px/1.75 Roboto,sans-serif;color:#5a6473;margin:6px 0;padding:0}::ng-deep .legal-page__body .ql-editor ol li::marker,::ng-deep .legal-page__body .ql-editor ul li::marker{color:#7c8696;font-weight:500}::ng-deep .legal-page__body .ql-editor blockquote{border-left:3px solid #e2e5ea;padding:4px 0 4px 18px;margin:20px 0;color:#5a6473;font-style:italic}::ng-deep .legal-page__body .ql-editor hr{border:0;border-top:1px solid #e2e5ea;margin:40px 0}@media(max-width:991px){.legal-hero{padding:40px 0 24px}.legal-body{padding:32px 0 64px}.legal-body__container{grid-template-columns:1fr;gap:32px}.legal-sidebar{position:static}.legal-sidebar__nav{display:none}.legal-page__card{padding:32px}.legal-contact{padding:28px}}@media(max-width:575px){.legal-hero{padding:32px 0 20px}h1.legal-hero__title{font-size:30px}.legal-page__card,.legal-contact{padding:22px;border-radius:12px}.legal-contact__title{font-size:19px}.legal-tabs__link{padding:12px 4px;margin-right:20px;font-size:13px}}@media print{.legal-page{background:#fff}.legal-sidebar,.legal-tabs-band,.legal-hero__back,.legal-hero__edit,.legal-contact__cta{display:none!important}.legal-page__card{border:0;padding:0;box-shadow:none}.legal-body__container{grid-template-columns:1fr}}\n"] }]
|
|
4533
|
-
}], ctorParameters: () => [{ type: i1$
|
|
5379
|
+
}], ctorParameters: () => [{ type: i1$1.AdminService }, { type: i0.Injector }, { type: Document, decorators: [{
|
|
4534
5380
|
type: Inject,
|
|
4535
5381
|
args: [DOCUMENT$1]
|
|
4536
|
-
}] }, { type:
|
|
5382
|
+
}] }, { type: i2$3.DomSanitizer }, { type: i0.ChangeDetectorRef }], propDecorators: { productId: [{
|
|
4537
5383
|
type: Input
|
|
4538
5384
|
}] } });
|
|
4539
5385
|
|
|
@@ -4552,7 +5398,7 @@ class PrivacyPolicyComponent {
|
|
|
4552
5398
|
});
|
|
4553
5399
|
});
|
|
4554
5400
|
}
|
|
4555
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyPolicyComponent, deps: [{ token:
|
|
5401
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyPolicyComponent, deps: [{ token: i2$1.AppConfigService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4556
5402
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: PrivacyPolicyComponent, isStandalone: false, selector: "pw-privacy-policy", ngImport: i0, template: '', isInline: true }); }
|
|
4557
5403
|
}
|
|
4558
5404
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PrivacyPolicyComponent, decorators: [{
|
|
@@ -4562,7 +5408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
4562
5408
|
template: '',
|
|
4563
5409
|
standalone: false
|
|
4564
5410
|
}]
|
|
4565
|
-
}], ctorParameters: () => [{ type:
|
|
5411
|
+
}], ctorParameters: () => [{ type: i2$1.AppConfigService }, { type: i2.Router }] });
|
|
4566
5412
|
|
|
4567
5413
|
class PwTabsComponent extends AppBaseComponent {
|
|
4568
5414
|
constructor(injector, cdr) {
|
|
@@ -4635,7 +5481,7 @@ class PwTabsComponent extends AppBaseComponent {
|
|
|
4635
5481
|
this.routeEventSubscription.unsubscribe();
|
|
4636
5482
|
}
|
|
4637
5483
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwTabsComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4638
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PwTabsComponent, isStandalone: false, selector: "pw-tabs", inputs: { items: "items", withSubscription: "withSubscription" }, usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabs [value]=\"activeTabValue\" (valueChange)=\"onTabChange($event)\">\n <p-tablist>\n @for (item of items; track trackByItem($index, item)) {\n @if (item.visible !== false) {\n <p-tab [value]=\"getItemValue(item)\">\n @if (item.icon) {\n <i [class]=\"item.icon\" aria-hidden=\"true\"></i>\n }\n <span>{{ item.label }}</span>\n </p-tab>\n }\n }\n </p-tablist>\n </p-tabs>\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <router-outlet></router-outlet>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i2$
|
|
5484
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: PwTabsComponent, isStandalone: false, selector: "pw-tabs", inputs: { items: "items", withSubscription: "withSubscription" }, usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabs [value]=\"activeTabValue\" (valueChange)=\"onTabChange($event)\">\n <p-tablist>\n @for (item of items; track trackByItem($index, item)) {\n @if (item.visible !== false) {\n <p-tab [value]=\"getItemValue(item)\">\n @if (item.icon) {\n <i [class]=\"item.icon\" aria-hidden=\"true\"></i>\n }\n <span>{{ item.label }}</span>\n </p-tab>\n }\n }\n </p-tablist>\n </p-tabs>\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <router-outlet></router-outlet>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i2$4.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i2$4.TabList, selector: "p-tablist" }, { kind: "component", type: i2$4.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }] }); }
|
|
4639
5485
|
}
|
|
4640
5486
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PwTabsComponent, decorators: [{
|
|
4641
5487
|
type: Component,
|
|
@@ -4675,7 +5521,7 @@ class DateRangePickerComponent {
|
|
|
4675
5521
|
}, 50);
|
|
4676
5522
|
}
|
|
4677
5523
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: DateRangePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4678
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: DateRangePickerComponent, isStandalone: false, selector: "app-date-picker", inputs: { selectedDateRange: "selectedDateRange", dateRanges: "dateRanges", inputId: "inputId" }, outputs: { dateRangeChange: "dateRangeChange" }, viewQueries: [{ propertyName: "pickerDirective", first: true, predicate: DaterangepickerDirective, descendants: true }], ngImport: i0, template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>", styles: ["::ng-deep .md-drppicker{top:auto!important;left:auto!important;margin-top:0!important}::ng-deep .md-drppicker .clear svg{margin-right:2px;margin-bottom:10px}.pop{margin-left:-28px;padding-left:0}.pop .daterange-trigger{margin-left:0}.pop .btn.ngx-daterangepicker-action{min-height:36px;display:inline-flex;align-items:center;justify-content:center;background:var(--first)!important;border:1px solid var(--first)!important;color:#fff!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-left:0!important}.form-control{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}\n"], dependencies: [{ kind: "directive", type: i2$
|
|
5524
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: DateRangePickerComponent, isStandalone: false, selector: "app-date-picker", inputs: { selectedDateRange: "selectedDateRange", dateRanges: "dateRanges", inputId: "inputId" }, outputs: { dateRangeChange: "dateRangeChange" }, viewQueries: [{ propertyName: "pickerDirective", first: true, predicate: DaterangepickerDirective, descendants: true }], ngImport: i0, template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>", styles: ["::ng-deep .md-drppicker{top:auto!important;left:auto!important;margin-top:0!important}::ng-deep .md-drppicker .clear svg{margin-right:2px;margin-bottom:10px}.pop{margin-left:-28px;padding-left:0}.pop .daterange-trigger{margin-left:0}.pop .btn.ngx-daterangepicker-action{min-height:36px;display:inline-flex;align-items:center;justify-content:center;background:var(--first)!important;border:1px solid var(--first)!important;color:#fff!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-left:0!important}.form-control{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}\n"], dependencies: [{ kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$2.DaterangepickerDirective, selector: "input[ngxDaterangepickerMd]", inputs: ["minDate", "maxDate", "autoApply", "alwaysShowCalendars", "showCustomRangeLabel", "linkedCalendars", "dateLimit", "singleDatePicker", "showWeekNumbers", "showISOWeekNumbers", "showDropdowns", "isInvalidDate", "isCustomDate", "isTooltipDate", "showClearButton", "customRangeDirection", "ranges", "opens", "drops", "firstMonthDayClass", "lastMonthDayClass", "emptyWeekRowClass", "emptyWeekColumnClass", "firstDayOfNextMonthClass", "lastDayOfPreviousMonthClass", "keepCalendarOpeningWithRange", "showRangeLabelOnInput", "showCancel", "lockStartDate", "timePicker", "timePicker24Hour", "timePickerIncrement", "timePickerSeconds", "closeOnAutoApply", "endKeyHolder", "startKey", "locale", "endKey"], outputs: ["change", "rangeClicked", "datesUpdated", "startDateChanged", "endDateChanged", "clearClicked"] }] }); }
|
|
4679
5525
|
}
|
|
4680
5526
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: DateRangePickerComponent, decorators: [{
|
|
4681
5527
|
type: Component,
|
|
@@ -4831,7 +5677,7 @@ class RecordsSummaryComponent {
|
|
|
4831
5677
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: RecordsSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4832
5678
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: RecordsSummaryComponent, isStandalone: false, selector: "pw-records-summary", inputs: { showing: "showing", total: "total" }, host: { classAttribute: "total-records-count" }, ngImport: i0, template: `{{
|
|
4833
5679
|
'Label.RecordsSummary' | transloco: { showing: showing ?? 0, total: total ?? 0 }
|
|
4834
|
-
}}`, isInline: true, dependencies: [{ kind: "pipe", type:
|
|
5680
|
+
}}`, isInline: true, dependencies: [{ kind: "pipe", type: i5$1.TranslocoPipe, name: "transloco" }] }); }
|
|
4835
5681
|
}
|
|
4836
5682
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: RecordsSummaryComponent, decorators: [{
|
|
4837
5683
|
type: Component,
|
|
@@ -4972,7 +5818,7 @@ class TermsConditionsComponent {
|
|
|
4972
5818
|
});
|
|
4973
5819
|
});
|
|
4974
5820
|
}
|
|
4975
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: TermsConditionsComponent, deps: [{ token:
|
|
5821
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: TermsConditionsComponent, deps: [{ token: i2$1.AppConfigService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4976
5822
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: TermsConditionsComponent, isStandalone: false, selector: "pw-terms-conditions", ngImport: i0, template: '', isInline: true }); }
|
|
4977
5823
|
}
|
|
4978
5824
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: TermsConditionsComponent, decorators: [{
|
|
@@ -4982,7 +5828,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
4982
5828
|
template: '',
|
|
4983
5829
|
standalone: false
|
|
4984
5830
|
}]
|
|
4985
|
-
}], ctorParameters: () => [{ type:
|
|
5831
|
+
}], ctorParameters: () => [{ type: i2$1.AppConfigService }, { type: i2.Router }] });
|
|
4986
5832
|
|
|
4987
5833
|
// All modules needed for both landing page and dashboard
|
|
4988
5834
|
const allModules = [
|
|
@@ -5003,7 +5849,8 @@ const allModules = [
|
|
|
5003
5849
|
];
|
|
5004
5850
|
class SharedComponentsModule {
|
|
5005
5851
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SharedComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5006
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.19", ngImport: i0, type: SharedComponentsModule, declarations: [
|
|
5852
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.19", ngImport: i0, type: SharedComponentsModule, declarations: [CommandPaletteComponent,
|
|
5853
|
+
ConfirmDialogComponent,
|
|
5007
5854
|
PasswordValidationComponent,
|
|
5008
5855
|
PwTabsComponent,
|
|
5009
5856
|
DateRangePickerComponent,
|
|
@@ -5048,7 +5895,7 @@ class SharedComponentsModule {
|
|
|
5048
5895
|
ProgressSpinnerModule,
|
|
5049
5896
|
AutoCompleteModule,
|
|
5050
5897
|
ImageCropperModule,
|
|
5051
|
-
UiSwitchModule, i1$
|
|
5898
|
+
UiSwitchModule, i1$2.NgxDaterangepickerMd, PipesModule,
|
|
5052
5899
|
CommonModule,
|
|
5053
5900
|
NgIf,
|
|
5054
5901
|
FieldErrorDisplayModule,
|
|
@@ -5056,7 +5903,8 @@ class SharedComponentsModule {
|
|
|
5056
5903
|
CollapsibleSidebarTriggerDirective,
|
|
5057
5904
|
PwCookieBannerComponent,
|
|
5058
5905
|
SafeMarkdownPipe,
|
|
5059
|
-
PwBrainChatThreadDirective], exports: [
|
|
5906
|
+
PwBrainChatThreadDirective], exports: [CommandPaletteComponent,
|
|
5907
|
+
ConfirmDialogComponent,
|
|
5060
5908
|
PwCookieBannerComponent,
|
|
5061
5909
|
PasswordValidationComponent,
|
|
5062
5910
|
PwTabsComponent,
|
|
@@ -5072,7 +5920,7 @@ class SharedComponentsModule {
|
|
|
5072
5920
|
ProgressSpinnerModule,
|
|
5073
5921
|
AutoCompleteModule,
|
|
5074
5922
|
ImageCropperModule,
|
|
5075
|
-
UiSwitchModule, i1$
|
|
5923
|
+
UiSwitchModule, i1$2.NgxDaterangepickerMd, PermissionTreeComponent,
|
|
5076
5924
|
PrivacyAndTosComponent,
|
|
5077
5925
|
PrivacyPolicyComponent,
|
|
5078
5926
|
TermsConditionsComponent,
|
|
@@ -5115,13 +5963,14 @@ class SharedComponentsModule {
|
|
|
5115
5963
|
ProgressSpinnerModule,
|
|
5116
5964
|
AutoCompleteModule,
|
|
5117
5965
|
ImageCropperModule,
|
|
5118
|
-
UiSwitchModule, i1$
|
|
5966
|
+
UiSwitchModule, i1$2.NgxDaterangepickerMd, FieldErrorDisplayModule,
|
|
5119
5967
|
ResourceSharedComponentsModule] }); }
|
|
5120
5968
|
}
|
|
5121
5969
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: SharedComponentsModule, decorators: [{
|
|
5122
5970
|
type: NgModule,
|
|
5123
5971
|
args: [{
|
|
5124
5972
|
declarations: [
|
|
5973
|
+
CommandPaletteComponent,
|
|
5125
5974
|
ConfirmDialogComponent,
|
|
5126
5975
|
PasswordValidationComponent,
|
|
5127
5976
|
PwTabsComponent,
|
|
@@ -5171,6 +6020,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
5171
6020
|
PwBrainChatThreadDirective
|
|
5172
6021
|
],
|
|
5173
6022
|
exports: [
|
|
6023
|
+
CommandPaletteComponent,
|
|
5174
6024
|
ConfirmDialogComponent,
|
|
5175
6025
|
PwCookieBannerComponent,
|
|
5176
6026
|
PasswordValidationComponent,
|
|
@@ -5278,5 +6128,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImpo
|
|
|
5278
6128
|
* Generated bundle index. Do not edit.
|
|
5279
6129
|
*/
|
|
5280
6130
|
|
|
5281
|
-
export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
6131
|
+
export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CommandPaletteComponent, CommandPaletteService, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
5282
6132
|
//# sourceMappingURL=posiwise-shared-components.mjs.map
|