@posiwise/shared-components 0.0.235 → 0.0.236
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,6 +1,6 @@
|
|
|
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
|
-
import { AuthService, BaseHttpService, BrainSocketService, BrainVoiceService, CustomToastService, DashboardService, DataService, DirectUploadService, FeatureFlagService, GroupService, KnowledgeFile, KnowledgeFilesService, KnowledgeScope, LegalPagesService, LegalTab, LocalStorage, MCPFieldDiff, MCPOrchestratorService, MCPUploadCapability, MainApiHttpService, NavEntry, NavigationIndexService, NumberPickerService, PermissionService, RecentPagesService, SubscriptionService, UserService, VoiceChatService } from "@posiwise/common-services";
|
|
3
|
+
import { AuthService, BaseHttpService, BrainSocketService, BrainVoiceService, CustomToastService, DashboardService, DataService, DirectUploadService, FeatureFlagService, GroupService, KnowledgeFile, KnowledgeFilesService, KnowledgeScope, LegalPagesService, LegalTab, LocalStorage, MCPFieldDiff, MCPOrchestratorService, MCPUploadCapability, MainApiHttpService, NavEntry, NavigationIndexService, NotificationService, NumberPickerService, PermissionService, RecentPagesService, SubscriptionService, UserService, VoiceChatService } from "@posiwise/common-services";
|
|
4
4
|
import * as i43 from "primeng/table";
|
|
5
5
|
import { Table } from "primeng/table";
|
|
6
6
|
import { TranslocoService } from "@jsverse/transloco";
|
|
@@ -60,8 +60,8 @@ export interface ConfirmDialogConfig {
|
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Convenience overrides for `confirmDelete`. Any field of `ConfirmDialogConfig`
|
|
63
|
-
* may be passed; the defaults are `{
|
|
64
|
-
*
|
|
63
|
+
* may be passed; the defaults are `{ titleKey: 'Button.Delete', textKey:
|
|
64
|
+
* 'Common.Confirm.Delete.TextGeneric', destructive: true }`.
|
|
65
65
|
*/
|
|
66
66
|
export type ConfirmDeleteOptions = Partial<ConfirmDialogConfig>;
|
|
67
67
|
export declare class ConfirmDialogService {
|
|
@@ -552,11 +552,15 @@ export declare class PasswordValidationComponent extends AppBaseComponent {
|
|
|
552
552
|
}, never, ["*"], false, never>;
|
|
553
553
|
}
|
|
554
554
|
declare namespace pw_tabs_component_d_exports {
|
|
555
|
-
export { PwTabsComponent };
|
|
555
|
+
export { PwTabItem, PwTabsComponent };
|
|
556
556
|
}
|
|
557
|
+
/** A tab; `labelKey` (when set) is translated, otherwise `label` renders as given. */
|
|
558
|
+
export type PwTabItem = MenuItem & {
|
|
559
|
+
labelKey?: string;
|
|
560
|
+
};
|
|
557
561
|
export declare class PwTabsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
558
562
|
private readonly cdr;
|
|
559
|
-
items:
|
|
563
|
+
items: PwTabItem[];
|
|
560
564
|
withSubscription: boolean;
|
|
561
565
|
/** Current tab value (route path) for p-tabs */
|
|
562
566
|
activeTabValue: string | number;
|
|
@@ -895,8 +899,8 @@ interface BrainChatQuickAction extends BrainChatPrompt {
|
|
|
895
899
|
}
|
|
896
900
|
declare const SUGGESTED_PROMPTS: readonly BrainChatPrompt[];
|
|
897
901
|
declare const QUICK_ACTIONS: readonly BrainChatQuickAction[];
|
|
898
|
-
/**
|
|
899
|
-
declare const GREETING = "
|
|
902
|
+
/** Key of the seed assistant greeting for a fresh conversation (also used by New chat). */
|
|
903
|
+
declare const GREETING = "BrainChat.Greeting";
|
|
900
904
|
/**
|
|
901
905
|
* Identity of the Conversational UI Builder dynamic page the user is
|
|
902
906
|
* currently viewing (#933 — page-aware Brain). The dynamic-page host sets
|
|
@@ -2712,4 +2716,38 @@ export declare class PwEditCardComponent {
|
|
|
2712
2716
|
};
|
|
2713
2717
|
}, {}, never, ["*"], true, never>;
|
|
2714
2718
|
}
|
|
2719
|
+
export interface NotificationNote {
|
|
2720
|
+
id: number;
|
|
2721
|
+
content: string;
|
|
2722
|
+
created_at?: string;
|
|
2723
|
+
link?: string | null;
|
|
2724
|
+
originator_name?: string | null;
|
|
2725
|
+
unread?: boolean | null;
|
|
2726
|
+
}
|
|
2727
|
+
export declare function isInAppLink(link: string | null | undefined): link is string;
|
|
2728
|
+
export declare class NotificationDetailComponent {
|
|
2729
|
+
readonly modal: NgbActiveModal;
|
|
2730
|
+
private readonly router;
|
|
2731
|
+
note: NotificationNote;
|
|
2732
|
+
constructor(modal: NgbActiveModal, router: Router);
|
|
2733
|
+
get hasLink(): boolean;
|
|
2734
|
+
openLink(): void;
|
|
2735
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationDetailComponent, never>;
|
|
2736
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationDetailComponent, "pw-notification-detail", never, {
|
|
2737
|
+
"note": {
|
|
2738
|
+
"alias": "note";
|
|
2739
|
+
"required": false;
|
|
2740
|
+
};
|
|
2741
|
+
}, {}, never, never, true, never>;
|
|
2742
|
+
}
|
|
2743
|
+
/** Opens a note in a window (with a button to its link, when it has one) and marks it read. */
|
|
2744
|
+
export declare class NotificationOpenerService {
|
|
2745
|
+
private readonly modal;
|
|
2746
|
+
private readonly notificationService;
|
|
2747
|
+
constructor(modal: NgbModal, notificationService: NotificationService);
|
|
2748
|
+
open(note: NotificationNote): void;
|
|
2749
|
+
private markRead;
|
|
2750
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationOpenerService, never>;
|
|
2751
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
2752
|
+
}
|
|
2715
2753
|
export type { ChatMessage, ChatMessageRole, NavEntry, PendingConfirmation };
|