@arsedizioni/ars-utils 21.1.8 → 21.1.9

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.
@@ -17,11 +17,11 @@ var LoginOAuthType;
17
17
 
18
18
  // Material
19
19
  class ArsUIOAuthModule {
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: ArsUIOAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
21
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.1", ngImport: i0, type: ArsUIOAuthModule }); }
22
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: ArsUIOAuthModule }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ArsUIOAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
21
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.2", ngImport: i0, type: ArsUIOAuthModule }); }
22
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ArsUIOAuthModule }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: ArsUIOAuthModule, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ArsUIOAuthModule, decorators: [{
25
25
  type: NgModule
26
26
  }] });
27
27
 
@@ -168,8 +168,8 @@ class LoginOAuthComponent {
168
168
  // Use wrapper click to prevent Illegal invocation exception
169
169
  googleButtonWrapper.click();
170
170
  }
171
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: LoginOAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: LoginOAuthComponent, isStandalone: true, selector: "login-oauth", inputs: { showInfo: { classPropertyName: "showInfo", publicName: "showInfo", isSignal: true, isRequired: false, transformFunction: null }, applicationName: { classPropertyName: "applicationName", publicName: "applicationName", isSignal: true, isRequired: false, transformFunction: null }, autoInitialize: { classPropertyName: "autoInitialize", publicName: "autoInitialize", isSignal: true, isRequired: false, transformFunction: null }, allowMicrosoft: { classPropertyName: "allowMicrosoft", publicName: "allowMicrosoft", isSignal: true, isRequired: false, transformFunction: null }, allowGoogle: { classPropertyName: "allowGoogle", publicName: "allowGoogle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { success: "success" }, providers: [
171
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: LoginOAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: LoginOAuthComponent, isStandalone: true, selector: "login-oauth", inputs: { showInfo: { classPropertyName: "showInfo", publicName: "showInfo", isSignal: true, isRequired: false, transformFunction: null }, applicationName: { classPropertyName: "applicationName", publicName: "applicationName", isSignal: true, isRequired: false, transformFunction: null }, autoInitialize: { classPropertyName: "autoInitialize", publicName: "autoInitialize", isSignal: true, isRequired: false, transformFunction: null }, allowMicrosoft: { classPropertyName: "allowMicrosoft", publicName: "allowMicrosoft", isSignal: true, isRequired: false, transformFunction: null }, allowGoogle: { classPropertyName: "allowGoogle", publicName: "allowGoogle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { success: "success" }, providers: [
173
173
  {
174
174
  provide: MSAL_INSTANCE,
175
175
  deps: [EnvironmentService],
@@ -188,7 +188,7 @@ class LoginOAuthComponent {
188
188
  MsalBroadcastService
189
189
  ], ngImport: i0, template: "<div class=\"login-oauth\">\r\n @if(showInfo()) {\r\n <div class=\"message\">\r\n <p>Questa sezione consente di accedere al servizio utilizzando un provider OAuth2.</p>\r\n @if(applicationName()) {\r\n <p>La email utilizzata deve essere collegata ad un utente valido di {{applicationName()}} e dei servizi ad esso\r\n connessi.</p>\r\n }\r\n </div>\r\n }\r\n @if (allowMicrosoft()) {\r\n <div class=\"button\">\r\n <button mat-flat-button (click)=\"loginMSAL()\" [attr.aria-label]=\"'Effettua accesso'\"\r\n [disabled]=\"!oauthMicrosoftReady()\" style=\"width: 100%;\">\r\n Accedi con Microsoft</button>\r\n </div>\r\n }\r\n @if (allowGoogle()) {\r\n <div class=\"button\">\r\n <button mat-flat-button (click)=\"loginGoogle()\" style=\"width: 100%;\"\r\n [attr.aria-label]=\"'Effettua accesso'\" [disabled]=\"!oauthGoogleReady()\">\r\n Accedi con Google</button>\r\n </div>\r\n }\r\n</div>", styles: [".login-oauth{text-align:center}.login-oauth .button{padding:10px 0;width:100%}.login-oauth .message{padding:0 0 10px!important;font-size:small}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
190
190
  }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: LoginOAuthComponent, decorators: [{
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: LoginOAuthComponent, decorators: [{
192
192
  type: Component,
193
193
  args: [{ selector: 'login-oauth', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
194
194
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "21.1.8",
3
+ "version": "21.1.9",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -16,7 +16,7 @@ import { MatInput } from '@angular/material/input';
16
16
  import { MatMenu, MatMenuTrigger } from '@angular/material/menu';
17
17
  import { MatSelectionList } from '@angular/material/list';
18
18
  import { MatDialogRef } from '@angular/material/dialog';
19
- import { DialogService } from '@arsedizioni/ars-utils/ui';
19
+ import { Injector } from 'node_modules/@angular/core/types/_chrome_dev_tools_performance-chunk';
20
20
 
21
21
  declare class ClipperDocumentManager {
22
22
  protected clipboard: Clipboard;
@@ -269,6 +269,7 @@ declare class ClipperSearchResultManager extends ClipperDocumentManager implemen
269
269
  protected changeDetector: ChangeDetectorRef;
270
270
  protected breakpointObserver: BreakpointObserver;
271
271
  private themeService;
272
+ private injector;
272
273
  screenService: ScreenService;
273
274
  dialogService: ApplicationDialogService;
274
275
  selection: SelectableModel<ClipperDocumentInfo, string> | undefined;
@@ -406,7 +407,7 @@ declare class ClipperSearchResultManager extends ClipperDocumentManager implemen
406
407
  * @param documentId : the document id
407
408
  * @param query: the current query or null
408
409
  */
409
- openDocument(documentId: string, query?: string): void;
410
+ openDocument(documentId: string, query?: string, queryChunks?: string): void;
410
411
  /**
411
412
  * Save restorable data
412
413
  * @param id : the restorable id
@@ -843,6 +844,7 @@ interface ClipperDocumentDialogData {
843
844
  selectableModules?: ClipperModule[];
844
845
  id: string;
845
846
  query?: string;
847
+ queryChunks?: string;
846
848
  theme?: ThemeType;
847
849
  canUseArchive?: boolean;
848
850
  canHandleTooManyResults?: boolean;
@@ -852,6 +854,7 @@ declare class ClipperDocumentComponent extends ClipperDocumentManager implements
852
854
  readonly closing: _angular_core.OutputEmitterRef<void>;
853
855
  readonly opening: _angular_core.OutputEmitterRef<string>;
854
856
  private unsubscribe;
857
+ private injector;
855
858
  private changeDetector;
856
859
  private breakpointObserver;
857
860
  private renderer;
@@ -973,6 +976,7 @@ declare class ClipperDocumentComponent extends ClipperDocumentManager implements
973
976
  * Open a document
974
977
  * @param documentId : the document id
975
978
  * @param query: the current query or null
979
+ * @param queryChunks : the query chunks for highlight as string (eg. "|1|2|3...")
976
980
  */
977
981
  private openDocument;
978
982
  /**
@@ -1043,7 +1047,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1043
1047
  private changeDetector;
1044
1048
  private clipperService;
1045
1049
  readonly useSelections: _angular_core.InputSignal<boolean>;
1046
- readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1050
+ readonly selectionSource: _angular_core.InputSignal<"none" | "selection" | "bag">;
1047
1051
  protected selection: () => ClipperDocumentInfo[];
1048
1052
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1049
1053
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -1131,13 +1135,14 @@ declare class ClipperDocumentsUtils {
1131
1135
  * @param clipperService: the clipper service
1132
1136
  * @param documentId : the document id
1133
1137
  * @param query : the query for highlight
1138
+ * @param queryChunks : the query chunks for highlight as string (eg. "|1|2|3...")
1134
1139
  * @param selectionMode : the clipper selection mode
1135
1140
  * @param selectableModules : the clipper selectable modules
1136
1141
  * @param theme: the theme to use. Default is system
1137
1142
  * @param canUseArchive: ture if archive is available
1138
1143
  * @param canHandleTooManyResults: true if the component should handle too many results
1139
1144
  */
1140
- static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType, canUseArchive?: boolean, canHandleTooManyResults?: boolean): MatDialogRef<ClipperDocumentComponent> | undefined;
1145
+ static openDocument(injector: Injector, documentId: string, query?: string, queryChunks?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType, canUseArchive?: boolean, canHandleTooManyResults?: boolean): MatDialogRef<ClipperDocumentComponent> | undefined;
1141
1146
  /**
1142
1147
  * Extract document title
1143
1148
  * @param title : the full document title