@solidpepper/solidpepper-flipbook 0.1.0 → 0.1.2

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
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, AfterViewInit, OnDestroy, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { OnInit, AfterViewInit, OnDestroy, ElementRef, EventEmitter, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { PageFlip } from 'page-flip';
5
5
  import { HttpClient } from '@angular/common/http';
@@ -136,6 +136,7 @@ declare class FlipbookDataService {
136
136
  declare class FlipbookViewerComponent implements OnInit, AfterViewInit, OnDestroy {
137
137
  private dataService;
138
138
  private paramsService;
139
+ private cdr;
139
140
  pages: any[];
140
141
  images: string[];
141
142
  flipbookRef: ElementRef<HTMLDivElement>;
@@ -169,8 +170,11 @@ declare class FlipbookViewerComponent implements OnInit, AfterViewInit, OnDestro
169
170
  private readonly scaleMin;
170
171
  private readonly scaleMax;
171
172
  get transformStyle(): string;
172
- constructor(dataService: FlipbookDataService, paramsService: AppParamsService);
173
+ constructor(dataService: FlipbookDataService, paramsService: AppParamsService, cdr: ChangeDetectorRef);
173
174
  ngOnInit(): void;
175
+ private resizeObserver?;
176
+ private lastObservedWidth;
177
+ private lastObservedHeight;
174
178
  ngAfterViewInit(): Promise<void>;
175
179
  private getImageDimensions;
176
180
  initBook(targetPage?: number): Promise<void>;
@@ -228,12 +232,22 @@ declare class PDFService {
228
232
  static ɵprov: i0.ɵɵInjectableDeclaration<PDFService>;
229
233
  }
230
234
 
231
- declare class AppComponent implements OnInit, OnChanges {
235
+ declare class ThemeService {
236
+ isDarkMode: i0.WritableSignal<boolean>;
237
+ constructor();
238
+ toggleTheme(): void;
239
+ private applyTheme;
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
241
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
242
+ }
243
+
244
+ declare class AppComponent implements OnInit, OnChanges, OnDestroy {
232
245
  private translationService;
233
246
  private appParamsService;
234
247
  loadingService: LoadingService;
235
248
  private flipbookDataService;
236
249
  private pdfService;
250
+ themeService: ThemeService;
237
251
  guid?: string;
238
252
  alias?: string;
239
253
  type?: string;
@@ -242,6 +256,7 @@ declare class AppComponent implements OnInit, OnChanges {
242
256
  get apiUrl(): string;
243
257
  private _apiUrl;
244
258
  language: string;
259
+ disableModals: boolean;
245
260
  set isDemo1(v: any);
246
261
  set isDemo2(v: any);
247
262
  set isDemo3(v: any);
@@ -263,8 +278,9 @@ declare class AppComponent implements OnInit, OnChanges {
263
278
  isDemoLoading: i0.WritableSignal<boolean>;
264
279
  conversionProgress: i0.WritableSignal<number>;
265
280
  private pricingTimer;
266
- constructor(translationService: TranslationService, appParamsService: AppParamsService, loadingService: LoadingService, flipbookDataService: FlipbookDataService, pdfService: PDFService);
281
+ constructor(translationService: TranslationService, appParamsService: AppParamsService, loadingService: LoadingService, flipbookDataService: FlipbookDataService, pdfService: PDFService, themeService: ThemeService);
267
282
  ngOnInit(): void;
283
+ ngOnDestroy(): void;
268
284
  onResize(): void;
269
285
  private checkMobile;
270
286
  ngOnChanges(changes: SimpleChanges): void;
@@ -286,7 +302,7 @@ declare class AppComponent implements OnInit, OnChanges {
286
302
  flipEnd(): void;
287
303
  goToPage(page: number): void;
288
304
  static ɵfac: i0.ɵɵFactoryDeclaration<AppComponent, never>;
289
- static ɵcmp: i0.ɵɵComponentDeclaration<AppComponent, "solidpepper-flipbook", never, { "guid": { "alias": "guid"; "required": false; }; "alias": { "alias": "alias"; "required": false; }; "type": { "alias": "type"; "required": false; }; "apiUrl1": { "alias": "apiurl"; "required": false; }; "apiUrl2": { "alias": "api-url"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isDemo1": { "alias": "isDemo"; "required": false; }; "isDemo2": { "alias": "isdemo"; "required": false; }; "isDemo3": { "alias": "is-demo"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
305
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppComponent, "solidpepper-flipbook", never, { "guid": { "alias": "guid"; "required": false; }; "alias": { "alias": "alias"; "required": false; }; "type": { "alias": "type"; "required": false; }; "apiUrl1": { "alias": "apiurl"; "required": false; }; "apiUrl2": { "alias": "api-url"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disableModals": { "alias": "disableModals"; "required": false; }; "isDemo1": { "alias": "isDemo"; "required": false; }; "isDemo2": { "alias": "isdemo"; "required": false; }; "isDemo3": { "alias": "is-demo"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
290
306
  }
291
307
 
292
308
  export { AppParamsService, AppComponent as FlipbookComponent, FlipbookDataService };
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@solidpepper/solidpepper-flipbook",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Solidpepper - flipbook library",
5
5
  "peerDependencies": {
6
- "@angular/common": "^20.1.6",
7
- "@angular/core": "^20.1.6"
6
+ "@angular/common": "^20.3.12",
7
+ "@angular/core": "^20.3.12",
8
+ "@angular/platform-browser": "^20.3.12",
9
+ "@ngx-translate/core": "^17.0.0",
10
+ "rxjs": "^7.8.0",
11
+ "page-flip": "^2.0.7",
12
+ "pdfjs-dist": "^4.8.69"
8
13
  },
9
14
  "dependencies": {
10
15
  "tslib": "^2.3.0"