@o3r/components 14.6.0-prerelease.5 → 14.6.0-prerelease.50
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 +126 -65
- package/fesm2022/o3r-components.mjs.map +1 -1
- package/package.json +12 -12
- package/schematics/ng-update/v14-4/index.d.ts.map +1 -1
- package/schematics/ng-update/v14-4/index.js +4 -6
- package/schematics/ng-update/v14-4/index.js.map +1 -1
- 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 +41 -5
- 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: "21.2.
|
|
163
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
164
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
164
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderRequestStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
165
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderRequestStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
166
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
274
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
275
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
287
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderTemplateStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
288
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderTemplateStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
289
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
706
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
728
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: HighlightService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
729
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: HighlightService, providedIn: 'root' }); }
|
|
707
730
|
}
|
|
708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
1118
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1140
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: ComponentsDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1141
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: ComponentsDevtoolsMessageService, providedIn: 'root' }); }
|
|
1119
1142
|
}
|
|
1120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
1142
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
1167
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: ComponentsDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1168
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: ComponentsDevtoolsModule, imports: [StoreModule,
|
|
1143
1169
|
PlaceholderTemplateStoreModule] }); }
|
|
1144
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
1170
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
1176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
1279
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1315
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1316
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.18", 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: "21.2.
|
|
1329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nDirective, decorators: [{
|
|
1293
1330
|
type: Directive,
|
|
1294
1331
|
args: [{
|
|
1295
1332
|
selector: '[c11n]',
|
|
@@ -1357,19 +1394,19 @@ 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: "21.2.
|
|
1361
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1397
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1398
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nService }); }
|
|
1362
1399
|
}
|
|
1363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", 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: "21.2.
|
|
1370
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1406
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: MockC11nDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1407
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.18", type: MockC11nDirective, isStandalone: false, selector: "[c11n]", inputs: { config: "config", component: "component", inputs: "inputs", outputs: "outputs" }, ngImport: i0 }); }
|
|
1371
1408
|
}
|
|
1372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: MockC11nDirective, decorators: [{
|
|
1373
1410
|
type: Directive,
|
|
1374
1411
|
args: [{
|
|
1375
1412
|
selector: '[c11n]',
|
|
@@ -1384,21 +1421,22 @@ class C11nMockService {
|
|
|
1384
1421
|
getPresenter(_defaultPres, _presKey) {
|
|
1385
1422
|
return (source) => source.pipe(mapTo(null));
|
|
1386
1423
|
}
|
|
1387
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1388
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1424
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nMockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1425
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nMockService }); }
|
|
1389
1426
|
}
|
|
1390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nMockService, decorators: [{
|
|
1391
1428
|
type: Injectable
|
|
1392
1429
|
}] });
|
|
1393
1430
|
/**
|
|
1394
1431
|
* The purpose of this module is to be imported in the unit tests of the components which are using c11n directive
|
|
1432
|
+
* @deprecated Will be removed in v16. Use {@link provideC11nMock} and import `MockC11nDirective` directly instead.
|
|
1395
1433
|
*/
|
|
1396
1434
|
class C11nMockModule {
|
|
1397
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1398
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
1399
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
1435
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nMockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1436
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: C11nMockModule, declarations: [MockC11nDirective], exports: [MockC11nDirective] }); }
|
|
1437
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nMockModule, providers: [{ provide: C11nService, useClass: C11nMockService }] }); }
|
|
1400
1438
|
}
|
|
1401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: C11nMockModule, decorators: [{
|
|
1402
1440
|
type: NgModule,
|
|
1403
1441
|
args: [{
|
|
1404
1442
|
declarations: [MockC11nDirective],
|
|
@@ -1406,6 +1444,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1406
1444
|
providers: [{ provide: C11nService, useClass: C11nMockService }]
|
|
1407
1445
|
}]
|
|
1408
1446
|
}] });
|
|
1447
|
+
/**
|
|
1448
|
+
* Provide C11n mock service for testing.
|
|
1449
|
+
*/
|
|
1450
|
+
function provideC11nMock() {
|
|
1451
|
+
return [
|
|
1452
|
+
{ provide: C11nService, useClass: C11nMockService }
|
|
1453
|
+
];
|
|
1454
|
+
}
|
|
1409
1455
|
|
|
1410
1456
|
/**
|
|
1411
1457
|
* Customization service factory
|
|
@@ -1460,10 +1506,10 @@ class O3rCapitalizePipe {
|
|
|
1460
1506
|
const firstLetter = val && val.charAt(0);
|
|
1461
1507
|
return firstLetter ? firstLetter.toUpperCase() + val.slice(1) : value;
|
|
1462
1508
|
}
|
|
1463
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1464
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
1509
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1510
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: O3rCapitalizePipe, isStandalone: true, name: "o3rCapitalize" }); }
|
|
1465
1511
|
}
|
|
1466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rCapitalizePipe, decorators: [{
|
|
1467
1513
|
type: Pipe,
|
|
1468
1514
|
args: [{ name: 'o3rCapitalize' }]
|
|
1469
1515
|
}] });
|
|
@@ -1543,10 +1589,10 @@ class O3rDurationPipe {
|
|
|
1543
1589
|
return result.replace(matchedPatternToReplace, padded);
|
|
1544
1590
|
}, pattern);
|
|
1545
1591
|
}
|
|
1546
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1547
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
1592
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rDurationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1593
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: O3rDurationPipe, isStandalone: true, name: "o3rDuration" }); }
|
|
1548
1594
|
}
|
|
1549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rDurationPipe, decorators: [{
|
|
1550
1596
|
type: Pipe,
|
|
1551
1597
|
args: [{ name: 'o3rDuration' }]
|
|
1552
1598
|
}] });
|
|
@@ -1555,10 +1601,10 @@ class O3rKeepWhiteSpacePipe {
|
|
|
1555
1601
|
transform(value) {
|
|
1556
1602
|
return value.replace(/\s/g, ' ');
|
|
1557
1603
|
}
|
|
1558
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1559
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
1604
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rKeepWhiteSpacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1605
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: O3rKeepWhiteSpacePipe, isStandalone: true, name: "o3rKeepWhiteSpace" }); }
|
|
1560
1606
|
}
|
|
1561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rKeepWhiteSpacePipe, decorators: [{
|
|
1562
1608
|
type: Pipe,
|
|
1563
1609
|
args: [{ name: 'o3rKeepWhiteSpace' }]
|
|
1564
1610
|
}] });
|
|
@@ -1574,10 +1620,10 @@ class O3rReplaceWithBoldPipe {
|
|
|
1574
1620
|
return value;
|
|
1575
1621
|
}
|
|
1576
1622
|
}
|
|
1577
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1578
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
1623
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rReplaceWithBoldPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1624
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: O3rReplaceWithBoldPipe, isStandalone: true, name: "o3rReplaceWithBold" }); }
|
|
1579
1625
|
}
|
|
1580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: O3rReplaceWithBoldPipe, decorators: [{
|
|
1581
1627
|
type: Pipe,
|
|
1582
1628
|
args: [{ name: 'o3rReplaceWithBold' }]
|
|
1583
1629
|
}] });
|
|
@@ -1643,46 +1689,61 @@ class PlaceholderComponent {
|
|
|
1643
1689
|
this.messages$.complete();
|
|
1644
1690
|
this.afterViewInit$.complete();
|
|
1645
1691
|
}
|
|
1646
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1647
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1692
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1693
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.18", 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
1694
|
}
|
|
1649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderComponent, decorators: [{
|
|
1650
1696
|
type: Component,
|
|
1651
|
-
args: [{ selector: 'o3r-placeholder', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None,
|
|
1697
|
+
args: [{ selector: 'o3r-placeholder', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
|
|
1698
|
+
AsyncPipe,
|
|
1699
|
+
NgTemplateOutlet
|
|
1700
|
+
], host: {
|
|
1652
1701
|
'[class.debug]': `mode() === 'debug'`
|
|
1653
|
-
},
|
|
1702
|
+
}, 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
1703
|
}], ctorParameters: () => [], propDecorators: { id: [{
|
|
1655
1704
|
type: Input
|
|
1656
1705
|
}] } });
|
|
1657
1706
|
|
|
1707
|
+
/**
|
|
1708
|
+
* @deprecated Will be removed in v16. Use {@link providePlaceholder} and import `PlaceholderComponent` directly instead.
|
|
1709
|
+
*/
|
|
1658
1710
|
class PlaceholderModule {
|
|
1659
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1660
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
1711
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1712
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderModule, imports: [CommonModule,
|
|
1661
1713
|
StoreModule,
|
|
1662
1714
|
PlaceholderTemplateStoreModule,
|
|
1663
|
-
PlaceholderRequestStoreModule
|
|
1664
|
-
|
|
1715
|
+
PlaceholderRequestStoreModule,
|
|
1716
|
+
PlaceholderComponent] }); }
|
|
1717
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderModule, imports: [CommonModule,
|
|
1665
1718
|
StoreModule,
|
|
1666
1719
|
PlaceholderTemplateStoreModule,
|
|
1667
1720
|
PlaceholderRequestStoreModule] }); }
|
|
1668
1721
|
}
|
|
1669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: PlaceholderModule, decorators: [{
|
|
1670
1723
|
type: NgModule,
|
|
1671
1724
|
args: [{
|
|
1672
1725
|
imports: [
|
|
1673
1726
|
CommonModule,
|
|
1674
1727
|
StoreModule,
|
|
1675
1728
|
PlaceholderTemplateStoreModule,
|
|
1676
|
-
PlaceholderRequestStoreModule
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
exports: [PlaceholderComponent]
|
|
1729
|
+
PlaceholderRequestStoreModule,
|
|
1730
|
+
PlaceholderComponent
|
|
1731
|
+
]
|
|
1680
1732
|
}]
|
|
1681
1733
|
}] });
|
|
1734
|
+
/**
|
|
1735
|
+
* Provide placeholder stores required by `PlaceholderComponent`.
|
|
1736
|
+
*/
|
|
1737
|
+
function providePlaceholder() {
|
|
1738
|
+
return makeEnvironmentProviders([
|
|
1739
|
+
providePlaceholderTemplateStore(),
|
|
1740
|
+
providePlaceholderRequestStore()
|
|
1741
|
+
]);
|
|
1742
|
+
}
|
|
1682
1743
|
|
|
1683
1744
|
/**
|
|
1684
1745
|
* Generated bundle index. Do not edit.
|
|
1685
1746
|
*/
|
|
1686
1747
|
|
|
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 };
|
|
1748
|
+
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
1749
|
//# sourceMappingURL=o3r-components.mjs.map
|