@solidpepper/solidpepper-soliddesigner 0.2.32 → 0.3.1

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.
Files changed (17) hide show
  1. package/README.md +11 -3
  2. package/fesm2022/solidpepper-solidpepper-soliddesigner-iframe-modal.component-CJ4Uve9q.mjs +152 -0
  3. package/fesm2022/solidpepper-solidpepper-soliddesigner-iframe-modal.component-CJ4Uve9q.mjs.map +1 -0
  4. package/fesm2022/{solidpepper-solidpepper-soliddesigner-image-utils-1wqPuqMD.mjs → solidpepper-solidpepper-soliddesigner-image-utils-BZ877qA2.mjs} +2 -2
  5. package/fesm2022/{solidpepper-solidpepper-soliddesigner-image-utils-1wqPuqMD.mjs.map → solidpepper-solidpepper-soliddesigner-image-utils-BZ877qA2.mjs.map} +1 -1
  6. package/fesm2022/solidpepper-solidpepper-soliddesigner-page-grid-modal.component-CSVxODUW.mjs +771 -0
  7. package/fesm2022/solidpepper-solidpepper-soliddesigner-page-grid-modal.component-CSVxODUW.mjs.map +1 -0
  8. package/fesm2022/solidpepper-solidpepper-soliddesigner-solidpepper-solidpepper-soliddesigner-DNuvMIlh.mjs +59166 -0
  9. package/fesm2022/solidpepper-solidpepper-soliddesigner-solidpepper-solidpepper-soliddesigner-DNuvMIlh.mjs.map +1 -0
  10. package/fesm2022/solidpepper-solidpepper-soliddesigner.mjs +2 -1
  11. package/fesm2022/solidpepper-solidpepper-soliddesigner.mjs.map +1 -1
  12. package/index.d.ts +767 -90
  13. package/package.json +6 -3
  14. package/fesm2022/solidpepper-solidpepper-soliddesigner-page-grid-modal.component-DLRf7wT0.mjs +0 -641
  15. package/fesm2022/solidpepper-solidpepper-soliddesigner-page-grid-modal.component-DLRf7wT0.mjs.map +0 -1
  16. package/fesm2022/solidpepper-solidpepper-soliddesigner-solidpepper-solidpepper-soliddesigner-DFi3bVIe.mjs +0 -43070
  17. package/fesm2022/solidpepper-solidpepper-soliddesigner-solidpepper-solidpepper-soliddesigner-DFi3bVIe.mjs.map +0 -1
