@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.
package/package.json
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as i35 from '@
|
|
2
|
+
import { Type, OnInit, AfterViewInit, OnDestroy, ChangeDetectorRef, TemplateRef, ElementRef, EventEmitter, Injector, 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, RecentPagesService, CustomToastService, 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 { TranslocoService } from '@jsverse/transloco';
|
|
9
|
+
import * as rxjs from 'rxjs';
|
|
10
|
+
import { Observable } from 'rxjs';
|
|
11
|
+
import * as i36 from '@ng-bootstrap/ng-bootstrap';
|
|
4
12
|
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
5
13
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
14
|
import { MenuItem } from 'primeng/api';
|
|
7
15
|
import moment from 'moment';
|
|
8
|
-
import * as
|
|
16
|
+
import * as i47 from 'ngx-daterangepicker-material';
|
|
9
17
|
import { DaterangepickerDirective } from 'ngx-daterangepicker-material';
|
|
10
18
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
11
19
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
12
20
|
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
21
|
import { AppState } from '@posiwise/app-store';
|
|
20
22
|
import { Store } from '@ngrx/store';
|
|
21
23
|
import * as i6 from '@angular/forms';
|
|
@@ -24,20 +26,285 @@ import * as i7 from '@posiwise/app-loader';
|
|
|
24
26
|
import * as i9 from '@posiwise/directives';
|
|
25
27
|
import * as i8 from '@posiwise/core-transloco';
|
|
26
28
|
import * as i12 from 'primeng/tooltip';
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
+
import * as i38 from 'primeng/table';
|
|
30
|
+
import * as i39 from 'primeng/tabs';
|
|
29
31
|
import * as i10 from 'primeng/button';
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
+
import * as i41 from 'primeng/select';
|
|
33
|
+
import * as i42 from 'primeng/multiselect';
|
|
32
34
|
import * as i13 from 'primeng/progressspinner';
|
|
33
35
|
import * as i14 from 'primeng/autocomplete';
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
36
|
+
import * as i45 from 'ngx-image-cropper';
|
|
37
|
+
import * as i46 from 'ngx-ui-switch';
|
|
38
|
+
import * as i48 from '@posiwise/pipes';
|
|
39
|
+
import * as i49 from '@angular/common';
|
|
38
40
|
import * as i16 from '@posiwise/utils';
|
|
39
41
|
import * as i15 from '@angular/cdk/drag-drop';
|
|
40
42
|
|
|
43
|
+
/**
|
|
44
|
+
* A compact icon action rendered in the sidebar header row (before the close
|
|
45
|
+
* button). `id` MUST match a public method name on the mounted panel component
|
|
46
|
+
* — the shell invokes `componentRef.instance[id]()` when the action is clicked.
|
|
47
|
+
*/
|
|
48
|
+
interface SidebarHeaderAction {
|
|
49
|
+
/** Method name to invoke on the mounted panel instance (e.g. 'newChat'). */
|
|
50
|
+
id: string;
|
|
51
|
+
/** Fontawesome class string, e.g. 'fas fa-plus'. */
|
|
52
|
+
icon: string;
|
|
53
|
+
/** Accessible label + native tooltip. */
|
|
54
|
+
ariaLabel: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Interface for sidebar content that modules can provide
|
|
58
|
+
*/
|
|
59
|
+
interface SidebarContent {
|
|
60
|
+
/**
|
|
61
|
+
* Unique identifier for this sidebar content
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Title/label for the sidebar section
|
|
66
|
+
*/
|
|
67
|
+
title: string;
|
|
68
|
+
/**
|
|
69
|
+
* Component type to render in the sidebar
|
|
70
|
+
*/
|
|
71
|
+
component: Type<any>;
|
|
72
|
+
/**
|
|
73
|
+
* Input data to pass to the component
|
|
74
|
+
*/
|
|
75
|
+
data?: any;
|
|
76
|
+
/**
|
|
77
|
+
* Optional icon class (e.g., 'pi pi-cog' for PrimeNG icons)
|
|
78
|
+
*/
|
|
79
|
+
icon?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Tooltip text shown on hover
|
|
82
|
+
*/
|
|
83
|
+
tooltip?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Optional compact status shown inline after the title in the header row
|
|
86
|
+
* (leading green dot). Costs no extra vertical space. e.g. the Brain panel's
|
|
87
|
+
* 'Connected · long-term memory on'. Panels that omit it render title-only.
|
|
88
|
+
*/
|
|
89
|
+
status?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Optional compact icon actions rendered in the header row before the close
|
|
92
|
+
* button (e.g. the Brain panel's 'New chat'). Each action's `id` is invoked
|
|
93
|
+
* as a method on the mounted panel instance.
|
|
94
|
+
*/
|
|
95
|
+
headerActions?: SidebarHeaderAction[];
|
|
96
|
+
/**
|
|
97
|
+
* When true, the shell renders a soft "Beta" pill next to the title —
|
|
98
|
+
* signalling the panel is an experimental feature (e.g. the Brain chat).
|
|
99
|
+
* Generic flag; any panel may opt in. The label is i18n'd in the shell
|
|
100
|
+
* template ('BrainChat.Badge.Beta').
|
|
101
|
+
*/
|
|
102
|
+
beta?: boolean;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* CollapsibleSidebarService manages dynamic sidebar content
|
|
107
|
+
*
|
|
108
|
+
* This service allows any module to register, update, or remove sidebar content.
|
|
109
|
+
* It uses observables to notify components of state changes.
|
|
110
|
+
*/
|
|
111
|
+
declare class CollapsibleSidebarService {
|
|
112
|
+
private readonly sidebarContentMap;
|
|
113
|
+
private readonly sidebarExpandedSubject;
|
|
114
|
+
private readonly sidebarContentSubject;
|
|
115
|
+
private readonly activeContentIdSubject;
|
|
116
|
+
/**
|
|
117
|
+
* Observable for sidebar expanded/collapsed state
|
|
118
|
+
*/
|
|
119
|
+
sidebarExpanded$: Observable<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Observable for current sidebar content
|
|
122
|
+
*/
|
|
123
|
+
sidebarContent$: Observable<SidebarContent | null>;
|
|
124
|
+
/**
|
|
125
|
+
* Observable for currently active content ID
|
|
126
|
+
*/
|
|
127
|
+
activeContentId$: Observable<string | null>;
|
|
128
|
+
/**
|
|
129
|
+
* Register sidebar content that can be triggered by a module
|
|
130
|
+
* @param content - The sidebar content configuration
|
|
131
|
+
*/
|
|
132
|
+
registerContent(content: SidebarContent): void;
|
|
133
|
+
/**
|
|
134
|
+
* Unregister sidebar content
|
|
135
|
+
* @param contentId - The ID of the content to remove
|
|
136
|
+
*/
|
|
137
|
+
unregisterContent(contentId: string): void;
|
|
138
|
+
/**
|
|
139
|
+
* Load and display sidebar content by ID
|
|
140
|
+
* @param contentId - The ID of the content to load
|
|
141
|
+
*/
|
|
142
|
+
loadContent(contentId: string): void;
|
|
143
|
+
/**
|
|
144
|
+
* Load a panel and seed it with one-shot inputs.
|
|
145
|
+
*
|
|
146
|
+
* The host re-mounts the panel component on every load and `Object.assign`s
|
|
147
|
+
* `content.data` onto the fresh instance, so this is how a caller opens a
|
|
148
|
+
* panel in a particular starting state — e.g. the command palette opening
|
|
149
|
+
* the Brain panel with the user's typed query already in the composer.
|
|
150
|
+
*
|
|
151
|
+
* @param contentId - The ID of the content to load
|
|
152
|
+
* @param data - Fields copied onto the newly mounted panel instance
|
|
153
|
+
*/
|
|
154
|
+
loadContentWithData(contentId: string, data: Record<string, unknown>): void;
|
|
155
|
+
/**
|
|
156
|
+
* Toggle sidebar expanded/collapsed state
|
|
157
|
+
*/
|
|
158
|
+
toggleSidebar(): void;
|
|
159
|
+
/**
|
|
160
|
+
* Expand the sidebar
|
|
161
|
+
*/
|
|
162
|
+
expandSidebar(): void;
|
|
163
|
+
/**
|
|
164
|
+
* Collapse the sidebar
|
|
165
|
+
*/
|
|
166
|
+
collapseSidebar(): void;
|
|
167
|
+
/**
|
|
168
|
+
* Get current expanded state synchronously
|
|
169
|
+
*/
|
|
170
|
+
isExpanded(): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Get currently active content ID synchronously
|
|
173
|
+
*/
|
|
174
|
+
getActiveContentId(): string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Get all registered content IDs
|
|
177
|
+
*/
|
|
178
|
+
getRegisteredContentIds(): string[];
|
|
179
|
+
/**
|
|
180
|
+
* Clear all sidebar content and collapse
|
|
181
|
+
*/
|
|
182
|
+
clearAll(): void;
|
|
183
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarService, never>;
|
|
184
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleSidebarService>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* What activating a palette row does:
|
|
189
|
+
* - `page` → router navigation to `path`
|
|
190
|
+
* - `person` → router navigation to a user's profile
|
|
191
|
+
* - `action` → run a named command (see `PaletteActionId`)
|
|
192
|
+
* - `ask-ai` → hand the typed query to the PosiWise Brain panel
|
|
193
|
+
*/
|
|
194
|
+
type PaletteItemKind = 'page' | 'person' | 'action' | 'ask-ai';
|
|
195
|
+
/**
|
|
196
|
+
* Commands the palette can run itself, for the things a user repeats that are not
|
|
197
|
+
* a destination. Kept to a closed union so a row can never carry an arbitrary
|
|
198
|
+
* callback across the source boundary.
|
|
199
|
+
*/
|
|
200
|
+
type PaletteActionId = 'copy-link' | 'log-out';
|
|
201
|
+
interface PaletteItem {
|
|
202
|
+
/** Stable within a render pass; used for trackBy and active-row identity. */
|
|
203
|
+
id: string;
|
|
204
|
+
kind: PaletteItemKind;
|
|
205
|
+
/** Already-resolved display text (menu titles and names are not i18n'd). */
|
|
206
|
+
label: string;
|
|
207
|
+
/** Secondary context line — breadcrumb section, or a person's email. */
|
|
208
|
+
detail: string;
|
|
209
|
+
icon: string;
|
|
210
|
+
/** Present for `page` and `person`; absent for `ask-ai`. */
|
|
211
|
+
path?: string;
|
|
212
|
+
/**
|
|
213
|
+
* The source nav entry for a `page`. Carried through so activation can ask
|
|
214
|
+
* the index whether opening it needs a subscription-context switch first.
|
|
215
|
+
*/
|
|
216
|
+
entry?: NavEntry;
|
|
217
|
+
/**
|
|
218
|
+
* i18n key for rows whose label is chrome rather than data (actions).
|
|
219
|
+
*
|
|
220
|
+
* `label` still holds the resolved text so ranking can match what the user
|
|
221
|
+
* reads; the key is kept so the template renders the translation rather than
|
|
222
|
+
* a string frozen at build time.
|
|
223
|
+
*/
|
|
224
|
+
labelKey?: string;
|
|
225
|
+
/** Present for `action` rows only. */
|
|
226
|
+
action?: PaletteActionId;
|
|
227
|
+
}
|
|
228
|
+
interface PaletteGroup {
|
|
229
|
+
/** i18n key for the group heading — the chrome IS translated (C17). */
|
|
230
|
+
labelKey: string;
|
|
231
|
+
items: PaletteItem[];
|
|
232
|
+
}
|
|
233
|
+
/** A user as returned by `DashboardService.search` — only the fields we render. */
|
|
234
|
+
interface PalettePerson {
|
|
235
|
+
id?: number;
|
|
236
|
+
first_name?: string;
|
|
237
|
+
last_name?: string;
|
|
238
|
+
email?: string;
|
|
239
|
+
slug?: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Open/close state for the global command palette.
|
|
244
|
+
*
|
|
245
|
+
* Kept in a root service (rather than inside the component) so any surface can
|
|
246
|
+
* summon the palette — the navbar button, the ⌘K shortcut, an empty-state
|
|
247
|
+
* "find a page" link — without reaching for a component reference.
|
|
248
|
+
*/
|
|
249
|
+
declare class CommandPaletteService {
|
|
250
|
+
private readonly openSubject;
|
|
251
|
+
isOpen$: Observable<boolean>;
|
|
252
|
+
open(): void;
|
|
253
|
+
close(): void;
|
|
254
|
+
toggle(): void;
|
|
255
|
+
isOpen(): boolean;
|
|
256
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandPaletteService, never>;
|
|
257
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommandPaletteService>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare class CommandPaletteComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
261
|
+
readonly palette: CommandPaletteService;
|
|
262
|
+
private readonly navIndex;
|
|
263
|
+
private readonly dashboard;
|
|
264
|
+
private readonly recents;
|
|
265
|
+
private readonly sidebar;
|
|
266
|
+
private readonly router;
|
|
267
|
+
private readonly transloco;
|
|
268
|
+
private readonly cdr;
|
|
269
|
+
private readonly appConfigService?;
|
|
270
|
+
private readonly toast?;
|
|
271
|
+
queryInput?: {
|
|
272
|
+
nativeElement: HTMLInputElement;
|
|
273
|
+
};
|
|
274
|
+
/** The native <dialog>; always in the DOM, so this handle stays valid. */
|
|
275
|
+
paletteDialog?: {
|
|
276
|
+
nativeElement: HTMLDialogElement;
|
|
277
|
+
};
|
|
278
|
+
isOpen: boolean;
|
|
279
|
+
query: string;
|
|
280
|
+
groups: PaletteGroup[];
|
|
281
|
+
brandName: string;
|
|
282
|
+
readonly shortcutHint: string;
|
|
283
|
+
private readonly cursor;
|
|
284
|
+
private flat;
|
|
285
|
+
private readonly queryChanges;
|
|
286
|
+
private readonly destroy$;
|
|
287
|
+
private people;
|
|
288
|
+
private releaseBackdrop;
|
|
289
|
+
constructor(palette: CommandPaletteService, navIndex: NavigationIndexService, dashboard: DashboardService, recents: RecentPagesService, sidebar: CollapsibleSidebarService, router: Router, transloco: TranslocoService, cdr: ChangeDetectorRef, appConfigService?: AppConfigService, toast?: CustomToastService);
|
|
290
|
+
ngOnInit(): void;
|
|
291
|
+
ngAfterViewInit(): void;
|
|
292
|
+
ngOnDestroy(): void;
|
|
293
|
+
/** A native close (Escape, or our own close()) mirrored back onto the service. */
|
|
294
|
+
onDialogClose(): void;
|
|
295
|
+
/** ⌘K / Ctrl-K opens from anywhere; Escape closes. */
|
|
296
|
+
onDocumentKeydown(event: KeyboardEvent): void;
|
|
297
|
+
onQueryInput(value: string): void;
|
|
298
|
+
onKeydown(event: KeyboardEvent): void;
|
|
299
|
+
activate(item?: PaletteItem): void;
|
|
300
|
+
isActive(item: PaletteItem): boolean;
|
|
301
|
+
private activateDeps;
|
|
302
|
+
private rebuild;
|
|
303
|
+
private reset;
|
|
304
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandPaletteComponent, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
305
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandPaletteComponent, "pw-command-palette", never, {}, {}, never, never, false, never>;
|
|
306
|
+
}
|
|
307
|
+
|
|
41
308
|
type ConfirmDialogTone = 'destructive' | 'neutral' | 'info';
|
|
42
309
|
interface ConfirmDialogConfig {
|
|
43
310
|
titleKey?: string;
|
|
@@ -338,137 +605,6 @@ declare class ComingSoonComponent {
|
|
|
338
605
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComingSoonComponent, "pw-coming-soon", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, false, never>;
|
|
339
606
|
}
|
|
340
607
|
|
|
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
608
|
/**
|
|
473
609
|
* Listens for Ctrl+Shift+A globally and toggles the PosiWise Assistant chat panel.
|
|
474
610
|
* Applied via hostDirectives on CollapsibleSidebarComponent.
|
|
@@ -1326,7 +1462,7 @@ declare class RecordsSummaryComponent {
|
|
|
1326
1462
|
|
|
1327
1463
|
declare class ResourceSharedComponentsModule {
|
|
1328
1464
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
|
|
1329
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof
|
|
1465
|
+
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
1466
|
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
|
|
1331
1467
|
}
|
|
1332
1468
|
|
|
@@ -1390,18 +1526,47 @@ declare class PwCookieBannerComponent implements OnInit {
|
|
|
1390
1526
|
|
|
1391
1527
|
/**
|
|
1392
1528
|
* Converts a Brain assistant message string (containing a safe subset of
|
|
1393
|
-
* Markdown) into
|
|
1529
|
+
* Markdown) into an HTML string suitable for `[innerHTML]` binding.
|
|
1530
|
+
*
|
|
1531
|
+
* Deliberately returns a plain `string`, NOT a `SafeHtml`: Angular sanitizes any
|
|
1532
|
+
* string bound to `[innerHTML]`, so the output passes through DomSanitizer on
|
|
1533
|
+
* the way to the DOM. `renderMarkdown` already HTML-escapes every user-sourced
|
|
1534
|
+
* fragment and allow-lists hrefs, which makes this defence in depth rather than
|
|
1535
|
+
* a substitute — two independent passes, neither trusting the other.
|
|
1394
1536
|
*
|
|
1395
|
-
*
|
|
1396
|
-
*
|
|
1397
|
-
*
|
|
1537
|
+
* Nothing is lost by it. The renderer only emits `<a href target rel>`,
|
|
1538
|
+
* `<strong>`, `<em>` and `<br>`; Angular's own allow-lists carry `href`
|
|
1539
|
+
* (URI_ATTRS) and `rel`/`target` (HTML_ATTRS), so sanitized output is
|
|
1540
|
+
* byte-identical to the rendered input. An earlier revision reached for
|
|
1541
|
+
* `bypassSecurityTrustHtml` here, which bought nothing and disabled the
|
|
1542
|
+
* platform's last line of defence if the renderer ever regressed.
|
|
1398
1543
|
*
|
|
1399
1544
|
* Applied only to assistant bubbles; user bubbles keep plain-text rendering.
|
|
1545
|
+
*
|
|
1546
|
+
* The app-relative paths Brain answers carry (`/settings/communication`) are
|
|
1547
|
+
* resolved against `links.frontend_link` from the domain metadata — the same
|
|
1548
|
+
* host `auth.service` and `linkedin-confirmation` build their URLs from.
|
|
1549
|
+
* `links` lives on the CONFIG object, not on the service, and the service's
|
|
1550
|
+
* only public accessor is `appConfig$`, so the latest value is cached here;
|
|
1551
|
+
* config resolves at app boot, long before a chat bubble renders.
|
|
1400
1552
|
*/
|
|
1401
|
-
declare class SafeMarkdownPipe implements PipeTransform {
|
|
1402
|
-
private readonly
|
|
1403
|
-
|
|
1404
|
-
|
|
1553
|
+
declare class SafeMarkdownPipe implements PipeTransform, OnDestroy {
|
|
1554
|
+
private readonly navigationIndex;
|
|
1555
|
+
private baseUrl;
|
|
1556
|
+
private readonly configSub;
|
|
1557
|
+
constructor(navigationIndex: NavigationIndexService, appConfigService: AppConfigService);
|
|
1558
|
+
ngOnDestroy(): void;
|
|
1559
|
+
transform(text: string): string;
|
|
1560
|
+
/**
|
|
1561
|
+
* Every page the palette can reach, used to correct a path the model got
|
|
1562
|
+
* nearly right. An unknown path is left alone, never suppressed.
|
|
1563
|
+
*/
|
|
1564
|
+
private knownPaths;
|
|
1565
|
+
/**
|
|
1566
|
+
* Slug the router scopes dashboard pages under (`:slug/faq/:id`). Read per
|
|
1567
|
+
* call rather than cached: the user can switch subscription mid-session.
|
|
1568
|
+
*/
|
|
1569
|
+
private subscriptionSlug;
|
|
1405
1570
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeMarkdownPipe, never>;
|
|
1406
1571
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafeMarkdownPipe, "safeMarkdown", true>;
|
|
1407
1572
|
}
|
|
@@ -1425,7 +1590,7 @@ declare class PwBrainChatThreadDirective {
|
|
|
1425
1590
|
|
|
1426
1591
|
declare class SharedComponentsModule {
|
|
1427
1592
|
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
|
|
1593
|
+
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
1594
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
1430
1595
|
}
|
|
1431
1596
|
|
|
@@ -1480,5 +1645,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
|
|
|
1480
1645
|
declare function registeredType(type: string): Type<unknown> | null;
|
|
1481
1646
|
declare function registeredTypeNames(): string[];
|
|
1482
1647
|
|
|
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 };
|
|
1648
|
+
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 };
|
|
1649
|
+
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PaletteActionId, PaletteGroup, PaletteItem, PaletteItemKind, PalettePerson, PendingConfirmation, ResolvedBinding, SidebarContent, SidebarHeaderAction, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|