@rxap/ngx-user 19.0.0-dev.1 → 19.0.0

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 (89) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/compodoc/changelog.html +31 -0
  4. package/compodoc/dependencies.html +7 -5
  5. package/compodoc/fonts/ionicons.svg +698 -698
  6. package/compodoc/graph/dependencies.svg +1 -1
  7. package/compodoc/images/compodoc-vectorise-inverted.svg +16 -15
  8. package/compodoc/images/compodoc-vectorise.svg +16 -15
  9. package/compodoc/index.html +1 -1
  10. package/compodoc/injectables/UserSettingsThemeService.html +126 -85
  11. package/compodoc/js/menu-wc.js +0 -3
  12. package/compodoc/js/menu-wc_es5.js +2 -2
  13. package/compodoc/js/search/search_index.js +2 -2
  14. package/compodoc/miscellaneous/functions.html +6 -45
  15. package/compodoc/properties.html +1 -1
  16. package/docs/classes/DarkModeControllerDisableRemoteMethod.html +13 -13
  17. package/docs/classes/DarkModeControllerEnableRemoteMethod.html +13 -13
  18. package/docs/classes/DarkModeControllerGetRemoteMethod.html +13 -13
  19. package/docs/classes/DarkModeControllerToggleRemoteMethod.html +13 -13
  20. package/docs/classes/LanguageControllerGetRemoteMethod.html +13 -13
  21. package/docs/classes/LanguageControllerSetRemoteMethod.html +13 -13
  22. package/docs/classes/ProfileControllerGetRemoteMethod.html +13 -13
  23. package/docs/classes/SettingsControllerClearPropertyRemoteMethod.html +13 -13
  24. package/docs/classes/SettingsControllerDecrementPropertyRemoteMethod.html +13 -13
  25. package/docs/classes/SettingsControllerGetPropertyRemoteMethod.html +13 -13
  26. package/docs/classes/SettingsControllerGetRemoteMethod.html +13 -13
  27. package/docs/classes/SettingsControllerIncrementPropertyRemoteMethod.html +13 -13
  28. package/docs/classes/SettingsControllerPopPropertyRemoteMethod.html +13 -13
  29. package/docs/classes/SettingsControllerPushPropertyRemoteMethod.html +13 -13
  30. package/docs/classes/SettingsControllerRemoveAtPropertyRemoteMethod.html +13 -13
  31. package/docs/classes/SettingsControllerRemovePropertyRemoteMethod.html +13 -13
  32. package/docs/classes/SettingsControllerSetPropertyRemoteMethod.html +13 -13
  33. package/docs/classes/SettingsControllerSetRemoteMethod.html +13 -13
  34. package/docs/classes/SettingsControllerShiftPropertyRemoteMethod.html +13 -13
  35. package/docs/classes/SettingsControllerTogglePropertyRemoteMethod.html +13 -13
  36. package/docs/classes/SettingsControllerUnshiftPropertyRemoteMethod.html +13 -13
  37. package/docs/classes/ThemeControllerGetRemoteMethod.html +13 -13
  38. package/docs/classes/ThemeControllerSetDensityRemoteMethod.html +13 -13
  39. package/docs/classes/ThemeControllerSetPresetRemoteMethod.html +13 -13
  40. package/docs/classes/ThemeControllerSetRemoteMethod.html +13 -13
  41. package/docs/classes/ThemeControllerSetTypographyRemoteMethod.html +13 -13
  42. package/docs/classes/UserProfileDataSource.html +11 -11
  43. package/docs/classes/UserSettingsDarkModeDataSource.html +13 -13
  44. package/docs/classes/UserSettingsDarkModeService.html +2 -2
  45. package/docs/classes/UserSettingsDataSource.html +11 -11
  46. package/docs/classes/UserSettingsLanguageDataSource.html +13 -13
  47. package/docs/classes/UserSettingsLanguageService.html +2 -2
  48. package/docs/classes/UserSettingsService.html +2 -2
  49. package/docs/classes/UserSettingsThemeDataSource.html +13 -13
  50. package/docs/classes/UserSettingsThemeService.html +3 -3
  51. package/docs/documentation.json +2962 -2962
  52. package/docs/functions/provideUserTheme.html +1 -1
  53. package/docs/index.html +1 -1
  54. package/docs/interfaces/LanguageControllerSetParameter.html +2 -2
  55. package/docs/interfaces/SetDensityDto.html +2 -2
  56. package/docs/interfaces/SettingsControllerClearPropertyParameter.html +2 -2
  57. package/docs/interfaces/SettingsControllerDecrementPropertyParameter.html +2 -2
  58. package/docs/interfaces/SettingsControllerGetPropertyParameter.html +2 -2
  59. package/docs/interfaces/SettingsControllerIncrementPropertyParameter.html +2 -2
  60. package/docs/interfaces/SettingsControllerPopPropertyParameter.html +2 -2
  61. package/docs/interfaces/SettingsControllerPushPropertyParameter.html +2 -2
  62. package/docs/interfaces/SettingsControllerRemoveAtPropertyParameter.html +2 -2
  63. package/docs/interfaces/SettingsControllerRemovePropertyParameter.html +2 -2
  64. package/docs/interfaces/SettingsControllerSetPropertyParameter.html +2 -2
  65. package/docs/interfaces/SettingsControllerShiftPropertyParameter.html +2 -2
  66. package/docs/interfaces/SettingsControllerTogglePropertyParameter.html +2 -2
  67. package/docs/interfaces/SettingsControllerUnshiftPropertyParameter.html +2 -2
  68. package/docs/interfaces/StringValueDto.html +1 -1
  69. package/docs/interfaces/ThemeControllerSetDensityRequestBody.html +2 -2
  70. package/docs/interfaces/ThemeControllerSetPresetRequestBody.html +1 -1
  71. package/docs/interfaces/ThemeControllerSetTypographyRequestBody.html +1 -1
  72. package/docs/types/DarkModeControllerDisableResponse.html +1 -1
  73. package/docs/types/DarkModeControllerEnableResponse.html +1 -1
  74. package/docs/types/DarkModeControllerGetResponse.html +1 -1
  75. package/docs/types/DarkModeControllerToggleResponse.html +1 -1
  76. package/docs/types/LanguageControllerGetResponse.html +1 -1
  77. package/docs/types/ProfileControllerGetResponse.html +1 -1
  78. package/docs/types/SetLanguageHook.html +1 -1
  79. package/docs/types/SettingsControllerGetPropertyResponse.html +1 -1
  80. package/docs/types/SettingsControllerGetResponse.html +1 -1
  81. package/docs/types/SettingsControllerPopPropertyResponse.html +1 -1
  82. package/docs/types/SettingsControllerSetRequestBody.html +1 -1
  83. package/docs/types/SettingsControllerShiftPropertyResponse.html +1 -1
  84. package/docs/types/SettingsControllerUnshiftPropertyResponse.html +1 -1
  85. package/docs/types/ThemeControllerGetResponse.html +1 -1
  86. package/docs/types/ThemeControllerSetRequestBody.html +1 -1
  87. package/docs/types/UserSettings.html +1 -1
  88. package/package.json +28 -29
  89. package/theme.css +130 -1
