@solidpepper/solidpepper-solidreviewer 0.0.6 → 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
|
@@ -43,6 +43,7 @@ declare class TranslationService {
|
|
|
43
43
|
private safeMerge;
|
|
44
44
|
setDefaultLang(lang: string): void;
|
|
45
45
|
useLanguage(lang: string): void;
|
|
46
|
+
instant(key: string, interpolateParams?: Object): string;
|
|
46
47
|
getAvailableLanguages(): {
|
|
47
48
|
code: string;
|
|
48
49
|
text: string;
|
|
@@ -75,6 +76,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
75
76
|
readonly spIconUser: _solidpepper_solidpepper_icons.SpIcon;
|
|
76
77
|
readonly spIconLock: _solidpepper_solidpepper_icons.SpIcon;
|
|
77
78
|
readonly spIconLogOut: _solidpepper_solidpepper_icons.SpIcon;
|
|
79
|
+
readonly spIconClose: _solidpepper_solidpepper_icons.SpIcon;
|
|
78
80
|
guid?: string;
|
|
79
81
|
token?: string;
|
|
80
82
|
apiUrl: string;
|
|
@@ -82,6 +84,10 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
82
84
|
companyAlias?: string;
|
|
83
85
|
disableAuthPrompt: boolean;
|
|
84
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;
|
|
85
91
|
logout: EventEmitter<void>;
|
|
86
92
|
private loggedOutToken?;
|
|
87
93
|
private originalInputToken?;
|
|
@@ -138,8 +144,23 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
138
144
|
} | null>;
|
|
139
145
|
loginError: _angular_core.WritableSignal<string | null>;
|
|
140
146
|
authTab: _angular_core.WritableSignal<"login" | "guest" | "password">;
|
|
141
|
-
documentPassword: string
|
|
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;
|
|
142
157
|
onUnlockWithPassword(): void;
|
|
158
|
+
openCommentAuthPrompt(draftPos?: {
|
|
159
|
+
pageGuid: string;
|
|
160
|
+
x: number;
|
|
161
|
+
y: number;
|
|
162
|
+
}, draftText?: string): void;
|
|
163
|
+
closeCommentAuthPrompt(): void;
|
|
143
164
|
constructor(http: HttpClient, svgCache: SvgCacheService, elRef: ElementRef, cdr: ChangeDetectorRef, sanitizer: DomSanitizer, commentService: DocumentCommentService, settingsService: SettingsService, translationService: TranslationService);
|
|
144
165
|
ngOnInit(): void;
|
|
145
166
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -150,6 +171,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
150
171
|
private getUsernameFromToken;
|
|
151
172
|
onAuthLogin(): void;
|
|
152
173
|
onAccessAsGuest(): void;
|
|
174
|
+
onGuestNameUpdate(name: string): void;
|
|
153
175
|
onLogout(): void;
|
|
154
176
|
onWindowResize(): void;
|
|
155
177
|
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
@@ -174,6 +196,8 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
174
196
|
loadPagesAroundActive(): void;
|
|
175
197
|
private checkAndUnloadExcessPages;
|
|
176
198
|
onPageVisible(pageGuid: string, isVisible: boolean, page: ReviewerPage): void;
|
|
199
|
+
private extractDimensionsFromSvg;
|
|
200
|
+
private getTargetFitPage;
|
|
177
201
|
/**
|
|
178
202
|
* Extracts Google Fonts @import, custom @font-face, and declared font-family rules
|
|
179
203
|
* directly from the SVG markup and injects them into document.head so the browser
|
|
@@ -241,7 +265,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
241
265
|
text: string;
|
|
242
266
|
}): void;
|
|
243
267
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppComponent, never>;
|
|
244
|
-
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>;
|
|
245
269
|
}
|
|
246
270
|
|
|
247
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"
|