@arsedizioni/ars-utils 21.1.8 → 21.1.10
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +10 -10
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +93 -81
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +109 -109
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +10 -10
- package/fesm2022/arsedizioni-ars-utils-help.mjs +13 -13
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +7 -7
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +6 -6
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +7 -7
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +61 -61
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +43 -43
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +7 -7
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +16 -8
|
@@ -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.
|
|
21
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.
|
|
22
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.
|
|
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.
|
|
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.
|
|
172
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.
|
|
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.
|
|
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
|
@@ -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 {
|
|
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;
|
|
@@ -88,9 +88,10 @@ declare class ClipperDocumentManager {
|
|
|
88
88
|
* This should be always overridden
|
|
89
89
|
* @param documentId : the document id
|
|
90
90
|
* @param query : the query document
|
|
91
|
+
* @param queryChunks : the query chunks for highlight as string (eg. "|1|2|3...")
|
|
91
92
|
* @param newWindow: true if the document must be open into a new window
|
|
92
93
|
*/
|
|
93
|
-
open(_documentId?: string, _query?: string, _newWindow?: boolean): void;
|
|
94
|
+
open(_documentId?: string, _query?: string, _queryChunks?: string, _newWindow?: boolean): void;
|
|
94
95
|
/**
|
|
95
96
|
* Display a document report
|
|
96
97
|
* @param item : the document
|
|
@@ -269,6 +270,7 @@ declare class ClipperSearchResultManager extends ClipperDocumentManager implemen
|
|
|
269
270
|
protected changeDetector: ChangeDetectorRef;
|
|
270
271
|
protected breakpointObserver: BreakpointObserver;
|
|
271
272
|
private themeService;
|
|
273
|
+
private injector;
|
|
272
274
|
screenService: ScreenService;
|
|
273
275
|
dialogService: ApplicationDialogService;
|
|
274
276
|
selection: SelectableModel<ClipperDocumentInfo, string> | undefined;
|
|
@@ -396,17 +398,18 @@ declare class ClipperSearchResultManager extends ClipperDocumentManager implemen
|
|
|
396
398
|
/**
|
|
397
399
|
* Open an item
|
|
398
400
|
* @param documentId : the document id
|
|
399
|
-
* @param query: the current query or
|
|
401
|
+
* @param query: the current query or undefined
|
|
402
|
+
* @param queryChunks : the query chunks for highlight as string (eg. "|1|2|3...")
|
|
400
403
|
* @param newWindow: true if the document must be open into a new window
|
|
401
404
|
* @param canUseArchive: true if archive is available
|
|
402
405
|
*/
|
|
403
|
-
open(documentId: string, query?: string, newWindow?: boolean): void;
|
|
406
|
+
open(documentId: string, query?: string, queryChunks?: string, newWindow?: boolean): void;
|
|
404
407
|
/**
|
|
405
408
|
* Open a document
|
|
406
409
|
* @param documentId : the document id
|
|
407
410
|
* @param query: the current query or null
|
|
408
411
|
*/
|
|
409
|
-
openDocument(documentId: string, query?: string): void;
|
|
412
|
+
openDocument(documentId: string, query?: string, queryChunks?: string): void;
|
|
410
413
|
/**
|
|
411
414
|
* Save restorable data
|
|
412
415
|
* @param id : the restorable id
|
|
@@ -843,6 +846,7 @@ interface ClipperDocumentDialogData {
|
|
|
843
846
|
selectableModules?: ClipperModule[];
|
|
844
847
|
id: string;
|
|
845
848
|
query?: string;
|
|
849
|
+
queryChunks?: string;
|
|
846
850
|
theme?: ThemeType;
|
|
847
851
|
canUseArchive?: boolean;
|
|
848
852
|
canHandleTooManyResults?: boolean;
|
|
@@ -852,6 +856,7 @@ declare class ClipperDocumentComponent extends ClipperDocumentManager implements
|
|
|
852
856
|
readonly closing: _angular_core.OutputEmitterRef<void>;
|
|
853
857
|
readonly opening: _angular_core.OutputEmitterRef<string>;
|
|
854
858
|
private unsubscribe;
|
|
859
|
+
private injector;
|
|
855
860
|
private changeDetector;
|
|
856
861
|
private breakpointObserver;
|
|
857
862
|
private renderer;
|
|
@@ -965,14 +970,16 @@ declare class ClipperDocumentComponent extends ClipperDocumentManager implements
|
|
|
965
970
|
/**
|
|
966
971
|
* Open an item
|
|
967
972
|
* @param documentId : the document id
|
|
968
|
-
* @param query: the current query or
|
|
973
|
+
* @param query: the current query or undefined
|
|
974
|
+
* @param queryChunks : the query chunks for highlight as string (eg. "|1|2|3...")
|
|
969
975
|
* @param newWindow: true if the document must be open into a new window
|
|
970
976
|
*/
|
|
971
|
-
open(documentId: string, query?: string, newWindow?: boolean): void;
|
|
977
|
+
open(documentId: string, query?: string, queryChunks?: string, newWindow?: boolean): void;
|
|
972
978
|
/**
|
|
973
979
|
* Open a document
|
|
974
980
|
* @param documentId : the document id
|
|
975
981
|
* @param query: the current query or null
|
|
982
|
+
* @param queryChunks : the query chunks for highlight as string (eg. "|1|2|3...")
|
|
976
983
|
*/
|
|
977
984
|
private openDocument;
|
|
978
985
|
/**
|
|
@@ -1131,13 +1138,14 @@ declare class ClipperDocumentsUtils {
|
|
|
1131
1138
|
* @param clipperService: the clipper service
|
|
1132
1139
|
* @param documentId : the document id
|
|
1133
1140
|
* @param query : the query for highlight
|
|
1141
|
+
* @param queryChunks : the query chunks for highlight as string (eg. "|1|2|3...")
|
|
1134
1142
|
* @param selectionMode : the clipper selection mode
|
|
1135
1143
|
* @param selectableModules : the clipper selectable modules
|
|
1136
1144
|
* @param theme: the theme to use. Default is system
|
|
1137
1145
|
* @param canUseArchive: ture if archive is available
|
|
1138
1146
|
* @param canHandleTooManyResults: true if the component should handle too many results
|
|
1139
1147
|
*/
|
|
1140
|
-
static openDocument(
|
|
1148
|
+
static openDocument(injector: Injector, documentId: string, query?: string, queryChunks?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType, canUseArchive?: boolean, canHandleTooManyResults?: boolean): MatDialogRef<ClipperDocumentComponent> | undefined;
|
|
1141
1149
|
/**
|
|
1142
1150
|
* Extract document title
|
|
1143
1151
|
* @param title : the full document title
|