@posiwise/shared-components 0.0.217 → 0.0.219
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,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, OnChanges, OnDestroy, OnInit, PipeTransform, SimpleChanges, TemplateRef, Type, ViewContainerRef } from "@angular/core";
|
|
3
3
|
import { AuthService, BaseHttpService, BrainSocketService, BrainVoiceService, CustomToastService, DashboardService, DataService, DirectUploadService, FeatureFlagService, GroupService, KnowledgeFile, KnowledgeFilesService, KnowledgeScope, LocalStorage, MCPFieldDiff, MCPOrchestratorService, MCPUploadCapability, MainApiHttpService, NavEntry, NavigationIndexService, NumberPickerService, PermissionService, RecentPagesService, SubscriptionService, UserService, VoiceChatService } from "@posiwise/common-services";
|
|
4
|
-
import * as
|
|
4
|
+
import * as i44 from "primeng/table";
|
|
5
5
|
import { Table } from "primeng/table";
|
|
6
6
|
import { TranslocoService } from "@jsverse/transloco";
|
|
7
7
|
import * as i14 from "@ng-bootstrap/ng-bootstrap";
|
|
@@ -13,7 +13,7 @@ import { Observable, Subject } from "rxjs";
|
|
|
13
13
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
14
14
|
import { MenuItem } from "primeng/api";
|
|
15
15
|
import moment from "moment";
|
|
16
|
-
import * as
|
|
16
|
+
import * as i53 from "ngx-daterangepicker-material";
|
|
17
17
|
import { DaterangepickerDirective } from "ngx-daterangepicker-material";
|
|
18
18
|
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
19
19
|
import { AdminService } from "@posiwise/admin-module-utils";
|
|
@@ -22,22 +22,22 @@ import { AppState } from "@posiwise/app-store";
|
|
|
22
22
|
import { Store } from "@ngrx/store";
|
|
23
23
|
import * as i7 from "@angular/forms";
|
|
24
24
|
import { AbstractControl, ControlContainer, UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
25
|
+
import * as i35 from "primeng/iconfield";
|
|
26
|
+
import * as i36 from "primeng/inputicon";
|
|
27
|
+
import * as i37 from "primeng/inputtext";
|
|
28
28
|
import * as i10 from "@posiwise/app-loader";
|
|
29
29
|
import * as i12 from "@posiwise/directives";
|
|
30
30
|
import * as i11 from "@posiwise/core-transloco";
|
|
31
31
|
import * as i15 from "primeng/tooltip";
|
|
32
|
-
import * as
|
|
32
|
+
import * as i45 from "primeng/tabs";
|
|
33
33
|
import * as i13 from "primeng/button";
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
34
|
+
import * as i47 from "primeng/select";
|
|
35
|
+
import * as i48 from "primeng/multiselect";
|
|
36
36
|
import * as i16 from "primeng/progressspinner";
|
|
37
37
|
import * as i17 from "primeng/autocomplete";
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
38
|
+
import * as i51 from "ngx-image-cropper";
|
|
39
|
+
import * as i52 from "ngx-ui-switch";
|
|
40
|
+
import * as i54 from "@posiwise/pipes";
|
|
41
41
|
import * as i6 from "@angular/common";
|
|
42
42
|
import * as i19 from "@posiwise/utils";
|
|
43
43
|
import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -1175,7 +1175,6 @@ export declare class PwBrainChatComponent implements OnInit, OnDestroy {
|
|
|
1175
1175
|
brandName: string;
|
|
1176
1176
|
userFirstName?: string;
|
|
1177
1177
|
readonly suggestedPrompts: readonly BrainChatPrompt[];
|
|
1178
|
-
readonly quickActions: readonly BrainChatQuickAction[];
|
|
1179
1178
|
private conversationId;
|
|
1180
1179
|
private storage;
|
|
1181
1180
|
private streamSub?;
|
|
@@ -1264,6 +1263,41 @@ declare class PwBrainChatConfirmComponent {
|
|
|
1264
1263
|
"cancelEvent": "cancelEvent";
|
|
1265
1264
|
}, never, never, false, never>;
|
|
1266
1265
|
}
|
|
1266
|
+
/** A suggested prompt a product adds to the Brain chat welcome, optionally behind a permission. */
|
|
1267
|
+
export interface BrainChatProductPrompt extends BrainChatPrompt {
|
|
1268
|
+
/** Permission expression (PermissionService.evaluatePermissions); omitted = shown to everyone. */
|
|
1269
|
+
permission?: string;
|
|
1270
|
+
/** Short chip label above the composer (like "Usage"); omitted = shown on the welcome only. */
|
|
1271
|
+
label?: string;
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* Product-specific suggested prompts, shown before the shared ones (cloudolive-api#441).
|
|
1275
|
+
*
|
|
1276
|
+
* The shared list is the same for every product, so a prompt only one product can answer — "Check my
|
|
1277
|
+
* setup" needs that product's `onboarding_status` tool — would show elsewhere and get a dead-end reply.
|
|
1278
|
+
* The product app provides it here instead, like HOME_PRODUCT_SECTIONS on /home.
|
|
1279
|
+
*/
|
|
1280
|
+
export declare const BRAIN_CHAT_PRODUCT_PROMPTS: InjectionToken<BrainChatProductPrompt[]>;
|
|
1281
|
+
/** The product prompts the viewer may see; `canSee` evaluates a permission expression. */
|
|
1282
|
+
export declare function visibleProductPrompts(prompts: readonly BrainChatProductPrompt[] | null | undefined, canSee: (permission: string) => boolean): BrainChatProductPrompt[];
|
|
1283
|
+
declare namespace pw_brain_chat_quick_component_d_exports {
|
|
1284
|
+
export { PwBrainChatQuickComponent };
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Quick-action chips above the composer: the product's own chips (e.g. "Setup", cloudolive-api#441)
|
|
1288
|
+
* the viewer may see, then the shared Usage / Tools / Status. Emits the prompt text; the parent sends it.
|
|
1289
|
+
*/
|
|
1290
|
+
declare class PwBrainChatQuickComponent {
|
|
1291
|
+
pick: EventEmitter<string>;
|
|
1292
|
+
readonly actions: readonly BrainChatQuickAction[];
|
|
1293
|
+
constructor(permission: PermissionService, productPrompts?: BrainChatProductPrompt[] | null);
|
|
1294
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatQuickComponent, [null, {
|
|
1295
|
+
optional: true;
|
|
1296
|
+
}]>;
|
|
1297
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PwBrainChatQuickComponent, "pw-brain-chat-quick", never, {}, {
|
|
1298
|
+
"pick": "pick";
|
|
1299
|
+
}, never, never, false, never>;
|
|
1300
|
+
}
|
|
1267
1301
|
declare namespace pw_brain_chat_welcome_component_d_exports {
|
|
1268
1302
|
export { PwBrainChatWelcomeComponent };
|
|
1269
1303
|
}
|
|
@@ -1274,11 +1308,18 @@ declare namespace pw_brain_chat_welcome_component_d_exports {
|
|
|
1274
1308
|
* owns send().
|
|
1275
1309
|
*/
|
|
1276
1310
|
declare class PwBrainChatWelcomeComponent {
|
|
1311
|
+
private readonly permission;
|
|
1312
|
+
private readonly productPrompts?;
|
|
1277
1313
|
/** Signed-in user's first name; when set the greeting reads "Hi {name},". */
|
|
1278
1314
|
userFirstName?: string;
|
|
1279
1315
|
prompts: readonly BrainChatPrompt[];
|
|
1280
1316
|
pick: EventEmitter<string>;
|
|
1281
|
-
|
|
1317
|
+
constructor(permission: PermissionService, productPrompts?: BrainChatProductPrompt[] | null);
|
|
1318
|
+
/** The product's own prompts the viewer may see, then the shared ones. */
|
|
1319
|
+
get visiblePrompts(): readonly BrainChatPrompt[];
|
|
1320
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatWelcomeComponent, [null, {
|
|
1321
|
+
optional: true;
|
|
1322
|
+
}]>;
|
|
1282
1323
|
static ɵcmp: i0.ɵɵComponentDeclaration<PwBrainChatWelcomeComponent, "pw-brain-chat-welcome", never, {
|
|
1283
1324
|
"userFirstName": {
|
|
1284
1325
|
"alias": "userFirstName";
|
|
@@ -2258,7 +2299,7 @@ declare namespace onboarding_checklist_component_d_exports {
|
|
|
2258
2299
|
* Renders nothing for `not_applicable` / `unavailable` — "no onboarding" and "can't tell right now"
|
|
2259
2300
|
* both hide the card rather than show an empty or broken one.
|
|
2260
2301
|
*/
|
|
2261
|
-
export declare class OnboardingChecklistComponent {
|
|
2302
|
+
export declare class OnboardingChecklistComponent implements OnChanges {
|
|
2262
2303
|
status: OnboardingStatus | null;
|
|
2263
2304
|
loading: boolean;
|
|
2264
2305
|
loadFailed: boolean;
|
|
@@ -2268,7 +2309,28 @@ export declare class OnboardingChecklistComponent {
|
|
|
2268
2309
|
readonly retry: EventEmitter<void>;
|
|
2269
2310
|
readonly doneIcon: IconDefinition;
|
|
2270
2311
|
readonly helpIcon: IconDefinition;
|
|
2312
|
+
readonly expandIcon: IconDefinition;
|
|
2313
|
+
readonly collapseIcon: IconDefinition;
|
|
2314
|
+
/**
|
|
2315
|
+
* Whether the steps below the progress line are shown. Collapsed by default, so the card stays a
|
|
2316
|
+
* one-line progress summary on /home until someone opens it; their choice is remembered per
|
|
2317
|
+
* subscription in this browser.
|
|
2318
|
+
*/
|
|
2319
|
+
expanded: boolean;
|
|
2320
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2321
|
+
toggle(): void;
|
|
2322
|
+
private static storageKey;
|
|
2323
|
+
/** true / false once the user has toggled; null when they never did or storage is unavailable. */
|
|
2324
|
+
private static readCollapsed;
|
|
2325
|
+
private static writeCollapsed;
|
|
2271
2326
|
get visible(): boolean;
|
|
2327
|
+
/** Recommended steps, done and total, shown next to the mandatory progress ("+ 1 of 3 recommended"). */
|
|
2328
|
+
get recommended(): {
|
|
2329
|
+
done: number;
|
|
2330
|
+
total: number;
|
|
2331
|
+
};
|
|
2332
|
+
/** One segment per mandatory step, so the bar reads as "steps done", not an abstract percentage. */
|
|
2333
|
+
get progressSegments(): number[];
|
|
2272
2334
|
get progressPercent(): number;
|
|
2273
2335
|
/**
|
|
2274
2336
|
* Every required step is done. Deliberately NOT `status.activated`: activation is the product's
|
|
@@ -2276,6 +2338,17 @@ export declare class OnboardingChecklistComponent {
|
|
|
2276
2338
|
* open, which made "You're all set" sit above "5 of 8 steps done".
|
|
2277
2339
|
*/
|
|
2278
2340
|
get allDone(): boolean;
|
|
2341
|
+
/**
|
|
2342
|
+
* Mandatory steps (they count towards progress) and recommended ones (`kind: 'optional'`), listed
|
|
2343
|
+
* under their own headings instead of a label repeated on every row.
|
|
2344
|
+
*/
|
|
2345
|
+
get groups(): {
|
|
2346
|
+
key: string;
|
|
2347
|
+
labelKey: string;
|
|
2348
|
+
steps: OnboardingStep[];
|
|
2349
|
+
}[];
|
|
2350
|
+
/** The group heading already says "Recommended", so an open optional step reads "To do". */
|
|
2351
|
+
stateLabelKey(step: OnboardingStep): string;
|
|
2279
2352
|
get currentStep(): OnboardingStep | null;
|
|
2280
2353
|
icon(step: OnboardingStep): IconDefinition;
|
|
2281
2354
|
routeFor(step: OnboardingStep): string | null;
|
|
@@ -2284,7 +2357,7 @@ export declare class OnboardingChecklistComponent {
|
|
|
2284
2357
|
* products' own help links use. Null when the step has no FAQ to open.
|
|
2285
2358
|
*/
|
|
2286
2359
|
faqHref(step: OnboardingStep): string | null;
|
|
2287
|
-
/**
|
|
2360
|
+
/** A step's call to action; null when there is nothing for this viewer to click. */
|
|
2288
2361
|
actionKey(step: OnboardingStep): string | null;
|
|
2289
2362
|
trackByKey(_index: number, step: OnboardingStep): string;
|
|
2290
2363
|
static ɵfac: i0.ɵɵFactoryDeclaration<OnboardingChecklistComponent, never>;
|
|
@@ -2499,7 +2572,7 @@ declare class PwBrainChatThreadDirective {
|
|
|
2499
2572
|
}
|
|
2500
2573
|
export declare class SharedComponentsModule {
|
|
2501
2574
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
|
|
2502
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof AiKnowledgeComponent, 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 OnlineIndicatorComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i7.FormsModule, typeof
|
|
2575
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof AiKnowledgeComponent, 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 PwBrainChatQuickComponent, typeof PwBrainChatWelcomeComponent, typeof PwBrainChatVoiceOverlayComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof OnlineIndicatorComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i7.FormsModule, typeof i35.IconFieldModule, typeof i36.InputIconModule, typeof i37.InputTextModule, typeof i10.AppLoaderModule, typeof i7.ReactiveFormsModule, typeof i12.DirectivesModule, typeof i11.CoreTranslocoModule, typeof i8.RouterModule, typeof i14.NgbTooltipModule, typeof i15.TooltipModule, typeof i14.NgbNavModule, typeof i14.NgbModalModule, typeof i44.TableModule, typeof i45.TabsModule, typeof i13.ButtonModule, typeof i47.SelectModule, typeof i48.MultiSelectModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i51.ImageCropperComponent, typeof i52.UiSwitchModule, typeof i53.NgxDaterangepickerMd, typeof i54.PipesModule, typeof i6.CommonModule, typeof i6.NgIf, typeof i19.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective, typeof PwCookieBannerComponent, typeof SafeMarkdownPipe, typeof PwBrainChatThreadDirective], [typeof AiKnowledgeComponent, typeof CommandPaletteComponent, typeof ConfirmDialogComponent, typeof PwCookieBannerComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i14.NgbTooltipModule, typeof i15.TooltipModule, typeof i14.NgbNavModule, typeof i14.NgbModalModule, typeof i44.TableModule, typeof i45.TabsModule, typeof i13.ButtonModule, typeof i47.SelectModule, typeof i48.MultiSelectModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i51.ImageCropperComponent, typeof i52.UiSwitchModule, typeof i53.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 OnlineIndicatorComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i19.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
|
|
2503
2576
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
2504
2577
|
}
|
|
2505
2578
|
/**
|