@o3r/dynamic-content 15.3.0-prerelease.9 → 15.4.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-fixtures-jasmine.mjs +25 -33
- package/fesm2022/o3r-dynamic-content-fixtures-jasmine.mjs.map +1 -1
- package/fesm2022/o3r-dynamic-content-fixtures-jest.mjs +25 -33
- package/fesm2022/o3r-dynamic-content-fixtures-jest.mjs.map +1 -1
- package/fesm2022/o3r-dynamic-content-rules-engine.mjs +90 -66
- package/fesm2022/o3r-dynamic-content-rules-engine.mjs.map +1 -1
- package/fesm2022/o3r-dynamic-content.mjs +412 -550
- package/fesm2022/o3r-dynamic-content.mjs.map +1 -1
- package/package.json +4 -4
- package/schematics/ng-add/schema.json +0 -3
- package/types/o3r-dynamic-content-fixtures-jasmine.d.ts +22 -25
- package/types/o3r-dynamic-content-fixtures-jasmine.d.ts.map +1 -1
- package/types/o3r-dynamic-content-fixtures-jest.d.ts +22 -25
- package/types/o3r-dynamic-content-fixtures-jest.d.ts.map +1 -1
- package/types/o3r-dynamic-content-rules-engine.d.ts +23 -29
- package/types/o3r-dynamic-content-rules-engine.d.ts.map +1 -1
- package/types/o3r-dynamic-content.d.ts +225 -245
- package/types/o3r-dynamic-content.d.ts.map +1 -1
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
import { SetStateActionPayload, Serializer } from '@o3r/core';
|
|
8
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef, EnvironmentProviders, InjectionToken, ModuleWithProviders, OnDestroy, PipeTransform, Provider } from "@angular/core";
|
|
3
|
+
import { Subscription } from "rxjs";
|
|
4
|
+
import { Serializer, SetStateActionPayload } from "@o3r/core";
|
|
5
|
+
import * as i1 from "@ngrx/store";
|
|
6
|
+
import { Action, ActionCreator, ActionReducer, ReducerTypes } from "@ngrx/store";
|
|
9
7
|
/**
|
|
10
8
|
* Function to get dynamic content from body dataset
|
|
11
9
|
*/
|
|
12
|
-
declare function getDynamicContent(): string;
|
|
10
|
+
export declare function getDynamicContent(): string;
|
|
13
11
|
/**
|
|
14
12
|
* Function to get the cms assets from body dataset
|
|
15
13
|
* This will be used only in a CMS context(not in local or prod) to display correctly the assets in the editor
|
|
16
14
|
*/
|
|
17
|
-
declare function getCmsAssets(): string;
|
|
15
|
+
export declare function getCmsAssets(): string;
|
|
18
16
|
type DynamicContentFeatureKind = 'base-path' | 'cms-assets-path';
|
|
19
17
|
interface DynamicContentFeature<FeatureKind extends DynamicContentFeatureKind> {
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
ɵkind: FeatureKind;
|
|
19
|
+
ɵproviders: Provider[];
|
|
22
20
|
}
|
|
23
21
|
type BasePathFeature = DynamicContentFeature<'base-path'>;
|
|
24
22
|
type CmsAssetsPathFeature = DynamicContentFeature<'cms-assets-path'>;
|
|
@@ -27,12 +25,12 @@ type DynamicContentFeatures = BasePathFeature | CmsAssetsPathFeature;
|
|
|
27
25
|
* Specify a custom base path
|
|
28
26
|
* @param basePath
|
|
29
27
|
*/
|
|
30
|
-
declare function withBasePath(basePath: string | (() => string)): BasePathFeature;
|
|
28
|
+
export declare function withBasePath(basePath: string | (() => string)): BasePathFeature;
|
|
31
29
|
/**
|
|
32
30
|
* Specify a custom CMS assets path
|
|
33
31
|
* @param cmsAssetsPath
|
|
34
32
|
*/
|
|
35
|
-
declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'>;
|
|
33
|
+
export declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): DynamicContentFeature<'cms-assets-path'>;
|
|
36
34
|
/**
|
|
37
35
|
* Provide dynamic content default configuration.
|
|
38
36
|
* To customize the location where the application will search for the base path of dynamic content
|
|
@@ -53,73 +51,69 @@ declare function withCmsAssetsPath(cmsAssetsPath: string | (() => string)): Dyna
|
|
|
53
51
|
* }
|
|
54
52
|
* );
|
|
55
53
|
*/
|
|
56
|
-
declare function provideDynamicContent(...features: DynamicContentFeatures[]): EnvironmentProviders;
|
|
57
|
-
|
|
54
|
+
export declare function provideDynamicContent(...features: DynamicContentFeatures[]): EnvironmentProviders;
|
|
58
55
|
/**
|
|
59
56
|
* Service for getting dynamic content path
|
|
60
57
|
*/
|
|
61
|
-
declare class DynamicContentService {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
58
|
+
export declare class DynamicContentService {
|
|
59
|
+
private readonly cmsOnlyAssetsPath;
|
|
60
|
+
private readonly store;
|
|
61
|
+
readonly basePath: string;
|
|
62
|
+
private readonly mediaFolder;
|
|
63
|
+
constructor();
|
|
64
|
+
private normalizePath;
|
|
65
|
+
private isAbsoluteUrl;
|
|
66
|
+
private getContentPath;
|
|
67
|
+
private getMediaPath;
|
|
68
|
+
/**
|
|
69
|
+
* Gets the full path of a content relative to the root
|
|
70
|
+
* Content path doesn't consider any override, you will always get the same file
|
|
71
|
+
* @param assetPath asset location in the root folder
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* getMediaPath('assets/imgs/my-image.png') // will give you the basePath + 'assets/imgs/my-image.png'
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
getContentPathStream(assetPath?: string): import("rxjs").Observable<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Gets the stream that provides the full path of a media content
|
|
80
|
+
* A Media content is always stored in the 'assets' media folder, no external content will be accessible through this function
|
|
81
|
+
* If any override is applied to the content, returns the override path instead
|
|
82
|
+
* @param assetPath asset location in the media folder (e.g imgs/my-image.png)
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* getMediaPathStream('imgs/my-image.png') // will give you the basePath + mediaFolder + 'imgs/my-image.png'
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
getMediaPathStream(assetPath?: string): import("rxjs").Observable<string>;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicContentService, never>;
|
|
90
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
94
91
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<O3rDynamicContentPipe, "o3rDynamicContent", true>;
|
|
92
|
+
export declare class O3rDynamicContentPipe implements PipeTransform, OnDestroy {
|
|
93
|
+
protected readonly service: DynamicContentService;
|
|
94
|
+
protected readonly cd: ChangeDetectorRef;
|
|
95
|
+
/** Last query value */
|
|
96
|
+
protected lastQuery?: string;
|
|
97
|
+
/** Subscription to retrieve media path */
|
|
98
|
+
protected onMediaPathChange?: Subscription;
|
|
99
|
+
/** Path to the media */
|
|
100
|
+
protected mediaPath: string;
|
|
101
|
+
/** @inheritDoc */
|
|
102
|
+
transform(query?: string): string;
|
|
103
|
+
/** @inheritDoc */
|
|
104
|
+
ngOnDestroy(): void;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<O3rDynamicContentPipe, never>;
|
|
106
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<O3rDynamicContentPipe, "o3rDynamicContent", true>;
|
|
111
107
|
}
|
|
112
|
-
|
|
113
108
|
/**
|
|
114
109
|
* Injection token for the rootpath of dynamic content
|
|
115
110
|
*/
|
|
116
|
-
declare const DYNAMIC_CONTENT_BASE_PATH_TOKEN: InjectionToken<string>;
|
|
111
|
+
export declare const DYNAMIC_CONTENT_BASE_PATH_TOKEN: InjectionToken<string>;
|
|
117
112
|
/**
|
|
118
113
|
* Injection token for the assets path injected by the cms
|
|
119
114
|
* This token will be injected only in editor mode
|
|
120
115
|
*/
|
|
121
|
-
declare const CMS_ASSETS_PATH_TOKEN: InjectionToken<string>;
|
|
122
|
-
|
|
116
|
+
export declare const CMS_ASSETS_PATH_TOKEN: InjectionToken<string>;
|
|
123
117
|
/**
|
|
124
118
|
* Strategies available to read / write data in the RequestParameters service.
|
|
125
119
|
* Rehydrate: if the storage already have data, those will be used by the service, ignoring new data. Otherwise set the storage
|
|
@@ -127,247 +121,233 @@ declare const CMS_ASSETS_PATH_TOKEN: InjectionToken<string>;
|
|
|
127
121
|
* Replace: storage data will be completely replaced by the ones provided
|
|
128
122
|
* ReplaceIfNotEmpty: If no parameters are provided, use the content from storage. Otherwise use the ones provided and update the storage with them.
|
|
129
123
|
*/
|
|
130
|
-
declare enum StorageStrategy {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
124
|
+
export declare enum StorageStrategy {
|
|
125
|
+
Rehydrate = 0,
|
|
126
|
+
Merge = 1,
|
|
127
|
+
Replace = 2,
|
|
128
|
+
ReplaceIfNotEmpty = 3
|
|
135
129
|
}
|
|
136
130
|
/**
|
|
137
131
|
* Configuration used by a user to feed the request parameters service.
|
|
138
132
|
*/
|
|
139
|
-
interface RequestParametersConfig {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
133
|
+
export interface RequestParametersConfig {
|
|
134
|
+
/**
|
|
135
|
+
* Strategy used by the RequestParameters Service. See StorageStrategy for more info
|
|
136
|
+
*/
|
|
137
|
+
strategy: StorageStrategy;
|
|
138
|
+
/**
|
|
139
|
+
* Storage used by the RequestParameters service
|
|
140
|
+
*/
|
|
141
|
+
storage?: Storage;
|
|
142
|
+
/**
|
|
143
|
+
* Value of the DOM element containing your query parameters (e.g. `document.body.dataset.query`)
|
|
144
|
+
*/
|
|
145
|
+
queryParamsValue: string;
|
|
146
|
+
/**
|
|
147
|
+
* Value of the DOM element containing your post parameters (e.g. `document.body.dataset.post`)
|
|
148
|
+
*/
|
|
149
|
+
postParamsValue: string;
|
|
156
150
|
}
|
|
157
|
-
declare const defaultRequestParametersConfig: Readonly<RequestParametersConfig>;
|
|
158
|
-
|
|
151
|
+
export declare const defaultRequestParametersConfig: Readonly<RequestParametersConfig>;
|
|
159
152
|
/**
|
|
160
153
|
* Empty configuration factory, used when config is not provided. It needs a separate function for AOT.
|
|
161
154
|
*/
|
|
162
|
-
declare function defaultConfigFactory(): {};
|
|
155
|
+
export declare function defaultConfigFactory(): {};
|
|
163
156
|
/**
|
|
164
157
|
* Provide request parameters config
|
|
165
158
|
* We don't provide directly the value and use a factory because otherwise AOT compilation will resolve to undefined whatever is taken from window
|
|
166
159
|
* @param config
|
|
167
160
|
*/
|
|
168
|
-
declare function provideRequestParameters(config?: () => Partial<RequestParametersConfig>):
|
|
169
|
-
|
|
170
|
-
type
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
[key: string]: string;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
161
|
+
export declare function provideRequestParameters(config?: () => Partial<RequestParametersConfig>): import("@angular/core").EnvironmentProviders;
|
|
162
|
+
export type ParamsList = 'query' | 'post';
|
|
163
|
+
export type ParamsType = { [k in ParamsList]: {
|
|
164
|
+
[key: string]: string;
|
|
165
|
+
}; };
|
|
176
166
|
/**
|
|
177
167
|
* Partial configuration for RequestParameters Service
|
|
178
168
|
*/
|
|
179
|
-
interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {
|
|
180
|
-
}
|
|
169
|
+
export interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {}
|
|
181
170
|
/**
|
|
182
171
|
* Service used to store the request parameters of your requests so that subsequent calls or refresh the page will preserve
|
|
183
172
|
* them.
|
|
184
173
|
*/
|
|
185
|
-
declare class RequestParametersService implements ParamsType {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
174
|
+
export declare class RequestParametersService implements ParamsType {
|
|
175
|
+
private _query;
|
|
176
|
+
private _post;
|
|
177
|
+
private readonly config;
|
|
178
|
+
constructor();
|
|
179
|
+
/**
|
|
180
|
+
* Depending on the strategy, set the internal values for the parameters.
|
|
181
|
+
* See StorageStrategy for more info.
|
|
182
|
+
* @param key
|
|
183
|
+
* @param value
|
|
184
|
+
*/
|
|
185
|
+
private setParameters;
|
|
186
|
+
/**
|
|
187
|
+
* Get all the query parameters in a map.
|
|
188
|
+
*/
|
|
189
|
+
get query(): {
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Get all the post parameters in a map.
|
|
194
|
+
*/
|
|
195
|
+
get post(): {
|
|
196
|
+
[key: string]: any;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Get a specific query parameter value, given the key.
|
|
200
|
+
* @param key
|
|
201
|
+
*/
|
|
202
|
+
getQueryParameter(key: string): string | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* Get a specific query parameter value as boolean, given the key.
|
|
205
|
+
* @param key
|
|
206
|
+
*/
|
|
207
|
+
getQueryParameterAsBoolean(key: string): boolean | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Get a specific post parameter value, given the key.
|
|
210
|
+
* @param key
|
|
211
|
+
*/
|
|
212
|
+
getPostParameter(key: string): string | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Get a specific post parameter value as boolean, given the key.
|
|
215
|
+
* @param key
|
|
216
|
+
*/
|
|
217
|
+
getPostParameterAsBoolean(key: string): boolean | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Get a specific parameter value, given the key.
|
|
220
|
+
* @param key
|
|
221
|
+
*/
|
|
222
|
+
getParameter(key: string): string | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Get a specific parameter value as boolean, given the key.
|
|
225
|
+
* @param key
|
|
226
|
+
*/
|
|
227
|
+
getParameterAsBoolean(key: string): boolean | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* Clear GET parameters from the storage
|
|
230
|
+
* @param paramsToClear the list on key that you want to clear in get parameters
|
|
231
|
+
*/
|
|
232
|
+
clearQueryParameters(paramsToClear?: string[]): void;
|
|
233
|
+
/**
|
|
234
|
+
* Clear POST parameters from the storage
|
|
235
|
+
* @param paramsToClear the list on key that you want to clean in post parameters
|
|
236
|
+
*/
|
|
237
|
+
clearPostParameters(paramsToClear?: string[]): void;
|
|
238
|
+
/**
|
|
239
|
+
* Get all the parameters in a map.
|
|
240
|
+
* @param priority the parameter to be given priority in case same key is in get and post params.
|
|
241
|
+
*/
|
|
242
|
+
getParams(priority?: ParamsList): {
|
|
243
|
+
[x: string]: any;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Filter Parameters(both Query/POST) from the storage
|
|
247
|
+
* @param paramstoFilter the list on key that you want to filter from parameters
|
|
248
|
+
* @param priority the priorty of the parameter type(POST/Query)
|
|
249
|
+
*/
|
|
250
|
+
getFilteredParameters(paramstoFilter?: string[], priority?: ParamsList): {
|
|
251
|
+
[x: string]: any;
|
|
252
|
+
};
|
|
253
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersService, never>;
|
|
254
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
266
255
|
}
|
|
267
|
-
|
|
268
256
|
/**
|
|
269
257
|
* Interface to describe a style to lazy load from a url.
|
|
270
258
|
*/
|
|
271
|
-
interface StyleURL {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
259
|
+
export interface StyleURL {
|
|
260
|
+
/** url to file */
|
|
261
|
+
href: string;
|
|
262
|
+
/** id of the HTML element */
|
|
263
|
+
id?: string;
|
|
264
|
+
/** html integrity attribute to verify fetched resources */
|
|
265
|
+
integrity?: string;
|
|
266
|
+
/** html crossOrigin attribute for CORS support. */
|
|
267
|
+
crossOrigin?: 'anonymous' | 'use-credentials' | '';
|
|
280
268
|
}
|
|
281
269
|
/**
|
|
282
270
|
* Service to lazy load a CSS file
|
|
283
271
|
*/
|
|
284
|
-
declare class StyleLazyLoader {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
272
|
+
export declare class StyleLazyLoader {
|
|
273
|
+
private readonly dcService;
|
|
274
|
+
private readonly DEFAULT_STYLE_ELEMENT_ID;
|
|
275
|
+
/**
|
|
276
|
+
* Load a new CSS from an absolute URL, if we already HTML element exists with the url, otherwise
|
|
277
|
+
* @param styleUrlConfig object containing CSS File absolute URL to load, integrity and crossOrigin attributes
|
|
278
|
+
* and the styleId id of the dynamic style in the body tag.
|
|
279
|
+
*/
|
|
280
|
+
loadStyleFromURL(styleUrlConfig: StyleURL): HTMLLinkElement;
|
|
281
|
+
/**
|
|
282
|
+
* Load a new CSS File
|
|
283
|
+
* @param styleUrlConfig CSS File config containing URL to load, integrity and crossOrigin attributes
|
|
284
|
+
* and the styleId id of the dynamic style in the body tag
|
|
285
|
+
*/
|
|
286
|
+
asyncLoadStyleFromDynamicContent(styleUrlConfig: StyleURL): Promise<void>;
|
|
287
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StyleLazyLoader, never>;
|
|
288
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
301
289
|
}
|
|
302
|
-
|
|
303
290
|
/**
|
|
304
291
|
* AssetPathOverride store state
|
|
305
292
|
*/
|
|
306
|
-
interface AssetPathOverrideState {
|
|
307
|
-
|
|
308
|
-
|
|
293
|
+
export interface AssetPathOverrideState {
|
|
294
|
+
/** Mapping of asset path (key) and its override (value)*/
|
|
295
|
+
assetPathOverrides: Record<string, string>;
|
|
309
296
|
}
|
|
310
297
|
/**
|
|
311
298
|
* Name of the AssetPathOverride Store
|
|
312
299
|
*/
|
|
313
|
-
declare const ASSET_PATH_OVERRIDE_STORE_NAME = "assetPathOverride";
|
|
300
|
+
export declare const ASSET_PATH_OVERRIDE_STORE_NAME = "assetPathOverride";
|
|
314
301
|
/**
|
|
315
302
|
* AssetPathOverride Store Interface
|
|
316
303
|
*/
|
|
317
|
-
interface AssetPathOverrideStore {
|
|
318
|
-
|
|
319
|
-
|
|
304
|
+
export interface AssetPathOverrideStore {
|
|
305
|
+
/** AssetPathOverride state */
|
|
306
|
+
[ASSET_PATH_OVERRIDE_STORE_NAME]: AssetPathOverrideState;
|
|
320
307
|
}
|
|
321
|
-
|
|
322
308
|
/**
|
|
323
309
|
* Clear all overrides and fill the store with the payload
|
|
324
310
|
*/
|
|
325
|
-
declare const setAssetPathOverride:
|
|
326
|
-
|
|
311
|
+
export declare const setAssetPathOverride: import("@ngrx/store").ActionCreator<"[AssetPathOverride] set entities", (props: SetStateActionPayload<AssetPathOverrideState>) => SetStateActionPayload<AssetPathOverrideState> & import("@ngrx/store").Action<"[AssetPathOverride] set entities">>;
|
|
327
312
|
/** Token of the AssetPathOverride reducer */
|
|
328
|
-
declare const ASSET_PATH_OVERRIDE_REDUCER_TOKEN: InjectionToken<ActionReducer<AssetPathOverrideState, Action<string>>>;
|
|
313
|
+
export declare const ASSET_PATH_OVERRIDE_REDUCER_TOKEN: InjectionToken<ActionReducer<AssetPathOverrideState, Action<string>>>;
|
|
329
314
|
/** Provide default reducer for AssetPathOverride store */
|
|
330
|
-
declare function getDefaultAssetPathOverrideReducer(): ActionReducer<AssetPathOverrideState, Action<string>>;
|
|
315
|
+
export declare function getDefaultAssetPathOverrideReducer(): ActionReducer<AssetPathOverrideState, Action<string>>;
|
|
331
316
|
/**
|
|
332
317
|
* @deprecated Will be removed in v16. Use {@link provideAssetPathOverrideStore} instead.
|
|
333
318
|
*/
|
|
334
|
-
declare class AssetPathOverrideStoreModule {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
319
|
+
export declare class AssetPathOverrideStoreModule {
|
|
320
|
+
static forRoot<T extends AssetPathOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<AssetPathOverrideStoreModule>;
|
|
321
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssetPathOverrideStoreModule, never>;
|
|
322
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AssetPathOverrideStoreModule, never, [typeof i1.StoreFeatureModule], never>;
|
|
323
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AssetPathOverrideStoreModule>;
|
|
339
324
|
}
|
|
340
325
|
/**
|
|
341
326
|
* Provide AssetPathOverride feature store.
|
|
342
327
|
* @param reducerFactory Optional factory to override the default reducer.
|
|
343
328
|
*/
|
|
344
|
-
declare function provideAssetPathOverrideStore(reducerFactory?: () => ActionReducer<AssetPathOverrideState, Action>): EnvironmentProviders;
|
|
345
|
-
|
|
329
|
+
export declare function provideAssetPathOverrideStore(reducerFactory?: () => ActionReducer<AssetPathOverrideState, Action>): EnvironmentProviders;
|
|
346
330
|
/**
|
|
347
331
|
* AssetPathOverride Store initial value
|
|
348
332
|
*/
|
|
349
|
-
declare const assetPathOverrideInitialState: AssetPathOverrideState;
|
|
333
|
+
export declare const assetPathOverrideInitialState: AssetPathOverrideState;
|
|
350
334
|
/**
|
|
351
335
|
* List of basic actions for AssetPathOverride Store
|
|
352
336
|
*/
|
|
353
|
-
declare const assetPathOverrideReducerFeatures: ReducerTypes<AssetPathOverrideState, ActionCreator[]>[];
|
|
337
|
+
export declare const assetPathOverrideReducerFeatures: ReducerTypes<AssetPathOverrideState, ActionCreator[]>[];
|
|
354
338
|
/**
|
|
355
339
|
* AssetPathOverride Store reducer
|
|
356
340
|
*/
|
|
357
|
-
declare const assetPathOverrideReducer:
|
|
358
|
-
|
|
341
|
+
export declare const assetPathOverrideReducer: import("@ngrx/store").ActionReducer<AssetPathOverrideState, import("@ngrx/store").Action<string>>;
|
|
359
342
|
/** Select AssetPathOverride State */
|
|
360
|
-
declare const selectAssetPathOverrideState:
|
|
343
|
+
export declare const selectAssetPathOverrideState: import("@ngrx/store").MemoizedSelector<object, AssetPathOverrideState, import("@ngrx/store").DefaultProjectorFn<AssetPathOverrideState>>;
|
|
361
344
|
/** Select all assetPath override map */
|
|
362
|
-
declare const selectAssetPathOverride:
|
|
363
|
-
|
|
345
|
+
export declare const selectAssetPathOverride: import("@ngrx/store").MemoizedSelector<object, Record<string, string>, (s1: AssetPathOverrideState) => Record<string, string>>;
|
|
364
346
|
/**
|
|
365
347
|
* Deserializer
|
|
366
348
|
* @param rawObject
|
|
367
349
|
*/
|
|
368
|
-
declare const assetPathOverrideStorageDeserializer: (rawObject: any) => any;
|
|
369
|
-
declare const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState>;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
export type { AssetPathOverrideState, AssetPathOverrideStore, ParamsList, ParamsType, PartialRequestParametersConfig, RequestParametersConfig, StyleURL };
|
|
373
|
-
//# sourceMappingURL=o3r-dynamic-content.d.ts.map
|
|
350
|
+
export declare const assetPathOverrideStorageDeserializer: (rawObject: any) => any;
|
|
351
|
+
export declare const assetPathOverrideStorageSync: Serializer<AssetPathOverrideState>;
|
|
352
|
+
export {};
|
|
353
|
+
//# 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.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":"
|
|
1
|
+
{"version":3,"file":"o3r-dynamic-content.d.ts","names":[],"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":";;;;;;;;;wBAgBgB;;;;;wBAQA;KAIX;UAEK,sBAAsB,oBAAoB;EAClD,OAAO;EACP,YAAY;;KAGT,kBAAkB;KAClB,uBAAuB;KAEvB,yBAAyB,kBAAkB;;;;;wBAMhC,aAAa,oCAAoC;;;;;wBAoBjD,kBAAkB,yCAAyC;;;;;;;;;;;;;;;;;;;;;wBAoC3D,yBAAyB,UAAU,2BAAwB;;;;qBCrE9D;mBACM;mBACA;WAED;mBAEC;;UAST;UAIA;UAIA;UAQA;;;;;;;;;;EAmBD,qBAAqB,oCAAkB;;;;;;;;;;;EAcvC,mBAAmB,oCAAkB;SAhEjC,MAAA,GAAA,qBAAA;;;qBCbA,iCAAiC,eAAe;qBACxC,SAAO;qBACP,IAAE;;YAGX;;YAGA,oBAAoB;;YAGpB;;EAGH,UAAU;;EAgBV;SA9BI,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;qBCXA,iCAAiC;;;;;qBAMjC,uBAAuB;;;;;;;;oBCLxB;EAEV;EAEA;EAEA;EAEA;;;;;iBAMe;;;;EAIf,UAAU;;;;EAIV,UAAU;;;;EAIV;;;;EAIA;;qBAGW,gCAAgC,SAAS;;;;wBCzBtC;;;;;;wBASA,yBAAyB,eAAc,QAAQ,mDAA+C;YCZlG;YAEA,gBAAgB,KAAK;GAAgB;;;;;iBAKhC,uCAAuC,QAAQ;;;;;qBAOnD,oCAAoC;UACvC;UACA;mBAES;;;;;;;;UAoBT;;;;MA0CG;;;;;;MAOA;;;;;;;EAQJ,kBAAkB;;;;;EAQlB,2BAA2B;;;;;EAS3B,iBAAiB;;;;;EAQjB,0BAA0B;;;;;EAS1B,aAAa;;;;;EAQb,sBAAsB;;;;;EAStB,qBAAqB;;;;;EAgBrB,oBAAoB;;;;;EAgBpB,UAAU,WAAU;;;;;;;;EASpB,sBAAsB,2BAA2B,WAAU;;;SA7KvD,MAAA,GAAA,qBAAA;;;;;;iBCbI;;EAEf;;EAEA;;EAEA;;EAEA;;;;;qBASW;mBACM;mBAEA;;;;;;EAOV,iBAAiB,gBAAgB,WAAQ;;;;;;EA2BnC,iCAAiC,gBAAgB,WAAQ;SArC3D,MAAA,GAAA,qBAAA;;;;;;iBC5BI;;EAEf,oBAAoB;;;;;qBAMT;;;;iBAKI;;GAEd,iCAAiC;;;;;qBCDvB,4CAAoB,mDAAA,OAAA,sBAAA,4BAAA,sBAAA,gDAAA;;qBCKpB,mCAAiC,eAAA,cAAA,wBAAA;;wBAG9B,sCAAkC,cAAA,wBAAA;;;;qBAerC;SACG,QAAQ,UAAU,wBAAwB,sBAAsB,cAAc,GAAG,UAAU,oBAAoB;SADlH,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,sBAAA,6CAA4B,GAAA;SAA5B,MAAA,GAAA,sBAAA;;;;;;wBAeG,8BAA8B,uBAAuB,cAAc,wBAAwB,UAAU;;;;qBCzCxG,+BAA+B;;;;qBAK/B,kCAAkC,aAAa,wBAAwB;;;;qBAOvE,gDAAwB,cAAA,8CAAA;;qBChBxB,oDAA4B,yBAAA,8CAAA,mBAAA;;qBAG5B,+CAAuB,yBAAA,yBAAA,IAAA,2BAAA;;;;;qBCCvB,uCAAwC;qBAOxC,8BAA8B,WAAW"}
|