@@ -5,7 +5,7 @@
5
5
  -->
6
6
  <!-- Title: dependencies Pages: 1 -->
7
7
  <svg width="504pt" height="70pt"
8
- viewBox="0.00 0.00 504.00 70.00" xmlns="http://www.w3.org/2000/svg">
8
+ viewBox="0.00 0.00 504.00 70.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
9
  <g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 66)">
10
10
  <title>dependencies</title>
11
11
  <polygon fill="white" stroke="transparent" points="-4,4 -4,-66 500,-66 500,4 -4,4"/>
@@ -2,21 +2,22 @@
2
2
  <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
3
 
4
4
  <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns="http://www.w3.org/2000/svg"
9
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
- width="542.98999"
12
- height="542.98999"
13
- id="svg2"
14
- version="1.1"
15
- inkscape:version="0.48.4 r9939"
16
- sodipodi:docname="compodoc.svg"
17
- inkscape:export-filename="/home/SII/vogloblinsky/Bureau/compodoc.png"
18
- inkscape:export-xdpi="72"
19
- inkscape:export-ydpi="72">
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ xmlns:cc="http://creativecommons.org/ns#"
7
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+ xmlns:svg="http://www.w3.org/2000/svg"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="542.98999"
13
+ height="542.98999"
14
+ id="svg2"
15
+ version="1.1"
16
+ inkscape:version="0.48.4 r9939"
17
+ sodipodi:docname="compodoc.svg"
18
+ inkscape:export-filename="/home/SII/vogloblinsky/Bureau/compodoc.png"
19
+ inkscape:export-xdpi="72"
20
+ inkscape:export-ydpi="72">
20
21
  <defs
