@arsedizioni/ars-utils 22.5.14 → 22.5.16

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.
@@ -119,7 +119,7 @@ class ClipperDocumentMenuComponent {
119
119
  ...(ngDevMode ? [{ debugName: "canFind" }] : /* istanbul ignore next */ []));
120
120
  this.canUseAIAssistant = input(false, /* @ts-ignore */
121
121
  ...(ngDevMode ? [{ debugName: "canUseAIAssistant" }] : /* istanbul ignore next */ []));
122
- this.canUseAIEditor = this.clipperService.loginInfo?.context?.hasAIEditor ?? false;
122
+ this.canUseAIEditor = this.clipperService.user?.hasAIEditor ?? false;
123
123
  this.canUseRS = input(true, /* @ts-ignore */
124
124
  ...(ngDevMode ? [{ debugName: "canUseRS" }] : /* istanbul ignore next */ []));
125
125
  this.canOpenDocument = input(true, /* @ts-ignore */
@@ -1865,7 +1865,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
1865
1865
  : undefined, /* @ts-ignore */
1866
1866
  ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
1867
1867
  /** True when the user has access to the AI assistant feature. */
1868
- this.hasAIAssistant = computed(() => this.showAIAssistantOptions() && this.clipperService.loginInfo?.context?.hasAIAssistant === true, /* @ts-ignore */
1868
+ this.hasAIAssistant = computed(() => this.showAIAssistantOptions() && this.clipperService.user?.hasAIAssistant === true, /* @ts-ignore */
1869
1869
  ...(ngDevMode ? [{ debugName: "hasAIAssistant" }] : /* istanbul ignore next */ []));
1870
1870
  /** True when at least one saved filter is available. */
1871
1871
  this.hasFilters = computed(() => this.filters().length > 0, /* @ts-ignore */
@@ -1907,7 +1907,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
1907
1907
  ...(ngDevMode ? [{ debugName: "filteredModules" }] : /* istanbul ignore next */ []));
1908
1908
  this.interval = new DateInterval();
1909
1909
  this.sourceInterval = new DateInterval();
1910
- this.user = this.clipperService.loginInfo?.context;
1910
+ this.user = this.clipperService.user;
1911
1911
  this._viewReady = false;
1912
1912
  // Initialize filter params with defaults
1913
1913
  this.filterParams.version = 7;
@@ -3116,7 +3116,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
3116
3116
  ...(ngDevMode ? [{ debugName: "relevantsBusy" }] : /* istanbul ignore next */ []));
3117
3117
  this.hasRelevants = signal(false, /* @ts-ignore */
3118
3118
  ...(ngDevMode ? [{ debugName: "hasRelevants" }] : /* istanbul ignore next */ []));
3119
- this.user = this.clipperService.loginInfo?.context;
3119
+ this.user = this.clipperService.user;
3120
3120
  // Apply any URL queued before the iframe element was available (e.g. the very first
3121
3121
  // navigation triggered from the constructor runs before the view is created).
3122
3122
  effect(() => {
@@ -3944,7 +3944,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
3944
3944
  ...(ngDevMode ? [{ debugName: "filterPane" }] : /* istanbul ignore next */ []));
3945
3945
  this.dialogRef = inject((MatDialogRef));
3946
3946
  this.dialogData = inject(MAT_DIALOG_DATA) ?? { mode: ClipperQueryReferencesMode.ReferencesIn };
3947
- this.user = this.clipperService.loginInfo?.context;
3947
+ this.user = this.clipperService.user;
3948
3948
  this._viewReady = false;
3949
3949
  if (this.dialogData) {
3950
3950
  switch (this.dialogData.mode) {