package/index.d.ts CHANGED
@@ -1,12 +1,23 @@
1
- import * as i0 from '@angular/core';
2
- import { RendererFactory2, Injector, Type, OnInit, OnChanges, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { RendererFactory2, Injector, Type, OnInit, OnChanges, EventEmitter, ElementRef, SimpleChanges, OnDestroy } from '@angular/core';
3
+ import * as _solidpepper_solidpepper_icons from '@solidpepper/solidpepper-icons';
3
4
  import { TranslateService } from '@ngx-translate/core';
4
5
  import { HttpClient } from '@angular/common/http';
5
6
  import * as rxjs from 'rxjs';
6
7
  import { Observable } from 'rxjs';
7
- import { PublicationTemplate, PublicationsTemplatesService } from '@solidpepper/solidpepper-service';
8
+ import { PublicationTemplate, DocumentComment, PublicationsTemplatesService, SettingsService, PublicationsService } from '@solidpepper/solidpepper-service';
8
9
  import * as signalR from '@microsoft/signalr';
9
10
  import { Router } from '@angular/router';
11
+ export * from '@solidpepper/solidpepper-component';
12
+
13
+ declare class ThemeService {
14
+ isDarkMode: _angular_core.WritableSignal<boolean>;
15
+ constructor();
16
+ toggleTheme(): void;
17
+ private applyTheme;
18
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
19
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
20
+ }
10
21
 
11
22
  declare class TranslationService {
12
23
  translate: TranslateService;
@@ -19,8 +30,8 @@ declare class TranslationService {
19
30
  code: string;
20
31
  text: string;
21
32
  }[];
22
- static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
33
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TranslationService, never>;
34
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<TranslationService>;
24
35
  }
25
36
 
26
37
  declare enum DocumentType {
@@ -29,7 +40,9 @@ declare enum DocumentType {
29
40
  MARKETING = "marketing",
30
41
  PRODUCTBLOCK = "productblock",
31
42
  DOCUMENT = "document",
32
- TEMPLATE = "template"
43
+ YOUBOOKY = "youbooky",
44
+ TEMPLATE = "template",
45
+ CALLOUT = "callout"
33
46
  }
34
47
 
35
48
  interface AppParams {
@@ -43,10 +56,66 @@ interface AppParams {
43
56
  documentData?: any[];
44
57
  documentName?: string;
45
58
  productSheetAssetGuid?: string | null;
59
+ productSheetGuid?: string | null;
60
+ documentPublicationGuid?: string | null;
46
61
  }
47
62
  declare class AppParamsService {
48
- readonly params: i0.WritableSignal<AppParams>;
49
- readonly pageGuid: i0.WritableSignal<string>;
63
+ readonly params: _angular_core.WritableSignal<AppParams>;
64
+ readonly pageGuid: _angular_core.WritableSignal<string>;
65
+ readonly commentsModeActive: _angular_core.WritableSignal<boolean>;
66
+ readonly isWaitingForCanvasClick: _angular_core.WritableSignal<boolean>;
67
+ readonly activeCommentGuid: _angular_core.WritableSignal<string | null>;
68
+ readonly commentsPanelCollapsed: _angular_core.WritableSignal<boolean>;
69
+ readonly propertiesPanelCollapsed: _angular_core.WritableSignal<boolean>;
70
+ readonly showCanvasPropertiesPanel: _angular_core.WritableSignal<boolean>;
71
+ readonly showPositionGeometryPanel: _angular_core.WritableSignal<boolean>;
72
+ readonly showAdvancedPropertiesPanel: _angular_core.WritableSignal<boolean>;
73
+ readonly showVariablePropertiesPanel: _angular_core.WritableSignal<boolean>;
74
+ readonly globalPanelCollapsed: _angular_core.WritableSignal<boolean>;
75
+ readonly layersWindowOpen: _angular_core.WritableSignal<boolean>;
76
+ readonly modelSelectorOpen: _angular_core.WritableSignal<boolean>;
77
+ readonly modelSelectorMode: _angular_core.WritableSignal<"template" | "callout">;
78
+ readonly modelSelectorSelectedGuid: _angular_core.WritableSignal<string | null>;
79
+ readonly modelSelectorOnSelect: _angular_core.WritableSignal<((model: any) => void) | null>;
80
+ readonly productSelectorOpen: _angular_core.WritableSignal<boolean>;
81
+ readonly productSelectorOnSelect: _angular_core.WritableSignal<((product: any) => void) | null>;
82
+ readonly attributeSelectorOpen: _angular_core.WritableSignal<boolean>;
83
+ readonly attributeSelectorTitle: _angular_core.WritableSignal<string>;
84
+ readonly attributeSelectorOnSelect: _angular_core.WritableSignal<((attribute: {
85
+ key: string;
86
+ label: string;
87
+ }) => void) | null>;
88
+ readonly attributeSelectorAutoClose: _angular_core.WritableSignal<boolean>;
89
+ readonly attributeSelectorPosition: _angular_core.WritableSignal<{
90
+ x: number;
91
+ y: number;
92
+ } | null>;
93
+ readonly draftComment: _angular_core.WritableSignal<{
94
+ pageGuid: string;
95
+ x: number;
96
+ y: number;
97
+ } | null>;
98
+ readonly commentsList: _angular_core.WritableSignal<DocumentComment[]>;
99
+ readonly activeCommentTool: _angular_core.WritableSignal<"text" | "point" | "drawing" | "shape-rect" | "shape-line" | "highlight">;
100
+ readonly commentColor: _angular_core.WritableSignal<string>;
101
+ readonly draftDrawing: _angular_core.WritableSignal<{
102
+ pageGuid: string;
103
+ type: string;
104
+ pathData: string;
105
+ color: string;
106
+ } | null>;
107
+ openModelSelector(mode: 'template' | 'callout', selectedGuid: string | null, onSelect: (model: any) => void): void;
108
+ closeModelSelector(): void;
109
+ openProductSelector(onSelect: (product: any) => void): void;
110
+ closeProductSelector(): void;
111
+ openAttributeSelector(onSelect: (attribute: {
112
+ key: string;
113
+ label: string;
114
+ }) => void, title?: string, autoClose?: boolean, position?: {
115
+ x: number;
116
+ y: number;
117
+ } | null): void;
118
+ closeAttributeSelector(): void;
50
119
  setParams(params: Partial<AppParams>): void;
51
120
  updateTemplateName(newName: string): void;
52
121
  updateDocumentName(newName: string): void;
@@ -58,8 +127,10 @@ declare class AppParamsService {
58
127
  get templateData(): PublicationTemplate | undefined;
59
128
  get documentData(): any[] | undefined;
60
129
  get productSheetAssetGuid(): string | null | undefined;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<AppParamsService, never>;
62
- static ɵprov: i0.ɵɵInjectableDeclaration<AppParamsService>;
130
+ get productSheetGuid(): string | null | undefined;
131
+ get documentPublicationGuid(): string | null | undefined;
132
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppParamsService, never>;
133
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AppParamsService>;
63
134
  }
64
135
 
65
136
  declare class FontApiService {
@@ -72,8 +143,8 @@ declare class FontApiService {
72
143
  updateFont(font: any): Observable<any>;
73
144
  deleteFont(fontId: number | string): Observable<any>;
74
145
  getFontAsBase64(fontName: string, fontUrl: string, fontFilename: string): Observable<any>;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<FontApiService, never>;
76
- static ɵprov: i0.ɵɵInjectableDeclaration<FontApiService>;
146
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FontApiService, never>;
147
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FontApiService>;
77
148
  }
78
149
 
79
150
  interface FontDefinition {
@@ -88,8 +159,8 @@ interface FontDefinition {
88
159
  }
89
160
  declare class FontService {
90
161
  private fontApiService;
91
- fontsNames: i0.WritableSignal<string[]>;
92
- availableFonts: i0.WritableSignal<{
162
+ fontsNames: _angular_core.WritableSignal<string[]>;
163
+ availableFonts: _angular_core.WritableSignal<{
93
164
  [key: string]: FontDefinition;
94
165
  }>;
95
166
  private fontsImported;
@@ -109,8 +180,8 @@ declare class FontService {
109
180
  private injectDocumentFonts;
110
181
  isGoogleFont(fontName: string): boolean;
111
182
  getCustomFontUrlFace(fontName: string): string | null;
112
- static ɵfac: i0.ɵɵFactoryDeclaration<FontService, never>;
113
- static ɵprov: i0.ɵɵInjectableDeclaration<FontService>;
183
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FontService, never>;
184
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FontService>;
114
185
  }
115
186
 
116
187
  type NotificationType = 'info' | 'success' | 'warning' | 'error';
@@ -123,7 +194,7 @@ interface Notification {
123
194
  declare class NotificationService {
124
195
  private http;
125
196
  private _settingsService;
126
- notifications: i0.WritableSignal<Notification[]>;
197
+ notifications: _angular_core.WritableSignal<Notification[]>;
127
198
  private quantity;
128
199
  show(message: string, type?: NotificationType, duration?: number): void;
129
200
  success(message: string, duration?: number): void;
@@ -134,8 +205,8 @@ declare class NotificationService {
134
205
  sendUpdate(message: number): void;
135
206
  getUpdate(): Observable<any>;
136
207
  getNotifications(start?: any, limit?: any): Observable<Object>;
137
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
138
- static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
208
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NotificationService, never>;
209
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
139
210
  }
140
211
 
141
212
  declare class WebsocketService {
@@ -160,8 +231,8 @@ declare class WebsocketService {
160
231
  listeners(): void;
161
232
  listenersOnClose(): void;
162
233
  disconnect(): void;
163
- static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketService, never>;
164
- static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketService>;
234
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<WebsocketService, never>;
235
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<WebsocketService>;
165
236
  }
166
237
 
167
238
  declare class AssetsService {
@@ -173,6 +244,7 @@ declare class AssetsService {
173
244
  getSVGTemplate(guid: string): Observable<PublicationTemplate>;
174
245
  getTemplateBackgroundsList(templateGuid: string): Observable<any>;
175
246
  getTemplateProductBlocks(templateGuid: string): Observable<PublicationTemplate[]>;
247
+ getTemplateCallouts(templateGuid: string): Observable<PublicationTemplate[]>;
176
248
  getSVGDocumentPages(guid: string): Observable<any>;
177
249
  getTemplateDimensions(): Observable<any>;
178
250
  saveDocument(type: string, formData: FormData): Observable<any>;
@@ -183,36 +255,43 @@ declare class AssetsService {
183
255
  deleteDocumentPage(assetGuid: string, pageGuid: string): Observable<any>;
184
256
  updateTemplateField(fieldName: string, fieldValue: string): Observable<any>;
185
257
  getTemplates(): Observable<any[]>;
186
- publishYoubooky(): Observable<any>;
187
258
  checkPdfExistence(): Observable<any>;
188
- generatePdf(highDefinition?: boolean, imageColorProfile?: string, bleedMargin?: boolean, cuttingLines?: boolean, bleedMarginCustom?: boolean, bleedMarginValue?: number): Observable<any>;
189
- getAssetsTemplates(): Observable<any[]>;
259
+ generatePdf(highDefinition?: boolean, imageColorProfile?: string, bleedMargin?: boolean, cuttingLines?: boolean, bleedMarginCustom?: boolean, bleedMarginValue?: number, compressPdf?: boolean): Observable<any>;
260
+ getFoldersWithParent(parentGuid?: string, folderType?: string): Observable<any[]>;
261
+ getAssetsTemplates(folderGuid?: string): Observable<any[]>;
262
+ getAssetsCallouts(folderGuid?: string): Observable<any[]>;
190
263
  getTemplateGuidFromAssetGuid(assetGuid: string): Observable<string | null>;
191
- static ɵfac: i0.ɵɵFactoryDeclaration<AssetsService, never>;
192
- static ɵprov: i0.ɵɵInjectableDeclaration<AssetsService>;
264
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AssetsService, never>;
265
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AssetsService>;
193
266
  }
194
267
 
195
268
  declare class CanvasService {
196
269
  private _svgElement;
197
270
  private _wrapperElement;
271
+ private _transitionTimeout;
198
272
  private readonly _transform;
199
- readonly zoomLevel: i0.WritableSignal<number>;
200
- readonly panOffset: i0.WritableSignal<{
273
+ readonly zoomLevel: _angular_core.WritableSignal<number>;
274
+ readonly panOffset: _angular_core.WritableSignal<{
201
275
  x: number;
202
276
  y: number;
203
277
  }>;
204
- readonly baseScale: i0.WritableSignal<number>;
205
- readonly isReady: i0.WritableSignal<boolean>;
206
- readonly currentContext: i0.WritableSignal<SVGSVGElement | SVGGElement | null>;
207
- readonly modifiedPulse: i0.WritableSignal<number>;
208
- readonly isSilent: i0.WritableSignal<boolean>;
209
- readonly versionUpgraded: i0.WritableSignal<boolean>;
278
+ readonly baseScale: _angular_core.WritableSignal<number>;
279
+ readonly isReady: _angular_core.WritableSignal<boolean>;
280
+ readonly currentContext: _angular_core.WritableSignal<SVGSVGElement | SVGGElement | null>;
281
+ readonly modifiedPulse: _angular_core.WritableSignal<number>;
282
+ readonly isSilent: _angular_core.WritableSignal<boolean>;
283
+ readonly versionUpgraded: _angular_core.WritableSignal<boolean>;
284
+ readonly aiCompletionActive: _angular_core.WritableSignal<boolean>;
285
+ private aiAnimationTimeout;
286
+ triggerAiCompletionAnimation(durationMs?: number): void;
210
287
  private disabledElems;
211
288
  private readonly docService;
212
289
  private readonly eventsService;
213
290
  private readonly selectionStore;
214
291
  private readonly colorService;
292
+ private readonly appParams;
215
293
  private injector;
294
+ private get historyService();
216
295
  constructor();
217
296
  get svgElement(): SVGSVGElement;
218
297
  get wrapperElement(): HTMLElement;
@@ -266,6 +345,10 @@ declare class CanvasService {
266
345
  * Pan the canvas
267
346
  */
268
347
  pan(dx: number, dy: number): void;
348
+ /**
349
+ * Smoothly shift the canvas offset with CSS animation (used during panel open/close)
350
+ */
351
+ smoothShift(dx: number, dy?: number): void;
269
352
  /**
270
353
  * Apply transform to the SVG element
271
354
  */
@@ -300,6 +383,10 @@ declare class CanvasService {
300
383
  * Moving current content into a left dataside group and cloning it into a right dataside group.
301
384
  */
302
385
  migrateLegacyToDoublePage(): void;
386
+ /**
387
+ * Updates visibility and pointer-events for double-page side groups
388
+ */
389
+ updateSideVisibility(): void;
303
390
  /**
304
391
  * Delete the currently selected elements
305
392
  */
@@ -356,8 +443,8 @@ declare class CanvasService {
356
443
  * Cached based on modifiedPulse for performance.
357
444
  */
358
445
  getMostUsedColors(limit?: number): string[];
359
- static ɵfac: i0.ɵɵFactoryDeclaration<CanvasService, never>;
360
- static ɵprov: i0.ɵɵInjectableDeclaration<CanvasService>;
446
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CanvasService, never>;
447
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CanvasService>;
361
448
  }
362
449
 
363
450
  interface EditorEvent {
@@ -385,8 +472,8 @@ declare class EventsService {
385
472
  private handlePaste;
386
473
  private handleKeyDown;
387
474
  private handleKeyUp;
388
- static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
389
- static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
475
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EventsService, never>;
476
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<EventsService>;
390
477
  }
391
478
 
392
479
  interface DocumentProperties {
@@ -408,23 +495,23 @@ interface DocumentProperties {
408
495
  }
409
496
  declare class DocumentService {
410
497
  private appParams;
411
- readonly properties: i0.WritableSignal<DocumentProperties>;
498
+ readonly properties: _angular_core.WritableSignal<DocumentProperties>;
412
499
  private getInitialUnit;
413
500
  constructor();
414
- get dimensions(): i0.WritableSignal<DocumentProperties>;
501
+ get dimensions(): _angular_core.WritableSignal<DocumentProperties>;
415
502
  updateDimensions(width: number, height: number): void;
416
503
  updateUnit(unit: DocumentProperties['unit']): void;
417
504
  updateProperty<K extends keyof DocumentProperties>(key: K, value: DocumentProperties[K]): void;
418
- static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
419
- static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
505
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DocumentService, never>;
506
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<DocumentService>;
420
507
  }
421
508
 
422
509
  declare class SelectionStore {
423
- readonly selectedElements: i0.WritableSignal<SVGElement[]>;
424
- readonly updated: i0.WritableSignal<number>;
425
- readonly count: i0.Signal<number>;
426
- readonly isEmpty: i0.Signal<boolean>;
427
- readonly first: i0.Signal<SVGElement>;
510
+ readonly selectedElements: _angular_core.WritableSignal<SVGElement[]>;
511
+ readonly updated: _angular_core.WritableSignal<number>;
512
+ readonly count: _angular_core.Signal<number>;
513
+ readonly isEmpty: _angular_core.Signal<boolean>;
514
+ readonly first: _angular_core.Signal<SVGElement>;
428
515
  select(elements: SVGElement[]): void;
429
516
  add(element: SVGElement): void;
430
517
  toggle(element: SVGElement): void;
@@ -435,8 +522,8 @@ declare class SelectionStore {
435
522
  * but the selection reference itself remains the same.
436
523
  */
437
524
  triggerUpdate(): void;
438
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionStore, never>;
439
- static ɵprov: i0.ɵɵInjectableDeclaration<SelectionStore>;
525
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectionStore, never>;
526
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<SelectionStore>;
440
527
  }
441
528
 
442
529
  interface HSLA {
@@ -508,8 +595,8 @@ declare class ColorService {
508
595
  parseHslString(str: string): RGBA;
509
596
  parseHsvString(str: string): RGBA;
510
597
  parseCmykString(str: string): RGBA;
511
- static ɵfac: i0.ɵɵFactoryDeclaration<ColorService, never>;
512
- static ɵprov: i0.ɵɵInjectableDeclaration<ColorService>;
598
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorService, never>;
599
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ColorService>;
513
600
  }
514
601
 
515
602
  interface TableSize {
@@ -519,8 +606,9 @@ interface TableSize {
519
606
  declare class TableElementService {
520
607
  private readonly canvasService;
521
608
  private colorService;
609
+ private readonly eventsService;
522
610
  private readonly renderer;
523
- constructor(rendererFactory: RendererFactory2, canvasService: CanvasService, colorService: ColorService);
611
+ constructor(rendererFactory: RendererFactory2, canvasService: CanvasService, colorService: ColorService, eventsService: EventsService);
524
612
  /**
525
613
  * Create a product table foreignObject element on the canvas.
526
614
  */
@@ -559,6 +647,7 @@ declare class TableElementService {
559
647
  getTableSize(container: Element): TableSize;
560
648
  setTableSize(container: Element, targetRows: number, targetCols: number): void;
561
649
  setEditInput(cell: HTMLElement): void;
650
+ private handleCellInsertParagraph;
562
651
  removeEditInput(cell: HTMLElement): void;
563
652
  selectCells(container: Element, cells: Element[]): void;
564
653
  deselectAllCells(container: Element): void;
@@ -576,8 +665,8 @@ declare class TableElementService {
576
665
  /** Get all elements in a given column (across all rows). */
577
666
  _getColumnByIndex(table: Element, colIndex: number): Element[];
578
667
  exportVariantsTableSettings(tableElement: HTMLElement): any;
579
- static ɵfac: i0.ɵɵFactoryDeclaration<TableElementService, never>;
580
- static ɵprov: i0.ɵɵInjectableDeclaration<TableElementService>;
668
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableElementService, never>;
669
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableElementService>;
581
670
  }
582
671
 
583
672
  declare enum LoadingError {
@@ -587,12 +676,12 @@ declare enum LoadingError {
587
676
  TOKEN = "LOADER.ERRORS.TOKEN"
588
677
  }
589
678
  declare class LoadingService {
590
- readonly isLoading: i0.WritableSignal<boolean>;
591
- readonly hasError: i0.WritableSignal<boolean>;
592
- readonly errorKey: i0.WritableSignal<LoadingError>;
593
- readonly isCanvasLoading: i0.WritableSignal<boolean>;
594
- readonly canvasHasError: i0.WritableSignal<boolean>;
595
- readonly canvasErrorKey: i0.WritableSignal<LoadingError>;
679
+ readonly isLoading: _angular_core.WritableSignal<boolean>;
680
+ readonly hasError: _angular_core.WritableSignal<boolean>;
681
+ readonly errorKey: _angular_core.WritableSignal<LoadingError>;
682
+ readonly isCanvasLoading: _angular_core.WritableSignal<boolean>;
683
+ readonly canvasHasError: _angular_core.WritableSignal<boolean>;
684
+ readonly canvasErrorKey: _angular_core.WritableSignal<LoadingError>;
596
685
  showLoader(): void;
597
686
  hideLoader(): void;
598
687
  showError(error: LoadingError): void;
@@ -600,8 +689,8 @@ declare class LoadingService {
600
689
  hideCanvasLoader(): void;
601
690
  showCanvasError(error: LoadingError): void;
602
691
  reset(): void;
603
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
604
- static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
692
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoadingService, never>;
693
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<LoadingService>;
605
694
  }
606
695
 
607
696
  declare class SaveService {
@@ -614,8 +703,8 @@ declare class SaveService {
614
703
  private fontService;
615
704
  private tableService;
616
705
  private loadingService;
617
- isDirty: i0.WritableSignal<boolean>;
618
- saveSuccessPulse: i0.WritableSignal<{
706
+ isDirty: _angular_core.WritableSignal<boolean>;
707
+ saveSuccessPulse: _angular_core.WritableSignal<{
619
708
  guid: string;
620
709
  count: number;
621
710
  }>;
@@ -631,8 +720,8 @@ declare class SaveService {
631
720
  * Trigger a download/upload of the current SVG
632
721
  */
633
722
  save(): Promise<void>;
634
- static ɵfac: i0.ɵɵFactoryDeclaration<SaveService, never>;
635
- static ɵprov: i0.ɵɵInjectableDeclaration<SaveService>;
723
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SaveService, never>;
724
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<SaveService>;
636
725
  }
637
726
 
638
727
  declare class OpenService {
@@ -661,8 +750,8 @@ declare class OpenService {
661
750
  * Import an SVG element (Delegate to processImportedSvg if root)
662
751
  */
663
752
  importSvgElement(svgEl: SVGElement): void;
664
- static ɵfac: i0.ɵɵFactoryDeclaration<OpenService, never>;
665
- static ɵprov: i0.ɵɵInjectableDeclaration<OpenService>;
753
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<OpenService, never>;
754
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<OpenService>;
666
755
  }
667
756
 
668
757
  declare abstract class Command {
@@ -692,7 +781,7 @@ declare class HistoryService {
692
781
  private debounceTimer;
693
782
  private complexStateCache;
694
783
  private accumulatedChanges;
695
- readonly historyChanged: i0.WritableSignal<number>;
784
+ readonly historyChanged: _angular_core.WritableSignal<number>;
696
785
  constructor();
697
786
  private initKeyboardShortcuts;
698
787
  canUndo(): boolean;
@@ -717,8 +806,8 @@ declare class HistoryService {
717
806
  private recordChanges;
718
807
  private scheduleFlush;
719
808
  private flushChanges;
720
- static ɵfac: i0.ɵɵFactoryDeclaration<HistoryService, never>;
721
- static ɵprov: i0.ɵɵInjectableDeclaration<HistoryService>;
809
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HistoryService, never>;
810
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<HistoryService>;
722
811
  }
723
812
 
724
813
  declare class BackgroundPreviewService {
@@ -727,10 +816,12 @@ declare class BackgroundPreviewService {
727
816
  private backgroundsSignal;
728
817
  private activeBackgroundIndexSignal;
729
818
  private isPreviewHiddenSignal;
730
- backgrounds: i0.Signal<PublicationTemplate[]>;
731
- activeBackgroundIndex: i0.Signal<number>;
732
- isPreviewHidden: i0.Signal<boolean>;
733
- activeBackground: i0.Signal<PublicationTemplate | null>;
819
+ readonly isLoading: _angular_core.WritableSignal<boolean>;
820
+ private lastLoadedKey;
821
+ backgrounds: _angular_core.Signal<PublicationTemplate[]>;
822
+ activeBackgroundIndex: _angular_core.Signal<number>;
823
+ isPreviewHidden: _angular_core.Signal<boolean>;
824
+ activeBackground: _angular_core.Signal<PublicationTemplate | null>;
734
825
  constructor(assetsService: AssetsService, appParams: AppParamsService);
735
826
  /**
736
827
  * Loads the background templates and fetches their SVG contents
@@ -738,8 +829,8 @@ declare class BackgroundPreviewService {
738
829
  loadBackgrounds(): Promise<void>;
739
830
  setActiveBackground(index: number): void;
740
831
  setPreviewHidden(hidden: boolean): void;
741
- static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundPreviewService, never>;
742
- static ɵprov: i0.ɵɵInjectableDeclaration<BackgroundPreviewService>;
832
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BackgroundPreviewService, never>;
833
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<BackgroundPreviewService>;
743
834
  }
744
835
 
745
836
  interface ModalOptions {
@@ -751,8 +842,8 @@ declare class ModalService {
751
842
  modalState$: rxjs.Observable<ModalOptions | null>;
752
843
  open(component: Type<any>, data?: any): void;
753
844
  close(): void;
754
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
755
- static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
845
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalService, never>;
846
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ModalService>;
756
847
  }
757
848
 
758
849
  interface EditorConfig {
@@ -764,19 +855,19 @@ interface EditorConfig {
764
855
  theme: 'light' | 'dark';
765
856
  }
766
857
  declare class ConfigService {
767
- readonly config: i0.WritableSignal<EditorConfig>;
858
+ readonly config: _angular_core.WritableSignal<EditorConfig>;
768
859
  updateConfig(partialConfig: Partial<EditorConfig>): void;
769
860
  toggleGrid(): void;
770
861
  toggleRulers(): void;
771
862
  toggleWireframe(): void;
772
863
  toggleMargins(): void;
773
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
774
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
864
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfigService, never>;
865
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ConfigService>;
775
866
  }
776
867
 
777
868
  declare class AppComponent implements OnInit, OnChanges {
778
869
  private translationService;
779
- private appParamsService;
870
+ appParamsService: AppParamsService;
780
871
  private assetsService;
781
872
  private openService;
782
873
  private canvasService;
@@ -790,24 +881,610 @@ declare class AppComponent implements OnInit, OnChanges {
790
881
  private saveService;
791
882
  loadingService: LoadingService;
792
883
  private websocketService;
884
+ private libSettingsService;
885
+ private publicationsService;
886
+ themeService: ThemeService;
887
+ readonly spIconLayers: _solidpepper_solidpepper_icons.SpIcon;
888
+ readonly spIconLayout: _solidpepper_solidpepper_icons.SpIcon;
889
+ readonly spIconCallout: _solidpepper_solidpepper_icons.SpIcon;
890
+ readonly spIconLink: _solidpepper_solidpepper_icons.SpIcon;
891
+ readonly spIconZap: _solidpepper_solidpepper_icons.SpIcon;
793
892
  token?: string;
794
- type: DocumentType.BACKGROUND | DocumentType.COVERPAGE | DocumentType.MARKETING | DocumentType.PRODUCTBLOCK | DocumentType.DOCUMENT | DocumentType.TEMPLATE;
893
+ type: DocumentType.BACKGROUND | DocumentType.COVERPAGE | DocumentType.MARKETING | DocumentType.PRODUCTBLOCK | DocumentType.DOCUMENT | DocumentType.YOUBOOKY | DocumentType.TEMPLATE | DocumentType.CALLOUT | string;
795
894
  guid?: string;
796
895
  apiUrl: string;
797
896
  language: string;
798
897
  unit?: string;
898
+ pageNumber?: number;
899
+ pageGuid?: string;
799
900
  exitEditor: EventEmitter<void>;
800
- isSafari: i0.WritableSignal<boolean>;
901
+ isSafari: _angular_core.WritableSignal<boolean>;
801
902
  isInitialized: boolean;
802
- constructor(translationService: TranslationService, appParamsService: AppParamsService, assetsService: AssetsService, openService: OpenService, canvasService: CanvasService, historyService: HistoryService, backgroundService: BackgroundPreviewService, fontService: FontService, eventsService: EventsService, modalService: ModalService, hostElement: ElementRef, config: ConfigService, saveService: SaveService, loadingService: LoadingService, websocketService: WebsocketService);
903
+ constructor(translationService: TranslationService, appParamsService: AppParamsService, assetsService: AssetsService, openService: OpenService, canvasService: CanvasService, historyService: HistoryService, backgroundService: BackgroundPreviewService, fontService: FontService, eventsService: EventsService, modalService: ModalService, hostElement: ElementRef, config: ConfigService, saveService: SaveService, loadingService: LoadingService, websocketService: WebsocketService, libSettingsService: SettingsService, publicationsService: PublicationsService);
904
+ get isDevOrSolidpepper(): boolean;
803
905
  ngOnInit(): void;
804
906
  ngOnChanges(changes: SimpleChanges): void;
805
907
  private tryInitialize;
806
908
  private initShortcutListeners;
909
+ onExitEditor(): void;
910
+ private resizeTimeout;
911
+ onWindowResize(): void;
807
912
  private checkBrowser;
808
- static ɵfac: i0.ɵɵFactoryDeclaration<AppComponent, never>;
809
- static ɵcmp: i0.ɵɵComponentDeclaration<AppComponent, "solid-designer", never, { "token": { "alias": "token"; "required": false; }; "type": { "alias": "type"; "required": false; }; "guid": { "alias": "guid"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
913
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppComponent, never>;
914
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppComponent, "solid-designer", never, { "token": { "alias": "token"; "required": false; }; "type": { "alias": "type"; "required": false; }; "guid": { "alias": "guid"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageGuid": { "alias": "pageGuid"; "required": false; }; }, { "exitEditor": "exitEditor"; }, never, never, true, never>;
915
+ }
916
+
917
+ /**
918
+ * Structure principale du document SolidDesigner en JSON
919
+ */
920
+ interface SolidDesignerDocument {
921
+ spVersion: string;
922
+ metadata?: DocumentMetadata;
923
+ document: DocumentSettings;
924
+ defs?: DocumentDefs;
925
+ pages: DocumentPage[];
926
+ }
927
+ interface DocumentMetadata {
928
+ title?: string;
929
+ documentType: DocumentType | string;
930
+ createdAt?: string;
931
+ updatedAt?: string;
932
+ author?: string;
933
+ customData?: Record<string, any>;
934
+ }
935
+ interface DocumentSettings {
936
+ width: number;
937
+ height: number;
938
+ unit: 'mm' | 'cm' | 'px' | 'in';
939
+ viewBox?: string;
940
+ backgroundColor?: string;
941
+ margins: DocumentMargins;
942
+ doublePage: DoublePageSettings;
943
+ }
944
+ interface DocumentMargins {
945
+ top: number;
946
+ bottom: number;
947
+ left: number;
948
+ right: number;
949
+ vertical?: number;
950
+ horizontal?: number;
951
+ headerHeight?: number;
952
+ footerHeight?: number;
953
+ bleed: BleedMargins;
954
+ }
955
+ interface BleedMargins {
956
+ top: number;
957
+ bottom: number;
958
+ left: number;
959
+ right: number;
960
+ }
961
+ interface DoublePageSettings {
962
+ enabled: boolean;
963
+ activeSide?: 'left' | 'right';
964
+ }
965
+ interface DocumentDefs {
966
+ linearGradients?: LinearGradientDef[];
967
+ radialGradients?: RadialGradientDef[];
968
+ patterns?: PatternDef[];
969
+ rawDefs?: string[];
970
+ }
971
+ interface LinearGradientDef {
972
+ id: string;
973
+ x1?: string;
974
+ y1?: string;
975
+ x2?: string;
976
+ y2?: string;
977
+ gradientTransform?: string;
978
+ stops: Array<{
979
+ offset: string;
980
+ color: string;
981
+ opacity?: number;
982
+ }>;
983
+ }
984
+ interface RadialGradientDef {
985
+ id: string;
986
+ cx?: string;
987
+ cy?: string;
988
+ r?: string;
989
+ gradientTransform?: string;
990
+ stops: Array<{
991
+ offset: string;
992
+ color: string;
993
+ opacity?: number;
994
+ }>;
995
+ }
996
+ interface PatternDef {
997
+ id: string;
998
+ x?: string;
999
+ y?: string;
1000
+ width: number | string;
1001
+ height: number | string;
1002
+ patternUnits?: string;
1003
+ patternContentHtml: string;
1004
+ }
1005
+ interface DocumentPage {
1006
+ id: string;
1007
+ side: 'left' | 'right' | 'single';
1008
+ elements: DesignerElement[];
1009
+ }
1010
+ interface ConditionalHideRule {
1011
+ enabled: boolean;
1012
+ attribute?: string;
1013
+ operator?: 'is_null' | 'is_not_null' | 'equals' | 'not_equals' | 'variant_exists' | 'variant_not_exists' | string;
1014
+ value?: string;
1015
+ variant?: number;
1016
+ }
1017
+ interface StrokeStyle {
1018
+ color: string;
1019
+ width: number;
1020
+ style?: 'solid' | 'dashed' | 'dotted' | string;
1021
+ dashArray?: string;
1022
+ lineCap?: 'butt' | 'round' | 'square' | string;
1023
+ lineJoin?: 'miter' | 'round' | 'bevel' | string;
1024
+ }
1025
+ interface ElementBorder {
1026
+ width?: string | number;
1027
+ color?: string;
1028
+ style?: string;
1029
+ radius?: number;
1030
+ }
1031
+ interface BaseElement {
1032
+ id: string;
1033
+ name?: string;
1034
+ type: ElementType;
1035
+ x: number;
1036
+ y: number;
1037
+ width?: number;
1038
+ height?: number;
1039
+ rotation?: number;
1040
+ opacity?: number;
1041
+ side?: 'left' | 'right';
1042
+ conditionalHide?: ConditionalHideRule;
1043
+ customDataAttributes?: Record<string, string>;
1044
+ }
1045
+ type ElementType = 'text' | 'image' | 'dynamicImage' | 'qrcode' | 'barcode' | 'productTable' | 'variantsTable' | 'rect' | 'circle' | 'ellipse' | 'line' | 'polyline' | 'path' | 'template' | 'callout' | 'group' | 'svg';
1046
+ interface TextElement extends BaseElement {
1047
+ type: 'text';
1048
+ content: TextElementLine[];
1049
+ style: {
1050
+ fontFamily: string;
1051
+ fontSize: number;
1052
+ fontWeight?: string | number;
1053
+ fontStyle?: string;
1054
+ textDecoration?: string;
1055
+ textAlign: 'left' | 'center' | 'right' | 'justify' | string;
1056
+ lineHeight?: string;
1057
+ color: string;
1058
+ backgroundColor?: string;
1059
+ padding?: {
1060
+ top?: number;
1061
+ right?: number;
1062
+ bottom?: number;
1063
+ left?: number;
1064
+ };
1065
+ border?: ElementBorder;
1066
+ };
1067
+ }
1068
+ interface TextElementLine {
1069
+ textElements: TextElementPart[];
1070
+ }
1071
+ interface TextElementPart {
1072
+ /**
1073
+ * Text element part, isVariable = true for a variable, false for a normal text. Only use text variables listed above
1074
+ */
1075
+ isVariable: boolean;
1076
+ content: string;
1077
+ color?: string;
1078
+ bold?: boolean;
1079
+ italic?: boolean;
1080
+ underline?: boolean;
1081
+ strikethrough?: boolean;
1082
+ highlightedColor?: string;
1083
+ }
1084
+ interface ImageElement extends BaseElement {
1085
+ type: 'image' | 'dynamicImage';
1086
+ isDynamic: boolean;
1087
+ source: {
1088
+ src?: string;
1089
+ assetGuid?: string;
1090
+ hdUrl?: string;
1091
+ sdUrl?: string;
1092
+ selectedImageField?: string;
1093
+ imageIndex?: number;
1094
+ };
1095
+ display: {
1096
+ objectFit: 'contain' | 'cover' | 'fill' | 'none' | string;
1097
+ filter?: string;
1098
+ internalRotation?: number;
1099
+ crop?: {
1100
+ top: number;
1101
+ right: number;
1102
+ bottom: number;
1103
+ left: number;
1104
+ };
1105
+ };
1106
+ border?: ElementBorder;
1107
+ }
1108
+ interface QrCodeElement extends BaseElement {
1109
+ type: 'qrcode';
1110
+ field: string;
1111
+ codeDimensions: {
1112
+ width: number;
1113
+ height: number;
1114
+ margin: number;
1115
+ };
1116
+ style: {
1117
+ dotType: 'square' | 'dots' | 'rounded';
1118
+ dotColor: string;
1119
+ cornersSquareType: 'square' | 'extra-rounded' | 'rounded';
1120
+ cornersSquareColor: string;
1121
+ cornersDotType: 'square' | 'dots' | 'rounded';
1122
+ cornersDotColor: string;
1123
+ backgroundColor: string;
1124
+ };
1125
+ logo?: {
1126
+ url?: string;
1127
+ size: number;
1128
+ margin: number;
1129
+ hideBackgroundDots: boolean;
1130
+ };
1131
+ }
1132
+ interface BarcodeElement extends BaseElement {
1133
+ type: 'barcode';
1134
+ field: string;
1135
+ format: 'EAN13' | 'EAN8' | 'EAN5' | 'EAN2' | 'UPC' | 'CODE128' | 'CODE128A' | 'CODE128C' | 'CODE39' | 'ITF' | 'MSI' | 'pharmacode';
1136
+ barWidth: 1 | 2 | 3 | 4;
1137
+ barHeight: 100;
1138
+ margin: 10;
1139
+ displayValue: boolean;
1140
+ textStyle?: {
1141
+ position?: 'bottom';
1142
+ align?: 'center';
1143
+ fontFamily?: string;
1144
+ fontSize?: number;
1145
+ };
1146
+ lineColor: string;
1147
+ backgroundColor: string;
1148
+ }
1149
+ interface TableElement extends BaseElement {
1150
+ type: 'productTable' | 'variantsTable';
1151
+ tableStyle: {
1152
+ verticalPadding: string;
1153
+ horizontalPadding: string;
1154
+ borderCollapse?: string;
1155
+ };
1156
+ columns: Array<{
1157
+ width: string;
1158
+ maxWidth?: string;
1159
+ }>;
1160
+ rows: Array<{
1161
+ isHeader?: boolean;
1162
+ minHeight?: string;
1163
+ cells: TableCell[];
1164
+ }>;
1165
+ }
1166
+ interface TableCell {
1167
+ content: string;
1168
+ colSpan?: number;
1169
+ rowSpan?: number;
1170
+ parentColIndex?: number;
1171
+ parentRowIndex?: number;
1172
+ styles?: {
1173
+ fontFamily?: string;
1174
+ fontSize?: string;
1175
+ fontWeight?: string;
1176
+ fontStyle?: string;
1177
+ textDecoration?: string;
1178
+ color?: string;
1179
+ backgroundColor?: string;
1180
+ textAlign?: string;
1181
+ alignItems?: string;
1182
+ justifyContent?: string;
1183
+ borders?: {
1184
+ top?: BorderSide;
1185
+ right?: BorderSide;
1186
+ bottom?: BorderSide;
1187
+ left?: BorderSide;
1188
+ };
1189
+ padding?: {
1190
+ top?: string;
1191
+ right?: string;
1192
+ bottom?: string;
1193
+ left?: string;
1194
+ };
1195
+ };
1196
+ }
1197
+ interface BorderSide {
1198
+ width: string;
1199
+ color: string;
1200
+ style: 'dash' | 'solid' | 'dotted' | 'none';
1201
+ }
1202
+ interface RectElement extends BaseElement {
1203
+ type: 'rect';
1204
+ rx?: number;
1205
+ ry?: number;
1206
+ fill: string;
1207
+ stroke?: StrokeStyle;
1208
+ }
1209
+ interface EllipseElement extends BaseElement {
1210
+ type: 'ellipse' | 'circle';
1211
+ cx: number;
1212
+ cy: number;
1213
+ rx: number;
1214
+ ry: number;
1215
+ fill: string;
1216
+ stroke?: StrokeStyle;
1217
+ }
1218
+ interface LineElement extends BaseElement {
1219
+ type: 'line';
1220
+ x1: number;
1221
+ y1: number;
1222
+ x2: number;
1223
+ y2: number;
1224
+ stroke: StrokeStyle;
1225
+ }
1226
+ interface PathElement extends BaseElement {
1227
+ type: 'path' | 'polyline';
1228
+ d: string;
1229
+ fill?: string;
1230
+ stroke?: StrokeStyle;
1231
+ originalBBox?: {
1232
+ x: number;
1233
+ y: number;
1234
+ width: number;
1235
+ height: number;
1236
+ };
1237
+ }
1238
+ interface TemplateElement extends BaseElement {
1239
+ type: 'template' | 'callout';
1240
+ templateGuid?: string;
1241
+ blockGuid?: string;
1242
+ skuGuid?: string;
1243
+ skuRef?: string;
1244
+ productSheetGuid?: string;
1245
+ isPlaceholder: boolean;
1246
+ children?: DesignerElement[];
1247
+ }
1248
+ interface GroupElement extends BaseElement {
1249
+ type: 'group';
1250
+ children: DesignerElement[];
1251
+ }
1252
+ type DesignerElement = TextElement | ImageElement | QrCodeElement | BarcodeElement | TableElement | RectElement | EllipseElement | LineElement | PathElement | TemplateElement | GroupElement;
1253
+
1254
+ declare class SvgJsonService {
1255
+ private canvasService;
1256
+ private openService;
1257
+ private docService;
1258
+ private appParamsService;
1259
+ private imageElementService;
1260
+ private qrCodeElementService;
1261
+ private barcodeElementService;
1262
+ private readonly SVG_NS;
1263
+ private readonly XLINK_NS;
1264
+ private readonly XHTML_NS;
1265
+ /**
1266
+ * Convertit une chaîne SVG ou un élément SVGSVGElement en objet JSON structuré
1267
+ */
1268
+ svgToJson(svgInput: string | SVGSVGElement): SolidDesignerDocument;
1269
+ /**
1270
+ * Extrait les propriétés globales du document depuis la balise <svg>
1271
+ */
1272
+ private extractDocumentSettings;
1273
+ /**
1274
+ * Extrait les définitions SVG (<defs>)
1275
+ */
1276
+ private extractDefs;
1277
+ /**
1278
+ * Parse récursivement un élément SVG en DesignerElement
1279
+ */
1280
+ parseElement(el: SVGElement): DesignerElement | null;
1281
+ /**
1282
+ * Extrait les propriétés communes de BaseElement
1283
+ */
1284
+ private extractBaseElementProps;
1285
+ private normalizeElementType;
1286
+ private parseTextElement;
1287
+ private parseTextLinesFromElement;
1288
+ private parseImageElement;
1289
+ private parseQrCodeElement;
1290
+ private parseBarcodeElement;
1291
+ private parseTableElement;
1292
+ private parseRectElement;
1293
+ private parseEllipseElement;
1294
+ private parseLineElement;
1295
+ private parsePathElement;
1296
+ private parseTemplateElement;
1297
+ private parseGroupElement;
1298
+ private extractStroke;
1299
+ private shouldIgnoreElement;
1300
+ /**
1301
+ * Convertit un document JSON SolidDesigner en élément DOM SVGSVGElement
1302
+ */
1303
+ jsonToSvg(doc: SolidDesignerDocument): SVGSVGElement;
1304
+ /**
1305
+ * Convertit un document JSON en chaîne SVG XML complète
1306
+ */
1307
+ jsonToSvgString(doc: SolidDesignerDocument): string;
1308
+ /**
1309
+ * Reconstruit la balise <defs>
1310
+ */
1311
+ private buildDefs;
1312
+ /**
1313
+ * Construit un élément SVG DOM à partir de sa définition JSON
1314
+ */
1315
+ buildElement(elData: DesignerElement, sideOverride?: 'left' | 'right' | 'both'): SVGElement | null;
1316
+ /**
1317
+ * Applique les attributs et styles communs (id, name, side, visibility, locks, hide-if)
1318
+ */
1319
+ private applyBaseElementProps;
1320
+ private buildTextElement;
1321
+ private buildTextHtmlFromLines;
1322
+ private buildImageElement;
1323
+ private buildQrCodeElement;
1324
+ private buildBarcodeElement;
1325
+ private buildTableElement;
1326
+ private buildRectElement;
1327
+ private buildEllipseElement;
1328
+ private buildLineElement;
1329
+ private buildPathElement;
1330
+ private buildTemplateElement;
1331
+ private buildGroupElement;
1332
+ private applyStroke;
1333
+ /**
1334
+ * Exporte le contenu actuel du canvas en document JSON
1335
+ */
1336
+ exportCurrentCanvasToJson(): SolidDesignerDocument | null;
1337
+ /**
1338
+ * Charge un document JSON directement dans le canvas du designer
1339
+ */
1340
+ loadJsonToCanvas(doc: SolidDesignerDocument): void;
1341
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SvgJsonService, never>;
1342
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<SvgJsonService>;
1343
+ }
1344
+
1345
+ declare class TopBarComponent implements OnInit, OnDestroy {
1346
+ exit: EventEmitter<void>;
1347
+ private appParams;
1348
+ private eventsService;
1349
+ private saveService;
1350
+ private docService;
1351
+ private canvasService;
1352
+ configService: ConfigService;
1353
+ themeService: ThemeService;
1354
+ private modalService;
1355
+ private selectionStore;
1356
+ private elementRef;
1357
+ private assetsService;
1358
+ private openService;
1359
+ private unitService;
1360
+ private notificationService;
1361
+ private loadingService;
1362
+ private translate;
1363
+ isFileMenuOpen: _angular_core.WritableSignal<boolean>;
1364
+ isSettingsMenuOpen: _angular_core.WritableSignal<boolean>;
1365
+ isMoreMenuOpen: _angular_core.WritableSignal<boolean>;
1366
+ isShareMenuOpen: _angular_core.WritableSignal<boolean>;
1367
+ isDownloadMenuOpen: _angular_core.WritableSignal<boolean>;
1368
+ showGenerationOptions: _angular_core.WritableSignal<boolean>;
1369
+ selectedColorProfile: _angular_core.WritableSignal<string>;
1370
+ highDefinition: _angular_core.WritableSignal<boolean>;
1371
+ compressPdf: _angular_core.WritableSignal<boolean>;
1372
+ bleedMargin: _angular_core.WritableSignal<boolean>;
1373
+ cuttingLines: _angular_core.WritableSignal<boolean>;
1374
+ applyBleedToAllPages: _angular_core.WritableSignal<boolean>;
1375
+ customBleedValue: _angular_core.WritableSignal<number>;
1376
+ customBleedUnit: _angular_core.WritableSignal<string>;
1377
+ isGeneratingSd: _angular_core.WritableSignal<boolean>;
1378
+ isGeneratingHd: _angular_core.WritableSignal<boolean>;
1379
+ pdfUrlSd: _angular_core.WritableSignal<string | null>;
1380
+ pdfUrlHd: _angular_core.WritableSignal<string | null>;
1381
+ private notificationsSubscription;
1382
+ isSaving: _angular_core.WritableSignal<boolean>;
1383
+ isAutosaveEnabled: _angular_core.WritableSignal<boolean>;
1384
+ isFullscreen: _angular_core.WritableSignal<boolean>;
1385
+ readonly spIconSettings: _solidpepper_solidpepper_icons.SpIcon;
1386
+ readonly spIconHelpCircle: _solidpepper_solidpepper_icons.SpIcon;
1387
+ readonly spIconSun: _solidpepper_solidpepper_icons.SpIcon;
1388
+ readonly spIconMoon: _solidpepper_solidpepper_icons.SpIcon;
1389
+ readonly spIconSave: _solidpepper_solidpepper_icons.SpIcon;
1390
+ readonly spIconResize: _solidpepper_solidpepper_icons.SpIcon;
1391
+ readonly spIconArrowLeft: _solidpepper_solidpepper_icons.SpIcon;
1392
+ readonly spIconChevronDown: _solidpepper_solidpepper_icons.SpIcon;
1393
+ readonly spIconMessageSquare: _solidpepper_solidpepper_icons.SpIcon;
1394
+ readonly spIconMoreVertical: _solidpepper_solidpepper_icons.SpIcon;
1395
+ readonly spIconShare: _solidpepper_solidpepper_icons.SpIcon;
1396
+ readonly spIconMaximize: _solidpepper_solidpepper_icons.SpIcon;
1397
+ readonly spIconMinimize: _solidpepper_solidpepper_icons.SpIcon;
1398
+ readonly spIconLayers: _solidpepper_solidpepper_icons.SpIcon;
1399
+ readonly spIconType: _solidpepper_solidpepper_icons.SpIcon;
1400
+ readonly spIconRuler: _solidpepper_solidpepper_icons.SpIcon;
1401
+ readonly spIconLayout: _solidpepper_solidpepper_icons.SpIcon;
1402
+ readonly spIconEye: _solidpepper_solidpepper_icons.SpIcon;
1403
+ readonly spIconCompass: _solidpepper_solidpepper_icons.SpIcon;
1404
+ readonly spIconRefresh: _solidpepper_solidpepper_icons.SpIcon;
1405
+ readonly spIconZap: _solidpepper_solidpepper_icons.SpIcon;
1406
+ readonly spIconDownload: _solidpepper_solidpepper_icons.SpIcon;
1407
+ readonly spIconPdf: _solidpepper_solidpepper_icons.SpIcon;
1408
+ readonly spIconBookOpen: _solidpepper_solidpepper_icons.SpIcon;
1409
+ readonly spIconSliders: _solidpepper_solidpepper_icons.SpIcon;
1410
+ readonly spIconCheck: _solidpepper_solidpepper_icons.SpIcon;
1411
+ readonly spIconClose: _solidpepper_solidpepper_icons.SpIcon;
1412
+ readonly spIconSparkles: _solidpepper_solidpepper_icons.SpIcon;
1413
+ readonly isDevMode: boolean;
1414
+ get colorProfileOptions(): {
1415
+ label: any;
1416
+ value: string;
1417
+ }[];
1418
+ get bleedUnitOptions(): {
1419
+ label: any;
1420
+ value: string;
1421
+ }[];
1422
+ isDirty: _angular_core.Signal<boolean>;
1423
+ editorConfig: _angular_core.Signal<EditorConfig>;
1424
+ isDocument: _angular_core.Signal<boolean>;
1425
+ isCommentsActive: _angular_core.Signal<boolean>;
1426
+ isLayersOpen: _angular_core.Signal<boolean>;
1427
+ isResizeOpen: _angular_core.Signal<boolean>;
1428
+ currentUnit: _angular_core.Signal<"px" | "mm" | "cm" | "in">;
1429
+ currentPageNumber: _angular_core.Signal<number>;
1430
+ totalPages: _angular_core.Signal<number>;
1431
+ pageIndicator: _angular_core.Signal<string>;
1432
+ zoomLevelValue: _angular_core.Signal<number>;
1433
+ get zoomOptions(): ({
1434
+ label: any;
1435
+ value: string;
1436
+ action: boolean;
1437
+ } | {
1438
+ label: string;
1439
+ value: number;
1440
+ action?: undefined;
1441
+ })[];
1442
+ formatZoom: (val: any) => string;
1443
+ setZoom(val: any): void;
1444
+ fitToScreen(): void;
1445
+ toggleShareMenu(event?: MouseEvent): void;
1446
+ checkPdfStatus(): Observable<any>;
1447
+ onBleedChange(checked: boolean): void;
1448
+ onBleedValueInput(event: any): void;
1449
+ getConvertedBleedPx(): number;
1450
+ generatePdf(): void;
1451
+ previewPdf(): void;
1452
+ goToPage(index: number): void;
1453
+ downloadPdf(quality: 'sd' | 'hd'): Promise<void>;
1454
+ private addTimestamp;
1455
+ toggleDownloadMenu(): void;
1456
+ generateSpecific(quality: 'sd' | 'hd'): void;
1457
+ openIframeModal(moduleType?: string): void;
1458
+ private initNotificationSubscription;
1459
+ setUnit(unit: string): void;
1460
+ toggleCommentsMode(): void;
1461
+ toggleLayersWindow(): void;
1462
+ documentName: _angular_core.Signal<any>;
1463
+ ngOnInit(): void;
1464
+ ngOnDestroy(): void;
1465
+ onExit(): void;
1466
+ onSave(): Promise<void>;
1467
+ triggerSave(): void;
1468
+ toggleTheme(): void;
1469
+ toggleFileMenu(event: MouseEvent): void;
1470
+ toggleSettingsMenu(event: MouseEvent): void;
1471
+ toggleMoreMenu(event: MouseEvent): void;
1472
+ openShortcuts(): void;
1473
+ manageFonts(): void;
1474
+ editTemplateDimensions(): void;
1475
+ toggleAutosave(): void;
1476
+ toggleFullscreen(): void;
1477
+ private fallbackFullscreen;
1478
+ private exitFallbackFullscreen;
1479
+ onFullscreenChange(): void;
1480
+ openSvgJsonLiveModal(): void;
1481
+ openComponentsShowcaseModal(): void;
1482
+ private closeAllMenus;
1483
+ onDocumentClick(event: MouseEvent): void;
1484
+ onEscape(): void;
1485
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TopBarComponent, never>;
1486
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TopBarComponent, "app-top-bar", never, {}, { "exit": "exit"; }, never, never, true, never>;
810
1487
  }
811
1488
 
812
- export { AppParamsService, AppComponent as SolidDesignerComponent };
813
- export type { AppParams };
1489
+ export { AppParamsService, DocumentType, AppComponent as SolidDesignerComponent, SvgJsonService, TopBarComponent };
1490
+ export type { AppParams, BarcodeElement, BaseElement, BleedMargins, BorderSide, ConditionalHideRule, DesignerElement, DocumentDefs, DocumentMargins, DocumentMetadata, DocumentPage, DocumentSettings, DoublePageSettings, ElementBorder, ElementType, EllipseElement, GroupElement, ImageElement, LineElement, LinearGradientDef, PathElement, PatternDef, QrCodeElement, RadialGradientDef, RectElement, SolidDesignerDocument, StrokeStyle, TableCell, TableElement, TemplateElement, TextElement, TextElementLine, TextElementPart };