@o3r/components 14.6.0-prerelease.7 → 14.6.0-prerelease.71
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-components-rules-engine.mjs +28 -14
- package/fesm2022/o3r-components-rules-engine.mjs.map +1 -1
- package/fesm2022/o3r-components.mjs +128 -69
- package/fesm2022/o3r-components.mjs.map +1 -1
- package/package.json +27 -27
- package/types/o3r-components-rules-engine.d.ts +9 -1
- package/types/o3r-components-rules-engine.d.ts.map +1 -1
- package/types/o3r-components.d.ts +44 -8
- package/types/o3r-components.d.ts.map +1 -1
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { of, from, observeOn, animationFrameScheduler, BehaviorSubject, firstValueFrom, fromEvent, Subject, ReplaySubject, sample } from 'rxjs';
|
|
2
2
|
import { mergeMap, bufferCount, concatMap, delay, scan, tap, filter, distinctUntilChanged, map, mapTo, switchMap } from 'rxjs/operators';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, NgModule, inject, DestroyRef, Injectable, ViewContainerRef, KeyValueDiffers, Injector, SimpleChange, forwardRef, Input, Directive,
|
|
4
|
+
import { InjectionToken, NgModule, makeEnvironmentProviders, inject, DestroyRef, Injectable, ViewContainerRef, KeyValueDiffers, Injector, SimpleChange, forwardRef, Input, Directive, Pipe, ChangeDetectorRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
5
5
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
6
|
import * as i1 from '@ngrx/store';
|
|
7
|
-
import { createAction, props, on, createReducer, StoreModule, createFeatureSelector, createSelector, Store } from '@ngrx/store';
|
|
7
|
+
import { createAction, props, on, createReducer, StoreModule, provideState, createFeatureSelector, createSelector, Store } from '@ngrx/store';
|
|
8
8
|
import { asyncProps, createEntityAsyncRequestAdapter, asyncStoreItemAdapter, asyncEntitySerializer, otterComponentInfoPropertyName, sendOtterMessage, filterMessageContent } from '@o3r/core';
|
|
9
9
|
import { LoggerService } from '@o3r/logger';
|
|
10
10
|
import { createEntityAdapter } from '@ngrx/entity';
|
|
11
|
-
import
|
|
12
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
11
|
+
import { DOCUMENT, NgTemplateOutlet, AsyncPipe, CommonModule } from '@angular/common';
|
|
13
12
|
import { NgControl, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -150,6 +149,9 @@ const PLACEHOLDER_REQUEST_REDUCER_TOKEN = new InjectionToken('Feature Placeholde
|
|
|
150
149
|
function getDefaultplaceholderRequestReducer() {
|
|
151
150
|
return placeholderRequestReducer;
|
|
152
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated Will be removed in v16. Use {@link providePlaceholderRequestStore} instead.
|
|
154
|
+
*/
|
|
153
155
|
class PlaceholderRequestStoreModule {
|
|
154
156
|
static forRoot(reducerFactory) {
|
|
155
157
|
return {
|
|
@@ -159,13 +161,13 @@ class PlaceholderRequestStoreModule {
|
|
|
159
161
|
]
|
|
160
162
|
};
|
|
161
163
|
}
|
|
162
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
163
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
164
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
164
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderRequestStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
165
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderRequestStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
166
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderRequestStoreModule, providers: [
|
|
165
167
|
{ provide: PLACEHOLDER_REQUEST_REDUCER_TOKEN, useFactory: getDefaultplaceholderRequestReducer }
|
|
166
168
|
], imports: [StoreModule.forFeature(PLACEHOLDER_REQUEST_STORE_NAME, PLACEHOLDER_REQUEST_REDUCER_TOKEN)] }); }
|
|
167
169
|
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderRequestStoreModule, decorators: [{
|
|
169
171
|
type: NgModule,
|
|
170
172
|
args: [{
|
|
171
173
|
imports: [
|
|
@@ -176,6 +178,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
176
178
|
]
|
|
177
179
|
}]
|
|
178
180
|
}] });
|
|
181
|
+
/**
|
|
182
|
+
* Provide PlaceholderRequest feature store.
|
|
183
|
+
* @param reducerFactory Optional factory to override the default reducer.
|
|
184
|
+
*/
|
|
185
|
+
function providePlaceholderRequestStore(reducerFactory) {
|
|
186
|
+
return makeEnvironmentProviders([
|
|
187
|
+
provideState(PLACEHOLDER_REQUEST_STORE_NAME, reducerFactory ? reducerFactory() : placeholderRequestReducer)
|
|
188
|
+
]);
|
|
189
|
+
}
|
|
179
190
|
|
|
180
191
|
const selectPlaceholderRequestState = createFeatureSelector(PLACEHOLDER_REQUEST_STORE_NAME);
|
|
181
192
|
const { selectEntities: selectEntities$1 } = placeholderRequestAdapter.getSelectors();
|
|
@@ -261,6 +272,9 @@ const PLACEHOLDER_TEMPLATE_REDUCER_TOKEN = new InjectionToken('Feature Placehold
|
|
|
261
272
|
function getDefaultPlaceholderTemplateReducer() {
|
|
262
273
|
return placeholderTemplateReducer;
|
|
263
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated Will be removed in v16. Use {@link providePlaceholderTemplateStore} instead.
|
|
277
|
+
*/
|
|
264
278
|
class PlaceholderTemplateStoreModule {
|
|
265
279
|
static forRoot(reducerFactory) {
|
|
266
280
|
return {
|
|
@@ -270,13 +284,13 @@ class PlaceholderTemplateStoreModule {
|
|
|
270
284
|
]
|
|
271
285
|
};
|
|
272
286
|
}
|
|
273
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
274
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
275
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
287
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderTemplateStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
288
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderTemplateStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
289
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderTemplateStoreModule, providers: [
|
|
276
290
|
{ provide: PLACEHOLDER_TEMPLATE_REDUCER_TOKEN, useFactory: getDefaultPlaceholderTemplateReducer }
|
|
277
291
|
], imports: [StoreModule.forFeature(PLACEHOLDER_TEMPLATE_STORE_NAME, PLACEHOLDER_TEMPLATE_REDUCER_TOKEN)] }); }
|
|
278
292
|
}
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderTemplateStoreModule, decorators: [{
|
|
280
294
|
type: NgModule,
|
|
281
295
|
args: [{
|
|
282
296
|
imports: [
|
|
@@ -287,6 +301,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
287
301
|
]
|
|
288
302
|
}]
|
|
289
303
|
}] });
|
|
304
|
+
/**
|
|
305
|
+
* Provide PlaceholderTemplate feature store.
|
|
306
|
+
* @param reducerFactory Optional factory to override the default reducer.
|
|
307
|
+
*/
|
|
308
|
+
function providePlaceholderTemplateStore(reducerFactory) {
|
|
309
|
+
return makeEnvironmentProviders([
|
|
310
|
+
provideState(PLACEHOLDER_TEMPLATE_STORE_NAME, reducerFactory ? reducerFactory() : placeholderTemplateReducer)
|
|
311
|
+
]);
|
|
312
|
+
}
|
|
290
313
|
|
|
291
314
|
const { selectEntities } = placeholderTemplateAdapter.getSelectors();
|
|
292
315
|
const selectPlaceholderTemplateState = createFeatureSelector(PLACEHOLDER_TEMPLATE_STORE_NAME);
|
|
@@ -702,10 +725,10 @@ class HighlightService {
|
|
|
702
725
|
this.singleRun = false;
|
|
703
726
|
}
|
|
704
727
|
}
|
|
705
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
706
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
728
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HighlightService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
729
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HighlightService, providedIn: 'root' }); }
|
|
707
730
|
}
|
|
708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HighlightService, decorators: [{
|
|
709
732
|
type: Injectable,
|
|
710
733
|
args: [{
|
|
711
734
|
providedIn: 'root'
|
|
@@ -1114,16 +1137,19 @@ class ComponentsDevtoolsMessageService {
|
|
|
1114
1137
|
this.inspectorService.otterLikeComponentInfoToBeSent$
|
|
1115
1138
|
.pipe(takeUntilDestroyed(this.destroyRef), filter((info) => !!info)).subscribe((info) => this.sendMessage('selectedComponentInfo', info));
|
|
1116
1139
|
}
|
|
1117
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1118
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1140
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ComponentsDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1141
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ComponentsDevtoolsMessageService, providedIn: 'root' }); }
|
|
1119
1142
|
}
|
|
1120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ComponentsDevtoolsMessageService, decorators: [{
|
|
1121
1144
|
type: Injectable,
|
|
1122
1145
|
args: [{
|
|
1123
1146
|
providedIn: 'root'
|
|
1124
1147
|
}]
|
|
1125
1148
|
}], ctorParameters: () => [] });
|
|
1126
1149
|
|
|
1150
|
+
/**
|
|
1151
|
+
* @deprecated Will be removed in v16. Use {@link provideComponentsDevtools} instead.
|
|
1152
|
+
*/
|
|
1127
1153
|
class ComponentsDevtoolsModule {
|
|
1128
1154
|
/**
|
|
1129
1155
|
* Initialize Otter Devtools
|
|
@@ -1138,16 +1164,16 @@ class ComponentsDevtoolsModule {
|
|
|
1138
1164
|
]
|
|
1139
1165
|
};
|
|
1140
1166
|
}
|
|
1141
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1142
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1167
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ComponentsDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1168
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ComponentsDevtoolsModule, imports: [StoreModule,
|
|
1143
1169
|
PlaceholderTemplateStoreModule] }); }
|
|
1144
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1170
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ComponentsDevtoolsModule, providers: [
|
|
1145
1171
|
{ provide: OTTER_COMPONENTS_DEVTOOLS_OPTIONS, useValue: OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS },
|
|
1146
1172
|
ComponentsDevtoolsMessageService
|
|
1147
1173
|
], imports: [StoreModule,
|
|
1148
1174
|
PlaceholderTemplateStoreModule] }); }
|
|
1149
1175
|
}
|
|
1150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ComponentsDevtoolsModule, decorators: [{
|
|
1151
1177
|
type: NgModule,
|
|
1152
1178
|
args: [{
|
|
1153
1179
|
imports: [
|
|
@@ -1160,6 +1186,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1160
1186
|
]
|
|
1161
1187
|
}]
|
|
1162
1188
|
}] });
|
|
1189
|
+
/**
|
|
1190
|
+
* Provide components devtools functionality.
|
|
1191
|
+
* @param options Components devtools options
|
|
1192
|
+
*/
|
|
1193
|
+
function provideComponentsDevtools(options) {
|
|
1194
|
+
return makeEnvironmentProviders([
|
|
1195
|
+
providePlaceholderTemplateStore(),
|
|
1196
|
+
{ provide: OTTER_COMPONENTS_DEVTOOLS_OPTIONS, useValue: { ...OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS, ...options } },
|
|
1197
|
+
ComponentsDevtoolsMessageService
|
|
1198
|
+
]);
|
|
1199
|
+
}
|
|
1163
1200
|
|
|
1164
1201
|
class C11nDirective {
|
|
1165
1202
|
constructor() {
|
|
@@ -1275,8 +1312,8 @@ class C11nDirective {
|
|
|
1275
1312
|
this.componentRef.destroy();
|
|
1276
1313
|
}
|
|
1277
1314
|
}
|
|
1278
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1279
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1315
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1316
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: C11nDirective, isStandalone: true, selector: "[c11n]", inputs: { component: "component", config: "config", formControl: "formControl", inputs: "inputs", outputs: "outputs" }, providers: [
|
|
1280
1317
|
{
|
|
1281
1318
|
provide: NG_VALUE_ACCESSOR,
|
|
1282
1319
|
useExisting: forwardRef((() => C11nDirective)),
|
|
@@ -1289,7 +1326,7 @@ class C11nDirective {
|
|
|
1289
1326
|
}
|
|
1290
1327
|
], usesOnChanges: true, ngImport: i0 }); }
|
|
1291
1328
|
}
|
|
1292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nDirective, decorators: [{
|
|
1293
1330
|
type: Directive,
|
|
1294
1331
|
args: [{
|
|
1295
1332
|
selector: '[c11n]',
|
|
@@ -1357,25 +1394,24 @@ class C11nService {
|
|
|
1357
1394
|
return typeof presenterConfig === 'string' && presenterConfig !== '' ? (this.presentersMap.get(presenterConfig) || defaultPres) : defaultPres;
|
|
1358
1395
|
}));
|
|
1359
1396
|
}
|
|
1360
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1361
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1397
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1398
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nService }); }
|
|
1362
1399
|
}
|
|
1363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nService, decorators: [{
|
|
1364
1401
|
type: Injectable
|
|
1365
1402
|
}] });
|
|
1366
1403
|
|
|
1367
1404
|
/** C11n directive mock */
|
|
1368
1405
|
class MockC11nDirective {
|
|
1369
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1370
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1406
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MockC11nDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1407
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: MockC11nDirective, isStandalone: true, selector: "[c11n]", inputs: { config: "config", component: "component", inputs: "inputs", outputs: "outputs" }, ngImport: i0 }); }
|
|
1371
1408
|
}
|
|
1372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MockC11nDirective, decorators: [{
|
|
1373
1410
|
type: Directive,
|
|
1374
1411
|
args: [{
|
|
1375
1412
|
selector: '[c11n]',
|
|
1376
1413
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property -- mocked directive
|
|
1377
|
-
inputs: ['config', 'component', 'inputs', 'outputs']
|
|
1378
|
-
standalone: false
|
|
1414
|
+
inputs: ['config', 'component', 'inputs', 'outputs']
|
|
1379
1415
|
}]
|
|
1380
1416
|
}] });
|
|
1381
1417
|
/** C11n service mock */
|
|
@@ -1384,28 +1420,36 @@ class C11nMockService {
|
|
|
1384
1420
|
getPresenter(_defaultPres, _presKey) {
|
|
1385
1421
|
return (source) => source.pipe(mapTo(null));
|
|
1386
1422
|
}
|
|
1387
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1388
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1423
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nMockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1424
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nMockService }); }
|
|
1389
1425
|
}
|
|
1390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nMockService, decorators: [{
|
|
1391
1427
|
type: Injectable
|
|
1392
1428
|
}] });
|
|
1393
1429
|
/**
|
|
1394
1430
|
* The purpose of this module is to be imported in the unit tests of the components which are using c11n directive
|
|
1431
|
+
* @deprecated Will be removed in v16. Use {@link provideC11nMock} and import `MockC11nDirective` directly instead.
|
|
1395
1432
|
*/
|
|
1396
1433
|
class C11nMockModule {
|
|
1397
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1398
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1399
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1434
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1435
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: C11nMockModule, imports: [MockC11nDirective] }); }
|
|
1436
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nMockModule, providers: [{ provide: C11nService, useClass: C11nMockService }] }); }
|
|
1400
1437
|
}
|
|
1401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: C11nMockModule, decorators: [{
|
|
1402
1439
|
type: NgModule,
|
|
1403
1440
|
args: [{
|
|
1404
|
-
|
|
1405
|
-
exports: [MockC11nDirective],
|
|
1441
|
+
imports: [MockC11nDirective],
|
|
1406
1442
|
providers: [{ provide: C11nService, useClass: C11nMockService }]
|
|
1407
1443
|
}]
|
|
1408
1444
|
}] });
|
|
1445
|
+
/**
|
|
1446
|
+
* Provide C11n mock service for unit testing.
|
|
1447
|
+
*/
|
|
1448
|
+
function provideC11nMock() {
|
|
1449
|
+
return makeEnvironmentProviders([
|
|
1450
|
+
{ provide: C11nService, useClass: C11nMockService }
|
|
1451
|
+
]);
|
|
1452
|
+
}
|
|
1409
1453
|
|
|
1410
1454
|
/**
|
|
1411
1455
|
* Customization service factory
|
|
@@ -1460,10 +1504,10 @@ class O3rCapitalizePipe {
|
|
|
1460
1504
|
const firstLetter = val && val.charAt(0);
|
|
1461
1505
|
return firstLetter ? firstLetter.toUpperCase() + val.slice(1) : value;
|
|
1462
1506
|
}
|
|
1463
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1464
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1507
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1508
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: O3rCapitalizePipe, isStandalone: true, name: "o3rCapitalize" }); }
|
|
1465
1509
|
}
|
|
1466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rCapitalizePipe, decorators: [{
|
|
1467
1511
|
type: Pipe,
|
|
1468
1512
|
args: [{ name: 'o3rCapitalize' }]
|
|
1469
1513
|
}] });
|
|
@@ -1543,10 +1587,10 @@ class O3rDurationPipe {
|
|
|
1543
1587
|
return result.replace(matchedPatternToReplace, padded);
|
|
1544
1588
|
}, pattern);
|
|
1545
1589
|
}
|
|
1546
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1547
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1590
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rDurationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1591
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: O3rDurationPipe, isStandalone: true, name: "o3rDuration" }); }
|
|
1548
1592
|
}
|
|
1549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rDurationPipe, decorators: [{
|
|
1550
1594
|
type: Pipe,
|
|
1551
1595
|
args: [{ name: 'o3rDuration' }]
|
|
1552
1596
|
}] });
|
|
@@ -1555,10 +1599,10 @@ class O3rKeepWhiteSpacePipe {
|
|
|
1555
1599
|
transform(value) {
|
|
1556
1600
|
return value.replace(/\s/g, ' ');
|
|
1557
1601
|
}
|
|
1558
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1559
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1602
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rKeepWhiteSpacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1603
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: O3rKeepWhiteSpacePipe, isStandalone: true, name: "o3rKeepWhiteSpace" }); }
|
|
1560
1604
|
}
|
|
1561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rKeepWhiteSpacePipe, decorators: [{
|
|
1562
1606
|
type: Pipe,
|
|
1563
1607
|
args: [{ name: 'o3rKeepWhiteSpace' }]
|
|
1564
1608
|
}] });
|
|
@@ -1574,10 +1618,10 @@ class O3rReplaceWithBoldPipe {
|
|
|
1574
1618
|
return value;
|
|
1575
1619
|
}
|
|
1576
1620
|
}
|
|
1577
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1578
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1621
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rReplaceWithBoldPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1622
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: O3rReplaceWithBoldPipe, isStandalone: true, name: "o3rReplaceWithBold" }); }
|
|
1579
1623
|
}
|
|
1580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: O3rReplaceWithBoldPipe, decorators: [{
|
|
1581
1625
|
type: Pipe,
|
|
1582
1626
|
args: [{ name: 'o3rReplaceWithBold' }]
|
|
1583
1627
|
}] });
|
|
@@ -1643,46 +1687,61 @@ class PlaceholderComponent {
|
|
|
1643
1687
|
this.messages$.complete();
|
|
1644
1688
|
this.afterViewInit$.complete();
|
|
1645
1689
|
}
|
|
1646
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1647
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1690
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1691
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: PlaceholderComponent, isStandalone: true, selector: "o3r-placeholder", inputs: { id: "id" }, host: { properties: { "class.debug": "mode() === 'debug'" } }, ngImport: i0, template: "<ng-template #projection>\n <ng-content />\n</ng-template>\n@switch (mode()) {\n @case ('debug') {\n <span class=\"placehoder-id\">{{ id$ | async }}</span>\n }\n @case ('pending') {\n <ng-container *ngTemplateOutlet=\"projection\" />\n }\n @case ('normal') {\n @if (isPending) {\n <ng-container *ngTemplateOutlet=\"projection\" />\n } @else {\n <div [innerHTML]=\"template\"></div>\n }\n }\n}\n", styles: [".debug{padding:15px;text-align:center;border:2px dashed var(--o3r-placeholder-debug-color, #a65c27);border-radius:10px;width:100%;background:var(--o3r-placeholder-background, #fff2ea);border-style:dashed;color:var(--o3r-placeholder-debug-color, #a65c27);font-size:larger}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1648
1692
|
}
|
|
1649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderComponent, decorators: [{
|
|
1650
1694
|
type: Component,
|
|
1651
|
-
args: [{ selector: 'o3r-placeholder', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None,
|
|
1695
|
+
args: [{ selector: 'o3r-placeholder', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
|
|
1696
|
+
AsyncPipe,
|
|
1697
|
+
NgTemplateOutlet
|
|
1698
|
+
], host: {
|
|
1652
1699
|
'[class.debug]': `mode() === 'debug'`
|
|
1653
|
-
},
|
|
1700
|
+
}, template: "<ng-template #projection>\n <ng-content />\n</ng-template>\n@switch (mode()) {\n @case ('debug') {\n <span class=\"placehoder-id\">{{ id$ | async }}</span>\n }\n @case ('pending') {\n <ng-container *ngTemplateOutlet=\"projection\" />\n }\n @case ('normal') {\n @if (isPending) {\n <ng-container *ngTemplateOutlet=\"projection\" />\n } @else {\n <div [innerHTML]=\"template\"></div>\n }\n }\n}\n", styles: [".debug{padding:15px;text-align:center;border:2px dashed var(--o3r-placeholder-debug-color, #a65c27);border-radius:10px;width:100%;background:var(--o3r-placeholder-background, #fff2ea);border-style:dashed;color:var(--o3r-placeholder-debug-color, #a65c27);font-size:larger}\n"] }]
|
|
1654
1701
|
}], ctorParameters: () => [], propDecorators: { id: [{
|
|
1655
1702
|
type: Input
|
|
1656
1703
|
}] } });
|
|
1657
1704
|
|
|
1705
|
+
/**
|
|
1706
|
+
* @deprecated Will be removed in v16. Use {@link providePlaceholder} and import `PlaceholderComponent` directly instead.
|
|
1707
|
+
*/
|
|
1658
1708
|
class PlaceholderModule {
|
|
1659
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1660
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1709
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1710
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderModule, imports: [CommonModule,
|
|
1661
1711
|
StoreModule,
|
|
1662
1712
|
PlaceholderTemplateStoreModule,
|
|
1663
|
-
PlaceholderRequestStoreModule
|
|
1664
|
-
|
|
1713
|
+
PlaceholderRequestStoreModule,
|
|
1714
|
+
PlaceholderComponent] }); }
|
|
1715
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderModule, imports: [CommonModule,
|
|
1665
1716
|
StoreModule,
|
|
1666
1717
|
PlaceholderTemplateStoreModule,
|
|
1667
1718
|
PlaceholderRequestStoreModule] }); }
|
|
1668
1719
|
}
|
|
1669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: PlaceholderModule, decorators: [{
|
|
1670
1721
|
type: NgModule,
|
|
1671
1722
|
args: [{
|
|
1672
1723
|
imports: [
|
|
1673
1724
|
CommonModule,
|
|
1674
1725
|
StoreModule,
|
|
1675
1726
|
PlaceholderTemplateStoreModule,
|
|
1676
|
-
PlaceholderRequestStoreModule
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
exports: [PlaceholderComponent]
|
|
1727
|
+
PlaceholderRequestStoreModule,
|
|
1728
|
+
PlaceholderComponent
|
|
1729
|
+
]
|
|
1680
1730
|
}]
|
|
1681
1731
|
}] });
|
|
1732
|
+
/**
|
|
1733
|
+
* Provide placeholder stores required by `PlaceholderComponent`.
|
|
1734
|
+
*/
|
|
1735
|
+
function providePlaceholder() {
|
|
1736
|
+
return makeEnvironmentProviders([
|
|
1737
|
+
providePlaceholderTemplateStore(),
|
|
1738
|
+
providePlaceholderRequestStore()
|
|
1739
|
+
]);
|
|
1740
|
+
}
|
|
1682
1741
|
|
|
1683
1742
|
/**
|
|
1684
1743
|
* Generated bundle index. Do not edit.
|
|
1685
1744
|
*/
|
|
1686
1745
|
|
|
1687
|
-
export { C11N_PRESENTERS_MAP_TOKEN, C11N_REGISTER_FUNC_TOKEN, C11nDirective, C11nMockModule, C11nMockService, C11nService, ComponentsDevtoolsMessageService, ComponentsDevtoolsModule, INSPECTOR_CLASS, MockC11nDirective, O3rCapitalizePipe, O3rDurationPipe, O3rKeepWhiteSpacePipe, O3rReplaceWithBoldPipe, OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS, OTTER_COMPONENTS_DEVTOOLS_OPTIONS, OtterInspectorService, PLACEHOLDER_REQUEST_REDUCER_TOKEN, PLACEHOLDER_REQUEST_STORE_NAME, PLACEHOLDER_TEMPLATE_REDUCER_TOKEN, PLACEHOLDER_TEMPLATE_STORE_NAME, PlaceholderComponent, PlaceholderModule, PlaceholderRequestStoreModule, PlaceholderTemplateStoreModule, cancelPlaceholderRequest, createC11nService, deletePlaceholderTemplateEntity, failPlaceholderRequestEntity, getAnalyticEvents, getAnalyticEventsRec, getConfigId, getDefaultPlaceholderTemplateReducer, getDefaultplaceholderRequestReducer, getOtterLikeComponentInfo, getTranslations, getTranslationsRec, isComponentsMessage, isContainer, lazyArray, placeholderRequestAdapter, placeholderRequestInitialState, placeholderRequestReducer, placeholderRequestReducerFeatures, placeholderRequestStorageDeserializer, placeholderRequestStorageSerializer, placeholderRequestStorageSync, placeholderTemplateAdapter, placeholderTemplateInitialState, placeholderTemplateReducer, placeholderTemplateReducerFeatures, placeholderTemplateStorageDeserializer, placeholderTemplateStorageSync, provideCustomComponents, registerCustomComponent, selectPlaceholderRequestEntities, selectPlaceholderRequestEntityUsage, selectPlaceholderRequestState, selectPlaceholderTemplateEntities, selectPlaceholderTemplateEntity, selectPlaceholderTemplateMode, selectPlaceholderTemplateState, selectSortedTemplates, setPlaceholderRequestEntityFromUrl, setPlaceholderTemplateEntity, togglePlaceholderModeTemplate, updatePlaceholderRequestEntity, updatePlaceholderRequestEntitySync, withComponent };
|
|
1746
|
+
export { C11N_PRESENTERS_MAP_TOKEN, C11N_REGISTER_FUNC_TOKEN, C11nDirective, C11nMockModule, C11nMockService, C11nService, ComponentsDevtoolsMessageService, ComponentsDevtoolsModule, INSPECTOR_CLASS, MockC11nDirective, O3rCapitalizePipe, O3rDurationPipe, O3rKeepWhiteSpacePipe, O3rReplaceWithBoldPipe, OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS, OTTER_COMPONENTS_DEVTOOLS_OPTIONS, OtterInspectorService, PLACEHOLDER_REQUEST_REDUCER_TOKEN, PLACEHOLDER_REQUEST_STORE_NAME, PLACEHOLDER_TEMPLATE_REDUCER_TOKEN, PLACEHOLDER_TEMPLATE_STORE_NAME, PlaceholderComponent, PlaceholderModule, PlaceholderRequestStoreModule, PlaceholderTemplateStoreModule, cancelPlaceholderRequest, createC11nService, deletePlaceholderTemplateEntity, failPlaceholderRequestEntity, getAnalyticEvents, getAnalyticEventsRec, getConfigId, getDefaultPlaceholderTemplateReducer, getDefaultplaceholderRequestReducer, getOtterLikeComponentInfo, getTranslations, getTranslationsRec, isComponentsMessage, isContainer, lazyArray, placeholderRequestAdapter, placeholderRequestInitialState, placeholderRequestReducer, placeholderRequestReducerFeatures, placeholderRequestStorageDeserializer, placeholderRequestStorageSerializer, placeholderRequestStorageSync, placeholderTemplateAdapter, placeholderTemplateInitialState, placeholderTemplateReducer, placeholderTemplateReducerFeatures, placeholderTemplateStorageDeserializer, placeholderTemplateStorageSync, provideC11nMock, provideComponentsDevtools, provideCustomComponents, providePlaceholder, providePlaceholderRequestStore, providePlaceholderTemplateStore, registerCustomComponent, selectPlaceholderRequestEntities, selectPlaceholderRequestEntityUsage, selectPlaceholderRequestState, selectPlaceholderTemplateEntities, selectPlaceholderTemplateEntity, selectPlaceholderTemplateMode, selectPlaceholderTemplateState, selectSortedTemplates, setPlaceholderRequestEntityFromUrl, setPlaceholderTemplateEntity, togglePlaceholderModeTemplate, updatePlaceholderRequestEntity, updatePlaceholderRequestEntitySync, withComponent };
|
|
1688
1747
|
//# sourceMappingURL=o3r-components.mjs.map
|