@rxap/ngx-user 18.0.3-dev.0 → 18.0.3-dev.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/CHANGELOG.md +8 -0
- package/README.md +14 -1
- package/compodoc/changelog.html +4 -0
- package/compodoc/dependencies.html +5 -7
- package/compodoc/index.html +8 -1
- package/compodoc/injectables/UserProfileDataSource.html +1 -261
- package/compodoc/injectables/UserSettingsDarkModeService.html +17 -212
- package/compodoc/injectables/UserSettingsDataSource.html +1 -296
- package/compodoc/injectables/UserSettingsLanguageService.html +17 -200
- package/compodoc/injectables/UserSettingsService.html +9 -189
- package/compodoc/injectables/UserSettingsThemeService.html +26 -229
- package/compodoc/js/menu-wc.js +0 -6
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +72 -1
- package/compodoc/overview.html +1 -1
- package/compodoc/properties.html +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/DarkModeControllerDisableRemoteMethod.html +13 -13
- package/docs/classes/DarkModeControllerEnableRemoteMethod.html +13 -13
- package/docs/classes/DarkModeControllerGetRemoteMethod.html +13 -13
- package/docs/classes/DarkModeControllerToggleRemoteMethod.html +13 -13
- package/docs/classes/LanguageControllerGetRemoteMethod.html +13 -13
- package/docs/classes/LanguageControllerSetRemoteMethod.html +13 -13
- package/docs/classes/ProfileControllerGetRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerClearPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerDecrementPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerGetPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerGetRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerIncrementPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerPopPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerPushPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerRemoveAtPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerRemovePropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerSetPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerSetRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerShiftPropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerTogglePropertyRemoteMethod.html +13 -13
- package/docs/classes/SettingsControllerUnshiftPropertyRemoteMethod.html +13 -13
- package/docs/classes/ThemeControllerGetRemoteMethod.html +13 -13
- package/docs/classes/ThemeControllerSetDensityRemoteMethod.html +13 -13
- package/docs/classes/ThemeControllerSetPresetRemoteMethod.html +13 -13
- package/docs/classes/ThemeControllerSetRemoteMethod.html +13 -13
- package/docs/classes/ThemeControllerSetTypographyRemoteMethod.html +13 -13
- package/docs/classes/UserProfileDataSource.html +12 -15
- package/docs/classes/UserSettingsDarkModeDataSource.html +13 -13
- package/docs/classes/UserSettingsDarkModeService.html +3 -7
- package/docs/classes/UserSettingsDataSource.html +12 -16
- package/docs/classes/UserSettingsLanguageDataSource.html +13 -13
- package/docs/classes/UserSettingsLanguageService.html +3 -7
- package/docs/classes/UserSettingsService.html +3 -7
- package/docs/classes/UserSettingsThemeDataSource.html +13 -13
- package/docs/classes/UserSettingsThemeService.html +3 -7
- package/docs/documentation.json +4600 -6153
- package/docs/enums/ThemeDensity.html +2 -2
- package/docs/functions/IsThemeDensity.html +1 -1
- package/docs/index.html +11 -2
- package/docs/interfaces/LanguageControllerSetParameter.html +2 -2
- package/docs/interfaces/SetDensityDto.html +2 -2
- package/docs/interfaces/SettingsControllerClearPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerDecrementPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerGetPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerIncrementPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerPopPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerPushPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerRemoveAtPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerRemovePropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerSetPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerShiftPropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerTogglePropertyParameter.html +2 -2
- package/docs/interfaces/SettingsControllerUnshiftPropertyParameter.html +2 -2
- package/docs/interfaces/StringValueDto.html +1 -1
- package/docs/interfaces/ThemeControllerSetDensityRequestBody.html +2 -2
- package/docs/interfaces/ThemeControllerSetPresetRequestBody.html +1 -1
- package/docs/interfaces/ThemeControllerSetTypographyRequestBody.html +1 -1
- package/docs/modules.html +1 -3
- package/docs/types/DarkModeControllerDisableResponse.html +1 -1
- package/docs/types/DarkModeControllerEnableResponse.html +1 -1
- package/docs/types/DarkModeControllerGetResponse.html +1 -1
- package/docs/types/DarkModeControllerToggleResponse.html +1 -1
- package/docs/types/LanguageControllerGetResponse.html +1 -1
- package/docs/types/ProfileControllerGetResponse.html +1 -1
- package/docs/types/SetLanguageHook.html +1 -1
- package/docs/types/SettingsControllerGetPropertyResponse.html +1 -1
- package/docs/types/SettingsControllerGetResponse.html +1 -1
- package/docs/types/SettingsControllerPopPropertyResponse.html +1 -1
- package/docs/types/SettingsControllerSetRequestBody.html +1 -1
- package/docs/types/SettingsControllerShiftPropertyResponse.html +1 -1
- package/docs/types/SettingsControllerUnshiftPropertyResponse.html +1 -1
- package/docs/types/ThemeControllerGetResponse.html +1 -1
- package/docs/types/ThemeControllerSetRequestBody.html +1 -1
- package/docs/types/UserSettings.html +1 -1
- package/esm2022/index.mjs +1 -3
- package/esm2022/lib/user-profile.data-source.mjs +2 -15
- package/esm2022/lib/user-settings-dark-mode.service.mjs +6 -34
- package/esm2022/lib/user-settings-language.service.mjs +5 -20
- package/esm2022/lib/user-settings-theme.service.mjs +6 -43
- package/esm2022/lib/user-settings.data-source.mjs +2 -17
- package/esm2022/lib/user-settings.service.mjs +4 -16
- package/fesm2022/rxap-ngx-user.mjs +20 -171
- package/fesm2022/rxap-ngx-user.mjs.map +1 -1
- package/index.d.ts +0 -2
- package/lib/user-profile.data-source.d.ts +0 -5
- package/lib/user-settings-dark-mode.service.d.ts +1 -4
- package/lib/user-settings-language.service.d.ts +1 -4
- package/lib/user-settings-theme.service.d.ts +1 -4
- package/lib/user-settings.data-source.d.ts +0 -7
- package/lib/user-settings.service.d.ts +1 -4
- package/package.json +23 -23
- package/theme.css +1 -1
- package/docs/classes/BaseUserSettingsService.html +0 -5
- package/docs/classes/UserSettingsOfflineService.html +0 -6
- package/docs/hierarchy.html +0 -1
- package/esm2022/lib/base-user-settings.service.mjs +0 -19
- package/esm2022/lib/user-settings-offline.service.mjs +0 -31
- package/lib/base-user-settings.service.d.ts +0 -9
- package/lib/user-settings-offline.service.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [18.0.3-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/ngx-user@18.0.3-dev.1...@rxap/ngx-user@18.0.3-dev.2) (2024-06-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/ngx-user
|
|
9
|
+
|
|
10
|
+
## [18.0.3-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/ngx-user@18.0.3-dev.0...@rxap/ngx-user@18.0.3-dev.1) (2024-06-21)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @rxap/ngx-user
|
|
13
|
+
|
|
6
14
|
## [18.0.3-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/ngx-user@18.0.2...@rxap/ngx-user@18.0.3-dev.0) (2024-06-20)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @rxap/ngx-user
|
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|

|
|
9
9
|
|
|
10
10
|
- [Installation](#installation)
|
|
11
|
+
- [Generators](#generators)
|
|
11
12
|
|
|
12
13
|
# Installation
|
|
13
14
|
|
|
@@ -17,5 +18,17 @@ yarn add @rxap/ngx-user
|
|
|
17
18
|
```
|
|
18
19
|
**Install peer dependencies:**
|
|
19
20
|
```bash
|
|
20
|
-
yarn add @angular/core@^18.0.1 @rxap/
|
|
21
|
+
yarn add @angular/core@^18.0.1 @rxap/data-source@^18.1.1-dev.2 @rxap/ngx-pub-sub@^18.0.3-dev.1 @rxap/open-api@^18.0.3-dev.1 rxjs@^7.8.1
|
|
22
|
+
```
|
|
23
|
+
**Execute the init generator:**
|
|
24
|
+
```bash
|
|
25
|
+
yarn nx g @rxap/ngx-user:init
|
|
26
|
+
```
|
|
27
|
+
# Generators
|
|
28
|
+
|
|
29
|
+
## init
|
|
30
|
+
> Initialize the package in the workspace
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
yarn nx g @rxap/ngx-user:init
|
|
21
34
|
```
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,10 @@
|
|
|
85
85
|
<h1>Change Log</h1>
|
|
86
86
|
<p>All notable changes to this project will be documented in this file.
|
|
87
87
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
88
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-user@18.0.3-dev.1...@rxap/ngx-user@18.0.3-dev.2">18.0.3-dev.2</a> (2024-06-25)</h2>
|
|
89
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-user</p>
|
|
90
|
+
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-user@18.0.3-dev.0...@rxap/ngx-user@18.0.3-dev.1">18.0.3-dev.1</a> (2024-06-21)</h2>
|
|
91
|
+
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-user</p>
|
|
88
92
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-user@18.0.2...@rxap/ngx-user@18.0.3-dev.0">18.0.3-dev.0</a> (2024-06-20)</h2>
|
|
89
93
|
<p><strong>Note:</strong> Version bump only for package @rxap/ngx-user</p>
|
|
90
94
|
<h2><a href="https://gitlab.com/rxap/packages/compare/@rxap/ngx-user@18.0.2-dev.2...@rxap/ngx-user@18.0.2">18.0.2</a> (2024-06-18)</h2>
|
|
@@ -100,6 +100,8 @@
|
|
|
100
100
|
<li class="breadcrumb-item">Dependencies</li>
|
|
101
101
|
</ol>
|
|
102
102
|
<ul class="dependencies-list">
|
|
103
|
+
<li>
|
|
104
|
+
<b>@nx/devkit</b> : 19.3.0</li>
|
|
103
105
|
<li>
|
|
104
106
|
<b>tslib</b> : 2.6.2</li>
|
|
105
107
|
</ul>
|
|
@@ -113,15 +115,11 @@
|
|
|
113
115
|
<li>
|
|
114
116
|
<b>@angular/core</b> : ^18.0.1</li>
|
|
115
117
|
<li>
|
|
116
|
-
<b>@rxap/
|
|
117
|
-
<li>
|
|
118
|
-
<b>@rxap/data-source</b> : ^18.1.0</li>
|
|
119
|
-
<li>
|
|
120
|
-
<b>@rxap/ngx-pub-sub</b> : ^18.0.2</li>
|
|
118
|
+
<b>@rxap/data-source</b> : ^18.1.1-dev.2</li>
|
|
121
119
|
<li>
|
|
122
|
-
<b>@rxap/
|
|
120
|
+
<b>@rxap/ngx-pub-sub</b> : ^18.0.3-dev.1</li>
|
|
123
121
|
<li>
|
|
124
|
-
<b>@rxap/
|
|
122
|
+
<b>@rxap/open-api</b> : ^18.0.3-dev.1</li>
|
|
125
123
|
<li>
|
|
126
124
|
<b>rxjs</b> : ^7.8.1</li>
|
|
127
125
|
</ul>
|
package/compodoc/index.html
CHANGED
|
@@ -91,11 +91,18 @@
|
|
|
91
91
|
<img src="https://img.shields.io/npm/l/@rxap/ngx-user" alt="NPM" class="img-responsive"></p>
|
|
92
92
|
<ul>
|
|
93
93
|
<li><a href="#installation">Installation</a></li>
|
|
94
|
+
<li><a href="#generators">Generators</a></li>
|
|
94
95
|
</ul>
|
|
95
96
|
<h1>Installation</h1>
|
|
96
97
|
<p><strong>Add the package to your workspace:</strong></p>
|
|
97
98
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @rxap/ngx-user</code></pre></div><p><strong>Install peer dependencies:</strong></p>
|
|
98
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @angular/core@^18.0.1 @rxap/
|
|
99
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @angular/core@^18.0.1 @rxap/data-source@^18.1.1-dev.2 @rxap/ngx-pub-sub@^18.0.3-dev.1 @rxap/open-api@^18.0.3-dev.1 rxjs@^7.8.1 </code></pre></div><p><strong>Execute the init generator:</strong></p>
|
|
100
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn nx g @rxap/ngx-user:init</code></pre></div><h1>Generators</h1>
|
|
101
|
+
<h2>init</h2>
|
|
102
|
+
<blockquote>
|
|
103
|
+
<p>Initialize the package in the workspace</p>
|
|
104
|
+
</blockquote>
|
|
105
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn nx g @rxap/ngx-user:init</code></pre></div>
|
|
99
106
|
|
|
100
107
|
|
|
101
108
|
|
|
@@ -128,60 +128,6 @@
|
|
|
128
128
|
</p>
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
<section data-compodoc="block-index">
|
|
132
|
-
<h3 id="index">Index</h3>
|
|
133
|
-
<table class="table table-sm table-bordered index-table">
|
|
134
|
-
<tbody>
|
|
135
|
-
<tr>
|
|
136
|
-
<td class="col-md-4">
|
|
137
|
-
<h6><b>Properties</b></h6>
|
|
138
|
-
</td>
|
|
139
|
-
</tr>
|
|
140
|
-
<tr>
|
|
141
|
-
<td class="col-md-4">
|
|
142
|
-
<ul class="index-list">
|
|
143
|
-
<li>
|
|
144
|
-
<span class="modifier">Protected</span>
|
|
145
|
-
<span class="modifier">Readonly</span>
|
|
146
|
-
<a href="#auth" >auth</a>
|
|
147
|
-
</li>
|
|
148
|
-
<li>
|
|
149
|
-
<span class="modifier">Protected</span>
|
|
150
|
-
<a href="#waitForAuthenticationTimeout" >waitForAuthenticationTimeout</a>
|
|
151
|
-
</li>
|
|
152
|
-
</ul>
|
|
153
|
-
</td>
|
|
154
|
-
</tr>
|
|
155
|
-
|
|
156
|
-
<tr>
|
|
157
|
-
<td class="col-md-4">
|
|
158
|
-
<h6><b>Methods</b></h6>
|
|
159
|
-
</td>
|
|
160
|
-
</tr>
|
|
161
|
-
<tr>
|
|
162
|
-
<td class="col-md-4">
|
|
163
|
-
<ul class="index-list">
|
|
164
|
-
<li>
|
|
165
|
-
<span class="modifier">Protected</span>
|
|
166
|
-
<span class="modifier"></span>
|
|
167
|
-
<span class="modifier">Async</span>
|
|
168
|
-
<a href="#execute" >execute</a>
|
|
169
|
-
</li>
|
|
170
|
-
<li>
|
|
171
|
-
<span class="modifier">Protected</span>
|
|
172
|
-
<a href="#waitUntilAuthenticated" >waitUntilAuthenticated</a>
|
|
173
|
-
</li>
|
|
174
|
-
</ul>
|
|
175
|
-
</td>
|
|
176
|
-
</tr>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</tbody>
|
|
183
|
-
</table>
|
|
184
|
-
</section>
|
|
185
131
|
|
|
186
132
|
<section data-compodoc="block-constructor">
|
|
187
133
|
<h3 id="constructor">Constructor</h3>
|
|
@@ -194,7 +140,7 @@
|
|
|
194
140
|
</tr>
|
|
195
141
|
<tr>
|
|
196
142
|
<td class="col-md-4">
|
|
197
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
143
|
+
<div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/lib/user-profile.data-source.ts:14</a></div>
|
|
198
144
|
</td>
|
|
199
145
|
</tr>
|
|
200
146
|
|
|
@@ -232,208 +178,20 @@
|
|
|
232
178
|
</table>
|
|
233
179
|
</section>
|
|
234
180
|
|
|
235
|
-
<section data-compodoc="block-methods">
|
|
236
|
-
|
|
237
|
-
<h3 id="methods">
|
|
238
|
-
Methods
|
|
239
|
-
</h3>
|
|
240
|
-
<table class="table table-sm table-bordered">
|
|
241
|
-
<tbody>
|
|
242
|
-
<tr>
|
|
243
|
-
<td class="col-md-4">
|
|
244
|
-
<a name="execute"></a>
|
|
245
|
-
<span class="name">
|
|
246
|
-
<span class="modifier">Protected</span>
|
|
247
|
-
<span class="modifier"></span>
|
|
248
|
-
<span class="modifier">Async</span>
|
|
249
|
-
<span ><b>execute</b></span>
|
|
250
|
-
<a href="#execute"><span class="icon ion-ios-link"></span></a>
|
|
251
|
-
</span>
|
|
252
|
-
</td>
|
|
253
|
-
</tr>
|
|
254
|
-
<tr>
|
|
255
|
-
<td class="col-md-4">
|
|
256
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
257
|
-
<code>execute(parameters?: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">void</a>)</code>
|
|
258
|
-
</td>
|
|
259
|
-
</tr>
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
<tr>
|
|
263
|
-
<td class="col-md-4">
|
|
264
|
-
<div class="io-line">Defined in <a href="" data-line="42"
|
|
265
|
-
class="link-to-prism">src/lib/user-profile.data-source.ts:42</a></div>
|
|
266
|
-
</td>
|
|
267
|
-
</tr>
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
<tr>
|
|
271
|
-
<td class="col-md-4">
|
|
272
|
-
|
|
273
|
-
<div class="io-description">
|
|
274
|
-
<b>Parameters :</b>
|
|
275
|
-
|
|
276
|
-
<table class="params">
|
|
277
|
-
<thead>
|
|
278
|
-
<tr>
|
|
279
|
-
<td>Name</td>
|
|
280
|
-
<td>Type</td>
|
|
281
|
-
<td>Optional</td>
|
|
282
|
-
</tr>
|
|
283
|
-
</thead>
|
|
284
|
-
<tbody>
|
|
285
|
-
<tr>
|
|
286
|
-
<td>parameters</td>
|
|
287
|
-
<td>
|
|
288
|
-
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
289
|
-
</td>
|
|
290
|
-
|
|
291
|
-
<td>
|
|
292
|
-
Yes
|
|
293
|
-
</td>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
</tr>
|
|
297
|
-
</tbody>
|
|
298
|
-
</table>
|
|
299
|
-
</div>
|
|
300
|
-
<div class="io-description">
|
|
301
|
-
<b>Returns : </b> <code>unknown</code>
|
|
302
|
-
|
|
303
|
-
</div>
|
|
304
|
-
<div class="io-description">
|
|
305
|
-
|
|
306
|
-
</div>
|
|
307
|
-
</td>
|
|
308
|
-
</tr>
|
|
309
|
-
</tbody>
|
|
310
|
-
</table>
|
|
311
|
-
<table class="table table-sm table-bordered">
|
|
312
|
-
<tbody>
|
|
313
|
-
<tr>
|
|
314
|
-
<td class="col-md-4">
|
|
315
|
-
<a name="waitUntilAuthenticated"></a>
|
|
316
|
-
<span class="name">
|
|
317
|
-
<span class="modifier">Protected</span>
|
|
318
|
-
<span ><b>waitUntilAuthenticated</b></span>
|
|
319
|
-
<a href="#waitUntilAuthenticated"><span class="icon ion-ios-link"></span></a>
|
|
320
|
-
</span>
|
|
321
|
-
</td>
|
|
322
|
-
</tr>
|
|
323
|
-
<tr>
|
|
324
|
-
<td class="col-md-4">
|
|
325
|
-
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
326
|
-
<code>waitUntilAuthenticated()</code>
|
|
327
|
-
</td>
|
|
328
|
-
</tr>
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
<tr>
|
|
332
|
-
<td class="col-md-4">
|
|
333
|
-
<div class="io-line">Defined in <a href="" data-line="35"
|
|
334
|
-
class="link-to-prism">src/lib/user-profile.data-source.ts:35</a></div>
|
|
335
|
-
</td>
|
|
336
|
-
</tr>
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
<tr>
|
|
340
|
-
<td class="col-md-4">
|
|
341
|
-
|
|
342
|
-
<div class="io-description">
|
|
343
|
-
<b>Returns : </b> <code>Promise<boolean></code>
|
|
344
|
-
|
|
345
|
-
</div>
|
|
346
|
-
</td>
|
|
347
|
-
</tr>
|
|
348
|
-
</tbody>
|
|
349
|
-
</table>
|
|
350
|
-
</section>
|
|
351
|
-
<section data-compodoc="block-properties">
|
|
352
|
-
|
|
353
|
-
<h3 id="inputs">
|
|
354
|
-
Properties
|
|
355
|
-
</h3>
|
|
356
|
-
<table class="table table-sm table-bordered">
|
|
357
|
-
<tbody>
|
|
358
|
-
<tr>
|
|
359
|
-
<td class="col-md-4">
|
|
360
|
-
<a name="auth"></a>
|
|
361
|
-
<span class="name">
|
|
362
|
-
<span class="modifier">Protected</span>
|
|
363
|
-
<span class="modifier">Readonly</span>
|
|
364
|
-
<span ><b>auth</b></span>
|
|
365
|
-
<a href="#auth"><span class="icon ion-ios-link"></span></a>
|
|
366
|
-
</span>
|
|
367
|
-
</td>
|
|
368
|
-
</tr>
|
|
369
|
-
<tr>
|
|
370
|
-
<td class="col-md-4">
|
|
371
|
-
<i>Default value : </i><code>inject(RxapAuthenticationService)</code>
|
|
372
|
-
</td>
|
|
373
|
-
</tr>
|
|
374
|
-
<tr>
|
|
375
|
-
<td class="col-md-4">
|
|
376
|
-
<div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/user-profile.data-source.ts:24</a></div>
|
|
377
|
-
</td>
|
|
378
|
-
</tr>
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
</tbody>
|
|
382
|
-
</table>
|
|
383
|
-
<table class="table table-sm table-bordered">
|
|
384
|
-
<tbody>
|
|
385
|
-
<tr>
|
|
386
|
-
<td class="col-md-4">
|
|
387
|
-
<a name="waitForAuthenticationTimeout"></a>
|
|
388
|
-
<span class="name">
|
|
389
|
-
<span class="modifier">Protected</span>
|
|
390
|
-
<span ><b>waitForAuthenticationTimeout</b></span>
|
|
391
|
-
<a href="#waitForAuthenticationTimeout"><span class="icon ion-ios-link"></span></a>
|
|
392
|
-
</span>
|
|
393
|
-
</td>
|
|
394
|
-
</tr>
|
|
395
|
-
<tr>
|
|
396
|
-
<td class="col-md-4">
|
|
397
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
398
|
-
|
|
399
|
-
</td>
|
|
400
|
-
</tr>
|
|
401
|
-
<tr>
|
|
402
|
-
<td class="col-md-4">
|
|
403
|
-
<i>Default value : </i><code>10000</code>
|
|
404
|
-
</td>
|
|
405
|
-
</tr>
|
|
406
|
-
<tr>
|
|
407
|
-
<td class="col-md-4">
|
|
408
|
-
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/user-profile.data-source.ts:26</a></div>
|
|
409
|
-
</td>
|
|
410
|
-
</tr>
|
|
411
181
|
|
|
412
182
|
|
|
413
|
-
</tbody>
|
|
414
|
-
</table>
|
|
415
|
-
</section>
|
|
416
|
-
|
|
417
183
|
</div>
|
|
418
184
|
|
|
419
185
|
|
|
420
186
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
421
187
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
422
|
-
inject,
|
|
423
188
|
Inject,
|
|
424
189
|
Injectable,
|
|
425
190
|
} from '@angular/core';
|
|
426
|
-
import { RxapAuthenticationService } from '@rxap/authentication';
|
|
427
191
|
import {
|
|
428
192
|
MethodDataSource,
|
|
429
193
|
RxapDataSource,
|
|
430
194
|
} from '@rxap/data-source';
|
|
431
|
-
import {
|
|
432
|
-
filter,
|
|
433
|
-
firstValueFrom,
|
|
434
|
-
of,
|
|
435
|
-
timeout,
|
|
436
|
-
} from 'rxjs';
|
|
437
195
|
import { ProfileControllerGetRemoteMethod } from './openapi/remote-methods/profile-controller-get.remote-method';
|
|
438
196
|
import { ProfileControllerGetResponse } from './openapi/responses/profile-controller-get.response';
|
|
439
197
|
|
|
@@ -441,10 +199,6 @@ import { ProfileControllerGetResponse } from './openapi/responses/profile-c
|
|
|
441
199
|
@RxapDataSource('user-profile')
|
|
442
200
|
export class UserProfileDataSource<T = unknown> extends MethodDataSource<ProfileControllerGetResponse<T>> {
|
|
443
201
|
|
|
444
|
-
protected readonly auth = inject(RxapAuthenticationService);
|
|
445
|
-
|
|
446
|
-
protected waitForAuthenticationTimeout = 10000;
|
|
447
|
-
|
|
448
202
|
constructor(
|
|
449
203
|
@Inject(ProfileControllerGetRemoteMethod)
|
|
450
204
|
method: ProfileControllerGetRemoteMethod<T>,
|
|
@@ -452,20 +206,6 @@ export class UserProfileDataSource<T = unknown> extends MethodDataSou
|
|
|
452
206
|
super(method, true);
|
|
453
207
|
}
|
|
454
208
|
|
|
455
|
-
protected waitUntilAuthenticated(): Promise<boolean> {
|
|
456
|
-
return firstValueFrom(this.auth.isAuthenticated$.pipe(
|
|
457
|
-
filter((isAuthenticated): isAuthenticated is boolean => isAuthenticated === true),
|
|
458
|
-
timeout({ each: this.waitForAuthenticationTimeout, with: () => of(false) }),
|
|
459
|
-
));
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
protected override async execute(parameters?: void) {
|
|
463
|
-
if (await this.waitUntilAuthenticated()) {
|
|
464
|
-
return super.execute(parameters);
|
|
465
|
-
}
|
|
466
|
-
return {} as any;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
209
|
}
|
|
470
210
|
</code></pre>
|
|
471
211
|
</div>
|