21
22
  id="defs4" />
22
23
  <sodipodi:namedview
@@ -2,21 +2,22 @@
2
2
  <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
3
 
4
4
  <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns="http://www.w3.org/2000/svg"
9
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
- width="542.98999"
12
- height="542.98999"
13
- id="svg2"
14
- version="1.1"
15
- inkscape:version="0.48.4 r9939"
16
- sodipodi:docname="compodoc.svg"
17
- inkscape:export-filename="/home/SII/vogloblinsky/Bureau/compodoc.png"
18
- inkscape:export-xdpi="72"
19
- inkscape:export-ydpi="72">
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ xmlns:cc="http://creativecommons.org/ns#"
7
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+ xmlns:svg="http://www.w3.org/2000/svg"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="542.98999"
13
+ height="542.98999"
14
+ id="svg2"
15
+ version="1.1"
16
+ inkscape:version="0.48.4 r9939"
17
+ sodipodi:docname="compodoc.svg"
18
+ inkscape:export-filename="/home/SII/vogloblinsky/Bureau/compodoc.png"
19
+ inkscape:export-xdpi="72"
20
+ inkscape:export-ydpi="72">
20
21
  <defs
21
22
  id="defs4" />
22
23
  <sodipodi:namedview
@@ -96,7 +96,7 @@
96
96
  <h1>Installation</h1>
97
97
  <p><strong>Add the package to your workspace:</strong></p>
98
98
  <b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add &#64;rxap/ngx-user</code></pre></div><p><strong>Install peer dependencies:</strong></p>
99
- <b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add &#64;angular/core&#64;^18.0.1 &#64;rxap/data-source&#64;^18.1.1 &#64;rxap/ngx-pub-sub&#64;^18.0.3 &#64;rxap/open-api&#64;^18.0.3 rxjs&#64;^7.8.1 </code></pre></div><p><strong>Execute the init generator:</strong></p>
99
+ <b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add &#64;angular/core&#64;^19.0.3 &#64;rxap/data-source&#64;^19.0.0 &#64;rxap/ngx-pub-sub&#64;^19.0.0 &#64;rxap/open-api&#64;^19.0.0 &#64;rxap/utilities&#64;^16.4.1 rxjs&#64;^7.8.1 </code></pre></div><p><strong>Execute the init generator:</strong></p>
100
100
  <b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn nx g &#64;rxap/ngx-user:init</code></pre></div><h1>Generators</h1>
101
101
  <h2>init</h2>
102
102
  <blockquote>
@@ -190,6 +190,10 @@
190
190
  <span class="modifier">Async</span>
191
191
  <a href="#get" >get</a>
192
192
  </li>
193
+ <li>
194
+ <span class="modifier">Async</span>
195
+ <a href="#restore" >restore</a>
196
+ </li>
193
197
  <li>
194
198
  <span class="modifier">Async</span>
195
199
  <a href="#set" >set</a>
@@ -207,11 +211,8 @@
207
211
  <a href="#setTypography" >setTypography</a>
208
212
  </li>
209
213
  <li>
210
- <span class="modifier">Async</span>
211
- <a href="#startSync" >startSync</a>
212
- </li>
213
- <li>
214
- <a href="#stopSync" >stopSync</a>
214
+ <span class="modifier">Protected</span>
215
+ <a href="#subscribe" >subscribe</a>
215
216
  </li>
216
217
  </ul>
217
218
  </td>
@@ -253,8 +254,8 @@
253
254
 
254
255
  <tr>
255
256
  <td class="col-md-4">
256
- <div class="io-line">Defined in <a href="" data-line="44"
257
- class="link-to-prism">src/lib/user-settings-theme.service.ts:44</a></div>
257
+ <div class="io-line">Defined in <a href="" data-line="42"
258
+ class="link-to-prism">src/lib/user-settings-theme.service.ts:42</a></div>
258
259
  </td>
259
260
  </tr>
260
261
 
@@ -270,6 +271,45 @@
270
271
  </tr>
271
272
  </tbody>
272
273
  </table>
