@posiwise/shared-components 0.0.204 → 0.0.205

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
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.204",
3
+ "version": "0.0.205",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.19",
6
6
  "@angular/core": "^21.2.19",
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Type, OnInit, AfterViewInit, OnDestroy, ChangeDetectorRef, TemplateRef, ElementRef, EventEmitter, Injector, OnChanges, SimpleChanges, ViewContainerRef, AfterContentInit, PipeTransform, InjectionToken } from '@angular/core';
3
- import * as i35 from '@angular/router';
3
+ import * as i36 from '@angular/router';
4
4
  import { Router } from '@angular/router';
5
5
  import { AppConfigService } from '@posiwise/app-config-service';
6
6
  import { NavEntry, NavigationIndexService, DashboardService, RecentPagesService, CustomToastService, AuthService, MCPFieldDiff, DirectUploadService, BaseHttpService, MCPUploadCapability, BrainVoiceService, VoiceChatService, MCPOrchestratorService, LocalStorage, BrainSocketService, GroupService, SubscriptionService, DataService, NumberPickerService, FeatureFlagService, UserService, PermissionService, MainApiHttpService } from '@posiwise/common-services';
@@ -8,12 +8,12 @@ export { NavEntry } from '@posiwise/common-services';
8
8
  import { TranslocoService } from '@jsverse/transloco';
9
9
  import * as rxjs from 'rxjs';
10
10
  import { Observable, Subject } from 'rxjs';
11
- import * as i36 from '@ng-bootstrap/ng-bootstrap';
11
+ import * as i37 from '@ng-bootstrap/ng-bootstrap';
12
12
  import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
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 i47 from 'ngx-daterangepicker-material';
16
+ import * as i48 from 'ngx-daterangepicker-material';
17
17
  import { DaterangepickerDirective } from 'ngx-daterangepicker-material';
18
18
  import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
19
19
  import { AdminService } from '@posiwise/admin-module-utils';
@@ -26,17 +26,17 @@ import * as i7 from '@posiwise/app-loader';
26
26
  import * as i9 from '@posiwise/directives';
27
27
  import * as i8 from '@posiwise/core-transloco';
28
28
  import * as i12 from 'primeng/tooltip';
29
- import * as i38 from 'primeng/table';
30
- import * as i39 from 'primeng/tabs';
29
+ import * as i39 from 'primeng/table';
30
+ import * as i40 from 'primeng/tabs';
31
31
  import * as i10 from 'primeng/button';
32
- import * as i41 from 'primeng/select';
33
- import * as i42 from 'primeng/multiselect';
32
+ import * as i42 from 'primeng/select';
33
+ import * as i43 from 'primeng/multiselect';
34
34
  import * as i13 from 'primeng/progressspinner';
35
35
  import * as i14 from 'primeng/autocomplete';
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';
36
+ import * as i46 from 'ngx-image-cropper';
37
+ import * as i47 from 'ngx-ui-switch';
38
+ import * as i49 from '@posiwise/pipes';
39
+ import * as i50 from '@angular/common';
40
40
  import * as i16 from '@posiwise/utils';
41
41
  import * as i15 from '@angular/cdk/drag-drop';
42
42
 
