@solidpepper/solidpepper-solidreviewer 0.0.5 → 0.0.7
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
|
@@ -38,9 +38,12 @@ declare class TranslationService {
|
|
|
38
38
|
private defaultLanguage;
|
|
39
39
|
private dictionaries;
|
|
40
40
|
private availablelangs;
|
|
41
|
+
private isMerging;
|
|
41
42
|
constructor(translate?: TranslateService | undefined);
|
|
43
|
+
private safeMerge;
|
|
42
44
|
setDefaultLang(lang: string): void;
|
|
43
45
|
useLanguage(lang: string): void;
|
|
46
|
+
instant(key: string, interpolateParams?: Object): string;
|
|
44
47
|
getAvailableLanguages(): {
|
|
45
48
|
code: string;
|
|
46
49
|
text: string;
|
|
@@ -73,6 +76,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
73
76
|
readonly spIconUser: _solidpepper_solidpepper_icons.SpIcon;
|
|
74
77
|
readonly spIconLock: _solidpepper_solidpepper_icons.SpIcon;
|
|
75
78
|
readonly spIconLogOut: _solidpepper_solidpepper_icons.SpIcon;
|
|
79
|
+
readonly spIconClose: _solidpepper_solidpepper_icons.SpIcon;
|
|
76
80
|
guid?: string;
|
|
77
81
|
token?: string;
|
|
78
82
|
apiUrl: string;
|
|
@@ -80,6 +84,10 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
80
84
|
companyAlias?: string;
|
|
81
85
|
disableAuthPrompt: boolean;
|
|
82
86
|
theme: string;
|
|
87
|
+
set nightMode(v: boolean | string | undefined | null);
|
|
88
|
+
get nightMode(): boolean | string | undefined;
|
|
89
|
+
setNightMode(v: any): void;
|
|
90
|
+
private currentDocPassword;
|
|
83
91
|
logout: EventEmitter<void>;
|
|
84
92
|
private loggedOutToken?;
|
|
85
93
|
private originalInputToken?;
|
|
@@ -135,7 +143,24 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
135
143
|
y: number;
|
|
136
144
|
} | null>;
|
|
137
145
|
loginError: _angular_core.WritableSignal<string | null>;
|
|
138
|
-
authTab: _angular_core.WritableSignal<"login" | "guest">;
|
|
146
|
+
authTab: _angular_core.WritableSignal<"login" | "guest" | "password">;
|
|
147
|
+
documentPassword: _angular_core.WritableSignal<string>;
|
|
148
|
+
isOrganizationDoc: _angular_core.WritableSignal<boolean>;
|
|
149
|
+
isCommentAuth: _angular_core.WritableSignal<boolean>;
|
|
150
|
+
pendingDraftComment: {
|
|
151
|
+
pageGuid: string;
|
|
152
|
+
x: number;
|
|
153
|
+
y: number;
|
|
154
|
+
} | null;
|
|
155
|
+
pendingDraftDrawing: any | null;
|
|
156
|
+
pendingDraftText: string | null;
|
|
157
|
+
onUnlockWithPassword(): void;
|
|
158
|
+
openCommentAuthPrompt(draftPos?: {
|
|
159
|
+
pageGuid: string;
|
|
160
|
+
x: number;
|
|
161
|
+
y: number;
|
|
162
|
+
}, draftText?: string): void;
|
|
163
|
+
closeCommentAuthPrompt(): void;
|
|
139
164
|
constructor(http: HttpClient, svgCache: SvgCacheService, elRef: ElementRef, cdr: ChangeDetectorRef, sanitizer: DomSanitizer, commentService: DocumentCommentService, settingsService: SettingsService, translationService: TranslationService);
|
|
140
165
|
ngOnInit(): void;
|
|
141
166
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -146,6 +171,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
146
171
|
private getUsernameFromToken;
|
|
147
172
|
onAuthLogin(): void;
|
|
148
173
|
onAccessAsGuest(): void;
|
|
174
|
+
onGuestNameUpdate(name: string): void;
|
|
149
175
|
onLogout(): void;
|
|
150
176
|
onWindowResize(): void;
|
|
151
177
|
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
@@ -170,6 +196,8 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
170
196
|
loadPagesAroundActive(): void;
|
|
171
197
|
private checkAndUnloadExcessPages;
|
|
172
198
|
onPageVisible(pageGuid: string, isVisible: boolean, page: ReviewerPage): void;
|
|
199
|
+
private extractDimensionsFromSvg;
|
|
200
|
+
private getTargetFitPage;
|
|
173
201
|
/**
|
|
174
202
|
* Extracts Google Fonts @import, custom @font-face, and declared font-family rules
|
|
175
203
|
* directly from the SVG markup and injects them into document.head so the browser
|
|
@@ -237,7 +265,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
237
265
|
text: string;
|
|
238
266
|
}): void;
|
|
239
267
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppComponent, never>;
|
|
240
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppComponent, "solid-reviewer, solidpepper-solidreviewer", never, { "guid": { "alias": "guid"; "required": false; }; "token": { "alias": "token"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "companyAlias": { "alias": "companyAlias"; "required": false; }; "disableAuthPrompt": { "alias": "disableAuthPrompt"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "logout": "logout"; }, never, never, true, never>;
|
|
268
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppComponent, "solid-reviewer, solidpepper-solidreviewer", never, { "guid": { "alias": "guid"; "required": false; }; "token": { "alias": "token"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "companyAlias": { "alias": "companyAlias"; "required": false; }; "disableAuthPrompt": { "alias": "disableAuthPrompt"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "nightMode": { "alias": "nightMode"; "required": false; }; }, { "logout": "logout"; }, never, never, true, never>;
|
|
241
269
|
}
|
|
242
270
|
|
|
243
271
|
export { AppComponent as SolidReviewerComponent, SvgCacheService };
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidpepper/solidpepper-solidreviewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "
|
|
6
|
-
"@angular/core": "
|
|
7
|
-
"@angular/platform-browser": "
|
|
8
|
-
"@angular/
|
|
9
|
-
"@
|
|
10
|
-
"@ngx-translate/core": "^17.0.0",
|
|
5
|
+
"@angular/common": ">=20.0.0",
|
|
6
|
+
"@angular/core": ">=20.0.0",
|
|
7
|
+
"@angular/platform-browser": ">=20.0.0",
|
|
8
|
+
"@angular/router": ">=20.0.0",
|
|
9
|
+
"@ngx-translate/core": ">=15.0.0",
|
|
11
10
|
"@solidpepper/solidpepper-component": ">=0.0.1",
|
|
12
11
|
"@solidpepper/solidpepper-icons": ">=0.0.1",
|
|
13
|
-
"rxjs": "
|
|
12
|
+
"rxjs": ">=7.0.0"
|
|
14
13
|
},
|
|
15
14
|
"dependencies": {
|
|
16
15
|
"tslib": "^2.3.0"
|