274
+ <table class="table table-sm table-bordered">
275
+ <tbody>
276
+ <tr>
277
+ <td class="col-md-4">
278
+ <a name="restore"></a>
279
+ <span class="name">
280
+ <span class="modifier">Async</span>
281
+ <span ><b>restore</b></span>
282
+ <a href="#restore"><span class="icon ion-ios-link"></span></a>
283
+ </span>
284
+ </td>
285
+ </tr>
286
+ <tr>
287
+ <td class="col-md-4">
288
+ <span class="modifier-icon icon ion-ios-reset"></span>
289
+ <code>restore()</code>
290
+ </td>
291
+ </tr>
292
+
293
+
294
+ <tr>
295
+ <td class="col-md-4">
296
+ <div class="io-line">Defined in <a href="" data-line="114"
297
+ class="link-to-prism">src/lib/user-settings-theme.service.ts:114</a></div>
298
+ </td>
299
+ </tr>
300
+
301
+
302
+ <tr>
303
+ <td class="col-md-4">
304
+
305
+ <div class="io-description">
306
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
307
+
308
+ </div>
309
+ </td>
310
+ </tr>
311
+ </tbody>
312
+ </table>
273
313
  <table class="table table-sm table-bordered">
274
314
  <tbody>
275
315
  <tr>
@@ -292,8 +332,8 @@
292
332
 
293
333
  <tr>
294
334
  <td class="col-md-4">
295
- <div class="io-line">Defined in <a href="" data-line="48"
296
- class="link-to-prism">src/lib/user-settings-theme.service.ts:48</a></div>
335
+ <div class="io-line">Defined in <a href="" data-line="47"
336
+ class="link-to-prism">src/lib/user-settings-theme.service.ts:47</a></div>
297
337
  </td>
298
338
  </tr>
299
339
 
@@ -354,7 +394,7 @@
354
394
  <tr>
355
395
  <td class="col-md-4">
356
396
  <span class="modifier-icon icon ion-ios-reset"></span>
357
- <code>setDensity(density: <a href="../undefineds/ThemeDensity.html" target="_self">ThemeDensity</a>)</code>
397
+ <code>setDensity(density: ThemeDensity)</code>
358
398
  </td>
359
399
  </tr>
360
400
 
@@ -385,7 +425,7 @@
385
425
  <tr>
386
426
  <td>density</td>
387
427
  <td>
388
- <code><a href="../miscellaneous/enumerations.html#ThemeDensity" target="_self" >ThemeDensity</a></code>
428
+ <code>ThemeDensity</code>
389
429
  </td>
390
430
 
391
431
  <td>
@@ -430,8 +470,8 @@
430
470
 
431
471
  <tr>
432
472
  <td class="col-md-4">
433
- <div class="io-line">Defined in <a href="" data-line="58"
434
- class="link-to-prism">src/lib/user-settings-theme.service.ts:58</a></div>
473
+ <div class="io-line">Defined in <a href="" data-line="59"
474
+ class="link-to-prism">src/lib/user-settings-theme.service.ts:59</a></div>
435
475
  </td>
436
476
  </tr>
437
477
 
@@ -499,8 +539,8 @@
499
539
 
500
540
  <tr>
501
541
  <td class="col-md-4">
502
- <div class="io-line">Defined in <a href="" data-line="63"
503
- class="link-to-prism">src/lib/user-settings-theme.service.ts:63</a></div>
542
+ <div class="io-line">Defined in <a href="" data-line="65"
543
+ class="link-to-prism">src/lib/user-settings-theme.service.ts:65</a></div>
504
544
  </td>
505
545
  </tr>
506
546
 
@@ -550,74 +590,50 @@
550
590
  <tbody>
551
591
  <tr>
552
592
  <td class="col-md-4">
553
- <a name="startSync"></a>
593
+ <a name="subscribe"></a>
554
594
  <span class="name">
555
- <span class="modifier">Async</span>
556
- <span ><b>startSync</b></span>
557
- <a href="#startSync"><span class="icon ion-ios-link"></span></a>
595
+ <span class="modifier">Protected</span>
596
+ <span ><b>subscribe</b></span>
597
+ <a href="#subscribe"><span class="icon ion-ios-link"></span></a>
558
598
  </span>
559
599
  </td>
560
600
  </tr>
561
601
  <tr>
562
602
  <td class="col-md-4">
563
603
  <span class="modifier-icon icon ion-ios-reset"></span>
564
- <code>startSync()</code>
604
+ <code>subscribe()</code>
565
605
  </td>
