@arsedizioni/ars-utils 21.1.94 → 21.1.95

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.4", ngImport: i0, type: ArsUIOAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
21
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: ArsUIOAuthModule }); }
22
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ArsUIOAuthModule }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ArsUIOAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
21
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.5", ngImport: i0, type: ArsUIOAuthModule }); }
22
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ArsUIOAuthModule }); }
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ArsUIOAuthModule, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", 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.4", ngImport: i0, type: LoginOAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.4", 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.5", ngImport: i0, type: LoginOAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
172
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", 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.4", ngImport: i0, type: LoginOAuthComponent, decorators: [{
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", 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.94",
3
+ "version": "21.1.95",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -1054,7 +1054,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1054
1054
  readonly useSelections: _angular_core.InputSignal<boolean>;
1055
1055
  readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1056
1056
  protected selection: () => ClipperDocumentInfo[];
1057
- readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1057
+ readonly parent: _angular_core.InputSignal<any>;
1058
1058
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
1059
1059
  readonly isReference: _angular_core.InputSignal<boolean>;
1060
1060
  readonly isReadable: _angular_core.InputSignal<boolean>;
@@ -73,12 +73,12 @@ interface Notification {
73
73
  isPublished: boolean;
74
74
  isInternal: boolean;
75
75
  stateName: string;
76
- documents?: Document[];
76
+ documents?: SupportDocumentInfo[];
77
77
  isRead: boolean;
78
78
  totalRead: number;
79
79
  }
80
80
  interface SupportDocumentInfo {
81
- id: number;
81
+ id?: number;
82
82
  origin?: number;
83
83
  ownerId?: number;
84
84
  name?: string;
@@ -110,7 +110,7 @@ interface SupportNotificationInfo {
110
110
  isPublished: boolean;
111
111
  isInternal: boolean;
112
112
  stateName: string;
113
- documents?: Document[];
113
+ documents?: SupportDocumentInfo[];
114
114
  isRead: boolean;
115
115
  totalRead: number;
116
116
  isMenuOpen?: boolean;
@@ -2,13 +2,14 @@ import * as _angular_core from '@angular/core';
2
2
  import { OnInit, OnDestroy, DoCheck, OnChanges, ElementRef, SimpleChanges, AfterContentInit, Signal } from '@angular/core';
3
3
  import { NgForm, ControlValueAccessor, NgControl } from '@angular/forms';
4
4
  import { Searchable, SearchBag, NameValueItem, DateInterval, FileInfo } from '@arsedizioni/ars-utils/core';
5
+ import { MatFormFieldAppearance } from 'node_modules/@angular/material/types/_form-field-chunk';
5
6
  import { FlatTreeControl } from '@angular/cdk/tree';
6
7
  import { MatTreeFlatDataSource } from '@angular/material/tree';
7
8
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
8
9
  import { MatCheckboxChange } from '@angular/material/checkbox';
9
10
  import { MatSelectionList, MatSelectionListChange } from '@angular/material/list';
10
11
  import { MatPaginator, PageEvent } from '@angular/material/paginator';
11
- import { MatFormFieldControl } from '@angular/material/form-field';
12
+ import { MatFormFieldAppearance as MatFormFieldAppearance$1, MatFormFieldControl } from '@angular/material/form-field';
12
13
  import { MatDialogRef } from '@angular/material/dialog';
13
14
  import { DialogService, BusyTimer, InfoDialogComponent, ToastComponent, ConfirmDialogOption, DeleteDialogConfirmMode } from '@arsedizioni/ars-utils/ui';
14
15
  import { MatSnackBarRef } from '@angular/material/snack-bar';
@@ -105,7 +106,7 @@ interface SelectDialogData {
105
106
  canFilter?: boolean;
106
107
  canPaginate?: boolean;
107
108
  pageSize?: number;
108
- appearance?: string;
109
+ appearance?: MatFormFieldAppearance;
109
110
  header?: string;
110
111
  searchLabel?: string;
111
112
  searchButtonLabel?: string;
@@ -116,7 +117,7 @@ interface SelectTreeDialogData {
116
117
  okCaption?: string;
117
118
  nodes?: ItemNode[];
118
119
  initialFilter?: string;
119
- appearance?: string;
120
+ appearance?: MatFormFieldAppearance;
120
121
  owner?: any;
121
122
  canAppend?: boolean;
122
123
  }
@@ -130,7 +131,7 @@ interface SelectFileDialogData {
130
131
  options?: any;
131
132
  owner?: any;
132
133
  accept?: string;
133
- appearance?: string;
134
+ appearance?: MatFormFieldAppearance;
134
135
  }
135
136
  interface SelectPictureFileDialogData extends SelectFileDialogData {
136
137
  maxWidth?: number;
@@ -203,7 +204,7 @@ interface PromptDialogData {
203
204
  minValue?: number;
204
205
  maxValue?: number;
205
206
  required?: boolean;
206
- appearance?: string;
207
+ appearance?: MatFormFieldAppearance;
207
208
  options?: any;
208
209
  }
209
210
  interface PromptTimeDialogData extends PromptDialogData {
@@ -272,7 +273,7 @@ interface SendToDialogData {
272
273
  count: number;
273
274
  title?: string;
274
275
  info?: string;
275
- appearance?: string;
276
+ appearance?: MatFormFieldAppearance$1;
276
277
  allowPopulate?: boolean;
277
278
  options?: any;
278
279
  }
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { OnInit, QueryList, ElementRef } from '@angular/core';
3
3
  import * as i1 from '@arsedizioni/ars-utils/core';
4
4
  import { PasswordStrength } from '@arsedizioni/ars-utils/core';
5
+ import { MatFormFieldAppearance } from '@angular/material/form-field';
5
6
  import { ControlValueAccessor } from '@angular/forms';
6
7
  import { MatPaginatorIntl } from '@angular/material/paginator';
7
8
  import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
@@ -146,7 +147,7 @@ interface DeleteDialogData {
146
147
  okCaption?: string;
147
148
  cancelCaption?: string;
148
149
  details?: string;
149
- appearance?: string;
150
+ appearance?: MatFormFieldAppearance;
150
151
  }
151
152
  declare class DeleteDialogComponent implements OnInit {
152
153
  readonly choosen: i0.OutputEmitterRef<DialogResult>;
@@ -381,7 +382,7 @@ interface CredentialsDialogData {
381
382
  user?: string;
382
383
  okCaption?: string;
383
384
  mode?: 'email' | 'user' | 'otp';
384
- appearance?: string;
385
+ appearance?: MatFormFieldAppearance;
385
386
  }
386
387
  declare class CredentialsDialogComponent implements OnInit {
387
388
  readonly done: i0.OutputEmitterRef<CredentialsDialogResult>;
@@ -410,7 +411,7 @@ declare class CredentialsDialogComponent implements OnInit {
410
411
  }
411
412
 
412
413
  interface RecoverPasswordDialogData {
413
- appearance?: string;
414
+ appearance?: MatFormFieldAppearance;
414
415
  }
415
416
  declare class RecoverPasswordDialogComponent {
416
417
  readonly done: i0.OutputEmitterRef<RecoverPasswordDialogResult>;
@@ -428,7 +429,7 @@ interface ResetPasswordDialogData {
428
429
  mode: number;
429
430
  userId?: number;
430
431
  userEmail?: string;
431
- appearance?: string;
432
+ appearance?: MatFormFieldAppearance;
432
433
  }
433
434
  declare class ResetPasswordDialogComponent implements OnInit {
434
435
  readonly done: i0.OutputEmitterRef<ResetPasswordDialogResult>;