@naniteninja/dashboard-components-lib 2.3.4 → 2.3.6

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/index.d.ts CHANGED
@@ -558,6 +558,14 @@ interface IDataset {
558
558
  interface IChatMessageRow extends IMessage {
559
559
  displayDate: Date;
560
560
  isFirstMessage: boolean;
561
+ isDelayed: boolean;
562
+ isFailed: boolean;
563
+ isRedacted: boolean;
564
+ segments: {
565
+ text: string;
566
+ redacted: boolean;
567
+ }[];
568
+ failureTooltip: string;
561
569
  }
562
570
 
563
571
  interface IDatePrepItem {
@@ -791,8 +799,8 @@ interface IProgressDecision {
791
799
 
792
800
  /** Inputs the pure function needs */
793
801
  interface IProgressFacts {
794
- createdAt: Date;
795
- lastMessageTimestamp: Date | null;
802
+ createdAt: Date | string;
803
+ lastMessageTimestamp: Date | string | null;
796
804
  firstAnswer: boolean;
797
805
  waitingAnswer: boolean;
798
806
  nowMs?: number;
@@ -946,6 +954,8 @@ interface ITraitVisualCanvasConfig {
946
954
  secondaryColor?: string;
947
955
  blackholeRepulsion?: number;
948
956
  simulationSpeed?: number;
957
+ /** Cap devicePixelRatio to reduce GPU fill-rate (medium perf). */
958
+ pixelRatioCap?: number;
949
959
  pairwiseRepulsionMain?: number;
950
960
  pairwiseRepulsionSecondary?: number;
951
961
  dissimilarityRepulsionExponent?: number;
@@ -1543,12 +1553,19 @@ declare class ChatComponent implements OnInit, AfterViewInit, OnChanges, OnDestr
1543
1553
  onKeyDown(event: KeyboardEvent): void;
1544
1554
  onLongPress(): void;
1545
1555
  onBlurPickerSpace(): void;
1556
+ /** Kept for programmatic use only — do not bind in templates (use IChatMessageRow precomputed fields). */
1546
1557
  isRedactedMessage(message: IMessage): boolean;
1558
+ /** Kept for programmatic use only — do not bind in templates (use IChatMessageRow precomputed fields). */
1547
1559
  getMessageSegments(text: string): {
1548
1560
  text: string;
1549
1561
  redacted: boolean;
1550
1562
  }[];
1563
+ /** Kept for programmatic use only — do not bind in templates (use IChatMessageRow precomputed fields). */
1551
1564
  isDelayedMessage(message: IMessage): boolean;
1565
+ /** Kept for programmatic use only — do not bind in templates (use IChatMessageRow precomputed fields). */
1566
+ isFailedMessage(message: IMessage): boolean;
1567
+ /** Kept for programmatic use only — do not bind in templates (use IChatMessageRow precomputed fields). */
1568
+ getFailureTooltip(message: IMessage): string;
1552
1569
  onEditDelayedMessage(message: IMessage): void;
1553
1570
  focus(): void;
1554
1571
  static ɵfac: i0.ɵɵFactoryDeclaration<ChatComponent, never>;
@@ -1585,13 +1602,26 @@ declare class LibChatComponentModule {
1585
1602
  static ɵinj: i0.ɵɵInjectorDeclaration<LibChatComponentModule>;
1586
1603
  }
1587
1604
 
1588
- declare class CircleProgressComponent implements AfterViewInit {
1605
+ declare class CircleProgressComponent implements AfterViewInit, OnChanges {
1589
1606
  private el;
1607
+ private cdr;
1590
1608
  variable: CircleVariable;
1591
1609
  type: string;
1610
+ progressPathRef?: ElementRef<SVGPathElement>;
1611
+ innerProgressPathRef?: ElementRef<SVGPathElement>;
1612
+ outerProgressPathRef?: ElementRef<SVGPathElement>;
1613
+ progressPathLength: number;
1614
+ innerProgressPathLength: number;
1615
+ outerProgressPathLength: number;
1616
+ progressPathOffset: number;
1617
+ innerProgressOffset: number;
1618
+ outerProgressOffset: number;
1592
1619
  get showExternalPartialCircleProgress(): boolean;
1620
+ /** @deprecated Utility-only — prefer cached `progressPathLength` / `innerProgressPathLength` / `outerProgressPathLength`. */
1593
1621
  getPathLength(path: Element | null | undefined): number;
1622
+ /** @deprecated Utility-only — prefer cached `innerProgressOffset`. */
1594
1623
  getInnerProgressOffset(path: Element | null | undefined): number;
1624
+ /** @deprecated Utility-only — prefer cached `outerProgressOffset` / `progressPathOffset`. */
1595
1625
  getOuterProgressOffset(path: Element | null | undefined): number;
1596
1626
  private _config;
1597
1627
  set config(newConfig: Partial<ICircleProgressConfig> | undefined);
@@ -1604,8 +1634,13 @@ declare class CircleProgressComponent implements AfterViewInit {
1604
1634
  readonly pathId: string;
1605
1635
  readonly innerCirclePathId: string;
1606
1636
  readonly innerCircleBehindPathId: string;
1607
- constructor(el: ElementRef);
1637
+ constructor(el: ElementRef, cdr: ChangeDetectorRef);
1608
1638
  ngAfterViewInit(): void;
1639
+ ngOnChanges(changes: SimpleChanges): void;
1640
+ private scheduleProgressCacheUpdate;
1641
+ private cacheProgressValues;
1642
+ private computeInnerProgressOffset;
1643
+ private computeOuterProgressOffset;
1609
1644
  private createCircle;
1610
1645
  private generatePathSamplePoints;
1611
1646
  private createQuadrilateralSegments;
@@ -3132,6 +3167,7 @@ declare class ClientViewportActionsService {
3132
3167
  applyPrefMatchManager(onSpiderApply: () => void): void;
3133
3168
  onReject(_match: ILibClientMatchOverview): void;
3134
3169
  onHandoffProspectSelect(prospect: IHandoffProspectCard, onChatHeadChange: (index: number) => void): void;
3170
+ private traitVisualCycleTimer;
3135
3171
  private cycleTraitVisualCanvas;
3136
3172
  static ɵfac: i0.ɵɵFactoryDeclaration<ClientViewportActionsService, never>;
3137
3173
  static ɵprov: i0.ɵɵInjectableDeclaration<ClientViewportActionsService>;
@@ -3483,6 +3519,7 @@ interface IMatcherViewportHost {
3483
3519
  traitVisualPrefWeights: number[];
3484
3520
  traitVisualConfig: Partial<ITraitVisualCanvasConfig>;
3485
3521
  traitVisualVisible: boolean;
3522
+ isDemoTraitData: boolean;
3486
3523
  profileComparisonVisible: boolean;
3487
3524
  isGalaxyTooltipVisible: boolean;
3488
3525
  enablePageRouting: boolean;
@@ -3743,6 +3780,7 @@ declare class MatcherViewportComponent extends BaseViewportComponent implements
3743
3780
  profileData: Profile | undefined;
3744
3781
  profileComparisonConfig: IProfileConfig;
3745
3782
  traitVisualVisible: boolean;
3783
+ isDemoTraitData: boolean;
3746
3784
  profileComparisonVisible: boolean;
3747
3785
  traitVisualNodes: INodeData[];
3748
3786
  traitVisualAttrWeights: number[];
@@ -3965,10 +4003,6 @@ declare const defaultClientDashboardConfig: IClientDashboardInputs;
3965
4003
 
3966
4004
  declare const defaultClientHomeConfig: IHomeDashboardInputs;
3967
4005
 
3968
- /**
3969
- * Pure “rules engine” for the inner circle.
3970
- * No side-effects, no RxJS, no Angular.
3971
- */
3972
4006
  declare function computeInnerState(indicators: IProgressFacts): IProgressDecision | null;
3973
4007
 
3974
4008
  declare const dashboardMainSwiperDefaultOptions: SwiperOptions;
@@ -4188,6 +4222,15 @@ declare abstract class AbstractCacheService {
4188
4222
  static ɵprov: i0.ɵɵInjectableDeclaration<AbstractCacheService>;
4189
4223
  }
4190
4224
 
4225
+ declare function isRedactedMessage(message: IMessage): boolean;
4226
+ declare function buildMessageSegments(text: string): {
4227
+ text: string;
4228
+ redacted: boolean;
4229
+ }[];
4230
+ declare function isDelayedMessage(message: IMessage): boolean;
4231
+ declare function isFailedMessage(message: IMessage): boolean;
4232
+ declare function getFailureTooltip(message: IMessage): string;
4233
+ declare function enrichChatMessageRow(msg: IMessage, displayDate: Date, isFirstMessage: boolean): IChatMessageRow;
4191
4234
  declare class ChatService {
4192
4235
  cacheService: AbstractCacheService;
4193
4236
  private _lastMessages;
@@ -4250,5 +4293,5 @@ declare class ProgressTickerService {
4250
4293
  static ɵprov: i0.ɵɵInjectableDeclaration<ProgressTickerService>;
4251
4294
  }
4252
4295
 
4253
- export { AbstractCacheService, AgendaComponent, AgendaItemType, AlertPopupComponent, AlertStatusFields, ArraySortPipe, AutoDelegationEventTypes, AutoDelegationEventValue, BaseViewportComponent, CURRENT_CLIENT, CURRENT_MATCHER, CalendarAccountIconsEnum, CalendarUtilsService, ChatComponent, ChatMetaPipe, ChatService, ChatSuggestionComponent, CircleProgressComponent, CircleProgressModule, CircleVariable, ClientChatHeadComponent, ClientDashboardTabs, ClientHomeComponent, ClientViewportComponent, ClientViewportModule, ClientViewportPage, ClientViewportPrefTab, ClientViewportTab, CommonOperations, CountNonEmptyFieldsPipe, FallbackTranslatePipe, FormFieldType, GetColorByMatcherPipe, GetMultiSelectDisplayTextPipe, GetProfileWithProgressPipe, GifSelectorService, HandoffPanelTab, HandoffPanelVersion, INTERESTS_LIST, InitialsPipe, IsStatusIncludedPipe, LayoutService, LibAgendaModule, LibAutoDelegationModalComponent, LibChatComponentModule, LibClientHomeComponent, LibClientMatchOverviewComponent, LibDashboardSwipeableTabsComponent, LibEventFormComponent, LibEventFormModule, LibHandoffPanelComponent, LibLoadingBarComponent, LibMessageModalComponent, LibSchedulerComponent, LibStatusBarComponent, LibStatusBarModule, LibToastrService, LibToastrStackService, LibVisualManagerModalComponent, LocalStorageKeys, MATCHER_STATUS_LOOKUP, MatcherStatusesComponent, MatcherViewportComponent, MatcherViewportModule, MenuPosition, MessageModalService, MessageOption, PROGRESS_GAP_MINUTES, ProfileCardComponent, ProfileCardModule, ProgressTickerService, RoundPipe, SPREAD_PROSPECT_OVERVIEW_DEFAULTS, SafeHtmlPipe, SpiderChartComponent, SpiderColorValueForItemPipe, StandardChatHeadComponent, StatusIconComponent, StatusTypes, TICK_PERIOD_SECONDS, TRAIT_VISUAL_DEFAULT_BG_BASE64, ToastrActionInitiator, ToastrActionType, ToastrDescription, ToastrPosition, ToastrSeverity, TrustedHtmlPipe, UpdateLLMPreferencePipe, VisualManagerModalEventTypes, VisualManagerModalEventValue, allClients, allMatchers, circleData, computeInnerState, configSpider, dashboardMainSwiperDefaultOptions, dashboardThumbsSwiperDefaultOptions, defaultClientDashboardConfig, defaultClientHomeConfig, defaultClientViewportConfig, defaultHandoffPanelConfig, defaultMatcherDashboardConfig, defaultSpiderConfig, defsF, defsLG, defsRG, demoPolygonColors, formatMessageDate, getLimitDatesIndicators, innerProgressDefaultColors, innerProgressPinkColors, innerProgressPurpleColors, innerProgressTealColors, innerProgressWhiteColors, mainswiperDefaultOptions, progressDefaultColors, progressWhiteColors, prospectMatchData, prospects, recurringOptions, thumbsSwiperDefaultOptions };
4296
+ export { AbstractCacheService, AgendaComponent, AgendaItemType, AlertPopupComponent, AlertStatusFields, ArraySortPipe, AutoDelegationEventTypes, AutoDelegationEventValue, BaseViewportComponent, CURRENT_CLIENT, CURRENT_MATCHER, CalendarAccountIconsEnum, CalendarUtilsService, ChatComponent, ChatMetaPipe, ChatService, ChatSuggestionComponent, CircleProgressComponent, CircleProgressModule, CircleVariable, ClientChatHeadComponent, ClientDashboardTabs, ClientHomeComponent, ClientViewportComponent, ClientViewportModule, ClientViewportPage, ClientViewportPrefTab, ClientViewportTab, CommonOperations, CountNonEmptyFieldsPipe, FallbackTranslatePipe, FormFieldType, GetColorByMatcherPipe, GetMultiSelectDisplayTextPipe, GetProfileWithProgressPipe, GifSelectorService, HandoffPanelTab, HandoffPanelVersion, INTERESTS_LIST, InitialsPipe, IsStatusIncludedPipe, LayoutService, LibAgendaModule, LibAutoDelegationModalComponent, LibChatComponentModule, LibClientHomeComponent, LibClientMatchOverviewComponent, LibDashboardSwipeableTabsComponent, LibEventFormComponent, LibEventFormModule, LibHandoffPanelComponent, LibLoadingBarComponent, LibMessageModalComponent, LibSchedulerComponent, LibStatusBarComponent, LibStatusBarModule, LibToastrService, LibToastrStackService, LibVisualManagerModalComponent, LocalStorageKeys, MATCHER_STATUS_LOOKUP, MatcherStatusesComponent, MatcherViewportComponent, MatcherViewportModule, MenuPosition, MessageModalService, MessageOption, PROGRESS_GAP_MINUTES, ProfileCardComponent, ProfileCardModule, ProgressTickerService, RoundPipe, SPREAD_PROSPECT_OVERVIEW_DEFAULTS, SafeHtmlPipe, SpiderChartComponent, SpiderColorValueForItemPipe, StandardChatHeadComponent, StatusIconComponent, StatusTypes, TICK_PERIOD_SECONDS, TRAIT_VISUAL_DEFAULT_BG_BASE64, ToastrActionInitiator, ToastrActionType, ToastrDescription, ToastrPosition, ToastrSeverity, TrustedHtmlPipe, UpdateLLMPreferencePipe, VisualManagerModalEventTypes, VisualManagerModalEventValue, allClients, allMatchers, buildMessageSegments, circleData, computeInnerState, configSpider, dashboardMainSwiperDefaultOptions, dashboardThumbsSwiperDefaultOptions, defaultClientDashboardConfig, defaultClientHomeConfig, defaultClientViewportConfig, defaultHandoffPanelConfig, defaultMatcherDashboardConfig, defaultSpiderConfig, defsF, defsLG, defsRG, demoPolygonColors, enrichChatMessageRow, formatMessageDate, getFailureTooltip, getLimitDatesIndicators, innerProgressDefaultColors, innerProgressPinkColors, innerProgressPurpleColors, innerProgressTealColors, innerProgressWhiteColors, isDelayedMessage, isFailedMessage, isRedactedMessage, mainswiperDefaultOptions, progressDefaultColors, progressWhiteColors, prospectMatchData, prospects, recurringOptions, thumbsSwiperDefaultOptions };
4254
4297
  export type { AgendaItem, ChatHeadState, ClientInnerState, GroupingAdapterFn, IAd, IAgendaDay, IAgendaEvent, IAutoDelegationData, IAutoDelegationEvent, IAutoDelegationModalData, IAutoDelegationPreferences, IChatHeadData, IChatMessageRow, ICircleData, ICircleProgressConfig, IClientChatHead, IClientChatHeadData, IClientDashboardInputs, IClientPageProps, IClientPersona, IClientProfile, IClientViewportConfig, IColorChangeNotification, IDashboardTabBarItem, IDataset, IDatePrepInfo, IDatePrepItem, IDefsF, IDefsLG, IDefsRG, IEmptyTemplateContext, IEvent, IEventForm, IEventFormOutput, IEventTime, IGroupWrapper, IHandoffPanelInputs, IHandoffProspectCard, IHomeDashboardInputs, IInnerPartialCircleProgressColors, ILibClientMatchOverview, IMatcherDashboardInputs, IMatcherPageProps, IMatcherProfile, IMatcherTabConfig, IMatcherViewportConfig, IMessageModalEventPayload, IMessageModalPayload, IPartialCircleProgressColors, IPolygonColor, IPrefMatchManagerModalItem, IPrefMatchVisualTabModalData, IPreferenceItem, IProfileAttribute, IProfileComparisonData, IProfileComparisonInputs, IProgressDecision, IProgressFacts, IProspectData, IProspectMatchDatum, IRecurringEvent, IScheduleSlot, ISchedulerAction, ISchedulerEvent, ISchedulerEventDay, ISchedulerEventSlots, ISelectOptionWithTemplate, ISpiderChartAttribute, ISpiderChartConfig, ISpiderChartTabModalData, IStandardChatHead, IStatus, ITabConfig, ITabGroup, ITabGroupConfig, ITabWrapper, ITenorMediaFormat, ITenorObject, ITenorResult, IToasterConfig, IToastrActionEvent, ITraitVisualCanvasConfig, IVisualManagerModalData, IVisualManagerModalEvent, MessageModalScalar, TabGroupingMode, TabInfoData, TabInfoValue, TabModalData, TabNode, ToastrStackConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naniteninja/dashboard-components-lib",
3
- "version": "2.3.4",
3
+ "version": "2.3.6",
4
4
  "author": "naniteninja",
5
5
  "repository": {
6
6
  "type": "git"