566
606
  </tr>
567
607
 
568
608
 
569
609
  <tr>
570
610
  <td class="col-md-4">
571
- <div class="io-line">Defined in <a href="" data-line="68"
572
- class="link-to-prism">src/lib/user-settings-theme.service.ts:68</a></div>
573
- </td>
574
- </tr>
575
-
576
-
577
- <tr>
578
- <td class="col-md-4">
579
-
580
- <div class="io-description">
581
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
582
-
583
- </div>
584
- </td>
585
- </tr>
586
- </tbody>
587
- </table>
588
- <table class="table table-sm table-bordered">
589
- <tbody>
590
- <tr>
591
- <td class="col-md-4">
592
- <a name="stopSync"></a>
593
- <span class="name">
594
- <span ><b>stopSync</b></span>
595
- <a href="#stopSync"><span class="icon ion-ios-link"></span></a>
596
- </span>
597
- </td>
598
- </tr>
599
- <tr>
600
- <td class="col-md-4">
601
- <code>stopSync()</code>
602
- </td>
603
- </tr>
604
-
605
-
606
- <tr>
607
- <td class="col-md-4">
608
- <div class="io-line">Defined in <a href="" data-line="99"
609
- class="link-to-prism">src/lib/user-settings-theme.service.ts:99</a></div>
611
+ <div class="io-line">Defined in <a href="" data-line="83"
612
+ class="link-to-prism">src/lib/user-settings-theme.service.ts:83</a></div>
610
613
  </td>
611
614
  </tr>
612
615
 
613
616
 
614
617
  <tr>
615
618
  <td class="col-md-4">
619
+ <div class="io-description"><p>Subscribes to three different topics and performs certain actions based on the received data.
620
+ This method creates a subscription and adds it to the syncSubscription property.
621
+ If syncSubscription is already defined, this method will not create a new subscription.</p>
622
+ <p>The method subscribes to the following topics:</p>
623
+ <ul>
624
+ <li>RXAP_TOPICS.theme.density.changed: It debounces the received event by 1000ms and then performs an action if the event data is of type IsThemeDensity.</li>
625
+ <li>RXAP_TOPICS.theme.preset.changed: It debounces the received event by 1000ms and then performs an action if the event data is of type string.</li>
626
+ <li>RXAP_TOPICS.theme.typography.changed: It debounces the received event by 1000ms and then performs an action if the event data is of type string.</li>
627
+ </ul>
628
+ </div>
616
629
 
617
630
  <div class="io-description">
618
631
  <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
619
632
 
620
633
  </div>
634
+ <div class="io-description">
635
+
636
+ </div>
621
637
  </td>
622
638
  </tr>
623
639
  </tbody>
@@ -648,7 +664,7 @@
648
664
  </tr>
649
665
  <tr>
650
666
  <td class="col-md-4">
651
- <div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/user-settings-theme.service.ts:34</a></div>
667
+ <div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/user-settings-theme.service.ts:32</a></div>
652
668
  </td>
653
669
  </tr>
654
670
 
@@ -675,7 +691,7 @@
675
691
  </tr>
676
692
  <tr>
677
693
  <td class="col-md-4">
678
- <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/user-settings-theme.service.ts:40</a></div>
694
+ <div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/user-settings-theme.service.ts:38</a></div>
679
695
  </td>
680
696
  </tr>
681
697
 
@@ -702,7 +718,7 @@
702
718
  </tr>
703
719
  <tr>
704
720
  <td class="col-md-4">
705
- <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/user-settings-theme.service.ts:36</a></div>
721
+ <div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/user-settings-theme.service.ts:34</a></div>
706
722
  </td>
707
723
  </tr>
708
724
 
@@ -729,7 +745,7 @@
729
745
  </tr>
730
746
  <tr>
731
747
  <td class="col-md-4">
732
- <div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/user-settings-theme.service.ts:37</a></div>
748
+ <div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/user-settings-theme.service.ts:35</a></div>
733
749
  </td>
734
750
  </tr>
735
751
 
@@ -756,7 +772,7 @@
756
772
  </tr>
757
773
  <tr>
758
774
  <td class="col-md-4">
759
- <div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/user-settings-theme.service.ts:35</a></div>
775
+ <div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/user-settings-theme.service.ts:33</a></div>
760
776
  </td>
761
777
  </tr>
762
778
 
@@ -783,7 +799,7 @@
783
799
  </tr>