@@ -791,8 +791,8 @@ declare class BrainChatAttachment {
791
791
  /** The user picked which tool this file is for — only now is it uploaded. */
792
792
  choose(capability: MCPUploadCapability): void;
793
793
  remove(): void;
794
- /** Cleared after a send so the file travels with exactly one message. */
795
- clearAfterSend(): void;
794
+ /** Cleared once a planned call used `sent`; a reply asking for details keeps it. */
795
+ clearIfConsumed(sent: ChatAttachment | null): void;
796
796
  meta(): string;
797
797
  icon(): string;
798
798
  private upload;
@@ -932,6 +932,7 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
932
932
  readonly dictation: BrainChatDictation;
933
933
  readonly voiceChat: BrainChatVoiceChat;
934
934
  readonly attachment: BrainChatAttachment;
935
+ private sentAttachment;
935
936
  private readonly threadRef?;
936
937
  constructor(orchestrator: MCPOrchestratorService, localStorage: LocalStorage, router: Router, cdr: ChangeDetectorRef, store: Store<AppState>, dynamicPageCtx: DynamicPageContextService, appConfigService?: AppConfigService, brainSocket?: BrainSocketService, brainVoice?: BrainVoiceService, voiceChatService?: VoiceChatService, directUpload?: DirectUploadService, uploadApis?: Record<string, BaseHttpService>);
937
938
  ngOnInit(): void;
@@ -1289,6 +1290,24 @@ declare class NumberPickerComponent implements OnInit {
1289
1290
  static ɵcmp: i0.ɵɵComponentDeclaration<NumberPickerComponent, "pw-number-picker", never, { "min": { "alias": "min"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pickStartAfter": { "alias": "pickStartAfter"; "required": false; }; "pickTimer": { "alias": "pickTimer"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "postfix": { "alias": "postfix"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "buttonsOrientation": { "alias": "buttonsOrientation"; "required": false; }; "size": { "alias": "size"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "mouseWheel": { "alias": "mouseWheel"; "required": false; }; "arrowKeys": { "alias": "arrowKeys"; "required": false; }; "inputReadOnly": { "alias": "inputReadOnly"; "required": false; }; "showUpButton": { "alias": "showUpButton"; "required": false; }; "showDownButton": { "alias": "showDownButton"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "valueChange": "valueChange"; "minReached": "minReached"; "maxReached": "maxReached"; "pickStarted": "pickStarted"; "pickStopped": "pickStopped"; "pickUpStarted": "pickUpStarted"; "pickUpStopped": "pickUpStopped"; "pickDownStarted": "pickDownStarted"; "pickDownStopped": "pickDownStopped"; }, never, never, false, never>;
1290
1291
  }
1291
1292
 
1293
+ /**
1294
+ * Green presence indicator shown beside a member's name.
1295
+ *
1296
+ * Feed it `current_sign_in_at` and nothing else. Do NOT pass `last_sign_in_at`, nor the
1297
+ * `current_sign_in_at || last_sign_in_at` fallback the surrounding cells use for the date:
1298
+ * an explicit logout nulls `current_sign_in_at` and rolls its value into `last_sign_in_at`,
1299
+ * so the fallback would light the dot for someone who has just signed out.
1300
+ *
1301
+ * The online window itself lives in the `isOnline` pipe, which is paired with main-api's
1302
+ * activity-refresh interval -- see ONLINE_THRESHOLD_MINUTES.
1303
+ */
1304
+ declare class OnlineIndicatorComponent {
1305
+ /** The member's `current_sign_in_at` stamp. Never `last_sign_in_at`. */
1306
+ lastSeen: string | Date | null;
1307
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnlineIndicatorComponent, never>;
1308
+ static ɵcmp: i0.ɵɵComponentDeclaration<OnlineIndicatorComponent, "pw-online-indicator", never, { "lastSeen": { "alias": "lastSeen"; "required": false; }; }, {}, never, never, false, never>;
1309
+ }
1310
+
1292
1311
  declare class HeaderComponent extends AppBaseComponent {
1293
1312
  private readonly authService;
1294
1313
  private readonly cdr;
@@ -1547,7 +1566,7 @@ declare class RecordsSummaryComponent {
1547
1566
 
1548
1567
  declare class ResourceSharedComponentsModule {
1549
1568
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
1550
- 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]>;
1569
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof i50.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.AppLoaderModule, typeof i8.CoreTranslocoModule, typeof i9.DirectivesModule, typeof i10.ButtonModule, typeof i37.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]>;
1551
1570
  static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
1552
1571
  }
1553
1572
 
@@ -1675,7 +1694,7 @@ declare class PwBrainChatThreadDirective {
1675
1694
 
1676
1695
  declare class SharedComponentsModule {
1677
1696
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
1678
- 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]>;
1697
+ 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 OnlineIndicatorComponent, 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 i36.RouterModule, typeof i37.NgbTooltipModule, typeof i12.TooltipModule, typeof i37.NgbNavModule, typeof i37.NgbModalModule, typeof i39.TableModule, typeof i40.TabsModule, typeof i10.ButtonModule, typeof i42.SelectModule, typeof i43.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i46.ImageCropperModule, typeof i47.UiSwitchModule, typeof i48.NgxDaterangepickerMd, typeof i49.PipesModule, typeof i50.CommonModule, typeof i50.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 i37.NgbTooltipModule, typeof i12.TooltipModule, typeof i37.NgbNavModule, typeof i37.NgbModalModule, typeof i39.TableModule, typeof i40.TabsModule, typeof i10.ButtonModule, typeof i42.SelectModule, typeof i43.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i46.ImageCropperModule, typeof i47.UiSwitchModule, typeof i48.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 i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
1679
1698
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
1680
1699
  }
1681
1700
 
@@ -1747,5 +1766,5 @@ declare function registeredTypeNames(): string[];
1747
1766
  */
1748
1767
  declare const BRAIN_CHAT_UPLOAD_APIS: InjectionToken<Record<string, BaseHttpService>>;
1749
1768
 
1750
- export { AuthenticatorComponent, BRAIN_CHAT_UPLOAD_APIS, 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 };
1769
+ export { AuthenticatorComponent, BRAIN_CHAT_UPLOAD_APIS, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CommandPaletteComponent, CommandPaletteService, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, OnlineIndicatorComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
1751
1770
  export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PaletteActionId, PaletteGroup, PaletteItem, PaletteItemKind, PalettePerson, PendingConfirmation, ResolvedBinding, SidebarContent, SidebarHeaderAction, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };