@posiwise/shared-components 0.0.197 → 0.0.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as i35 from '@
|
|
2
|
+
import { Type, OnInit, OnDestroy, ChangeDetectorRef, TemplateRef, ElementRef, EventEmitter, Injector, AfterViewInit, OnChanges, SimpleChanges, ViewContainerRef, AfterContentInit, PipeTransform } from '@angular/core';
|
|
3
|
+
import * as i35 from '@angular/router';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import { AppConfigService } from '@posiwise/app-config-service';
|
|
6
|
+
import { NavEntry, NavigationIndexService, DashboardService, AuthService, MCPFieldDiff, BrainVoiceService, VoiceChatService, MCPOrchestratorService, LocalStorage, BrainSocketService, GroupService, SubscriptionService, DataService, NumberPickerService, FeatureFlagService, UserService, PermissionService, MainApiHttpService } from '@posiwise/common-services';
|
|
7
|
+
export { NavEntry } from '@posiwise/common-services';
|
|
8
|
+
import * as rxjs from 'rxjs';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import * as i36 from '@ng-bootstrap/ng-bootstrap';
|
|
4
11
|
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
5
12
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
13
|
import { MenuItem } from 'primeng/api';
|
|
7
14
|
import moment from 'moment';
|
|
8
|
-
import * as
|
|
15
|
+
import * as i47 from 'ngx-daterangepicker-material';
|
|
9
16
|
import { DaterangepickerDirective } from 'ngx-daterangepicker-material';
|
|
10
17
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
11
18
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
12
19
|
import { User, Subscription } from '@posiwise/common-utilities';
|
|
13
|
-
import * as i34 from '@angular/router';
|
|
14
|
-
import { Router } from '@angular/router';
|
|
15
|
-
import { AppConfigService } from '@posiwise/app-config-service';
|
|
16
|
-
import { AuthService, MCPFieldDiff, BrainVoiceService, VoiceChatService, MCPOrchestratorService, LocalStorage, BrainSocketService, GroupService, SubscriptionService, DataService, NumberPickerService, FeatureFlagService, UserService, PermissionService, MainApiHttpService } from '@posiwise/common-services';
|
|
17
|
-
import * as rxjs from 'rxjs';
|
|
18
|
-
import { Observable } from 'rxjs';
|
|
19
20
|
import { AppState } from '@posiwise/app-store';
|
|
20
21
|
import { Store } from '@ngrx/store';
|
|
21
22
|
import * as i6 from '@angular/forms';
|
|
@@ -24,20 +25,261 @@ import * as i7 from '@posiwise/app-loader';
|
|
|
24
25
|
import * as i9 from '@posiwise/directives';
|
|
25
26
|
import * as i8 from '@posiwise/core-transloco';
|
|
26
27
|
import * as i12 from 'primeng/tooltip';
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
28
|
+
import * as i38 from 'primeng/table';
|
|
29
|
+
import * as i39 from 'primeng/tabs';
|
|
29
30
|
import * as i10 from 'primeng/button';
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
31
|
+
import * as i41 from 'primeng/select';
|
|
32
|
+
import * as i42 from 'primeng/multiselect';
|
|
32
33
|
import * as i13 from 'primeng/progressspinner';
|
|
33
34
|
import * as i14 from 'primeng/autocomplete';
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
35
|
+
import * as i45 from 'ngx-image-cropper';
|
|
36
|
+
import * as i46 from 'ngx-ui-switch';
|
|
37
|
+
import * as i48 from '@posiwise/pipes';
|
|
38
|
+
import * as i49 from '@angular/common';
|
|
38
39
|
import * as i16 from '@posiwise/utils';
|
|
39
40
|
import * as i15 from '@angular/cdk/drag-drop';
|
|
40
41
|
|
|
42
|
+
/**
|
|
43
|
+
* A compact icon action rendered in the sidebar header row (before the close
|
|
44
|
+
* button). `id` MUST match a public method name on the mounted panel component
|
|
45
|
+
* — the shell invokes `componentRef.instance[id]()` when the action is clicked.
|
|
46
|
+
*/
|
|
47
|
+
interface SidebarHeaderAction {
|
|
48
|
+
/** Method name to invoke on the mounted panel instance (e.g. 'newChat'). */
|
|
49
|
+
id: string;
|
|
50
|
+
/** Fontawesome class string, e.g. 'fas fa-plus'. */
|
|
51
|
+
icon: string;
|
|
52
|
+
/** Accessible label + native tooltip. */
|
|
53
|
+
ariaLabel: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Interface for sidebar content that modules can provide
|
|
57
|
+
*/
|
|
58
|
+
interface SidebarContent {
|
|
59
|
+
/**
|
|
60
|
+
* Unique identifier for this sidebar content
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* Title/label for the sidebar section
|
|
65
|
+
*/
|
|
66
|
+
title: string;
|
|
67
|
+
/**
|
|
68
|
+
* Component type to render in the sidebar
|
|
69
|
+
*/
|
|
70
|
+
component: Type<any>;
|
|
71
|
+
/**
|
|
72
|
+
* Input data to pass to the component
|
|
73
|
+
*/
|
|
74
|
+
data?: any;
|
|
75
|
+
/**
|
|
76
|
+
* Optional icon class (e.g., 'pi pi-cog' for PrimeNG icons)
|
|
77
|
+
*/
|
|
78
|
+
icon?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Tooltip text shown on hover
|
|
81
|
+
*/
|
|
82
|
+
tooltip?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Optional compact status shown inline after the title in the header row
|
|
85
|
+
* (leading green dot). Costs no extra vertical space. e.g. the Brain panel's
|
|
86
|
+
* 'Connected · long-term memory on'. Panels that omit it render title-only.
|
|
87
|
+
*/
|
|
88
|
+
status?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Optional compact icon actions rendered in the header row before the close
|
|
91
|
+
* button (e.g. the Brain panel's 'New chat'). Each action's `id` is invoked
|
|
92
|
+
* as a method on the mounted panel instance.
|
|
93
|
+
*/
|
|
94
|
+
headerActions?: SidebarHeaderAction[];
|
|
95
|
+
/**
|
|
96
|
+
* When true, the shell renders a soft "Beta" pill next to the title —
|
|
97
|
+
* signalling the panel is an experimental feature (e.g. the Brain chat).
|
|
98
|
+
* Generic flag; any panel may opt in. The label is i18n'd in the shell
|
|
99
|
+
* template ('BrainChat.Badge.Beta').
|
|
100
|
+
*/
|
|
101
|
+
beta?: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* CollapsibleSidebarService manages dynamic sidebar content
|
|
106
|
+
*
|
|
107
|
+
* This service allows any module to register, update, or remove sidebar content.
|
|
108
|
+
* It uses observables to notify components of state changes.
|
|
109
|
+
*/
|
|
110
|
+
declare class CollapsibleSidebarService {
|
|
111
|
+
private readonly sidebarContentMap;
|
|
112
|
+
private readonly sidebarExpandedSubject;
|
|
113
|
+
private readonly sidebarContentSubject;
|
|
114
|
+
private readonly activeContentIdSubject;
|
|
115
|
+
/**
|
|
116
|
+
* Observable for sidebar expanded/collapsed state
|
|
117
|
+
*/
|
|
118
|
+
sidebarExpanded$: Observable<boolean>;
|
|
119
|
+
/**
|
|
120
|
+
* Observable for current sidebar content
|
|
121
|
+
*/
|
|
122
|
+
sidebarContent$: Observable<SidebarContent | null>;
|
|
123
|
+
/**
|
|
124
|
+
* Observable for currently active content ID
|
|
125
|
+
*/
|
|
126
|
+
activeContentId$: Observable<string | null>;
|
|
127
|
+
/**
|
|
128
|
+
* Register sidebar content that can be triggered by a module
|
|
129
|
+
* @param content - The sidebar content configuration
|
|
130
|
+
*/
|
|
131
|
+
registerContent(content: SidebarContent): void;
|
|
132
|
+
/**
|
|
133
|
+
* Unregister sidebar content
|
|
134
|
+
* @param contentId - The ID of the content to remove
|
|
135
|
+
*/
|
|
136
|
+
unregisterContent(contentId: string): void;
|
|
137
|
+
/**
|
|
138
|
+
* Load and display sidebar content by ID
|
|
139
|
+
* @param contentId - The ID of the content to load
|
|
140
|
+
*/
|
|
141
|
+
loadContent(contentId: string): void;
|
|
142
|
+
/**
|
|
143
|
+
* Load a panel and seed it with one-shot inputs.
|
|
144
|
+
*
|
|
145
|
+
* The host re-mounts the panel component on every load and `Object.assign`s
|
|
146
|
+
* `content.data` onto the fresh instance, so this is how a caller opens a
|
|
147
|
+
* panel in a particular starting state — e.g. the command palette opening
|
|
148
|
+
* the Brain panel with the user's typed query already in the composer.
|
|
149
|
+
*
|
|
150
|
+
* @param contentId - The ID of the content to load
|
|
151
|
+
* @param data - Fields copied onto the newly mounted panel instance
|
|
152
|
+
*/
|
|
153
|
+
loadContentWithData(contentId: string, data: Record<string, unknown>): void;
|
|
154
|
+
/**
|
|
155
|
+
* Toggle sidebar expanded/collapsed state
|
|
156
|
+
*/
|
|
157
|
+
toggleSidebar(): void;
|
|
158
|
+
/**
|
|
159
|
+
* Expand the sidebar
|
|
160
|
+
*/
|
|
161
|
+
expandSidebar(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Collapse the sidebar
|
|
164
|
+
*/
|
|
165
|
+
collapseSidebar(): void;
|
|
166
|
+
/**
|
|
167
|
+
* Get current expanded state synchronously
|
|
168
|
+
*/
|
|
169
|
+
isExpanded(): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Get currently active content ID synchronously
|
|
172
|
+
*/
|
|
173
|
+
getActiveContentId(): string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Get all registered content IDs
|
|
176
|
+
*/
|
|
177
|
+
getRegisteredContentIds(): string[];
|
|
178
|
+
/**
|
|
179
|
+
* Clear all sidebar content and collapse
|
|
180
|
+
*/
|
|
181
|
+
clearAll(): void;
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarService, never>;
|
|
183
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleSidebarService>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* What activating a palette row does:
|
|
188
|
+
* - `page` → router navigation to `path`
|
|
189
|
+
* - `person` → router navigation to a user's profile
|
|
190
|
+
* - `ask-ai` → hand the typed query to the PosiWise Brain panel
|
|
191
|
+
*/
|
|
192
|
+
type PaletteItemKind = 'page' | 'person' | 'ask-ai';
|
|
193
|
+
interface PaletteItem {
|
|
194
|
+
/** Stable within a render pass; used for trackBy and active-row identity. */
|
|
195
|
+
id: string;
|
|
196
|
+
kind: PaletteItemKind;
|
|
197
|
+
/** Already-resolved display text (menu titles and names are not i18n'd). */
|
|
198
|
+
label: string;
|
|
199
|
+
/** Secondary context line — breadcrumb section, or a person's email. */
|
|
200
|
+
detail: string;
|
|
201
|
+
icon: string;
|
|
202
|
+
/** Present for `page` and `person`; absent for `ask-ai`. */
|
|
203
|
+
path?: string;
|
|
204
|
+
/**
|
|
205
|
+
* The source nav entry for a `page`. Carried through so activation can ask
|
|
206
|
+
* the index whether opening it needs a subscription-context switch first.
|
|
207
|
+
*/
|
|
208
|
+
entry?: NavEntry;
|
|
209
|
+
}
|
|
210
|
+
interface PaletteGroup {
|
|
211
|
+
/** i18n key for the group heading — the chrome IS translated (C17). */
|
|
212
|
+
labelKey: string;
|
|
213
|
+
items: PaletteItem[];
|
|
214
|
+
}
|
|
215
|
+
/** A user as returned by `DashboardService.search` — only the fields we render. */
|
|
216
|
+
interface PalettePerson {
|
|
217
|
+
id?: number;
|
|
218
|
+
first_name?: string;
|
|
219
|
+
last_name?: string;
|
|
220
|
+
email?: string;
|
|
221
|
+
slug?: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Open/close state for the global command palette.
|
|
226
|
+
*
|
|
227
|
+
* Kept in a root service (rather than inside the component) so any surface can
|
|
228
|
+
* summon the palette — the navbar button, the ⌘K shortcut, an empty-state
|
|
229
|
+
* "find a page" link — without reaching for a component reference.
|
|
230
|
+
*/
|
|
231
|
+
declare class CommandPaletteService {
|
|
232
|
+
private readonly openSubject;
|
|
233
|
+
isOpen$: Observable<boolean>;
|
|
234
|
+
open(): void;
|
|
235
|
+
close(): void;
|
|
236
|
+
toggle(): void;
|
|
237
|
+
isOpen(): boolean;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandPaletteService, never>;
|
|
239
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommandPaletteService>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
declare class CommandPaletteComponent implements OnInit, OnDestroy {
|
|
243
|
+
readonly palette: CommandPaletteService;
|
|
244
|
+
private readonly navIndex;
|
|
245
|
+
private readonly dashboard;
|
|
246
|
+
private readonly sidebar;
|
|
247
|
+
private readonly router;
|
|
248
|
+
private readonly cdr;
|
|
249
|
+
private readonly appConfigService?;
|
|
250
|
+
queryInput?: {
|
|
251
|
+
nativeElement: HTMLInputElement;
|
|
252
|
+
};
|
|
253
|
+
isOpen: boolean;
|
|
254
|
+
query: string;
|
|
255
|
+
groups: PaletteGroup[];
|
|
256
|
+
activeIndex: number;
|
|
257
|
+
/** White-label brand for the Ask row; reuses the Brain panel's resolver. */
|
|
258
|
+
brandName: string;
|
|
259
|
+
/** Rendered in the trigger chip — the real key differs per platform. */
|
|
260
|
+
readonly shortcutHint: string;
|
|
261
|
+
private readonly queryChanges;
|
|
262
|
+
private readonly destroy$;
|
|
263
|
+
private people;
|
|
264
|
+
constructor(palette: CommandPaletteService, navIndex: NavigationIndexService, dashboard: DashboardService, sidebar: CollapsibleSidebarService, router: Router, cdr: ChangeDetectorRef, appConfigService?: AppConfigService);
|
|
265
|
+
ngOnInit(): void;
|
|
266
|
+
ngOnDestroy(): void;
|
|
267
|
+
/** ⌘K / Ctrl-K opens from anywhere; Escape closes. */
|
|
268
|
+
onDocumentKeydown(event: KeyboardEvent): void;
|
|
269
|
+
onQueryInput(value: string): void;
|
|
270
|
+
onKeydown(event: KeyboardEvent): void;
|
|
271
|
+
activate(item?: PaletteItem): void;
|
|
272
|
+
close(): void;
|
|
273
|
+
isActive(item: PaletteItem): boolean;
|
|
274
|
+
trackById(_index: number, item: PaletteItem): string;
|
|
275
|
+
private move;
|
|
276
|
+
private fetchPeople;
|
|
277
|
+
private rebuild;
|
|
278
|
+
private reset;
|
|
279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandPaletteComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandPaletteComponent, "pw-command-palette", never, {}, {}, never, never, false, never>;
|
|
281
|
+
}
|
|
282
|
+
|
|
41
283
|
type ConfirmDialogTone = 'destructive' | 'neutral' | 'info';
|
|
42
284
|
interface ConfirmDialogConfig {
|
|
43
285
|
titleKey?: string;
|
|
@@ -338,137 +580,6 @@ declare class ComingSoonComponent {
|
|
|
338
580
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComingSoonComponent, "pw-coming-soon", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
|
|
339
581
|
}
|
|
340
582
|
|
|
341
|
-
/**
|
|
342
|
-
* A compact icon action rendered in the sidebar header row (before the close
|
|
343
|
-
* button). `id` MUST match a public method name on the mounted panel component
|
|
344
|
-
* — the shell invokes `componentRef.instance[id]()` when the action is clicked.
|
|
345
|
-
*/
|
|
346
|
-
interface SidebarHeaderAction {
|
|
347
|
-
/** Method name to invoke on the mounted panel instance (e.g. 'newChat'). */
|
|
348
|
-
id: string;
|
|
349
|
-
/** Fontawesome class string, e.g. 'fas fa-plus'. */
|
|
350
|
-
icon: string;
|
|
351
|
-
/** Accessible label + native tooltip. */
|
|
352
|
-
ariaLabel: string;
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* Interface for sidebar content that modules can provide
|
|
356
|
-
*/
|
|
357
|
-
interface SidebarContent {
|
|
358
|
-
/**
|
|
359
|
-
* Unique identifier for this sidebar content
|
|
360
|
-
*/
|
|
361
|
-
id: string;
|
|
362
|
-
/**
|
|
363
|
-
* Title/label for the sidebar section
|
|
364
|
-
*/
|
|
365
|
-
title: string;
|
|
366
|
-
/**
|
|
367
|
-
* Component type to render in the sidebar
|
|
368
|
-
*/
|
|
369
|
-
component: Type<any>;
|
|
370
|
-
/**
|
|
371
|
-
* Input data to pass to the component
|
|
372
|
-
*/
|
|
373
|
-
data?: any;
|
|
374
|
-
/**
|
|
375
|
-
* Optional icon class (e.g., 'pi pi-cog' for PrimeNG icons)
|
|
376
|
-
*/
|
|
377
|
-
icon?: string;
|
|
378
|
-
/**
|
|
379
|
-
* Tooltip text shown on hover
|
|
380
|
-
*/
|
|
381
|
-
tooltip?: string;
|
|
382
|
-
/**
|
|
383
|
-
* Optional compact status shown inline after the title in the header row
|
|
384
|
-
* (leading green dot). Costs no extra vertical space. e.g. the Brain panel's
|
|
385
|
-
* 'Connected · long-term memory on'. Panels that omit it render title-only.
|
|
386
|
-
*/
|
|
387
|
-
status?: string;
|
|
388
|
-
/**
|
|
389
|
-
* Optional compact icon actions rendered in the header row before the close
|
|
390
|
-
* button (e.g. the Brain panel's 'New chat'). Each action's `id` is invoked
|
|
391
|
-
* as a method on the mounted panel instance.
|
|
392
|
-
*/
|
|
393
|
-
headerActions?: SidebarHeaderAction[];
|
|
394
|
-
/**
|
|
395
|
-
* When true, the shell renders a soft "Beta" pill next to the title —
|
|
396
|
-
* signalling the panel is an experimental feature (e.g. the Brain chat).
|
|
397
|
-
* Generic flag; any panel may opt in. The label is i18n'd in the shell
|
|
398
|
-
* template ('BrainChat.Badge.Beta').
|
|
399
|
-
*/
|
|
400
|
-
beta?: boolean;
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* CollapsibleSidebarService manages dynamic sidebar content
|
|
404
|
-
*
|
|
405
|
-
* This service allows any module to register, update, or remove sidebar content.
|
|
406
|
-
* It uses observables to notify components of state changes.
|
|
407
|
-
*/
|
|
408
|
-
declare class CollapsibleSidebarService {
|
|
409
|
-
private readonly sidebarContentMap;
|
|
410
|
-
private readonly sidebarExpandedSubject;
|
|
411
|
-
private readonly sidebarContentSubject;
|
|
412
|
-
private readonly activeContentIdSubject;
|
|
413
|
-
/**
|
|
414
|
-
* Observable for sidebar expanded/collapsed state
|
|
415
|
-
*/
|
|
416
|
-
sidebarExpanded$: Observable<boolean>;
|
|
417
|
-
/**
|
|
418
|
-
* Observable for current sidebar content
|
|
419
|
-
*/
|
|
420
|
-
sidebarContent$: Observable<SidebarContent | null>;
|
|
421
|
-
/**
|
|
422
|
-
* Observable for currently active content ID
|
|
423
|
-
*/
|
|
424
|
-
activeContentId$: Observable<string | null>;
|
|
425
|
-
/**
|
|
426
|
-
* Register sidebar content that can be triggered by a module
|
|
427
|
-
* @param content - The sidebar content configuration
|
|
428
|
-
*/
|
|
429
|
-
registerContent(content: SidebarContent): void;
|
|
430
|
-
/**
|
|
431
|
-
* Unregister sidebar content
|
|
432
|
-
* @param contentId - The ID of the content to remove
|
|
433
|
-
*/
|
|
434
|
-
unregisterContent(contentId: string): void;
|
|
435
|
-
/**
|
|
436
|
-
* Load and display sidebar content by ID
|
|
437
|
-
* @param contentId - The ID of the content to load
|
|
438
|
-
*/
|
|
439
|
-
loadContent(contentId: string): void;
|
|
440
|
-
/**
|
|
441
|
-
* Toggle sidebar expanded/collapsed state
|
|
442
|
-
*/
|
|
443
|
-
toggleSidebar(): void;
|
|
444
|
-
/**
|
|
445
|
-
* Expand the sidebar
|
|
446
|
-
*/
|
|
447
|
-
expandSidebar(): void;
|
|
448
|
-
/**
|
|
449
|
-
* Collapse the sidebar
|
|
450
|
-
*/
|
|
451
|
-
collapseSidebar(): void;
|
|
452
|
-
/**
|
|
453
|
-
* Get current expanded state synchronously
|
|
454
|
-
*/
|
|
455
|
-
isExpanded(): boolean;
|
|
456
|
-
/**
|
|
457
|
-
* Get currently active content ID synchronously
|
|
458
|
-
*/
|
|
459
|
-
getActiveContentId(): string | null;
|
|
460
|
-
/**
|
|
461
|
-
* Get all registered content IDs
|
|
462
|
-
*/
|
|
463
|
-
getRegisteredContentIds(): string[];
|
|
464
|
-
/**
|
|
465
|
-
* Clear all sidebar content and collapse
|
|
466
|
-
*/
|
|
467
|
-
clearAll(): void;
|
|
468
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarService, never>;
|
|
469
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleSidebarService>;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
583
|
/**
|
|
473
584
|
* Listens for Ctrl+Shift+A globally and toggles the PosiWise Assistant chat panel.
|
|
474
585
|
* Applied via hostDirectives on CollapsibleSidebarComponent.
|
|
@@ -1326,7 +1437,7 @@ declare class RecordsSummaryComponent {
|
|
|
1326
1437
|
|
|
1327
1438
|
declare class ResourceSharedComponentsModule {
|
|
1328
1439
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
|
|
1329
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof
|
|
1440
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof i49.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.AppLoaderModule, typeof i8.CoreTranslocoModule, typeof i9.DirectivesModule, typeof i10.ButtonModule, typeof i36.NgbTooltipModule, typeof i12.TooltipModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i15.DragDropModule, typeof i16.FieldErrorDisplayModule, typeof i16.ProfileImageCropperModule, typeof i16.ResourceHeaderModule], [typeof i16.ProfileImageCropperModule, typeof i16.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent, typeof i10.ButtonModule, typeof i15.DragDropModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i12.TooltipModule, typeof i16.FieldErrorDisplayModule]>;
|
|
1330
1441
|
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
|
|
1331
1442
|
}
|
|
1332
1443
|
|
|
@@ -1397,11 +1508,26 @@ declare class PwCookieBannerComponent implements OnInit {
|
|
|
1397
1508
|
* our own sanitized output, not arbitrary user input.
|
|
1398
1509
|
*
|
|
1399
1510
|
* Applied only to assistant bubbles; user bubbles keep plain-text rendering.
|
|
1511
|
+
*
|
|
1512
|
+
* The app-relative paths Brain answers carry (`/settings/communication`) are
|
|
1513
|
+
* resolved against `links.frontend_link` from the domain metadata — the same
|
|
1514
|
+
* host `auth.service` and `linkedin-confirmation` build their URLs from.
|
|
1515
|
+
* `links` lives on the CONFIG object, not on the service, and the service's
|
|
1516
|
+
* only public accessor is `appConfig$`, so the latest value is cached here;
|
|
1517
|
+
* config resolves at app boot, long before a chat bubble renders.
|
|
1400
1518
|
*/
|
|
1401
|
-
declare class SafeMarkdownPipe implements PipeTransform {
|
|
1519
|
+
declare class SafeMarkdownPipe implements PipeTransform, OnDestroy {
|
|
1402
1520
|
private readonly sanitizer;
|
|
1403
|
-
|
|
1521
|
+
private baseUrl;
|
|
1522
|
+
private readonly configSub;
|
|
1523
|
+
constructor(sanitizer: DomSanitizer, appConfigService: AppConfigService);
|
|
1524
|
+
ngOnDestroy(): void;
|
|
1404
1525
|
transform(text: string): SafeHtml;
|
|
1526
|
+
/**
|
|
1527
|
+
* Slug the router scopes dashboard pages under (`:slug/faq/:id`). Read per
|
|
1528
|
+
* call rather than cached: the user can switch subscription mid-session.
|
|
1529
|
+
*/
|
|
1530
|
+
private subscriptionSlug;
|
|
1405
1531
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeMarkdownPipe, never>;
|
|
1406
1532
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafeMarkdownPipe, "safeMarkdown", true>;
|
|
1407
1533
|
}
|
|
@@ -1425,7 +1551,7 @@ declare class PwBrainChatThreadDirective {
|
|
|
1425
1551
|
|
|
1426
1552
|
declare class SharedComponentsModule {
|
|
1427
1553
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
|
|
1428
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof PwBrainChatConfirmComponent, typeof PwBrainChatWelcomeComponent, typeof PwBrainChatVoiceOverlayComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof
|
|
1554
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof CommandPaletteComponent, typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof PwBrainChatConfirmComponent, typeof PwBrainChatWelcomeComponent, typeof PwBrainChatVoiceOverlayComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof i35.RouterModule, typeof i36.NgbTooltipModule, typeof i12.TooltipModule, typeof i36.NgbNavModule, typeof i36.NgbModalModule, typeof i38.TableModule, typeof i39.TabsModule, typeof i10.ButtonModule, typeof i41.SelectModule, typeof i42.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i45.ImageCropperModule, typeof i46.UiSwitchModule, typeof i47.NgxDaterangepickerMd, typeof i48.PipesModule, typeof i49.CommonModule, typeof i49.NgIf, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective, typeof PwCookieBannerComponent, typeof SafeMarkdownPipe, typeof PwBrainChatThreadDirective], [typeof CommandPaletteComponent, typeof ConfirmDialogComponent, typeof PwCookieBannerComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i36.NgbTooltipModule, typeof i12.TooltipModule, typeof i36.NgbNavModule, typeof i36.NgbModalModule, typeof i38.TableModule, typeof i39.TabsModule, typeof i10.ButtonModule, typeof i41.SelectModule, typeof i42.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i45.ImageCropperModule, typeof i46.UiSwitchModule, typeof i47.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
|
|
1429
1555
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
1430
1556
|
}
|
|
1431
1557
|
|
|
@@ -1480,5 +1606,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
|
|
|
1480
1606
|
declare function registeredType(type: string): Type<unknown> | null;
|
|
1481
1607
|
declare function registeredTypeNames(): string[];
|
|
1482
1608
|
|
|
1483
|
-
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 };
|
|
1484
|
-
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, SidebarHeaderAction, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|
|
1609
|
+
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 };
|
|
1610
|
+
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PaletteGroup, PaletteItem, PaletteItemKind, PalettePerson, PendingConfirmation, ResolvedBinding, SidebarContent, SidebarHeaderAction, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|