784
800
  <tr>
785
801
  <td class="col-md-4">
786
- <div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/user-settings-theme.service.ts:38</a></div>
802
+ <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/user-settings-theme.service.ts:36</a></div>
787
803
  </td>
788
804
  </tr>
789
805
 
@@ -811,7 +827,7 @@
811
827
  </tr>
812
828
  <tr>
813
829
  <td class="col-md-4">
814
- <div class="io-line">Defined in <a href="" data-line="42" class="link-to-prism">src/lib/user-settings-theme.service.ts:42</a></div>
830
+ <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/user-settings-theme.service.ts:40</a></div>
815
831
  </td>
816
832
  </tr>
817
833
 
@@ -838,7 +854,7 @@
838
854
  </tr>
839
855
  <tr>
840
856
  <td class="col-md-4">
841
- <div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/user-settings-theme.service.ts:39</a></div>
857
+ <div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/user-settings-theme.service.ts:37</a></div>
842
858
  </td>
843
859
  </tr>
844
860
 
@@ -854,8 +870,17 @@
854
870
  <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
855
871
  inject,
856
872
  Injectable,
873
+ isDevMode,
874
+ OnDestroy,
857
875
  } from &#x27;@angular/core&#x27;;
858
- import { PubSubService } from &#x27;@rxap/ngx-pub-sub&#x27;;
876
+ import {
877
+ PubSubService,
878
+ RXAP_TOPICS,
879
+ } from &#x27;@rxap/ngx-pub-sub&#x27;;
880
+ import {
881
+ IsThemeDensity,
882
+ ThemeDensity,
883
+ } from &#x27;@rxap/utilities&#x27;;
859
884
  import {
860
885
  debounceTime,
861
886
  Subscription,
@@ -870,19 +895,8 @@ import { ThemeControllerSetRequestBody } from &#x27;./openapi/request-bodies/the
870
895
  import { ThemeControllerGetResponse } from &#x27;./openapi/responses/theme-controller-get.response&#x27;;
871
896
  import { UserSettingsThemeDataSource } from &#x27;./user-settings-theme.data-source&#x27;;
872
897
 
873
- export enum ThemeDensity {
874
- Normal &#x3D; 0,
875
- Compact &#x3D; -1,
876
- Dense &#x3D; -2,
877
- VeryDense &#x3D; -3,
878
- }
879
-
880
- export function IsThemeDensity(value: any): value is ThemeDensity {
881
- return Object.values(ThemeDensity).includes(value);
882
- }
883
-
884
898
  @Injectable({ providedIn: &#x27;root&#x27; })
885
- export class UserSettingsThemeService&lt;T &#x3D; unknown&gt; {
899
+ export class UserSettingsThemeService&lt;T &#x3D; unknown&gt; implements OnDestroy {
886
900
 
887
901
  protected readonly getThemeMethod &#x3D; inject(ThemeControllerGetRemoteMethod);
888
902
  protected readonly setThemeMethod &#x3D; inject(ThemeControllerSetRemoteMethod);
@@ -895,35 +909,52 @@ export class UserSettingsThemeService&lt;T &#x3D; unknown&gt; {
895
909
  protected syncSubscription?: Subscription;
896
910
 
897
911
  async get(): Promise&lt;ThemeControllerGetResponse&lt;T&gt;&gt; {
912
+ this.subscribe();
898
913
  return this.getThemeMethod.call();
899
914
  }
900
915
 
901
916
  async set(themeSettings: ThemeControllerSetRequestBody&lt;T&gt;) {
917
+ this.subscribe();
902
918
  await this.setThemeMethod.call({ requestBody: themeSettings });
903
919
  this.userSettingsThemeDataSource.refresh();
904
920
  }
905
921
 
906
922
  async setDensity(density: ThemeDensity) {
923
+ this.subscribe();
907
924
  await this.setDensityMethod.call({ requestBody: { value: density } });
908
925
  this.userSettingsThemeDataSource.refresh();
909
926
  }
910
927
 
911
928
  async setPreset(preset: string) {
929
+ this.subscribe();
912
930
  await this.setPresetMethod.call({ requestBody: { value: preset } });
913
931
  this.userSettingsThemeDataSource.refresh();
914
932
  }
915
933
 
916
934
  async setTypography(typography: string) {
935
+ this.subscribe();
917
936
  await this.setTypographyMethod.call({ requestBody: { value: typography } });
918
937
  this.userSettingsThemeDataSource.refresh();
919
938
  }
920
939
 
921
- async startSync() {
940
+ /**
941
+ * Subscribes to three different topics and performs certain actions based on the received data.
942
+ * This method creates a subscription and adds it to the syncSubscription property.
943
+ * If syncSubscription is already defined, this method will not create a new subscription.
944
+ *
945
+ * The method subscribes to the following topics:
946
+ * - RXAP_TOPICS.theme.density.changed: It debounces the received event by 1000ms and then performs an action if the event data is of type IsThemeDensity.
947
+ * - RXAP_TOPICS.theme.preset.changed: It debounces the received event by 1000ms and then performs an action if the event data is of type string.
948
+ * - RXAP_TOPICS.theme.typography.changed: It debounces the received event by 1000ms and then performs an action if the event data is of type string.
949
+ *
950
+ * @returns {void}
951
+ */
952
+ protected subscribe() {
922
953
  if (this.syncSubscription) {
923
954
  return;
924
955
  }
925
956
  this.syncSubscription &#x3D; new Subscription();
926
- this.syncSubscription.add(this.pubSub.subscribe(&#x27;rxap.theme.density.change&#x27;).pipe(
957
+ this.syncSubscription.add(this.pubSub.subscribe(RXAP_TOPICS.theme.density.changed).pipe(
927
958
  debounceTime(1000),
928
959
  tap(async (event) &#x3D;&gt; {
929
960
  if (IsThemeDensity(event.data)) {
@@ -931,7 +962,7 @@ export class UserSettingsThemeService&lt;T &#x3D; unknown&gt; {
931
962
  }
932
963
  }),
933
964
  ).subscribe());
934
- this.syncSubscription.add(this.pubSub.subscribe(&#x27;rxap.theme.preset.change&#x27;).pipe(
965
+ this.syncSubscription.add(this.pubSub.subscribe(RXAP_TOPICS.theme.preset.changed).pipe(
935
966
  debounceTime(1000),
936
967
  tap(async (event) &#x3D;&gt; {
937
968
  if (typeof event.data &#x3D;&#x3D;&#x3D; &#x27;string&#x27;) {
@@ -939,7 +970,7 @@ export class UserSettingsThemeService&lt;T &#x3D; unknown&gt; {
939
970
  }
940
971
  }),
941
972
  ).subscribe());
942
- this.syncSubscription.add(this.pubSub.subscribe(&#x27;rxap.theme.typography.change&#x27;).pipe(
973
+ this.syncSubscription.add(this.pubSub.subscribe(RXAP_TOPICS.theme.typography.changed).pipe(
943
974
  debounceTime(1000),
944
975
  tap(async (event) &#x3D;&gt; {
945
976
  if (typeof event.data &#x3D;&#x3D;&#x3D; &#x27;string&#x27;) {
@@ -949,7 +980,17 @@ export class UserSettingsThemeService&lt;T &#x3D; unknown&gt; {
949
980
  ).subscribe());
950
981
  }
951
982
 
952
- stopSync() {
983
+ async restore() {
984
+ if (isDevMode()) {
985
+ console.log(&#x27;Restore theme settings from user settings.&#x27;);
986
+ }
987
+ const theme &#x3D; await this.get();
988
+ this.pubSub.publish(RXAP_TOPICS.theme.preset.restore, theme.preset);
989
+ this.pubSub.publish(RXAP_TOPICS.theme.density.restore, theme.density);
990
+ this.pubSub.publish(RXAP_TOPICS.theme.typography.restore, theme.typography);
991
+ }
992
+
993
+ ngOnDestroy() {
953
994
  this.syncSubscription?.unsubscribe();
954
995
  }
955
996
 
@@ -242,9 +242,6 @@ customElements.define('compodoc-menu', class extends HTMLElement {
242
242
  <span class="icon ion-ios-arrow-down"></span>
243
243
  </div>
244
244
  <ul class="links collapse " ${ isNormalMode ? 'id="miscellaneous-links"' : 'id="xs-miscellaneous-links"' }>
245
- <li class="link">
246
- <a href="miscellaneous/enumerations.html" data-type="entity-link">Enums</a>
247
- </li>
248
245
  <li class="link">
249
246
  <a href="miscellaneous/functions.html" data-type="entity-link">Functions</a>
250
247
  </li>