@o3r/dynamic-content 14.6.0-prerelease.9 → 15.1.0-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/o3r-dynamic-content-rules-engine.mjs +22 -10
- package/fesm2022/o3r-dynamic-content-rules-engine.mjs.map +1 -1
- package/fesm2022/o3r-dynamic-content.mjs +31 -32
- package/fesm2022/o3r-dynamic-content.mjs.map +1 -1
- package/middlewares/parameter-extractor-middleware.js +4 -3
- package/middlewares/parameter-extractor-middleware.js.map +1 -1
- package/package.json +13 -13
- package/schematics/ng-add/index.js +2 -1
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-update/v14-0/index.js +2 -1
- package/schematics/ng-update/v14-0/index.js.map +1 -1
- package/types/o3r-dynamic-content-rules-engine.d.ts +9 -1
- package/types/o3r-dynamic-content-rules-engine.d.ts.map +1 -1
- package/types/o3r-dynamic-content.d.ts +9 -10
- package/types/o3r-dynamic-content.d.ts.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable, NgModule } from '@angular/core';
|
|
2
|
+
import { inject, Injectable, NgModule, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
|
-
import { setAssetPathOverride, AssetPathOverrideStoreModule } from '@o3r/dynamic-content';
|
|
4
|
+
import { setAssetPathOverride, AssetPathOverrideStoreModule, provideAssetPathOverrideStore } from '@o3r/dynamic-content';
|
|
5
5
|
|
|
6
6
|
/** ActionUpdateAssetBlock */
|
|
7
7
|
const RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE = 'UPDATE_ASSET';
|
|
@@ -23,21 +23,24 @@ 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: "
|
|
27
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
26
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetRulesEngineActionHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
27
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetRulesEngineActionHandler }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetRulesEngineActionHandler, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
31
|
}] });
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Will be removed in v16. Use {@link provideAssetRulesEngineAction} instead.
|
|
35
|
+
*/
|
|
33
36
|
class AssetRulesEngineActionModule {
|
|
34
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
35
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
36
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
37
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetRulesEngineActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
38
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AssetRulesEngineActionModule, imports: [AssetPathOverrideStoreModule] }); }
|
|
39
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetRulesEngineActionModule, providers: [
|
|
37
40
|
AssetRulesEngineActionHandler
|
|
38
41
|
], imports: [AssetPathOverrideStoreModule] }); }
|
|
39
42
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetRulesEngineActionModule, decorators: [{
|
|
41
44
|
type: NgModule,
|
|
42
45
|
args: [{
|
|
43
46
|
imports: [
|
|
@@ -48,10 +51,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
48
51
|
]
|
|
49
52
|
}]
|
|
50
53
|
}] });
|
|
54
|
+
/**
|
|
55
|
+
* Provide asset rules engine action handler.
|
|
56
|
+
*/
|
|
57
|
+
function provideAssetRulesEngineAction() {
|
|
58
|
+
return makeEnvironmentProviders([
|
|
59
|
+
provideAssetPathOverrideStore(),
|
|
60
|
+
AssetRulesEngineActionHandler
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
51
63
|
|
|
52
64
|
/**
|
|
53
65
|
* Generated bundle index. Do not edit.
|
|
54
66
|
*/
|
|
55
67
|
|
|
56
|
-
export { AssetRulesEngineActionHandler, AssetRulesEngineActionModule, RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE };
|
|
68
|
+
export { AssetRulesEngineActionHandler, AssetRulesEngineActionModule, RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE, provideAssetRulesEngineAction };
|
|
57
69
|
//# sourceMappingURL=o3r-dynamic-content-rules-engine.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-dynamic-content-rules-engine.mjs","sources":["../../src/rules-engine/asset-interfaces.ts","../../src/rules-engine/asset-rules-engine-action-handler.ts","../../src/rules-engine/asset-rules-engine-action-module.ts","../../src/rules-engine/o3r-dynamic-content-rules-engine.ts"],"sourcesContent":["import type {\n RulesEngineAction,\n} from '@o3r/core';\n\n/** ActionUpdateAssetBlock */\nexport const RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE = 'UPDATE_ASSET';\n\n/**\n * Content of action that updates asset\n */\nexport interface ActionUpdateAssetBlock extends RulesEngineAction {\n actionType: typeof RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE;\n asset: string;\n value: string;\n}\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n Store,\n} from '@ngrx/store';\nimport type {\n RulesEngineActionHandler,\n} from '@o3r/core';\nimport {\n ActionUpdateAssetBlock,\n RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE,\n} from './asset-interfaces';\nimport {\n AssetPathOverrideStore,\n setAssetPathOverride,\n} from '@o3r/dynamic-content';\n\n/**\n * Service to handle async Asset actions\n */\n@Injectable()\nexport class AssetRulesEngineActionHandler implements RulesEngineActionHandler<ActionUpdateAssetBlock> {\n private readonly store = inject<Store<AssetPathOverrideStore>>(Store);\n\n /** @inheritdoc */\n public readonly supportingActions = [RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE] as const;\n\n /** @inheritdoc */\n public executeActions(actions: ActionUpdateAssetBlock[]): void | Promise<void> {\n const assetPathOverrides = actions.reduce<Record<string, string>>((acc, { asset, value }) => {\n acc[asset] = value;\n return acc;\n }, {});\n\n this.store.dispatch(setAssetPathOverride({ state: { assetPathOverrides } }));\n }\n}\n","import {\n NgModule,\n} from '@angular/core';\nimport {\n AssetRulesEngineActionHandler,\n} from './asset-rules-engine-action-handler';\nimport {\n AssetPathOverrideStoreModule,\n} from '@o3r/dynamic-content';\n\n@NgModule({\n imports: [\n AssetPathOverrideStoreModule\n ],\n providers: [\n AssetRulesEngineActionHandler\n ]\n})\nexport class AssetRulesEngineActionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;AAIA;AACO,MAAM,qCAAqC,GAAG;;ACcrD;;AAEG;MAEU,6BAA6B,CAAA;AAD1C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAgC,KAAK,CAAC;;AAGrD,QAAA,IAAA,CAAA,iBAAiB,GAAG,CAAC,qCAAqC,CAAU;AAWrF,IAAA;;AARQ,IAAA,cAAc,CAAC,OAAiC,EAAA;AACrD,QAAA,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAyB,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAI;AAC1F,YAAA,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK;AAClB,YAAA,OAAO,GAAG;QACZ,CAAC,EAAE,EAAE,CAAC;AAEN,QAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAC9E;
|
|
1
|
+
{"version":3,"file":"o3r-dynamic-content-rules-engine.mjs","sources":["../../src/rules-engine/asset-interfaces.ts","../../src/rules-engine/asset-rules-engine-action-handler.ts","../../src/rules-engine/asset-rules-engine-action-module.ts","../../src/rules-engine/o3r-dynamic-content-rules-engine.ts"],"sourcesContent":["import type {\n RulesEngineAction,\n} from '@o3r/core';\n\n/** ActionUpdateAssetBlock */\nexport const RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE = 'UPDATE_ASSET';\n\n/**\n * Content of action that updates asset\n */\nexport interface ActionUpdateAssetBlock extends RulesEngineAction {\n actionType: typeof RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE;\n asset: string;\n value: string;\n}\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport {\n Store,\n} from '@ngrx/store';\nimport type {\n RulesEngineActionHandler,\n} from '@o3r/core';\nimport {\n ActionUpdateAssetBlock,\n RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE,\n} from './asset-interfaces';\nimport {\n AssetPathOverrideStore,\n setAssetPathOverride,\n} from '@o3r/dynamic-content';\n\n/**\n * Service to handle async Asset actions\n */\n@Injectable()\nexport class AssetRulesEngineActionHandler implements RulesEngineActionHandler<ActionUpdateAssetBlock> {\n private readonly store = inject<Store<AssetPathOverrideStore>>(Store);\n\n /** @inheritdoc */\n public readonly supportingActions = [RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE] as const;\n\n /** @inheritdoc */\n public executeActions(actions: ActionUpdateAssetBlock[]): void | Promise<void> {\n const assetPathOverrides = actions.reduce<Record<string, string>>((acc, { asset, value }) => {\n acc[asset] = value;\n return acc;\n }, {});\n\n this.store.dispatch(setAssetPathOverride({ state: { assetPathOverrides } }));\n }\n}\n","import {\n EnvironmentProviders,\n makeEnvironmentProviders,\n NgModule,\n} from '@angular/core';\nimport {\n AssetRulesEngineActionHandler,\n} from './asset-rules-engine-action-handler';\nimport {\n AssetPathOverrideStoreModule,\n provideAssetPathOverrideStore,\n} from '@o3r/dynamic-content';\n\n/**\n * @deprecated Will be removed in v16. Use {@link provideAssetRulesEngineAction} instead.\n */\n@NgModule({\n imports: [\n AssetPathOverrideStoreModule\n ],\n providers: [\n AssetRulesEngineActionHandler\n ]\n})\nexport class AssetRulesEngineActionModule {}\n\n/**\n * Provide asset rules engine action handler.\n */\nexport function provideAssetRulesEngineAction(): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideAssetPathOverrideStore(),\n AssetRulesEngineActionHandler\n ]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;AAIA;AACO,MAAM,qCAAqC,GAAG;;ACcrD;;AAEG;MAEU,6BAA6B,CAAA;AAD1C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAgC,KAAK,CAAC;;AAGrD,QAAA,IAAA,CAAA,iBAAiB,GAAG,CAAC,qCAAqC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EAAA,CAAA;kBARxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP;AACD,qBAAA;AACD,oBAAA,SAAS,EAAE;wBACT;AACD;AACF,iBAAA;;AAGD;;AAEG;SACa,6BAA6B,GAAA;AAC3C,IAAA,OAAO,wBAAwB,CAAC;AAC9B,QAAA,6BAA6B,EAAE;QAC/B;AACD,KAAA,CAAC;AACJ;;AClCA;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, NgModule, inject, Injectable,
|
|
2
|
+
import { InjectionToken, NgModule, makeEnvironmentProviders, inject, Injectable, ChangeDetectorRef, Pipe } from '@angular/core';
|
|
3
3
|
import * as i1 from '@ngrx/store';
|
|
4
|
-
import { createAction, props, on, createReducer, StoreModule, createFeatureSelector, createSelector, Store, select } from '@ngrx/store';
|
|
4
|
+
import { createAction, props, on, createReducer, StoreModule, provideState, createFeatureSelector, createSelector, Store, select } from '@ngrx/store';
|
|
5
5
|
import { of, firstValueFrom } from 'rxjs';
|
|
6
6
|
import { map, distinctUntilChanged, shareReplay } from 'rxjs/operators';
|
|
7
7
|
|
|
@@ -38,6 +38,9 @@ const ASSET_PATH_OVERRIDE_REDUCER_TOKEN = new InjectionToken('Feature AssetPathO
|
|
|
38
38
|
function getDefaultAssetPathOverrideReducer() {
|
|
39
39
|
return assetPathOverrideReducer;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Will be removed in v16. Use {@link provideAssetPathOverrideStore} instead.
|
|
43
|
+
*/
|
|
41
44
|
class AssetPathOverrideStoreModule {
|
|
42
45
|
static forRoot(reducerFactory) {
|
|
43
46
|
return {
|
|
@@ -47,13 +50,13 @@ class AssetPathOverrideStoreModule {
|
|
|
47
50
|
]
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
51
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
52
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
53
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetPathOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
54
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AssetPathOverrideStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
55
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetPathOverrideStoreModule, providers: [
|
|
53
56
|
{ provide: ASSET_PATH_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultAssetPathOverrideReducer }
|
|
54
57
|
], imports: [StoreModule.forFeature(ASSET_PATH_OVERRIDE_STORE_NAME, ASSET_PATH_OVERRIDE_REDUCER_TOKEN)] }); }
|
|
55
58
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AssetPathOverrideStoreModule, decorators: [{
|
|
57
60
|
type: NgModule,
|
|
58
61
|
args: [{
|
|
59
62
|
imports: [
|
|
@@ -64,6 +67,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
64
67
|
]
|
|
65
68
|
}]
|
|
66
69
|
}] });
|
|
70
|
+
/**
|
|
71
|
+
* Provide AssetPathOverride feature store.
|
|
72
|
+
* @param reducerFactory Optional factory to override the default reducer.
|
|
73
|
+
*/
|
|
74
|
+
function provideAssetPathOverrideStore(reducerFactory) {
|
|
75
|
+
return makeEnvironmentProviders([
|
|
76
|
+
provideState(ASSET_PATH_OVERRIDE_STORE_NAME, reducerFactory ? reducerFactory() : assetPathOverrideReducer)
|
|
77
|
+
]);
|
|
78
|
+
}
|
|
67
79
|
|
|
68
80
|
/** Select AssetPathOverride State */
|
|
69
81
|
const selectAssetPathOverrideState = createFeatureSelector(ASSET_PATH_OVERRIDE_STORE_NAME);
|
|
@@ -156,10 +168,10 @@ class DynamicContentService {
|
|
|
156
168
|
}
|
|
157
169
|
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 }));
|
|
158
170
|
}
|
|
159
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
160
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
171
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DynamicContentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
172
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DynamicContentService }); }
|
|
161
173
|
}
|
|
162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DynamicContentService, decorators: [{
|
|
163
175
|
type: Injectable
|
|
164
176
|
}], ctorParameters: () => [] });
|
|
165
177
|
|
|
@@ -268,10 +280,10 @@ class O3rDynamicContentPipe {
|
|
|
268
280
|
this.onMediaPathChange.unsubscribe();
|
|
269
281
|
}
|
|
270
282
|
}
|
|
271
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
272
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
283
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rDynamicContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
284
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: O3rDynamicContentPipe, isStandalone: true, name: "o3rDynamicContent", pure: false }); }
|
|
273
285
|
}
|
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rDynamicContentPipe, decorators: [{
|
|
275
287
|
type: Pipe,
|
|
276
288
|
args: [{
|
|
277
289
|
name: 'o3rDynamicContent',
|
|
@@ -480,10 +492,10 @@ class RequestParametersService {
|
|
|
480
492
|
return acc;
|
|
481
493
|
}, {});
|
|
482
494
|
}
|
|
483
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
484
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
495
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RequestParametersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
496
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RequestParametersService }); }
|
|
485
497
|
}
|
|
486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RequestParametersService, decorators: [{
|
|
487
499
|
type: Injectable
|
|
488
500
|
}], ctorParameters: () => [] });
|
|
489
501
|
|
|
@@ -508,19 +520,6 @@ function provideRequestParameters(config = defaultConfigFactory) {
|
|
|
508
520
|
]);
|
|
509
521
|
}
|
|
510
522
|
|
|
511
|
-
/**
|
|
512
|
-
* @deprecated Will be removed in v15
|
|
513
|
-
*/
|
|
514
|
-
class StyleLazyLoaderModule {
|
|
515
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: StyleLazyLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
516
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.17", ngImport: i0, type: StyleLazyLoaderModule }); }
|
|
517
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: StyleLazyLoaderModule }); }
|
|
518
|
-
}
|
|
519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: StyleLazyLoaderModule, decorators: [{
|
|
520
|
-
type: NgModule,
|
|
521
|
-
args: [{}]
|
|
522
|
-
}] });
|
|
523
|
-
|
|
524
523
|
/**
|
|
525
524
|
* Service to lazy load a CSS file
|
|
526
525
|
*/
|
|
@@ -563,10 +562,10 @@ class StyleLazyLoader {
|
|
|
563
562
|
styleUrlConfig.href = dynamicContentPath;
|
|
564
563
|
this.loadStyleFromURL(styleUrlConfig);
|
|
565
564
|
}
|
|
566
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
567
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
565
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: StyleLazyLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
566
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: StyleLazyLoader, providedIn: 'root' }); }
|
|
568
567
|
}
|
|
569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
568
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: StyleLazyLoader, decorators: [{
|
|
570
569
|
type: Injectable,
|
|
571
570
|
args: [{
|
|
572
571
|
providedIn: 'root'
|
|
@@ -577,5 +576,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
577
576
|
* Generated bundle index. Do not edit.
|
|
578
577
|
*/
|
|
579
578
|
|
|
580
|
-
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,
|
|
579
|
+
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, assetPathOverrideInitialState, assetPathOverrideReducer, assetPathOverrideReducerFeatures, assetPathOverrideStorageDeserializer, assetPathOverrideStorageSync, defaultConfigFactory, defaultRequestParametersConfig, getCmsAssets, getDefaultAssetPathOverrideReducer, getDynamicContent, provideAssetPathOverrideStore, provideDynamicContent, provideRequestParameters, selectAssetPathOverride, selectAssetPathOverrideState, setAssetPathOverride, withBasePath, withCmsAssetsPath };
|
|
581
580
|
//# 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-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 isAbsoluteUrl(assetPath: string): boolean {\n return URL.canParse(assetPath);\n }\n\n private getContentPath(assetPath?: string) {\n if (assetPath && this.isAbsoluteUrl(assetPath)) {\n return assetPath;\n }\n const normalizedAssetPath = this.normalizePath(assetPath);\n return this.basePath === '' ? assetPath || '' : `${this.basePath}/${normalizedAssetPath}`;\n }\n\n private getMediaPath(assetPath?: string) {\n if (assetPath && this.isAbsoluteUrl(assetPath)) {\n return assetPath;\n }\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;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;kIARW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAA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,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;kIA3CW,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,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA;;4FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;AC9BD;;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.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 EnvironmentProviders,\n InjectionToken,\n makeEnvironmentProviders,\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport {\n Action,\n ActionReducer,\n provideState,\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/**\n * @deprecated Will be removed in v16. Use {@link provideAssetPathOverrideStore} instead.\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\n/**\n * Provide AssetPathOverride feature store.\n * @param reducerFactory Optional factory to override the default reducer.\n */\nexport function provideAssetPathOverrideStore(reducerFactory?: () => ActionReducer<AssetPathOverrideState, Action>): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideState(ASSET_PATH_OVERRIDE_STORE_NAME, reducerFactory ? reducerFactory() : assetPathOverrideReducer)\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 isAbsoluteUrl(assetPath: string): boolean {\n return URL.canParse(assetPath);\n }\n\n private getContentPath(assetPath?: string) {\n if (assetPath && this.isAbsoluteUrl(assetPath)) {\n return assetPath;\n }\n const normalizedAssetPath = this.normalizePath(assetPath);\n return this.basePath === '' ? assetPath || '' : `${this.basePath}/${normalizedAssetPath}`;\n }\n\n private getMediaPath(assetPath?: string) {\n if (assetPath && this.isAbsoluteUrl(assetPath)) {\n return assetPath;\n }\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 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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AA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setup = setup;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- requires NodeNext module resolution
|
|
5
6
|
// @ts-ignore
|
|
6
|
-
const cheerio = require("cheerio");
|
|
7
|
+
const cheerio = tslib_1.__importStar(require("cheerio"));
|
|
7
8
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- no type are provided for express-interceptor
|
|
8
9
|
// @ts-ignore
|
|
9
|
-
const expressInterceptor = require("express-interceptor");
|
|
10
|
-
const querystring = require("node:querystring");
|
|
10
|
+
const expressInterceptor = tslib_1.__importStar(require("express-interceptor"));
|
|
11
|
+
const querystring = tslib_1.__importStar(require("node:querystring"));
|
|
11
12
|
let previousPostParams = {};
|
|
12
13
|
const middleware = () => expressInterceptor((req, res) => ({
|
|
13
14
|
isInterceptable: () => /text\/html/.test(res.get('Content-Type')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-extractor-middleware.js","sourceRoot":"","sources":["../../middlewares/parameter-extractor-middleware.ts"],"names":[],"mappings":";;AA8BA,sBAWC
|
|
1
|
+
{"version":3,"file":"parameter-extractor-middleware.js","sourceRoot":"","sources":["../../middlewares/parameter-extractor-middleware.ts"],"names":[],"mappings":";;AA8BA,sBAWC;;AAzCD,oGAAoG;AACpG,aAAa;AACb,yDAAmC;AACnC,6GAA6G;AAC7G,aAAa;AACb,gFAA0D;AAC1D,sEAAgD;AAEhD,IAAI,kBAAkB,GAAG,EAAE,CAAC;AAE5B,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,G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AAC,CAAC;AACxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/dynamic-content",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.1.0-prerelease.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@angular-devkit/architect": ">=0.
|
|
40
|
-
"@angular-devkit/schematics": "^
|
|
41
|
-
"@angular/compiler-cli": "^
|
|
42
|
-
"@angular/core": "^
|
|
43
|
-
"@angular/platform-browser-dynamic": "^
|
|
44
|
-
"@ngrx/store": "
|
|
45
|
-
"@o3r/core": "~
|
|
46
|
-
"@o3r/schematics": "~
|
|
47
|
-
"@schematics/angular": "^
|
|
39
|
+
"@angular-devkit/architect": ">=0.2200.0 <0.2300.0-0",
|
|
40
|
+
"@angular-devkit/schematics": "^22.0.0",
|
|
41
|
+
"@angular/compiler-cli": "^22.0.0",
|
|
42
|
+
"@angular/core": "^22.0.0",
|
|
43
|
+
"@angular/platform-browser-dynamic": "^22.0.0",
|
|
44
|
+
"@ngrx/store": "22.0.0-rc.0",
|
|
45
|
+
"@o3r/core": "~15.1.0-prerelease.0",
|
|
46
|
+
"@o3r/schematics": "~15.1.0-prerelease.0",
|
|
47
|
+
"@schematics/angular": "^22.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
52
|
"type-fest": "^5.3.1",
|
|
53
|
-
"typescript": "^
|
|
53
|
+
"typescript": "^6.0.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@angular-devkit/schematics": {
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@o3r/schematics": "~
|
|
79
|
+
"@o3r/schematics": "~15.1.0-prerelease.0",
|
|
80
80
|
"tslib": "^2.6.2"
|
|
81
81
|
},
|
|
82
82
|
"engines": {
|
|
83
|
-
"node": "^22.
|
|
83
|
+
"node": "^22.22.3 || ^24.15.0 || ^26.0.0"
|
|
84
84
|
},
|
|
85
85
|
"schematics": "./collection.json",
|
|
86
86
|
"ng-update": {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const path = tslib_1.__importStar(require("node:path"));
|
|
5
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
7
|
const schematics_2 = require("@o3r/schematics");
|
|
7
8
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;;AAAA,wDAAkC;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"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateV14_0 = exports.removeStyleLazyLoaderModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const schematics_1 = require("@o3r/schematics");
|
|
5
|
-
const ts = require("typescript");
|
|
6
|
+
const ts = tslib_1.__importStar(require("typescript"));
|
|
6
7
|
/**
|
|
7
8
|
* Compute the position to remove a node
|
|
8
9
|
* @param node
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v14-0/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v14-0/index.ts"],"names":[],"mappings":";;;;AAKA,gDAGyB;AACzB,uDAAiC;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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AQ,CAAC,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,5 +1,6 @@
|
|
|
1
1
|
import { RulesEngineAction, RulesEngineActionHandler } from '@o3r/core';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
3
4
|
import * as i1 from '@o3r/dynamic-content';
|
|
4
5
|
|
|
5
6
|
/** ActionUpdateAssetBlock */
|
|
@@ -26,12 +27,19 @@ declare class AssetRulesEngineActionHandler implements RulesEngineActionHandler<
|
|
|
26
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<AssetRulesEngineActionHandler>;
|
|
27
28
|
}
|
|
28
29
|
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Will be removed in v16. Use {@link provideAssetRulesEngineAction} instead.
|
|
32
|
+
*/
|
|
29
33
|
declare class AssetRulesEngineActionModule {
|
|
30
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssetRulesEngineActionModule, never>;
|
|
31
35
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AssetRulesEngineActionModule, never, [typeof i1.AssetPathOverrideStoreModule], never>;
|
|
32
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<AssetRulesEngineActionModule>;
|
|
33
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Provide asset rules engine action handler.
|
|
40
|
+
*/
|
|
41
|
+
declare function provideAssetRulesEngineAction(): EnvironmentProviders;
|
|
34
42
|
|
|
35
|
-
export { AssetRulesEngineActionHandler, AssetRulesEngineActionModule, RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE };
|
|
43
|
+
export { AssetRulesEngineActionHandler, AssetRulesEngineActionModule, RULES_ENGINE_ASSET_UPDATE_ACTION_TYPE, provideAssetRulesEngineAction };
|
|
36
44
|
export type { ActionUpdateAssetBlock };
|
|
37
45
|
//# sourceMappingURL=o3r-dynamic-content-rules-engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-dynamic-content-rules-engine.d.ts","sources":["../../src/rules-engine/asset-interfaces.ts","../../src/rules-engine/asset-rules-engine-action-handler.ts","../../src/rules-engine/asset-rules-engine-action-module.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"o3r-dynamic-content-rules-engine.d.ts","sources":["../../src/rules-engine/asset-interfaces.ts","../../src/rules-engine/asset-rules-engine-action-handler.ts","../../src/rules-engine/asset-rules-engine-action-module.ts"],"mappings":";;;;;AAIA;AACA,cAAa,qCAAqC;AAElD;;AAEG;AACG,UAAW,sBAAuB,SAAQ,iBAAiB;uBAC5C,qCAAqC;;;AAGzD;;ACKD;;AAEG;AACH,cACa,6BAA8B,YAAW,wBAAwB,CAAC,sBAAsB;AACnG;;AAGA;;4BAG+B,sBAAsB,YAAY,OAAO;yCAP7D,6BAA6B;6CAA7B,6BAA6B;AAezC;;ACzBD;;AAEG;AACH,cAQa,4BAA4B;yCAA5B,4BAA4B;0CAA5B,4BAA4B,iBAAA,EAAA,CAAA,4BAAA;0CAA5B,4BAA4B;AAAG;AAE5C;;AAEG;AACH,iBAAgB,6BAA6B,IAAI,oBAAoB;;;;","names":[]}
|
|
@@ -265,15 +265,6 @@ declare class RequestParametersService implements ParamsType {
|
|
|
265
265
|
static ɵprov: i0.ɵɵInjectableDeclaration<RequestParametersService>;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
/**
|
|
269
|
-
* @deprecated Will be removed in v15
|
|
270
|
-
*/
|
|
271
|
-
declare class StyleLazyLoaderModule {
|
|
272
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoaderModule, never>;
|
|
273
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StyleLazyLoaderModule, never, never, never>;
|
|
274
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StyleLazyLoaderModule>;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
268
|
/**
|
|
278
269
|
* Interface to describe a style to lazy load from a url.
|
|
279
270
|
*/
|
|
@@ -337,12 +328,20 @@ declare const setAssetPathOverride: _ngrx_store.ActionCreator<"[AssetPathOverrid
|
|
|
337
328
|
declare const ASSET_PATH_OVERRIDE_REDUCER_TOKEN: InjectionToken<ActionReducer<AssetPathOverrideState, Action<string>>>;
|
|
338
329
|
/** Provide default reducer for AssetPathOverride store */
|
|
339
330
|
declare function getDefaultAssetPathOverrideReducer(): ActionReducer<AssetPathOverrideState, Action<string>>;
|
|
331
|
+
/**
|
|
332
|
+
* @deprecated Will be removed in v16. Use {@link provideAssetPathOverrideStore} instead.
|
|
333
|
+
*/
|
|
340
334
|
declare class AssetPathOverrideStoreModule {
|
|
341
335
|
static forRoot<T extends AssetPathOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<AssetPathOverrideStoreModule>;
|
|
342
336
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssetPathOverrideStoreModule, never>;
|
|
343
337
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AssetPathOverrideStoreModule, never, [typeof _ngrx_store.StoreFeatureModule], never>;
|
|
344
338
|
static ɵinj: i0.ɵɵInjectorDeclaration<AssetPathOverrideStoreModule>;
|
|
345
339
|
}
|
|
340
|
+
/**
|
|
341
|
+
* Provide AssetPathOverride feature store.
|
|
342
|
+
* @param reducerFactory Optional factory to override the default reducer.
|
|
343
|
+
*/
|
|
344
|
+
declare function provideAssetPathOverrideStore(reducerFactory?: () => ActionReducer<AssetPathOverrideState, Action>): EnvironmentProviders;
|
|
346
345
|
|
|
347
346
|
/**
|
|
348
347
|
* AssetPathOverride Store initial value
|
|
@@ -369,6 +368,6 @@ declare const selectAssetPathOverride: _ngrx_store.MemoizedSelector<object, Reco
|
|
|
369
368
|
declare const assetPathOverrideStorageDeserializer: (rawObject: any) => any;
|
|
370
369
|
declare const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState>;
|
|
371
370
|
|
|
372
|
-
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,
|
|
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, assetPathOverrideInitialState, assetPathOverrideReducer, assetPathOverrideReducerFeatures, assetPathOverrideStorageDeserializer, assetPathOverrideStorageSync, defaultConfigFactory, defaultRequestParametersConfig, getCmsAssets, getDefaultAssetPathOverrideReducer, getDynamicContent, provideAssetPathOverrideStore, provideDynamicContent, provideRequestParameters, selectAssetPathOverride, selectAssetPathOverrideState, setAssetPathOverride, withBasePath, withCmsAssetsPath };
|
|
373
372
|
export type { AssetPathOverrideState, AssetPathOverrideStore, ParamsList, ParamsType, PartialRequestParametersConfig, RequestParametersConfig, StyleURL };
|
|
374
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-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
|
|
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.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"],"mappings":";;;;;;;;AAaA;;AAEG;AACH,iBAAgB,iBAAiB;AAIjC;;;AAGG;AACH,iBAAgB,YAAY;AAI5B,KAAK,yBAAyB;AAE9B,UAAU,qBAAqB,qBAAqB,yBAAyB;;gBAE/D,QAAQ;AACrB;AAED,KAAK,eAAe,GAAG,qBAAqB;AAC5C,KAAK,oBAAoB,GAAG,qBAAqB;AAEjD,KAAK,sBAAsB,GAAG,eAAe,GAAG,oBAAoB;AAEpE;;;AAGG;AACH,iBAAgB,YAAY,qCAAqC,eAAe;AAgBhF;;;AAGG;AACH,iBAAgB,iBAAiB,0CAA0C,qBAAqB;AAgBhG;;;;;;;;;;;;;;;;;;;AAmBG;AACH,iBAAgB,qBAAqB,cAAc,sBAAsB,KAAE,oBAAA;;ACzE3E;;AAEG;AACH,cACa,qBAAqB;AAChC;AACA;;AAIA;;AASA;AAIA;AAIA;AAQA;AAUA;;;;;;;;AAQG;AACI,8CAAuC,IAAA,CAAA,UAAA;AAI9C;;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