@o3r/dynamic-content 14.0.0-prerelease.9 → 14.0.0-rc.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/fesm2022/o3r-dynamic-content-rules-engine.mjs +7 -7
- package/fesm2022/o3r-dynamic-content.mjs +62 -170
- package/fesm2022/o3r-dynamic-content.mjs.map +1 -1
- package/middlewares/index.js.map +1 -0
- package/middlewares/parameter-extractor-middleware.js.map +1 -0
- package/package.json +6 -5
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-update/v10-0/index.js.map +1 -0
- package/schematics/ng-update/v14-0/index.d.ts +12 -0
- package/schematics/ng-update/v14-0/index.d.ts.map +1 -0
- package/schematics/ng-update/v14-0/index.js +119 -0
- package/schematics/ng-update/v14-0/index.js.map +1 -0
- package/types/o3r-dynamic-content.d.ts +55 -89
- package/types/o3r-dynamic-content.d.ts.map +1 -1
|
@@ -23,21 +23,21 @@ class AssetRulesEngineActionHandler {
|
|
|
23
23
|
}, {});
|
|
24
24
|
this.store.dispatch(setAssetPathOverride({ state: { assetPathOverrides } }));
|
|
25
25
|
}
|
|
26
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
27
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.
|
|
26
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetRulesEngineActionHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
27
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetRulesEngineActionHandler }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetRulesEngineActionHandler, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
31
|
}] });
|
|
32
32
|
|
|
33
33
|
class AssetRulesEngineActionModule {
|
|
34
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
35
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.
|
|
36
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.
|
|
34
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetRulesEngineActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
35
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: AssetRulesEngineActionModule, imports: [AssetPathOverrideStoreModule] }); }
|
|
36
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetRulesEngineActionModule, providers: [
|
|
37
37
|
AssetRulesEngineActionHandler
|
|
38
38
|
], imports: [AssetPathOverrideStoreModule] }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetRulesEngineActionModule, decorators: [{
|
|
41
41
|
type: NgModule,
|
|
42
42
|
args: [{
|
|
43
43
|
imports: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, NgModule, inject, Injectable, ChangeDetectorRef, Pipe
|
|
2
|
+
import { InjectionToken, NgModule, inject, Injectable, makeEnvironmentProviders, ChangeDetectorRef, Pipe } from '@angular/core';
|
|
3
3
|
import * as i1 from '@ngrx/store';
|
|
4
4
|
import { createAction, props, on, createReducer, StoreModule, createFeatureSelector, createSelector, Store, select } from '@ngrx/store';
|
|
5
5
|
import { of, firstValueFrom } from 'rxjs';
|
|
@@ -47,13 +47,13 @@ class AssetPathOverrideStoreModule {
|
|
|
47
47
|
]
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
51
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.
|
|
52
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.
|
|
50
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetPathOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
51
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: AssetPathOverrideStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
52
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetPathOverrideStoreModule, providers: [
|
|
53
53
|
{ provide: ASSET_PATH_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultAssetPathOverrideReducer }
|
|
54
54
|
], imports: [StoreModule.forFeature(ASSET_PATH_OVERRIDE_STORE_NAME, ASSET_PATH_OVERRIDE_REDUCER_TOKEN)] }); }
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AssetPathOverrideStoreModule, decorators: [{
|
|
57
57
|
type: NgModule,
|
|
58
58
|
args: [{
|
|
59
59
|
imports: [
|
|
@@ -147,51 +147,13 @@ class DynamicContentService {
|
|
|
147
147
|
}
|
|
148
148
|
return this.store.pipe(select(selectAssetPathOverride), map((entities) => assetPath && entities && entities[assetPath] ? entities[assetPath] : assetPath), map((finalAssetPath) => this.getMediaPath(finalAssetPath)), distinctUntilChanged(), shareReplay({ bufferSize: 1, refCount: true }));
|
|
149
149
|
}
|
|
150
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
151
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.
|
|
150
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: DynamicContentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
151
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: DynamicContentService }); }
|
|
152
152
|
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: DynamicContentService, decorators: [{
|
|
154
154
|
type: Injectable
|
|
155
155
|
}], ctorParameters: () => [] });
|
|
156
156
|
|
|
157
|
-
class O3rDynamicContentPipe {
|
|
158
|
-
constructor() {
|
|
159
|
-
this.service = inject(DynamicContentService);
|
|
160
|
-
this.cd = inject(ChangeDetectorRef);
|
|
161
|
-
/** Path to the media */
|
|
162
|
-
this.mediaPath = '';
|
|
163
|
-
}
|
|
164
|
-
/** @inheritDoc */
|
|
165
|
-
transform(query) {
|
|
166
|
-
if (query !== this.lastQuery) {
|
|
167
|
-
this.lastQuery = query;
|
|
168
|
-
if (this.onMediaPathChange) {
|
|
169
|
-
this.onMediaPathChange.unsubscribe();
|
|
170
|
-
}
|
|
171
|
-
this.onMediaPathChange = this.service.getMediaPathStream(query).subscribe((mediaPath) => {
|
|
172
|
-
this.mediaPath = mediaPath;
|
|
173
|
-
this.cd.markForCheck();
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
return this.mediaPath;
|
|
177
|
-
}
|
|
178
|
-
/** @inheritDoc */
|
|
179
|
-
ngOnDestroy() {
|
|
180
|
-
if (this.onMediaPathChange) {
|
|
181
|
-
this.onMediaPathChange.unsubscribe();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: O3rDynamicContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
185
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: O3rDynamicContentPipe, isStandalone: true, name: "o3rDynamicContent", pure: false }); }
|
|
186
|
-
}
|
|
187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: O3rDynamicContentPipe, decorators: [{
|
|
188
|
-
type: Pipe,
|
|
189
|
-
args: [{
|
|
190
|
-
name: 'o3rDynamicContent',
|
|
191
|
-
pure: false
|
|
192
|
-
}]
|
|
193
|
-
}] });
|
|
194
|
-
|
|
195
157
|
/**
|
|
196
158
|
* Function to get dynamic content from body dataset
|
|
197
159
|
*/
|
|
@@ -205,70 +167,6 @@ function getDynamicContent() {
|
|
|
205
167
|
function getCmsAssets() {
|
|
206
168
|
return document.body.dataset.cmsassetspath || '';
|
|
207
169
|
}
|
|
208
|
-
/**
|
|
209
|
-
* DynamicContent module
|
|
210
|
-
* @deprecated Will be removed in v14.
|
|
211
|
-
*/
|
|
212
|
-
class DynamicContentModule {
|
|
213
|
-
/**
|
|
214
|
-
* Customize the location where the application will search for the base path of dynamic content
|
|
215
|
-
* @param dynamicPath Configuration for dynamic content path
|
|
216
|
-
* @param dynamicPath.content The string will be used as base path of dynamic content
|
|
217
|
-
* @param dynamicPath.cmsAssets The string will be used for the the base path of cms assets
|
|
218
|
-
* @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content
|
|
219
|
-
* @deprecated Please use {@link provideDynamicContent} instead. Will be removed in v14.
|
|
220
|
-
*/
|
|
221
|
-
static forRoot(dynamicPath) {
|
|
222
|
-
const providers = [];
|
|
223
|
-
if ('content' in dynamicPath) {
|
|
224
|
-
providers.push({
|
|
225
|
-
provide: DYNAMIC_CONTENT_BASE_PATH_TOKEN,
|
|
226
|
-
useValue: dynamicPath.content
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
if ('cmsAssets' in dynamicPath) {
|
|
230
|
-
providers.push({
|
|
231
|
-
provide: CMS_ASSETS_PATH_TOKEN,
|
|
232
|
-
useValue: dynamicPath.cmsAssets
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
return {
|
|
236
|
-
ngModule: DynamicContentModule,
|
|
237
|
-
providers
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: DynamicContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
241
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: DynamicContentModule, imports: [O3rDynamicContentPipe], exports: [O3rDynamicContentPipe] }); }
|
|
242
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: DynamicContentModule, providers: [
|
|
243
|
-
{
|
|
244
|
-
provide: DYNAMIC_CONTENT_BASE_PATH_TOKEN,
|
|
245
|
-
useFactory: getDynamicContent
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
provide: CMS_ASSETS_PATH_TOKEN,
|
|
249
|
-
useFactory: getCmsAssets
|
|
250
|
-
},
|
|
251
|
-
DynamicContentService
|
|
252
|
-
] }); }
|
|
253
|
-
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: DynamicContentModule, decorators: [{
|
|
255
|
-
type: NgModule,
|
|
256
|
-
args: [{
|
|
257
|
-
providers: [
|
|
258
|
-
{
|
|
259
|
-
provide: DYNAMIC_CONTENT_BASE_PATH_TOKEN,
|
|
260
|
-
useFactory: getDynamicContent
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
provide: CMS_ASSETS_PATH_TOKEN,
|
|
264
|
-
useFactory: getCmsAssets
|
|
265
|
-
},
|
|
266
|
-
DynamicContentService
|
|
267
|
-
],
|
|
268
|
-
imports: [O3rDynamicContentPipe],
|
|
269
|
-
exports: [O3rDynamicContentPipe]
|
|
270
|
-
}]
|
|
271
|
-
}] });
|
|
272
170
|
/**
|
|
273
171
|
* Specify a custom base path
|
|
274
172
|
* @param basePath
|
|
@@ -334,6 +232,44 @@ function provideDynamicContent(...features) {
|
|
|
334
232
|
return makeEnvironmentProviders(providers);
|
|
335
233
|
}
|
|
336
234
|
|
|
235
|
+
class O3rDynamicContentPipe {
|
|
236
|
+
constructor() {
|
|
237
|
+
this.service = inject(DynamicContentService);
|
|
238
|
+
this.cd = inject(ChangeDetectorRef);
|
|
239
|
+
/** Path to the media */
|
|
240
|
+
this.mediaPath = '';
|
|
241
|
+
}
|
|
242
|
+
/** @inheritDoc */
|
|
243
|
+
transform(query) {
|
|
244
|
+
if (query !== this.lastQuery) {
|
|
245
|
+
this.lastQuery = query;
|
|
246
|
+
if (this.onMediaPathChange) {
|
|
247
|
+
this.onMediaPathChange.unsubscribe();
|
|
248
|
+
}
|
|
249
|
+
this.onMediaPathChange = this.service.getMediaPathStream(query).subscribe((mediaPath) => {
|
|
250
|
+
this.mediaPath = mediaPath;
|
|
251
|
+
this.cd.markForCheck();
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
return this.mediaPath;
|
|
255
|
+
}
|
|
256
|
+
/** @inheritDoc */
|
|
257
|
+
ngOnDestroy() {
|
|
258
|
+
if (this.onMediaPathChange) {
|
|
259
|
+
this.onMediaPathChange.unsubscribe();
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: O3rDynamicContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
263
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: O3rDynamicContentPipe, isStandalone: true, name: "o3rDynamicContent", pure: false }); }
|
|
264
|
+
}
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: O3rDynamicContentPipe, decorators: [{
|
|
266
|
+
type: Pipe,
|
|
267
|
+
args: [{
|
|
268
|
+
name: 'o3rDynamicContent',
|
|
269
|
+
pure: false
|
|
270
|
+
}]
|
|
271
|
+
}] });
|
|
272
|
+
|
|
337
273
|
/**
|
|
338
274
|
* Strategies available to read / write data in the RequestParameters service.
|
|
339
275
|
* Rehydrate: if the storage already have data, those will be used by the service, ignoring new data. Otherwise set the storage
|
|
@@ -535,10 +471,10 @@ class RequestParametersService {
|
|
|
535
471
|
return acc;
|
|
536
472
|
}, {});
|
|
537
473
|
}
|
|
538
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
539
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.
|
|
474
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: RequestParametersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
475
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: RequestParametersService }); }
|
|
540
476
|
}
|
|
541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: RequestParametersService, decorators: [{
|
|
542
478
|
type: Injectable
|
|
543
479
|
}], ctorParameters: () => [] });
|
|
544
480
|
|
|
@@ -548,51 +484,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
548
484
|
function defaultConfigFactory() {
|
|
549
485
|
return {};
|
|
550
486
|
}
|
|
551
|
-
/**
|
|
552
|
-
* RequestParametersService Module
|
|
553
|
-
* @deprecated Will be removed in v14.
|
|
554
|
-
*/
|
|
555
|
-
class RequestParametersModule {
|
|
556
|
-
/**
|
|
557
|
-
* Provide request parameters config
|
|
558
|
-
* @param config
|
|
559
|
-
* @deprecated Please use {@link provideRequestParameters} instead. Will be removed in v14.
|
|
560
|
-
*/
|
|
561
|
-
static forRoot(config = defaultConfigFactory) {
|
|
562
|
-
return {
|
|
563
|
-
ngModule: RequestParametersModule,
|
|
564
|
-
providers: [
|
|
565
|
-
{
|
|
566
|
-
provide: REQUEST_PARAMETERS_CONFIG_TOKEN,
|
|
567
|
-
useFactory: config
|
|
568
|
-
},
|
|
569
|
-
RequestParametersService
|
|
570
|
-
]
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: RequestParametersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
574
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: RequestParametersModule }); }
|
|
575
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: RequestParametersModule, providers: [
|
|
576
|
-
{
|
|
577
|
-
provide: REQUEST_PARAMETERS_CONFIG_TOKEN,
|
|
578
|
-
useValue: {}
|
|
579
|
-
},
|
|
580
|
-
RequestParametersService
|
|
581
|
-
] }); }
|
|
582
|
-
}
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: RequestParametersModule, decorators: [{
|
|
584
|
-
type: NgModule,
|
|
585
|
-
args: [{
|
|
586
|
-
imports: [],
|
|
587
|
-
providers: [
|
|
588
|
-
{
|
|
589
|
-
provide: REQUEST_PARAMETERS_CONFIG_TOKEN,
|
|
590
|
-
useValue: {}
|
|
591
|
-
},
|
|
592
|
-
RequestParametersService
|
|
593
|
-
]
|
|
594
|
-
}]
|
|
595
|
-
}] });
|
|
596
487
|
/**
|
|
597
488
|
* Provide request parameters config
|
|
598
489
|
* We don't provide directly the value and use a factory because otherwise AOT compilation will resolve to undefined whatever is taken from window
|
|
@@ -608,16 +499,17 @@ function provideRequestParameters(config = defaultConfigFactory) {
|
|
|
608
499
|
]);
|
|
609
500
|
}
|
|
610
501
|
|
|
502
|
+
/**
|
|
503
|
+
* @deprecated Will be removed in v15
|
|
504
|
+
*/
|
|
611
505
|
class StyleLazyLoaderModule {
|
|
612
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
613
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.
|
|
614
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.
|
|
506
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: StyleLazyLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
507
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: StyleLazyLoaderModule }); }
|
|
508
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: StyleLazyLoaderModule }); }
|
|
615
509
|
}
|
|
616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: StyleLazyLoaderModule, decorators: [{
|
|
617
511
|
type: NgModule,
|
|
618
|
-
args: [{
|
|
619
|
-
imports: [DynamicContentModule]
|
|
620
|
-
}]
|
|
512
|
+
args: [{}]
|
|
621
513
|
}] });
|
|
622
514
|
|
|
623
515
|
/**
|
|
@@ -662,13 +554,13 @@ class StyleLazyLoader {
|
|
|
662
554
|
styleUrlConfig.href = dynamicContentPath;
|
|
663
555
|
this.loadStyleFromURL(styleUrlConfig);
|
|
664
556
|
}
|
|
665
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.
|
|
666
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.
|
|
557
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: StyleLazyLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
558
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: StyleLazyLoader, providedIn: 'root' }); }
|
|
667
559
|
}
|
|
668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.
|
|
560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: StyleLazyLoader, decorators: [{
|
|
669
561
|
type: Injectable,
|
|
670
562
|
args: [{
|
|
671
|
-
providedIn:
|
|
563
|
+
providedIn: 'root'
|
|
672
564
|
}]
|
|
673
565
|
}] });
|
|
674
566
|
|
|
@@ -676,5 +568,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
|
|
|
676
568
|
* Generated bundle index. Do not edit.
|
|
677
569
|
*/
|
|
678
570
|
|
|
679
|
-
export { ASSET_PATH_OVERRIDE_REDUCER_TOKEN, ASSET_PATH_OVERRIDE_STORE_NAME, AssetPathOverrideStoreModule, CMS_ASSETS_PATH_TOKEN, DYNAMIC_CONTENT_BASE_PATH_TOKEN,
|
|
571
|
+
export { ASSET_PATH_OVERRIDE_REDUCER_TOKEN, ASSET_PATH_OVERRIDE_STORE_NAME, AssetPathOverrideStoreModule, CMS_ASSETS_PATH_TOKEN, DYNAMIC_CONTENT_BASE_PATH_TOKEN, DynamicContentService, O3rDynamicContentPipe, RequestParametersService, StorageStrategy, StyleLazyLoader, StyleLazyLoaderModule, assetPathOverrideInitialState, assetPathOverrideReducer, assetPathOverrideReducerFeatures, assetPathOverrideStorageDeserializer, assetPathOverrideStorageSync, defaultConfigFactory, defaultRequestParametersConfig, getCmsAssets, getDefaultAssetPathOverrideReducer, getDynamicContent, provideDynamicContent, provideRequestParameters, selectAssetPathOverride, selectAssetPathOverrideState, setAssetPathOverride, withBasePath, withCmsAssetsPath };
|
|
680
572
|
//# sourceMappingURL=o3r-dynamic-content.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-dynamic-content.mjs","sources":["../../src/stores/asset-path-override/asset-path-override.actions.ts","../../src/stores/asset-path-override/asset-path-override.reducer.ts","../../src/stores/asset-path-override/asset-path-override.state.ts","../../src/stores/asset-path-override/asset-path-override-module.ts","../../src/stores/asset-path-override/asset-path-override.selectors.ts","../../src/stores/asset-path-override/asset-path-override.sync.ts","../../src/services/dynamic-content/dynamic-content-token.ts","../../src/services/dynamic-content/dynamic-content-service.ts","../../src/services/dynamic-content/dynamic-content-pipe.ts","../../src/services/dynamic-content/dynamic-content-module.ts","../../src/services/request-parameters/request-parameters-config.ts","../../src/services/request-parameters/request-parameters-token.ts","../../src/services/request-parameters/request-parameters-service.ts","../../src/services/request-parameters/request-parameters-module.ts","../../src/services/styling/style-lazy-loader-module.ts","../../src/services/styling/style-lazy-loader.ts","../../src/o3r-dynamic-content.ts"],"sourcesContent":["import {\n createAction,\n props,\n} from '@ngrx/store';\nimport type {\n SetStateActionPayload,\n} from '@o3r/core';\nimport {\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/** Actions */\nconst ACTION_SET = '[AssetPathOverride] set entities';\n\n/**\n * Clear all overrides and fill the store with the payload\n */\nexport const setAssetPathOverride = createAction(ACTION_SET, props<SetStateActionPayload<AssetPathOverrideState>>());\n","import {\n ActionCreator,\n createReducer,\n on,\n ReducerTypes,\n} from '@ngrx/store';\nimport * as actions from './asset-path-override.actions';\nimport {\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/**\n * AssetPathOverride Store initial value\n */\nexport const assetPathOverrideInitialState: AssetPathOverrideState = { assetPathOverrides: {} };\n\n/**\n * List of basic actions for AssetPathOverride Store\n */\nexport const assetPathOverrideReducerFeatures: ReducerTypes<AssetPathOverrideState, ActionCreator[]>[] = [\n on(actions.setAssetPathOverride, (_state, payload) => ({ ...payload.state }))\n];\n\n/**\n * AssetPathOverride Store reducer\n */\nexport const assetPathOverrideReducer = createReducer(\n assetPathOverrideInitialState,\n ...assetPathOverrideReducerFeatures\n);\n","/**\n * AssetPathOverride store state\n */\nexport interface AssetPathOverrideState {\n /** Mapping of asset path (key) and its override (value)*/\n assetPathOverrides: Record<string, string>;\n}\n\n/**\n * Name of the AssetPathOverride Store\n */\nexport const ASSET_PATH_OVERRIDE_STORE_NAME = 'assetPathOverride';\n\n/**\n * AssetPathOverride Store Interface\n */\nexport interface AssetPathOverrideStore {\n /** AssetPathOverride state */\n [ASSET_PATH_OVERRIDE_STORE_NAME]: AssetPathOverrideState;\n}\n","import {\n InjectionToken,\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport {\n Action,\n ActionReducer,\n StoreModule,\n} from '@ngrx/store';\nimport {\n assetPathOverrideReducer,\n} from './asset-path-override.reducer';\nimport {\n ASSET_PATH_OVERRIDE_STORE_NAME,\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/** Token of the AssetPathOverride reducer */\nexport const ASSET_PATH_OVERRIDE_REDUCER_TOKEN = new InjectionToken<ActionReducer<AssetPathOverrideState, Action>>('Feature AssetPathOverride Reducer');\n\n/** Provide default reducer for AssetPathOverride store */\nexport function getDefaultAssetPathOverrideReducer() {\n return assetPathOverrideReducer;\n}\n\n@NgModule({\n imports: [\n StoreModule.forFeature(ASSET_PATH_OVERRIDE_STORE_NAME, ASSET_PATH_OVERRIDE_REDUCER_TOKEN)\n ],\n providers: [\n { provide: ASSET_PATH_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultAssetPathOverrideReducer }\n ]\n})\nexport class AssetPathOverrideStoreModule {\n public static forRoot<T extends AssetPathOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<AssetPathOverrideStoreModule> {\n return {\n ngModule: AssetPathOverrideStoreModule,\n providers: [\n { provide: ASSET_PATH_OVERRIDE_REDUCER_TOKEN, useFactory: reducerFactory }\n ]\n };\n }\n}\n","import {\n createFeatureSelector,\n createSelector,\n} from '@ngrx/store';\nimport {\n ASSET_PATH_OVERRIDE_STORE_NAME,\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/** Select AssetPathOverride State */\nexport const selectAssetPathOverrideState = createFeatureSelector<AssetPathOverrideState>(ASSET_PATH_OVERRIDE_STORE_NAME);\n\n/** Select all assetPath override map */\nexport const selectAssetPathOverride = createSelector(selectAssetPathOverrideState, (state) => state?.assetPathOverrides || {});\n","import type {\n Serializer,\n} from '@o3r/core';\nimport {\n assetPathOverrideInitialState,\n} from './asset-path-override.reducer';\nimport {\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/**\n * Deserializer\n * @param rawObject\n */\nexport const assetPathOverrideStorageDeserializer = (rawObject: any) => {\n if (!rawObject) {\n return assetPathOverrideInitialState;\n }\n return rawObject;\n};\n\nexport const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState> = {\n deserialize: assetPathOverrideStorageDeserializer\n};\n","import {\n InjectionToken,\n} from '@angular/core';\n\n/**\n * Injection token for the rootpath of dynamic content\n */\nexport const DYNAMIC_CONTENT_BASE_PATH_TOKEN: InjectionToken<string> = new InjectionToken('Dynamic content path injection token');\n\n/**\n * Injection token for the assets path injected by the cms\n * This token will be injected only in editor mode\n */\nexport const CMS_ASSETS_PATH_TOKEN: InjectionToken<string> = new InjectionToken('CMS assets path injection token');\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n select,\n Store,\n} from '@ngrx/store';\nimport {\n of,\n} from 'rxjs';\nimport {\n distinctUntilChanged,\n map,\n shareReplay,\n} from 'rxjs/operators';\nimport {\n AssetPathOverrideStore,\n selectAssetPathOverride,\n} from '../../stores/index';\nimport {\n CMS_ASSETS_PATH_TOKEN,\n DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n} from './dynamic-content-token';\n\nconst MEDIA_FOLDER_NAME = 'assets';\n\n/**\n * Service for getting dynamic content path\n */\n@Injectable()\nexport class DynamicContentService {\n private readonly cmsOnlyAssetsPath = inject(CMS_ASSETS_PATH_TOKEN);\n private readonly store = inject<Store<AssetPathOverrideStore>>(Store, { optional: true });\n\n public readonly basePath: string;\n\n private readonly mediaFolder: string;\n\n constructor() {\n const dynamicContentPath = inject(DYNAMIC_CONTENT_BASE_PATH_TOKEN);\n\n this.basePath = dynamicContentPath.replace(/\\/$/, '');\n this.mediaFolder = MEDIA_FOLDER_NAME;\n }\n\n private normalizePath(assetPath?: string) {\n return assetPath ? assetPath.replace(/^\\//, '') : '';\n }\n\n private getContentPath(assetPath?: string) {\n const normalizedAssetPath = this.normalizePath(assetPath);\n return this.basePath === '' ? assetPath || '' : `${this.basePath}/${normalizedAssetPath}`;\n }\n\n private getMediaPath(assetPath?: string) {\n if (this.cmsOnlyAssetsPath && assetPath) {\n return assetPath.startsWith('/') ? assetPath : `${this.cmsOnlyAssetsPath.replace(/\\/$/, '')}/${assetPath}`;\n }\n return this.getContentPath(this.mediaFolder ? `${this.mediaFolder}/${this.normalizePath(assetPath)}` : assetPath);\n }\n\n /**\n * Gets the full path of a content relative to the root\n * Content path doesn't consider any override, you will always get the same file\n * @param assetPath asset location in the root folder\n * @example\n * ```typescript\n * getMediaPath('assets/imgs/my-image.png') // will give you the basePath + 'assets/imgs/my-image.png'\n * ```\n */\n public getContentPathStream(assetPath?: string) {\n return of(this.getContentPath(assetPath));\n }\n\n /**\n * Gets the stream that provides the full path of a media content\n * A Media content is always stored in the 'assets' media folder, no external content will be accessible through this function\n * If any override is applied to the content, returns the override path instead\n * @param assetPath asset location in the media folder (e.g imgs/my-image.png)\n * @example\n * ```typescript\n * getMediaPathStream('imgs/my-image.png') // will give you the basePath + mediaFolder + 'imgs/my-image.png'\n * ```\n */\n public getMediaPathStream(assetPath?: string) {\n if (!this.store) {\n return of(this.getMediaPath(assetPath));\n }\n return this.store.pipe(\n select(selectAssetPathOverride),\n map((entities) => assetPath && entities && entities[assetPath] ? entities[assetPath] : assetPath),\n map((finalAssetPath) => this.getMediaPath(finalAssetPath)),\n distinctUntilChanged(),\n shareReplay({ bufferSize: 1, refCount: true })\n );\n }\n}\n","import {\n ChangeDetectorRef,\n inject,\n OnDestroy,\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport {\n Subscription,\n} from 'rxjs';\nimport {\n DynamicContentService,\n} from './dynamic-content-service';\n\n@Pipe({\n name: 'o3rDynamicContent',\n pure: false\n})\nexport class O3rDynamicContentPipe implements PipeTransform, OnDestroy {\n protected readonly service = inject(DynamicContentService);\n protected readonly cd = inject(ChangeDetectorRef);\n\n /** Last query value */\n protected lastQuery?: string;\n\n /** Subscription to retrieve media path */\n protected onMediaPathChange?: Subscription;\n\n /** Path to the media */\n protected mediaPath = '';\n\n /** @inheritDoc */\n public transform(query?: string) {\n if (query !== this.lastQuery) {\n this.lastQuery = query;\n if (this.onMediaPathChange) {\n this.onMediaPathChange.unsubscribe();\n }\n this.onMediaPathChange = this.service.getMediaPathStream(query).subscribe((mediaPath) => {\n this.mediaPath = mediaPath;\n this.cd.markForCheck();\n });\n }\n\n return this.mediaPath;\n }\n\n /** @inheritDoc */\n public ngOnDestroy(): void {\n if (this.onMediaPathChange) {\n this.onMediaPathChange.unsubscribe();\n }\n }\n}\n","import {\n type EnvironmentProviders,\n makeEnvironmentProviders,\n ModuleWithProviders,\n NgModule,\n type Provider,\n} from '@angular/core';\nimport {\n O3rDynamicContentPipe,\n} from './dynamic-content-pipe';\nimport {\n DynamicContentService,\n} from './dynamic-content-service';\nimport {\n CMS_ASSETS_PATH_TOKEN,\n DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n} from './dynamic-content-token';\n\n/**\n * Function to get dynamic content from body dataset\n */\nexport function getDynamicContent() {\n return document.body.dataset.dynamiccontentpath || '';\n}\n\n/**\n * Function to get the cms assets from body dataset\n * This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor\n */\nexport function getCmsAssets() {\n return document.body.dataset.cmsassetspath || '';\n}\n\n/**\n * DynamicContent module\n * @deprecated Will be removed in v14.\n */\n@NgModule({\n providers: [\n {\n provide: DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n useFactory: getDynamicContent\n },\n {\n provide: CMS_ASSETS_PATH_TOKEN,\n useFactory: getCmsAssets\n },\n DynamicContentService\n ],\n imports: [O3rDynamicContentPipe],\n exports: [O3rDynamicContentPipe]\n})\nexport class DynamicContentModule {\n /**\n * Customize the location where the application will search for the base path of dynamic content\n * @param dynamicPath Configuration for dynamic content path\n * @param dynamicPath.content The string will be used as base path of dynamic content\n * @param dynamicPath.cmsAssets The string will be used for the the base path of cms assets\n * @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content\n * @deprecated Please use {@link provideDynamicContent} instead. Will be removed in v14.\n */\n public static forRoot(dynamicPath: { content: string } | { cmsAssets: string }): ModuleWithProviders<DynamicContentModule> {\n const providers = [];\n if ('content' in dynamicPath) {\n providers.push({\n provide: DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n useValue: dynamicPath.content\n });\n }\n if ('cmsAssets' in dynamicPath) {\n providers.push({\n provide: CMS_ASSETS_PATH_TOKEN,\n useValue: dynamicPath.cmsAssets\n });\n }\n\n return {\n ngModule: DynamicContentModule,\n providers\n };\n }\n}\n\ntype DynamicContentFeatureKind = 'base-path' | 'cms-assets-path';\n\ninterface DynamicContentFeature<FeatureKind extends DynamicContentFeatureKind> {\n ɵkind: FeatureKind;\n ɵproviders: Provider[];\n}\n\ntype BasePathFeature = DynamicContentFeature<'base-path'>;\ntype CmsAssetsPathFeature = DynamicContentFeature<'cms-assets-path'>;\n\ntype DynamicContentFeatures = BasePathFeature | CmsAssetsPathFeature;\n\n/**\n * Specify a custom base path\n * @param basePath\n */\nexport function withBasePath(basePath: string | (() => string)): BasePathFeature {\n return {\n ɵkind: 'base-path',\n ɵproviders: [\n {\n provide: DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n ...(\n typeof basePath === 'string'\n ? { useValue: basePath }\n : { useFactory: basePath }\n )\n }\n ]\n };\n}\n\n/**\n * Specify a custom CMS assets path\n * @param cmsAssetsPath\n */\nexport function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'> {\n return {\n ɵkind: 'cms-assets-path',\n ɵproviders: [\n {\n provide: CMS_ASSETS_PATH_TOKEN,\n ...(\n typeof cmsAssetsPath === 'string'\n ? { useValue: cmsAssetsPath }\n : { useFactory: cmsAssetsPath }\n )\n }\n ]\n };\n}\n\n/**\n * Provide dynamic content default configuration.\n * To customize the location where the application will search for the base path of dynamic content\n * @see {@link withBasePath}\n * @see {@link withCmsAssetsPath}\n * @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content\n * @param features\n * @example\n * ```typescript\n * bootstrapApplication(App,\n * {\n * providers: [\n * provideDynamicContent(\n * withBasePath('custom/base/path'),\n * withCmsAssetsPath('custom/cms/assets/path'),\n * )\n * ]\n * }\n * );\n */\nexport function provideDynamicContent(...features: DynamicContentFeatures[]) {\n const providers: (Provider | EnvironmentProviders)[] = [\n DynamicContentService\n ];\n\n const basePathFeature = features.find((f) => f.ɵkind === 'base-path') ?? withBasePath(getDynamicContent);\n providers.push(basePathFeature.ɵproviders);\n\n const cmsAssetsPathFeature = features.find((f) => f.ɵkind === 'cms-assets-path') ?? withCmsAssetsPath(getCmsAssets);\n providers.push(cmsAssetsPathFeature.ɵproviders);\n\n return makeEnvironmentProviders(providers);\n}\n","/**\n * Strategies available to read / write data in the RequestParameters service.\n * Rehydrate: if the storage already have data, those will be used by the service, ignoring new data. Otherwise set the storage\n * Merge: storage data will be merged with the ones provided. (provided data has priority)\n * Replace: storage data will be completely replaced by the ones provided\n * ReplaceIfNotEmpty: If no parameters are provided, use the content from storage. Otherwise use the ones provided and update the storage with them.\n */\n\nexport enum StorageStrategy {\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n Rehydrate = 0,\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n Merge = 1,\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n Replace = 2,\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n ReplaceIfNotEmpty = 3\n}\n\n/**\n * Configuration used by a user to feed the request parameters service.\n */\nexport interface RequestParametersConfig {\n /**\n * Strategy used by the RequestParameters Service. See StorageStrategy for more info\n */\n strategy: StorageStrategy;\n /**\n * Storage used by the RequestParameters service\n */\n storage?: Storage;\n /**\n * Value of the DOM element containing your query parameters (e.g. `document.body.dataset.query`)\n */\n queryParamsValue: string;\n /**\n * Value of the DOM element containing your post parameters (e.g. `document.body.dataset.post`)\n */\n postParamsValue: string;\n}\n\nexport const defaultRequestParametersConfig: Readonly<RequestParametersConfig> = {\n storage: (typeof window === 'undefined') ? undefined : window.sessionStorage,\n strategy: StorageStrategy.Rehydrate,\n queryParamsValue: (typeof document !== 'undefined' && document.body?.dataset?.query) || '{}',\n postParamsValue: (typeof document !== 'undefined' && document.body?.dataset?.post) || '{}'\n} as const;\n","import {\n InjectionToken,\n} from '@angular/core';\nimport {\n RequestParametersConfig,\n} from './request-parameters-config';\n\n/**\n * Token to be provided in case of service customization needs.\n */\nexport const REQUEST_PARAMETERS_CONFIG_TOKEN = new InjectionToken<Partial<RequestParametersConfig>>('RequestParametersConfig injection token', { factory: () => ({}) });\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n defaultRequestParametersConfig,\n RequestParametersConfig,\n StorageStrategy,\n} from './request-parameters-config';\nimport {\n REQUEST_PARAMETERS_CONFIG_TOKEN,\n} from './request-parameters-token';\n\nexport type ParamsList = 'query' | 'post';\n\nexport type ParamsType = { [k in ParamsList]: { [key: string]: string } };\n\n/**\n * Partial configuration for RequestParameters Service\n */\nexport interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {}\n\n/**\n * Service used to store the request parameters of your requests so that subsequent calls or refresh the page will preserve\n * them.\n */\n@Injectable()\nexport class RequestParametersService implements ParamsType {\n private _query: { [key: string]: any } = {};\n private _post: { [key: string]: any } = {};\n\n private readonly config: RequestParametersConfig;\n\n constructor() {\n const config = inject<PartialRequestParametersConfig>(REQUEST_PARAMETERS_CONFIG_TOKEN);\n\n this.config = defaultRequestParametersConfig;\n (Object.keys(config) as (keyof RequestParametersConfig)[])\n .filter((key) => config[key] !== undefined)\n .forEach((key) => (this.config as any)[key] = config[key]);\n\n this.setParameters('query', JSON.parse(this.config.queryParamsValue));\n this.setParameters('post', JSON.parse(this.config.postParamsValue));\n }\n\n /**\n * Depending on the strategy, set the internal values for the parameters.\n * See StorageStrategy for more info.\n * @param key\n * @param value\n */\n private setParameters(key: ParamsList, value: { [key: string]: string }) {\n const privateKey: `_${ParamsList}` = `_${key}`;\n if (!this.config.storage) {\n // No storage is available , cannot set items\n return;\n }\n switch (this.config.strategy) {\n case StorageStrategy.Rehydrate: {\n if (!this.config.storage.getItem(privateKey)) {\n this[privateKey] = value;\n this.config.storage.setItem(privateKey, JSON.stringify(value));\n break;\n }\n this[privateKey] = JSON.parse(this.config.storage.getItem(privateKey) || '{}');\n break;\n }\n case StorageStrategy.Replace: {\n this[privateKey] = value;\n this.config.storage.setItem(privateKey, JSON.stringify(value));\n break;\n }\n case StorageStrategy.Merge: {\n const storageData = Object.assign(JSON.parse(this.config.storage.getItem(privateKey) || '{}'), value);\n this[privateKey] = storageData;\n this.config.storage.setItem(privateKey, JSON.stringify(storageData));\n break;\n }\n case StorageStrategy.ReplaceIfNotEmpty: {\n if (Object.keys(value).length > 0) {\n this[privateKey] = value;\n this.config.storage.setItem(privateKey, JSON.stringify(value));\n break;\n }\n this[privateKey] = JSON.parse(this.config.storage.getItem(privateKey) || '{}');\n break;\n }\n }\n }\n\n /**\n * Get all the query parameters in a map.\n */\n public get query() {\n return this._query;\n }\n\n /**\n * Get all the post parameters in a map.\n */\n public get post() {\n return this._post;\n }\n\n /**\n * Get a specific query parameter value, given the key.\n * @param key\n */\n public getQueryParameter(key: string): string | undefined {\n return this._query[key];\n }\n\n /**\n * Get a specific query parameter value as boolean, given the key.\n * @param key\n */\n public getQueryParameterAsBoolean(key: string): boolean | undefined {\n const queryParameter: string | undefined = this.getQueryParameter(key);\n return queryParameter ? queryParameter.toLowerCase() === 'true' : undefined;\n }\n\n /**\n * Get a specific post parameter value, given the key.\n * @param key\n */\n public getPostParameter(key: string): string | undefined {\n return this._post[key];\n }\n\n /**\n * Get a specific post parameter value as boolean, given the key.\n * @param key\n */\n public getPostParameterAsBoolean(key: string): boolean | undefined {\n const postParameter: string | undefined = this.getPostParameter(key);\n return postParameter ? postParameter.toLowerCase() === 'true' : undefined;\n }\n\n /**\n * Get a specific parameter value, given the key.\n * @param key\n */\n public getParameter(key: string): string | undefined {\n return this._query[key] || this._post[key];\n }\n\n /**\n * Get a specific parameter value as boolean, given the key.\n * @param key\n */\n public getParameterAsBoolean(key: string): boolean | undefined {\n const parameter: string | undefined = this.getParameter(key);\n return parameter ? parameter.toLowerCase() === 'true' : undefined;\n }\n\n /**\n * Clear GET parameters from the storage\n * @param paramsToClear the list on key that you want to clear in get parameters\n */\n public clearQueryParameters(paramsToClear?: string[]) {\n const newQuery = (paramsToClear ? Object.keys(this._query).filter((key) => !paramsToClear.includes(key)) : [])\n .reduce<{ [k: string]: string }>((acc, key) => {\n acc[key] = this._query[key];\n return acc;\n }, {});\n if (this.config.storage) {\n this.config.storage.setItem('_query', JSON.stringify(newQuery));\n }\n this._query = newQuery;\n }\n\n /**\n * Clear POST parameters from the storage\n * @param paramsToClear the list on key that you want to clean in post parameters\n */\n public clearPostParameters(paramsToClear?: string[]) {\n const newPost = (paramsToClear ? Object.keys(this._post).filter((key) => !paramsToClear.includes(key)) : [])\n .reduce<{ [k: string]: string }>((acc, key) => {\n acc[key] = this._post[key];\n return acc;\n }, {});\n if (this.config.storage) {\n this.config.storage.setItem('_post', JSON.stringify(newPost));\n }\n this._post = newPost;\n }\n\n /**\n * Get all the parameters in a map.\n * @param priority the parameter to be given priority in case same key is in get and post params.\n */\n public getParams(priority: ParamsList = 'query') {\n return priority === 'query' ? { ...this._post, ...this._query } : { ...this._query, ...this._post };\n }\n\n /**\n * Filter Parameters(both Query/POST) from the storage\n * @param paramstoFilter the list on key that you want to filter from parameters\n * @param priority the priorty of the parameter type(POST/Query)\n */\n public getFilteredParameters(paramstoFilter?: string[], priority: ParamsList = 'query') {\n const params = this.getParams(priority);\n if (!paramstoFilter) {\n return params;\n }\n return Object.keys(params)\n .filter((key) => !paramstoFilter.includes(key))\n .reduce<{ [k: string]: string }>((acc, key) => {\n acc[key] = params[key];\n return acc;\n }, {});\n }\n}\n","import {\n makeEnvironmentProviders,\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport {\n RequestParametersConfig,\n} from './request-parameters-config';\nimport {\n RequestParametersService,\n} from './request-parameters-service';\nimport {\n REQUEST_PARAMETERS_CONFIG_TOKEN,\n} from './request-parameters-token';\n\n/**\n * Empty configuration factory, used when config is not provided. It needs a separate function for AOT.\n */\nexport function defaultConfigFactory() {\n return {};\n}\n/**\n * RequestParametersService Module\n * @deprecated Will be removed in v14.\n */\n@NgModule({\n imports: [],\n providers: [\n {\n provide: REQUEST_PARAMETERS_CONFIG_TOKEN,\n useValue: {}\n },\n RequestParametersService\n ]\n})\nexport class RequestParametersModule {\n /**\n * Provide request parameters config\n * @param config\n * @deprecated Please use {@link provideRequestParameters} instead. Will be removed in v14.\n */\n public static forRoot(config: () => Partial<RequestParametersConfig> = defaultConfigFactory): ModuleWithProviders<RequestParametersModule> {\n return {\n ngModule: RequestParametersModule,\n providers: [\n {\n provide: REQUEST_PARAMETERS_CONFIG_TOKEN,\n useFactory: config\n },\n RequestParametersService\n ]\n };\n }\n}\n\n/**\n * Provide request parameters config\n * We don't provide directly the value and use a factory because otherwise AOT compilation will resolve to undefined whatever is taken from window\n * @param config\n */\nexport function provideRequestParameters(config: () => Partial<RequestParametersConfig> = defaultConfigFactory) {\n return makeEnvironmentProviders([\n {\n provide: REQUEST_PARAMETERS_CONFIG_TOKEN,\n useFactory: config\n },\n RequestParametersService\n ]);\n}\n","import {\n NgModule,\n} from '@angular/core';\nimport {\n DynamicContentModule,\n} from '../dynamic-content/index';\n\n@NgModule({\n imports: [DynamicContentModule]\n})\nexport class StyleLazyLoaderModule {}\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n firstValueFrom,\n} from 'rxjs';\nimport {\n DynamicContentService,\n} from '../dynamic-content/index';\nimport {\n StyleLazyLoaderModule,\n} from './style-lazy-loader-module';\n\n/**\n * Interface to describe a style to lazy load from a url.\n */\nexport interface StyleURL {\n /** url to file */\n href: string;\n /** id of the HTML element */\n id?: string;\n /** html integrity attribute to verify fetched resources */\n integrity?: string;\n /** html crossOrigin attribute for CORS support. */\n crossOrigin?: 'anonymous' | 'use-credentials' | '';\n}\n\n/**\n * Service to lazy load a CSS file\n */\n@Injectable({\n providedIn: StyleLazyLoaderModule\n})\nexport class StyleLazyLoader {\n private readonly dcService = inject(DynamicContentService);\n\n private readonly DEFAULT_STYLE_ELEMENT_ID = 'external-theme';\n\n /**\n * Load a new CSS from an absolute URL, if we already HTML element exists with the url, otherwise\n * @param styleUrlConfig object containing CSS File absolute URL to load, integrity and crossOrigin attributes\n * and the styleId id of the dynamic style in the body tag.\n */\n public loadStyleFromURL(styleUrlConfig: StyleURL) {\n const elementId = styleUrlConfig.id || this.DEFAULT_STYLE_ELEMENT_ID;\n let style = document.querySelector<HTMLLinkElement>(`#${elementId}`);\n\n if (style === null) {\n style = document.createElement('link');\n style.rel = 'stylesheet';\n style.type = 'text/css';\n const head = document.querySelectorAll('head')[0];\n head.append(style);\n }\n if (styleUrlConfig.integrity) {\n style.integrity = styleUrlConfig.integrity;\n }\n if (styleUrlConfig.crossOrigin !== undefined) {\n style.crossOrigin = styleUrlConfig.crossOrigin;\n }\n style.href = styleUrlConfig.href;\n\n return style;\n }\n\n /**\n * Load a new CSS File\n * @param styleUrlConfig CSS File config containing URL to load, integrity and crossOrigin attributes\n * and the styleId id of the dynamic style in the body tag\n */\n public async asyncLoadStyleFromDynamicContent(styleUrlConfig: StyleURL) {\n const dynamicContentPath = await firstValueFrom(\n this.dcService.getContentPathStream(styleUrlConfig.href)\n );\n styleUrlConfig.href = dynamicContentPath;\n this.loadStyleFromURL(styleUrlConfig);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["actions.setAssetPathOverride"],"mappings":";;;;;;;AAWA;AACA,MAAM,UAAU,GAAG,kCAAkC;AAErD;;AAEG;AACI,MAAM,oBAAoB,GAAG,YAAY,CAAC,UAAU,EAAE,KAAK,EAAiD;;ACNnH;;AAEG;MACU,6BAA6B,GAA2B,EAAE,kBAAkB,EAAE,EAAE;AAE7F;;AAEG;AACI,MAAM,gCAAgC,GAA4D;IACvG,EAAE,CAACA,oBAA4B,EAAE,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;;AAG9E;;AAEG;AACI,MAAM,wBAAwB,GAAG,aAAa,CACnD,6BAA6B,EAC7B,GAAG,gCAAgC;;ACpBrC;;AAEG;AACI,MAAM,8BAA8B,GAAG;;ACO9C;MACa,iCAAiC,GAAG,IAAI,cAAc,CAAgD,mCAAmC;AAEtJ;SACgB,kCAAkC,GAAA;AAChD,IAAA,OAAO,wBAAwB;AACjC;MAUa,4BAA4B,CAAA;IAChC,OAAO,OAAO,CAAmC,cAA8C,EAAA;QACpG,OAAO;AACL,YAAA,QAAQ,EAAE,4BAA4B;AACtC,YAAA,SAAS,EAAE;AACT,gBAAA,EAAE,OAAO,EAAE,iCAAiC,EAAE,UAAU,EAAE,cAAc;AACzE;SACF;IACH;iIARW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAA5B,4BAA4B,EAAA,OAAA,EAAA,CAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,CAAA;AAA5B,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CA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,CAAC,cAAwB,EAAA;AACpE,QAAA,MAAM,kBAAkB,GAAG,MAAM,cAAc,CAC7C,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,CAAC,CACzD;AACD,QAAA,cAAc,CAAC,IAAI,GAAG,kBAAkB;AACxC,QAAA,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC;IACvC;iIA3CW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,uBAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,qBAAqB,EAAA,CAAA,CAAA;;2FAEtB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACjCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"o3r-dynamic-content.mjs","sources":["../../src/stores/asset-path-override/asset-path-override.actions.ts","../../src/stores/asset-path-override/asset-path-override.reducer.ts","../../src/stores/asset-path-override/asset-path-override.state.ts","../../src/stores/asset-path-override/asset-path-override-module.ts","../../src/stores/asset-path-override/asset-path-override.selectors.ts","../../src/stores/asset-path-override/asset-path-override.sync.ts","../../src/services/dynamic-content/dynamic-content-token.ts","../../src/services/dynamic-content/dynamic-content-service.ts","../../src/services/dynamic-content/dynamic-content-module.ts","../../src/services/dynamic-content/dynamic-content-pipe.ts","../../src/services/request-parameters/request-parameters-config.ts","../../src/services/request-parameters/request-parameters-token.ts","../../src/services/request-parameters/request-parameters-service.ts","../../src/services/request-parameters/request-parameters-module.ts","../../src/services/styling/style-lazy-loader-module.ts","../../src/services/styling/style-lazy-loader.ts","../../src/o3r-dynamic-content.ts"],"sourcesContent":["import {\n createAction,\n props,\n} from '@ngrx/store';\nimport type {\n SetStateActionPayload,\n} from '@o3r/core';\nimport {\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/** Actions */\nconst ACTION_SET = '[AssetPathOverride] set entities';\n\n/**\n * Clear all overrides and fill the store with the payload\n */\nexport const setAssetPathOverride = createAction(ACTION_SET, props<SetStateActionPayload<AssetPathOverrideState>>());\n","import {\n ActionCreator,\n createReducer,\n on,\n ReducerTypes,\n} from '@ngrx/store';\nimport * as actions from './asset-path-override.actions';\nimport {\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/**\n * AssetPathOverride Store initial value\n */\nexport const assetPathOverrideInitialState: AssetPathOverrideState = { assetPathOverrides: {} };\n\n/**\n * List of basic actions for AssetPathOverride Store\n */\nexport const assetPathOverrideReducerFeatures: ReducerTypes<AssetPathOverrideState, ActionCreator[]>[] = [\n on(actions.setAssetPathOverride, (_state, payload) => ({ ...payload.state }))\n];\n\n/**\n * AssetPathOverride Store reducer\n */\nexport const assetPathOverrideReducer = createReducer(\n assetPathOverrideInitialState,\n ...assetPathOverrideReducerFeatures\n);\n","/**\n * AssetPathOverride store state\n */\nexport interface AssetPathOverrideState {\n /** Mapping of asset path (key) and its override (value)*/\n assetPathOverrides: Record<string, string>;\n}\n\n/**\n * Name of the AssetPathOverride Store\n */\nexport const ASSET_PATH_OVERRIDE_STORE_NAME = 'assetPathOverride';\n\n/**\n * AssetPathOverride Store Interface\n */\nexport interface AssetPathOverrideStore {\n /** AssetPathOverride state */\n [ASSET_PATH_OVERRIDE_STORE_NAME]: AssetPathOverrideState;\n}\n","import {\n InjectionToken,\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport {\n Action,\n ActionReducer,\n StoreModule,\n} from '@ngrx/store';\nimport {\n assetPathOverrideReducer,\n} from './asset-path-override.reducer';\nimport {\n ASSET_PATH_OVERRIDE_STORE_NAME,\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/** Token of the AssetPathOverride reducer */\nexport const ASSET_PATH_OVERRIDE_REDUCER_TOKEN = new InjectionToken<ActionReducer<AssetPathOverrideState, Action>>('Feature AssetPathOverride Reducer');\n\n/** Provide default reducer for AssetPathOverride store */\nexport function getDefaultAssetPathOverrideReducer() {\n return assetPathOverrideReducer;\n}\n\n@NgModule({\n imports: [\n StoreModule.forFeature(ASSET_PATH_OVERRIDE_STORE_NAME, ASSET_PATH_OVERRIDE_REDUCER_TOKEN)\n ],\n providers: [\n { provide: ASSET_PATH_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultAssetPathOverrideReducer }\n ]\n})\nexport class AssetPathOverrideStoreModule {\n public static forRoot<T extends AssetPathOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<AssetPathOverrideStoreModule> {\n return {\n ngModule: AssetPathOverrideStoreModule,\n providers: [\n { provide: ASSET_PATH_OVERRIDE_REDUCER_TOKEN, useFactory: reducerFactory }\n ]\n };\n }\n}\n","import {\n createFeatureSelector,\n createSelector,\n} from '@ngrx/store';\nimport {\n ASSET_PATH_OVERRIDE_STORE_NAME,\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/** Select AssetPathOverride State */\nexport const selectAssetPathOverrideState = createFeatureSelector<AssetPathOverrideState>(ASSET_PATH_OVERRIDE_STORE_NAME);\n\n/** Select all assetPath override map */\nexport const selectAssetPathOverride = createSelector(selectAssetPathOverrideState, (state) => state?.assetPathOverrides || {});\n","import type {\n Serializer,\n} from '@o3r/core';\nimport {\n assetPathOverrideInitialState,\n} from './asset-path-override.reducer';\nimport {\n AssetPathOverrideState,\n} from './asset-path-override.state';\n\n/**\n * Deserializer\n * @param rawObject\n */\nexport const assetPathOverrideStorageDeserializer = (rawObject: any) => {\n if (!rawObject) {\n return assetPathOverrideInitialState;\n }\n return rawObject;\n};\n\nexport const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState> = {\n deserialize: assetPathOverrideStorageDeserializer\n};\n","import {\n InjectionToken,\n} from '@angular/core';\n\n/**\n * Injection token for the rootpath of dynamic content\n */\nexport const DYNAMIC_CONTENT_BASE_PATH_TOKEN: InjectionToken<string> = new InjectionToken('Dynamic content path injection token');\n\n/**\n * Injection token for the assets path injected by the cms\n * This token will be injected only in editor mode\n */\nexport const CMS_ASSETS_PATH_TOKEN: InjectionToken<string> = new InjectionToken('CMS assets path injection token');\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n select,\n Store,\n} from '@ngrx/store';\nimport {\n of,\n} from 'rxjs';\nimport {\n distinctUntilChanged,\n map,\n shareReplay,\n} from 'rxjs/operators';\nimport {\n AssetPathOverrideStore,\n selectAssetPathOverride,\n} from '../../stores/index';\nimport {\n CMS_ASSETS_PATH_TOKEN,\n DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n} from './dynamic-content-token';\n\nconst MEDIA_FOLDER_NAME = 'assets';\n\n/**\n * Service for getting dynamic content path\n */\n@Injectable()\nexport class DynamicContentService {\n private readonly cmsOnlyAssetsPath = inject(CMS_ASSETS_PATH_TOKEN);\n private readonly store = inject<Store<AssetPathOverrideStore>>(Store, { optional: true });\n\n public readonly basePath: string;\n\n private readonly mediaFolder: string;\n\n constructor() {\n const dynamicContentPath = inject(DYNAMIC_CONTENT_BASE_PATH_TOKEN);\n\n this.basePath = dynamicContentPath.replace(/\\/$/, '');\n this.mediaFolder = MEDIA_FOLDER_NAME;\n }\n\n private normalizePath(assetPath?: string) {\n return assetPath ? assetPath.replace(/^\\//, '') : '';\n }\n\n private getContentPath(assetPath?: string) {\n const normalizedAssetPath = this.normalizePath(assetPath);\n return this.basePath === '' ? assetPath || '' : `${this.basePath}/${normalizedAssetPath}`;\n }\n\n private getMediaPath(assetPath?: string) {\n if (this.cmsOnlyAssetsPath && assetPath) {\n return assetPath.startsWith('/') ? assetPath : `${this.cmsOnlyAssetsPath.replace(/\\/$/, '')}/${assetPath}`;\n }\n return this.getContentPath(this.mediaFolder ? `${this.mediaFolder}/${this.normalizePath(assetPath)}` : assetPath);\n }\n\n /**\n * Gets the full path of a content relative to the root\n * Content path doesn't consider any override, you will always get the same file\n * @param assetPath asset location in the root folder\n * @example\n * ```typescript\n * getMediaPath('assets/imgs/my-image.png') // will give you the basePath + 'assets/imgs/my-image.png'\n * ```\n */\n public getContentPathStream(assetPath?: string) {\n return of(this.getContentPath(assetPath));\n }\n\n /**\n * Gets the stream that provides the full path of a media content\n * A Media content is always stored in the 'assets' media folder, no external content will be accessible through this function\n * If any override is applied to the content, returns the override path instead\n * @param assetPath asset location in the media folder (e.g imgs/my-image.png)\n * @example\n * ```typescript\n * getMediaPathStream('imgs/my-image.png') // will give you the basePath + mediaFolder + 'imgs/my-image.png'\n * ```\n */\n public getMediaPathStream(assetPath?: string) {\n if (!this.store) {\n return of(this.getMediaPath(assetPath));\n }\n return this.store.pipe(\n select(selectAssetPathOverride),\n map((entities) => assetPath && entities && entities[assetPath] ? entities[assetPath] : assetPath),\n map((finalAssetPath) => this.getMediaPath(finalAssetPath)),\n distinctUntilChanged(),\n shareReplay({ bufferSize: 1, refCount: true })\n );\n }\n}\n","import {\n type EnvironmentProviders,\n makeEnvironmentProviders,\n type Provider,\n} from '@angular/core';\nimport {\n DynamicContentService,\n} from './dynamic-content-service';\nimport {\n CMS_ASSETS_PATH_TOKEN,\n DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n} from './dynamic-content-token';\n\n/**\n * Function to get dynamic content from body dataset\n */\nexport function getDynamicContent() {\n return document.body.dataset.dynamiccontentpath || '';\n}\n\n/**\n * Function to get the cms assets from body dataset\n * This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor\n */\nexport function getCmsAssets() {\n return document.body.dataset.cmsassetspath || '';\n}\n\ntype DynamicContentFeatureKind = 'base-path' | 'cms-assets-path';\n\ninterface DynamicContentFeature<FeatureKind extends DynamicContentFeatureKind> {\n ɵkind: FeatureKind;\n ɵproviders: Provider[];\n}\n\ntype BasePathFeature = DynamicContentFeature<'base-path'>;\ntype CmsAssetsPathFeature = DynamicContentFeature<'cms-assets-path'>;\n\ntype DynamicContentFeatures = BasePathFeature | CmsAssetsPathFeature;\n\n/**\n * Specify a custom base path\n * @param basePath\n */\nexport function withBasePath(basePath: string | (() => string)): BasePathFeature {\n return {\n ɵkind: 'base-path',\n ɵproviders: [\n {\n provide: DYNAMIC_CONTENT_BASE_PATH_TOKEN,\n ...(\n typeof basePath === 'string'\n ? { useValue: basePath }\n : { useFactory: basePath }\n )\n }\n ]\n };\n}\n\n/**\n * Specify a custom CMS assets path\n * @param cmsAssetsPath\n */\nexport function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'> {\n return {\n ɵkind: 'cms-assets-path',\n ɵproviders: [\n {\n provide: CMS_ASSETS_PATH_TOKEN,\n ...(\n typeof cmsAssetsPath === 'string'\n ? { useValue: cmsAssetsPath }\n : { useFactory: cmsAssetsPath }\n )\n }\n ]\n };\n}\n\n/**\n * Provide dynamic content default configuration.\n * To customize the location where the application will search for the base path of dynamic content\n * @see {@link withBasePath}\n * @see {@link withCmsAssetsPath}\n * @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content\n * @param features\n * @example\n * ```typescript\n * bootstrapApplication(App,\n * {\n * providers: [\n * provideDynamicContent(\n * withBasePath('custom/base/path'),\n * withCmsAssetsPath('custom/cms/assets/path'),\n * )\n * ]\n * }\n * );\n */\nexport function provideDynamicContent(...features: DynamicContentFeatures[]) {\n const providers: (Provider | EnvironmentProviders)[] = [\n DynamicContentService\n ];\n\n const basePathFeature = features.find((f) => f.ɵkind === 'base-path') ?? withBasePath(getDynamicContent);\n providers.push(basePathFeature.ɵproviders);\n\n const cmsAssetsPathFeature = features.find((f) => f.ɵkind === 'cms-assets-path') ?? withCmsAssetsPath(getCmsAssets);\n providers.push(cmsAssetsPathFeature.ɵproviders);\n\n return makeEnvironmentProviders(providers);\n}\n","import {\n ChangeDetectorRef,\n inject,\n OnDestroy,\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport {\n Subscription,\n} from 'rxjs';\nimport {\n DynamicContentService,\n} from './dynamic-content-service';\n\n@Pipe({\n name: 'o3rDynamicContent',\n pure: false\n})\nexport class O3rDynamicContentPipe implements PipeTransform, OnDestroy {\n protected readonly service = inject(DynamicContentService);\n protected readonly cd = inject(ChangeDetectorRef);\n\n /** Last query value */\n protected lastQuery?: string;\n\n /** Subscription to retrieve media path */\n protected onMediaPathChange?: Subscription;\n\n /** Path to the media */\n protected mediaPath = '';\n\n /** @inheritDoc */\n public transform(query?: string) {\n if (query !== this.lastQuery) {\n this.lastQuery = query;\n if (this.onMediaPathChange) {\n this.onMediaPathChange.unsubscribe();\n }\n this.onMediaPathChange = this.service.getMediaPathStream(query).subscribe((mediaPath) => {\n this.mediaPath = mediaPath;\n this.cd.markForCheck();\n });\n }\n\n return this.mediaPath;\n }\n\n /** @inheritDoc */\n public ngOnDestroy(): void {\n if (this.onMediaPathChange) {\n this.onMediaPathChange.unsubscribe();\n }\n }\n}\n","/**\n * Strategies available to read / write data in the RequestParameters service.\n * Rehydrate: if the storage already have data, those will be used by the service, ignoring new data. Otherwise set the storage\n * Merge: storage data will be merged with the ones provided. (provided data has priority)\n * Replace: storage data will be completely replaced by the ones provided\n * ReplaceIfNotEmpty: If no parameters are provided, use the content from storage. Otherwise use the ones provided and update the storage with them.\n */\n\nexport enum StorageStrategy {\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n Rehydrate = 0,\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n Merge = 1,\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n Replace = 2,\n // eslint-disable-next-line @typescript-eslint/naming-convention -- required naming convention\n ReplaceIfNotEmpty = 3\n}\n\n/**\n * Configuration used by a user to feed the request parameters service.\n */\nexport interface RequestParametersConfig {\n /**\n * Strategy used by the RequestParameters Service. See StorageStrategy for more info\n */\n strategy: StorageStrategy;\n /**\n * Storage used by the RequestParameters service\n */\n storage?: Storage;\n /**\n * Value of the DOM element containing your query parameters (e.g. `document.body.dataset.query`)\n */\n queryParamsValue: string;\n /**\n * Value of the DOM element containing your post parameters (e.g. `document.body.dataset.post`)\n */\n postParamsValue: string;\n}\n\nexport const defaultRequestParametersConfig: Readonly<RequestParametersConfig> = {\n storage: (typeof window === 'undefined') ? undefined : window.sessionStorage,\n strategy: StorageStrategy.Rehydrate,\n queryParamsValue: (typeof document !== 'undefined' && document.body?.dataset?.query) || '{}',\n postParamsValue: (typeof document !== 'undefined' && document.body?.dataset?.post) || '{}'\n} as const;\n","import {\n InjectionToken,\n} from '@angular/core';\nimport {\n RequestParametersConfig,\n} from './request-parameters-config';\n\n/**\n * Token to be provided in case of service customization needs.\n */\nexport const REQUEST_PARAMETERS_CONFIG_TOKEN = new InjectionToken<Partial<RequestParametersConfig>>('RequestParametersConfig injection token', { factory: () => ({}) });\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n defaultRequestParametersConfig,\n RequestParametersConfig,\n StorageStrategy,\n} from './request-parameters-config';\nimport {\n REQUEST_PARAMETERS_CONFIG_TOKEN,\n} from './request-parameters-token';\n\nexport type ParamsList = 'query' | 'post';\n\nexport type ParamsType = { [k in ParamsList]: { [key: string]: string } };\n\n/**\n * Partial configuration for RequestParameters Service\n */\nexport interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {}\n\n/**\n * Service used to store the request parameters of your requests so that subsequent calls or refresh the page will preserve\n * them.\n */\n@Injectable()\nexport class RequestParametersService implements ParamsType {\n private _query: { [key: string]: any } = {};\n private _post: { [key: string]: any } = {};\n\n private readonly config: RequestParametersConfig;\n\n constructor() {\n const config = inject<PartialRequestParametersConfig>(REQUEST_PARAMETERS_CONFIG_TOKEN);\n\n this.config = defaultRequestParametersConfig;\n (Object.keys(config) as (keyof RequestParametersConfig)[])\n .filter((key) => config[key] !== undefined)\n .forEach((key) => (this.config as any)[key] = config[key]);\n\n this.setParameters('query', JSON.parse(this.config.queryParamsValue));\n this.setParameters('post', JSON.parse(this.config.postParamsValue));\n }\n\n /**\n * Depending on the strategy, set the internal values for the parameters.\n * See StorageStrategy for more info.\n * @param key\n * @param value\n */\n private setParameters(key: ParamsList, value: { [key: string]: string }) {\n const privateKey: `_${ParamsList}` = `_${key}`;\n if (!this.config.storage) {\n // No storage is available , cannot set items\n return;\n }\n switch (this.config.strategy) {\n case StorageStrategy.Rehydrate: {\n if (!this.config.storage.getItem(privateKey)) {\n this[privateKey] = value;\n this.config.storage.setItem(privateKey, JSON.stringify(value));\n break;\n }\n this[privateKey] = JSON.parse(this.config.storage.getItem(privateKey) || '{}');\n break;\n }\n case StorageStrategy.Replace: {\n this[privateKey] = value;\n this.config.storage.setItem(privateKey, JSON.stringify(value));\n break;\n }\n case StorageStrategy.Merge: {\n const storageData = Object.assign(JSON.parse(this.config.storage.getItem(privateKey) || '{}'), value);\n this[privateKey] = storageData;\n this.config.storage.setItem(privateKey, JSON.stringify(storageData));\n break;\n }\n case StorageStrategy.ReplaceIfNotEmpty: {\n if (Object.keys(value).length > 0) {\n this[privateKey] = value;\n this.config.storage.setItem(privateKey, JSON.stringify(value));\n break;\n }\n this[privateKey] = JSON.parse(this.config.storage.getItem(privateKey) || '{}');\n break;\n }\n }\n }\n\n /**\n * Get all the query parameters in a map.\n */\n public get query() {\n return this._query;\n }\n\n /**\n * Get all the post parameters in a map.\n */\n public get post() {\n return this._post;\n }\n\n /**\n * Get a specific query parameter value, given the key.\n * @param key\n */\n public getQueryParameter(key: string): string | undefined {\n return this._query[key];\n }\n\n /**\n * Get a specific query parameter value as boolean, given the key.\n * @param key\n */\n public getQueryParameterAsBoolean(key: string): boolean | undefined {\n const queryParameter: string | undefined = this.getQueryParameter(key);\n return queryParameter ? queryParameter.toLowerCase() === 'true' : undefined;\n }\n\n /**\n * Get a specific post parameter value, given the key.\n * @param key\n */\n public getPostParameter(key: string): string | undefined {\n return this._post[key];\n }\n\n /**\n * Get a specific post parameter value as boolean, given the key.\n * @param key\n */\n public getPostParameterAsBoolean(key: string): boolean | undefined {\n const postParameter: string | undefined = this.getPostParameter(key);\n return postParameter ? postParameter.toLowerCase() === 'true' : undefined;\n }\n\n /**\n * Get a specific parameter value, given the key.\n * @param key\n */\n public getParameter(key: string): string | undefined {\n return this._query[key] || this._post[key];\n }\n\n /**\n * Get a specific parameter value as boolean, given the key.\n * @param key\n */\n public getParameterAsBoolean(key: string): boolean | undefined {\n const parameter: string | undefined = this.getParameter(key);\n return parameter ? parameter.toLowerCase() === 'true' : undefined;\n }\n\n /**\n * Clear GET parameters from the storage\n * @param paramsToClear the list on key that you want to clear in get parameters\n */\n public clearQueryParameters(paramsToClear?: string[]) {\n const newQuery = (paramsToClear ? Object.keys(this._query).filter((key) => !paramsToClear.includes(key)) : [])\n .reduce<{ [k: string]: string }>((acc, key) => {\n acc[key] = this._query[key];\n return acc;\n }, {});\n if (this.config.storage) {\n this.config.storage.setItem('_query', JSON.stringify(newQuery));\n }\n this._query = newQuery;\n }\n\n /**\n * Clear POST parameters from the storage\n * @param paramsToClear the list on key that you want to clean in post parameters\n */\n public clearPostParameters(paramsToClear?: string[]) {\n const newPost = (paramsToClear ? Object.keys(this._post).filter((key) => !paramsToClear.includes(key)) : [])\n .reduce<{ [k: string]: string }>((acc, key) => {\n acc[key] = this._post[key];\n return acc;\n }, {});\n if (this.config.storage) {\n this.config.storage.setItem('_post', JSON.stringify(newPost));\n }\n this._post = newPost;\n }\n\n /**\n * Get all the parameters in a map.\n * @param priority the parameter to be given priority in case same key is in get and post params.\n */\n public getParams(priority: ParamsList = 'query') {\n return priority === 'query' ? { ...this._post, ...this._query } : { ...this._query, ...this._post };\n }\n\n /**\n * Filter Parameters(both Query/POST) from the storage\n * @param paramstoFilter the list on key that you want to filter from parameters\n * @param priority the priorty of the parameter type(POST/Query)\n */\n public getFilteredParameters(paramstoFilter?: string[], priority: ParamsList = 'query') {\n const params = this.getParams(priority);\n if (!paramstoFilter) {\n return params;\n }\n return Object.keys(params)\n .filter((key) => !paramstoFilter.includes(key))\n .reduce<{ [k: string]: string }>((acc, key) => {\n acc[key] = params[key];\n return acc;\n }, {});\n }\n}\n","import {\n makeEnvironmentProviders,\n} from '@angular/core';\nimport {\n RequestParametersConfig,\n} from './request-parameters-config';\nimport {\n RequestParametersService,\n} from './request-parameters-service';\nimport {\n REQUEST_PARAMETERS_CONFIG_TOKEN,\n} from './request-parameters-token';\n\n/**\n * Empty configuration factory, used when config is not provided. It needs a separate function for AOT.\n */\nexport function defaultConfigFactory() {\n return {};\n}\n\n/**\n * Provide request parameters config\n * We don't provide directly the value and use a factory because otherwise AOT compilation will resolve to undefined whatever is taken from window\n * @param config\n */\nexport function provideRequestParameters(config: () => Partial<RequestParametersConfig> = defaultConfigFactory) {\n return makeEnvironmentProviders([\n {\n provide: REQUEST_PARAMETERS_CONFIG_TOKEN,\n useFactory: config\n },\n RequestParametersService\n ]);\n}\n","import {\n NgModule,\n} from '@angular/core';\n\n/**\n * @deprecated Will be removed in v15\n */\n@NgModule({})\nexport class StyleLazyLoaderModule {}\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n firstValueFrom,\n} from 'rxjs';\nimport {\n DynamicContentService,\n} from '../dynamic-content/index';\n\n/**\n * Interface to describe a style to lazy load from a url.\n */\nexport interface StyleURL {\n /** url to file */\n href: string;\n /** id of the HTML element */\n id?: string;\n /** html integrity attribute to verify fetched resources */\n integrity?: string;\n /** html crossOrigin attribute for CORS support. */\n crossOrigin?: 'anonymous' | 'use-credentials' | '';\n}\n\n/**\n * Service to lazy load a CSS file\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class StyleLazyLoader {\n private readonly dcService = inject(DynamicContentService);\n\n private readonly DEFAULT_STYLE_ELEMENT_ID = 'external-theme';\n\n /**\n * Load a new CSS from an absolute URL, if we already HTML element exists with the url, otherwise\n * @param styleUrlConfig object containing CSS File absolute URL to load, integrity and crossOrigin attributes\n * and the styleId id of the dynamic style in the body tag.\n */\n public loadStyleFromURL(styleUrlConfig: StyleURL) {\n const elementId = styleUrlConfig.id || this.DEFAULT_STYLE_ELEMENT_ID;\n let style = document.querySelector<HTMLLinkElement>(`#${elementId}`);\n\n if (style === null) {\n style = document.createElement('link');\n style.rel = 'stylesheet';\n style.type = 'text/css';\n const head = document.querySelectorAll('head')[0];\n head.append(style);\n }\n if (styleUrlConfig.integrity) {\n style.integrity = styleUrlConfig.integrity;\n }\n if (styleUrlConfig.crossOrigin !== undefined) {\n style.crossOrigin = styleUrlConfig.crossOrigin;\n }\n style.href = styleUrlConfig.href;\n\n return style;\n }\n\n /**\n * Load a new CSS File\n * @param styleUrlConfig CSS File config containing URL to load, integrity and crossOrigin attributes\n * and the styleId id of the dynamic style in the body tag\n */\n public async asyncLoadStyleFromDynamicContent(styleUrlConfig: StyleURL) {\n const dynamicContentPath = await firstValueFrom(\n this.dcService.getContentPathStream(styleUrlConfig.href)\n );\n styleUrlConfig.href = dynamicContentPath;\n this.loadStyleFromURL(styleUrlConfig);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["actions.setAssetPathOverride"],"mappings":";;;;;;;AAWA;AACA,MAAM,UAAU,GAAG,kCAAkC;AAErD;;AAEG;AACI,MAAM,oBAAoB,GAAG,YAAY,CAAC,UAAU,EAAE,KAAK,EAAiD;;ACNnH;;AAEG;MACU,6BAA6B,GAA2B,EAAE,kBAAkB,EAAE,EAAE;AAE7F;;AAEG;AACI,MAAM,gCAAgC,GAA4D;IACvG,EAAE,CAACA,oBAA4B,EAAE,CAAC,MAAM,EAAE,OAAO,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;;AAG9E;;AAEG;AACI,MAAM,wBAAwB,GAAG,aAAa,CACnD,6BAA6B,EAC7B,GAAG,gCAAgC;;ACpBrC;;AAEG;AACI,MAAM,8BAA8B,GAAG;;ACO9C;MACa,iCAAiC,GAAG,IAAI,cAAc,CAAgD,mCAAmC;AAEtJ;SACgB,kCAAkC,GAAA;AAChD,IAAA,OAAO,wBAAwB;AACj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,QAAA,OAAO,KAAK;IACd;AAEA;;;;AAIG;IACI,MAAM,gCAAgC,CAAC,cAAwB,EAAA;AACpE,QAAA,MAAM,kBAAkB,GAAG,MAAM,cAAc,CAC7C,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,CAAC,CACzD;AACD,QAAA,cAAc,CAAC,IAAI,GAAG,kBAAkB;AACxC,QAAA,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC;IACvC;iIA3CW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,uBAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA;;2FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../middlewares/index.ts"],"names":[],"mappings":";;;AAAA,2EAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameter-extractor-middleware.js","sourceRoot":"","sources":["../../middlewares/parameter-extractor-middleware.ts"],"names":[],"mappings":";;AA8BA,sBAWC;AAzCD,oGAAoG;AACpG,aAAa;AACb,mCAAmC;AACnC,6GAA6G;AAC7G,aAAa;AACb,0DAA0D;AAC1D,gDAAgD;AAEhD,IAAI,kBAAkB,GAAG,EAAE,CAAC;AAE5B,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,GAAyB,EAAE,GAAyB,EAAE,EAAE,CAA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CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/dynamic-content",
|
|
3
|
-
"version": "14.0.0-
|
|
3
|
+
"version": "14.0.0-rc.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,14 +42,15 @@
|
|
|
42
42
|
"@angular/core": "^21.0.0",
|
|
43
43
|
"@angular/platform-browser-dynamic": "^21.0.0",
|
|
44
44
|
"@ngrx/store": "^21.0.0",
|
|
45
|
-
"@o3r/core": "~14.0.0-
|
|
46
|
-
"@o3r/schematics": "~14.0.0-
|
|
45
|
+
"@o3r/core": "~14.0.0-rc.2",
|
|
46
|
+
"@o3r/schematics": "~14.0.0-rc.2",
|
|
47
47
|
"@schematics/angular": "^21.0.0",
|
|
48
48
|
"cheerio": "^1.1.2",
|
|
49
49
|
"express-interceptor": "^1.2.0",
|
|
50
50
|
"jasmine": "^5.0.0",
|
|
51
51
|
"rxjs": "^7.8.1",
|
|
52
|
-
"type-fest": "^5.3.1"
|
|
52
|
+
"type-fest": "^5.3.1",
|
|
53
|
+
"typescript": "^5.9.0"
|
|
53
54
|
},
|
|
54
55
|
"peerDependenciesMeta": {
|
|
55
56
|
"@angular-devkit/schematics": {
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|
|
78
|
-
"@o3r/schematics": "~14.0.0-
|
|
79
|
+
"@o3r/schematics": "~14.0.0-rc.2",
|
|
79
80
|
"tslib": "^2.6.2"
|
|
80
81
|
},
|
|
81
82
|
"engines": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAGoC;AACpC,gDAGyB;AAKzB,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,eAAe;IACf,mCAAmC;IACnC,aAAa;IACb,MAAM;CACP,CAAC;AAEF;;GAEG;AACH,MAAM,wBAAwB,GAAG;IAC/B,uBAAuB;IACvB,MAAM;CACP,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,kBAAkB;IAClB,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,kCAAqB,EAAC,OAAO,EAAE,eAAe,EAAE,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAC;KACrG,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAE,EAAE,CAAC,IAAA,iCAAoB,EAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AAAnF,QAAA,KAAK,SAA8E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v10-0/index.ts"],"names":[],"mappings":";;;AAAA,2DAKoC;AACpC,gDAIyB;AAEzB,MAAM,mBAAmB,GAAG;IAC1B,cAAc,EAAE;QACd,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;SAC1B;QACD,MAAM,EAAE,sBAAsB;KAC/B;CACqC,CAAC;AAEzC;;GAEG;AACH,sGAAsG;AACtG,SAAS,aAAa;IACpB,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,MAAM,WAAW,GAAW;YAC1B,IAAA,wBAAW,EAAC,mBAAmB,CAAC;SACjC,CAAC;QAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,sGAAsG;AACzF,QAAA,WAAW,GAAG,IAAA,iCAAoB,EAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* Remove StyleLazyLoaderModule from decorator imports arrays and import statements
|
|
4
|
+
* @param tree
|
|
5
|
+
* @param context
|
|
6
|
+
*/
|
|
7
|
+
export declare const removeStyleLazyLoaderModule: Rule;
|
|
8
|
+
/**
|
|
9
|
+
* Update of Otter library V14.0
|
|
10
|
+
*/
|
|
11
|
+
export declare const updateV14_0: (options: any) => Rule;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v14-0/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAgGpC;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,IAmCzC,CAAC;AAUF;;GAEG;AAEH,eAAO,MAAM,WAAW,wBAAsC,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateV14_0 = exports.removeStyleLazyLoaderModule = void 0;
|
|
4
|
+
const schematics_1 = require("@o3r/schematics");
|
|
5
|
+
const ts = require("typescript");
|
|
6
|
+
/**
|
|
7
|
+
* Compute the position to remove a node
|
|
8
|
+
* @param node
|
|
9
|
+
*/
|
|
10
|
+
const computeRemovePosition = (node) => ({ start: node.getFullStart(), length: node.getEnd() - node.getFullStart() });
|
|
11
|
+
/**
|
|
12
|
+
* Find and compute remove position for an import symbol
|
|
13
|
+
* If the symbol is the only import from the module, remove the entire import declaration
|
|
14
|
+
* @param source
|
|
15
|
+
* @param symbolName
|
|
16
|
+
* @param fileName
|
|
17
|
+
*/
|
|
18
|
+
const removeImport = (source, symbolName, fileName) => {
|
|
19
|
+
const importDeclaration = source.statements.find((statement) => ts.isImportDeclaration(statement)
|
|
20
|
+
&& ts.isStringLiteral(statement.moduleSpecifier)
|
|
21
|
+
&& statement.moduleSpecifier.text === fileName);
|
|
22
|
+
if (!importDeclaration || !importDeclaration.importClause?.namedBindings || !ts.isNamedImports(importDeclaration.importClause.namedBindings)) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const namedImports = importDeclaration.importClause.namedBindings;
|
|
26
|
+
const importElement = namedImports.elements.find((e) => e.name.escapedText.toString() === symbolName);
|
|
27
|
+
if (!importElement) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
// If this is the only import, remove the entire import declaration
|
|
31
|
+
if (namedImports.elements.length === 1) {
|
|
32
|
+
return computeRemovePosition(importDeclaration);
|
|
33
|
+
}
|
|
34
|
+
// Otherwise, just remove the specific import element
|
|
35
|
+
return computeRemovePosition(importElement);
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Find StyleLazyLoaderModule in any decorator's imports array (NgModule, Component, Injectable, etc.)
|
|
39
|
+
* @param node
|
|
40
|
+
*/
|
|
41
|
+
const findStyleLazyLoaderModuleInImports = (node) => {
|
|
42
|
+
const decorators = ts.getDecorators(node);
|
|
43
|
+
if (!decorators) {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
const moduleReferences = [];
|
|
47
|
+
decorators.forEach((decorator) => {
|
|
48
|
+
if (!ts.isCallExpression(decorator.expression)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const metadata = decorator.expression.arguments[0];
|
|
52
|
+
if (!metadata || !ts.isObjectLiteralExpression(metadata)) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const importsProperty = metadata.properties.find((prop) => ts.isPropertyAssignment(prop)
|
|
56
|
+
&& ts.isIdentifier(prop.name)
|
|
57
|
+
&& prop.name.escapedText.toString() === 'imports');
|
|
58
|
+
if (!importsProperty || !ts.isArrayLiteralExpression(importsProperty.initializer)) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const moduleReference = importsProperty.initializer.elements.find((element) => ts.isIdentifier(element) && element.escapedText.toString() === 'StyleLazyLoaderModule');
|
|
62
|
+
if (moduleReference) {
|
|
63
|
+
moduleReferences.push(moduleReference);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
return moduleReferences;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Remove StyleLazyLoaderModule from decorator imports arrays and import statements
|
|
70
|
+
* @param tree
|
|
71
|
+
* @param context
|
|
72
|
+
*/
|
|
73
|
+
const removeStyleLazyLoaderModule = (tree, context) => {
|
|
74
|
+
const files = (0, schematics_1.findFilesInTree)(tree.getDir('/'), (filePath) => /\.ts$/.test(filePath));
|
|
75
|
+
files.forEach(({ path }) => {
|
|
76
|
+
const source = ts.createSourceFile(path, tree.readText(path), ts.ScriptTarget.ES2015, true);
|
|
77
|
+
const recorder = tree.beginUpdate(path);
|
|
78
|
+
let shouldRemoveImport = false;
|
|
79
|
+
source.forEachChild((node) => {
|
|
80
|
+
if (ts.isClassDeclaration(node)) {
|
|
81
|
+
const moduleReferences = findStyleLazyLoaderModuleInImports(node);
|
|
82
|
+
if (moduleReferences.length > 0) {
|
|
83
|
+
moduleReferences.forEach((moduleReference) => {
|
|
84
|
+
recorder.remove(moduleReference.getFullStart(), moduleReference.getEnd() - moduleReference.getFullStart());
|
|
85
|
+
});
|
|
86
|
+
shouldRemoveImport = true;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
// Remove the import statement once per file if any references were found
|
|
91
|
+
if (shouldRemoveImport) {
|
|
92
|
+
const removePos = removeImport(source, 'StyleLazyLoaderModule', '@o3r/dynamic-content');
|
|
93
|
+
if (removePos) {
|
|
94
|
+
recorder.remove(removePos.start, removePos.length);
|
|
95
|
+
}
|
|
96
|
+
context.logger.info(`Removed StyleLazyLoaderModule from ${path}`);
|
|
97
|
+
tree.commitUpdate(recorder);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
// No changes, discard the recorder
|
|
101
|
+
tree.commitUpdate(recorder);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return tree;
|
|
105
|
+
};
|
|
106
|
+
exports.removeStyleLazyLoaderModule = removeStyleLazyLoaderModule;
|
|
107
|
+
/**
|
|
108
|
+
* Update of Otter library V14.0
|
|
109
|
+
*/
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- function name contains the version
|
|
111
|
+
function updateV14_0Fn() {
|
|
112
|
+
return exports.removeStyleLazyLoaderModule;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Update of Otter library V14.0
|
|
116
|
+
*/
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- function name contains the version
|
|
118
|
+
exports.updateV14_0 = (0, schematics_1.createOtterSchematic)(updateV14_0Fn);
|
|
119
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v14-0/index.ts"],"names":[],"mappings":";;;AAKA,gDAGyB;AACzB,iCAAiC;AAOjC;;;GAGG;AACH,MAAM,qBAAqB,GAAG,CAAC,IAAa,EAAkB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAE/I;;;;;;GAMG;AACH,MAAM,YAAY,GAAG,CAAC,MAAqB,EAAE,UAAkB,EAAE,QAAgB,EAA8B,EAAE;IAC/G,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAqC,EAAE,CAChG,EAAE,CA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,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,mCAAmC;YACnC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAnCW,QAAA,2BAA2B,+BAmCtC;AAEF;;GAEG;AACH,sGAAsG;AACtG,SAAS,aAAa;IACpB,OAAO,mCAA2B,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,sGAAsG;AACzF,QAAA,WAAW,GAAG,IAAA,iCAAoB,EAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,11 +1,60 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Provider, EnvironmentProviders, PipeTransform, OnDestroy, ChangeDetectorRef, InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
5
|
import * as _ngrx_store from '@ngrx/store';
|
|
6
6
|
import { ActionReducer, Action, ReducerTypes, ActionCreator } from '@ngrx/store';
|
|
7
7
|
import { SetStateActionPayload, Serializer } from '@o3r/core';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Function to get dynamic content from body dataset
|
|
11
|
+
*/
|
|
12
|
+
declare function getDynamicContent(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Function to get the cms assets from body dataset
|
|
15
|
+
* This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor
|
|
16
|
+
*/
|
|
17
|
+
declare function getCmsAssets(): string;
|
|
18
|
+
type DynamicContentFeatureKind = 'base-path' | 'cms-assets-path';
|
|
19
|
+
interface DynamicContentFeature<FeatureKind extends DynamicContentFeatureKind> {
|
|
20
|
+
ɵkind: FeatureKind;
|
|
21
|
+
ɵproviders: Provider[];
|
|
22
|
+
}
|
|
23
|
+
type BasePathFeature = DynamicContentFeature<'base-path'>;
|
|
24
|
+
type CmsAssetsPathFeature = DynamicContentFeature<'cms-assets-path'>;
|
|
25
|
+
type DynamicContentFeatures = BasePathFeature | CmsAssetsPathFeature;
|
|
26
|
+
/**
|
|
27
|
+
* Specify a custom base path
|
|
28
|
+
* @param basePath
|
|
29
|
+
*/
|
|
30
|
+
declare function withBasePath(basePath: string | (() => string)): BasePathFeature;
|
|
31
|
+
/**
|
|
32
|
+
* Specify a custom CMS assets path
|
|
33
|
+
* @param cmsAssetsPath
|
|
34
|
+
*/
|
|
35
|
+
declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'>;
|
|
36
|
+
/**
|
|
37
|
+
* Provide dynamic content default configuration.
|
|
38
|
+
* To customize the location where the application will search for the base path of dynamic content
|
|
39
|
+
* @see {@link withBasePath}
|
|
40
|
+
* @see {@link withCmsAssetsPath}
|
|
41
|
+
* @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content
|
|
42
|
+
* @param features
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* bootstrapApplication(App,
|
|
46
|
+
* {
|
|
47
|
+
* providers: [
|
|
48
|
+
* provideDynamicContent(
|
|
49
|
+
* withBasePath('custom/base/path'),
|
|
50
|
+
* withCmsAssetsPath('custom/cms/assets/path'),
|
|
51
|
+
* )
|
|
52
|
+
* ]
|
|
53
|
+
* }
|
|
54
|
+
* );
|
|
55
|
+
*/
|
|
56
|
+
declare function provideDynamicContent(...features: DynamicContentFeatures[]): EnvironmentProviders;
|
|
57
|
+
|
|
9
58
|
/**
|
|
10
59
|
* Service for getting dynamic content path
|
|
11
60
|
*/
|
|
@@ -60,77 +109,6 @@ declare class O3rDynamicContentPipe implements PipeTransform, OnDestroy {
|
|
|
60
109
|
static ɵpipe: i0.ɵɵPipeDeclaration<O3rDynamicContentPipe, "o3rDynamicContent", true>;
|
|
61
110
|
}
|
|
62
111
|
|
|
63
|
-
/**
|
|
64
|
-
* Function to get dynamic content from body dataset
|
|
65
|
-
*/
|
|
66
|
-
declare function getDynamicContent(): string;
|
|
67
|
-
/**
|
|
68
|
-
* Function to get the cms assets from body dataset
|
|
69
|
-
* This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor
|
|
70
|
-
*/
|
|
71
|
-
declare function getCmsAssets(): string;
|
|
72
|
-
/**
|
|
73
|
-
* DynamicContent module
|
|
74
|
-
* @deprecated Will be removed in v14.
|
|
75
|
-
*/
|
|
76
|
-
declare class DynamicContentModule {
|
|
77
|
-
/**
|
|
78
|
-
* Customize the location where the application will search for the base path of dynamic content
|
|
79
|
-
* @param dynamicPath Configuration for dynamic content path
|
|
80
|
-
* @param dynamicPath.content The string will be used as base path of dynamic content
|
|
81
|
-
* @param dynamicPath.cmsAssets The string will be used for the the base path of cms assets
|
|
82
|
-
* @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content
|
|
83
|
-
* @deprecated Please use {@link provideDynamicContent} instead. Will be removed in v14.
|
|
84
|
-
*/
|
|
85
|
-
static forRoot(dynamicPath: {
|
|
86
|
-
content: string;
|
|
87
|
-
} | {
|
|
88
|
-
cmsAssets: string;
|
|
89
|
-
}): ModuleWithProviders<DynamicContentModule>;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentModule, never>;
|
|
91
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicContentModule, never, [typeof O3rDynamicContentPipe], [typeof O3rDynamicContentPipe]>;
|
|
92
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DynamicContentModule>;
|
|
93
|
-
}
|
|
94
|
-
type DynamicContentFeatureKind = 'base-path' | 'cms-assets-path';
|
|
95
|
-
interface DynamicContentFeature<FeatureKind extends DynamicContentFeatureKind> {
|
|
96
|
-
ɵkind: FeatureKind;
|
|
97
|
-
ɵproviders: Provider[];
|
|
98
|
-
}
|
|
99
|
-
type BasePathFeature = DynamicContentFeature<'base-path'>;
|
|
100
|
-
type CmsAssetsPathFeature = DynamicContentFeature<'cms-assets-path'>;
|
|
101
|
-
type DynamicContentFeatures = BasePathFeature | CmsAssetsPathFeature;
|
|
102
|
-
/**
|
|
103
|
-
* Specify a custom base path
|
|
104
|
-
* @param basePath
|
|
105
|
-
*/
|
|
106
|
-
declare function withBasePath(basePath: string | (() => string)): BasePathFeature;
|
|
107
|
-
/**
|
|
108
|
-
* Specify a custom CMS assets path
|
|
109
|
-
* @param cmsAssetsPath
|
|
110
|
-
*/
|
|
111
|
-
declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'>;
|
|
112
|
-
/**
|
|
113
|
-
* Provide dynamic content default configuration.
|
|
114
|
-
* To customize the location where the application will search for the base path of dynamic content
|
|
115
|
-
* @see {@link withBasePath}
|
|
116
|
-
* @see {@link withCmsAssetsPath}
|
|
117
|
-
* @note The cmsAssets will be used only in the cms editor mode and it will take priority over dynamic content
|
|
118
|
-
* @param features
|
|
119
|
-
* @example
|
|
120
|
-
* ```typescript
|
|
121
|
-
* bootstrapApplication(App,
|
|
122
|
-
* {
|
|
123
|
-
* providers: [
|
|
124
|
-
* provideDynamicContent(
|
|
125
|
-
* withBasePath('custom/base/path'),
|
|
126
|
-
* withCmsAssetsPath('custom/cms/assets/path'),
|
|
127
|
-
* )
|
|
128
|
-
* ]
|
|
129
|
-
* }
|
|
130
|
-
* );
|
|
131
|
-
*/
|
|
132
|
-
declare function provideDynamicContent(...features: DynamicContentFeatures[]): EnvironmentProviders;
|
|
133
|
-
|
|
134
112
|
/**
|
|
135
113
|
* Injection token for the rootpath of dynamic content
|
|
136
114
|
*/
|
|
@@ -181,21 +159,6 @@ declare const defaultRequestParametersConfig: Readonly<RequestParametersConfig>;
|
|
|
181
159
|
* Empty configuration factory, used when config is not provided. It needs a separate function for AOT.
|
|
182
160
|
*/
|
|
183
161
|
declare function defaultConfigFactory(): {};
|
|
184
|
-
/**
|
|
185
|
-
* RequestParametersService Module
|
|
186
|
-
* @deprecated Will be removed in v14.
|
|
187
|
-
*/
|
|
188
|
-
declare class RequestParametersModule {
|
|
189
|
-
/**
|
|
190
|
-
* Provide request parameters config
|
|
191
|
-
* @param config
|
|
192
|
-
* @deprecated Please use {@link provideRequestParameters} instead. Will be removed in v14.
|
|
193
|
-
*/
|
|
194
|
-
static forRoot(config?: () => Partial<RequestParametersConfig>): ModuleWithProviders<RequestParametersModule>;
|
|
195
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersModule, never>;
|
|
196
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RequestParametersModule, never, never, never>;
|
|
197
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<RequestParametersModule>;
|
|
198
|
-
}
|
|
199
162
|
/**
|
|
200
163
|
* Provide request parameters config
|
|
201
164
|
* We don't provide directly the value and use a factory because otherwise AOT compilation will resolve to undefined whatever is taken from window
|
|
@@ -301,9 +264,12 @@ declare class RequestParametersService implements ParamsType {
|
|
|
301
264
|
static ɵprov: i0.ɵɵInjectableDeclaration<RequestParametersService>;
|
|
302
265
|
}
|
|
303
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @deprecated Will be removed in v15
|
|
269
|
+
*/
|
|
304
270
|
declare class StyleLazyLoaderModule {
|
|
305
271
|
static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoaderModule, never>;
|
|
306
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StyleLazyLoaderModule, never,
|
|
272
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StyleLazyLoaderModule, never, never, never>;
|
|
307
273
|
static ɵinj: i0.ɵɵInjectorDeclaration<StyleLazyLoaderModule>;
|
|
308
274
|
}
|
|
309
275
|
|
|
@@ -402,6 +368,6 @@ declare const selectAssetPathOverride: _ngrx_store.MemoizedSelector<object, Reco
|
|
|
402
368
|
declare const assetPathOverrideStorageDeserializer: (rawObject: any) => any;
|
|
403
369
|
declare const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState>;
|
|
404
370
|
|
|
405
|
-
export { ASSET_PATH_OVERRIDE_REDUCER_TOKEN, ASSET_PATH_OVERRIDE_STORE_NAME, AssetPathOverrideStoreModule, CMS_ASSETS_PATH_TOKEN, DYNAMIC_CONTENT_BASE_PATH_TOKEN,
|
|
371
|
+
export { ASSET_PATH_OVERRIDE_REDUCER_TOKEN, ASSET_PATH_OVERRIDE_STORE_NAME, AssetPathOverrideStoreModule, CMS_ASSETS_PATH_TOKEN, DYNAMIC_CONTENT_BASE_PATH_TOKEN, DynamicContentService, O3rDynamicContentPipe, RequestParametersService, StorageStrategy, StyleLazyLoader, StyleLazyLoaderModule, assetPathOverrideInitialState, assetPathOverrideReducer, assetPathOverrideReducerFeatures, assetPathOverrideStorageDeserializer, assetPathOverrideStorageSync, defaultConfigFactory, defaultRequestParametersConfig, getCmsAssets, getDefaultAssetPathOverrideReducer, getDynamicContent, provideDynamicContent, provideRequestParameters, selectAssetPathOverride, selectAssetPathOverrideState, setAssetPathOverride, withBasePath, withCmsAssetsPath };
|
|
406
372
|
export type { AssetPathOverrideState, AssetPathOverrideStore, ParamsList, ParamsType, PartialRequestParametersConfig, RequestParametersConfig, StyleURL };
|
|
407
373
|
//# sourceMappingURL=o3r-dynamic-content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-dynamic-content.d.ts","sources":["../../src/services/dynamic-content/dynamic-content-
|
|
1
|
+
{"version":3,"file":"o3r-dynamic-content.d.ts","sources":["../../src/services/dynamic-content/dynamic-content-module.ts","../../src/services/dynamic-content/dynamic-content-service.ts","../../src/services/dynamic-content/dynamic-content-pipe.ts","../../src/services/dynamic-content/dynamic-content-token.ts","../../src/services/request-parameters/request-parameters-config.ts","../../src/services/request-parameters/request-parameters-module.ts","../../src/services/request-parameters/request-parameters-service.ts","../../src/services/styling/style-lazy-loader-module.ts","../../src/services/styling/style-lazy-loader.ts","../../src/stores/asset-path-override/asset-path-override.state.ts","../../src/stores/asset-path-override/asset-path-override.actions.ts","../../src/stores/asset-path-override/asset-path-override-module.ts","../../src/stores/asset-path-override/asset-path-override.reducer.ts","../../src/stores/asset-path-override/asset-path-override.selectors.ts","../../src/stores/asset-path-override/asset-path-override.sync.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_angular_core"],"mappings":";;;;;;;;AAaA;;AAEG;AACH,iBAAA,iBAAA;AAIA;;;AAGG;AACH,iBAAA,YAAA;AAIA,KAAA,yBAAA;AAEA,UAAA,qBAAA,qBAAA,yBAAA;;;AAGC;AAED,KAAA,eAAA,GAAA,qBAAA;AACA,KAAA,oBAAA,GAAA,qBAAA;AAEA,KAAA,sBAAA,GAAA,eAAA,GAAA,oBAAA;AAEA;;;AAGG;AACH,iBAAA,YAAA,qCAAA,eAAA;AAgBA;;;AAGG;AACH,iBAAA,iBAAA,0CAAA,qBAAA;AAgBA;;;;;;;;;;;;;;;;;;;AAmBG;AACH,iBAAA,qBAAA,cAAA,sBAAA,KAAA,oBAAA;;ACzEA;;AAEG;AACH,cAAA,qBAAA;AAEE;AACA;;AAIA;;AASA;AAIA;AAKA;AAOA;;;;;;;;AAQG;AACI,8CAAuC,IAAA,CAAA,UAAA;AAI9C;;;;;;;;;AASG;AACI,4CAAqC,IAAA,CAAA,UAAA;;;AAY7C;;ACnFD,cAAA,qBAAA,YAAA,aAAA,EAAA,SAAA;AAKE,gCAAA,qBAAA;AACA,2BAAA,iBAAA;;AAGA;;AAGA,kCAAA,YAAA;;;;AAMO;;AAgBA;;;AAKR;;ACjDD;;AAEG;AACH,cAAA,+BAAA,EAAA,cAAA;AAEA;;;AAGG;AACH,cAAA,qBAAA,EAAA,cAAA;;ACbA;;;;;;AAMG;AAEH,aAAA,eAAA;AAEE;AAEA;AAEA;AAEA;AACD;AAED;;AAEG;;AAED;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEJ;AAED,cAAA,8BAAA,EAAA,QAAA,CAAA,uBAAA;;AC5BA;;AAEG;AACH,iBAAA,oBAAA;AAIA;;;;AAIG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